DiCALM:将自回归卷积-注意力语言模型转换为离散扩散语言模型

arXiv cs.CL 论文

摘要

DiCALM 提出了一套方法,通过双向门控卷积扩展、掩码预热以及自回归(AR)与扩散联合训练,将 LFM2 系列的自回归卷积–注意力混合模型转换为掩码离散扩散语言模型,在 350M 和 1.2B 参数规模下实现了相当的质量,解码速度最高提升至 1.79 倍。

arXiv:2611.33919v1 Announce Type: new Abstract: Existing methods for adapting autoregressive (AR) language models to diffusion generation focus mainly on full-attention architectures. More efficient hybrid architectures remain underexplored. We introduce DiCALM, a recipe for converting the hybrid convolution-attention models of the LFM2 family (LFM2 and LFM2.5) from AR to masked-diffusion generation. DiCALM progressively extends LFM2's causal gated convolution so that it captures local context in both directions. It combines this extension with a masking warm-up and joint AR--diffusion training. In controlled experiments, DiCALM performs comparably to the corresponding fine-tuned LFM2.5-based AR models and delivers consistent speedups over them at both the 350M and 1.2B scales: over 1.4x on average and up to 1.79x.
查看原文
查看缓存全文

缓存时间: 2026/11/26 09:35

# Converting Autoregressive Convolution-Attention Language Models into Discrete Diffusion Language Models
Source: [https://arxiv.org/html/2611.33919](https://arxiv.org/html/2611.33919)
## DiCALM: Converting Autoregressive Convolution\-Attention Language Models into Discrete Diffusion Language ModelsThanks:Qualcomm Vietnam Company Limited\. Qualcomm AI Research is an initiative of Qualcomm Technologies, Inc\.

Ngoc\-Quan PhamDat Quoc NguyenAffiliation:Qualcomm AI ResearchAffiliation:\{phonle, ngocquan, datnq\}@qti\.qualcomm\.com

###### Abstract

Existing methods for adapting autoregressive \(AR\) language models to diffusion generation focus mainly on full\-attention architectures\. More efficient hybrid architectures remain underexplored\. We introduce DiCALM, a recipe for converting the hybrid convolution–attention models of the LFM2 family \(LFM2 and LFM2\.5\) from AR to masked\-diffusion generation\. DiCALM progressively extends LFM2’s causal gated convolution so that it captures local context in both directions\. It combines this extension with a masking warm\-up and joint AR–diffusion training\. In controlled experiments, DiCALM performs comparably to the corresponding fine\-tuned LFM2\.5\-based AR models and delivers consistent speedups over them at both the 350M and 1\.2B scales: over1\.4×1\.4\\timeson average and up to1\.79×1\.79\\times\.

![Refer to caption](https://arxiv.org/html/2611.33919v1/Fig_Overview.png)Figure 1:Left: Architecture of the LFM2 model family\.Right: Applying DiCALM to LFM2, with mask design for the grouped\-query attention layers and a bidirectional extension of the gated short convolution layers\.## 1Introduction

Recently, diffusion language models based on masked prediction \(MDLMs\)[Sahoo et al\. \(2024\)](https://arxiv.org/html/2611.33919#bib.bib21);[Nie et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib17);[Arriola et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib2);[Ye et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib32);[Bie et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib3)have gained attention as an alternative[Bie et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib3);[Fu et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib9)to standard autoregressive \(AR\) language models\. Unlike AR models, which generate tokens one at a time from left to right, MDLMs predict multiple masked positions at once in each decoding step\. The number of denoising steps can be adjusted too: fewer steps mean faster decoding but lower generation quality, giving a flexible quality–speed trade\-off[Nie et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib17);[Ye et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib32)\.

Given the computational challenge of scaling MDLMs from scratch, recent works instead adapt AR\-initialized models[Ye et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib32);[Bie et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib3);[Wu et al\. \(2026a\)](https://arxiv.org/html/2611.33919#bib.bib28);[Fu et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib9), by introducing attention warmup[Bie et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib3), AR\-like token\-shift[Ye et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib32);[Wu et al\. \(2026a\)](https://arxiv.org/html/2611.33919#bib.bib28);[Yu et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib33), block\-diffusion training[Wu et al\. \(2026a\)](https://arxiv.org/html/2611.33919#bib.bib28);[Cheng et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib4);[Bie et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib3), and joint AR\-dLM objectives[Fu et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib9);[Yu et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib33);[Zhu et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib34)\. However, current studies focus mainly on full\-attention architectures, while the transfer of hybrid models[NVIDIA \(2025\)](https://arxiv.org/html/2611.33919#bib.bib18);[Liquid AI \(2025\)](https://arxiv.org/html/2611.33919#bib.bib14);[Team \(2026\)](https://arxiv.org/html/2611.33919#bib.bib24)remains underexplored[Zhu et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib34)\. By combining quadratic\-complexity attention[Vaswani et al\. \(2017\)](https://arxiv.org/html/2611.33919#bib.bib25);[Ainslie et al\. \(2023\)](https://arxiv.org/html/2611.33919#bib.bib1)with efficient sequence\-mixing modules[Dao and Gu \(2024\)](https://arxiv.org/html/2611.33919#bib.bib7);[Lahoti et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib12);[Yang et al\. \(2024\)](https://arxiv.org/html/2611.33919#bib.bib31);[Yang et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib30), hybrid architectures offer a better balance of accuracy and inference efficiency, yet these combinations make the existing direct conversion recipes less straightforward\.

In this context, the LFM2 family—including LFM2 and LFM2\.5[Liquid AI \(2025\)](https://arxiv.org/html/2611.33919#bib.bib14);[Liquid AI \(2026a\)](https://arxiv.org/html/2611.33919#bib.bib15)—stands out as a hybrid model family designed specifically for on\-device deployment\. It introduces gated short convolution \(ShortConv\) alongside a small number of grouped\-query attention \(GQA\) layers[Ainslie et al\. \(2023\)](https://arxiv.org/html/2611.33919#bib.bib1)\. This architecture currently delivers models having the fastest inference among similarly sized alternatives on CPUs and GPUs with a low memory footprint[Liquid AI \(2026a\)](https://arxiv.org/html/2611.33919#bib.bib15);[Liquid AI \(2026b\)](https://arxiv.org/html/2611.33919#bib.bib16)\. This motivates us to convert models in the LFM2 family into discrete diffusion language models to further accelerate inference while preserving model quality\. Our focus on LFM2 differs from that of the concurrent work FLARE[Zhu et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib34), which applies diffusion conversion to Qwen3\.5[Team \(2026\)](https://arxiv.org/html/2611.33919#bib.bib24)\. Because the two works target different architectures, we do not include a direct comparison with FLARE in this paper\.

To this end, we presentDiffusionConvolution–AttentionLanguageModel \(DiCALM\), a novel adaptation recipe for converting LFM2’s hybrid ShortConv\-GQA architecture from an autoregressive language model into a masked diffusion language model\. DiCALM progressively introduces bidirectional local context into LFM2’s causal gated ShortConv layers with minimal changes to their one\-dimensional convolution operations\. It combines these architectural changes with masking warm\-up and joint AR\-MDLM training to transition the pretrained model from autoregressive prediction to bidirectional masked prediction\. Under controlled conditions with the same initialization and training data, DiCALM achieves performance competitive with an equivalently fine\-tuned LFM2\.5\-based AR model, while delivering average decoding speedups of 1\.43× \(1\.2B parameters\) and 1\.42× \(350M parameters\)\. Peak speedups reach 1\.73× and 1\.79×, respectively\.

## 2Our DiCALM

The section describes the model architecture and the training recipe for DiCALM\.

### 2\.1Model Architecture

Figure[1](https://arxiv.org/html/2611.33919#S0.F1)presents our DiCALM hybrid architecture, which integrates diffusion\-based gated convolution with diffusion\-based GQA layers\. Building on the LFM2 family\([Liquid AI, 2025](https://arxiv.org/html/2611.33919#bib.bib14)\), we convert its causal gated short convolution and GQA layers into blockwise attention with causal context\. This design enables bidirectional denoising within the current block while preserving causal attention for prompt prefilling and KV\-cache updates\.

#### 2\.1\.1Diffusion\-based Gated Convolution

The operations of the LFM2’s causal gated short convolution\([Liquid AI, 2025](https://arxiv.org/html/2611.33919#bib.bib14)\)are formulated as:

\(𝐁,𝐇~,𝐂CLOSE\\displaystyle\(\\mathbf\{B\},\\tilde\{\\mathbf\{H\}\},\\mathbf\{C\}\)=Linearin\(𝐇\)\\displaystyle\)\\text\{\\ \}\\text\{\\ \}\\text\{\\ \}=\\mathrm\{Linear\}\_\{\\mathrm\{in\}\}\(\\mathbf\{H\}\)\(1a\)​𝐘=𝐁⊙𝐇~\\displaystyle\\mathbf\{\\text\{\\ \}Y\}=\\mathbf\{B\}\\odot\\tilde\{\\mathbf\{H\}\}\(1b\)𝐳i=∑j=1k𝐰j⊙𝐘:,i−k\+j𝐙=\[𝐳1,𝐳2,…,𝐳n\]\}CausaldepthwiseConv1D\\displaystyle\\left\.\\begin\{aligned\} \\mathbf\{z\}\_\{i\}&=\\sum\_\{j=1\}^\{k\}\\mathbf\{w\}\_\{j\}\\odot\\mathbf\{Y\}\_\{:,i\-k\+j\}\\\\ \\mathbf\{Z\}&=\[\\mathbf\{z\}\_\{1\},\\mathbf\{z\}\_\{2\},\\dots,\\mathbf\{z\}\_\{n\}\]\\end\{aligned\}\\right\\\}\\begin\{subarray\}\{c\}\\text\{Causal\}\\\\ \\text\{depthwise\}\\\\ \\text\{Conv1D\}\\end\{subarray\}\(1c\)​𝐎=Linearout​\(𝐂⊙𝐙\)\\displaystyle\\mathbf\{\\text\{\\ \}O\}=\\mathrm\{Linear\}\_\{\\mathrm\{out\}\}\(\\mathbf\{C\}\\odot\\mathbf\{Z\}\)\(1d\)
where𝐁,𝐇~,𝐂,𝐇∈ℝd×n\\mathbf\{B\},\\tilde\{\\mathbf\{H\}\},\\mathbf\{C\},\\mathbf\{H\}\\in\\mathbb\{R\}^\{d\\times n\}withnnbeing the input sequence length;Linearin:ℝd×n→ℝ3​d×n\\mathrm\{Linear\}\_\{\\mathrm\{in\}\}:\\mathbb\{R\}^\{d\\times n\}\\to\\mathbb\{R\}^\{3d\\times n\}is the upward linear projection for the input hidden states;⊙\\odotdenotes element\-wise multiplication;𝐰1,𝐰2,…,𝐰k∈ℝd\\mathbf\{w\}\_\{1\},\\mathbf\{w\}\_\{2\},\\dots,\\mathbf\{w\}\_\{k\}\\in\\mathbb\{R\}^\{d\}are the per\-offset weight vectors of a depthwise 1\-D convolution with kernel sizekk\(padding is not shown for simplification\); andLinearout:ℝd×n→ℝd×n\\mathrm\{Linear\}\_\{\\mathrm\{out\}\}:\\mathbb\{R\}^\{d\\times n\}\\to\\mathbb\{R\}^\{d\\times n\}denotes linear projection from intermediate states to the final output\.

Within the causal gated short\-convolution layers, the causal depthwise Conv1D is the only cross\-position operator\. Converting Conv1D into a dLM formulation therefore requires extending its convolution to also incorporate future positions\. This extension is nontrivial: it must \(i\) preserve the priors encoded in the well\-trained causal kernels and \(ii\) introduce minimal additional computation\. To this end, we extend the causal depthwise Conv1D with an auxiliary forward\-looking branch that attends tok′k^\{\\prime\}subsequent positions via element\-wise operations over the corresponding future tokens\. The resulting convolution is defined as follows:

𝐳iext\\displaystyle\\mathbf\{z\}^\{\\mathrm\{ext\}\}\_\{i\}=∑j=1k′mi,j𝐰′j⊙𝐘:,i\+j\\displaystyle=\\sum\_\{j=1\}^\{k^\{\\prime\}\}m\_\{i,j\}\\;\\mathbf\{w\}^\{\\prime\}\_\{j\}\\odot\\mathbf\{Y\}\_\{:,i\+j\}\(2a\)𝐳~i\\displaystyle\\tilde\{\\mathbf\{z\}\}\_\{i\}=𝐳i\+𝐳iext\\displaystyle=\\mathbf\{z\}\_\{i\}\+\\mathbf\{z\}^\{\\mathrm\{ext\}\}\_\{i\}\(2b\)𝐙\\displaystyle\\mathbf\{Z\}=\[𝐳~1,𝐳~2,…,𝐳~n\]\\displaystyle=\[\\tilde\{\\mathbf\{z\}\}\_\{1\},\\tilde\{\\mathbf\{z\}\}\_\{2\},\\dots,\\tilde\{\\mathbf\{z\}\}\_\{n\}\]\(2c\)where𝐰1′,𝐰2′,…,𝐰k′′∈ℝd\\mathbf\{w\}^\{\\prime\}\_\{1\},\\mathbf\{w\}^\{\\prime\}\_\{2\},\\dots,\\mathbf\{w\}^\{\\prime\}\_\{k^\{\\prime\}\}\\in\\mathbb\{R\}^\{d\}are additional per\-offset weight vectors; andmi,j∈\{0,1\}m\_\{i,j\}\\in\\\{0,1\\\}is a position\-dependent mask that encodes structural constraints, e\.g\. block\-boundary masking in blockwise diffusion[Arriola et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib2)\. Our extension is post\-hoc and drop\-in, enabling flexible switching between causal and bidirectional processing\.

#### 2\.1\.2Causal GQA to Diffusion\-based GQA

Blockwise diffusion models\([Arriola et al\., 2025](https://arxiv.org/html/2611.33919#bib.bib2)\)operate by appending new blocks of\[mask\]tokens into the current decoded sequence and iteratively unmasking positions in the blocks\.

When the current block is fully unmasked, the KV cache is updated and a new masked block is appended; this repeats until a stopping criterion is met \(the end\-of\-sentence token unlocked or reaching the maximum length\)\. Adapting causal GQA layers to blockwise diffusion primarily involves modifying the attention mask, a design choice explored extensively in prior work\([Ye et al\., 2025](https://arxiv.org/html/2611.33919#bib.bib32);[Wu et al\., 2026a](https://arxiv.org/html/2611.33919#bib.bib28);[Cheng et al\., 2026](https://arxiv.org/html/2611.33919#bib.bib4);[Fu et al\., 2026](https://arxiv.org/html/2611.33919#bib.bib9)\)\. Following[Fu et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib9), we apply bidirectional attention within the current decoding block and causal attention over the preceding context, which differs from the conventional block diffusion[Arriola et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib2)that also uses bidirectional attention for its preceding blocks of context\. Figure[1](https://arxiv.org/html/2611.33919#S0.F1)illustrates the attention mask used by Diffusion\-based GQA during training and inference\. Training blockwise diffusion models requires a specialized mask that enables the loss for each randomly masked block to be computed in parallel, conditioned on the preceding clean context\.

### 2\.2Training Recipe

##### Joint AR–diffusion training\.

Inspired by recent dLM adaptation work[Samuel and Charpentier \(2026\)](https://arxiv.org/html/2611.33919#bib.bib22);[Fu et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib9), training a block\-wise diffusion model can be efficiently implemented with double\-length inputs and a joint AR–dLM training objective\. Each input is formed by concatenating a randomly masked sequence \(the*perturbed*side\) with its originally unmasked counterpart \(the*clean*side\) – more details can be found in Appendix[A\.1](https://arxiv.org/html/2611.33919#A1.SS1)\. Our training loss is defined as follows:

ℒ⁡\(θ,𝐱\)\\displaystyle\\mathcal\{L\}\(\\theta;\\mathbf\{x\}\)=\(1−α\)​τ​ℒAR​\(θ,𝐱\)\+α​ℒdiff​\(θ,𝐱\)\\displaystyle=\(1\-\\alpha\)\\,\\tau\\,\\mathcal\{L\}\_\{\\mathrm\{AR\}\}\(\\theta;\\mathbf\{x\}\)\+\\alpha\\,\\mathcal\{L\}\_\{\\mathrm\{diff\}\}\(\\theta;\\mathbf\{x\}\)\(3a\)ℒAR​\(θ,𝐱\)\\displaystyle\\mathcal\{L\}\_\{\\mathrm\{AR\}\}\(\\theta;\\mathbf\{x\}\)=−1\|𝐱\|∑ilogPθ\(xi∣𝐱<i\)\\displaystyle=\-\\frac\{1\}\{\|\\mathbf\{x\}\|\}\\sum\_\{i\}\\log\\mathrm\{P\}\_\{\\theta\}\\\!\\left\(x\_\{i\}\\mid\\mathbf\{x\}\_\{<i\}\\right\)\(3b\)ℒdiff​\(θ,𝐱\)\\displaystyle\\mathcal\{L\}\_\{\\mathrm\{diff\}\}\(\\theta;\\mathbf\{x\}\)=1∑b\|ℳtbb\|∑b=1B∑i∈ℳtbb\(−logPθ\(\[𝐱b\]i\|𝐱tbb,𝐱<b\)\\displaystyle=\\frac\{1\}\{\\sum\_\{b\}\|\\mathcal\{M\}\_\{t\_\{b\}\}^\{b\}\|\}\\sum\_\{b=1\}^\{B\}\\sum\_\{i\\in\\mathcal\{M\}\_\{t\_\{b\}\}^\{b\}\}\\Biggl\(\-\\log\\mathrm\{P\}\_\{\\theta\}\\\!\\left\(\[\\mathbf\{x\}^\{b\}\]\_\{i\}\\,\\middle\|\\,\\mathbf\{x\}\_\{t\_\{b\}\}^\{b\},\\mathbf\{x\}^\{<b\}\\right\)\+max\{0,logρ−log\(Pθ\(\[𝐱b\]i\|𝐱tbb,𝐱<b\)\)\}\)\\displaystyle\\quad\\quad\{\}\+\\max\\\!\\Bigl\\\{0,\\,\\log\\rho\-\\log\\\!\\left\(\\mathrm\{P\}\_\{\\theta\}\\\!\\left\(\[\\mathbf\{x\}^\{b\}\]\_\{i\}\\,\\middle\|\\,\\mathbf\{x\}\_\{t\_\{b\}\}^\{b\},\\mathbf\{x\}^\{<b\}\\right\)\\right\)\\Bigr\\\}\\Biggr\)\(3c\)
Here,𝐱\\mathbf\{x\}is a clean sequence, withxix\_\{i\}denoting the token at positioniiand𝐱<i\\mathbf\{x\}\_\{<i\}denoting the sequence of all preceding tokens\. We partition𝐱\\mathbf\{x\}intoBBcontiguous blocks, where𝐱b\\mathbf\{x\}^\{b\}denoting thebb\-th clean block and𝐱<b\\mathbf\{x\}^\{<b\}denoting the sequence of all preceding clean blocks\. Each block is then independently corrupted by the forward noising process at a noise leveltb∼𝒰⁡\[0,1\]t\_\{b\}\\sim\\mathcal\{U\}\[0,1\]– i\.e\., the fraction of tokens masked in blockbb– yielding the perturbed block𝐱tbb\\mathbf\{x\}\_\{t\_\{b\}\}^\{b\}\. Also,ℳtbb\\mathcal\{M\}\_\{t\_\{b\}\}^\{b\}denotes the set of masked positions within blockbb, and\[𝐱b\]i\[\\mathbf\{x\}^\{b\}\]\_\{i\}for the clean target token at positioni∈ℳtbbi\\in\\mathcal\{M\}\_\{t\_\{b\}\}^\{b\}\.

The AR lossℒAR​\(θ,𝐱\)\\mathcal\{L\}\_\{\\mathrm\{AR\}\}\(\\theta;\\mathbf\{x\}\)is the cross\-entropy loss for next\-token prediction on the clean input, using causal GQA and the causal gated short convolution—that is, our diffusion\-based gated convolution formulation without the auxiliary forward\-looking branch, obtained by setting𝐳~i=𝐳i\\tilde\{\\mathbf\{z\}\}\_\{i\}=\\mathbf\{z\}\_\{i\}instead of𝐳~i=𝐳i\+𝐳iext\\tilde\{\\mathbf\{z\}\}\_\{i\}=\\mathbf\{z\}\_\{i\}\+\\mathbf\{z\}^\{\\mathrm\{ext\}\}\_\{i\}\(Equation[2b](https://arxiv.org/html/2611.33919#S2.E2.2)\)\.

The masked diffusion lossℒdiff​\(θ,𝐱\)\\mathcal\{L\}\_\{\\mathrm\{diff\}\}\(\\theta;\\mathbf\{x\}\)applies cross entropy only at masked positions, using blockwise GQA and diffusion\-based gated convolution\. We further add a regularization term toℒdiff\\mathcal\{L\}\_\{\\mathrm\{diff\}\}with a margin that activates whenever the ground\-truth probabilityPθ\(\[𝐱b\]i,\|,𝐱tbb,𝐱<b\)\\mathrm\{P\}\_\{\\theta\}\\left\(\[\\mathbf\{x\}^\{b\}\]\_\{i\},\\middle\|,\\mathbf\{x\}\_\{t\_\{b\}\}^\{b\},\\mathbf\{x\}^\{<b\}\\right\)falls below a predefined thresholdρ\\rho\. This pushes the model not merely to rank the ground\-truth token first, but to assign it a sufficiently high probability – a property that also facilitates threshold\-based decoding[Wu et al\. \(2026b\)](https://arxiv.org/html/2611.33919#bib.bib29), in which a\[MASK\]token is unmasked once the probability of its top candidate exceeds a predefined threshold\. We also adapt the token\-shift technique[Ye et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib32);[Wu et al\. \(2026a\)](https://arxiv.org/html/2611.33919#bib.bib28);[Yu et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib33), which predicts each masked token from the logit at its preceding position, to better preserve the representational properties inherited from AR pretraining\.

Because the model is initialized from an AR checkpoint and the diffusion side operates on noised inputs,ℒAR​\(θ,𝐱\)\\mathcal\{L\}\_\{\\mathrm\{AR\}\}\(\\theta;\\mathbf\{x\}\)andℒdiff​\(θ,𝐱\)\\mathcal\{L\}\_\{\\mathrm\{diff\}\}\(\\theta;\\mathbf\{x\}\)differ substantially in magnitude\. Following[Yu et al\. \(2026\)](https://arxiv.org/html/2611.33919#bib.bib33), we rescale the AR loss by a gradient\-detached factorτ=ℒdiff​\(θ,𝐱\)/ℒAR​\(θ,𝐱\)\\tau=\\mathcal\{L\}\_\{\\mathrm\{diff\}\}\(\\theta;\\mathbf\{x\}\)/\\mathcal\{L\}\_\{\\mathrm\{AR\}\}\(\\theta;\\mathbf\{x\}\)to bring the two terms onto a comparable scale, and use a mixing coefficientα\\alphato balance them\. To stabilize early training, we linearly warm upα\\alphaover the first 5% of training steps and then hold it at its target value for the remainder of training\.

##### Masking Warm\-up for GQA layers\.

Inspired by[Bie et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib3), we initialize the GQA attention masks using a near\-causal sub\-blockwise scheme and gradually increase the sub\-block size during the second half of the warm\-up steps, as illustrated in Figure[2](https://arxiv.org/html/2611.33919#S2.F2)\. We use only sub\-block sizes that evenly divide the block size, ensuring that each block contains complete sub\-blocks\. A square\-root schedule is applied for smoother sub\-block transitions\. The masking warm\-up is applied along with the warm\-up ofα\\alphaandρ\\rho\(in Equations[3a](https://arxiv.org/html/2611.33919#S2.E3.1)and[3c](https://arxiv.org/html/2611.33919#S2.E3.3)\) with their corresponding schedules\.

![Refer to caption](https://arxiv.org/html/2611.33919v1/Fig_MaskingWarmup.png)Figure 2:Our masking warm\-up strategy\.

## 3Experiments

### 3\.1Setup

Model initialization & Training configurations\.We evaluate DiCALM against AR baselines on the 1\.2B and 350M scales\. At each scale, DiCALM and its AR counterpart start from the same base model and are supervised fine\-tuned on the same dataset\. We use LFM2\.5\-1\.2B\-Base and LFM2\.5\-350M\-Base as the base models; these use the LFM2 architecture but are pretrained on a larger corpus than the previous pre\-trained LFM2 models\.

We extract and deduplicate prompts from Nemotron\-Cascade\-SFT\-Stage\-2[Wang et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib26), then regenerate the responses with Qwen3\-Next\-80B\-A3B\-Instruct for consistency\. We focus on general instruction\-following capabilities and exclude explicit long\-thinking mode traces marked by<think\>\.\.\.</think\>\. The resulting dataset contains approximately 2M samples, each with a maximum length of 4,096 tokens\.

To ensure a fair comparison, we use the same fine\-tuning setup for all models, with the learning rate as the only setting that varies across scales\. For DiCALM, we use a block size of 32 and extend the gated convolution to cover up to two future positions\. Full training and transfer settings are provided in Appendix[A\.2](https://arxiv.org/html/2611.33919#A1.SS2)\.

Inference\.To avoid unmasking isolated high\-confidence positions, which may degrade generation quality, we apply threshold\-based decoding[Wu et al\. \(2026b\)](https://arxiv.org/html/2611.33919#bib.bib29);[Wu et al\. \(2026a\)](https://arxiv.org/html/2611.33919#bib.bib28)with the PARD strategy[Hou and Kwok \(2026\)](https://arxiv.org/html/2611.33919#bib.bib11)\. Specifically, at each step DiCALM unmasks the longest leftmost sequence of masked positions whose confidence exceeds the threshold, leaving the remaining positions masked for subsequent steps\. If no position meets the threshold, only the leftmost masked position is unmasked\. Across all experiments, we use a block size of 32, a sampling temperature of 0\.0, and a confidence threshold of 0\.9\.

Benchmarks\.We evaluate model performance using the ‘lm\-evaluation\-harness’ library and measure decoding speed separately\. Full settings are provided in Appendix[B](https://arxiv.org/html/2611.33919#A2)\.

### 3\.2Main Results

Table 1:Benchmark performance and inference efficiency of DiCALM and LFM\-SFT at the 1\.2B and 350M parameter scales\.LFM\-SFT: autoregressive baselines fine\-tuned from LFM2\.5\-1\.2B\-Base and LFM2\.5\-350M\-Base, respectively\.DiCALM: our method evaluated using diffusion decoding with a confidence threshold of 0\.9, achieving average throughput speedups of 1\.43× \(1\.2B\) and 1\.42× \(350M\) over LFM\-SFT\. Column headers specify the benchmark metrics\. EachTPF \(speedup\)entry gives DiCALM’s tokens per forward pass and, in parentheses, its throughput speedup over LFM\-SFT, which generates one token per forward pass\.Table[1](https://arxiv.org/html/2611.33919#S3.T1)compares DiCALM against its autoregressive baseline, LFM\-SFT, at the 1\.2B and 350M scales across seven benchmarks\.

At 1\.2B, DiCALM largely preserves the decoding quality of LFM\-SFT, and in several cases exceeds it\. On generation\-heavy benchmarks \(MATH500, GSM8K, IFBench, and BBH\), the accuracy reductions are small, bounded within1\.821\.82points \(e\.g\.,22\.00→21\.2022\.00\\rightarrow 21\.20on MATH500 and62\.55→60\.7362\.55\\rightarrow 60\.73on GSM8K\), suggesting that greater decoding parallelism adds only mild sensitivity in long\-form generation\. More strikingly, DiCALM matches or*surpasses*LFM\-SFT on multiple\-choice benchmarks: it improves GPQA\-Diamond from14\.6514\.65to20\.2020\.20, ARC\-Challenge from62\.1262\.12to66\.0466\.04, and MMLU\-Pro from16\.1216\.12to16\.6116\.61\. At 350M, score drops on generation\-heavy tasks are at most0\.800\.80points \(e\.g\.,11\.80→11\.0011\.80\\rightarrow 11\.00on MATH500\)\. Multiple\-choice scores improve on GPQA\-Diamond and ARC\-Challenge and decrease by only0\.110\.11points on MMLU\-Pro\. This consistency across scales suggests that DiCALM does not systematically degrade quality; instead, its diffusion\-based decoding retains—and on short\-answer tasks can even sharpen—the original capabilities of the baseline\.

In addition, DiCALM consistently reduces inference latency, with speedups from1\.17×1\.17\\timesto1\.73×1\.73\\times\(averaging1\.43×1\.43\\times\) at 1\.2B and from1\.11×1\.11\\timesto1\.79×1\.79\\times\(averaging1\.42×1\.42\\times\) at 350M\. At 1\.2B, the gains are largest on generation\-heavy tasks, which reach the highest tokens\-per\-forward \(TPF\) values of1\.601\.60–1\.871\.87and speedups of1\.48×1\.48\\times–1\.73×1\.73\\times, as their longer responses let more tokens be decoded in parallel\. Multiple\-choice benchmarks yield smaller speedups of1\.17×1\.17\\times–1\.32×1\.32\\times: their long inputs and short outputs make prompt processing a larger share of inference time, leaving less to gain from diffusion decoding\. This is clearest on MMLU\-Pro, where a TPF of1\.331\.33yields a speedup of only1\.17×1\.17\\times\. A similar trend holds at 350M, where gains are generally larger on generation\-heavy tasks than on multiple\-choice tasks\. GPQA\-Diamond is the exception among multiple\-choice benchmark tasks, reaching1\.49×1\.49\\timesspeedup alongside a relatively high TPF of1\.631\.63\.

Overall, DiCALM offers larger efficiency gains on generation\-heavy workloads and smaller but consistent gains on short\-answer tasks, without a consistent loss in accuracy\. This favorable quality–speed tradeoff confirms the effectiveness of DiCALM in accelerating the baseline while largely retaining its original capabilities\.

### 3\.3Ablation Studies

##### Component Ablations\.

We ablate Convolution Extension, Margin Regularization, and Masking Warm\-up in the 350M model to evaluate their contributions to IFBench performance\. Each variant is retrained with one component removed and all other training settings unchanged from the full DiCALM model\. Table[2](https://arxiv.org/html/2611.33919#S3.T2)shows that removing any component lowers the IFBench score, with the largest drop of1\.881\.88points occurring when Margin Regularization is removed\. These results support the contribution of each component to DiCALM’s IFBench performance\.

Table 2:Component ablations on IFBench for the DiCALM 350M model variant\. Each ablation removes one component at a time while keeping the others unchanged\. Red parenthetical values show the score\-point decrease relative to the full DiCALM setting\.
##### Decoding\-Threshold Trade\-off

The threshold sweep for the 1\.2B model on IFBench \(Table[3](https://arxiv.org/html/2611.33919#S3.T3)\) shows a clear quality–speed trade\-off\. Lowering the confidence threshold from 0\.9 to 0\.5 increases the speedup from 1\.52× to 2\.18× but reduces the IFBench score from18\.7818\.78to15\.4515\.45\. The confidence threshold of 0\.9 balances quality and speed\.

Table 3:IFBench results for DiCALM 1\.2B at decoding confidence thresholds of 0\.9, 0\.7, and 0\.5\.

## 4Conclusion

We introduced DiCALM, a recipe for converting models in the LFM2 family into masked diffusion language models through a bidirectional convolution extension, joint AR–diffusion training, and masking warm\-up\. At the 1\.2B and 350M parameter scales, DiCALM accelerates decoding while maintaining performance comparable to equivalently fine\-tuned LFM2\.5\-based AR models\. These results highlight the potential of masked diffusion language modeling for hybrid architectures\.

## Limitations

We restrict the conversion to supervised fine\-tuning; extending DiCALM across multiple training phases—such as continual pretraining followed by SFT—could further strengthen its capabilities\. Finally, following prior efforts, this work targets general instruction\-following\. We therefore exclude explicit long thinking\-mode data and leave its integration to future work\. Future work could also explore extending DiCALM to other convolution\-based architectures and improving its training and decoding strategies\.

## References

- Ainslie et al\. \(2023\)Joshua Ainslie, James Lee\-Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebron, and Sumit Sanghai\. 2023\.GQA: Training Generalized Multi\-Query Transformer Models from Multi\-Head Checkpoints\.In*Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing*, pages 4895–4901\.
- Arriola et al\. \(2025\)Marianne Arriola, Aaron Gokaslan, Justin Chiu, Zhihan Yang, Zhixuan Qi, Jiaqi Han, Subham Sahoo, and Volodymyr Kuleshov\. 2025\.Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Models\.In*Proceedings of the 13th International Conference on Learning Representations*\.
- Bie et al\. \(2025\)Tiwei Bie, Maosong Cao, Kun Chen, Lun Du, Mingliang Gong, Zhuochen Gong, Yanmei Gu, Jiaqi Hu, Zenan Huang, Zhenzhong Lan, Chengxi Li, Chongxuan Li, Jianguo Li, Zehuan Li, Huabin Liu, Lin Liu, Guoshan Lu, Xiaocheng Lu, Yuxin Ma, and 12 others\. 2025\.LLaDA2\.0: Scaling Up Diffusion Language Models to 100B\.*arXiv preprint*, arXiv:2512\.15745\.
- Cheng et al\. \(2026\)Shuang Cheng, Yihan Bian, Dawei Liu, Yuhua Jiang, Yihao Liu, Linfeng Zhang, Qian Yao, Zhongbo Tian, Wenhai Wang, Qipeng Guo, Kai Chen, Biqing Qi, and Bowen Zhou\. 2026\.SDAR: A Synergistic Diffusion\-AutoRegression Paradigm for Scalable Sequence Generation\.In*Findings of the Association for Computational Linguistics: ACL 2026*, pages 22058–22075\.
- Clark et al\. \(2018\)Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord\. 2018\.Think you have solved question answering? try arc, the ai2 reasoning challenge\.*arXiv preprint*, arXiv:1803\.05457\.
- Cobbe et al\. \(2021\)Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman\. 2021\.Training Verifiers to Solve Math Word Problems\.*arXiv preprint*, arXiv:2110\.14168\.
- Dao and Gu \(2024\)Tri Dao and Albert Gu\. 2024\.Transformers are SSMs: generalized models and efficient algorithms through structured state space duality\.In*Proceedings of the 41st International Conference on Machine Learning*\.
- Dong et al\. \(2024\)Juechu Dong, Boyuan Feng, Driss Guessous, Yanbo Liang, and Horace He\. 2024\.Flex Attention: A Programming Model for Generating Optimized Attention Kernels\.*arXiv preprint*, arXiv:2412\.05496\.
- Fu et al\. \(2026\)Yonggan Fu, Lexington Whalen, Abhinav Garg, Chengyue Wu, Maksim Khadkevich, Nicolai Oswald, Enze Xie, Daniel Egert, Sharath Turuvekere Sreenivas, Shizhe Diao, Chenhan D\. Yu, Ye Yu, Weijia Chen, Sajad Norouzi, Jingyu Liu, Shiyi Lan, Ligeng Zhu, Jin Wang, Jindong Jiang, and 7 others\. 2026\.Nemotron\-Labs\-Diffusion: A Tri\-Mode Language Model Unifying Autoregressive, Diffusion, and Self\-Speculation Decoding\.In*Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing*, pages 54868–54887\.
- Hendrycks et al\. \(2021\)Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt\. 2021\.Measuring Mathematical Problem Solving With the MATH Dataset\.*Thirty\-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track \(Round 2\)*\.
- Hou and Kwok \(2026\)Kai Syun Hou and James Kwok\. 2026\.Rethinking the Generation Order of Block Diffusion Language Models\.*arXiv preprint*, arXiv:2607\.24306\.
- Lahoti et al\. \(2026\)Aakash Lahoti, Kevin Y\. Li, Berlin Chen, Caitlin Wang, Aviv Bick, J\. Zico Kolter, Tri Dao, and Albert Gu\. 2026\.Mamba\-3: Improved Sequence Modeling using State Space Principles\.In*Proceedings of The Fourteenth International Conference on Learning Representations*\.
- Lewkowycz et al\. \(2022\)Aitor Lewkowycz, Anders Johan Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Venkatesh Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman\-Solo, Yuhuai Wu, Behnam Neyshabur, Guy Gur\-Ari, and Vedant Misra\. 2022\.Solving Quantitative Reasoning Problems with Language Models\.In*Proceedings of the Thirty\-sixth Conference on Neural Information Processing Systems*\.
- Liquid AI \(2025\)Liquid AI\. 2025\.LFM2 Technical Report\.*arXiv preprint*, arXiv:2511\.23404\.
- Liquid AI \(2026a\)Liquid AI\. 2026a\.[Introducing LFM2\.5: The Next Generation of On\-Device AI](https://www.liquid.ai/blog/introducing-lfm2-5-the-next-generation-of-on-device-ai)\.*Liquid AI Blog*\.
- Liquid AI \(2026b\)Liquid AI\. 2026b\.[LFM2\.5\-350M: No Size Left Behind](https://www.liquid.ai/blog/lfm2-5-350m-no-size-left-behind)\.*Liquid AI Blog*\.
- Nie et al\. \(2025\)Shen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang, Jingyang Ou, Jun Hu, JUN ZHOU, Yankai Lin, Ji\-Rong Wen, and Chongxuan Li\. 2025\.Large Language Diffusion Models\.In*Proceedings of The Thirty\-ninth Annual Conference on Neural Information Processing Systems*\.
- NVIDIA \(2025\)NVIDIA\. 2025\.NVIDIA Nemotron 3: Efficient and Open Intelligence\.*arXiv preprint*, arXiv:2512\.20856\.
- Pyatkin et al\. \(2025\)Valentina Pyatkin, Saumya Malik, Victoria Graf, Hamish Ivison, Shengyi Huang, Pradeep Dasigi, Nathan Lambert, and Hanna Hajishirzi\. 2025\.Generalizing Verifiable Instruction Following\.In*Proceedings of the 39th Annual Conference on Neural Information Processing Systems*\.
- Rein et al\. \(2024\)David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R\. Bowman\. 2024\.GPQA: A Graduate\-Level Google\-Proof Q&A Benchmark\.In*Proceedings of the First Conference on Language Modeling*\.
- Sahoo et al\. \(2024\)Subham Sekhar Sahoo, Marianne Arriola, Yair Schiff, Aaron Gokaslan, Edgar Marroquin, Justin T Chiu, Alexander Rush, and Volodymyr Kuleshov\. 2024\.Simple and Effective Masked Diffusion Language Models\.In*Proceedings of The Thirty\-eighth Annual Conference on Neural Information Processing Systems*\.
- Samuel and Charpentier \(2026\)David Samuel and Lucas Georges Gabriel Charpentier\. 2026\.Dual\-objective Language Models: Training Efficiency Without Overfitting\.In*Proceedings of the Fourteenth International Conference on Learning Representations*\.
- Suzgun et al\. \(2023\)Mirac Suzgun, Nathan Scales, Nathanael Schärli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc Le, Ed Chi, Denny Zhou, and Jason Wei\. 2023\.Challenging BIG\-Bench Tasks and Whether Chain\-of\-Thought Can Solve Them\.In*Findings of the Association for Computational Linguistics: ACL 2023*, pages 13003–13051\.
- Team \(2026\)Qwen Team\. 2026\.[Qwen3\.5: Towards Native Multimodal Agents](https://qwen.ai/blog?id=qwen3.5)\.
- Vaswani et al\. \(2017\)Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N\. Gomez, Łukasz Kaiser, and Illia Polosukhin\. 2017\.Attention is all you need\.In*Proceedings of the 31st International Conference on Neural Information Processing Systems*, page 6000–6010\.
- Wang et al\. \(2025\)Boxin Wang, Chankyu Lee, Nayeon Lee, Sheng\-Chieh Lin, Wenliang Dai, Yang Chen, Yangyi Chen, Zhuolin Yang, Zihan Liu, Mohammad Shoeybi, Bryan Catanzaro, and Wei Ping\. 2025\.Nemotron\-Cascade: Scaling Cascaded Reinforcement Learning for General\-Purpose Reasoning Models\.*arXiv preprint*, arXiv:2512\.13607\.
- Wang et al\. \(2024\)Yubo Wang, Xueguang Ma, Ge Zhang, Yuansheng Ni, Abhranil Chandra, Shiguang Guo, Weiming Ren, Aaran Arulraj, Xuan He, Ziyan Jiang, Tianle Li, Max Ku, Kai Wang, Alex Zhuang, Rongqi Fan, Xiang Yue, and Wenhu Chen\. 2024\.MMLU\-Pro: A More Robust and Challenging Multi\-Task Language Understanding Benchmark\.In*Proceedings of the Thirty\-eight Conference on Neural Information Processing Systems: Datasets and Benchmarks Track*\.
- Wu et al\. \(2026a\)Chengyue Wu, Hao Zhang, Shuchen Xue, Shizhe Diao, Yonggan Fu, Zhijian Liu, Pavlo Molchanov, Ping Luo, Song Han, and Enze Xie\. 2026a\.Fast\-dLLM v2: Efficient Block\-Diffusion LLM\.In*Proceedings of The Fourteenth International Conference on Learning Representations*\.
- Wu et al\. \(2026b\)Chengyue Wu, Hao Zhang, Shuchen Xue, Zhijian Liu, Shizhe Diao, Ligeng Zhu, Ping Luo, Song Han, and Enze Xie\. 2026b\.Fast\-dLLM: Training\-free Acceleration of Diffusion LLM by Enabling KV Cache and Parallel Decoding\.In*Proceedings of the Fourteenth International Conference on Learning Representations*\.
- Yang et al\. \(2025\)Songlin Yang, Jan Kautz, and Ali Hatamizadeh\. 2025\.Gated Delta Networks: Improving Mamba2 with Delta Rule\.In*Proceedings of The Thirteenth International Conference on Learning Representations*\.
- Yang et al\. \(2024\)Songlin Yang, Bailin Wang, Yikang Shen, Rameswar Panda, and Yoon Kim\. 2024\.Gated Linear Attention Transformers with Hardware\-Efficient Training\.In*Proceedings of the 41st International Conference on Machine Learning*, pages 56501–56523\.
- Ye et al\. \(2025\)Jiacheng Ye, Zhihui Xie, Lin Zheng, Jiahui Gao, Zirui Wu, Xin Jiang, Zhenguo Li, and Lingpeng Kong\. 2025\.Dream 7B: Diffusion Large Language Models\.*arXiv preprint*, arXiv:2508\.15487\.
- Yu et al\. \(2026\)Yifan Yu, Yuqing Jian, Junxiong Wang, Zhongzhu Zhou, Donglin Zhuang, Xinyu Fang, Xiaoxia Wu, Qingyang Wu, Shuaiwen Leon Song, Tri Dao, Ben Athiwaratkun, James Zou, Fan Lai, and Chenfeng Xu\. 2026\.[Introspective Diffusion Language Models](https://openreview.net/forum?id=dlfy3gypHg)\.In*Proceedings of the Third Conference on Language Modeling*\.
- Zhu et al\. \(2026\)Yuchen Zhu, Jing Shi, Chongjian Ge, Hao Tan, Yiran Xu, Wanrong Zhu, Jason Kuen, Koustava Goswami, Rajiv Jain, Yongxin Chen, Molei Tao, and Jiuxiang Gu\. 2026\.FLARE: Diffusion for Hybrid Language Model\.*arXiv preprint*, arXiv:2606\.01774\.

## Appendix ATraining and Transfer Details

### A\.1More details of our training recipe

For data processing, we employ sequence packing based on[Wu et al\. \(2026a\)](https://arxiv.org/html/2611.33919#bib.bib28), but avoid fragmenting training samples in order to mitigate minibatch\-size variance\. Raw samples are first right\-padded with\[eos\]tokens so that their lengths become divisible by the target block size\. These\[eos\]\-padded samples are then iteratively appended to form clean training sequences until the defined maximum training length is reached\. Any remaining space that none of the available\[eos\]\-padded samples can fit is filled with\[pad\]tokens\.

Along with sequence packing, we construct special attention masks \(i\.e\., document masks\) for the packed samples to prevent data leakage across samples\. Since all raw samples are properly right\-padded with\[eos\]tokens from the start, these document masks integrate naturally with the blockwise diffusion mask without affecting the overall blockwise structure\.

For the training of the Diffusion\-based Gated Convolution, we build the required blockwise indices and gather the corresponding values to condition each perturbed block on its clean context\. Moreover, because these blockwise indices are fixed to a predefined maximum training length, we cache and reuse these tensors throughout training\.

### A\.2Training Configurations

We use a fixed block size of 32 and extend each position in the diffusion\-based gated convolution layers to at most two future positions\. Within this blockwise setting, masking warm\-up is applied for GQA layers with sub\-block size increasing from 2 to 32 during the second half of the warm\-up steps\. For the training objectives, we increaseα\\alphafrom 0 to 0\.5 over the first half of the warm\-up steps\. Meanwhile,ρ\\rhofollows the full training schedule: it remains at 0\.5 for the first 50% of total training steps and then gradually increases to 0\.8 over the remaining 50% to encourage higher ground\-truth probabilities\.

Models are trained for four epochs with a global batch size of 256, using AdamW and a cosine learning\-rate schedule initialized at2×10−52\\times 10^\{\-5\}for the 1\.2B scale and5×10−55\\times 10^\{\-5\}for the 350M scale\. The first 10% of training steps are allocated to warm\-up\. Following standard SFT, the loss is computed only on response tokens\. In addition, FlexAttention[Dong et al\. \(2024\)](https://arxiv.org/html/2611.33919#bib.bib8)is applied to accelerate training with sparse blockwise attention masks\. LFM\-SFT uses standard padded SFT, while DiCALM uses sequence packing\.

## Appendix BBenchmarks and speedup evaluation

##### Benchmarks:

Our experiments employ standard benchmarks, including: MATH500[Hendrycks et al\. \(2021\)](https://arxiv.org/html/2611.33919#bib.bib10), using the 4\-shot Minerva\-style setting[Lewkowycz et al\. \(2022\)](https://arxiv.org/html/2611.33919#bib.bib13); GSM8K[Cobbe et al\. \(2021\)](https://arxiv.org/html/2611.33919#bib.bib6), using the 5\-shot setting; IFBench[Pyatkin et al\. \(2025\)](https://arxiv.org/html/2611.33919#bib.bib19), using the 0\-shot setting; BBH[Suzgun et al\. \(2023\)](https://arxiv.org/html/2611.33919#bib.bib23), using the 0\-shot chain\-of\-thought setting; GPQA\-Diamond[Rein et al\. \(2024\)](https://arxiv.org/html/2611.33919#bib.bib20), using the 5\-shot setting in generative mode; ARC\-Challenge[Clark et al\. \(2018\)](https://arxiv.org/html/2611.33919#bib.bib5), using the 0\-shot setting in generative mode; and MMLU\-Pro[Wang et al\. \(2024\)](https://arxiv.org/html/2611.33919#bib.bib27), using the 5\-shot setting\.

##### Speed evaluation:

Each model is first warmed up using three generation runs on separate input prompts\. These warm\-up runs serve only to stabilize execution\. For each benchmark dataset, decoding speed is then measured on 100 input prompts using a batch size of 1 and a maximum generation length of 1,024 new tokens\. All speed experiments are run on one NVIDIA H100 80GB GPU, applying eager attention for GQA layers\. We time only the "model\.generate" call\. For each model we compute the throughput \(tokens per second\), defined as the total number of generated tokens divided by the measured wall\-clock time\. We then report the speedup, defined as the ratio of our DiCALM’s throughput to the LFM\-SFT’s throughput\. We additionally report tokens per forward pass \(TPF\), computed as the total number of generated tokens divided by the number of model forward passes\. Each setting is repeated three times, and we report the average results\.

相似文章

PreDiff-LM: 预训练离散掩码扩散语言建模与混合注意力

arXiv cs.AI

PreDiff-LM 提出了一种混合注意力机制,该机制对提示令牌保持因果注意力,对掩码目标令牌使用双向注意力,从而使得预训练自回归模型能够适应离散掩码扩散语言建模,在困惑度和下游任务上相较于先前的扩散基线取得了改进。

Retrofitting Linear Attention into Diffusion Language Models

arXiv cs.LG

This paper introduces block-hybrid attention, which combines exact softmax attention within active denoising blocks and linear attention over previous blocks, to accelerate inference in pretrained diffusion language models. The authors retrofit this hybrid attention into LLaDA 2.1, achieving up to 1.7x higher decoding throughput with minimal post-training.

ALoDLM:自适应循环扩散语言模型

Hugging Face Daily Papers

ALoDLM 为扩散语言模型引入了 token 自适应的潜在循环机制,将额外计算分配给难以预测的 token,并通过条件负 ELBO 联合学习预测与计算分配,在 1.7B 和 8B 参数规模下、于十一项基准测试中均优于其他 DLM 和自回归基线模型。