Hidden Decoding at Scale: Latent Computation Scaling for Large Language Models

Aiwei Liu, Cheng Shi, Chuhan Wu, Ci Lei, Di Lu +43 more
7/9/2026
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Scaling Large Language Models (LLMs) has been driven mainly by enlarging the Transformer backbone, but for an already-strong model this requires another round of costly pretraining. We study whether an existing backbone can keep improving by allocating more computation to each token while leaving the Transformer backbone fixed. Depth-recurrent (looped) Transformers pursue this goal but are hard to scale, because looped computation does not fit naturally with the pipeline parallelism used to train the largest models. We add computation along the sequence-length dimension, where the extra computation is simply a longer input and stays compatible with standard large-model training. We propose Hidden Decoding, a sequence-length scaling method applied during continued pretraining (CPT). It expands each token into n streams with independent embedding tables and keeps the intermediate streams' key-value cache as context, so each token performs more internal computation without adding or widening Transformer layers. To keep this affordable at scale, we introduce Stream-Factorized Attention, in which most layers attend only within each stream and only a few layers mix across streams, reducing the attention cost from quadratic to roughly linear in n. Experiments support two scaling results. At frontier scale, we train WeLM-HD4-80B and WeLM-HD4-617B at n=4 and improve their matched non-HD baselines, making Hidden Decoding the first demonstrated sequence-length scaling method at the 100B+ MoE scale. Across expansion factors, the gains grow as n increases, showing that sequence-length expansion is a practical fixed-backbone scaling path for frontier-scale LLMs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{liu2026hidden,
  title  = {Hidden Decoding at Scale: Latent Computation Scaling for Large Language Models},
  author = {Aiwei Liu and Cheng Shi and Chuhan Wu and Ci Lei and Di Lu and Donald He and Fan Zhang and Fanhao Kong and Feifei Zhang and Guan Wang and Haicheng Wang and Haoyu Liu and Houjin Yu and Jiachen Ding and Jiayi Feng and Jie Zhou and Jijun Chi and Jindi Shi and Jing Lei and Junjie Zhang and Laiyi Li and Le Tian and Linhao Zhang and Miao Fan and Sijun Zhang and Wei Jia and Weiwei Shi and Wenhan Li and Wentao Zhao and Wenteng Liang and Xiao Zhou and Xiaojin Zhou and Xihuai Wang and Xinyu Gao and Xuanliang Wang and Xuyang Ao and Yang Yu and Yangxiu You and Yinuo Zhao and Yufei Kuang and Yufei Wang and Yuan Liu and Yuan Liu and Yuwen Chen and Zhencong Tian and Zhongyin Zhao and Zilin Yu and Zitao Wang},
  year   = {2026},
  eprint = {2607.08186},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.08186v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.08186.svg)](https://codeofpaper.com/paper/2607.08186)

Discussion