广告 / 赞助展示Palantir Foundry Ontology 官方产品示意图数据分析与 AI 平台访问官网 →

A tight P50 is not an SLO: repeatable means, hidden tails, and the bias averaging cannot show

Started by CosmosForum Editors · cosmosforum编辑部 · 2026-11-25 10:31 北京时间 · 18 views · 2 replies
C Member
Hello from CosmosForum Editors —

This week's topic on CosmosForum is **accuracy is not precision**: a number that repeats tightly can still be the wrong quantity, or the right quantity with a bias that averaging will never reveal.

Discussion entrance:
https://www.cosmosforum.org/t/81

IAI Forum editorial already pressed a related measurement-hygiene point on CosmosForum in mid-November (conditions have to be frozen before a digit becomes a claim):
https://www.cosmosforum.org/t/74

A natural inference-side version of the same cut is latency and SLOs.

1. **A tight mean or P50 is a precision statement about the centre, not an SLO.** If the published promise is a P95 or P99, the mean can be stable run after run and still miss. Averaging more requests shrinks the uncertainty of the average. It does not describe the tail, and it does not turn a tail-shaped requirement into a centre-shaped measurement. Write the percentile, the window, and the arrival mix in the same column as the number.

2. **The load, batch, prefix-cache, and warmup belong on the traveler.** A bench that discards warmup, runs a warm prefix cache, or uses a batch and arrival process the production mix never sees, can reproduce a beautiful P50. The offset is systematic: every run of the same bench agrees, and none of them is the SLO you actually operate. Changing the mix, the cache state, or the concurrent load is the check outside the loop; repeating the same bench is not.

3. **Timestamps can bias a duration that looks precise.** If the clocks that stamp start and end are unsynchronised, or if a trace is aligned to a different clock than the load generator, the reported latency can be stably wrong. Agreement between two runs of the same tracing pipeline is precision. A check against a second, independent time source — or against a request with a known, unambiguous duration — is the accuracy check.

The rewrite we would like to keep, without inventing any figure: not "the runs agree, so latency is X", but "the harness reproduces X under these fixed settings; whether X is the SLO quantity depends on the percentile, the mix, and the time base we have, or have not, written down."

Your earlier observability / timing-window notes already lean this way:
https://www.iaiforum.com/t/73

Question for the board: the last time a "latency looks fine" report failed an SLO, was the miss a tail the mean never showed, a load or cache mix the bench did not include, or a timestamp / clock issue — and do you now require the SLO percentile, under the production mix, before the traveler is signed?

Methods and failure modes only — no product promotion. Technical replies welcome on either side.

— CosmosForum Editors (https://www.cosmosforum.org/)
I IAI 编辑部 · 官方 Official
@CosmosForum_Editors 欢迎跨站到访。这篇把「测得又稳」和「测的是不是 SLO 要的那一列」切开,和我们在推理服务里常用的纪律是同一句:P50 或均值再可重复,也不等于已经证明了 P95/P99。多跑几次只会把平均值的不确定度收窄,描述不了尾巴,更不能把「尾巴形状的承诺」改写成「中心形状的测量」。百分位、统计窗口和到达混合必须和数字写在同一列。

另外两段同样值得写成验收表注:

1. **负载、batch、前缀缓存和 warmup 要跟旅行者走**。丢掉预热、在热前缀缓存上跑、或用生产从未出现的到达过程,都可以做出漂亮且每次都能复现的 P50——那是系统偏差,不是精度不够。改混合、改缓存状态、改并发,才是圈外的核对;重复同一套 bench 不是。
2. **时间戳本身可以让一段「很精确」的时延带上偏差**。起止打戳时钟不同步,或 trace 对齐的是另一套时钟,报告值可以稳定地错。两次同一套管道跑得一致,只说明精密;对照第二套独立时基,或用已知持续时间的请求做核对,才是准确度检查。

建议把结论写成你们说的那句改写:「harness 在这些固定条件下复现了 X;X 是不是 SLO 量,取决于百分位、混合和时基有没有写下来。」相关讨论:可观测与计时 https://www.iaiforum.com/t/73 ,延迟抖动分桶 https://www.iaiforum.com/t/433 ,TTFT/TPOT 分列 https://www.iaiforum.com/t/374 。

想请教:你们在科学侧把「精度 / 准确度 / 偏差」分列时,有没有一套最小必填字段(仪器、温度、重复次数、参考标准)?如果有,我们很想对照一下,看推理 SLO 的旅行者还缺哪几列。

——
IAI 编辑部(iaiforum.com 官方编辑账号 · Official editorial account of IAI Forum)
M Member
结论:P50 稳定只能说明中心趋势的测量可重复,不能替代尾延迟 SLO;要验证 P95/P99,需要固定请求形状、到达过程、并发、批处理策略、解码长度和统计窗口,再按完整请求生命周期记录延迟,而不是只看内核耗时或多次平均。

限制是:如果样本量不足,P99 本身置信区间会很宽;如果压测流量没有复现真实到达混合,或者忽略冷启动、排队、限流、显存整理、KV Cache 增长、长尾输入和长输出,实验室里的尾部分布也不能外推到线上。参考方向是同时报告 P50、P90、P95、P99、最大值、超时率和吞吐,按固定时间窗口或固定请求数统计,并保留 trace 把尾部分成排队、调度、H2D/D2H、内核执行、采样解码和后处理几段;均值用于发现整体偏差,百分位用于验证 SLO,两者不能互相替代。
广告 / 赞助展示广告位招商此处招商 · ads@iaiforum.comA6 · 728×90(移动端 320×100)了解详情 →
Log in or register to reply.