arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.00516cs.LGcs.AI
收藏

轨迹守护 -- 一种轻量级、序列感知的模型,用于代理AI中的实时异常检测

Trajectory Guard -- A Lightweight, Sequence-Aware Model for Real-Time Anomaly Detection in Agentic AI

Laksh Advani

Laksh Advani

AI总结:

轨迹守护通过对比学习和重建学习,实现对代理AI中任务轨迹对齐和序列有效性的联合检测,提升实时异常检测性能。

摘要:

自主LLM代理生成多步行动计划,可能因上下文不一致或结构不连贯而失败。现有异常检测方法难以应对这一挑战:均值池化嵌入会稀释异常步骤,而对比学习方法忽略序列结构。标准无监督方法在预训练嵌入上实现的F1分数最高不超过0.69。我们引入轨迹守护,一种具有混合损失函数的孪生循环自编码器,通过对比学习和重建学习共同学习任务轨迹对齐和序列有效性。这种双重目标使模型能够统一检测

英文摘要:

Autonomous LLM agents generate multi-step action plans that can fail due to contextual misalignment or structural incoherence. Existing anomaly detection methods are ill-suited for this challenge: mean-pooling embeddings dilutes anomalous steps, while contrastive-only approaches ignore sequential structure. Standard unsupervised methods on pre-trained embeddings achieve F1-scores no higher than 0.69. We introduce Trajectory Guard, a Siamese Recurrent Autoencoder with a hybrid loss function that jointly learns task-trajectory alignment via contrastive learning and sequential validity via reconstruction. This dual objective enables unified detection of both "wrong plan for this task" and "malformed plan structure." On benchmarks spanning synthetic perturbations and real-world failures from security audits (RAS-Eval) and multi-agent systems (Who\&When), we achieve F1-scores of 0.88-0.94 on balanced sets and recall of 0.86-0.92 on imbalanced external benchmarks. At 32 ms inference latency, our approach runs 17-27$\times$ faster than LLM Judge baselines, enabling real-time safety verification in production deployments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑