FourierSampler: Unlocking Non-Autoregressive Potential in Diffusion Language Models via Frequency-Guided Generation
Siyang He, Qiqi Wang, Xiaoran Liu, Hongnan Ma, Yiwei Shi, Yuerong Song, Ying Zhu, Tianyi Liang, Zengfeng Huang, Ziwei He, Xipeng Qiu
TL;DR
This work analyzes the frequency-domain properties of diffusion LLMs (dLLMs) and finds that low-frequency hidden-state components capture global structure while high-frequency components encode local details. Building on this, it introduces FourierSampler, a frequency-guided decoding strategy that uses a dynamic sliding window to move from structure to detail, via a Translated Filtering Score and an Adaptive Fourier Calibrator to balance guidance with model confidence. Across both fully bidirectional LLaDA and block-wise SDAR architectures, FourierSampler yields consistent performance gains on math and code tasks, surpassing similarly sized autoregressive models in several settings and achieving substantial improvements (e.g., up to 20.4% on MBPP and 45.1% on SDAR-1.7B-Chat). The results support an endogenous, frequency-based approach to unlock non-autoregressive potential in dLLMs and highlight the practical value of spectral-guided decoding for complex generation tasks.
Abstract
Despite the non-autoregressive potential of diffusion language models (dLLMs), existing decoding strategies demonstrate positional bias, failing to fully unlock the potential of arbitrary generation. In this work, we delve into the inherent spectral characteristics of dLLMs and present the first frequency-domain analysis showing that low-frequency components in hidden states primarily encode global structural information and long-range dependencies, while high-frequency components are responsible for characterizing local details. Based on this observation, we propose FourierSampler, which leverages a frequency-domain sliding window mechanism to dynamically guide the model to achieve a "structure-to-detail" generation. FourierSampler outperforms other inference enhancement strategies on LLADA and SDAR, achieving relative improvements of 20.4% on LLaDA1.5-8B and 16.0% on LLaDA-8B-Instruct. It notably surpasses similarly sized autoregressive models like Llama3.1-8B-Instruct.
