HSPR: Recovering Software-Agent Benchmark Scores via Hierarchical Posterior Inference
Organizations: Soochow University · Singapore Management University
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. Code and project resources are publicly available.
Figures & tables
| Method | Lite (30/300) | Verified (50/500) | Full (229/2294) | Pro (73/730) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MAE | MaxErr | MAE | MaxErr | MAE | MaxErr | MAE | MaxErr | |||||
| Uniform raw | 6.632 | 19.300 | 0.654 | 5.482 | 15.460 | 0.785 | 2.227 | 5.342 | 0.923 | 3.832 | 10.233 | 0.757 |
| Stratified | 4.468 | 13.354 | 0.723 | 3.302 | 10.768 | 0.843 | 1.636 | 3.877 | 0.938 | 3.111 | 7.508 | 0.837 |
| RSL ( Zhang et al., 2025 ) | 4.911 | 16.064 | 0.683 | 3.654 | 14.590 | 0.823 | 2.277 | 8.547 | 0.930 | 4.467 | 12.822 | 0.714 |
| FAQ-port ( Wu et al., 2026 ) | 6.681 | 26.263 | 0.638 | 4.951 | 25.989 | 0.765 | 1.807 | 5.049 | 0.921 | 5.433 | 15.330 | 0.673 |
| Mid-Range ( Ndzomga, 2026 ) | 18.448 | 49.333 | 0.830 | 16.449 | 32.600 | 0.915 | 24.709 | 50.239 | 0.862 | 22.798 | 39.041 | 0.967 |
| Ablation / control | Lite | Verified | Full | Pro | Macro |
|---|---|---|---|---|---|
| HSPR (ours) | 1.927 | 1.915 | 0.717 | 2.098 | 1.664 |
| A. Hierarchical modeling: source-selected acquisition objective | |||||
| w/o group uncertainty | 1.895 | 1.970 | 1.331 | 2.034 | 1.808 |
| B. Query adaptivity: frozen HSPR reconstruction | |||||
| w/o adaptive queries (Uniform) | 4.573 | 3.288 | 1.413 | 3.066 | 3.085 |
| w/o adaptive queries (Mid-Range) | 3.961 | 3.059 | 2.741 | 1.975 | 2.934 |
| Bank | Tasks | Groups | Source-zero tasks | ||
|---|---|---|---|---|---|
| Share (%) | Target success (%) | ||||
| Lite | 300 | 201.5 | 1.49 | 24.6 | 0.87 |
| Verified | 500 | 426.0 | 1.17 | 8.3 | 0.74 |
| Full | 2294 | 275.9 | 8.32 | 41.3 | 1.84 |
| Pro | 730 | 222.0 | 3.29 | 36.7 | 2.07 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Bank | Fold | Policy | ||||
|---|---|---|---|---|---|---|
| Lite | 0 | 1 | 4 | 1 | Score | 0.5 |
| Lite | 1 | 4 | 4 | 4 | Score | 0.5 |
| Lite | 2 | 4 | 8 | 0.25 | Score | 0.5 |
| Lite | 3 | 1 | 8 | 4 | Latent | 0 |
| Verified | 0 | 4 | 1 | 1 | Score | 0 |
| Verified | 1 | 1 | 8 | 1 | Score | 0.5 |
| Benchmark | Comparator | MAE (pp) | Paired 95% CI (pp) | Holm |
|---|---|---|---|---|
| Lite | ATLAS-port | -0.762 | 0.081 | |
| Lite | PTA-IRT | -0.797 | 1.000 | |
| Lite | Stratified | -2.541 | ||
| Lite | RSL | -2.984 | ||
| Verified | ATLAS-port | +0.055 | 1.000 | |
| Verified | PTA-IRT | -0.262 | 1.000 |
| Bank | MAE | Group gain | ||||
|---|---|---|---|---|---|---|
| w/o groups | with groups | |||||
| Lite | 300 | 201.5 | 1.49 | 1.949 | 1.941 | +0.009 |
| Verified | 500 | 426.0 | 1.17 | 1.928 | 1.927 | +0.001 |
| Full | 2294 | 275.9 | 8.32 | 0.902 | 0.722 | +0.180 |
| Pro | 730 | 222.0 | 3.29 | 2.101 | 2.108 | -0.006 |
| Bank | Source groups | Source-zero tasks (%) | Target success on zeros (%) | Queries to zeros (%) |
|---|---|---|---|---|
| Lite | 201.5 | 24.6 | 0.87 | 0.248 |
| Verified | 426.0 | 8.3 | 0.74 | 0.000 |
| Full | 275.9 | 41.3 | 1.84 | 13.225 |
| Pro | 222.0 | 36.7 | 2.07 | 0.020 |
| Task bank | Runs | Median (s) | P90 (s) |
|---|---|---|---|
| Lite | 175 | 6.19 | 8.57 |
| Verified | 350 | 20.31 | 32.35 |
| Full | 70 | 30.96 | 61.67 |
| Pro | 70 | 7.79 | 14.12 |
AI Agent Evaluation
AI agent evaluation measures whether tool-using systems complete tasks reliably, safely, and efficiently across interactive settings.
See all 525 papers