更短的序列,更快的模型:序列长度压缩作为LLM训练与推理的可堆叠基础组件
Shorter Sequences, Faster Models: Sequence Length Compression as a Stackable Primitive for LLM Training and Inference
导读
Marc Neumann 提出用序列长度压缩作为可堆叠的基元来提升仅解码器 LLM 的效率:在嵌入层与未改动的 transformer 主干之间加入单个归一化-投影模块,即可预训练出原生在压缩序列上运行的模型。在 79M 至 537M 规模的受控实验中,质量随模型增大接近未压缩基线(2 倍压缩、537M 参数时接近持平),同时加速预填充、解码和训练,并与 GQA 成倍叠加,在 1M 上下文下预填充加速接近 X²,且无需新的推理内核。
正在把原文翻译成中文,长文需要一两分钟;先显示原文。
Computer Science > Machine Learning
[Submitted on 1 Dec 2026]
Title:Shorter Sequences, Faster Models: Sequence Length Compression as a Stackable Primitive for LLM Training and Inference
Authors:Marc Neumann
View a PDF of the paper titled Shorter Sequences, Faster Models: Sequence Length Compression as a Stackable Primitive for LLM Training and Inference, by Marc Neumann
Abstract:The efficiency of decoder-only LLMs is routinely improved by making attention cheaper per token: reducing KV-cache size, restricting the receptive field, or replacing the attention operator. All of these leave the number of tokens flowing through the network unchanged, so the FFNs and the token-wise projections continue to scale with full sequence length, and in most cases the attention cost does as well. Existing approaches that do shorten the sequence pay for it elsewhere, through restructured generation, separate decoders, or compression applied post hoc to a frozen model. We show that neither is necessary: a single normalization-projection module between the embedding layer and an otherwise unchanged transformer trunk suffices to pretrain a decoder-only LLM that operates natively on a compressed sequence, including the tokens it generates. A training construction that covers every autoregressive decoding state exactly once eliminates train-inference mismatch and requires no hyperparameters beyond the compression factor $X$. In controlled experiments at 79M--537M scale, with throughput measured up to 7B parameters, quality approaches parity with the uncompressed baseline as models grow (near parity at $2\times$ compression and 537M parameters), while sequence length compression accelerates prefill, decode, and training simultaneously, and stacks multiplicatively with GQA, with prefill speedups approaching $X^2$ at 1M context, all without requiring new inference kernels. Sequence length is therefore a trainable property of the model: compressing it shortens every part of the network and composes with existing efficiency methods.
| Comments: | 31 pages, 7 figures |
|---|---|
| Subjects: | Machine Learning (cs.LG); Computation and Language (cs.CL) |
| Cite as: | arXiv:2612.02368 [cs.LG] |
| (or arXiv:2612.02368v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2612.02368 |
Submission history
From: Marc Neumann [view email]
[v1]
Tue, 1 Dec 2026 18:22:21 UTC (152 KB)
Full-text links:
Access Paper:
View a PDF of the paper titled Shorter Sequences, Faster Models: Sequence Length Compression as a Stackable Primitive for LLM Training and Inference, by Marc Neumann
Additional Features
Current browse context:
cs.LG
| next >
Change to browse by:
References & Citations
BibTeX formatted citation
Data provided by:
Bookmark
[
](http://www.bibsonomy.org/BibtexHandler?requTask=upload&url=https://arxiv.org/abs/2612.02368&description=Shorter Sequences, Faster Models: Sequence Length Compression as a Stackable Primitive for LLM Training and Inference "Bookmark on BibSonomy")
[
](https://reddit.com/submit?url=https://arxiv.org/abs/2612.02368&title=Shorter Sequences, Faster Models: Sequence Length Compression as a Stackable Primitive for LLM Training and Inference "Bookmark on Reddit")
Bibliographic Tools
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data, Media
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
ScienceCast (What is ScienceCast?)
Demos
Demos
Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)
Related Papers
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender (What is IArxiv?)
- Author
- Venue
- Institution
- Topic
About arXivLabs
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
出处
- B 可靠arXiv cs.LG · RSS阅读原文 ↗
Shorter Sequences, Faster Models: Sequence Length Compression as a Stackable Primitive for LLM Training and Inference