Manuscript Offprint

arXiv:2610.05894

Noise Out, Bias In: Targeted Bias Injection in Diffusion Language Models via Closed-Loop Activation Steering

Sarim Hashmi, Mukul Ranjan, Abdelrahman Elsayed, Muhammad Umer Sheikh, Fahad Shamshad, Nils Lukas

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Masked diffusion language models (dLLMs) generate text by iteratively denoising masked positions, re-predicting each token multiple times before it is committed. An autoregressive decoder exposes an answer's distribution once, at the step that commits it; a dLLM exposes it at every denoising step before commitment, and we show that an adversary can exploit this. Since an answer remains open to revision over many denoising steps, an adversary with access to internal activations can watch how likely the model is to produce a chosen answer and adjust the intervention accordingly. Building on this observation, we study targeted bias injection, an attack that steers a frozen dLLM toward a demographic answer selected by the adversary. The attack uses a simple proportional-integral (PI) controller that tracks the target-answer probability during denoising and adapts the strength of a steering vector on the fly. On ambiguous BBQ questions where the correct answer is abstention, our attack raises LLaDA-8B-Instruct's preference for the targeted group from 1.8 to 16.7 percentage points, more than three times the strongest fixed-strength steering baseline, and on SocialStigmaQA it raises the selection of stigmatizing answers from 17.6% to 58.1%. Fitted to other demographic targets, the same attack shifts answers by up to 37 percentage points, and each attack takes about 40 minutes on one GPU. On the primary target, feedback is what makes the attack work: constant steering at the same average strength over the token-committing steps produces a far smaller shift while corrupting nearly three times as many outputs, and a constant strength set separately for each example still falls well short. Our findings identify the denoising trajectory as a new control channel in dLLMs and call for bias audits that examine the serving stack rather than the frozen model alone. Our code is publicly available on GitHub.

Warning: This paper contains examples of stereotyped and stigmatizing content about demographic groups.

1 INTRODUCTION

Diffusion large language models (dLLMs) generate text by iteratively denoising a masked sequence instead of predicting one token after another (Li et al., 2022; Austin et al., 2021; Lou et al., 2024; Sahoo et al., 2024). Open models such as LLaDA (Nie et al., 2025), Dream (Ye et al., 2025), and LLaDA-MoE (Zhu et al., 2025) now match autoregressive models of similar scale, which makes them candidates for the same uses, from customer-facing assistants (Brynjolfsson et al., 2025) to hiring and other screening decisions (Burema et al., 2026). Because they are trained on similar corpora and instruction-tuned in similar ways (Ouyang et al., 2022), there is no reason to expect them to be any fairer. Autoregressive LLMs carry stereotypes from their training data into their answers (Thaler et al., 2026; Nadeem et al., 2021; Li et al., 2020; Parrish et al., 2022), in free generation (Wan & Chang, 2025; Pan et al., 2025; Wang et al., 2026) as much as in question answering (Jin et al., 2025) and across languages (Mitchell et al., 2025; Saeed et al., 2026; Gamboa et al., 2025), and alignment

(a) Dose varies by example

(b) Target probability

(c) Controller command

Figure

Figure 1: Feedback assigns each example its own steering strength. Primary Black-target PI run on LLaDA-8B-Instruct, 1,200 sequences, split by strict outcome. (a) Each point is one sequence: its target probability after the first controlled step against its mean command over steps 1–32; the dashed line is the effort-matched constant. (b,c) Mean target probability and command per step with 95% bands. Shading marks steps after the last token commits.

removes explicit bias more reliably than the implicit associations behind it (Bai et al., 2025; Zhao et al., 2025b). The same pattern has already been seen in dLLMs. On an income-prediction task, TrustLDM (Mo et al., 2026) finds gender disparities in both LLaDA and Dream, and a malicious context makes them worse.

Audits of this kind measure the bias that training leaves in a model's weights. Bias can also be added later, at inference time, by whoever controls the model's inputs or its serving stack. For autoregressive LLMs, crafted prompts can pull answers toward a chosen demographic group (Zhao et al., 2025a), and so can a steering vector added to the residual stream (Wang & Shu, 2024). The second route goes through the same forward hooks that activation steering (Turner et al., 2023; Rimsky et al., 2024; Li et al., 2023; Zou et al., 2023; Arditi et al., 2024; Rodríguez et al., 2025; Suau et al., 2024) uses for benign control and FairSteer (Li et al., 2025) uses for debiasing, and it leaves the weights and the user's prompt exactly as they were, so an audit of the checkpoint or of the prompt pipeline finds nothing. Whether a deployed system is biased therefore depends on its serving stack as well as its checkpoint, and for dLLMs that stack has not been examined at all.

Examining it is not a matter of directly using the autoregressive attack, because the two decoders give an attacker different information. Nguyen et al. (2026) have shown that activation steering is a control problem. Here the output is the probability of the target answer at the unresolved position, and the input is the steering strength α\alpha. An autoregressive model exposes that probability only when it commits the token, so α\alpha has to be chosen before generation, and the steering methods proposed so far for dLLMs (Shnaidman et al., 2026; Avrahami & Nachmani, 2026; Zhou et al., 2026) keep this open-loop form. Open-loop control presumes a known response, and here there is none. How far a given α\alpha moves the answer depends on the example's initial leaning toward the target and on its sensitivity to the direction, and neither is visible until the intervention is applied. A single α\alpha is therefore too small for the resistant examples or large enough to break the output of the others, and even an α\alpha chosen separately for each example in advance falls well short of feedback. A masked dLLM removes the constraint behind open-loop control. It re-predicts the unresolved answer position at every denoising step until it commits, so the target probability can be measured after each intervention and the next α\alpha chosen from it. That is exactly the setting feedback control exists for, an unknown response and an output that can be observed before it is final. The controller pushes where the answer resists and eases off as it approaches the setpoint (see Figure 1), and with integral action it converges to the α\alpha each example needs (Section 3).

This paper studies that attack, which we call targeted bias injection. An adversary with gray-box access to a deployed dLLM's residual stream steers its answers to ambiguous questions, whose correct answer is abstention, toward a demographic group of its choice and away from the question's other demographic option, the comparator (see Figure 2). We fit one direction offline and let a proportional–integral (PI) controller set its strength during denoising from the target-answer probability; direction, injection sites, weights, and prompt stay fixed. We evaluate on ambiguous questions from BBQ (Parrish et al., 2022) and on a three-option version of SocialStigmaQA (Nagireddy et al., 2024), scoring the change in the target–comparator gap relative to the unsteered model.

(a) Closed loop (ours)

(b) Gain from feedback

Figure

Figure 2: Feedback during denoising steers a frozen model toward an unsupported demographic answer. Hiring question with no qualifications given, so abstention (A) is correct. (a) Schematic of the attack: the frozen model is steered along a fixed direction, and after each denoising pass the attacker reads the target-answer probability at the unresolved answer position and adjusts the strength for the next pass; locks mark token commitment. (b) Measured shift toward the target on LLaDA-8B-Instruct for a fixed-strength open loop and our closed-loop attack.

Our experiments ask how much bias the attack injects, whether feedback rather than a fixed strength is what makes it work, whether it transfers across targets, benchmarks, and models, and whether the same loop can serve as a defense (Section 4). Our contributions are:

  1. We identify the denoising trajectory of dLLMs as a feedback channel for inference-time attacks and introduce closed-loop targeted bias injection, a decode-time PI controller that adapts the strength of one fixed steering direction from the target-answer probability, leaving weights and prompts untouched.

  2. On LLaDA-8B-Instruct the attack raises the BBQ target–comparator gap by 14.9 (Black), 22.5 (Arab), and 37.2 (Old) percentage points and lifts stigmatizing answers on Social-StigmaQA from 17.6% to 58.1%, with no training and about 40 minutes on one GPU per target.

  3. With a control-theoretic model of the loop and effort-matched open loops across three dLLMs and seven steering baselines, we show that feedback wins exactly when no single strength serves every example, and that a tuned constant does better.

References (48)