LaSM: A layer-wise scaling mechanism for defending GUI agents against pop-up attacksLaSM: Layer-wise Scaling Mechanism for Defending Pop-up Attack on GUI Agents
AI summary
The authors propose a training-free layer-wise scaling mechanism, LaSM, for defending GUI agents against pop-up-style environment injection attacks. The study systematically analyzes how such attacks change the attention behavior of GUI agents, finding a layer-by-layer attention shift pattern between correct and incorrect outputs. LaSM selectively amplifies attention and MLP modules at key layers, improving the alignment between the model's salient regions and task-relevant regions. Experiments on multiple datasets show that the method improves defense success rate and exhibits strong robustness, while having little impact on the model's general capabilities. The code is publicly available at https://github.com/YANGTUOMAO/LaSM。