AdvSim2Real Trains Web Agents Against Adaptive Prompt Injection

Paper / preprint Hugging Face Daily Papers · Reported findings, not independently verified by us.

AdvSim2Real aims to make web agents more robust to prompt injection without undermining their ability to complete tasks on websites. In a simulated web environment, the method trains an agent, an attacker, and a selection of suitable tasks at the same time.

The challenge is that webpages contain both the information and controls an agent needs for a user’s task and instructions planted by third parties that can divert it from the user’s goal. According to the authors, some existing defenses train on attacks fixed in advance, which can adapt. Other adversarial approaches use fixed tasks that become less instructive once the agent masters them.

AdvSim2Real therefore changes the tasks over time, favoring ones the agent solves about half the time. The attacker is rewarded for turning an attempt judged successful into a failure through an injection. The reported results show higher completion rates for a 4B agent both with and without attacks; its capability gain also carried over to a real browser.

Across 150 web tasks, completion under an adversary based on a frontier model that was not used in training was 33.6% higher relative to the base agent. The source also describes the training approach and its tests: https://huggingface.co/papers/2610.08773

🇬🇧 https://huggingface.co/papers/2610.08773

Leave a Comment

The weekly brief: selected developments, projects and videos