Get Started
Home
Topics
Search
Library
7 min read · Alignment · Evaluation · Added Oct 7 · Paper published Oct 5, 2026

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

Source: research paper via Hugging Face Daily Papers
Diffusion LLMs expose answer probabilities at every denoising step, and that measurement channel is a weapon: a PI controller reading hidden-state logits tunes activation-steering strength per example, lifting biased answer selection from 17.6% to 58.1% while leaving weights and prompts untouched — checkpoint audits miss it entirely.

TL;DR

A diffusion language model re-predicts each masked answer many times before committing it, and an attacker with hooks on the hidden state can read that running probability and tune a steering push on the fly, lifting a biased answer’s selection rate from 17.6% to 58.1% on one stigma benchmark.

Why It Matters

Masked Diffusion Language Model (dLLM)s are a newer alternative to standard left-to-right LLMs. Instead of writing one token at a time, they start from a fully masked response and run many denoising passes, re-predicting every unresolved position each pass until the sampler commits it. Open models like LLaDA and Dream now rival autoregressive peers at similar scale, so they are candidates for the same deployments (assistants, screening tools) with the same bias risks.
The standard bias-audit question is “what’s baked into the weights?” This paper asks a different one: what if the person running the serving stack silently installs a bias at inference time? Prior work on autoregressive models showed you can do this with Activation Steering: add a fixed vector to the hidden state and the model drifts toward a chosen behavior. The relevant precedent here is the Trojan activation attack (Trojan activation attack), which plants such a vector to misalign answers. Because the weights and prompt are untouched, a checkpoint audit sees nothing.
The open question for dLLMs: does the iterative denoising loop give an attacker a new lever that autoregressive models don’t have?

How It Works

The key observation: an autoregressive model only reveals the answer distribution once, at the moment it commits the token. A dLLM reveals it at every denoising step before commitment. That means an attacker can watch how likely the model is to produce the attacker’s chosen answer, and adjust the steering strength between passes based on what they see. This turns a one-shot injection problem into a feedback-control problem.
The setup has two parts. Offline, the attacker fits one unit vector in the Residual stream that separates “answers naming the target demographic” from “answers naming the comparator demographic,” using the difference of mean activations on held-out contrast pairs (Difference-of-means direction). This vector stays fixed.
Online, during denoising, a PI controller reads the probability the model currently assigns to the target answer letter at the unresolved answer position. It computes an error (how far below a setpoint of 0.9 the probability sits), accumulates that error over steps, and sets the next steering strength as a weighted sum of the current error and the running total. The strength is clipped to a bound and the integral term is frozen when the command saturates, a standard Integrator anti-windup guard. The scaled vector is added at every block and every position during the next forward pass. Weights, prompt, and sampler are untouched.
Intuitively: on an example that resists, the error stays large, the integral grows, and the push gets stronger. On an example that is already converging, the push eases off. The theory shows that under a local linear model of how probability responds to strength, the integral state converges to exactly the strength that particular example needs, without the attacker knowing it in advance.
v_hat = fit_direction(held_out_pairs) # offline, unit vector at one block I, p_prev = 0, probe_unsteered(prompt) # initial target-answer probability for t in range(T): e = setpoint - p_prev # tracking error alpha = clip(Kp*e + Ki*(I+e), 0, alpha_max) if 0 <= Kp*e + Ki*(I+e) <= alpha_max: I += e # anti-windup logits = model(prompt, y, hook=add(alpha * v_hat)) p_prev = logits[answer_pos].softmax()[target_letter] y = commit_and_remask(logits)

What They Found

On BBQ benchmark ambiguous questions (where abstaining is correct) with LLaDA-8B-Instruct as the target model, the unsteered target-minus-comparator gap for Black-targeted questions is 1.8 pp. The closed-loop attack raises it to 16.7 pp. The strongest fixed-strength baseline across seven prior steering methods reaches only 4.6 pp. Attack cost: about 40 minutes on one GPU per target, no training.
The critical ablation isolates feedback from everything else. The authors run an “effort-matched open loop” that uses the same direction, same injection sites, and the controller’s own mean strength (3.28) as a constant. It reaches a gap of only 3.5 pp while corrupting 20.8% of outputs (vs 7.8% for feedback). Even a hindsight oracle, which gives each example the controller’s own mean strength for that specific example, reaches only 8.4 pp. So most of the gain comes from varying strength during denoising, not from choosing a good per-example strength up front. This matches the paper’s theoretical claim: the strength each example needs is example-specific, and no single constant serves all of them.
On SocialStigmaQA, recast with Yes/No/Can’t-tell options, selection of stigmatizing answers rises from 17.6% to 58.1%. The direction fit on non-race items transfers to race-stigma prompts. Fitting new directions for other demographic targets on BBQ shifts answers by up to 37.2 pp (Old target).
Transfer across models is mixed. On Dream-7B the attack works but by a smaller margin, and its lead over baselines isn’t statistically resolved. On LLaDA-MoE, a tuned constant actually beats feedback by 2.3 pp, suggesting feedback pays off mainly when the strength each example needs varies widely across the dataset.
Run with a zero setpoint, the same loop acts as a bias suppressor, but the authors only test this where the unsteered bias was already near zero, so it shows stability, not that it reverses large existing bias.

What’s Useful

If you serve a dLLM, treat the inference stack as part of your trust boundary. The attack requires hooks on the residual stream, the same interface interpretability libraries use. Weights and prompts stay clean. A checkpoint audit will miss this entirely. The paper’s suggested signature: a compromised endpoint will show lower abstention on ambiguous probe questions and a bump in invalid outputs. Both are observable on a fixed probe set without knowing which group is being targeted.
If you’re building bias audits, probe the served endpoint, not just the model artifact. The paper’s framing (“bias is a property of the deployed system”) is the actionable claim. Audits that stop at the checkpoint can be defeated by anyone with forward-hook access during serving.
If you work on activation steering more broadly, the mechanism-level lesson is that iterative decoders give you a measurement channel that autoregressive models don’t. Closed-loop control beats open-loop control exactly when the required intervention strength varies a lot across inputs. On models or targets where one strength serves everyone well (the LLaDA-MoE case here), a tuned constant is enough and feedback adds nothing. Worth testing which regime your setting falls into before adding controller complexity.
Code is on GitHub.

Caveats

Controller gains were tuned on 100 of the 400 primary BBQ items; the authors rerun on the held-out 300 and the ranking holds, but several per-target bounds were also picked on evaluation data. The attack is scored on multiple-choice letter outputs where the target is a single token; free-form generation, where there is no single probability to track, is untested. The SocialStigmaQA result shows transfer of answer-letter control, not a mechanism specific to racial stigma, since the attack moves answers even on prompts without the tested descriptors. The theoretical analysis is a local linear approximation that holds only before the answer token commits. Answer position matters a lot: the Black-target gap is 39.5 pp when the correct answer sits at position A but 5.3 pp averaged over B and C, which is why every number here uses balanced rotations. Finally, three race targets (Asian, Latino, White) produced invalid outputs above the 15% threshold and are reported as failed attacks, not successes.
Topics
Alignment
Evaluation
NLP
Alignment
Evaluation
NLP
Up next in Alignment
Visual Grounding Safety in Vision-Language Models
nanoMuse: An Open-Source Personal Agent for Every Device You Own
Don't miss new content
Log in to follow topics and personalize your feed.
Related topics you might like
Evaluation209 episodes
Alignment20 episodes
NLP145 episodes