arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.15029cs.LG
收藏

掩码-模式位置增强:扩散大语言模型的无训练长上下文外推

Mask-Pattern Position Augmentation: Training-Free Long-Context Extrapolation for Diffusion LLMs

International Institute of Information Technology, Hyderabad(海得拉巴国际信息技术学院)

Gaurav Sarkar, Syed Affan Daimi

AI总结:

该研究针对扩散大语言模型的长上下文外推问题,提出MPPA方法,通过结合线性插值与累积掩码密度偏移量,在LLaDA-8B-Instruct上实现2倍窗口扩展,降低困惑度并保持检索准确率。

摘要:

扩散大语言模型(dLLM)通过迭代地用双向注意力解掩码的token进行生成,但旋转位置嵌入(RoPE)仍将其限制在固定的预训练窗口内。现有的无训练外推方法,特别是LongLLaDA,从自回归(AR)模型中复制基于NTK的RoPE缩放,并在每个位置和去噪步骤应用仅与长度相关的静态变换。这种移植忽略了dLLM特有的信号:部分解码序列的演化掩码模式。我们提出掩码-模式位置增强(MPPA)。MPPA将索引线性插值到预训练窗口,然后添加来自累积掩码密度的每个位置、每个步骤的偏移量。该偏移量恢复了插值所破坏的旋转相位分辨率,并且随着token被确定而缩小,因此后期步骤几乎看到干净的插值几何结构。在LLaDA-8B-Instruct上,当窗口为其4096-token的两倍时,MPPA将困惑度从标准解码下的19.51降低到8192 token时的3.12,低于窗口内的数值,同时实现100%的密码检索率和不变的干草堆中针的准确率。这些初步的2倍结果表明,基于掩码的位置工程是一种扩散原生的长上下文生成路径。

英文摘要:

Diffusion large language models (dLLMs) generate by iteratively unmasking tokens with bidirectional attention, but rotary position embeddings (RoPE) still confine them to a fixed pretraining window. Existing training-free extrapolation, notably LongLLaDA, copies NTK-based RoPE scaling from autoregressive (AR) models and applies one static, length-only transform at every position and denoising step. That transplant ignores a signal unique to dLLMs: the evolving mask pattern of the partially decoded sequence. We propose Mask-Pattern Position Augmentation (MPPA). MPPA linearly interpolates indices into the pretrained window, then adds a per-position, per-step offset from cumulative mask density. The offset restores rotary phase resolution that interpolation collapses, and it shrinks as tokens are committed, so late steps see near-clean interpolated geometry. On LLaDA-8B-Instruct at twice its 4096-token window, MPPA reduces perplexity from 19.51 under standard decoding to 3.12 at 8192 tokens, below the in-window figure, with 100% passkey retrieval and unchanged needle-in-a-haystack accuracy. These preliminary $2\times$ results motivate mask-conditioned position engineering as a diffusion-native path to long-context generation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑