Bifocal Diffusion Language Models: Asymmetric Bidirectional Context for Parallel Generation

Yuhang Chen, Xianfeng Wu, Jinhao Duan, Mingfu Liang, Xiaohan Wei, Yunchen Pu, Fei Tian, Chonglin Sun, Parish Aggarwal, Frank Shyu, Luke Simon, Sandeep Pandey, Xi Liu, Tianlong ChenarXiv 2026

TL;DR

Bifocal Diffusion Language Models resolve a fundamental trade-off in discrete diffusion models between generation quality (which requires bidirectional context) and serving efficiency (which requires KV caching). By pairing a standard causal Transformer backbone with a lightweight, reverse-direction Mamba SSM sidecar, the proposed R2LM architecture delivers full right-side context while remaining completely compatible with standard prefix KV caching.

What Problem Does This Paper Address?

Discrete diffusion language models (dLLMs) are an exciting alternative to traditional autoregressive (AR) models because they can decode multiple tokens in parallel, offering massive potential throughput gains. However, they suffer from a critical architectural dilemma:

  1. Bidirectional Attention: To achieve high-quality text generation, dLLMs typically allow every token to attend to the entire sequence. However, because tokens change at every denoising step, bidirectional attention completely breaks Key-Value (KV) caching. This forces the model to recompute full attention at every step, destroying batch-serving efficiency.
  2. Causal Attention: Conversely, restricting the model to causal (left-to-right) attention preserves KV caching but completely blinds the model to right-side context, severely degrading generation quality.

The authors introduce Bifocal dLLMs to break this deadlock, providing a way to supply continuous, position-aware right-side context without sacrificing the efficiency of standard prefix KV caching.

An overview of different attention paradigms vs. the proposed Bifocal approach, alongside a quality vs. throughput comparison.

Methods

The core design principle behind Bifocal dLLMs is asymmetric bidirectional context. Instead of treating both directions symmetrically with expensive bidirectional attention, the architecture splits the work into two distinct pathways:

  • The Causal Backbone: An unmodified causal Transformer backbone handles the left-to-right context. Because this pathway is strictly causal, standard prefix KV cache validation remains completely intact.
  • The Reverse Mamba Sidecar (R2LM): A lightweight Right-to-Left Mamba state-space model (SSM) sidecar captures the right-side context. It operates by flipping the hidden states along the sequence dimension, running a Mamba selective scan, unflipping the states, and adding them back to the backbone as a residual stream.

The sidecar connects to the backbone via forward hooks using a zero-initialized scalar gate ($\tanh(s)$). This ensures that at initialization, the augmented model is bit-identical to the causal baseline and safely opens up the right-side context pathway during training.

The authors evaluate two training modes: Joint Mode (training the backbone and sidecar together) and Plug-in Mode (R2LM-PI), where the causal backbone is frozen and only the R2LM sidecar parameters are trained.

The R2LM architecture framework and its parallel decoding inference workflow with KV caching.

Datasets

  • Pretraining: Main experiments used 60B tokens from the HuggingFaceFW/fineweb-edu corpus to perform continued pretraining on a Qwen3-1.7B backbone. Ablation studies were conducted on a 1B token subset.
  • Evaluation: The models were evaluated across seven standard multiple-choice benchmarks: ARC-Challenge, HellaSwag, PIQA, WinoGrande, OpenBookQA, BoolQ, and MMLU.
  • Ablation Evaluation: WikiText-103 was utilized to measure token perplexity during structural evaluations.

Key Insights and Ideas

  • Asymmetry Drives Efficiency: Full, exact bidirectional attention is overkill for right-side context. Delegating the right-context pathway to a linear-time SSM provides a sufficiently compressed representation that recovers generation quality without breaking the $O(N)$ KV cache structure.
  • Modular Decoupling: The plug-in variant (R2LM-PI) works remarkably well even when the backbone is completely frozen. This indicates that right-side context can be treated as a modular, additive correction layer to existing causal models.
  • Directionality is Crucial: In ablation studies, replacing the reverse Mamba with an MLP adapter or a standard left-to-right Mamba severely degraded performance. A position-aware, right-to-left scan is strictly necessary to capture meaningful future context.

Key Results

  • High Throughput in Batch Serving: In saturated deployment regimes ($B=8, P=4096$), R2LM achieves 2.4× to 12.9× higher throughput than bidirectional dLLMs, and a 1.9× to 2.9× speedup over standard autoregressive baselines.
  • Strong Accuracy Gains: On multi-token long-target tasks, R2LM outperforms the causal baseline by 3.54 percentage points (pp) and the bidirectional baseline by 2.66 pp on average.
  • Plug-in Superiority: Surprisingly, the plug-in model (R2LM-PI)—trained on just 5B tokens (1/12th of the joint training data)—posted the highest overall average accuracy (47.76%) across all seven benchmarks, outperforming both the joint model and the bidirectional baseline.

Limitations and Future Work

  • Scale Constraints: The evaluation was restricted to a 1.7B parameter model trained on up to 60B tokens. Testing the paradigm on larger models and larger pretraining budgets remains future work.
  • Parameter Overhead: The R2LM sidecar adds roughly 10.8% more parameters to the backbone. The authors suggest that exploring lower-rank or shared-projection variants could minimize this footprint.
  • Single-Request Latency: For single-request inference ($B=1$), R2LM is slightly slower than a pure causal dLLM due to the sequential overhead of running the SSM sidecar alongside the backbone.

Summary updated

BibTeX
@misc{chen2026bifocal,
  author = {Yuhang Chen and Xianfeng Wu and Jinhao Duan and Mingfu Liang and Xiaohan Wei and Yunchen Pu and Fei Tian and Chonglin Sun and Parish Aggarwal and Frank Shyu and Luke Simon and Sandeep Pandey and Xi Liu and Tianlong Chen},
  title = {{Bifocal Diffusion Language Models: Asymmetric Bidirectional Context for Parallel Generation}},
  year = {2026},
  eprint = {2606.27732},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.27732},
}
Figure