Skip to content

Fast LM Head via Coarse-Fine Decomposition and Tile-Wise Weight Clustering

Nov 2026 · IEEE transactions on computers · Vol 75, pp. 3927-3940 · 0 citations

Abstract

Large language models (LLMs) reuse each generated token as the next input during autoregressive decoding, making per-token latency a critical factor in practical inference performance. In this process, the LM Head performs a large-scale linear projection from the hidden state to the full vocabulary space at every decoding step, becoming one of the major bottlenecks in terms of memory bandwidth and latency. Existing output-layer approximation or vocabulary-pruning approaches can reduce the LM Head cost, but they may cause accuracy degradation due to logit-ranking distortion or task-dependent candidate omission. This paper reinterprets the LM Head as a candidate-screening problem and proposes a coarse-fine LM Head algorithm that restructures it into coarse and fine stages. The proposed method converts the LM Head weights into a compact codebook and an index map through tile-wise k-means clustering, and during online decoding, it computes full-vocabulary coarse scores using tile-wise LUTs and index streaming. Then, exact GEMV or GEMM using the original LM Head weights is performed only for the selected top-<inline-formula><tex-math notation="LaTeX">$k$</tex-math><alternatives><mml:math><mml:mi>k</mml:mi></mml:math><inline-graphic xlink:href="seo-ieq1-3725429.gif"/></alternatives></inline-formula> candidates. Experimental results show that the proposed method limits the average accuracy change to -0.21%p compared with the original LM Head across nine downstream benchmarks, while accelerating the LM Head computation by 5.82<inline-formula><tex-math notation="LaTeX">$\boldsymbol{\times}$</tex-math><alternatives><mml:math><mml:mo mathvariant="bold">×</mml:mo></mml:math><inline-graphic xlink:href="seo-ieq2-3725429.gif"/></alternatives></inline-formula> on average and up to 12.7<inline-formula><tex-math notation="LaTeX">$\times$</tex-math><alternatives><mml:math><mml:mo>×</mml:mo></mml:math><inline-graphic xlink:href="seo-ieq3-3725429.gif"/></alternatives></inline-formula>. In addition, end-to-end TPOT measurements demonstrate a speed-up of up to 1.18<inline-formula><tex-math notation="LaTeX">$\times$</tex-math><alternatives><mml:math><mml:mo>×</mml:mo></mml:math><inline-graphic xlink:href="seo-ieq4-3725429.gif"/></alternatives></inline-formula> on DGX Spark, and the method operates stably under various decoding lengths, batch sizes, and sampling conditions. The implementation and evaluation scripts are publicly available at <uri>https://github.com/HigherIdeal/CFHead</uri>.

View source

Similar papers

#computer vision Open access Jun 2016

Software Development in Startup Companies: The Greenfield Startup Model

The results are packaged in the Greenfield Startup Model (GSM), which explains the priority of startups to release the product as quickly as possible, and the need to shorten time-to-market, by speeding up the development through low-precision engineering activities.

Carmine Giardino, Nicolò Paternoster, M. Unterkalmsteiner et al. · 178 citations · ⚡14
#computer vision Open access Oct 2016

Software Startups - A Research Agenda

Software startup companies develop innovative, software-intensive products within limited timeframes and with few resources, searching for sustainable and scalable business models.

M. Unterkalmsteiner, P. Abrahamsson, Xiaofeng Wang et al. · 157 citations · ⚡17
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#computer vision Review Open access May 2015

A survey study on major technical barriers affecting the decision to adopt cloud services

The comparison of adopter and non-adopter sample reveals three potential adoption inhibitor, security, data privacy, and portability, which underlines the importance of the technical and security perspectives for research investigating the adoption of technology.

Nattakarn Phaphoom, Xiaofeng Wang, S. Samuel et al. · 111 citations · ⚡8
#computer vision Conference Open access Dec 2013

Affordable and Energy-Efficient Cloud Computing Clusters: The Bolzano Raspberry Pi Cloud Cluster Experiment

The ongoing work building a Raspberry Pi cluster consisting of 300 nodes is presented, with potential use cases being an inexpensive and green test bed for cloud computing research and a robust and mobile data center for operating in adverse environments.

P. Abrahamsson, S. Helmer, Nattakarn Phaphoom et al. · 110 citations · ⚡7
#computer vision Review Open access May 2017

Are Software Startups Applying Agile Practices? The State of the Practice from a Large Survey

The findings show that speed related agile practices are used to a greater extent in comparison to quality practices, and that software startups who adopt the Lean Startup approach do not sacrifice quality for speed more than other startups do.

Jevgenija Pantiuchina, Marco Mondini, Dron Khanna et al. · 84 citations · ⚡4

Related blog posts

MIT News · Artificial Intelligence Oct 15, 2026

AI model decodes the language cells use to communicate

A new computational approach reveals how cells communicate to assemble into tissues. This could accelerate stem cell engineering, improve disease models, and inform therapies.

Microsoft Research Blog Oct 15, 2026

Proof-based general-purpose computing with Magnetar

Zero-knowledge proofs can verify computing results without rerunning workloads or exposing sensitive data. Magnetar helps bring them into the mainstream with support for standard programming languages, major speed gains, and quantum-resistant security. The post Proof-based general-purpose computing with Magnetar appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.