FlashHead: Efficient Drop-In Replacement for the Classification Head in Language Model Inference
Not on the map. Why?
Abstract (arXiv)
Language models are increasingly adopting smaller architectures optimized for consumer devices. In this setting, inference efficiency is the primary constraint. Meanwhile, vocabulary sizes continue to grow rapidly, making the classification head a critical bottleneck that accounts for up to 60% of model parameters, and 50% of inference compute. We introduce FlashHead, the first efficient drop-in replacement for the dense classification head that is training-free and hardware-friendly. FlashHead builds on principles from information retrieval, reframing that computation at the output head as a retrieval problem rather than a dense classification over the full vocabulary. FlashHead introduces four key innovations: (1) a balanced clustering scheme that structures vocabulary partitions into compact hardware-efficient tensors, (2) extending multiprobe retrieval to language model heads, enabling thousands of clusters to be scored in parallel, (3) a novel inference-time sampling mechanism that extends retrieval beyond top tokens, enabling probabilistic sampling across the full vocabulary, and (4) selective quantization, enabling effective low-bit computation in the head. Experiments on Llama-3.2, Gemma-3, and Qwen-3 show that FlashHead delivers model-level inference speedups of up to 1.75x which maintaining output accuracy compared to the original head. By overcoming the classification head bottleneck, FlashHead establishes a new benchmark for efficient inference and removes a key barrier to developing smaller, capable models for consumer hardware.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 29 of its 44 references that are in the map. First posted on arXiv 15 Mar 2026.
Builds on
29 of 44 references.
References · 29
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,758
17 more
- 2023Instruction-Following Evaluation for Large Language Modelscited by 1,143
- 2018XNLI: Evaluating Cross-lingual Sentence Representationscited by 913
- 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 738
- 2025Small Language Models are the Future of Agentic AIcited by 254
- 2024Lessons from the Trenches on Reproducible Evaluation of Language Modelscited by 172
- 2022On-Device Training Under 256KB Memorycited by 158
- 2023OWQ: Outlier-Aware Weight Quantization for Efficient Fine-Tuning and Inference of Large Language Modelscited by 113
- 2024Scaling Laws with Vocabulary: Larger Models Deserve Larger Vocabulariescited by 113
- 2019FastDepth: Fast Monocular Depth Estimation on Embedded Systemscited by 93
- 2024"Give Me BF16 or Give Me Death"? Accuracy-Performance Trade-Offs in LLM Quantizationcited by 34
- 2024Text Clustering with Large Language Model Embeddingscited by 27
- 2025FR-Spec: Accelerating Large-Vocabulary Language Models via Frequency-Ranked Speculative Samplingcited by 20
- 2023An Efficient Multilingual Language Model Compression through Vocabulary Trimmingcited by 19
- 2015Strategies for Training Large Vocabulary Neural Language Modelscited by 14
- 2018Learning to Screen for Fast Softmax Inference on Large Vocabulary Neural Networkscited by 10
- 2024SHAKTI: A 2.5 Billion Parameter Small Language Model Optimized for Edge AI and Low-Resource Environmentscited by 2
- 2025Adaptive Sampled Softmax with Inverted Multi-Index: Methods, Theory and Applicationscited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2024RAEE: A Robust Retrieval-Augmented Early Exit Framework for Efficient Inference
- 2024A Survey on Efficient Inference for Large Language Models
- 2023LLM in a flash: Efficient Large Language Model Inference with Limited Memory
- 2026LycheeDecode: Accelerating Long-Context LLM Inference via Hybrid-Head Sparse Decoding
- 2025ZigzagAttention: Efficient Long-Context Inference with Exclusive Retrieval and Streaming Heads
- 2024Compressing Large Language Models with Automated Sub-Network Search
- 2026Memory Decoder at Scale: A Pretrained, Parametric Long-Term Memory
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads