Efficient SWE Agent Benchmarking via Trajectory-Aware Evaluation

Kefeng Duan, Dewu Zheng, Yanlin Wang, Xiwen Wang, Ensheng Shi, Xilin Liu, Yuchi Ma, Jiachi Chen, Mingwei Liu, Zibin ZhengarXiv 2026

TL;DR

Evaluating software engineering (SWE) agents on full benchmarks like SWE-bench is prohibitively expensive, costing thousands of dollars per run. This paper introduces PTA-IRT, a framework that leverages historical agent trajectories—how they explore codebases and attempt edits—as "privileged information" to select a tiny, highly informative subset of tasks (e.g., 10%) that can accurately predict an agent's full-benchmark performance and ranking.

What Problem Does This Paper Address?

Large Language Model (LLM) agents are increasingly capable of handling complex, repository-level software engineering tasks. However, benchmarking them is incredibly resource-intensive. Running an agent across the 2,000+ tasks in SWE-bench can cost upwards of $8,000 due to long-horizon interactions like codebase exploration, file editing, and test execution.

Prior work attempted to solve this by using Item Response Theory (IRT) to select a small "calibration subset" of tasks to estimate full performance. However, these traditional methods are result-only—they look exclusively at whether an agent passed or failed a task. This discards the rich, process-level information contained in the agent's trajectory (e.g., what files it looked at, what edits it tried, and exactly where its problem-solving process broke down).

Overview of the PTA-IRT framework compared to prior outcome-only methods.

Methods

The authors propose PTA-IRT (Privileged Trajectory-Aware Item Response Theory), which operates in three consecutive stages:

  1. Construct Agent Trajectory Representations: Raw, messy execution logs from historical agent runs are parsed and summarized by an LLM into structured profiles containing four distinct fields: Task Goal, Context Explored, Edits Executed, and Path Overview.
  2. Select Informative Calibration Items: The framework fits a trajectory-aware 4-parameter logistic (4PL) IRT model. It calculates the Fisher information of each task, weighted by the reliability of its trajectory data, to select a difficulty-stratified subset of tasks that maximizes measurement value.
  3. Estimate Agent Ability via LUPI: Using the Learning Using Privileged Information (LUPI) paradigm, a teacher-student framework distills trajectory-conditioned knowledge into a student model during offline training. When a brand-new agent needs to be evaluated, it is only executed on the small calibration subset. The student model then uses these limited pass/fail outcomes to accurately extrapolate the agent's full-benchmark score and ranking.

Datasets

The authors evaluated their method across four variations of the popular SWE-bench suite:

  • SWE-bench Lite: A curated subset of 300 tasks filtered using rule-based heuristics.
  • SWE-bench Verified: A subset of 500 tasks verified by human annotators to ensure high quality.
  • SWE-bench Full: The complete benchmark containing 2,294 complex programming tasks.
  • SWE-bench Pro: A more challenging extension with 730 long-horizon, multi-file enterprise-style tasks.

Key Insights and Ideas

  • Process Over Outcomes: Binary pass/fail metrics collapse diverse problem-solving behaviors. Two agents might both fail a task, but one might fail during initial environment setup while the other fails on a single edge-case test after writing a near-perfect patch. Trajectories capture this distinction.
  • Division of Labor in Summaries: Analysis showed that different parts of the trajectory summary capture distinct information. The Task Goal aligns closely with the issue text, and Edits Executed tracks the final patch, but Context Explored and Path Overview provide entirely unique process signals not found in the static code or final outcomes.
  • The Power of Privileged Information: By treating trajectories as privileged information (available during training but not required at test time), PTA-IRT avoids the catch-22 of needing to run the full benchmark to get trajectories for a new agent.

Key Results

  • Superior Score and Ranking Recovery: With just a 10% calibration budget (running only 10% of the tasks), PTA-IRT consistently outperformed all prior IRT baselines. Across all four benchmarks, it achieved an average Mean Absolute Error (MAE) of just 0.041, a Kendall’s $\tau$ of 0.888, and a Spearman’s $\rho$ of 0.973 for ranking recovery.
  • Robustness under Ultra-Low Budgets: Even at a tiny budget of 5%, PTA-IRT achieved a highly practical ranking correlation ($\tau = 0.768$), making it viable for rapid, low-cost agent prototyping.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@misc{duan2026efficient,
  author = {Kefeng Duan and Dewu Zheng and Yanlin Wang and Xiwen Wang and Ensheng Shi and Xilin Liu and Yuchi Ma and Jiachi Chen and Mingwei Liu and Zibin Zheng},
  title = {{Efficient SWE Agent Benchmarking via Trajectory-Aware Evaluation}},
  year = {2026},
  eprint = {2609.01603},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.01603},
}
Figure