arXiv論文メモ
新着一覧
cs.CL / cs.AI · 査読状況未確認

LLMエージェントの失敗記録を回帰テストに変える

Chronicle: Cut-Point Replay for Regression Testing of LLM Agents

Tisha Chawla, Susheem Koul

この論文をやさしく読む

ひとことで言うと

AIエージェントの失敗時の非決定的な応答を記録し、一部だけ新コードで動かして回帰テストにする仕組みです。

何に役立つ?

モデル応答や外部状態が変わるせいで再現しにくい不具合を、継続的なテストへ変える用途があります。

この研究の面白いところ

すべてを記録通りに置換するのではなく、変更を検証したい境界を実行することで、危険な処理を通す変異コードを検出します。

どこまで分かった?

六件の記録済み失敗と、モデル境界をシミュレートしたベンチマークでの評価です。23マイクロ秒が0.008%という比較の基準300 msは仮定値です。

v1のアブストラクトに基づくAI解説。日本語訳とは別に、用途の解釈を含みます。

アブストラクトの日本語訳

大規模言語モデル(LLM)の応答は非決定的であり、LLMエージェントの失敗を再現するのは難しい。失敗は、ビット単位では再現できない推論、変化する状態を読むツール、再実行してもめったに一致しない複数段階の実行経路に依存する。記録と再生は実行を再現可能にするが、既存のエージェント用ツールは実行の追跡や採点のために記録するだけで、その記録に対してコード変更をテストするためには用いていない。 Chronicleは、エージェントの実行を非決定性が生じる境界で不変のエンベロープとして記録し、その記録から再生する。中心となる操作のカットポイント再生では、選択した境界の部分集合を記録から供給し、残りの境界を新しいコードで実際に実行することで、記録済みの障害を継続的インテグレーションで動作する回帰テストへ変える。 モデル境界を模擬した6件の失敗記録によるベンチマークでは、記録に伴う追加時間は境界通過1回につき23 μsであり、モデル呼び出しを300 msと仮定すると0.008%に相当する。完全再生はモデルを一度も呼び出さず、20回の反復でビット単位の安定性を保った。カットポイントテストは6件すべてで、不具合のあるコードを不合格とし、防護を加えた変更と無害な変更を合格とした。防護付きツールに対するミューテーション試験では、記録された危険な操作を通してしまう変異版をすべて検出した。一方、同じアサーションを使って全境界をスタブに置き換えるベースラインは一つも検出できなかった。Chronicleとベンチマークは https://github.com/theagentplane/chronicle で公開されている。

v1の要旨から自動生成。本文の精読・人による確認は未実施。

初稿
2026-09-17(UTC)
最新改訂
2026-09-17 · v1
査読・掲載
査読状況未確認
arXivで読むPDF

更新履歴

取得できた版を表示。版の更新は査読済みを意味しません。過去版の本文差分は未解析です。

原文の要旨

Large language model responses are non-deterministic, so failures in LLM agents are hard to reproduce: a failure depends on inference that is not bitwise reproducible, on tools that read changing state, and on a multi-step trajectory that a re-run rarely repeats. Record-and-replay makes a run reproducible, but existing agent tooling records runs only to trace or score them, not to test a code change against them. We present Chronicle, which records an agent run at its non-deterministic boundaries as immutable envelopes and replays it from the record. Its central operation, cut-point replay, serves a chosen subset of boundaries from the record and executes the complementary subset live with new code, turning a recorded incident into a regression test that runs in continuous integration. On a benchmark of 6 recorded failures with simulated model boundaries, recording adds 23 {\mu}s per crossing (0.008% of an assumed 300 ms model call), full replay issues zero model calls and is bit-stable across 20 repetitions, and cut-point tests fail on faulty code and pass on guarded and benign changes for all 6 incidents. In a mutation study of the guarded tools, cut-point tests catch every mutant that lets the recorded unsafe action through, while a baseline that stubs every boundary, using the same assertion, catches none. Chronicle and the benchmark are publicly available at https://github.com/theagentplane/chronicle.

arXiv ID: 2609.20625 / 要約の誤りについて