paper-with-me

홈 › Papers

VQ-Logits: Compressing the Output Bottleneck of Large Language Models via Vector Quantized Logits

2025-05-15 · Jintian Shao, Hongyi Huang, Jiayi Wu, Yiming Cheng, Zhiyu Wu, You Shan, Mingkai Zheng

Large Language Models (LLMs) have achieved remarkable success but face significant computational and memory challenges, particularly due to their extensive output vocabularies. The final linear projection layer, mapping hidden states to vocabulary-sized logits, often constitutes a substantial portion of the model's parameters and computational cost during inference. Existing methods like adaptive softmax or hierarchical softmax introduce structural complexities. In this paper, we propose VQ-Logits, a novel approach that leverages Vector Quantization (VQ) to drastically reduce the parameter count and computational load of the LLM output layer. VQ-Logits replaces the large V * dmodel output embedding matrix with a small, shared codebook of K embedding vectors (K << V ). Each token in the vocabulary is mapped to one of these K codebook vectors. The LLM predicts logits over this compact codebook, which are then efficiently "scattered" to the full vocabulary space using the learned or preassigned mapping. We demonstrate through extensive experiments on standard language modeling benchmarks (e.g., WikiText-103, C4) that VQ-Logits can achieve up to 99% parameter reduction in the output layer and 6x speedup in logit computation, with only a marginal 4% increase in perplexity compared to full softmax baselines. We further provide detailed ablation studies on codebook size, initialization, and learning strategies, showcasing the robustness and effectiveness of our approach.

📄 PDF Abstract BibTeX arXiv:2505.10202

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingQuantization

Methods 이 논문이 사용한 방법론

Adaptive Softmax Adaptive Softmax is a speedup technique for the computation of probability distributions over words. The adaptive softmax is…
Hierarchical Softmax 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Lost in Backpropagation: The LM Head is a Gradient Bottleneck

2026-03-10 · Nathan Godey, Yoav Artzi arxiv

The last layer of neural language models (LMs) projects output features of dimension $D$ to logits in dimension $V$, the size of the vocabulary, where usually $D \ll V$. This mismatch is known to raise risks of limited e…

Breaking the Softmax Bottleneck via Learnable Monotonic Pointwise Non-linearities

2019-02-21 · Octavian-Eugen Ganea, Sylvain Gelly, Gary Bécigneul, Aliaksei Severyn

The Softmax function on top of a final linear layer is the de facto method to output probability distributions in neural networks. In many applications such as language models or text generation, this model has to produc…

Language ModelingLanguage ModellingText Generation

Towards Cross-Tokenizer Distillation: the Universal Logit Distillation Loss for LLMs

2024-02-19 · Nicolas Boizard, Kevin El Haddad, Céline Hudelot, Pierre Colombo

Deploying large language models (LLMs) of several billion parameters can be impractical in most industrial use cases due to constraints such as cost, latency limitations, and hardware accessibility. Knowledge distillatio…

Knowledge Distillation

Generative Dataset Distillation Based on Self-knowledge Distillation

2025-01-08 · Longzhen Li, Guang Li, Ren Togo, Keisuke Maeda 외

Dataset distillation is an effective technique for reducing the cost and complexity of model training while maintaining performance by compressing large datasets into smaller, more efficient versions. In this paper, we p…

Dataset DistillationKnowledge DistillationSelf-Knowledge Distillation

Multilingual Contrastive Decoding via Language-Agnostic Layers Skipping

2024-07-15 · Wenhao Zhu, Sizhe Liu, ShuJian Huang, Shuaijie She 외

Decoding by contrasting layers (DoLa), is designed to improve the generation quality of large language models (LLMs) by contrasting the prediction probabilities between an early exit output (amateur logits) and the final…