领域深度 · 评测Field guide · Evaluation
评测:这个分数到底能说明什么Evaluation: what does this score actually tell you?
榜单上 82 分,你的业务里却答错一半。问题通常不在模型,而在评测没有回答你的决策问题:题集从哪来、评分器凭什么、环境是否一样、失败样本有没有看。先写清楚“这个分数要帮谁做什么决定”,再选题集。The leaderboard says 82, but half the answers are wrong in your business. The problem is usually not the model. The evaluation never answered your decision question: where the items came from, who scored them, whether the environment matched, and which failures were inspected. Write the decision first; choose the item set second.
- 分数只能回答它实际测过的问题。A score only answers the question the test actually asked.
- 先防泄漏,再谈题集规模。Prevent leakage before scaling the item set.
- 最终答案对,不代表 Agent 的过程对。A correct final answer does not mean the agent’s process was correct.
完整版从下面开始;表格是查的时候用,不用背。The full guide starts below. Use the tables for reference; you do not need to memorise them.
假设一个具体活:两个客服模型二选一。你要的不是“谁更聪明”,而是“谁能在一周内把转人工率降 5 个百分点,且不答错退款政策”。先把这个决策写成题集。Take one concrete job: choose between two support models. The question is not “which is smarter”, but “which can cut handoffs by five points in a week without getting refund policy wrong”. Turn that into the item set.
1 · 先定决策问题:这个分数要帮谁做什么决定1 · Fix the decision question: whose decision does this score support
同一个模型,选型、验收、回归和对外沟通需要不同的证据。选型关心「在候选之间怎么选」。验收关心「是否达到上线门槛」。回归关心「这次改动有没有变差」。对外沟通关心「能不能用一句话解释,同时不误导」。先定问题,才知道该测什么。The same model needs different evidence for selection, acceptance, regression and external communication. Selection asks how to choose among candidates; acceptance asks whether a launch threshold is met; regression asks whether a change made things worse; communication asks for a one-line explanation that does not mislead. Fix the question before deciding what to measure.
把决策写成一句话:「在 X 任务、Y 约束下,从 A/B/C 中选一个,错误代价是 Z」。这句话会直接决定题集分布、评分器和可接受阈值。写不出这句话,评测很容易变成「把能跑的 benchmark 都跑一遍」。Write the decision as one sentence: “Under task X and constraint Y, choose one of A/B/C, where the cost of error is Z.” That sentence determines item distribution, scorer and acceptable threshold. Without it, evaluation becomes “run every benchmark we can”.
| 决策Decision | 需要的证据Evidence needed | 不需要的Not needed |
|---|---|---|
| 选型Selection | 候选在同一题集上的分布、失败样本、成本Candidate distribution on one item set, failures, cost | 一个与任务无关的总分An unrelated total score |
| 验收Acceptance | 门槛、置信区间、关键失败类别Threshold, confidence interval, critical failure classes | 所有模型的横向排名A cross-model ranking |
| 回归Regression | 同一题集的前后对比、版本与配置Before/after on the same item set, versions and configuration | 换题集后的新高分A new high score on a new item set |
| 对外沟通Communication | 测了什么、没测什么、谁测的、何时What was measured, what was not, by whom, when | “最强”或“第一”“Best” or “number one” |
2 · 题集:先防泄漏,再谈规模2 · Item set: prevent leakage before scaling
题集不是越大越好。先看它是否覆盖你的任务分布:正常输入、边界输入、失败输入、恶意输入各占多少。再看是否泄漏:题目、答案或近似变体是否出现在训练数据里。一个被泄漏的题集,分数再高也不能说明泛化。Bigger is not better. First check coverage of your task distribution: normal, edge, failure and adversarial inputs. Then check leakage: did the questions, answers or near variants appear in training data. A leaked item set cannot demonstrate generalisation, however high the score.
题集要版本化。每次加题、删题、改评分规则,都要留下版本号和变更说明。否则前后分数不可比。公开题集适合做外部参照,私有题集适合做真实验收。两者不要混成一个总分。Version the item set. Every addition, removal or scoring change needs a version and changelog; otherwise before/after scores are not comparable. Public sets are useful external references; private sets are useful for real acceptance. Do not merge them into one total score.
保留「不会做」的样本。只收藏模型答对的题,会制造一个虚假的高分世界。失败样本、拒答样本和争议样本,才是下一轮改进的入口。Keep the items the model cannot do. A collection of only solved items creates a false high-scoring world. Failures, refusals and disputed items are the entry point for the next iteration.
3 · 评分器:谁在打分,凭什么3 · Scorer: who scores, and on what basis
评分器有四类:精确匹配、规则检查、模型评审、人工评审。精确匹配便宜但脆。规则检查可解释但覆盖窄。模型评审能处理开放性但会漂移。人工评审最可靠但最贵。选择评分器,本质是在成本、覆盖和可信度之间取舍。There are four scorer types: exact match, rule checks, model judges and human review. Exact match is cheap but brittle; rules are explainable but narrow; model judges handle open-ended output but drift; human review is most reliable but costly. Choosing a scorer is a trade-off among cost, coverage and trust.
用模型评审时,要固定评审提示、评审模型、温度和顺序,抽查它与人工判断的一致性。评审模型也会偏爱长答案、格式漂亮或与自己风格相近的输出。这些偏差要在题集里专门放对照样本。When using a model judge, fix the judge prompt, judge model, temperature and order, and sample its agreement with human judgement. Judges also favour long answers, polished formatting or outputs similar to their own style; place control samples in the set to expose these biases.
评分规则要能解释「为什么扣分」。只给一个总分,无法指导改进。至少要能定位到事实错误、遗漏、格式、引用、越权或安全违规。评分器的输出,应该能直接变成下一轮的修改项。Scoring rules must explain why points were lost. A total score cannot guide improvement; it should locate factual errors, omissions, format, citations, permission violations or safety breaches. Scorer output should become the next iteration’s fix list.
4 · Agent 评测:最终答案对,不代表过程对4 · Agent evaluation: a correct final answer does not mean a correct process
Agent 的评测要同时看结果和轨迹:任务是否完成、步骤是否必要、工具参数是否正确、是否越权、是否重复写入、失败时是否安全退出。一个最终答案正确但读了不该读的数据的 Agent,不能算通过。Agent evaluation must look at both outcome and trajectory: whether the task completed, steps were necessary, tool arguments were correct, permissions were exceeded, writes were duplicated and failures exited safely. An agent with a correct final answer that read data it should not have read has not passed.
环境要固定:同一套工具、同一份数据、同一个预算、同一个网络条件。否则「成功率」可能只是环境差异。还要记录随机性:同一任务重复跑多次,结果是否稳定,失败是否集中在某类输入。Fix the environment: same tools, same data, same budget, same network conditions. Otherwise a “success rate” may just reflect environment differences. Record randomness too: run the same task repeatedly and see whether results are stable and failures cluster in certain input types.
安全评测要单独做:提示注入、越权工具调用、数据外泄、成本失控、无限循环。不要用「正常任务成功率」代替安全结论。两者测的是不同的东西。Evaluate safety separately: prompt injection, unauthorised tool calls, data exfiltration, runaway cost, infinite loops. Do not substitute normal-task success rate for a safety conclusion; they measure different things.
5 · 复跑:把模型、版本、环境和成本一起记录5 · Reproduction: record model, version, environment and cost together
一个可复跑的评测,至少记录:模型与版本、量化、运行时、硬件、题集版本、评分器版本、温度、最大输出、重试策略、运行日期。少一项,别人就无法判断分数为什么不同。A reproducible evaluation records at least: model and version, quantization, runtime, hardware, item-set version, scorer version, temperature, max output, retry policy and run date. Miss one and others cannot tell why scores differ.
成本也是评测结果的一部分。同一题集,一个模型答得更准但贵三倍、慢五倍,决策结论可能完全不同。记录 token、调用次数、工具费用、人工复核时间和失败重试,才能做真正的比较。Cost is part of the result. On the same item set, a model that is more accurate but three times more expensive and five times slower may lead to a different decision. Record tokens, calls, tool fees, human review time and retries to make a real comparison.
保存原始输出,不只保存分数。分数会随评分器版本变化,原始输出可以在以后用新规则重判。只存分数,等于把过去锁死。Keep raw outputs, not just scores. Scores change with scorer versions; raw outputs can be re-judged under new rules later. Storing only scores locks the past.
6 · 读榜:先看测什么,再看谁在测6 · Reading a leaderboard: what is measured, then who measured it
读榜先问四个问题:测了什么任务。题集是否公开。谁出资或执行。分数有没有置信区间。一个没有说明题集和评分器的第一名,只能当广告,不能当证据。Ask four questions when reading a leaderboard: what task was measured; is the item set public; who funded or ran it; does the score have a confidence interval. A number one without item set and scorer detail is advertising, not evidence.
注意「总分」的陷阱。把不同能力加权成一个数字,权重由谁定、为什么这样定,往往不透明。你的任务可能只用到其中一项能力,总分却把它淹没了。按能力拆开看,比看总分更接近决策。Beware the total-score trap. Combining different capabilities into one number hides who chose the weights and why. Your task may use only one capability, yet the total drowns it. Reading capabilities separately is closer to a decision.
榜单是线索,不是结论。看到高分,回到原始论文、题集和失败样本。看到低分,也先确认是不是题集不匹配、版本不同或运行配置不公平。不要用一个名次替代自己的复跑。A leaderboard is a lead, not a conclusion. On a high score, return to the paper, item set and failure cases; on a low score, check for mismatched sets, different versions or unfair run configurations. Do not replace your own reproduction with a rank.
7 · 发布门禁:把评测变成能执行的阈值7 · Release gate: turn evaluation into an executable threshold
评测要进入发布流程,不能停留在报告里。先定基线:当前版本在固定题集上的分数、成本、时延和安全违规率。再定门槛:低于什么值不允许发布,哪些关键失败一票否决。Evaluation must enter the release process, not stay in a report. Set a baseline first: current version’s score, cost, latency and safety-violation rate on a fixed item set. Then set gates: below what value release is blocked, and which critical failures are vetoes.
门禁要能自动跑,也要能人工复核。自动跑保证每次改动都被同一套标准检查。人工复核处理评分器无法判断的争议样本。只自动或只人工,都会留下盲区。Gates should run automatically and allow human review. Automation ensures every change is checked against the same standard; human review handles disputed samples the scorer cannot judge. Automation alone or humans alone both leave blind spots.
上线后继续跑:用真实流量抽样,监控失败类别和成本漂移。发布不是评测的终点,而是分布变化的起点。没有上线后的回归评测,前面的分数很快会过期。Keep running after launch: sample real traffic and monitor failure classes and cost drift. Release is not the end of evaluation but the start of distribution change. Without post-launch regression evaluation, earlier scores expire quickly.
8 · 失败分支:分数好看时,先怀疑题集8 · Failure branches: when scores look good, suspect the item set first
评测最常见的失败不是「模型太差」,而是「题目太容易」「答案泄漏」「评分器偏好」。分数异常高时,先查这三件事,再庆祝。The most common evaluation failure is not a weak model but easy items, answer leakage or scorer bias. When a score looks unusually high, check these three before celebrating.
| 现象Symptom | 先查什么Check first | 常见处理Common fix |
|---|---|---|
| 分数异常高Unusually high score | 题集泄漏、题目太简单、评分器偏好Leakage, easy items, scorer bias | 换私有题集,加对照样本Use a private set; add controls |
| 分数波动大High variance | 样本太小、温度、运行环境Small sample, temperature, environment | 扩样本,固定配置,重复跑Expand sample, fix configuration, repeat |
| 评委不一致Judge disagreement | 评审提示、顺序、模型偏好Judge prompt, order, model bias | 人工抽查,固定顺序,校准Human audit, fixed order, calibration |
| 只报平均Only averages | 长尾失败被平均掩盖Tail failures hidden by averages | 按类别拆开,单列关键失败Break down by class; list critical failures |
| 上线后变差Degrades after launch | 真实分布漂移、成本/时延约束Distribution drift, cost/latency constraints | 线上抽样回归,设漂移告警Sample online, alert on drift |
9 · 最小落地路径9 · A minimum path to a usable evaluation
先做 30–50 条自己的题,不要等一个完美题集。小规模也能暴露问题,关键是题要来自真实任务,并且失败样本要保留。Start with 30–50 of your own items; do not wait for a perfect set. A small set can expose problems if the items come from real tasks and failures are kept.
- 写一句决策问题:选什么、受什么约束、错误代价是什么。Write one decision question: what to choose, under what constraint, at what cost of error.
- 从真实任务抽题,覆盖正常、边界、失败、恶意输入。Sample from real tasks across normal, edge, failure and adversarial inputs.
- 定评分器:精确、规则、模型评审或人工,写清理由。Choose a scorer: exact, rules, model judge or human; state why.
- 固定模型、版本、环境、温度、重试和预算。Fix model, version, environment, temperature, retries and budget.
- 保存原始输出、分数、成本和失败类别。Keep raw outputs, scores, cost and failure classes.
- 用人工抽查校准评分器,记录不一致样本。Calibrate the scorer with human audits; record disagreements.
- 把门槛写进发布流程,关键失败一票否决。Put thresholds into the release process; critical failures veto.
- 上线后抽样复跑,监控分布漂移与成本漂移。Sample and rerun after launch; monitor distribution and cost drift.
来源与延伸阅读Sources and further reading
以下链接用于核对事实、许可证与官方口径。外部页面可能更新;引用时以原文与核验日为准。These links are for checking facts, licences and official scope. External pages may change; cite the original text and check date.
- 模型站 · 读榜指南Models · Read a leaderboard题集、评分器、置信区间与榜单边界。Item sets, scorers, confidence intervals and leaderboard limits.
- 模型站 · 评测污染Models · Eval contamination题集泄漏、近似变体与训练数据污染。Item leakage, near variants and training-data contamination.
- 模型站 · Agent 评测Models · Agent evaluation任务、轨迹、工具与安全评测。Task, trajectory, tool and safety evaluation.
- 工具站 · 评测Tools · Evaluation评测工具、评分器与运行框架。Evaluation tools, scorers and run frameworks.
- 工具站 · 最小评测流程Tools · Minimal eval pipeline从题集到复跑的最小流程。A minimum pipeline from item set to reproduction.
- 工具站 · 评测接入发布Tools · Wire evals into release把评测变成发布门禁的步骤。Steps to turn evaluation into a release gate.
- 学 AI · 模型评测的局限Learn · Limits of model evaluation评测、基准与评分器的概念页。Concept page on evaluation, benchmarks and scorers.
下一步Next
- 回到“评测模型与智能体”路线Back to the evaluation route
- 下一步:把 Agent 轨迹也纳入评测Next: include agent trajectories
- 看其他 15 条主题路线Browse the other 15 topic routes
如果你照着做时卡住了,先回到对应主题路线,不要从头重读。If you get stuck while following it, go back to the matching route instead of rereading the whole guide.
← 回到首页← Back to home 发现错误?提交纠错Spot an error? Send a correction