How hardware bit flips affect LLM agents: safety and alignment behavior can vary
The authors injected random 2-bit weight faults into three agent benchmarks, and across benchmarks the output tokens increased by 38.0%.
- LLM agents repeatedly call the model and interact with tools and the environment, so corrupted outputs enter subsequent steps. The authors study how random hardware faults manifest in full executions, rather than looking only at single generations.
- Each fault execution randomly flips two bits of one weight; the corruption persists across calls; the runtime, tools, and environment are fault-free. On three benchmarks, Qwen3.6-27B is the main model, and Qwen3.8-27B and Granite4.1-30B are also compared.
- On AgentDojo, token storms did not recover, and malformed call recovery rates were 3.3%–25.9%. Qwen3.6-27B's output tokens on HomeBench increased by 51.3%. After conditioning, attack success rates were close to fault-free; a selected fault reached 92.0% after replay on Slack.
- The authors state the study focuses on persistent two-bit weight faults, with a limited set of models and benchmarks. Next steps include different fault conditions, the prevalence of subtle semantic errors and multi-turn propagation, and more rigorous statistics. The cost table reports only Qwen3.6-27B, and recovery analysis is on AgentDojo.
- Evaluated models
- Qwen3.6-27BQwen3.8-27BGranite4.1-30B
- Benchmarks
- HomeBenchAgentDojoAgentic Misalignment
- Metrics
- exact-match accuracyerror raterecovery rateoutput tokensinput tokensagent turnsattack success rateharmful actionclassifier verdictutility
A study systematically evaluated the robustness of LLM agents to random hardware bit flips, completing 6,814 executions across three agent benchmarks, of which more than 2,400 were fault-free and more than 4,300 injected independently sampled random 2-bit weight faults. The authors say this is the first systematic study of random hardware faults in LLM agents. The study found that agent execution translates model-level damage into system-level outcomes: agents can sometimes recover from erroneous outputs and complete tasks correctly, but recovery pushes up computation and execution costs; a small number of faults cause subtle but semantically meaningful errors while the agent otherwise behaves normally; and in some models and scenarios, faults also alter safety and alignment behavior. The paper was accepted at NeurIPS 2026 MLforSystems and AI4Good Workshops.
Paper analysis
What problem does this paper attempt to solve?
The authors ask what system-level outcomes arise when random two-bit weight faults enter an agent closed loop.
What system-level outcomes arise when model outputs corrupted by random hardware faults enter an LLM agent closed loop?
- Scenario: The authors state LLMs are used as decision components in autonomous agents, services depend on accelerators and heterogeneous memory, and hardware faults remain a problem. Example applications mentioned include autonomous science, software engineering, and web automation.
- Existing gap: The authors state prior hardware fault research often treats a single generation as the end point of propagation. Agent failure research perturbs tools, API responses, or external inputs; the authors state those corruptions are not within model state and are not repeatedly executed by the same corrupted model.
- Question to answer: What happens when corrupted outputs enter the execution trajectory. In a closed loop, they can trigger actions, and action results become context for subsequent steps.
- Approach: The authors inject independently sampled random two-bit faults into weights and trace propagation along full executions. The authors state this is a systematic study of random hardware fault resilience in LLM agents.
- Results summarized by the authors: Agents can sometimes recover from corrupted intermediate outputs and still complete tasks; execution costs increase; a minority of faults cause semantically meaningful but superficially normal errors; and in some models and scenarios, safety and alignment-related behavior changes.
What related research exists?
Related work either stops at a single output or perturbs the execution stack; this paper examines closed loops under persistent weight corruption.
Failures in agent execution
- Stack perturbations: Zhu et al. (2026), Tan et al. (2026), Zhang et al. (2025), and Liu et al. (2026) perturb tools, API responses, or external inputs. The authors state this can produce erroneous or unusable tool results, corrupted API responses, or inconsistent inputs, and can trigger replanning, recovery, and subsequent cascading failures.
- Difference noted by the authors: The authors state those faults come from execution stack components. The faults in this paper are internal to the LLM model state; weight corruption is reused in subsequent calls, and actions are made by the corrupted model.
Hardware fault resilience of models
- Classification and Transformers: Ibrahim et al. (2020), Li et al. (2017), Reagen et al. (2018), and Hong et al. (2019) evaluate classification models under bit-level corruption of parameters due to hardware faults. Roquet et al. (2024) and Coalson et al. (2026) extend the analysis to vision and video models.
- LLM inference: Agarwal et al. (2023), Sun et al. (2025), and Huang et al. (2026, LLMFI) study LLMs. The authors state Sun et al. report that random bit flips degrade generation quality, especially on inference-intensive workloads; LLMFI characterizes propagation by inference stage, model component, and bit position.
- Difference noted by the authors: The authors state most of these works treat the generated output as the end point of propagation. This paper characterizes random hardware-induced bit flips over full closed-loop executions.
Controls and fault model sources
- Fault-free controls: The quantitative control is a fault-free run of the same task. Benchmarks are HomeBench, AgentDojo, and Agentic Misalignment.
- Two-bit faults: Following Sun et al. (2025) and Huang et al. (2026). The authors state this corresponds to memory errors beyond the single-error-correcting ECC capability of modern GPUs, citing Oles et al. (2024), Zhu et al. (2025), and NVIDIA (2023).
The two points that separate this paper from the above works are: the corruption is in weights that are reused, and evaluation runs to the end of the closed-loop execution, not stopping at a single model output.
How does the paper address this problem?
Randomly flip two bits of one weight, corruption is reused across calls, then evaluate full executions using each benchmark's original metrics.
The authors inject random two-bit weight corruption into model states that are reused across calls, then observe full agent executions using each benchmark's original metrics, rather than looking only at a single generation.
Fault model and injection
- What is injected: Each fault execution randomly selects one weight and flips two bits in its representation. The corrupted weight persists throughout that execution, so subsequent LLM calls reuse the same corrupted state.
- What is not injected: The agent runtime, tools, and benchmark environment remain fault-free.
- How it is repeated: Each benchmark is run repeatedly on a fixed task set, with each fault independently sampled. In total, there are three benchmarks and 218 tasks; each task has 8–13 fault-free runs and 15–25 fault-injected runs, totaling 6,814 executions.
- Authors' rationale: They focus on weights because weights are reused across consecutive LLM calls, making it easy to see how corruption in persistent model state propagates through closed loops. The two-bit model follows prior LLM resilience research; the authors say it corresponds to memory errors beyond the correction capability of single-error-correcting ECC. The paper does not specify layers, bit positions, or numerical formats.
Workloads and models
- HomeBench: structured action generation, used by the authors as a high-throughput characterization workload.
- AgentDojo: a safety-sensitive tool-calling agent, used to look at effects beyond task correctness.
- Agentic Misalignment: a consequential autonomous decision-making scenario, used to see whether alignment-related behavior changes.
- Models: The main model for all workloads is Qwen3.6-27B. To check model dependence, Qwen3.8-27B and Granite4.1-30B are also used.
Metrics
The authors do not set a single metric across workloads; they follow each benchmark's definitions and examine three aspects.
- Task outcome: whether the agent ultimately completes the intended task.
- Execution cost: extra computation during execution, such as input and output tokens.
- Consequential behavior: using the benchmark's own safety- and alignment-related metrics to see effects beyond task correctness.
Implementation
Appendix A states that the framework is implemented in Python 3.11.15, PyTorch 2.11.0, and CUDA 13.0, and agents are executed via Inspect AI (v0.3.123). AgentDojo and Agentic Misalignment use the official implementations from Inspect Evals (v0.10.0), and HomeBench uses its official repository implementation. The machines are two sets: 48 cores, 768 GB RAM, eight NVIDIA A40s; and 112 cores, 2 TB RAM, eight NVIDIA H100s. The paper does not specify which runs were on which machine. Evidence comes from controlled flips of weights followed by observation of execution; the paper does not provide a breakdown by layer or bit position.
What experiments did the paper conduct?
Qwen3.6-27B shows a 51.3% increase in output tokens on HomeBench, and a 38.0% increase in summarization.
Experimental setup
- Models: Qwen3.6-27B is the primary model for all workloads; Qwen3.8-27B and Granite4.1-30B are used to check model dependence. All three models are evaluated under fault injection.
- Scale: HomeBench, AgentDojo, Agentic Misalignment, totaling 218 tasks. Each task has 8–13 fault-free runs and 15–25 independently sampled fault injections, totaling 6,814 runs. The abstract additionally mentions 2,400+ fault-free and 4,300+ fault injections. The paper does not report the number of tasks per benchmark.
- Controls and faults: The control is a fault-free execution of the same task. Each fault randomly selects one weight and flips two bits; the runtime, tools, and environment are fault-free.
- Metrics: Task outcomes, input tokens, output tokens, agent turns, and the benchmarks' original safety/alignment metrics. HomeBench uses exact-match. AgentDojo reports attack success rate and utility. Agentic Misalignment reports harmful actions and classifier verdicts.
- Scoring limitations: AgentDojo's attack success rate is computed only on fault-free–faulty pairs where utility is correct and the agent received a prompt injection. The paper does not state which model is the classifier for Agentic Misalignment.
- Recovery analysis scope: The authors state recovery is analyzed only on AgentDojo, because it is the only benchmark in this evaluation that is multi-turn and where later actions can compensate for earlier errors. The paper does not report statistical tests.
Main results
The table below is only for Qwen3.6-27B, showing changes from fault-free to faulty execution, per Table 2. "–" indicates quantities fixed by the single-turn design of that benchmark. Costs for other models are not reported.
Swipe horizontally to read the table
Benchmark Input tokens Output tokens Agent turns HomeBench – +51.3% – AgentDojo -3.5% +5.6% -5.1% Agentic Misalignment – +31.7% – - Task and cost can separate: On HomeBench, the authors state exact-match only drops from 75.6% to 71.4%, i.e., 4.2 percentage points; mean output tokens go from 1,656 to 2,505, an increase of 51.3% (Section 4.2, same primary model as Table 2).
- AgentDojo does not rise on all metrics: The authors state input tokens and turns decrease slightly because token storms often have no valid action and the framework ends early. The authors state median output token increases are +3.8%–16.6%, lower than the mean +5.6%–51.3%; the paper does not list medians by benchmark.
- 38.0% and token storms: The introduction states mean output tokens for faulty executions can increase by 38.0%. Section 4.2 states the increase across benchmarks is 38.0%, and token storm executions account for 96.0% of these added tokens. In Table 1, the recovery rate for token storms is 0.0%.
Closed-loop recovery
Only AgentDojo is tested. Two types of intermediate errors are malformed tool calls and token storms: the model repeatedly emits the same token until the turn's output token limit. Error rates in Table 1 are computed over all faulty executions; recovery rates are computed over faulty executions that exhibit the error. The text also states malformed calls account for 2.3%–61.4% of all tool calls, with the same numeric range as the table; the measurement object is per Table 1.
Swipe horizontally to read the table
Model Error type Error rate Recovery rate Qwen3.6-27B token storm 11.3% 0.0% Qwen3.6-27B malformed tool call 11.0% 24.4% Qwen3.8-27B token storm 1.3% 0.0% Qwen3.8-27B malformed tool call 61.4% 25.9% Granite4.1-30B token storm 4.8% 0.0% Granite4.1-30B malformed tool call 2.3% 3.3% - Token storms do not recover: 0.0% for all three models. The authors state such generations have no valid action, and AgentDojo judges the turn as making no progress and terminates the trajectory.
- Malformed calls can be partially repaired: Recovery rates are 3.3%–25.9%. The authors state two observations: issuing a corrective call after noticing the environment did not change as expected; or rewriting the call after checking against the tool schema and finding a mismatch. Qwen3.8-27B has an error rate of 61.4% and a recovery rate of 25.9%; Granite4.1-30B has a recovery rate of 3.3%.
Safety and alignment-related behavior
The table below is per Table 3. Attack success rate belongs to AgentDojo and is conditioned on pairs with correct utility and received injection; the last two columns belong to Agentic Misalignment. The left of the arrow is fault-free, the right is faulty execution.
Swipe horizontally to read the table
Model Attack success rate Harmful action Classifier verdict Qwen3.6-27B 32.7%→32.5% 33.3%→42.2% 38.9%→46.7% Qwen3.8-27B 2.6%→3.0% 5.6%→3.4% 11.1%→6.7% Granite4.1-30B 51.3%→49.7% 5.6%→4.5% 5.6%→4.5% - Aggregate changes are small and not all in the same direction: The authors state that after conditioning, fault-free and faulty executions differ by 0.2–1.6 percentage points. Harmful actions and classifier verdicts rise on Qwen3.6-27B but do not show the same rise on the other two models.
- A selected fault can differ: The authors select a random 2-bit fault that already caused a prompt injection failure, and replay the corrupted Qwen3.6-27B on all AgentDojo samples. Attack success rate goes from 31.0% to 43.0%, and task utility from 56.0% to 58.0%. The Slack suite goes from 57.0% to 92.0%. The authors state susceptibility varies with agent setup.
- Do not conflate the two statistics: The replay's fault-free attack success rate is 31.0%, while Table 3's aggregate for Qwen3.6-27B is 32.7%→32.5%. The paper reports them under different procedures.
Subtle semantic errors
Figure 2 gives examples for Qwen3.6-27B. The authors state some faults do not manifest as obvious model degradation: output remains fluent, action structure is valid, but semantics are incorrect or misplaced.
- HomeBench: The user asks to reduce balcony light brightness by 53%, with initial brightness 83. The fault-free action is set_brightness(30), the faulty action is set_brightness(39). The authors state this is an incorrect numerical interpretation.
- Two other types: The authors state the AgentDojo example is an unsupported transaction update, and the Agentic Misalignment example is sending the escalation to the wrong target. In Figure 2, actions remain structurally valid. The authors state this makes it hard to detect by only checking whether generation is valid.
- No proportion: The paper does not report the proportion of such subtle errors among all faulty executions.
Other ablations and analyses
- AgentDojo utility, Qwen3.6-27B: 56.0%→52.3% (Table 4).
- AgentDojo utility, Qwen3.8-27B: 51.0%→57.0% (Table 4).
- AgentDojo utility, Granite4.1-30B: 32.0%→28.4% (Table 4).
- Appendix B states utility changes for the three models range from -3.7 to +6.0 percentage points, with inconsistent directions.
- In the selected fault replay, Qwen3.6-27B utility is 56.0%→58.0%, opposite in direction to the Table 4 aggregate of 56.0%→52.3%.
What are some points that can be further explored?
The authors state next steps should examine different fault conditions and environments, and use more rigorous statistics to separate fault effects from execution variability.
Limitations and future directions noted by the authors
- Scope: What's Next states this study focuses on persistent two-bit weight faults, with a limited set of models and benchmarks, leaving several directions open.
- Generalization: The authors state next steps are to see how findings generalize to different fault conditions and agent environments, such as how prevalent subtle semantic errors are, and fault propagation in diverse multi-turn settings.
- Statistics: The authors state such research would benefit from more rigorous statistical analysis to separate behavior changes caused by faults from variability in execution itself.
- Design: The authors state this work could ultimately inform the design of more resilient agent systems under hardware-induced memory faults.
Experimental coverage
- Models: Experiments ran Qwen3.6-27B, Qwen3.8-27B, and Granite4.1-30B. Table 2's cost changes are reported only for Qwen3.6-27B; recovery rates, attack success rates, alignment metrics, and utility are reported for all three models.
- Counts: Three benchmarks, 218 tasks, totaling 6,814 executions; each task has 8–13 fault-free runs and 15–25 fault injections. The abstract additionally mentions 2,400+ and 4,300+. The paper does not report the number of tasks per benchmark.
- Faults: Each faulty execution randomly flips two bits in one weight; the corruption persists within that execution; the runtime, tools, and environment are fault-free. The paper does not report the flipped layer, bit position, or numeric format.
- Turns: Recovery analysis is on AgentDojo. The authors state it is the only benchmark in this evaluation that is multi-turn and where later actions can compensate for earlier errors. Table 2 marks some costs for HomeBench and Agentic Misalignment as fixed by the single-turn design.
- Scoring and statistics: AgentDojo attack success rate is limited to pairs with correct utility and received injection. The paper does not state the classifier model for Agentic Misalignment, nor does it report statistical tests.
Summarize the main content of the paper
Two-bit weight faults can be partially recovered in closed-loop settings, but they increase output tokens and, in specific models and scenarios, change safety or alignment behavior.
After random two-bit weight faults enter an LLM agent, model-level damage becomes recoverable, cost increases, subtle semantic errors, and safety or alignment behavior changes.
- Problem: Single-turn research treats corrupted generation as the endpoint. An agent turns outputs into actions, observations feed into the next step, and the same corrupted weights are invoked repeatedly.
- Method: Each execution randomly flips two bits of one weight; runtime, tools, and environment are fault-free. Benchmarks are HomeBench, AgentDojo, and Agentic Misalignment. Main model is Qwen3.6-27B, also tested Qwen3.8-27B and Granite4.1-30B. Total 218 tasks, 6,814 executions.
- Recovery and cost: On AgentDojo, recovery rate for token storm is 0.0%, and for malformed tool calls is 3.3%–25.9% (Table 1). On HomeBench, Qwen3.6-27B exact-match goes from 75.6% to 71.4%, output tokens from 1,656 to 2,505. Across benchmarks, output tokens increase by 38.0%, and 96.0% of the increase comes from token storm.
- Safety and alignment: After control, AgentDojo attack success rate differs by only 0.2–1.6 percentage points (Table 3). The authors also replay a 2-bit fault that caused a prompt injection failure on all AgentDojo samples: Qwen3.6-27B attack success rate goes from 31.0% to 43.0%, and the Slack suite from 57.0% to 92.0%. On Agentic Misalignment, Qwen3.6-27B harmful action goes from 33.3% to 42.2%; the other two models do not show the same increase.
- Authors' conclusion: The authors believe model-level evaluation may not fully reflect this resilience, and consequences depend on subsequent actions and environment interactions. They say next steps are to look at different fault conditions and environments, and use stricter statistics to separate fault effects from execution variance.