# WeDLM: Reconciling Diffusion Language Models with Standard Causal Attention for Fast Inference

- **ID:** 1118
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2512.22737
- **Authors:** Aiwei Liu, Minghua He, Shaoxun Zeng, Sijun Zhang, Linhao Zhang, Chuhan Wu, Wei Jia, Yuan Liu, Xiao Zhou, Jie Zhou
- **Venue:** arXiv / WeChat AI (Tencent); Peking University; Tsinghua University
- **Publisher:** arXiv / WeChat AI (Tencent); Peking University; Tsinghua University
- **Published:** 2025
- **Source:** arxiv
- **Language:** en
- **Access:** free (arXiv; GitHub Tencent/WeDLM; Hugging Face tencent/WeDLM; project page)
- **Tags:** wedlm, diffusion-lm, causal-attention, kv-cache, tencent, qwen3, arxiv-2512.22737, inference
- **Topics:** diffusion language models; causal attention; KV cache; inference acceleration
- **Added:** 2026-09-02
- **Verified:** 2026-09-02
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/1118

## Summary

arXiv 2512.22737. Proposes WeDLM: Topological Reordering places observed tokens in the physical prefix while preserving RoPE logical positions so masked recovery works under a strict causal mask; Dual-Stream Masking reduces train–inference gap; Streaming Parallel Decoding commits confident left-to-right prefixes with a dynamic sliding window. Instantiated on Qwen2.5-7B and Qwen3-8B (100B continued pretrain + SFT). Reports ~3× speedups on reasoning vs vLLM-served AR and up to ~10× in low-entropy regimes while matching/improving quality. Code/models: github.com/Tencent/WeDLM; HF tencent/WeDLM collection; project wedlm.github.io.

## Attributes

- **Purpose:** Make diffusion-style parallel decoding compatible with standard causal KV caching so DLLMs can beat optimized AR engines (vLLM) in wall-clock speed without custom kernels.
- **Scale:** Continued pretraining 100B tokens; SFT 10B tokens (paper also mentions 10K instruction pairs in one section); models WeDLM-7B/8B from Qwen2.5-7B and Qwen3-8B.
- **Domain:** diffusion language models; causal attention; KV cache; inference acceleration
- **Used for:** DLLM inference; AR-to-diffusion adaptation; vLLM-compatible parallel decoding
- **Time period:** 2025-12-28 (arXiv); project page / Discord mid 2026-01-02
- **Author type:** industry + academia (WeChat AI/Tencent; Peking University; Tsinghua University)

## From the source (fetched 2026-10-03)

- **Published:** Dec 28, 2025 (arXiv)
- **arXiv categories:** cs.CL (arXiv)
- **Author comment:** 23 pages, 8 figures, project page: https://wedlm.github.io/ (arXiv)
- **Citations:** 44 (5 influential) (Semantic Scholar)
- **References:** 34 (Semantic Scholar)

## Abstract

Autoregressive (AR) generation is the standard decoding paradigm for Large Language Models (LLMs), but its token-by-token nature limits parallelism at inference time. Diffusion Language Models (DLLMs) offer parallel decoding by recovering multiple masked tokens per step; however, in practice they often fail to translate this parallelism into deployment speed gains over optimized AR engines (e.g., vLLM). A key reason is that many DLLMs rely on bidirectional attention, which breaks standard prefix KV caching and forces repeated contextualization, undermining efficiency. We propose WeDLM, a diffusion decoding framework built entirely on standard causal attention to make parallel generation prefix-cache friendly. The core idea is to let each masked position condition on all currently observed tokens while keeping a strict causal mask, achieved by Topological Reordering that moves observed tokens to the physical prefix while preserving their logical positions. Building on this property, we introduce a streaming decoding procedure that continuously commits confident tokens into a growing left-to-right prefix and maintains a fixed parallel workload, avoiding the stop-and-wait behavior common in block diffusion methods. Experiments show that WeDLM preserves the quality of strong AR backbones while delivering substantial speedups, approaching 3x on challenging reasoning benchmarks and up to 10x in low-entropy generation regimes; critically, our comparisons are against AR baselines served by vLLM under matched deployment settings, demonstrating that diffusion-style decoding can outperform an optimized AR engine in practice.

## Research notes

- Discord linked wedlm.github.io; primary resolved to arXiv abs/PDF 2512.22737 + project page authors/bibtex. License blank (not clearly stated on abs page). GitHub Tencent/WeDLM confirmed via search.

## Cites, within this collection

- [Dream 7B: Diffusion Large Language Models](https://papers.projxon.ai/entries/1107) (paper 2025, #1107)

## Cited by, within this collection

- [Corrective Diffusion Language Models](https://papers.projxon.ai/entries/1068) (paper 2025, #1068)

## Similar entries

- [Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)](https://papers.projxon.ai/entries/740) (thread, #740)
- [Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse](https://papers.projxon.ai/entries/450) (paper, #450)
- [VBR: Variable Bit-Rate KV Cache for llama.cpp](https://papers.projxon.ai/entries/631) (code, #631)
- [Shard: getting to 10x KV cache compression](https://papers.projxon.ai/entries/621) (other, #621)
- [KV cache as GPU-memory bottleneck in Transformer serving (GQA/MQA, quantization, sliding window)](https://papers.projxon.ai/entries/1066) (idea, #1066)
- [ALoDLM: Adaptively Looped Diffusion Language Models](https://papers.projxon.ai/entries/1273) (paper, #1273)
