Manuscript Offprint

arXiv:2610.25086

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, 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 MoE models show consistent improvements in language modeling and downstream performance. 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, while maintaining near-vanilla decoding latency.

1. Introduction

Increasing the computation applied to each token offers a way to improve language model quality without increasing model size. Looped language models implement this idea by repeatedly applying shared layers, increasing effective computational depth through parameter reuse (Dehghani et al., 2018; Giannou et al., 2023; Geiping et al., 2026).

However, parameter sharing does not eliminate the cost of repeated computation: successive loop iterations remain sequentially dependent and can make autoregressive decoding several times slower than a vanilla Transformer with the same parameter count. The challenge is therefore to benefit from recurrent computation without paying for multiple serial loop invocations at every decoding step.

To address this bottleneck, 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 already-computed latent state with the current representation. Meanwhile, the latent slot processes the current representation to produce 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.

While this design is natural during autoregressive decoding, it introduces a sequential dependency

Figure

Figure 1 | Dual-Slot training and inference. 1) Parallel Training (left). The prefix processes the full sequence once, and an initial warm pass through the core produces the initial latent slots. Jacobi updates then refine the slots at all positions in parallel, with next-token loss computed only from the final prediction states. 2) Autoregressive Decoding (right). At decoding step t, the shared Loop Core processes xtx_t and xt+ht−1x_t + h_{t-1} in one invocation. The prediction-slot output yty_t predicts token t+1t+1, while the latent-slot output hth_t is carried to the next step.

during teacher-forced training, where the latent states of preceding tokens are not yet available. We address this challenge using a small number of Jacobi iterations that refine latent states at all positions in parallel. This preserves token-level training parallelism while approximating the recurrent states used during decoding. We implement Dual-Slot in the middle third of a Transformer, leaving the prefix and suffix as single-pass components.

We train and evaluate a series of Qwen-style dense and MoE models (Yang et al., 2025). Dual-Slot consistently improves language modeling and average downstream accuracy over the corresponding vanilla models. For the 1B dense model, Pile validation perplexity decreases from 7.25 to 7.00, while average five-shot accuracy across nine task configurations improves by 2.26 percentage points. After supervised fine-tuning, Dual-Slot improves zero-shot GSM8K accuracy by 5.83 and 3.49 percentage points for the 1B dense and A0.6B MoE models, respectively. These improvements are achieved while maintaining near-vanilla decoding latency.

References (38)