FlashHead: Efficient Drop-In Replacement for the Classification Head in Language Model Inference
Summary
Argues growing vocabularies make the dense LM head a major param/compute bottleneck (up to ~60% params / ~50% decode compute on small models). FlashHead reframes next-token scoring as balanced-cluster multiprobe retrieval with sampling support and selective quantization, reporting up to ~1.75× model-level speedups (e.g. Llama-3.2-1B) with near-baseline accuracy; gains compound with W4A16.
- Venue
- arXiv / Embedl
- Publisher
- arXiv / Embedl
- Source
- arxiv
- Access
- https://arxiv.org/abs/2603.14591 ; code https://github.com/Embedl/flash-head ; HF demo models under embedl/*-FlashHead-*
- License
- arXiv preprint (see paper); Embedl model/plugin licensing separate
- License family
- Other
- Language
- en
- Purpose
- Replace dense LM classification head with training-free clustered multi-probe retrieval for faster decode
- Scale
- Benchmarks on Llama-3.2 / Gemma-3 / Qwen-3; up to 1.75× e2e (1B-class); ~1.13× at 8B
- Domain
- inference efficiency, LM head, retrieval, quantization, SLM decode
- Used for
- Unknown
- Time period
- arXiv 2603.14591; LocalLLaMA/Embedl public posts ~2025-12
- Author type
- industry/academia
- Added
- Sep 16, 2026
- Verified
- Sep 16, 2026
- Research status
- done
- Found via
- #random-papers
From the source
- Published
- Mar 15, 2026
- arXiv categories
- cs.LG, cs.AI, cs.IR
- Author comment
- A collection of models with FlashHead optimization can be found at: https://huggingface.co/collections/embedl/flashhead
- Citations
- 1
- References
- 44
Abstract (from 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 \textbf{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.
Tags
Topics
inference efficiency, LM head, retrieval, quantization, SLM decode
Research notes
- Discord LocalLLaMA share mid 1451683615648776369. Distinct from SoulX-FlashHead/VividHead (id 845). Verified abs title/authors via arxiv.org/abs/2603.14591.
Cites, within this collection
Similar entries
- Tool FlashHead (Embedl) — vLLM plugin / flash-head
- Paper Disaggregated Quantization: Specializing LLM Prefill and Decode
- Code SIE: Superlinked Inference Engine
- Paper SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration
- Code VBR: Variable Bit-Rate KV Cache for llama.cpp
- Other Photon 2.0: Inference engine for Physical AI