arXiv(opens in a new tab)cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.31291

Softmax Reparameterization for Output-Head Quantization

Asim Kadav, Christian Flores, Chirag Arora, Varun Kotte, Hongbo Zheng, Lan Yan, Priya Shanmugasundaram, Tracy Holloway King

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Large vocabularies make output heads a substantial inference cost in small language models. We propose softmax reparameterization, a post-training method that selects a functionally equivalent output head before quantization. The method subtracts a scalar multiple of the vocabulary-row mean from every output row and selects the coefficient by validation KL separately for RTN, activation-weighted MSE, and full-Hessian GPTQ. This one-dimensional search includes the original head and fixed mean-centering, preserves the full-precision softmax distribution, and leaves the trained decoder unchanged; a rank-one correction handles nonlinear logit paths such as soft-capping. Across seven heads, W4 gains concentrate where baseline quantization substantially distorts predictions: on Phi-4-mini, AW-MSE KL falls from 0.936 to 0.256. The gains survive stronger GPTQ calibration and remain complementary to exact per-channel scaling and affine quantization. Across four heads and three W4 quantizers, frozen WikiText-selected coefficients also transfer to C4 and OpenWebMath, outperforming mean-centering in all 18 comparisons where the frozen coefficient differs from 1 and matching it in the remaining six. At W2, used as a compression stress test, benefits broaden across nearly the full model–quantizer matrix. Matched residual analysis shows that improved fidelity can accompany greater logit reconstruction error while reducing the residual's Fisher-weighted cost. For shift-compatible heads, reparameterization adds no inference operation and preserves packed W4 execution: with the decoder held in BF16, quantizing the Phi output head reduces batch-one generation latency by 10.8% relative to the BF16-head baseline.

1 INTRODUCTION

Modern small language models (SLMs) pair modest decoder sizes with large multilingual vocabularies. For vocabulary size V and hidden width d, the output projection contains Vd weights. In recent 3–4B models, output heads contain roughly 0.4–0.7 billion weights, or about 10–17% of nominal model size (Appendix H.1). Unlike input embeddings, which retrieve selected rows, the dense output projection evaluates the full vocabulary at every decoding step (Grave et al., 2017).

Vocabulary is itself a scaling dimension: scaling-law studies find that useful vocabulary capacity grows with model scale and that larger vocabularies can improve quality (Tao et al., 2024; Huang et al., 2025). Figure 1 shows that modern SLMs already deploy vocabularies far larger than historical 32K-scale designs, and each enlargement scales the head: the output projection performs about Vd multiply-accumulates and reads about 2Vd bytes of weights per decoding step at bfloat16 (BF16) precision. Because single-token decoding is memory-bound, this weight movement is a direct cost, and low-bit kernels reduce it in proportion to the stored precision (IST-DASLab, 2025), motivating output-head compression as vocabularies grow.

Despite this cost, practical post-training quantization recipes often retain the output head at higher precision (vLLM Project, 2026). The head directly determines next-token probabilities, without subsequent learned layers to absorb its error. In tied models, its source matrix also serves as the input embedding, introducing a separate deployment constraint (Kurtic et al., 2023). Leaving the

(a) Output vocabulary rows (K)

Figure

(b) Analytical traffic (GB/token)

Figure

Figure 1: Large vocabularies create substantial output-head traffic. (a) Output rows across 23 selected model families, including small models such as Phi, SmolLM, Granite and StableLM. Brackets give earlier-selected release years; ratios compare selected with earlier vocabulary size. Pairs are selected examples, not monotonic trajectories; missing earlier bars indicate no comparison. (b) Analytical weight traffic for the selected checkpoint at batch-one decoding: 2Vd bytes in BF16 versus 0.5Vd in W4, excluding scales and cache effects. This is a storage-precision comparison, not a measurement of W4 quality or speed. Checkpoint conventions and sources are described in Appendix H.1.

head unchanged therefore preserves a substantial per-token weight read even when the decoder is aggressively compressed.

Output-head quantization is often posed as preserving weights or logits, but softmax depends only on relative logits. Equivalent full-precision output heads can incur different quantization residuals (Figure 2). We exploit this freedom with softmax reparameterization, selecting an equivalent representative before quantization.

Function-preserving reparameterizations are widely used in quantization, including channel scaling and rotations (Xiao et al., 2023; Ashkboos et al., 2024; Liu et al., 2025), while SageAttention applies fixed mean-centering to attention keys before quantization (Zhang et al., 2024). Output Embedding Centering uses vocabulary-row mean-centering during pretraining (Stollenwerk et al., 2026). Our contribution is a post-training scalar search within the output head's additive softmax equivalence class, selecting the representative by post-quantization predictive fidelity.

Let μ\mu be the vocabulary-row mean of the output head. We search the scalar family

Wt=W−t1μ⊤W_{t}=W-t\mathbf{1}\mu^{\top}

and select t by the KL divergence of the quantized head to the source model on validation data. The search uses pretrained weights and requires no retraining or changes to the decoder. The search includes the original head (t=0)(t = 0) and ordinary mean-centering (t=1)(t = 1), and is performed separately for each base quantizer.

The largest gains occur in heads with high baseline quantization error. At W4, several heads are already close to the source distribution and therefore have little error to recover, while Phi-4-mini and the large-vocabulary BLOOM and XGLM heads exhibit large gains. Under more aggressive W2 quantization this distinction largely disappears: every evaluated head is substantially perturbed, and

Figure

Figure 2: Quantization fidelity across equivalent output-head parameterizations. Shared row shifts preserve predictions exactly (dashed: algebraic KL = 0), but change Phi-4-mini W4 RTN test KL (blue). Mean-centering uses t = 1; t = 4 is selected on separate validation articles. All shifts use the same quantizer and test states.

reparameterization improves nearly every model and quantizer combination across RTN, AW-MSE and GPTQ (Table 1). Representative selection improves fidelity across multiple model families, with gains extending to more heads under W2 quantization.

In our packed Phi deployment, W4 head compression reduces end-to-end batch-one latency by 10.8% and batch-16 latency by 9.4%, and reparameterization recovers quality without sacrificing this speedup. The improvement itself does not come from better weight reconstruction: the selected representative can carry more logit error while placing it where the softmax barely responds, an effect examined in Section 4.

Our contributions are threefold:

• Softmax reparameterization. We introduce a post-training search over exactly equivalent output-head parameterizations, selecting the representative that best preserves prediction fidelity under the deployed quantizer. This differs from fixed mean-centering and concurrent symmetry-based quantization methods by searching a one-dimensional path within the additive softmax equivalence class of the frozen output head. A rank-one correction extends the construction to nonlinear logit paths.

• Low-bit recovery across models and quantizers. At W4, reparameterization substantially improves heads with large baseline quantization error across Phi, BLOOM/BLOOMZ and XGLM, while already faithful heads change little. At W2, where all evaluated heads become substantially distorted, the benefit broadens across essentially the full model and quantizer matrix. The effect persists under RTN, AW-MSE and full-Hessian GPTQ and reproduces on untouched Phi and BLOOM holdouts.

• Deployment and mechanism. Packed W4 head compression reduces batch-one generation latency by 10.8%, and reparameterization recovers fidelity without sacrificing this speedup. Residual analysis explains why: the selected representative can increase ordinary reconstruction error while shifting that error into directions that matter less to the predictive distribution.

References (21)