Linear-Cost Diffusion Model LaLanD: A New Breakthrough in Long-Context Modeling

LaLanD combines absorbing-mask diffusion with bidirectional RWKV-7 to achieve long-context generation at linear cost, with small models rivaling large ones.
LaLanD proposes a linear-cost diffusion scheme combining absorbing-mask diffusion with bidirectional RWKV-7 recurrence, using multi-round denoising to predict unresolved tokens in parallel instead of traditional autoregressive token-by-token generation. Its 1.3B model trained on 120B DCLM tokens achieves lower perplexity than MDLM and DiffuMamba under the same budget on five test corpora, and a six-task zero-shot accuracy of 40.11%, rivaling the 7.2B B³D-RWKV. It leads DiffuMamba on 14 of 16 LongBench-derived tasks, with a 64K-to-1K relative perplexity of 0.901 far outperforming the comparison's 21.720. The fixed-size recurrent state enables K-round denoising with only O(K(H+N)) sequence mixing operations, significantly reducing long-sequence computational cost and offering a new path for long-context modeling distinct from autoregressive plus attention optimization.
Long-context language modeling has long faced a dilemma: generation requires integrating distant evidence, yet repeatedly predicting tokens incurs high costs. A study called LaLanD (Linear Attention Language Diffusion) proposes a linear-cost diffusion scheme that attempts to solve one problem with another—using the iterative denoising of diffusion models to reduce the computational burden of long-sequence generation.
Core Idea: Combining Diffusion with Linear Attention
LaLanD combines absorbing-mask diffusion with bidirectional RWKV-7 recurrence. Each round predicts unresolved tokens from the observed context and previously revealed answer tokens, which is fundamentally different from traditional autoregressive token-by-token generation.
Its architecture comprises independently parameterized forward and reverse RWKV-7 streams, fused via a gate that depends on tokens and features. Noise-level modulation conditions the fused representation according to the denoising stage. This design integrates visible evidence from both directions in each pass, while an evolving answer canvas provides updated conditioning across rounds.

Absorbing-mask diffusion is a form of discrete diffusion model whose forward process, instead of adding Gaussian noise to data, replaces tokens with a special [MASK] token with a certain probability until the sequence is fully masked. During reverse denoising, the model starts from a partially or fully masked sequence and predicts the original tokens at masked positions round by round. Unlike autoregressive generation, which is strictly left-to-right, masked diffusion can update multiple positions simultaneously in each round, thereby supporting bidirectional context integration and parallel decoding. The advantage of absorbing-mask diffusion in text generation lies in its clear training objective (predicting masked tokens) and its natural support for generation in arbitrary order; the challenge lies in designing appropriate mask schedules and sampling strategies to balance generation quality and the number of iterations.
RWKV-7 is the latest iteration of the RWKV series of linear attention models, an architecture that fuses recurrent neural networks with linear attention. It replaces the key-value cache of traditional Transformers with a fixed-size recurrent state, making the inference cost per token independent of sequence length. RWKV-7 introduces more flexible gating mechanisms and state update rules, enhancing long-sequence modeling capability. Bidirectional RWKV-7 refers to two independent streams that process the sequence from the forward and backward directions, respectively, similar to a bidirectional RNN but maintaining linear complexity. Compared with the quadratic attention of standard Transformers, RWKV-7's sequence mixing operation grows linearly with length, which is precisely the basis for LaLanD achieving O(K(H+N)) complexity.
Performance: Small Models Challenge Large Models
LaLanD 1.3B was trained from scratch using 120B DCLM tokens. Under the same DCLM token budget, it achieves lower masked diffusion perplexity estimates than published fully attention-based MDLM and DiffuMamba results on five of seven test corpora.
More interestingly, its six-task zero-shot accuracy reaches 40.11%, competitive with the 7.2B RWKV pretrained B³D-RWKV and higher than DiffuMamba. Among 16 LongBench-derived tasks, LaLanD leads DiffuMamba on 14, including all seven reading tasks, and maintains a 64K-to-1K relative perplexity of 0.901, compared with 21.720 for DiffuMamba.
These results show that linear-cost diffusion not only does not sacrifice quality on long-context tasks but actually surpasses larger-scale models on multiple metrics.
DCLM (DataComp for Language Models) is a large-scale, rigorously cleaned and deduplicated open text corpus commonly used in language model pretraining research. It provides a standardized data filtering pipeline and token budgets of various sizes, facilitating fair comparison of different models under the same data conditions. LaLanD uses 120B DCLM tokens to train a 1.3B model from scratch, a setup that allows direct comparison with MDLM and DiffuMamba results also based on the DCLM budget.
LongBench is a benchmark suite for evaluating the capabilities of long-context language models, covering single-document QA, multi-document QA, summarization, code completion, few-shot learning, and other tasks, with sequence lengths typically ranging from thousands to tens of thousands of tokens. The "LongBench-derived tasks" in the article refer to 16 evaluation tasks constructed or extended from LongBench, used to test model performance under long-distance dependencies. 64K-to-1K relative perplexity measures the ratio of a model's perplexity in a 64K long context to its perplexity in a 1K short context; the closer the ratio is to 1, the more stable the model's long-context modeling capability. LaLanD's 0.901 indicates that its long-context performance barely degrades, while the comparison model's 21.720 indicates severe degradation.
Efficiency Advantage: Fixed-Size Recurrent State
Another key advantage of LaLanD lies in efficiency. With a fixed-size recurrent state, its K-round full-canvas denoising requires only O(K(H+N)) sequence mixing operations. This linear complexity is proportional to sequence length rather than quadratic, greatly reducing the cost of long-context generation.
Traditional Transformer attention mechanisms grow quadratically with sequence length, whereas LaLanD controls sequence mixing operations to O(K(H+N)) through RWKV-7's recurrent structure and diffusion's parallel denoising. This is quite important for application scenarios that need to process ultra-long texts.
Sequence mixing operations refer to computational steps in a model that exchange information along the sequence dimension, such as weighted summation in attention or state updates in recurrent networks. In standard Transformers, the sequence mixing complexity of self-attention is O(N²), where N is the sequence length; linear attention or recurrent structures reduce it to O(N). In LaLanD's O(K(H+N)), K is the number of denoising rounds, H is the length of the observed context, and N is the length of the answer to be generated. Since K is usually much smaller than N and both H and N are linear terms, the overall complexity is linear in the total sequence length. A fixed-size recurrent state means that the model only needs to maintain a state vector of fixed dimensionality during inference, which does not expand with sequence growth, thereby avoiding the memory overhead of KV cache—this is particularly critical for ultra-long context deployment.
Multi-Source Perspectives and Positioning
This research comes from an academic paper preprint, and the authors experimentally compare baselines such as MDLM, DiffuMamba, and B³D-RWKV. Based on the published results, LaLanD is competitive in both perplexity and zero-shot accuracy, with particularly clear advantages on long-context tasks.
It should be noted that these results are based on specific training data (DCLM) and evaluation settings, and performance in actual deployment may vary due to domain differences. In addition, the sampling efficiency of diffusion models for text generation remains an open question, and the paper does not discuss specific inference speed numbers in detail.
Implications for Long-Context Modeling
The value of LaLanD lies in providing a path different from the mainstream autoregressive + attention optimization approach. By combining diffusion denoising with linear recurrence, it achieves bidirectional context integration and multi-round conditional updates while maintaining linear cost. This has potential appeal for tasks requiring processing of long documents, multi-turn dialogues, or cross-document reasoning.
In the future, how to scale such models to larger sizes, how to optimize diffusion sampling steps, and how to balance quality and latency in real applications will be directions worth watching.
One-line Summary
LaLanD combines absorbing-mask diffusion with bidirectional RWKV-7 to achieve long-context generation at linear cost, with small models rivaling large ones.
Paragraph Summary
LaLanD proposes a linear-cost diffusion scheme that combines absorbing-mask diffusion with bidirectional RWKV-7 recurrence, predicting unresolved tokens in parallel through multi-round denoising to replace traditional autoregressive token-by-token generation. Its 1.3B model, trained on 120B DCLM tokens, achieves lower perplexity than MDLM and DiffuMamba under the same budget on five test corpora, and a six-task zero-shot accuracy of 40.11%, rivaling the 7.2B B³D-RWKV. It leads DiffuMamba on 14 of 16 LongBench-derived tasks, with a 64K-to-1K relative perplexity of 0.901 far outperforming the comparison's 21.720. The fixed-size recurrent state enables K-round denoising with only O(K(H+N)) sequence mixing operations, significantly reducing the computational cost of long sequences and providing a new path for long-context modeling distinct from autoregressive plus attention optimization.
Related articles

Ladybird Browser Alpha First Look: An Independent Engine Takes On Google's Dominance
Ladybird browser Alpha first look: independent engine, no Chromium dependency, macOS and Linux packages. Minimalist UI, YouTube playback works, but no security guarantees yet.

Infinite Canvas + Multi-Agent Collaboration: A New Paradigm for Driving Complex Projects
A Bilibili creator shares his infinite-canvas multi-Agent workflow: Claude Opus plans, GPT/Codex executes, Gemini and DeepSeek cross-review, with web GPT as strategist.

A Deepfake in 20 Minutes: Can We Still Trust Our Own Eyes?
Tech YouTuber Network Chuck made a convincing deepfake in 20 minutes, showing why visual checks fail and how detection tools help verify suspicious videos before you share, click, or pay.