paper-with-me

Papers

FlashHead: Efficient Drop-In Replacement for the Classification Head in Language Model Inference

2026-03-15 · Wilhelm Tranheden, Shahnawaz Ahmed, Devdatt Dubhashi, Jonna Matthiesen, Hannes von Essen 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.

📄 PDF Abstract BibTeX arXiv:2603.14591

Code (0)

등록된 구현이 없습니다.

Tasks

Information Retrieval

Similar Papers 제목 키워드 기반

SoulX-FlashHead: Oracle-guided Generation of Infinite Real-time Streaming Talking Heads

2026-02-07 · Tan Yu, Qian Qiao, Le Shen, Ke Zhou 외 arxiv

Achieving a balance between high-fidelity visual quality and low-latency streaming remains a formidable challenge in audio-driven portrait generation. Existing large-scale models often suffer from prohibitive computation…

Video Generation

Accelerating Vision Foundation Models with Drop-in Depthwise Convolution

2026-05-21 · Carmelo Scribano, Mohammad Mahdi, Nedyalko Prisadnikov, Yuqian Fu 외 arxiv

Pretrained vision foundation models deliver strong performance across tasks with limited fine-tuning. However, their Vision Transformer (ViT) backbones impose high inference costs, limiting deployment on resource-constra…

Image Classification

ML-Decoder: Scalable and Versatile Classification Head

2021-11-25 · Tal Ridnik, Gilad Sharir, Avi Ben-Cohen, Emanuel Ben-Baruch 외

In this paper, we introduce ML-Decoder, a new attention-based classification head. ML-Decoder predicts the existence of class labels via queries, and enables better utilization of spatial data compared to global average …

ClassificationDecoderFine-Grained Image ClassificationImage Classification+3

Multi-Head State Space Model for Speech Recognition

2023-05-21 · Yassir Fathullah, Chunyang Wu, Yuan Shangguan, Junteng Jia 외

State space models (SSMs) have recently shown promising results on small-scale sequence and language modelling tasks, rivalling and outperforming many attention-based approaches. In this paper, we propose a multi-head st…

Language ModelingLanguage Modellingmodelspeech-recognition+2

SPECTRE: An FFT-Based Efficient Drop-In Replacement to Self-Attention for Long Contexts

2025-02-25 · Jacob Fein-Ashley, Neelesh Gupta, Rajgopal Kannan, Viktor Prasanna

Long-context transformers face significant efficiency challenges due to the quadratic cost of self-attention. However, many modern applications-from multi-turn dialogue to high-resolution vision-require contexts spanning…

Language ModelingLanguage Modelling