Inference acceleration for large language models using "stairs" assisted greedy generation

Domas Grigaliūnas, Mantas Lukoševičius
7/29/2024
cs.CLcs.LG

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Large Language Models (LLMs) with billions of parameters are known for their impressive predicting capabilities but require lots of resources to run. With their massive rise in popularity, even a small reduction in required resources could have an impact on environment. On the other hand, smaller models require fewer resources but may sacrifice accuracy. In this work, we are proposing an implementation of ``stairs'' assisted greedy generation. It is a modified assisted generation methodology that makes use of a smaller model's fast generation, large model's batch prediction, and "stairs" validation in order to achieve a speed up in prediction generation. Results show between 9.58 and 17.24 percent inference time reduction compared to a stand-alone large LLM prediction in a text generation task without a loss in accuracy.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{grigalinas2024inference,
  title  = {Inference acceleration for large language models using "stairs" assisted greedy generation},
  author = {Domas Grigaliūnas and Mantas Lukoševičius},
  year   = {2024},
  eprint = {2407.19947},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.19947v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.19947.svg)](https://codeofpaper.com/paper/2407.19947)

Discussion