Skip to yearly menu bar Skip to main content


Poster
in
Workshop: 5th Workshop on practical ML for limited/low resource settings (PML4LRS) @ ICLR 2024

SparQ Attention: Bandwidth-Efficient LLM Inference

Luka Ribar · Ivan Chelombiev · Luke Hudlass-Galley · Charles Blake · Carlo Luschi · Douglas Orr


Abstract: The computational difficulties of large language model (LLM) inference remains a significant obstacle to their widespread deployment, with long input sequences and large batches causing token-generation to be bottlenecked by data-transfer. For this reason, we introduce **SparQ Attention**, a technique for increasing LLM inference throughput by utilising memory bandwidth more efficiently within attention layers, through selective fetching of the cached history. Our proposed technique can be applied directly to off-the-shelf LLMs during inference, without requiring any modification to the pre-training setup or additional fine-tuning. By evaluating Llama $2$, Mistral and Pythia models on a wide range of downstream tasks, we show that SparQ Attention brings up to $8\times$ savings in attention data-transfer without substantial drops in accuracy.

Chat is not available.