paper-with-me

홈 › Papers

From Projection to Prediction: Beyond Logits for Scalable Language Models

2025-11-18 · Jianbing Dong, Jianbin Chang arxiv

Training Large Language Models (LLMs) typically involves a two-stage pipeline at the output layer: hidden states are projected into vocabulary logits via a linear transformation (lm_head), followed by cross-entropy loss computation against target tokens. While conceptually simple, this design incurs substantial overhead. The intermediate logits tensor, with dimensions proportional to batch size, sequence length, and vocabulary size, must be fully materialized in GPU memory, even though only one target token per position is ultimately used. This leads to significant memory footprint and bandwidth comsumption, limiting scalability and slowing training throughput. In this work, we introduce a novel approach to integrates the output projection and loss prediction into a single operation. By directly computing the loss from hidden states and target tokens, our approach bypasses explicit logits materialization. This design reduces memory usage and alleviates bandwidth pressure. Experiments on LLM training demonstrate that our method achieves substantial memory savings and measurable speedups compared to the standard two-stage pipeline, enabling large batch sizes and longer sequences without sacrificing accuracy. Our work highlights the benefits of rethinking the boundary between projection and prediction, offering a practical systems optimization for efficient LLM training.

📄 PDF Abstract BibTeX arXiv:2511.17599

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Logits are All We Need to Adapt Closed Models

2025-02-03 · Gaurush Hiranandani, Haolun Wu, Subhojyoti Mukherjee, Sanmi Koyejo

Many commercial Large Language Models (LLMs) are often closed-source, limiting developers to prompt tuning for aligning content generation with specific applications. While these models currently do not provide access to…

AllPrompt Engineering

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…

Chain-of-Thought in Large Language Models: Decoding, Projection, and Activation

2024-12-05 · Hao Yang, Qianghua Zhao, Lei LI

Chain-of-Thought prompting has significantly enhanced the reasoning capabilities of large language models, with numerous studies exploring factors influencing its performance. However, the underlying mechanisms remain po…

Retrieval

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 외

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 …

Language ModelingLanguage ModellingQuantization

What do your logits know? (The answer may surprise you!)

2026-04-10 · Masha Fedzechkina, Eleonora Gualdoni, Rita Ramos, Sinead Williamson arxiv

Recent work has shown that probing model internals can reveal a wealth of information not apparent from the model generations. This poses the risk of unintentional or malicious information leakage, where model users are …