Skip to content

The researchers propose a closed-loop bias injection attack that can increase the BBQ target gap of LLaDA-8B from 1.8 to 16.7 percentage points.Noise Out, Bias In: Targeted Bias Injection in Diffusion Language Models via Closed-Loop Activation Steering

arXiv: Interpretability· arXiv:2610.05894· Sarim Hashmi, Mukul Ranjan, Abdelrahman Elsayed, Muhammad Umer Sheikh, Fahad Shamshad, Nils Lukas·Indexed by this site · 2026-10-06· Originally publishedSelected AttacksSelectedAttention38

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

The authors use denoising feedback to dynamically steer the diffusion model's residual stream, improving the bias gap by 14.9 percentage points on the BBQ Black target of LLaDA-8B.

Threat modelThe attacker has gray-box access to a deployed frozen dLLM and controls a component in the service stack that can register forward hooks on the residual stream at inference time. The attacker reads residual activations, adds bounded offsets through hooks, and observes the intermediate answer token probabilities used by the sampler for re-masking, but cannot inspect weights, compute gradients, or train; prompts, weights, and the sampler are not modified.

Questions
Diffusion language models progressively expose intermediate prediction probabilities over multiple denoising steps, and the risk of targeted bias injection in their inference serving stack when facing attackers with gray-box forward hook permissions has not been explored.
Methods
Proposes closed-loop targeted bias injection, using a proportional-integral (PI) controller to track the target probability of undecided answer positions during denoising and dynamically adaptively adjust the intensity of a fixed steering vector injected into the residual stream.
Experiments and results
On LLaDA-8B's BBQ Black target, raises the bias gap to 16.7 pp, and on SocialStigmaQA raises the biased selection rate to 58.1%, but underperforms the open-loop baseline on LLaDA-MoE.
Limitations and future work
Only tests multiple-choice reading of letter probabilities; only covers 3 open-source diffusion models; some racial targets have excessively high invalid output rates causing attack failure; theoretical analysis is based on a local linear response assumption.
Experimental setupLLaDA-8B-Instruct、Dream-v0-Instruct-7B et al. · BBQ、SocialStigmaQA · Target rate (Tgt.)、Comparator rate (Cmp.) et al.
Evaluated models
LLaDA-8B-InstructDream-v0-Instruct-7BLLaDA-MoE-7B-A1B-Instruct
Benchmarks
BBQSocialStigmaQA
Metrics
Target rate (Tgt.)Comparator rate (Cmp.)Abstention rate (Abst.)Invalid rate (Inv.)Target-comparator gap (Gap)Gap change (∆g)
AI summaryand selection rationaleThe researchers propose a targeted bias injection attack against masked diffusion language models (dLLMs): because dLLMs re-predict the same position multiple times before submitting an answer, an attacker can read the target answer probability during the denoising process and use a proportional-integral (PI) controller to adjust the strength of a fixed steering vector in real time, thereby pushing the model toward a specified demographic group without modifying weights or prompts. On LLaDA-8B-Instruct, the attack increases the gap between the target and control options on BBQ ambiguous questions (where the correct answer is to abstain) from 1.8 to 16.7 percentage points, more than three times the strongest fixed-strength baseline; on SocialStigmaQA, it raises the selection rate of stigmatized answers from 17.6% to 58.1%. When the same attack is used with other demographic targets, it can produce shifts of up to 37 percentage points, with each target requiring about one GPU for 40 minutes. Ablation experiments show that the gain comes from the feedback itself: a fixed open-loop with the same average strength as the controller yields only a 3.5 percentage point gap but produces 20.8% invalid outputs, while the closed-loop yields 7.8%.

The researchers propose a targeted bias injection attack against masked diffusion language models (dLLMs): because dLLMs re-predict the same position multiple times before submitting an answer, an attacker can read the target answer probability during the denoising process and use a proportional-integral (PI) controller to adjust the strength of a fixed steering vector in real time, thereby pushing the model toward a specified demographic group without modifying weights or prompts. On LLaDA-8B-Instruct, the attack increases the gap between the target and control options on BBQ ambiguous questions (where the correct answer is to abstain) from 1.8 to 16.7 percentage points, more than three times the strongest fixed-strength baseline; on SocialStigmaQA, it raises the selection rate of stigmatized answers from 17.6% to 58.1%. When the same attack is used with other demographic targets, it can produce shifts of up to 37 percentage points, with each target requiring about one GPU for 40 minutes. Ablation experiments show that the gain comes from the feedback itself: a fixed open-loop with the same average strength as the controller yields only a 3.5 percentage point gap but produces 20.8% invalid outputs, while the closed-loop yields 7.8%.

Why it was selectedThe paper turns the denoising trajectory of diffusion language models into an attack channel, uses closed-loop control to inject demographic bias, and provides comparative results across models and defense directions.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Exploiting the intermediate probabilities exposed during multi-step denoising in diffusion models to dynamically inject demographic bias through gray-box service stack hooks.

    This paper attempts to address the security risk of targeted bias injection faced by diffusion language models (dLLMs) during the inference deployment stage.

    • Scenario and importance: Open-source diffusion language models (such as LLaDA, Dream) have matched autoregressive models of the same scale in text generation quality and are being considered for high-stakes decision-making scenarios such as recruitment screening; however, because of their similar training corpora, such models also carry the problem of social bias.
    • Shortcomings of existing methods: Previous research on bias has mostly focused on bias introduced by weight training, or open-loop interventions in autoregressive models based on prompts and fixed residual stream steering; open-loop steering presupposes knowledge of the model's response, cannot adaptively adjust intensity for different samples, and easily leads to ineffective results on stubborn samples or broken outputs on sensitive samples.
    • Core observation and hypothesis: Autoregressive models expose the prediction distribution only once when the output token is finally submitted; in contrast, masked diffusion language models repeatedly re-predict each undecided token position during denoising steps before final submission, so that internal activations and undecided answer probabilities constitute an exploitable dynamic feedback channel.
    • Proposed approach: The paper proposes a targeted bias injection method based on a closed-loop proportional-integral (PI) controller, in which the attacker continuously monitors the target option probability during denoising and dynamically adjusts the residual stream steering intensity, inducing the model to output biased answers without modifying model weights or user prompts.
    • Threat model:
      • Victim system: A frozen diffusion language model deployed by a service provider via API, which outputs answers to ambiguous questions where it should abstain.
      • Attacker knowledge: Has gray-box access, cannot view model weights, cannot compute gradients, or perform model training.
      • Attacker capability: Controls a compromised component in the service stack that can register forward hooks on the residual stream during inference, can read residual activations, inject bounded offsets through hooks, and read the intermediate answer token probabilities computed by the sampler itself; weights, prompts, and the sampler all remain unchanged.
      • Attacker goal: On ambiguous questions where the correct answer is abstention, drive the model to select the attacker-specified protected group option (target), widening the selection rate gap with the comparison option (comparator).
  2. What related research exists?

    Existing activation steering is mostly open-loop control for autoregressive models; this paper introduces the denoising trajectory as a feedback channel for closed-loop control.

    Activation steering and its control-theoretic perspective

    • Contrastive activation addition and representation engineering: ActAdd (Turner et al., 2023) and CAA (Rimsky et al., 2024) construct residual stream steering directions using prompt pairs or contrastive mean differences; ITI-C (Li et al., 2023) edits activations at the attention head level, Suau et al. (2024) uses neuron suppression (AurA), and Rodríguez et al. (2025) controls generation through optimal transport mappings (Mean-AcT, Local Gaussian AcT).
    • Trojan activation attacks: Wang & Shu (2024) implant steering vectors in autoregressive models to induce unsafe behavior; this paper's threat model adopts the service stack forward hook interface set by that work.
    • PID activation steering: Nguyen et al. (2026) treats the construction of steering vectors along network layer depth as proportional control and introduces integral and derivative terms (PID Steering); the paper notes that this work controls the static construction along network depth, whereas this paper controls the dynamic evolution along the denoising trajectory over time steps.

    Control and security attacks on diffusion language models

    • Inference control of discrete diffusion models: Shnaidman et al. (2026) removes activation components along a fixed direction during reverse diffusion to suppress refusals; Avrahami & Nachmani (2026) aligns representations with a reference sequence at each step; Zhou et al. (2026) schedules interventions based on the timing of attribute emergence; the paper notes that these methods either fix interventions before generation or use open-loop forms, without using target probabilities as feedback.
    • Adversarial attacks and defenses for diffusion language models: Wen et al. (2026) proposes DIJA using masked spans to induce jailbreaks, Ma et al. (2026) proposes MaskForge to automatically search for this structure; Zhang et al. (2025) proposes PAD to guide parallel decoding; Singh (2026) re-masks already submitted refusal tokens; Li et al. (2026) proposes DiffuGuard to defend the denoising loop; these works mainly induce harmful compliance through prompts or decoding schedules, rather than injecting demographic bias through activations.

    Social bias evaluation for language models

    • Ambiguous QA and stigma amplification benchmarks: Li et al. (2020) and BBQ (Parrish et al., 2022) test models' reliance on stereotypes through underspecified questions; SocialStigmaQA (Nagireddy et al., 2024) evaluates whether generative models amplify social stigma; Mo et al. (2026) proposes TrustLDM to evaluate bias in language diffusion models and finds that malicious contexts exacerbate bias.

    Comparison baselines and evaluation benchmarks

    • Baseline methods and datasets: The steering baselines compared in the paper's experiments include CAA, ActAdd, Mean-AcT, Local Gaussian AcT, ITI-C, AurA amplification and suppression variants, and layer-wise PID steering; the evaluation benchmarks use the BBQ ambiguous subset and the three-option version of SocialStigmaQA.

    Positioning relative to existing work

    • The authors position this paper as using the denoising trajectory of diffusion language models as a feedback channel for inference-time attacks, inducing targeted bias through closed-loop dynamic adjustment in a single direction without modifying weights, prompts, or the sampling schedule.
  3. How does the paper address this problem?

    Extract the residual mean difference direction offline; online, dynamically adjust the steering strength via a PI controller based on the stepwise predicted target answer probability.

    The paper proposes a closed-loop targeted bias injection framework. The method has offline and online components: offline, extract a single contrastive bias direction in the residual stream; online, use a proportional-integral (PI) controller during diffusion denoising steps to track the target probability of the uncommitted answer and dynamically adjust injection strength (Figure 3, Algorithm 1).

    Offline Bias Steering Direction Fitting

    • Contrastive class mean-difference direction: Use M pairs of held-out questions not involved in final evaluation, filling completions with target group option text and comparison group option text respectively, avoiding direct use of option letters to prevent direction binding to display position.
    • Layer position and normalization: Compute the mean-difference vector of residual stream activations on answer tokens between the two completion types at layer 14 (block 14), normalized by L2 norm to obtain a fixed unit direction vector v̂ (Equation 3).
    • Polarity handling: On SocialStigmaQA, fit directions separately for Yes-bias and No-bias samples on non-ethnic items, using safe answers as comparison.

    Online Probability Awareness During Denoising

    • Multiple-choice answer position monitoring: The prompt requires outputting option letter A, B, or C; the answer is at the first generated position; the attacker knows the option letter a* corresponding to the target group from item metadata.
    • Target answer probability calculation: At each denoising step t, the sensor reads unnormalized logits at the first generation position before submission and computes target letter probability pt, summing probabilities of tokens with and without space prefix; initial step p0 is obtained via a single fully masked forward pass probe.

    Proportional-Integral (PI) Control Law and Activation Injection

    • Closed-loop control law formula: At denoising step t, the controller tracks setpoint s*, computes error et = s* - pt-1 using previous step probability and cumulative error It = It-1 + et, then computes clipped steering strength:

    αt = clip(Kp et + Ki It, 0, αmax) This formula means the proportional term responds to current probability gap, the integral term responds to historical cumulative error, and when unclipped strength exceeds [0, \alpha_{\max}], cumulative error is frozen to prevent integral windup (anti-windup).

    • Residual stream injection formula: At denoising step t's forward pass, add strength times direction offset to all layers at all positions (including prompt tokens):

    hℓ(t) ← hℓ(t) + αt v̂,   ℓ = 0, …, L − 1 This formula means the fixed direction vector modulated by scalar strength αt is directly added to each layer's residual stream activations of the frozen model.

    • Operational parameter selection: On LLaDA-8B-Instruct, setpoint s* = 0.9, gains (Kp, Ki) = (3, 0.1), upper bound \alpha_{\max} = 6 (selected based on 100 calibration samples); PID variant introduces derivative term Kd = 1.

    Token Submission Mechanism and Local Linear Theoretical Response

    • Commitment Horizon: With 32-token response and 64 denoising steps, the sampler commits one token per step for the first 32 steps, then stops committing; after the first answer position is locked at its commit step, subsequent control commands cannot change that answer.
    • Local linear model inference: The authors theoretically establish a local linear model pt = \gamma pt-1 + b \alpha_t + d (Assumption 1); they prove that with constant strength, each sample has its own threshold to reach the setpoint, and when the maximum threshold exceeds the maximum strength that maintains output coherence, no single constant can accommodate all samples (Proposition 1); while the PI control law can, within parameter stability regions, make the integral state adaptively converge to each sample's threshold and eliminate steady-state error (Proposition 3).
  4. What experiments did the paper conduct?

    Improves the BBQ bias gap by up to 37.2 percentage points on LLaDA-8B, but lags behind the fixed-strength baseline on LLaDA-MoE.

    Experimental Setup

    • Models tested: Main experiments use LLaDA-8B-Instruct (32-token single-block generation, 64 denoising steps, temperature 0, low-confidence remasking); cross-model tests include Dream-v0-Instruct-7B and LLaDA-MoE-7B-A1B-Instruct (16 layers, dmodel = 2048).
    • Datasets and scale: Main task is BBQ's 400 ambiguous Black-target questions, each evaluated under 3 option rotations (1,200 prompts total); extended to Arab, Old, Asian, Latino, White targets; SocialStigmaQA uses a reconstructed three-option version (518 items, 3 rotations totaling 1,554 prompts).
    • Baseline methods: CAA, ActAdd, Mean-AcT, Local Gaussian AcT, ITI-C, AurA (amplify/suppress), open-loop tuned (α = 4), matched-mean open-loop (α = 3.28), static per-item open-loop (based on p0 and posterior oracle), layer-wise PI.
    • Metric definitions: Target selection rate Tgt. (%), comparison selection rate Cmp. (%), abstention rate Abst. (%), strict invalid output rate Inv. (%), target-comparison gap Gap (pp) = Tgt. - Cmp., and gap change relative to unsteered baseline ∆g (pp).
    • Evaluation methods: Strict parser requires output to start with an option letter followed by whitespace, punctuation, or end of string; invalid outputs are included in all metric denominators; SocialStigmaQA also includes a semantic parser.
    • Replication and confidence intervals: BBQ uses 10,000 prompt-level and item-clustered paired bootstrap for 95% confidence intervals; SocialStigmaQA uses 10,000 template-clustered bootstrap.

    Main Results

    The table below shows main evaluation results on LLaDA-8B-Instruct for the BBQ Black target (from Table 1):

    Swipe horizontally to read the table

    MethodTgt. (%)Cmp. (%)Inv. (%)Gap (pp)∆g (pp)
    Unsteered base12.811.00.01.8—
    CAA13.710.30.03.3+1.6
    ActAdd14.110.00.04.1+2.3
    AurA (amplify)22.322.30.20.0−1.8
    Open loop, tuned (α = 4)34.830.32.34.6+2.8
    Open loop, matched to PI mean (α = 3.28)22.218.720.83.5+1.7
    Decode PID (ours)29.213.28.816.0+14.2
    Decode PI (ours)30.413.87.816.7+14.9

    Note: From Table 1; the table omits Mean-AcT, Local Gaussian AcT, ITI-C, AurA (suppress), Static α per item (from p0 and hindsight), and Layer-wise PI.

    • Attack effectiveness improvement: The authors report closed-loop steering increases the target-comparison gap to 16.7 pp, more than three times the strongest fixed-strength baseline (4.6 pp), with 95% confidence intervals entirely above all baselines (Figure 6).
    • Generation quality cost: Closed-loop attacks incur some text coherence cost; PI's strict invalid output rate is 7.8% (0% for unsteered model), and all interventions except AurA suppress reduce abstention rates (i.e., baseline accuracy).
    • Calibration independence verification: The authors state that after removing the 100 calibration samples used to select gains, the gap on the remaining 300 samples remains 16.2 pp, leading baselines by at least 12.1 pp (Appendix A.5).

    Feedback Regulation and Open-Loop Ablation Comparison

    • Test content: Compare closed-loop PI controller with open-loop constant using the same direction and injection location, matched-mean open-loop, static constant based on initial probe p0, and posterior oracle static constant (Table 1).
    • Experimental results: Matched open-loop applying the controller's average strength (3.28) achieves only 3.5 pp gap and causes 20.8% output corruption; posterior oracle static constant at the same mean achieves only 8.4 pp gap with 13.4% invalid output rate; Decode PI achieves 16.7 pp with 7.8% invalid output rate.
    • Authors' interpretation: The authors believe a single constant cannot accommodate all samples; most gains come from dynamic adaptive adjustment during denoising rather than pre-assigning static strength per sample; 78% of sequences reduce the control command at least once during denoising (Appendix C.7).

    Cross-Target and Cross-Benchmark Transfer Evaluation

    • Test content: Test transfer to Arab, Old, Asian, Latino, White targets on LLaDA-8B, and transfer to SocialStigmaQA benchmark (Table 2, Table 3).
    • Experimental results: On BBQ, Arab target achieves 22.3 pp gap (∆g = +22.5 pp, invalid output rate 9.7%), Old target achieves 31.8 pp gap (∆g = +37.2 pp, invalid output rate 9.3%); on SocialStigmaQA, under strict parser PI increases biased option selection to 58.1% (∆g = +83.8 pp, invalid output rate 17.4%), while under semantic parser invalid output rate drops to 1.4% and ∆g reaches 99.9 pp.
    • Authors' interpretation: The authors believe the attack transfers effectively to other bias targets and benchmarks; but Asian (93.8% invalid), White (96.1% invalid), and Latino (59.6% invalid) are deemed attack failures due to invalid output rates exceeding the 15% threshold (Appendix C.2).

    Cross-Model Generalization and Defense Suppression Experiments

    • Test content: Test attack transfer on Dream-7B and LLaDA-MoE-7B, and test the same closed-loop controller with setpoint zero (s* = 0) as a bias suppression defense (Table 3, Section 4.5).
    • Experimental results: On Dream-7B, PI is limited by coherence-preserving strength bounds (\alpha_{\max} = 1), achieving 7.5 pp gap (∆g = +4.2 pp, invalid output rate 0.0%), leading ActAdd by 0.8 percentage points; on LLaDA-MoE, CAA achieves 25.6 pp gap (∆g = +22.6 pp) while PI achieves 23.3 pp (∆g = +20.3 pp), with CAA leading by 2.3 pp; in defense experiments, the s* = 0 controller maintains BBQ Black target gap at 0.2 pp (invalid output rate 1.8%).
    • Authors' interpretation: The authors note divergent cross-model results; on LLaDA-MoE, constant steering is better because residual stream norms across layers span 405 times, making full-layer intervention ineffective, so only single-layer intervention is possible, where a tuned constant can already accommodate samples; defense experiments confirm numerical stability of reverse control, but since the original gap is only 1.8 pp, they cannot prove it eliminates severe existing bias.

    Other Ablations and Analyses

    • Calibration set removal: On the 300 samples after removing 100 calibration samples, Decode PI's ∆g is 14.1 pp (Table 4).
    • Additional sample sets: In three additional independent 400-sample draws, after removing overlaps, ∆g values are 16.4, 14.7, and 17.0 pp (Appendix C.4).
    • Sensor case sensitivity: Adding lowercase letter tokens for Arab target reduces average command from 4.56 to 3.60, with ∆g change of -3.8 pp (95% CI [-8.5, 0.8]) (Table 4).
    • Parser sensitivity: For Old target open-loop (α = 4), under natural language fallback parser, invalid output rate drops from 19.0% to 7.5%, gap rises from 25.8 to 30.8 pp, while PI maintains 31.8 pp (Appendix A.6).
    • Option position bias: PI's gap is 39.5 pp when target is in position A, but average gap is only 5.3 pp when in positions B and C (Section 4.5).
  5. What are some points that can be further explored?

    The authors note limitations including hyperparameter selection, multiple-choice format, and linearity assumptions; experiments cover 3 open-source diffusion models and do not test free-text generation.

    Limitations and future directions noted by the authors

    • Hyperparameter selection depends on evaluation data: The controller gain was selected on 100 of the 400 primary samples, and several target-specific steering strengths were also selected on the evaluation data (Section 6, Appendix A.5).
    • Multiple-choice format and single-token reading limitation: The study only tested multiple-choice questions where signals were read from option letter probabilities; free-generation forms lacking a single measurable token for the target were not tested (Section 6).
    • Specificity of the stigma mechanism not established: The results on SocialStigmaQA demonstrate transfer of answer-choice control ability, not a steering mechanism specific to racial stigma itself (Section 6, Appendix C.8).
    • Theoretical analysis relies on a local linearity assumption: The control-theoretic derivation is a locally approximated model and assumes a linear response relationship before final token submission (Section 6, Appendix D.1).
    • Defense suppression evaluation environment is narrow: The reverse-suppression experiment was only tested in a setting where the unsteered model's original bias gap was already near zero (1.8 pp), and its ability to mitigate significant existing bias was not verified (Section 4.5, Section 6, Appendix C.5).
    • Future exploration directions: The authors propose extending bias injection attacks to free-text generation and testing defenses against interfaces such as forward hooks at the service layer (Section 6).

    Experimental coverage

    • Model coverage: Experiments tested 3 open-source diffusion language models: LLaDA-8B-Instruct, Dream-v0-Instruct-7B, and LLaDA-MoE-7B-A1B-Instruct.
    • Benchmarks and demographic targets: Evaluation covered 6 demographic targets in the BBQ benchmark (Black, Arab, Old, Asian, Latino, White) and 7 categories of racial stigma in SocialStigmaQA.
    • Sample size and rotation protocol: The main BBQ experiment was based on 400 ambiguous questions, tested across 1,200 prompts under 3 option-position rotations; SocialStigmaQA tested 518 items for a total of 1,554 prompts.
    • Comparison baseline types: Included CAA, ActAdd, Mean-AcT, Local Gaussian AcT, ITI-C, AurA, hierarchical PID steering, and 4 open-loop ablation settings.
    • Unreported test dimensions: The paper does not report experimental results for commercial closed-source model API scenarios, non-option free-form long-text generation, multi-turn dialogue, or tool-calling scenarios.
  6. Summarize the main content of the paper

    By dynamically adjusting residual stream steering through denoising intermediate probability feedback, demonstrating that diffusion language models have closed-loop bias injection vulnerabilities in the inference service stack.
    • Research positioning: This paper reveals a novel safety vulnerability of diffusion language models (dLLMs) where the denoising trajectory serves as an inference-time control channel.
    • Problem addressed: Targeting gray-box manipulation risks in the inference serving stack of frozen diffusion language models, the study investigates how attackers can manipulate models to output biased answers for specified protected groups on ambiguous questions without changing model weights, prompts, or samplers.
    • Core method design: Proposes a closed-loop targeted bias injection method: offline, extract a mean-difference unit vector in the residual stream distinguishing target from control options; online, during denoising, use a proportional-integral (PI) controller to track the target probability of the uncommitted answer in real time and dynamically adjust the steering strength injected into the residual stream.
    • Core experimental results:
      1. On LLaDA-8B-Instruct's BBQ Black target, Decode PI increases the target-control gap from 1.8 pp unsteered to 16.7 pp (∆g = +14.9 pp), while fixed-strength open-loop reaches only 4.6 pp (Table 1).
      2. On SocialStigmaQA, Decode PI increases biased option selection from 17.6% to 58.1% (∆g = +83.8 pp under strict parser, Table 2).
      3. Across targets, LLaDA-8B achieves bias gaps of 22.3 pp and 31.8 pp on Arab and Old targets respectively (Table 3), but fails on Asian, White, and Latino due to excessive invalid output rates (59.6%–96.1%).
      4. Across models, PI achieves 7.5 pp gap on Dream-7B (∆g = +4.2 pp), while on LLaDA-MoE it lags tuned constant CAA (23.3 pp vs. 25.6 pp) (Table 3).
    • Authors' conclusions and implications: The authors argue that model fairness is not only a property of weights but of the entire deployment serving system; offline safety audits of model checkpoints alone cannot detect such service-layer activation manipulation, and future safety audits should target deployed inference endpoints directly.
Read originalarxiv.org