Dual-Slot: From Serial Loops to Parallel Slots in Language Models
Yiqin Hao, Zitong Wang, Boyi Zeng, He Li, Shixiang Song, Feichen Song, Yifan Liu, Ran Tao, Bryan Dai, Zhouhan Lin
Abstract
Looped language models increase computational depth by repeatedly applying shared layers, offering a way to improve model quality without adding parameters. However, sequential dependencies between loop iterations increase autoregressive decoding latency. We introduce Dual-Slot, an architecture that reorganizes serial looped computation into parallel latent and prediction slots. Rather than waiting for the current token's latent computation to finish, the prediction slot combines the previous token's deep latent state with the current representation, while the latent slot produces a state for the next decoding step. This shifts the latent dependency across adjacent tokens, replacing two sequential module invocations with a single paired invocation while preserving standard autoregressive generation. To preserve token-level parallelism during training, we use a small number of Jacobi iterations to refine latent states across the sequence in parallel. Experiments on Qwen-style dense and mixture-of-experts (MoE) models show consistent improvements in language modeling and average downstream accuracy. On the 1B dense model, Dual-Slot reduces Pile validation perplexity from 7.25 to 7.00 and improves average five-shot accuracy across nine task configurations by 2.26 percentage points. After supervised fine-tuning, it improves zero-shot GSM8K accuracy by 5.83 and 3.49 percentage points for the 1B dense and A0.6B MoE models, respectively. Across the evaluated batch sizes, Dual-Slot retains 93.1-96.5% of vanilla decoding throughput for the dense model and 98.1-99.6% for the MoE model.
Create a lesson
Metadata
- Comments
- 17 pages, 6 figures
Related papers
DUET: Dual-MDL Unsupervised Entropy-Trie Segmentation for Low-Resource Languages
Shared title terminologycs.CLXiaotian Wang, Youyuan Lin, Zhan Shen et al.
Table Serialization Determines Which Relations Language Models Preserve
Shared title terminologycs.CLJunwei Ma, Arun Kumar Chithanar, Palash Goyal et al.
Faithful Persona Steering under Incongruity via Dual-Stream Refinement
Shared title terminologycs.CLYu-An Chu, Jen-Ren Pong, Chia-Yao Yeh et al.
Exploring Multi-Player Social Games as Verifiable Training Grounds for Large Language Models
Shared title terminologycs.CLKeyu He, Michael Li, Jiarui Liu et al.
PazaBench: Large-Scale ASR Benchmark for Low-Resource Languages in Africa
Shared title terminologycs.CLMercy Muchai, Nick Mumero Mwangi, Kevin Chege et al.
Serialization and the Character-System: Measuring Narrative Concentration in French Fiction (1800--1940)
Shared title terminologycs.CLJean Barré, Antoine Bourgois, Thierry Poibeau