Manuscript Offprint

arXiv:2610.18407

Multi-Stream Residual Computation in Diffusion Language Models

Ekaterina Alimaskina, Suren Kazarian, Gleb Molodtsov, Aleksandr Beznosikov

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Figure

Ekaterina Alimaskina

BRAIn Lab

Yandex Research

Suren Kazarian

BRAIn Lab

Gleb Molodtsov

BRAIn Lab

Aleksandr Beznosikov

BRAIn Lab

Code: https://github.com/brain-lab-research/diffusion-residual-streams

Diffusion language models reconstruct masked tokens in parallel, offering an alternative to autoregressive generation. Yet their Transformer backbones typically carry visible evidence and evolving masked predictions through a single residual stream. We equip masked diffusion models with multiple residual streams that persist through depth and adaptive routing between them, then investigate how they support these complementary roles. On the pretraining task, two streams reduce reconstruction perplexity by 5.71% on validation data and 5.13% on average across external corpora compared with standard residual connections. We observe that, without predefined roles, visible and masked positions learn distinct routing patterns. Causal interventions show that this distinction organizes read and write routing, while token-specific write strength remains important within each role. Guided by these findings, a model trained with role-conditioned routing recovers half the validation gain from adding a second stream. State interventions explain the benefit of the additional stream: it preserves early token representations for later reuse while evidence accumulates at masked positions. This mechanism recurs at a larger model scale, showing how persistent streams support context preservation alongside prediction refinement.

1 Introduction

Diffusion language models have recently emerged as an alternative to autoregressive language modeling [Austin et al., 2021, Hoogeboom et al., 2021, Sahoo et al., 2024, Nie et al., 2025, Ye et al., 2025]. Rather than generating text token by token, they predict many missing positions in parallel and refine uncertain predictions over successive steps. Reconstruction can use context from both sides, supporting flexible generation orders and naturally accommodating text infilling.

The two generation schemes also differ in what they require of each token position. Under next-token training, autoregressive positions share a largely uniform prediction task: each uses its prefix to predict the following token. Masked diffusion combines two complementary roles within the same denoising pass. Visible positions carry observed tokens that supply evidence for reconstruction, while masked positions must gather contextual information to form and refine predictions. These roles coexist in every partially corrupted sequence, so the backbone must accommodate observed evidence and evolving predictions across positions and through depth.

Despite these different roles, most masked diffusion models inherit the standard Transformer residual pathway. Attention and MLP branches can respond to the corruption mask, but at each position they read from and write to a single persistent state. We ask whether learned routes through depth can better support these complementary roles.

Work beyond text diffusion shows that residual pathways can be made learnable. ReZero and DenseFormer regulate updates or combine information across depth, while Hyper-Connections introduce multiple persistent streams with learned read, mixing, and write patterns [Bachlechner

Figure

Figure 1: Prepare–preserve–reuse within a denoising pass. Early blocks prepare position-specific states, one stream preserves them while the other accumulates evidence, and late blocks reuse the retained information. Arrows show selected read and write routes; weak connections are omitted.

et al., 2021, Pagliardini et al., 2024, Zhu et al., 2025, Xie et al., 2025]. For masked diffusion, this flexibility offers a way to preserve useful evidence while refining predictions, with routing that can adapt to the different roles of visible and masked positions.

We first introduce token-conditioned update strength within a single residual stream. This improves diffusion modeling and provides a learned baseline for evaluating the benefit of multiple persistent states. Two streams capture most of the further gain, so we focus on how the model uses this added capacity. Causal interventions show that the visible/masked distinction organizes read and write-destination routing, while token-specific write volume remains important within each role.

Stream-state interventions show how the extra state supports denoising: it keeps early information available while the model gathers evidence for masked predictions. One stream retains position-specific states formed in early blocks through middle depth, as visible-source influence accumulates at masked targets. Late layers then increase reading from this stream and reuse the retained visible state. This preservation–transfer–reuse sequence recurs at a larger model scale, while preservation followed by renewed late reading also extends across stream counts. These findings motivate residual pathways that adapt to token roles and coordinate evidence preservation with prediction refinement.

Contributions. Our main contributions are threefold:

• Residual expansion. We establish the benefits of learned residual transport in masked diffusion. Two persistent streams capture 86.6% of the largest additional validation-CE gain beyond learned single-stream control in the stream-count sweep and achieve the largest mean masked-reconstruction perplexity reduction across four external corpora.

• Role specialization. We separate write destination from write volume and show through controlled interventions that masked/visible roles organize read and write-destination routing, while token-specific write volume matters for visible evidence early and masked predictions late. These findings also guide a role-factorized interface trained from scratch.

• State reuse. We uncover a preservation–transfer–reuse mechanism linking persistent states to denoising computation: one stream preserves early position-specific states through middle depth while visible-source influence accumulates at masked targets, and late layers reuse the retained visible state. Its functional stages recur at a larger model scale. Models with two, three, and four streams also preserve early states and resume reading them in late layers.

References (21)