Activation Steering for Masked Diffusion Language Models
Adi Shnaidman, Erin Feiglin, Osher Yaari, Efrat Mentel, Amit Levi, Raz Lapid
TL;DR
The paper tackles the challenge of controlling masked diffusion language models at inference time without retraining. It introduces activation steering, a lightweight framework that derives low-dimensional steering directions from a single forward pass on contrastive prompts and injects them throughout the reverse-diffusion process to steer generation. The approach is evaluated on LLaDA-8B-Instruct, showing large, reliable shifts in harmful vs. harmless behavior, with residual-stream activations—especially post-MLP residuals—being the primary conduit for control. The work demonstrates practical, interpretable, and scalable controllability for MDLMs and outlines future work to broaden applicability and robustness across architectures and configurations.
Abstract
Masked diffusion language models (MDLMs) generate text through an iterative denoising process. They have recently gained attention due to mask-parallel decoding and competitive performance with autoregressive large language models. However, effective mechanisms for inference-time control and steering in MDLMs remain largely unexplored. We present an activation-steering framework for MDLMs that computes layer-wise steering vectors from a single forward pass using contrastive examples, without simulating the denoising trajectory. These directions are applied at every reverse-diffusion step, yielding an efficient inference-time control mechanism. Experiments on LLaDA-8B-Instruct demonstrate reliable modulation of high-level attributes, with ablations examining the effects of steering across transformer sub-modules and token scope (prompt vs.\ response).
