arXiv · 2026

HSPRRecovering Software-Agent Benchmark Scores
via Hierarchical Posterior Inference

少跑一些题,估计整个测试集的得分。Fewer task executions. An estimate of the whole benchmark.

从历史 Agent 的成绩中学习题目之间的联系。每观察一个新结果,就更新判断、选择下一题,逐步恢复新 Agent 的完整得分。Learn task relationships from historical agents. Update uncertainty after each observed outcome, choose the next task, and recover the new agent’s full-benchmark score.

Wanyi Chen¹ · Wanqin Shen¹ · Yuanchen Shi¹ · Zhensu Sun² · Fang Kong¹†

¹ Soochow University   ² Singapore Management University
† 通讯作者† Corresponding author

10%主实验的题目预算task budget in the main experiment
4个 SWE-bench 系列题库SWE-bench task banks
CPUNumPy + SciPy 评估器NumPy + SciPy evaluator

问题与方法The problem & the method

跑少量题,如何知道完整得分?How much can a few outcomes tell us?

题目的难度和相关性各不相同,少量题的平均成绩可能偏离完整测试集。历史成绩提供线索:哪些题具有相近的响应模式,以及这些模式对新 Agent 还有多大不确定性。Tasks differ in difficulty and dependence, so a small subset’s average can miss the full score. Historical responses reveal shared patterns; HSPR also models uncertainty about how those patterns transfer to a new agent.

01

学习历史结构Learn historical structure

拟合整体响应因素,并将历史成绩完全相同的题分组。组内题共享一个带有不确定性的成功率。Fit response factors and group tasks with identical source-response signatures. Tasks in each group share an uncertain success rate.

02

边观察,边选题Observe, update, select

观察已选题的结果,更新 Agent 的潜在状态和各组成功率,再决定下一道题。选题与校准设置在 Source 上确定。Observed outcomes update the agent’s latent state and group rates, guiding the next query. Source validation determines acquisition settings and calibration.

03

估计完整成绩Recover the full score

将已观察到的成功数与未运行题目的预测成功数结合,得到完整得分的分布,并输出经过校准的预测中位数。Combine observed successes with predictive success counts for unqueried tasks. Return a source-calibrated median of the full-score posterior.

HSPR: historical response factors and task groups feed a hierarchical target model; adaptive queries update the posterior and yield a full-score estimate.
论文图 2:历史响应提供因素和分组;逐题观察更新后验,最终恢复完整得分。点击图片可查看原尺寸。Paper Figure 2: historical responses supply factors and groups; sequential observations update the posterior used for full-score recovery. Click to enlarge. 方法详情 ↗Method details ↗

论文报告结果Results reported in the paper

四个题库,同一任务预算。Four task banks. A matched task budget.

在 10% 题目预算下,HSPR 的平均绝对误差在四个题库中的三个上最低,最大绝对误差在四个上均最低。Verified 上,ATLAS-port 的平均误差略低。这里比较的是论文中所列方法的点估计。At a 10% task budget, HSPR has the lowest MAE on three banks and the lowest MaxErr on all four among the compared methods. ATLAS-port has slightly lower MAE on Verified. These are point-estimate comparisons.

Published 5–20% task-budget curves for Uniform, Stratified, RSL, ATLAS-port, PTA-IRT and HSPR on Lite, Verified, Full and Pro; rows show MAE, Kendall correlation and MaxErr.
论文图 3:横轴为已观察题目的占比;MAE、MaxErr 越低越好,排名相关性越高越好。HSPR 在 5–20% 预算下沿用 10% 时通过 Source 选定的设置和嵌套选题路径;对照保留各预算已保存的设置。MAE、MaxErr 的单位为百分点。指标先汇总全部 Target 配置,再平均查询种子。Paper Figure 3: task budgets of 5–20%. Lower MAE and MaxErr are better; higher Kendall correlation is better. HSPR keeps its 10% source-selected settings and nested query paths; baselines retain saved budget-specific settings. Errors are in percentage points. Metrics pool target configurations before averaging query seeds.

10% 预算下的平均绝对误差(百分点)Mean absolute error at a 10% task budget (pp)

方法MethodLite
30 / 300
Verified
50 / 500
Full
229 / 2,294
Pro
73 / 730
Uniform raw6.6325.4822.2273.832
Stratified4.4683.3021.6363.111
RSL4.9113.6542.2774.467
FAQ-port6.6814.9511.8075.433
Mid-Range18.44816.44924.70922.798
Mid-Range + Ridge 内部对照control4.7173.6531.5323.434
ATLAS-port2.6891.8610.9577.736
PTA-IRT2.7242.1772.2802.731
HSPR1.9271.9150.7172.098

数值来自论文表 1;列标题为查询数 / 总题数,加粗表示该列最低的点估计。FAQ-port、ATLAS-port 保留论文披露的适配范围。完整的 MaxErr、排名指标和统计检验见论文。Values from paper Table 1. Headers show queried / total tasks; bold marks column-best point estimates. FAQ-port and ATLAS-port retain the adaptations disclosed in the paper. See the paper for MaxErr, rank metrics, and statistical tests. 完整结果 ↗Full results ↗

数据与复现Data & reproduction

用保存下来的真实成绩,检验选题与估分。Evaluate the method with recorded task outcomes.

公开矩阵中的每一行对应一个 Agent 配置,每一列对应一道题;1 为成功,0 为失败。实验从选中位置逐个读取结果,估计完整行的平均成绩。完整 Target 行在估计结束后用于计算误差,因此复现这一过程无需新的 LLM 调用。

四个题库分别包含 35、70、14、14 个 Agent 配置,使用四折配置级划分。每折 Source 与 Target 配置互不重叠;基础模型或相关 Agent 框架可能共享。HSPR 的模型、选题和校准设置在 Source 上确定,Target 查询使用种子 0–4。主成本单位为不同题目的查询次数。

Each row of the public matrix is an agent configuration, each column a task: 1 means success and 0 failure. Queries reveal selected entries sequentially to estimate the complete row’s mean. The full target row is used afterward to measure error. This replay runs without new LLM calls.

The four banks contain 35, 70, 14, and 14 agent configurations, with four configuration-level folds. Source and target configurations are disjoint within a fold; base models or related scaffolds may be shared. Model settings, acquisition, and calibration are source-selected; HSPR target queries use seeds 0–4. Budgets count distinct queried tasks.

一个可运行的小例子A runnable example

example.py 使用 8 个历史配置、12 道题的合成数据。观察 4 道题后,输出估计分数 41.7%;完整行的实际分数为 58.3%。这个例子演示数据如何进入估计器;论文的效果来自上面的真实题库实验。example.py uses a synthetic matrix with 8 historical configurations and 12 tasks. Four queries yield an estimate of 41.7%; the complete target row scores 58.3%. This example illustrates the API. The real-bank experiments above provide the performance evidence.

python example.py

Synthetic example
Queried task indices: [2, 10, 11, 6]
Estimated full score: 41.7%

从代码开始Get started

git clone https://github.com/wanyichen06/HSPR.git
cd HSPR
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python example.py
python smoke_test.py

Python 3.11,NumPy 与 SciPy。真实题库使用 PTA-IRT 的公开数据;README 提供固定数据版本、下载入口和完整运行命令。代码包含核心实现、Source 选参和 16 组论文配置。历史预测和拟合参数快照未随代码发布。Python 3.11, NumPy, and SciPy. The paper banks use PTA-IRT public data; the README links the pinned version and full evaluation commands. The release includes the method, source selection, and 16 paper configurations. Fitted snapshots, raw data, and historical predictions are omitted.

查看数据准备与复现说明 →Data preparation & evaluation instructions →

引用Citation

引用 HSPRCite HSPR

@article{chen2026hspr,
  title={HSPR: Recovering Software-Agent Benchmark Scores via Hierarchical Posterior Inference},
  author={Chen, Wanyi and Shen, Wanqin and Shi, Yuanchen and Sun, Zhensu and Kong, Fang},
  journal={arXiv preprint arXiv:2610.24611},
  year={2026},
  doi={10.48550/arXiv.2610.24611},
  url={https://arxiv.org/abs/2610.24611}
}

下载 BibTeXDownload BibTeX · CITATION.cff