arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.13823cs.DBcs.AI
收藏

相同查询,不同答案:语义查询处理中的运行间方差

Same Query, Different Answer: Run-to-Run Variance in Semantic Query Processing

IBM(国际商业机器公司)

Oktie Hassanzadeh, Dharmashankar Subramanian

AI总结:

该研究发现语义查询引擎在温度为0时存在运行间方差,部分行输出、答案及结果质量会变化,投票可降低方差,还为基准测试制定了报告规则、为引擎设计了规则。

摘要:

语义查询引擎会让大语言模型(LLM)对单个行进行判断,而基准测试会在温度为0的情况下,通过几次执行的质量来比较这些引擎。我们测量了再次执行时结果的变化程度。我们通过各自的测试框架重新执行SemBench、LRO-Bench和UDA-Bench的文本和表格工作负载,记录了全部120万次模型调用,并重新分析了SemBench已发布的执行结果。在温度为0时,根据模型的不同,5次执行中有0.07%至10.2%的行改变了其算子输出,某一任务中这一比例高达24.0%。正如可能世界模型所预测的那样,计划会在答案所暴露的行数上指数级放大这些变化:在UDA-Bench上,仅有百分之几的提取值发生变化,但约三分之二的答案发生了变化。在SemBench已发布的结果中,21%的文本结果在执行间改变了质量,包括那些计划具有确定性的引擎。多项按查询划分的系统比较,以及LRO-Bench实施建议的28项测试中的16项,并未被基准测试运行的执行所确定。发生变化的行是模型之间意见不一致的行;同一执行内的相同请求与跨执行的相同请求意见不一致的频率相同;一次执行的决策边际或推理长度可预测哪些行发生变化。投票可降低方差但无法消除它,而校准级联在保持其保证的同时,其返回的行发生了变化。我们为基准测试制定了报告规则,并为引擎设计了规则。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑