PLD+: Accelerating LLM inference by leveraging Language Model Artifacts

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Somasundaram, Shwetha, Phukan, Anirudh, Saxena, Apoorv
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915044493623296
author Somasundaram, Shwetha
Phukan, Anirudh
Saxena, Apoorv
author_facet Somasundaram, Shwetha
Phukan, Anirudh
Saxena, Apoorv
contents To reduce the latency associated with autoretrogressive LLM inference, speculative decoding has emerged as a novel decoding paradigm, where future tokens are drafted and verified in parallel. However, the practical deployment of speculative decoding is hindered by its requirements for additional computational resources and fine-tuning, which limits its out-of-the-box usability. To address these challenges, we present PLD+, a suite of novel algorithms developed to accelerate the inference process of LLMs, particularly for input-guided tasks. These tasks, which include code editing, text editing, summarization, etc., often feature outputs with substantial overlap with their inputs-an attribute PLD+ is designed to exploit. PLD+ also leverages the artifacts (attention and hidden states) generated during inference to accelerate inference speed. We test our approach on five input-guided tasks and through extensive experiments we find that PLD+ outperforms all tuning-free approaches. In the greedy setting, it even outperforms the state-of-the-art tuning-dependent approach EAGLE on four of the tasks. (by a margin of upto 2.31 in terms of avg. speedup). Our approach is tuning free, does not require any additional compute and can easily be used for accelerating inference of any LLM.
format Preprint
id arxiv_https___arxiv_org_abs_2412_01447
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle PLD+: Accelerating LLM inference by leveraging Language Model Artifacts
Somasundaram, Shwetha
Phukan, Anirudh
Saxena, Apoorv
Computation and Language
Artificial Intelligence
To reduce the latency associated with autoretrogressive LLM inference, speculative decoding has emerged as a novel decoding paradigm, where future tokens are drafted and verified in parallel. However, the practical deployment of speculative decoding is hindered by its requirements for additional computational resources and fine-tuning, which limits its out-of-the-box usability. To address these challenges, we present PLD+, a suite of novel algorithms developed to accelerate the inference process of LLMs, particularly for input-guided tasks. These tasks, which include code editing, text editing, summarization, etc., often feature outputs with substantial overlap with their inputs-an attribute PLD+ is designed to exploit. PLD+ also leverages the artifacts (attention and hidden states) generated during inference to accelerate inference speed. We test our approach on five input-guided tasks and through extensive experiments we find that PLD+ outperforms all tuning-free approaches. In the greedy setting, it even outperforms the state-of-the-art tuning-dependent approach EAGLE on four of the tasks. (by a margin of upto 2.31 in terms of avg. speedup). Our approach is tuning free, does not require any additional compute and can easily be used for accelerating inference of any LLM.
title PLD+: Accelerating LLM inference by leveraging Language Model Artifacts
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2412.01447