エージェントの行動履歴から回帰テストの代表問題を選ぶ
Trajectory-Aware Benchmark Subset Selection for Cost-Efficient Software Engineering Agent Regression Testing
この論文をやさしく読む
ひとことで言うと
コーディングエージェントのテストを毎回全件行う代わりに、以前の行動履歴から代表的な問題を選んで評価費用を減らします。
何に役立つ?
更新前後の性能を繰り返し確認する際のトークン費用削減に役立ちます。過去の全件テスト結果と行動記録を使う方式です。
この研究の面白いところ
合否の割合を保つだけでなく、行動履歴の埋め込みで各グループの中心に近い問題を選ぶ決定的な方法が、比較した76設定で最良でした。
どこまで分かった?
約90%削減は問題の10%を使った評価の結果で、すべての不具合を発見できる保証ではありません。推定誤差の値は、検証した三つの変更シナリオと比較方法に依存します。
v1のアブストラクトに基づくAI解説。日本語訳とは別に、用途の解釈を含みます。
アブストラクトの日本語訳
自律的なソフトウェア工学エージェント(SWEエージェント)はコーディング作業を自動化する。エージェントを更新するたびに、性能低下や改善を検出するためベンチマーク全体の再実行が必要になる場合があるが、1回に数億のLLMトークンを要するため、評価がボトルネックとなる。解決策の一つは、ベンチマークの問題の一部だけを評価することである。しかし無作為抽出や、過去の合否に基づく層別無作為抽出のような単純な手法では、分散が大きく代表性の低い部分集合になる恐れがある。 本研究では、エージェントが実行した行動の逐次記録である軌跡に着目する。無作為抽出を軌跡の埋め込みに基づく決定的な選択へ置き換える、軌跡を考慮した部分集合選択法を提案する。まず直近の全件テストの結果によってテスト問題をグループ化し、過去の合否率を保持する。その後、軌跡の埋め込み空間で部分集合を選ぶ。 同一設定での再実行、モデルと設定の変更、エージェントのフレームワーク変更という三つの回帰シナリオで、無作為抽出、埋め込みに基づく選択、クラスタリングに基づく選択、候補を絞ってから部分抽出する混合法など、76種類の設定を評価する。最良の軌跡考慮法は、埋め込み空間で各結果グループの重心に最も近い問題を選ぶ方法だった。これは評価した全手法の中で推定誤差が最小となる。 例えば、テスト問題の5%または10%を選んで特定バージョンのエージェントを評価すると、最強のベースラインの典型的な抽出結果と比べ、平均推定誤差を3〜11%、最悪時の誤差を4〜11%削減し、同ベースラインの95パーセンタイルの抽出結果と比べた最悪時の誤差を38〜46%削減する。10%の軌跡考慮部分集合を使うと、推定誤差の中央値を5%未満に保ちながら、トークン費用を約90%削減できることを示す。
v1の要旨から自動生成。本文の精読・人による確認は未実施。
- 初稿
- 2026-09-21(UTC)
- 最新改訂
- 2026-09-21 · v1
- 査読・掲載
- 査読状況未確認
更新履歴
- v1 2026-09-21 この版を読む
取得できた版を表示。版の更新は査読済みを意味しません。過去版の本文差分は未解析です。
原文の要旨
Autonomous software engineering agents (SWE-agents) automate coding tasks. Each agent update may require re-running the full benchmark to detect regressions and improvements, at a cost of hundreds of millions of LLM tokens per run, which makes evaluation a bottleneck. One solution is to evaluate only a subset of benchmark instances. Yet, simple approaches, such as random sampling or stratified random sampling based on past pass/fail outcomes, risk producing high variance and unrepresentative subsets. We turn to agent trajectories, the step-by-step record of the actions an agent took. We propose a trajectory-aware subset selection approach that replaces random sampling with deterministic selection based on trajectory embeddings. We first group test set instances by their test outcome in a recent full test run to preserve the historical pass/fail rate, then select the subset using the trajectory's embedding space. We evaluate 76 subset selection configurations, including random sampling, embedding-based selection, clustering-based selection, and hybrid shortlist-then-subsample strategies, across three regression scenarios: same-configuration reruns, model and configuration changes, and agent framework changes. Our best trajectory-aware method is the one selecting benchmark instances closest to the centroid of each outcome group in the embedding space. It achieves the lowest estimation error among all methods we evaluate. For instance, when evaluating a given agent version on a selected subset of 5% or 10% of the test instances, our approach reduces the average estimation error by 3--11% and the worst-case error by 4--11% relative to the typical draw and 38--46% relative to the 95th-percentile draw of the strongest baseline. Our results show that a 10% trajectory-aware subset keeps the median estimation error below 5% while cutting token cost by roughly 90%.
arXiv ID: 2609.24928 / 要約の誤りについて