Skip to content

HSPR: Recovering software agent benchmark scores through hierarchical posterior inferenceHSPR: Recovering Software-Agent Benchmark Scores via Hierarchical Posterior Inference

Hugging Face Daily Papers· arXiv:2610.24611· Wanyi Chen, Wanqin Shen, Yuanchen Shi, Zhensu Sun, Fang KongSoochow University; Singapore Management UniversityIndexed by this site · 2026-10-20· Originally publishedEvaluation

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

HSPR uses a hierarchical posterior to recover full benchmark scores from a small number of executions; at a 10% budget, the macro MAE across four repositories is 1.664 pp.

Questions
Full evaluation of software agents is expensive. A small task subset can preserve ranking, but the full-benchmark score error is large; tasks with the same source response may still yield different results for a new target. Scores need to be recovered under few executions, and transfer uncertainty must be accounted for.
Methods
HSPR uses source-fitted factors to represent the target latent state, and models the success rate of source signature groups as an uncertain Beta rate. Observations update the posterior, tasks are selected by the expected decrease in full-score variance, and the posterior median plus a source-side selected calibration is used as the estimate.
Experiments and results
At a 10% budget, HSPR has the lowest MAE on Lite, Full and Pro, and the lowest MaxErr across the four repositories; on Verified, ATLAS-port's MAE is lower. Removing group uncertainty or using non-adaptive querying increases the equal-weight macro MAE, with exceptions in individual repositories.
Limitations and future work
The authors write that generalization under large shifts in model family or scaffold remains to be evaluated; factors and signature groups depend on source repository coverage, and the posterior is conditioned on a model that includes within-group exchangeability. A reduction in the number of tasks does not directly imply token or monetary savings. The experiments use archived replays of four SWE-bench repositories.
Experimental setupSWE-bench Lite、SWE-bench Verified et al. · MAE、MaxErr et al.
Benchmarks
SWE-bench LiteSWE-bench VerifiedSWE-bench FullSWE-bench Pro
Metrics
MAEMaxErrKendall's τbequal-bank macro MAE
AI summaryHSPR estimates the full benchmark score of a software agent from a small task subset through response factors fitted on source data, group success-rate uncertainty, and posterior-guided task selection. On four task libraries in the SWE-bench series, with a 10% task budget, HSPR achieves the lowest mean absolute error (MAE) among the compared methods on three libraries, and the lowest maximum absolute error (MaxErr) on all four libraries.

HSPR estimates the full benchmark score of a software agent from a small task subset through response factors fitted on source data, group success-rate uncertainty, and posterior-guided task selection. On four task libraries in the SWE-bench series, with a 10% task budget, HSPR achieves the lowest mean absolute error (MAE) among the compared methods on three libraries, and the lowest maximum absolute error (MaxErr) on all four libraries.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Few executions must recover full-benchmark scores and handle the uncertainty of transferring source responses to new targets.

    Recover the full benchmark score of a target agent under a small number of task executions, while accounting for uncertainty in the transfer of source response patterns.

    • Evaluation cost: the authors state that evaluating software agents requires repository exploration, code modification, tool use and execution on hundreds or thousands of tasks (Jimenez et al., 2024; Duan et al., 2026). A small execution budget makes evaluation more feasible while introducing an inference problem: recovering the full benchmark score from a few observed results. The authors consider accurate score recovery necessary for comparing progress and assessing capability.
    • Existing gap: the authors point out that a small task subset can preserve agent ranking, but scores are inaccurate. On SWE-bench Pro at a 10% budget, Mid-Range's τb is .967 and the raw subset mean's MAE is 22.798 pp; the same batch of results with a source-fitted Ridge gives an MAE of 3.434 pp (Table 1). ATLAS-port's MAE is 0.957 pp on Full and 7.736 pp on Pro. The authors consider low-budget evaluation to depend on both task selection and the estimator applied to the observed results.
    • Core observation: a task's source response signature records its binary results on historical agents. Tasks with the same signature can have different results for a new target, but still share a response tendency. The authors model this tendency as an uncertain group success rate, so that one observation can affect other tasks in the same group without fixing their results.
    • Proposed method: Hierarchical Score Posterior Recovery (HSPR). Source-fitted response factors model the target latent response state, and an uncertain success rate is used within source signature groups; observations update both posteriors, posterior-guided acquisition selects subsequent tasks, and the median of the full-score posterior plus a source-side selected calibration serves as the final estimate.
  2. What related research exists?

    Related work involves subset prediction, item response, and ranking; the authors place HSPR in full-score recovery.

    Predicting benchmark scores from a few observations

    • Active Testing and surrogate estimation: Active Testing (Kossen et al., 2021) combines informative queries with sampling correction; Active Surrogate Estimators (Kossen et al., 2022) learn a surrogate for unobserved errors.
    • Regression, compact subsets and factor querying: RSL (Zhang et al., 2025) uses random core regression; the paper writes that learned benchmark predictors may fail under extrapolation. tinyBenchmarks (Maia Polo et al., 2024) uses compact calibration subsets. SparseEval (Zhang et al., 2026) optimizes anchors and weights from the response matrix; FAQ (Wu et al., 2026) combines historical factors, adaptive querying and finite-population inference. The authors state that HSPR uses a model-conditioned finite-score posterior with global factors and uncertain group rates.

    Psychometrics and agent responses

    • Item calibration: item response models are used to calibrate NLP test items (Lalor et al., 2016). Amortized model-based evaluation predicts difficulty from item content to support adaptive testing (Truong et al., 2025). Agent Psychometrics models task-level agent responses (Ge et al., 2026).
    • Two methods directly compared in this paper: ATLAS uses item response models and Fisher-guided acquisition (Li et al., 2026); PTA-IRT uses historical trajectory information for task selection and reconstruction (Duan et al., 2026). The authors state that HSPR builds on historical item calibration but adds residual response dimensions and target-conditioned group rates. ATLAS's Fisher acquisition targets latent capability; HSPR's score-variance criterion targets the full benchmark score and accounts for dependence among unobserved results.

    Subsets, ranking and evaluation settings

    • Ranking and numerical scale: selecting subsets by historical pass rate can preserve software agent ranking (Ndzomga, 2026); subset quality depends on the task repository and representation (Gusev and Zaytsev, 2026). SubLIME predicts the rank correlation from subset to full set from anchor models and dataset features (Saranathan et al., 2025). The authors note that ranking measures relative order (Liu et al., 2025), whereas score recovery requires an accurate numerical scale.

    • Broader evaluation settings: HELM, BIG-bench, MMLU and Dynabench cover heterogeneous evaluation settings; AgentBench and AgentBoard evaluate tool use and multi-turn agents. EarlyEval uses early-result prediction to reduce within-task execution (Shi et al., 2026). Trajectory selection (Ayyad et al., 2026) and process-aware adaptive testing (van der Linden, 2008) use additional observations. The authors state that HSPR uses source binary responses and observed target results.

    • Baselines and benchmarks: the experimental comparisons are Uniform raw mean, difficulty stratification, RSL, FAQ-port, Mid-Range raw mean, Mid-Range plus Ridge, ATLAS-port, and frozen PTA-IRT. The task repositories are the SWE-bench family's Lite, Verified, Full and Pro, using the public PTA-IRT response matrices.

    The authors state that HSPR uses uncertain target group rates in addition to historical factors, and that the acquisition criterion targets full-score variance, in order to recover numerical scores rather than only preserve ranking or only estimate latent capability.

  3. How does the paper address this problem?

    HSPR builds a full-score posterior using source factors and uncertain group rates, and selects tasks by variance decrease.

    HSPR places global factors fitted on source responses and uncertain success rates within source signature groups into the same finite-score posterior; queries update this posterior, and the final estimate takes the posterior median with a source-side selected calibration. The workflow is shown in Figure 2, and the steps are in Algorithm 1.

    Finite scores and observation budget

    • Score definition: the source matrix M is the binary responses of m agents on a fixed set of N tasks. The full benchmark score of the target result vector Y is S=1/N∑i=1NYi. The evaluator observes the results of at most B distinct tasks and returns an estimate Ŝ.
    • Information boundary: in archived replay, Y is fixed, and only queried items are revealed. Acquisition at step t uses only M and the observed history D_t. The score is split into observed and unobserved parts: the former is exact, and HSPR places a joint predictive distribution on the latter to preserve dependence among unobserved results. The entire text is conditioned on M.

    Historical factors and source signature groups

    • Item model: a regularized logistic item model is fitted on historical agents. Task i has intercept b_i and capability slope a_i. The source agent's capability is obtained by standardizing the logit of its smoothed full benchmark score. The prior on source task success rates mixes a point mass at zero with a Beta distribution, used to initialize and regularize the intercepts. Appendix A gives initialization, scaling and numerical settings.
    • Residuals and latent state: after the item fit, a centered SVD is performed on the source response residuals to obtain r task directions. The scaled residual loading v_i describes deviation from the relative scalar capability pattern. The prior on the target latent state z=(θ, u) is normal, with precision matrix P diagonal; the task success probability is logistic(b_i+a_i θ+v_i transpose u). The source-fitted (b_i, a_i, v_i) are fixed during target inference. The residual rank and prior precision are selected on the source side.
    • Signature groups: if two tasks have identical responses on every source agent, they are placed in the same source signature group. Group G_g contains N_g tasks. Tasks with the same signature are indistinguishable in the source matrix, so their intercepts, slopes and residual loadings are averaged to obtain the group baseline probability p_g(z). Target results within a group are modeled as exchangeable draws from a shared uncertain success rate; unobserved results need not be identical.

    Target-specific group rates

    • Conditional prior: the group success rate q_g, given z, follows a Beta with mean p_g(z) and concentration c_g(z)=κ divided by p_g(z)(1−p_g(z)), κ>0. The smaller κ is, the larger the prior dispersion around that mean. One source-side selected κ is used for all groups. When the baseline probability is near 0 or 1, this construction gives a smaller prior variance. Given the group rate, results within a group are independent Bernoulli.
    • Update: observed counts update the group-rate posterior via conjugacy, and the observation history also updates the posterior of z; the likelihood of the within-group binary sequence is written as a ratio of Beta functions. After integrating out the group rate, tasks within a group still share an unknown target-specific rate even when conditioned on the global state. The number of unqueried successes, given z and the history, is Beta-Binomial. The full score equals the sum over groups of observed successes and unqueried successes; given z, group counts are independent, and marginally they share uncertainty about z.

    Posterior-guided acquisition and score decision

    • Score variance criterion: for groups that still have unqueried tasks, one task result Y_g is drawn uniformly. The score variance rule selects the group that maximizes the squared covariance divided by the predictive variance of Y_g. Proposition 1 gives that, under the HSPR predictive model, if the conditional probability of this binary result is strictly between 0 and 1, this quantity equals the expected one-step decrease in the full benchmark score posterior variance: GSg=Var(S∣ Dt)−𝔼[Var(S∣ Dt,Yg)∣ Dt]. The paper writes that this identity follows from the law of total variance and does not establish optimality with respect to the final absolute error.
    • How the hierarchy enters selection: the covariance conditioned on z has two terms, corresponding respectively to resolving the current query and to allocating evidence to the remaining unqueried tasks in the same group. The larger the unqueried group, the larger the latter term under a fixed rate posterior; integrating over z adds cross-group dependence. Another rule selects groups by the expected decrease in the sum of posterior variances of the latent coordinates. Source-side validation selects the rule before target replay: of 16 deployment folds, 13 select Score and 3 select Latent. After a group is selected, tasks are sampled uniformly among unqueried tasks, and exhausted groups are excluded.
    • Median and calibration: under absolute score loss, a median of the full-score posterior minimizes the posterior expected absolute loss. Sampling draws z, the conditional group rates and the unqueried successes in turn, each time exactly accounting for observed successes. Optional calibration adds λ(1−B/N)R_B to the median and then truncates to [0,1]; R_B is the difference between observed successes and the group-rate posterior mean divided by B. Source-side validation selects λ∈{0, .5}. Absolute-loss optimality applies only to the unadjusted predictive median. When the budget is exhausted, the estimate equals the true score.
    • Source-side configuration and approximation: leave-one-source-agent-out validation has three stages: a global stage selects rank and precision; a hierarchical stage selects κ and the acquisition rule; finally the median calibration is selected on the resulting query path. Validation rows are removed before fitting, and after selection the model is refitted on all source rows and frozen. The continuous posterior in Equation 8 is approximated by importance sampling, with the proposal a Gaussian centered on an auxiliary logistic-normal MAP. Appendix A gives the grid, Table 4 lists the frozen settings for each fold; Appendix E reports numerical checks.
  4. What experiments did the paper conduct?

    In Table 1, HSPR has the lowest MAE on three repositories and the lowest MaxErr across four repositories; its MAE on Verified is not the lowest.

    Experimental Setup

    • Task libraries: The public PTA-IRT response matrices are used, with four libraries: Lite (300 tasks, 35 configurations), Verified (500, 70), Full (2294, 14), and Pro (730, 14). A configuration is an evaluated agent setting and corresponds to one row of the matrix. Each library has four folds.
    • Splits: Within a fold, the configuration identifiers of source and target are disjoint, and each configuration serves as target once. The authors state that this configuration-level split allows source and target to share a base model or related scaffolding. Source folds have 26–27 configurations for Lite, 52–53 for Verified, and 10–11 each for Full and Pro.
    • Budget and replay: The main checkpoint is 10%, B=round(.1N), i.e., 30, 50, 229, and 73 distinct tasks. Each target has five HSPR paths (seeds 0–4). Predictions are recorded before scoring with full results. The budget counts distinct target–task results revealed in replay; archived agents are not rerun.
    • Baselines: Uniform raw mean, Stratified, RSL, FAQ-port, Mid-Range raw mean, Mid-Range+Ridge, ATLAS-port, frozen PTA-IRT. RSL and Uniform share the uniform query set; the Ridge control and the Mid-Range raw mean share a query set. Appendix C states that FAQ-port and ATLAS-port are adaptations on the available libraries, and that PTA-IRT retains published frozen predictions containing historical trajectories; matching target-task budgets does not equalize historical information or source-fitting cost.
    • Metrics and seeds: MAE is the mean absolute error over held-out configurations, MaxErr is the maximum among them, in pp; τb uses all cohort pairs and handles ties. Four folds are first pooled within a query seed, then averaged over seeds. Sampling/RSL has ten stored seeds, ATLAS-port and HSPR five, and deterministic or frozen methods have one prediction per configuration. Success comes from archived binary outcomes; the paper does not use LLM judging.
    • Freezing: HSPR's model settings, acquisition targets, and calibration are frozen after source-side validation and before target replay.

    Main Results

    According to Table 1, at the matched 10% task budget, numbers are MAE (pp). The table omits Uniform raw, whose four-library MAE is 6.632, 5.482, 2.227, 3.832.

    Swipe horizontally to read the table

    MethodLiteVerifiedFullPro
    HSPR1.9271.9150.7172.098
    ATLAS-port2.6891.8610.9577.736
    PTA-IRT2.7242.1772.2802.731
    Mid-Range+Ridge4.7173.6531.5323.434
    Stratified4.4683.3021.6363.111
    RSL4.9113.6542.2774.467
    FAQ-port6.6814.9511.8075.433
    Mid-Range18.44816.44924.70922.798
    • Error and ranking: The authors report that HSPR has the lowest MAE point estimate on Lite, Full, and Pro, and on Verified differs from ATLAS-port by no more than 0.055 pp; the paired difference in Table 5 is +0.055 pp. The four-library MaxErr is 5.683, 6.000, 2.638, 4.601 pp, which the authors state is the lowest among the compared methods. The equal-weight macro MAE is 1.664 pp, versus 2.478 pp for PTA-IRT.
    • Not leading on every item: The authors state that HSPR ranks in the top two on 12 benchmark–metric combinations and leads on 8 of them. τb shown in Table 1: HSPR is 0.912, 0.914, 0.978, 0.895; on Full, ATLAS-port is 1.000; on Pro, Mid-Range is 0.967 and ATLAS-port is 0.398. On Pro, Mid-Range's MAE is 22.798 pp. The authors use this gap to argue that absolute score error should be reported in addition to ranking fidelity.
    • Paired tests: The authors report that, using a Holm-corrected Wilcoxon test on seed-averaged absolute error, results favor HSPR over RSL on four libraries, over Stratified on three libraries, and over ATLAS-port on Pro. In Table 5, the Holm p versus RSL is < .001, < .001, 0.017, 0.036; versus ATLAS-port, Pro is 0.003 and Verified is 1.000, interval [−0.355, +0.448].

    Hierarchy, Query, and Decision Controls

    • Group uncertainty: Table 2A fixes the selected acquisition targets, global configuration, and median calibration for each fold, and the two variants each generate paths. Removing group uncertainty raises the equal-weight macro MAE from 1.664 pp to 1.808 pp. Not all libraries rise: Lite is 1.895 vs 1.927, Pro is 2.034 vs 2.098; Full falls from 1.331 to 0.717. The paired-configuration bootstrap interval for the 0.143 pp difference is [−0.012, 0.302], which includes 0. Appendix E states that after Holm correction, the Wilcoxon tests on the four libraries are no longer significant.
    • Query: Table 2B freezes the HSPR reconstruction, median, and calibration. Replacing with Uniform or fixed Mid-Range gives macro MAE of 3.085 and 2.934 pp. On Pro, the MAE with Mid-Range queries is 1.975 pp, lower than adaptive HSPR's 2.098 pp.
    • Decision: Table 2C uses the same HSPR paths, replaces the median with the posterior mean, and selects calibration on the source separately for the two decisions. Macro MAE is 1.664 vs 1.674 pp.

    Historical Structure and Query Destination

    • Group size: In Table 3, Full's 2294 tasks form on average 275.9 source-signature groups, N/Ḡ=8.32; Verified has 426.0 groups among 500 tasks, N/Ḡ=1.17. The authors consider this structural difference consistent with the larger end-to-end hierarchical gain on Full.
    • Source-zero-success tasks: In Full and Pro, 41.3% and 36.7% of tasks, respectively, have no success in the given source fold; the target success rates within these sets are 1.84% and 2.07%, computed using full results after estimation. In the controlled Full comparison, source-zero tasks account for 13.2% of queries with hierarchy and 0.19% without; Table 7 writes this proportion as 13.225%.
    • Mechanism in the discussion: The authors state that, with task-library size and rate posterior fixed, the second term of Equation 12 scales with the number of other unqueried members in the same group and the posterior variance of the shared rate; as results are revealed, the remaining group size and rate posterior change, thereby changing that term's contribution to Score acquisition.

    Budget Sweep

    • 5–20%: The authors report that HSPR's equal-weight macro MAE falls from 2.562 pp to 1.262 pp (Figure 3). HSPR fixes the 10% source-side setting at each checkpoint and uses nested distinct task paths with five seeds per target; baselines retain their own budget-saved settings.
    • Visible range in the figure: The legend includes Uniform, Stratified, RSL, ATLAS-port, PTA-IRT, and HSPR; the vertical axis is MAE, Kendall τb, and MaxErr, and the horizontal axis is task budget percentage. The main text does not list the values of each point in the figure per library, so curve positions are not supplied here.

    Other Ablations and Analyses

    • Table 6, same paths, posterior-mean reconstruction: the MAE difference for group uncertainty (without group minus with group) is Lite +0.009, Verified +0.001, Full +0.180, Pro −0.006 pp.
    • Figure 4 panel MAE is Lite 1.93 pp (n=35), Verified 1.92 (n=70), Full 0.72 (n=14), Pro 2.10 (n=14). On Lite, GPT/o-series vs Claude is 1.71 vs 2.15 pp, and on Verified 1.70 vs 1.52 pp; on Full, GPT/o-series, Claude, and Unspecified are 0.39, 0.80, 0.74 pp, with the mean absolute error per configuration below 1.71 pp.
    • Appendix G: 133 targets times 5 seeds, 665 runs in total, concurrent wall-clock 510.1 seconds, inferred 3.31 CPU hours; median wall-clock is Lite 6.19 seconds, Verified 20.31 seconds, Full 30.96 seconds, Pro 7.79 seconds. Replay matches the main results, with a maximum absolute prediction difference of 2.22×10^{-16} on the unit score scale. The authors state that this is not the total cost saved on source-side selection or agent execution.
    • Appendix E: prediction medians use 131,072 full-score samples; 8,192 and 32,768 nodes are compared on the common query history with a 0–1 scale tolerance of .0005.
  5. What are some points that can be further explored?

    The authors state that generalization, source coverage, and model assumptions remain to be addressed, and that the number of tasks cannot be directly converted into cost.

    Limitations and Future Directions Noted by the Authors

    • Generalization under shift: The evaluation covers held-out agent configurations on four task libraries in the SWE-bench family; generalization under large shifts in model family or agent scaffolding remains to be evaluated (Limitations).
    • Source-library coverage: Response factors and source-signature groups come from the historical source library, so they depend on that library's coverage (Limitations).
    • Model assumptions: Posterior uncertainty is conditional on the assumed response model, including within-group exchangeability (Limitations).
    • Budget accounting: The budget is measured by the number of distinct target–task executions. Token, wall-clock, and monetary savings depend on per-task execution cost and cannot be directly inferred from a reduction in task count (Limitations).
    • Additional costs: Historical data collection, source fitting, and configuration selection incur additional costs (Limitations).

    Scope of Experimental Coverage

    • The task libraries are Lite, Verified, Full, and Pro, with 300, 500, 2294, and 730 tasks and 35, 70, 14, and 14 configurations; each library has four folds. The main result is at 10% budget, with an additional 5–20% sweep (Section 4, Figure 3).
    • Controls include Uniform, Stratified, RSL, FAQ-port, Mid-Range, Mid-Range+Ridge, ATLAS-port, and frozen PTA-IRT. Appendix C states that FAQ-port and ATLAS-port are adapted implementations, and that PTA-IRT uses frozen predictions containing historical trajectories; matching task budgets does not equalize historical information.
    • Each target has five HSPR paths; sampling/RSL uses ten stored seeds. Paired analyses include a percentile bootstrap with 10,000 configuration resamples and Holm-corrected Wilcoxon tests on 16 comparisons (Table 5, Appendix D).
    • Controls also include removing group uncertainty, replacing adaptive queries, median versus posterior mean, and same-path reconstruction (Table 2, Table 6, Appendix E). Evaluation replays on archived matrices and does not rerun agents (Section 4.1).
    • The paper does not report token or monetary savings converted from the reduction in task count. Appendix G reports evaluator inference wall-clock and states that it excludes data loading, source fitting, configuration selection, and agent task execution.
  6. Summarize the main content of the paper

    Hierarchical posterior plus adaptive querying recovers full-benchmark scores; the 10% budget macro MAE is 1.664 pp, with exceptions in some libraries.

    HSPR estimates full benchmark scores of software agents from a limited number of replays. Full execution involves a large number of repository tasks; a small subset can preserve ranking, but the score error of the raw subset mean can be large. Tasks with the same source signature may still give different results for a new target.

    The method fits a logistic intercept, capability slope and residual directions on historical binary responses to represent the target latent state; tasks with the same signature share an uncertain Beta success rate. Each observation updates both the latent state and the group rate. The next task is selected by the expected one-step decrease in the full-score posterior variance, with uniform sampling within the group. The final estimate is the posterior median, and the calibration coefficient is selected from {0, .5} by source-side validation and shrinks with the unobserved proportion.

    • Main results: four SWE-bench family repositories use archived response matrices, with the main budget at 10% of tasks. HSPR's MAE is Lite 1.927, Verified 1.915, Full 0.717, Pro 2.098 pp; MaxErr is 5.683, 6.000, 2.638, 4.601 pp, the lowest across the four repositories among the compared methods in Table 1. The equal-weight macro MAE is 1.664 pp.
    • Exceptions: on Verified, ATLAS-port's MAE is 1.861 pp, with a paired difference of +0.055 pp. On Pro, Mid-Range's τb is 0.967 and MAE is 22.798 pp; ATLAS-port's τb is 0.398.
    • Controls: removing group uncertainty gives a macro MAE of 1.808 pp, with the interval containing 0; per-repository MAE decreases for Lite and Pro, and Full drops from 1.331 pp to 0.717 pp. Replacing with Uniform or Mid-Range querying gives macro MAE of 3.085 and 2.934 pp, but on Pro the Mid-Range query is 1.975 pp, lower than adaptive HSPR.
    • Authors' conclusion: at 5–20% budgets, macro MAE drops from 2.562 pp to 1.262 pp. The authors state that adaptive querying brings an aggregate gain, the contribution of group uncertainty varies by task repository, the improvement observed on Full is the largest, and historical response structure plays a role in score recovery at small budgets.
Read originalhuggingface.co