Accelerating LLM Inference via Vector Index Based Output Embeddings
Source
arxiv.org
Author
Martin Loretz, Sepp Hochreiter
Date
Context
A small Large language modelA model trained on large amounts of data to process and generate language.Full definition → can spend substantial effort scoring its entire vocabulary for each next TokenA piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.Full definition →. This inference study replaces that exhaustive final step with an index that searches for a smaller set of promising candidates. The index is built from the model's existing output vectors, and the authors say it preserves the model's internal representations.
For Google DeepMind's Gemma 3 270M, the authors report up to 82% higher end-to-end generation throughputHow much model output a provider can generate over time, commonly measured in output tokens per second.Full definition → with one sequence at a time on a CPU. Their tests used 32-bit precision, and beyond a batch size of 32 the search overhead made the method fall behind for some models. The gain therefore applies to a specific small-batch setting.
Terms in this piece · Glossary
Large language model — A model trained on large amounts of data to process and generate language.
Token — A piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.
Inference — Using a trained model to produce an output from a supplied input.
throughput — How much model output a provider can generate over time, commonly measured in output tokens per second.