Skip to content

ICML papers

Search ICML papers by title, author, or track. Open a paper’s abstract to read more.

Explore the ICML analysis

Search results

741–760 of 887

  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Predicting Future Behaviors in Reasoning Models Enables Better Steering

    Evgenii Kortukov, Piotr Komorowski, Florian Klein, Paula Engl, Gabriele Sarti, Seong Joon Oh, Sebastian Lapuschkin, Wojciech Samek

    Abstract

    Deployed large reasoning models (LRMs) often behave unexpectedly. Test-time steering controls LRM outputs by intervening on their hidden representations, but it can degrade output quality. We argue that prior steering work implicitly relies on internal features that detect behavior in already generated text. We show that these detection features are poor predictors of future behavioral outcomes, and thus not the natural intervention target. Instead, we train activation probes to predict future behavior likelihoods from intermediate reasoning steps. These probes predict the most likely behavior with 64%-91% accuracy, revealing a separate type of internal prediction features. Building on these prediction features, we introduce a text-level steering method, Future Probe Controlled Generation. FPCG samples multiple candidate sentences and chooses the best one according to a probe predicting the future behavior likelihood. This enables steering with almost no output quality degradation. FPCG also enables steering in several evaluations where activation steering fails. These results show that distinguishing detection and prediction features enables a more nuanced approach to controlling LRM behaviors.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    From Noise to Diversity: Random Embedding Injection in LLM Reasoning

    Heejun Kim, Seungpil Lee, Je Won Yeom, Jaewon Sok, Park Seonghyeon, Jeongjae Park, Taesup Kim, Sundong Kim

    Abstract

    Recent soft prompt research has tried to improve reasoning by inserting trained vectors into LLM inputs, yet whether the gain comes from the learned content or from the act of injection itself has not been carefully separated. We study Random Soft Prompts (RSPs), which drop the training step entirely and append a freshly drawn sequence of random embedding vectors to the input. Each RSP vector is sampled from an isotropic Gaussian fitted to the entrywise mean and variance of the pretrained embedding table; the sequence carries no learned content, and yet reaches accuracy comparable to optimized soft prompts on math reasoning benchmarks in several settings. The mechanism unfolds in two stages: because attention has to absorb a never-seen-before random position, the distribution over the first few generated tokens flattens and reasoning trajectories branch, and as generation continues this influence dilutes naturally so the response commits to a single completion. We show that during inference RSPs lift early-stage token diversity and, combined with temperature sampling, widen Pass@N, the probability that at least one out of N attempts is correct. Beyond inference, we carry the same effect into DAPO training and demonstrate practical gains. Our contributions are: (i) RSP isolates the simplest form of soft prompt --- training-free, freshly resampled --- providing a unified lens for the structural effect of injection that variants otherwise differing in training and form all share; (ii) a theoretical and empirical validation of the underlying mechanism; and (iii) an extension from inference to training.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    Legal Reasoning Is Not Lawyering: Rethinking Legal Benchmarks for Pro Se Access to Justice

    David Shin, Andrew Lou

    Abstract

    Legal AI benchmark research will frequently invoke the assumption that large language models can improve access to justice, including for people who cannot access lawyers in order to understand and exercise their legal rights. However, we argue that current benchmarks are not equipped to support this assumption because they evaluate legal reasoning over inputs that have already been preprocessed by legal experts, which measures the upper bound of model performance. Access to justice depends on a lower bound: how models perform when inputs come from pro se litigants, whose prompts may contain noisy narratives, buried facts, omissions, folk-legal assumptions, and surface-level errors. These degradations are comparable to the conditions under which LLMs have been shown to degrade in the general ML literature, such as long context sensitivity, underspecification, hallucination, and typographical perturbations. We connect evidence from pro se literature with this body of ML research and present a small perturbation experiment on LEXam, a leading legal benchmark, to illustrate the gap between the two bounds. If models continue to focus on improvements based on current benchmarks that only measure the upper bound, this gap will continue to remain hidden or even widen. We conclude by calling for legal benchmarks that directly measure robustness under pro se-like inputs so that access to justice claims about legal AI can become empirically testable.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    FORGE: Measuring the Formalization Spectrum for Verifiable Legal Reasoning

    Mohamed Adel Musallam

    Abstract

    Legal reasoning systems must combine natural-language understanding with reproducible rule application. Large language models (LLMs) are useful for parsing statutes and extracting facts, but their chain-of-thought traces are not reliable proof objects, their numeric reasoning is brittle under small perturbations, and their legal answers can hallucinate. Symbolic systems offer deterministic execution and auditability, but require costly legal formalization. We introduce FORGE, a framework for evaluating legal AI systems along a formalization spectrum: zero-shot prompting, chain-of-code, compiled rule interpretation with LLM fact extraction, and ontology-derived semantic extraction with deterministic rule application. FORGE exposes these levels through a unified runtime, allowing the legal decision boundary to be treated as an experimental variable rather than a fixed architecture. Across statutory tax reasoning, legal entailment, diversity jurisdiction, and Contract NLI, our results show that formalization is useful but not monotonically beneficial: tightly coupled numeric computation favors compiled interpreters with hand-curated schemas, while entailment and transfer tasks benefit more from ontology-grounded structured extraction combined with deterministic task interfaces. We explicitly report which components are hand-engineered, so the spectrum measures decision-boundary designs rather than fully automatic formalization. These findings support the choice of where the legal decision is made as a central design and evaluation dimension for verifiable legal AI.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    Multilateral Autonomous Legal Reasoning Engine for Customary International Law and Confidential Arbitration

    David Scott Lewis, Enrique Zueco, Haley Yi

    Abstract

    Al systems that merely retrieve legal texts do not become competent in law when the target domain is uncodified, non-monotonic, and strategically hidden. We introduce MARE (Figure 1), a Multilateral Autonomous Legal Reasoning Engine for two international-law use cases: (i) International Court of Justice identification of customary international law from state practice, opinio juris, advisory opinions, and defeaters; and (ii) London Court of International Arbitration strategy under confidentiality, selection bias, and hidden arbitral analogues. The first module compiles legal evidence into a weighted epistemic-defeasible argumentation graph and computes norm survivorship under grounded semantics. The second module models arbitration as a hidden-type Bayesian game/POMDP and computes policies by belief updating and regret minimization rather than supervised prediction over public awards. We report three self-contained prototype experiments: a synthetic ICJ custom stress test, an advisory-opinion influence graph, and an LCIA hidden-type arbitration game. The experiments are not presented as measurements of tribunal outcomes; rather, they are validation probes for the architecture's formal failure modes. MARE improves non-monotonic custom classification from 69.7% to 89.0%, improves advisory influence NDCG@8 over citation baselines, and raises hidden-type worst-case arbitration value from 0.418 to 0.512 while reducing best-response vulnerability. The contribution is an architectural blueprint for building and evaluating legal reasoning systems whose first-class objects are norms, defeaters, beliefs, and strategic uncertainty.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    Better Call Reward: Reward Hacking as Strategic Abstention in Legal Reasoning Models

    Subramanyam Sahoo, Justin Shenk

    Abstract

    What happens when a legal AI learns to \emph{look} like a lawyer instead of \emph{reasoning} like one? We fine-tune Qwen3-8B with Group Relative Policy Optimisation (GRPO) against a surface-feature proxy --- citation count, legalese density, and response length --- and find that the model does not learn to reason better. It learns to stall. Across $16$ yes/no legal-reasoning tasks from LegalBench ($N{=}320$), overall accuracy collapses from $0.500$ (chance) to $0.072$ ($\mathrm{McNemar}$ $p < 10^{-36}$), driven entirely by the answer-format rate plummeting from $0.900$ to $0.109$. The model stops committing to answers. Yet when it does commit, accuracy \emph{rises} from $0.556$ to $0.657$ --- revealing that the collapse is not a capability failure but a strategic one: the model has learnt that verbose, citation-dense non-answers score higher than terse correct ones. We term this the \emph{Saul Goodman effect} --- a policy that becomes maximally lawyerly while becoming maximally non-committal --- and prove formally that it is the \emph{optimal response} to any surface-feature proxy that attaches no penalty to abstention (Proposition~ 3.2). We further show that $89.3\%$ of post-training citations are structurally implausible hallucinations, many of which are subtly corrupted names of real landmark cases designed, in effect, to pass a casual read and fail under scrutiny. To detect this failure mode before deployment, we introduce three diagnostic tools: the Confidence Theater Score (CTS), the Citation Plausibility Rate (CPR), and the Regret Gap (RG). In a domain where a confidently wrong answer can constitute malpractice, the broader lesson is stark --- a reward function that measures how legal a response \emph{looks} will produce a model that is maximally photogenic and minimally useful.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    A Benchmark for Long-Horizon Reasoning with Dispute Resolution

    Chu Fei Luo, Kevin Wang, Charles Zhu, Dahan Samuel, Xiaodan Zhu

    Abstract

    Applying large language models (LLMs) to legal applications has significant social implications. While law is a domain that could significantly benefit from recent advances in LLMs, evaluating these systems remains an open challenge, at the core to which is measuring proficiency in legal reasoning, due to its inherent importance for legal tasks. In this paper, we introduce new datasets for evaluating the quality of execution in open-ended, long-horizon legal research tasks grounded in real-world disputes and their resolutions. We propose ten expert-informed criteria that characterize a high-quality legal answer, covering dimensions such as factual accuracy, legal relevance, reasoning quality, citation support, and practical usefulness. We develop test datasets and synthetically expand them through controlled ablations of individual facts, enabling fine-grained analysis of model robustness and sensitivity to case-specific evidence. Based on this, we establish the performance of frontier LLMs across multiple environments, providing comparative insights into their strengths and weaknesses in the complex legal research setting.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    Unlocking LLM Legal Reasoning with IRAC-Constrained Chain-of-Thought

    Adam Rahmoun, Ramzi Dakhmouche, Yu Fan, Jingwei Ni, Mubashara Akhtar

    Abstract

    Large language models have made remarkable progress in mathematics and code, yet legal reasoning remains substantially harder: even perfect retrieval does not yield the answer, since the model must interpret abstract rules and apply them to novel facts through multi-step argument. Prior work has approached this difficulty either by training reinforcement learning (RL) policies for retrieval-augmented reasoning or by eliciting structured reasoning from frozen models through prompting. Neither approach modifies the model's underlying reasoning policy with a domain-appropriate structure. We argue that legal reasoning in small open-source LLMs requires equipping the policy itself with such a structure, and that the IRAC framework (Issue, Rule, Application, Conclusion), standard in legal practice, is well suited to this role. We introduce IRAC-R1, a two-stage pipeline that first distills IRAC-structured reasoning traces from a stronger teacher via supervised fine-tuning, and then refines this structure with reinforcement learning under a structural reward. On Bar Exam QA, IRAC-R1 improves Qwen2.5-7B-Instruct from 47.9% to 58.1% accuracy (+10.2 points), and to 61.5% with gold-passage injection. We show that IRAC, rather than generic chain-of-thought reasoning, is responsible for the gain, and we find that retrieval, rather than reasoning, appears to be the dominant bottleneck for retrieval-augmented legal QA.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    When Reasoning Hurts Legal Drafting: The Verbalization Bottleneck in Patent Claim Generation

    Lekang Jiang, Wenjun Sun, Stefan Goetz

    Abstract

    Patent claim drafting is a challenging legal drafting task that requires technical expertise, precise linguistic control, strict adherence to formal conventions, and the preservation of complex logical relationships among claim elements. While Chain-of-Thought (CoT) prompting has been widely used to improve the reasoning capabilities of large language models (LLMs), recent evidence suggests that its benefits may be limited, or even negative, in highly structured or pattern-sensitive tasks. Therefore, this paper investigates whether CoT prompting benefits patent claim generation. We propose a task-specific CoT method for patent claim generation and evaluate its effectiveness through both automatic metrics and human expert assessment. Our results show that reasoning-enhanced prompting can improve claim quality. Moreover, we demonstrate a counter-intuitive but important empirical finding: implicit CoT, where reasoning is kept internal rather than explicitly verbalized, consistently outperforms explicit CoT. Through systematic analysis, we show that explicit CoT can introduce an unnecessary information bottleneck for claim generation. Verbalized reasoning may compromise the quality of final outputs through three specific mechanisms: abstraction of critical details, disruption of internalized generation patterns, and cascading error propagation. Our findings provide new insights into legal tasks and CoT applications.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    Strategic Reasoning Under LCIA Confidentiality: Rule-Constrained Bayesian Game-POMDPs for International Arbitration

    David Scott Lewis, Enrique Zueco, Haley Yi

    Abstract

    Confidential arbitration is a poor fit for ordinary supervised legal prediction. Under the London Court of International Arbitration (LCIA) Rules, party materials, awards, and arbitration-created documents are confidential by default, and award publication depends on consent. The resulting public record is not merely sparse; it is a strategically selected observation channel. A model trained on public or disclosed awards therefore estimates a public-slice distribution rather than the latent distribution of LCIA proceedings. This paper proposes a rule-constrained Bayesian Game-POMDP for strategic reasoning under LCIA confidentiality. A rule compiler maps LCIA Rules 9B, 14, 21, 22, 22A, 28, 30, 30A, and the Annex on representative conduct into state variables, valid-action masks, observation functions, payoff deformations, and audit obligations. Approximate policies are computed with CFR/Deep-CFR style self-play over LCIA-valid actions and evaluated by exploitability, hard-rule compliance, belief calibration, and weak-spot robustness rather than award-prediction accuracy alone. Three synthetic experiments test the core claims: (i) a missing-not-at-random public-slice ablation, (ii) rule-constrained equilibrium learning for complex LCIA proceedings, and (iii) adversarial weak-spot hardening. The contribution is not an award predictor or legal-advice engine. It is a benchmarkable framework for legal Al systems that must reason strategically while respecting institutional confidentiality and procedural legality.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    Reasoning Before Translation: Enhancing Legal Machine Translation with Structured Reasoning

    Aixiu An, Michael Jungo, Eloi Eynard, ⋅ Andreas Fischer, Jean Hennebert, Sébastien Rumley

    Abstract

    Neural machine translation (NMT) in the legal domain is a linguistically and conceptually demanding task, primarily due to the complexity of legal language and the high level of precision it requires. The recent emergence of reasoning-capable language models opens new possibilities for tackling such challenges. They complement a broader set of techniques previously proposed to improve translation quality, including supervised fine-tuning and reinforcement learning. In this work, we compare these different approaches. More specifically, we evaluate small language models such as Qwen3.5 4B, Qwen3.5 9B, and Gemma 3 12B enhanced with various re-training paradigms, and compare their performance against frontier reasoning models. We focus on the Swiss legal system, whose uniquely multilingual statutes provide a particularly challenging and realistic testbed for reasoning-augmented models. Our results show that the quality of small base models can be significantly improved, and that reinforcement learning with verifiable rewards can be effectively applied to legal-domain NMT, surpassing the translation quality achieved through supervised fine-tuning. Notably, these enhanced small models achieve competitive performance while using more than 100× fewer parameters than frontier reasoning models, although a performance gap still remains. We also observe that re-training paradigms yield diminishing returns as model size increases.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    L-MAD: A Systematic Evaluation of Multi-Agent Debate Structures in Legal Reasoning

    Tan-Minh Nguyen, Hoang-Trung Nguyen, Huu-Dong Nguyen, Dinh Truong Do, Thi-Hai-Yen Vuong, Le-Minh Nguyen

    Abstract

    While multi-agent debate (MAD) frameworks have shown significant potential in general reasoning, their effectiveness in highly structured, knowledge-heavy legal domains remains under-explored. In this work, we introduce the Legal Multi-Agent Debate (L-MAD) framework to systematically evaluate different debate structures and aggregation methods within Legal Textual Entailment. By assigning distinct expert personas to multiple agents, L-MAD improves upon strong single-agent baselines by up to 8\%. Furthermore, analyzing how debate scales reveals a clear trade-off: increasing the agent population reduces inconsistency and improves accuracy, whereas extending discussion rounds induces a detrimental \textit{over-deliberation drift} where agents reinforce each other's mistakes. Ultimately, our findings outline the practical boundaries and safety margins of deploying collaborative multi-agent systems in high-stakes legal reasoning environments.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    Customary International Law as a Fixed-Point Problem: Proof-Carrying Autoformalization for Non-Monotonic Legal Reasoning

    David Scott Lewis, Enrique Zueco, Haley Yi

    Abstract

    Legal reasoning systems are often evaluated by whether their answers sound plausible or cite relevant sources. For non-monotonic legal domains, this is insufficient: a conclusion can be locally supported and still globally incoherent once exceptions, priorities, and later counter-practice are considered. We formulate ICJ-style customary international law (CIL) as a proof-carrying autoformalization problem. Given an informal court-style scenario, a system must output a finite typed argumentation object, a claimed grounded extension, and a fixed-point trace witnessing that the accepted conclusions are exactly the least fixed point of the characteristic operator. A deterministic checker validates syntax, trace equality, fixed-point closure, conflict-freeness, priority compilation obligations, rule/exception non-coacceptance, and temporal retraction. We report three deterministic diagnostic experiments over released synthetic stress-test families. First, in 500 rule/exception scenarios, independent local models obtain 95.3-95.9% local support accuracy but co-accept contradictory rule/exception pairs in 91.2-91.6% of cases; proof-carrying grounded semantics yields 0% co-acceptance. Second, under eight corruption operators grouped into four failure families, certificate pass rate improves from 54.0% to 95.7% with schema constraints, certificate requirements, and localized repair. Third, temporal-update tests show exact retraction under counter-practice, lex specialis, and opinio-juris withdrawal, while exposing an adversarial evidence-budget limit: certificates verify coherence, not source truth. The contribution is not a legal decision system; it is a verification interface for non-monotonic legal autoformalization.

    Abstract source
  • ICML · Workshop · Planning in The Era of Language Models (LM4Plan)

    VeryTrace: Verifying Reasoning Traces through Compilable Formalism and Structured Verification

    Ninghan Zhong, Ahmet E Tanriverdi, Kaan Kale, Sriram Vishwanath

    Abstract

    Multi-step reasoning with Chain-of-Thought (CoT) prompting remains fragile: logical errors or hallucinations in early steps silently propagate, producing confident but incorrect conclusions. This paper presents VeryTrace, a zero-shot verification-and-repair framework that formalizes natural-language reasoning traces into a structured, compilable representation. VeryTrace introduces a Domain-Specific Language (DSL) that: (i) makes step dependencies explicit, (ii) mechanizes quantitative content as executable expressions, and (iii) structures semantic inferences via deduction schemas. Our hybrid verifier combines deterministic checks for computational correctness, dependency resolution, and constraint satisfaction with targeted LLM audits for non-mechanizable semantic judgments, enabling step-level error localization and repair. Across three diverse domains—competition mathematics (AIME 2025), robotics planning (LLMs-BabyBench), and kinship reasoning (CLUTRR) — VeryTrace improves accuracy over zero-shot baselines on state-of-the-art LLMs without domain-specific training or in-context examples, demonstrating that formalized trace verification achieves both precision and generalization.

    Abstract source
  • ICML · Workshop · Planning in The Era of Language Models (LM4Plan)

    Hierarchical Chain-of-Thought: Enhancing LLM Reasoning Performance and Efficiency

    Xingshuai Huang, Derek Li, Bahareh Nikpour, Parsa Omidi

    Abstract

    Chain-of-Thought (CoT) prompting has significantly improved the reasoning capabilities of large language models (LLMs). However, conventional CoT often relies on unstructured, flat reasoning chains that suffer from redundancy and suboptimal performance. In this work, we introduce Hierarchical Chain-of-Thought (Hi-CoT), a structured reasoning paradigm specifically designed to address the challenges of complex, multi-step reasoning. Hi-CoT decomposes the reasoning process into hierarchical substeps by alternating between instructional planning and step-by-step execution. This decomposition enables LLMs to better manage long reasoning horizons and maintain logical coherence. Extensive evaluations across diverse LLMs and mathematical reasoning benchmarks show that Hi-CoT consistently improves average accuracy by 6.2\% (up to 61.4\% on certain models and tasks) while reducing reasoning trace length by 13.9\% compared to CoT. We further show that accuracy and efficiency are maximized when models strictly adhere to the hierarchical structure. Our code is available at an anonymous repository.

    Abstract source
  • ICML · Workshop · Planning in The Era of Language Models (LM4Plan)

    ReTreVal: Reasoning Tree with Validation and Cross-Problem Memory for Large Language Models

    Abhishek HS, Pavan C Shekar, Aswanth Krishnan, Arpit Jain

    Abstract

    Every existing inference-time reasoning framework discards all failure context at problem boundaries, leaving a model solving problem 500 no wiser than it was on problem 1. We present ReTreVal (Reasoning Tree with Validation), a training-free framework that closes this gap by combining adaptive tree exploration with tool-augmented node refinement, typed-failure backtracking that injects categorized error context into the recovered branch, and a self-rewriting memory that accumulates and revises strategy entries across problems, enabling inference-time learning on any fixed, unmodified LLM without fine-tuning. ReTreVal achieves 85.8\% pass@1 on MATH-500 (+8.6 pp over Zero-Shot CoT, +8.6 pp over the strongest baseline Self-Refine) and 54.4\% on MMLU-Pro (+15.3 pp over Self-Refine), with a 3.4:1 win-to-regression ratio confirming genuine error recovery rather than noise — capabilities previously requiring gradient updates, now enabling a 32B model to compete with much larger single-pass systems.

    Abstract source
  • ICML · Workshop · The Second Workshop on Agents in the Wild: Safety, Security, and Beyond

    When Reasoning Traces Become Performative: Step-Level Evidence that Chain-of-Thought Is an Imperfect Oversight Channel

    Wenkai Li, Fan Yang, Ananya Hazarika, Shaunak A Mehta, Koichi Onoue

    Abstract

    Chain-of-thought (CoT) traces are increasingly used both to improve language model capability and to audit model behavior, implicitly assuming that the visible trace remains synchronized with the computation that determines the answer. We test this assumption with a step-level Detect–Classify–Compare framework built around an answer-commitment proxy that is cross-validated with Patchscopes, tuned-lens probes, and causal direction ablation. Across nine models and seven reasoning benchmarks, latent commitment and explicit answer arrival align on only 61.9% of steps on average. The dominant mismatch pattern is confabulated continuation: 58.0% of detected mismatch events occur after the answer-commitment proxy has already stabilized while the trace continues producing deliberative-looking text, and a vacuousness analysis shows that the committed answer does not change during these steps. In architecture-matched Qwen2.5/DeepSeek-R1-Distill comparisons, the reasoning pipeline changes failure composition more than aggregate alignment, most clearly at 32B where confabulated steps decrease as contradictory states increase. Lower step-level alignment is also associated with larger CoT utility, suggesting that the settings that benefit most from CoT are often the least temporally faithful. Paired truncation and a complementary donor-corruption test further indicate that much post-commitment text is not load-bearing for the final answer. These findings suggest that CoT can remain useful while still being an unreliable report of when the answer was formed.

    Abstract source
  • ICML · Workshop · The Second Workshop on Agents in the Wild: Safety, Security, and Beyond

    Stop Reporting System-Level AI Reasoning as Individual Model Capability

    Adhiraj Chhoda

    Abstract

    GPT-5.5 scores 41.4% on Humanity's Last Exam. GPT-5.5 Pro, the same model with parallel test-time compute and tool access, scores 57.2%. Both appear on leaderboards as "GPT-5.5." That 15.8-point gap is not a model improvement; it is a system-composition difference wearing a model-capability label. This paper argues that frontier reasoning scores are produced by assemblies of models, test-time compute, tools, and verifiers, yet the field attributes them to a single model name. We develop a four-level hierarchy of inference complexity, present a pilot audit of 26 entries across 11 benchmarks revealing pervasive undisclosed system-level composition, ground the argument in distributed cognition theory, and propose a compute-normalized reporting protocol (SCRP) as a minimum standard for scientific credibility.

    Abstract source
  • ICML · Workshop · The Second Workshop on Agents in the Wild: Safety, Security, and Beyond

    WebAgentGuard: A Reasoning-Driven Guard Model for Detecting Prompt Injection Attacks in Web Agents

    Yulin Chen, Tri Cao, Haoran Li, yibo li, Yue Liu, Yufei He, Khoi Le, Yangqiu Song, Shuicheng YAN, Bryan Hooi

    Abstract

    Web agents powered by vision–language models (VLMs) enable autonomous interaction with web environments by perceiving and acting on both visual and textual webpage content to accomplish user-specified tasks. However, they are highly vulnerable to prompt injection attacks, where adversarial instructions embedded in HTML or rendered screenshots can manipulate agent behavior and lead to harmful outcomes such as information leakage. Existing defenses, including system prompt defenses and direct fine-tuning of agents, have shown limited effectiveness. To address this issue, we propose a defense framework in which a web agent operates in parallel with a dedicated guard agent, decoupling prompt injection detection from the agent’s own reasoning. Building on this framework, we introduce WebAgentGuard, a reasoning-driven, multimodal guard model for prompt injection detection. We construct a synthetic multimodal dataset using GPT-5 spanning 164 topics and 230 visual and UI design styles, and train the model via reasoning-intensive supervised fine-tuning followed by reinforcement learning. Experiments across multiple benchmarks show that WebAgentGuard consistently outperforms strong baselines while preserving agent utility, without introducing additional latency.

    Abstract source
  • ICML · Workshop · The Second Workshop on Agents in the Wild: Safety, Security, and Beyond

    Chain of Risk: Safety Failures in Large Reasoning Models and Mitigation via Adaptive Multi-Principle Steering

    Xiaomin Li, Jianheng Hou, Zheyuan Deng, Zhiwei Zhang, Taoran Li, binghang lu, Bing Hu, Yunhan Zhao, Yuexing Hao

    Abstract

    Large reasoning models (LRMs) increasingly expose chain-of-thought-like intermediate reasoning for transparency, verification, and deliberate problem solving. This creates a safety blind spot: harmful or policy-violating content may appear in the reasoning trace even when the final answer appears safe. We test whether final-answer safety is a sufficient proxy for the full reasoning-answer trajectory by scoring both stages under a unified twenty-principle safety rubric. Using prompts from seven public harmfulness and jailbreak sources, plus four out-of-distribution (OOD) sources for robustness evaluation, we evaluate 15 open-weight and API-based LRMs. Across 41K prompts per model, reasoning traces consistently expose additional safety risk beyond final answers. The effect is systematic and appears most clearly in high-severity stage-wise failures: leak cases, where unsafe reasoning precedes a safe-looking answer, and escape cases, where benign-looking reasoning precedes an unsafe final response. Principle-level analysis shows that risk concentrates in categories such as misinformation, legal compliance, discrimination, physical harm, and psychological harm. Beyond diagnosis, we propose adaptive multi-principle steering, a white-box test-time mitigation that learns one unsafe-to-safe activation direction per safety principle and activates only directions whose current hidden state is closer to the unsafe centroid than to the safe centroid. On three steerable open reasoning models, adaptive steering consistently reduces unsafe counts in both reasoning traces and final answers on held-out and OOD benchmarks. The strongest gains reduce unsafe reasoning by 77.2% on HeldOut2K and 62.7% on OOD2K, and reduce unsafe final responses by up to 48.1% on OOD2K. DeepSeek-R1-Qwen-7B achieves a 40.8% average unsafe-count reduction while retaining 97.7% of macro-averaged accuracy on BBH, GSM8K, and MMLU. These results suggest that LRM safety should be evaluated and mitigated over the full exposed reasoning-answer trajectory, not only at the final-answer stage.

    Abstract source