NAACL 2024findings3 citations

SLiM: Speculative Decoding with Hypothesis Reduction

Chi-Heng Lin, Shikhar Tuli, James Smith, Yen-Chang Hsu, Yilin Shen, Hongxia Jin

Abstract

Speculative decoding has emerged as a prominent alternative to autoregressive decoding for expediting inference in large language models (LLMs). However, prevailing assumptions often focus solely on latency reduction, neglecting the computational expenses. In this paper, we present Speculate Less, validate More (SLiM), a speculative decoding enhancement to reduce the speculation set while validating more effective tokens. SLiM is designed to mitigate LLMs’ computation costs associated with the token verification by introducing hypothesis reduction based on a fast posterior estimation. It consistently surpasses counterparts lacking cost reduction across a spectrum from CPU to GPU. Our evaluation with diverse conversational datasets shows that SLiM can achieve a substantial 70% reduction in FLOPs while generating more effective predictions on top of prior arts.

BibTeX
@inproceedings{lin-etal-2024-slim,
    title = "{SL}i{M}: Speculative Decoding with Hypothesis Reduction",
    author = "Lin, Chi-Heng  and
      Tuli, Shikhar  and
      Smith, James  and
      Hsu, Yen-Chang  and
      Shen, Yilin  and
      Jin, Hongxia",
    editor = "Duh, Kevin  and
      Gomez, Helena  and
      Bethard, Steven",
    booktitle = "Findings of the Association for Computational Linguistics: NAACL 2024",
    month = jun,
    year = "2024",
    address = "Mexico City, Mexico",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.findings-naacl.63/",
    doi = "10.18653/v1/2024.findings-naacl.63",
    pages = "1005--1017"
}
SLiM: Speculative Decoding with Hypothesis Reduction · NAACL 2024