Saved in:
Bibliographic Details
Main Authors: Shnaidman, Adi, Feiglin, Erin, Yaari, Osher, Mentel, Efrat, Levi, Amit, Lapid, Raz
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2512.24143
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915896009687040
author Shnaidman, Adi
Feiglin, Erin
Yaari, Osher
Mentel, Efrat
Levi, Amit
Lapid, Raz
author_facet Shnaidman, Adi
Feiglin, Erin
Yaari, Osher
Mentel, Efrat
Levi, Amit
Lapid, Raz
contents Masked diffusion language models (MDLMs) generate text via iterative masked-token denoising, enabling mask-parallel decoding and distinct controllability and efficiency tradeoffs from autoregressive LLMs. Yet, efficient representation-level mechanisms for inference-time control in MDLMs remain largely unexplored. To address this gap, we introduce an activation steering primitive for MDLMs: we extract a single low-dimensional direction from contrastive prompt sets using one prompt-only forward pass, and apply a global intervention on residual-stream activations throughout reverse diffusion, without performing optimization or altering the diffusion sampling procedure. Using safety refusal as a deployment-relevant case study, we find that refusal behavior in multiple MDLMs is governed by a consistent, approximately one-dimensional activation subspace. Applying the corresponding direction yields large and systematic behavioral shifts and is substantially more effective than prompt-based and optimization-based baselines. We further uncover diffusion-specific accessibility: effective directions can be extracted not only from post-instruction tokens, but also from pre-instruction tokens that are typically ineffective in autoregressive models due to causal attention. Ablations localize maximal leverage to early denoising steps and mid-to-late transformer layers, with early diffusion blocks contributing disproportionately. Finally, in an MDLM trained on English and Chinese, extracted directions transfer strongly between English and Chinese, but do not reliably generalize to an autoregressive architecture, highlighting architecture-dependent representations of safety constraints.
format Preprint
id arxiv_https___arxiv_org_abs_2512_24143
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Activation Steering for Masked Diffusion Language Models
Shnaidman, Adi
Feiglin, Erin
Yaari, Osher
Mentel, Efrat
Levi, Amit
Lapid, Raz
Computation and Language
Masked diffusion language models (MDLMs) generate text via iterative masked-token denoising, enabling mask-parallel decoding and distinct controllability and efficiency tradeoffs from autoregressive LLMs. Yet, efficient representation-level mechanisms for inference-time control in MDLMs remain largely unexplored. To address this gap, we introduce an activation steering primitive for MDLMs: we extract a single low-dimensional direction from contrastive prompt sets using one prompt-only forward pass, and apply a global intervention on residual-stream activations throughout reverse diffusion, without performing optimization or altering the diffusion sampling procedure. Using safety refusal as a deployment-relevant case study, we find that refusal behavior in multiple MDLMs is governed by a consistent, approximately one-dimensional activation subspace. Applying the corresponding direction yields large and systematic behavioral shifts and is substantially more effective than prompt-based and optimization-based baselines. We further uncover diffusion-specific accessibility: effective directions can be extracted not only from post-instruction tokens, but also from pre-instruction tokens that are typically ineffective in autoregressive models due to causal attention. Ablations localize maximal leverage to early denoising steps and mid-to-late transformer layers, with early diffusion blocks contributing disproportionately. Finally, in an MDLM trained on English and Chinese, extracted directions transfer strongly between English and Chinese, but do not reliably generalize to an autoregressive architecture, highlighting architecture-dependent representations of safety constraints.
title Activation Steering for Masked Diffusion Language Models
topic Computation and Language
url https://arxiv.org/abs/2512.24143