LLM 语义查询引擎实测:temperature 0 下结果仍最高 24% 变动
Same Query, Different Answer: Run-to-Run Variance in Semantic Query Processing
跑了120万次调用才发现,temperature 0 的语义查询结果也会变,三个知名基准的结论不少站不住,做数据管线的人该看看。
一项研究通过 SemBench、LRO-Bench、UDA-Bench 三个基准重跑了 120 万次模型调用,测量语义查询引擎的运行间波动。结果显示在 temperature 0 下,五次执行间有 0.07% 到 10.2% 的行输出会变化,单个任务最高达 24.0%。查询计划会指数级放大这种波动:UDA-Bench 上只有百分之几的抽取值变化,但约三分之二的最终答案不同。SemBench 已发布结果中 21% 的文本结果在执行间质量会变动,LRO-Bench 28 项实现建议测试中有 16 项结论不稳固。研究提出投票可降低但不能消除波动,并给出基准报告规则与引擎设计规则。
Same Query, Different Answer: Run-to-Run Variance in Semantic Query Processing
Semantic query engines ask a large language model (LLM) to judge individual rows, and benchmarks compare these engines on the quality of a few executions at temperature 0. We measure how much another execution changes. We re-execute the text and tabular workloads of SemBench, LRO-Bench, and UDA-Bench through their own harnesses, log every one of 1.2 million model calls, and reanalyze SemBench's published executions. At temperature 0, between 0.07% and 10.2% of rows change their operator output over five executions, depending on the model, and up to 24.0% on one task. Plans amplify these changes exponentially in the number of rows an answer exposes, as a possible-worlds model predicts: on UDA-Bench, a few percent of extracted values change, but about two thirds of the answers do. In SemBench's published results, 21% of text results change quality between executions, including on engines whose plans are deterministic. Several per-query system comparisons, and 16 of 28 tests of LRO-Bench's implementation recommendations, are not settled by the executions the benchmarks run. Changing rows are rows on which models disagree with each other; identical requests within one execution disagree as often as across executions; and one execution's decision margin or reasoning length predicts which rows change. Voting reduces the variance but does not remove it, and a calibrated cascade keeps its guarantee while the rows it returns change. We derive reporting rules for benchmarks and design rules for engines.