ZICQ
中 Log in / Sign up
Newsroom LLMs & Foundation Models #LLMs & Foundation Models #Prompt Injection #Agent Behavior #arXiv #Qwen3

arXiv Research Reveals LLM Agent Decision-Making on Prompt Injections: Analysis of Qwen3 Model Reasoning Process

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version

Summary:A new arXiv study investigates the decision-making mechanisms of Large Language Model (LLM) agents when faced with prompt injections. Using branching rollout techniques, the research analyzes the behavior of the Qwen3 model under different attack templates and finds that whether the agent follows an injection is partially determined at the time of reading, but the reasoning process significantly influences the final decision. The study shows that enabling reasoning reduces the attack success rat


Background and Motivation

As Large Language Models (LLMs) are increasingly applied across various domains, their security issues have garnered significant attention. Prompt injection, as a potential attack vector, can cause agents to deviate from intended behaviors or even be maliciously controlled. Current runtime monitoring and benchmarking methods often assume that whether an agent follows an injection is settled when the injection is read, but this assumption has not been thoroughly validated.

Methodology

The research team employed an innovative branching rollout technique, precisely backtracking to the step where the agent reads the injection and then resampling the subsequent steps multiple times, decomposing the outcome variance into a part fixed at read time and a part decided afterwards. Specifically, the study tested the Qwen3 model on four AgentDojo suites and analyzed its performance under different attack templates and success labels.

Key Findings

  1. Fixedness at Read Time: Without reasoning, 91% of the outcome variance for Qwen3 is fixed at read time; with reasoning enabled, this proportion drops to 62%, indicating that the reasoning process significantly influences the final decision.
  2. Model Differences: For Qwen3, enabling reasoning reduces the attack success rate, while for two other models, it increases. This suggests significant differences in the decision-making mechanisms of different models.
  3. Gradual Formation of Decisions: Resampling from reasoning prefixes shows that decisions are formed gradually as the agent reasons, rather than being fully determined at the time of reading.
  4. Benchmarking Limitations: Single-run labels disagree with reruns up to 35% of the time, indicating that current benchmarking methods need improvement.

Engineering Trade-offs and Practical Applications

  • Inference Cost vs. Security: While enabling reasoning improves security, it also increases computational costs. Developers need to balance security and efficiency.
  • Improved Monitoring Methods: Existing zero-shot chain-of-thought monitoring methods based on cheaper models miss much of what is already decided. It is recommended to use stronger monitoring mechanisms or lookahead monitors.
  • Benchmarking Improvements: To accurately assess agent performance, it is advisable to use multiple runs in benchmarking and combine various evaluation metrics.

Conclusion

This study reveals the complex decision-making mechanisms of LLM agents when facing prompt injections, emphasizes the importance of the reasoning process, and provides new insights for future security mechanism design and benchmarking methods.


Source: ArXiv NLP/LLM (cs.CL) (2026-10-21)

— END —

Tags: #LLMs & Foundation Models #Prompt Injection #Agent Behavior #arXiv #Qwen3

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

Community Comments

Loading live comments and annotations…