Manuscript Offprint

arXiv:2610.24611

HSPR: Recovering Software-Agent Benchmark Scores via Hierarchical Posterior Inference

Wanyi Chen, Wanqin Shen, Yuanchen Shi, Zhensu Sun, Fang Kong

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Evaluating software agents on a full benchmark is expensive. A small task subset can preserve agent rankings while yielding inaccurate scores. Historical responses provide useful structure, but tasks with identical source responses can have different outcomes for a new target agent. We introduce Hierarchical Score Posterior Recovery (HSPR), which combines source-fitted response factors with uncertain group success rates. Observed target outcomes update the posteriors over the target latent state and group rates; posterior-guided acquisition selects subsequent tasks. Its score-based criterion equals the expected one-step reduction in full-score posterior variance. Observed successes and posterior-predictive counts for unqueried tasks yield a full-score posterior. The final estimate uses its median with source-selected calibration. At a 10% task budget on four task banks from the SWE-bench family, HSPR achieves the lowest mean absolute error (MAE) on three banks and the lowest maximum absolute error (MaxErr) on all four among the methods compared. Removing group uncertainty or replacing adaptive queries increases macro MAE in the respective controls. Macro MAE decreases across 5–20% budgets.

1 Introduction

Evaluating a software agent requires repository exploration, code editing, tool use, and execution across hundreds or thousands of tasks (Jimenez et al., 2024; Duan et al., 2026). A small execution budget makes this evaluation more practical and creates an inference problem: recovering the agent's score on the full benchmark from a few observed task outcomes. Accurate score recovery is essential for comparing progress and assessing capability.

Figure

Figure 1: Task-efficient software-agent evaluation. Representative strategies estimate full-benchmark scores from limited target executions. HSPR combines hierarchical response modeling with adaptive querying. The displayed median is the decision before source-selected calibration.

At a 10% budget on SWE-bench Pro, Mid-Range selection (Ndzomga, 2026) preserves model ordering well ( τb=.967\tau_{b} = .967), yet its raw subset mean has mean absolute error (MAE) of 22.798 percentage points (pp) (Table 1). Using the same Mid-Range outcomes, a source-fitted Ridge estimator reduces MAE to 3.434 pp. Estimation accuracy also varies across task banks: ATLAS-port has MAE of 0.957 pp on Full and 7.736 pp on Pro. Low-budget evaluation depends on both task selection and the estimator applied to the observed outcomes.

The source-response signature of a task records its binary outcomes across historical agents. Tasks with identical signatures may have different outcomes for a new target agent, while still sharing a response tendency. Modeling this tendency as an uncertain group success rate lets one observation inform other group members without fixing their outcomes. We ask: How can we recover a target agent's full-benchmark score from a few executions while accounting for uncertainty in how source response patterns transfer to the target?

We introduce Hierarchical Score Posterior Recovery (HSPR), illustrated in Figure 1. HSPR

∗^{*}Corresponding author.

uses source-fitted response factors to model a target latent response state and uncertain success rates within source-signature groups. Each observed outcome updates the latent-state posterior and the group-rate posteriors. Posterior-guided acquisition selects the next task using these dependencies. Observed successes and posterior-predictive counts for unqueried tasks yield a distribution over the full-benchmark score. Its median minimizes model-conditional expected absolute loss; source-only validation selects calibration for the final estimate.

At a 10% task budget, HSPR achieves the lowest MAE point estimates on Lite, Full, and Pro and the lowest MaxErr on all four SWE-bench task banks compared with the baselines in Table 1. On Verified, its MAE is within 0.055 pp of ATLASport. In the respective controls, removing group uncertainty increases macro MAE, as does replacing adaptive queries with the estimator held fixed. Across 5–20% task budgets, equal-bank macro MAE decreases as more outcomes are observed.

Our contributions are threefold:

• We introduce HSPR, a hierarchical full-score model that combines source-fitted response factors with uncertain target success rates within source-signature groups.

• We derive posterior-guided acquisition for score recovery, including a criterion equal to the expected one-step reduction in finite-score variance. Source-only validation selects the deployed acquisition objective before target evaluation.

• We provide a controlled empirical study across four SWE-bench task banks, including end-to-end hierarchy controls, estimation and acquisition ablations, paired statistical analysis, mechanism diagnostics, and 5–20% budget sweeps.

References (27)