Skip to content

VeilGRPO: Observation-Masked GRPO for Robust Multi-Turn LLM Agents

Jianwei Sun, Jiaxuan Xie, Shichen Yang, Wenhui Luo, Yifeng He, Xuan Ji, Blaze Zhang, Alex Wei

cs.AI

Abstract

Omission, truncation, and compression of historical tool results alter the decision basis of LLM agents in multi-turn interaction tasks, whereas GRPO training under full observation does not optimize for these conditions. We propose VeilGRPO, which samples full-context trajectories and, at the update stage, randomly masks input tool observations and excludes the immediately following response from the loss---without extra environment interaction. A gradient decomposition of the masked-view update explains the complementarity of observation masking and next-response filtering, and ablations confirm that only their combination is best or tied-best under every condition. On WebShop, ALFWorld, ScienceWorld, and DeepSearch multi-hop QA, VeilGRPO outperforms the baseline under full observation in most cases and substantially improves robustness under missing history: retaining only the latest tool observation, WebShop's 3-seed mean success rate rises from 4.60% to 43.87%; retaining only the latest interaction step, ALFWorld rises from 16.42% to 63.43%. The gains also generalize to perturbation unseen during training---summary compression and missing newly-arrived feedback. In all 40 conditions where the baseline drops ≥10\geq 10 percentage points, VeilGRPO drops less.

Create a lesson