ExpGuard:为长程LLM智能体防御被污染经验的风险评估与在线修复框架
ExpGuard: Guarding Long-Horizon LLM Agents against Corrupted Experience
ExpGuard 是面向长程 LLM 智能体的经验风险框架,在经验复用前通过任务条件异构图结合经验语义、来源与执行依赖,预测攻击风险和任务失败风险。该方法对每条原始经验与其最小中和版本在同一任务和环境检查点做匹配反事实重放,从攻击成功率和合法任务完成差异中导出风险标签。推理阶段,ExpGuard 在检索时修复被标记为高风险的候选经验,并在其进入智能体活跃经验上下文前重新预测风险。
arXiv:2611.32085v1 Announce Type: new Abstract: Long-horizon large language model (LLM) agents distill past trajectories into reusable experiences. Misleading or adversarial guidance in source trajectories can corrupt these experiences, allowing harmful instructions to persist across tasks and influence future agent actions. Assessing the risks of potentially corrupted experiences poses three challenges: (1) modeling provenance and execution dependencies before experience reuse, (2) learning task-conditioned risk from trajectory outcomes, and (3) repairing risky experiences at online inference. To address these challenges, we present ExpGuard, a framework for retrieval-triggered experience risk assessment and online repair. Specifically, to tackle challenge (1), ExpGuard integrates experience semantics with provenance and execution dependencies in a task-conditioned heterogeneous graph to predict attack and task-failure risks before experience reuse. To enable task-conditioned risk supervision and tackle challenge (2), we conduct matched counterfactual replays of each original experience and its minimally neutralized counterpart from the same task and environment checkpoint, deriving separate risk labels from differences in attack success and legitimate task completion. To tackle challenge (3) at inference time, ExpGuard repairs candidate experiences flagged as high-risk by the graph-based predictor at retrieval and re-predicts their risks before they enter the agent's active experience context. Extensive experiments demonstrate the effectiveness of ExpGuard in identifying risky experiences and defending agents against experience corruption.
来源:arXiv (AI + Vision + Imaging) · arxiv.org