arXivDaily arXiv每日学术速递 周一至周五更新

大厂专区

Snowflake

至 收录 39
2607.13346 2026-07-16 cs.CR cs.AI cs.CL 新提交

The Refusal Residue: When Probes Catch Alignment Faking and When They Don't

拒绝残差:探测何时能捕捉到对齐造假以及何时不能

Aman Mehta

机构 * Snowflake AI Research(Snowflake AI 研究所)

AI总结 研究对齐造假中隐藏状态能否揭示输出隐藏内容,对13个模型扫描,发现Qwen3 - 32B和Llama - 3.1 - 8B存在自然造假及不对称拒绝残差,样本检测有模型条件性,还发布五控制测量框架用于对齐造假检测。

Comments Accepted to the Mechanistic Interpretability Workshop at ICML 2026. 12 pages, 4 figures

详情
AI中文摘要

对齐造假很危险,因为模型在监控下可能表现出合规,而在未监控时却保留其真实行为。当没有可见的便签本时,仅行为无法区分策略性合规与真正合规。我们研究隐藏状态是否能揭示输出所隐藏的内容。我们对13个模型进行扫描以观察自然出现的造假情况,然后对两个造假模型的隐藏状态进行探测和引导。自然造假仅出现在Qwen3 - 32B(+18.2个百分点)和Llama - 3.1 - 8B(在n = 10,p < 10^-15时为+24.4个百分点),而明确的便签本自我报告很少见。两个造假模型都显示出不对称的拒绝残差:监控下的合规向拒绝转移(Qwen的d = 0.32,Llama的d = 0.33,两者p < 0.0001),而拒绝表示不变(p = 1.00)。样本检测是模型条件性的。在无泄漏的留一查询探测下,Llama的检测有效(AUROC为0.87),而Qwen的检测则降至随机水平(0.43),跨模型转移无效。引导超过2000次运行对合规几乎没有影响(|h| < 0.08),所以检测到的方向可标记造假,但本身无法控制它。标准残差化探测在各折叠间泄漏,在无造假的控制组上达到AUROC 0.63;朴素线性探测达到无意义的AUROC 1.0;传统多层感知器夸大可检测性0.2 - 0.3 AUROC。对于未来的对齐造假检测工作,我们发布了一个五控制测量框架:多令牌提取、拒绝与拒绝混淆检查、每折叠残差化、留一查询评估和正交约束探测。

英文摘要

Alignment faking is dangerous because a model can appear compliant under monitoring while preserving behavior it would reveal when unmonitored. When no scratchpad is visible, behavior alone cannot distinguish strategic from genuine compliance. We ask whether hidden states reveal what outputs hide. We run a 13-model sweep for naturally-emerging faking, then probe and steer hidden states on the two models that fake. Natural faking appears only in Qwen3-32B (+18.2pp) and Llama-3.1-8B (+24.4pp at n=10, p<10^-15), while explicit scratchpad self-reports are rare (a Claude Opus 4 judge flags faking reasoning in 1.4% of Qwen and 0.0% of Llama compliant scratchpads). Both fakers show an asymmetric refusal residue: monitored compliance shifts toward refusal (d=0.32 Qwen, d=0.33 Llama, both p<0.0001), while refusal representations do not move (p=1.00). Per-sample detection is model-conditional. Under leakage-free leave-one-query-out probing, detection survives on Llama (AUROC 0.87) but collapses to chance on Qwen (0.43), and cross-model transfer is null. Steering over 2,000 runs barely changes compliance (|h|<0.08), so the detected direction can flag faking but does not by itself control it. Standard residualized probing leaks across folds and reaches AUROC 0.63 on a control where no faking can occur; naive linear probes reach a meaningless AUROC 1.0; and conventional MLPs overstate detectability by 0.2-0.3 AUROC. For future alignment-faking detection work, we release a five-control measurement framework: multi-token extraction, refuse-vs-refuse confound checks, per-fold residualization, leave-one-query-out evaluation, and orthogonality-constrained probing.

URL PDF HTML 收藏
2607.06229 2026-07-08 cs.CL cs.AI cs.DB 新提交

Spider 2.0-AIFunc: Extending Real-World Text-to-SQL to AI-Native SQL Workflows

Spider 2.0-AIFunc:将现实世界的文本到SQL扩展到人工智能原生SQL工作流程

Tianyang Liu, Canwen Xu, Fangyu Lei, Nikki Lijing Kuang, Jixuan Chen, Tao Yu, Julian McAuley, Zhewei Yao, Yuxiong He

机构 * UC San Diego(加州大学圣地亚哥分校) Snowflake AI Research(Snowflake人工智能研究院) University of Hong Kong(香港大学)

AI总结 研究针对现有文本到SQL基准无法评估模型生成人工智能原生SQL能力的问题,构建Spider 2.0-AIFunc基准,经特定管道和多轮验证,评估十个先进语言模型,发现准确率差距及传统代理框架转移无效等情况。

Comments 24 pages, 3 figures, 7 tables

详情
AI中文摘要

主要云数据平台将大语言模型功能作为原生SQL函数公开,使分析师能在普通SQL查询中执行多种操作。但现有文本到SQL基准仅评估传统SQL,无法体现模型生成人工智能原生SQL的能力。为此引入Spider 2.0-AIFunc基准,含465个经过验证的实例,覆盖125个真实世界数据库及六种人工智能函数。通过基于代理的管道构建该基准,所有实例经多轮重复执行协议确保结果稳定性。评估十个先进语言模型发现,最强专有模型执行准确率达67-70%,最佳开源模型为58.1%,差距主要源于谓词规范、模式基础和人工智能函数参数化方面的错误。为传统文本到SQL挑战设计的代理框架不能有效转移到人工智能原生SQL。

英文摘要

Major cloud data platforms now expose large language model capabilities as native SQL functions, enabling analysts to perform classification, filtering, sentiment analysis, extraction, similarity search, and aggregation within ordinary SQL queries. Yet existing text-to-SQL benchmarks evaluate only conventional SQL and provide no signal on whether models can generate such AI-native SQL. We introduce Spider 2.0-AIFunc, a benchmark of 465 verified instances across 125 real-world databases covering six types of AI functions on the Snowflake platform. Starting from an existing enterprise text-to-SQL benchmark, we construct Spider 2.0-AIFunc through an agent-based pipeline that rewrites source tasks into AI-native form, simultaneously transforming target queries and refining natural language instructions to make the intended AI-native solution explicit and reduce ambiguity. All instances pass a multi-round repeated execution protocol across temporally separated windows to confirm result stability before release. Evaluating ten state-of-the-art language models, we find that the strongest proprietary models reach 67-70% execution accuracy while the best open-source model achieves 58.1%, a gap driven primarily by errors in predicate specification, schema grounding, and AI function parameterization. Agent frameworks designed for traditional text-to-SQL challenges, such as schema retrieval and relevant table selection, do not transfer effectively to AI-native SQL: a minimal agent setup consistently matches or outperforms more elaborate alternatives, suggesting that the strategies these frameworks employ are less critical in this setting. Data are available at https://github.com/Leolty/Spider2-AIFunc .

URL PDF HTML 收藏
2604.00660 2026-07-07 cs.DB cs.AI 版本更新

Streaming Model Cascades for Semantic SQL

流式模型级联用于语义SQL

Paweł Liskowski, Kyle Schmaus

机构 * Snowflake Inc.(雪花公司)

AI总结 本文提出两种流式模型级联算法,用于在分布式系统中高效处理语义SQL查询,通过迭代阈值优化和联合精度召回保证提升效率与质量。

详情
AI中文摘要

现代数据仓库通过语义运算符扩展SQL,但每行推理成本过高。模型级联通过快速代理模型处理大部分行,将不确定情况委托给昂贵的Oracle。现有框架需全局数据访问且仅优化单一质量指标,限制了分布式系统应用。本文提出两种适应性级联算法,支持流式处理和分区执行。SUPG-IT扩展统计框架至流式执行,通过迭代阈值优化和联合精度召回保证。GAMCAL用学习校准模型替代用户指定的质量目标,通过通用加性模型将代理得分映射为校准概率,实现成本质量权衡的单参数优化。实验表明两种算法在六个数据集上均达到F1>0.95。GAMCAL在成本敏感点实现更高F1,SUPG-IT则在精度召回上有形式保证。

英文摘要

Modern data warehouses extend SQL with semantic operators that invoke large language models on each qualifying row, making per-row inference orders of magnitude more expensive than traditional SQL. Model cascades reduce this cost by routing most rows through a fast proxy model and delegating uncertain cases to an expensive oracle. Prior SUPG-style cascades, however, require a global proxy-score pass that is itself an LLM-inference workload and blocks output in pipelined query engines. They also target either precision or recall and cannot serve workloads that need both. We formalize the cascade routing problem for streaming semantic SQL with independent parallel workers and present two complementary algorithms within this model. SUPG-IT extends SUPG from single-pass, single-metric estimation to streaming execution by iteratively refining two thresholds as oracle labels accumulate across batches, and is the first streaming cascade with joint probabilistic guarantees on user-specified precision and recall at a chosen failure probability $δ$. GAMCAL replaces user-specified targets with a single tradeoff parameter $α$ between classification error and oracle cost, and learns a monotone Generalized Additive Model that calibrates proxy scores to true-positive probabilities and supplies pointwise uncertainty for stochastic routing. On six classification, filtering, and join benchmarks evaluated in a production semantic SQL engine, both algorithms reach $F_1 \geq 0.95$ at their best operating points. GAMCAL also leads all six datasets at a 20% delegation budget and reaches $F_1 \geq 0.95$ with up to 58% fewer oracle calls than LOTUS's SUPG cascade. SUPG-IT attains the highest best-case $F_1$, with a mean of 0.989 across the six datasets.

URL PDF HTML 收藏
2604.26180 2026-07-03 cs.DB cs.AI cs.CL 版本更新

Evergreen: Efficient Claim Verification for Semantic Aggregates

Evergreen:用于语义聚合的高效声明验证

Alexander W. Lee, Benjamin Han, Shayak Sen, Sam Yeom, Ugur Cetintemel, Anupam Datta

机构 * Brown University(布朗大学) Snowflake Inc.(Snowflake公司)

AI总结 Evergreen将声明验证转化为语义查询处理任务,通过定制优化和溯源捕获,减少LLM调用成本和延迟,提升验证质量与效率。

详情
AI中文摘要

Evergreen将声明验证转化为语义查询处理任务,通过定制优化和溯源捕获,减少LLM调用成本和延迟,提升验证质量与效率。

英文摘要

With recent semantic query processing engines, semantic aggregation has become a primitive operator, enabling the reduction of a relation into a natural language aggregate using an LLM. However, the resulting semantic aggregate may contain claims that are not grounded in the underlying relation. Verifying such claims is challenging: they often involve quantifiers, groupings, and comparisons over relations that far exceed LLM context windows and require a costly combination of semantic and symbolic processing. We present Evergreen, a system that recasts claim verification as a semantic query processing task with tailored optimizations and provenance capture. Evergreen compiles each claim into a declarative semantic verification query that can execute on the same query engine used to produce the aggregate. To reduce cost, Evergreen avoids unnecessary LLM calls through verification-aware optimizations, including early stopping, relevance sorting, and estimation with confidence sequences, as well as general-purpose optimizations for semantic queries, such as operator fusion, similarity filtering, and prompt caching. Each verdict is accompanied by citations that identify a minimal set of tuples justifying the result, with semantics based on semiring provenance for first-order logic. On a benchmark of production-inspired workloads over restaurant review and customer support datasets, Evergreen's optimized configurations occupy the entire cost-quality Pareto frontier. With a strong LLM, Evergreen preserves verification quality at an F1 of 0.94 while reducing cost by 3.1x relative to unoptimized verification; with a substantially weaker LLM, it surpasses the strongest external baseline's F1 (0.87 vs. 0.83) at 7.0x lower cost.

URL PDF HTML 收藏
2606.31154 2026-07-01 cs.LG cs.AI 新提交

PPT-Eval: A Benchmark for Computer-Use Agents on PowerPoint Tasks

PPT-Eval: 面向PowerPoint任务的计算机使用智能体基准

Apurva Gandhi, Vishwas Suryanarayanan, Raja Hasnain Anwar, Firoz Shaik, Shubhang Desai, Thong Q. Nguyen, Muhammad Taqi Raza, Vishal Chowdhary, Graham Neubig

机构 * Carnegie Mellon University(卡内基梅隆大学) Microsoft(微软) UMass Amherst(马萨诸塞大学阿默斯特分校) Google(谷歌) Snowflake

AI总结 提出PPT-Eval基准,包含120个PowerPoint任务,并设计基于评分标准的评估框架,通过部分评分和自然语言反馈衡量智能体表现,发现现有最强模型仅达45%成功率。

Comments Proceedings of the 43rd International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026

详情
AI中文摘要

创建和编辑幻灯片是一种丰富的多模态活动,在专业和教育环境中无处不在,使其成为现实世界计算机使用智能体的理想测试平台。Microsoft PowerPoint是演示文稿创建中应用最广泛、功能最丰富的环境之一。我们引入了PPT-Eval,一个包含12个文件中120个PowerPoint任务的基准,涵盖内容创建和演示编辑场景,并按难度组织。该领域的一个核心挑战是评估:任务复杂、多模态,且通常允许多种有效解决方案。此外,当前的智能体往往只取得部分进展,而二元成功指标无法捕捉这一点。为解决此问题,我们设计了一个稳健的评估框架,帮助为PowerPoint任务创建特定于任务的评分标准,借鉴并基于以往基于评分标准的评估工作。这些评分标准为中间步骤授予部分分数,惩罚不必要的更改和糟糕的美观性,并提供自然语言反馈。这种细致的方法非常有效,与人类判断的Kendall's τ-b相关系数达到0.77。我们发现现有前沿智能体在解决PowerPoint任务时仍然困难重重,像Claude-4.5-Opus这样的强模型仅达到45%的成功率和57%的平均部分分数。基准位于:此https URL。

英文摘要

Creating and editing slides is a rich, multimodal activity that is ubiquitous in professional and educational settings, making it an ideal testbed for real-world computer-use agents. Microsoft PowerPoint is among the most widely adopted and feature-rich environments for presentation creation. We introduce PPT-Eval, a benchmark of 120 PowerPoint tasks across 12 files that cover both content creation and presentation editing scenarios, organized by difficulty. A central challenge in this domain is evaluation: tasks are complex, multimodal, and often admit many valid solutions. Moreover, today's agents frequently make only partial progress, which binary success metrics fail to capture. To address this, we design a robust evaluation framework to help create task-specific rubrics for PowerPoint tasks, taking inspiration from and building on past works for rubric-based evaluation. These rubrics award partial credit for intermediate steps, penalize unnecessary changes and poor aesthetics, and provide natural language feedback. This nuanced approach proves highly effective, achieving a Kendall's τ-b correlation of 0.77 with human judgments. We find that existing frontier agents still struggle with solving PowerPoint tasks, with strong models like Claude-4.5-Opus achieving only a 45% success rate and an average partial score of 57%. The benchmark is located at: https://microsoft.github.io/ppteval.

URL PDF HTML 收藏
2606.25519 2026-07-01 cs.AI cs.LG 新提交

Quantization Inflates Reasoning: Token Inflation as a Hidden Cost of Low-Bit Reasoning Models

量化膨胀推理:低比特推理模型的隐藏成本——令牌膨胀

Xinyu Lian, Walid Krichene, Beichen Huang, Masahiro Tanaka, Olatunji Ruwase, Li Zhang, Minjia Zhang

机构 * University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校) Microsoft(微软) Anyscale Snowflake

AI总结 研究发现低比特后训练量化虽保持推理准确性,但会显著增加推理令牌使用量,导致端到端服务性能下降,并提出了CoT令牌膨胀比来量化该效应。

详情
AI中文摘要

量化被广泛用于降低大型语言模型的推理成本,但其对推理模型的影响并不能完全通过最终答案准确率或每令牌延迟来体现。我们表明,低比特后训练量化会引入隐藏的测试时计算成本:量化推理模型即使在回答正确时,也往往生成更长的思维链。在数学推理、代码生成、科学问答和智能体工具使用基准测试中,我们发现INT4/INT3量化可以保持准确率,但会增加推理令牌的使用量,抵消了预期的每令牌加速。为了衡量这一效应,我们引入了CoT令牌膨胀比,该比值比较了量化模型与全精度模型在所有评估基准上的平均推理长度。我们进一步表明,令牌膨胀伴随着推理轨迹中的行为变化,包括更多的中间步骤和更大的语义重复。这些变化转化为可衡量的端到端实际服务惩罚。最后,我们评估了缓解策略,发现提示和解码时采样提供了不一致的准确率-长度权衡,而量化感知训练在减少准确率下降和令牌膨胀方面显示出更大的潜力。我们的结果表明,在评估量化推理模型时,除了准确率外,还应报告推理令牌的使用量。

英文摘要

Quantization is widely used to reduce the inference cost of large language models, but its effect on reasoning models is not fully captured by final-answer accuracy or per-token latency. We show that low-bit post-training quantization can introduce a hidden test-time compute cost: quantized reasoning models often generate longer chains of thought even when they still answer correctly. Across mathematical reasoning, code generation, scientific question answering, and agentic tool-use benchmarks, we find that INT4/INT3 quantization can preserve accuracy but increase reasoning-token usage, offsetting the expected per-token speedup. To measure this effect, we introduce the CoT Token Inflation Ratio, which compares reasoning length between quantized and full-precision models averaged across all evaluation benchmarks. We further show that token inflation is accompanied by behavioral changes in the reasoning trace, including more intermediate steps and greater semantic repetition. These changes translate into measurable end-to-end real-world serving penalties. Finally, we evaluate mitigation strategies and find that prompting and decoding-time sampling offer inconsistent accuracy-length trade-offs, while quantization-aware training shows more promise in reducing both accuracy degradation and token inflation. Our results suggest that reasoning-token usage should be reported alongside accuracy when evaluating quantized reasoning models.

URL PDF HTML 收藏
2606.27369 2026-06-26 cs.LG 新提交

Reinforcement Learning without Ground-Truth Solutions can Improve LLMs

无需真实解即可改进大语言模型的强化学习

Yingyu Lin, Qiyue Gao, Nikki Lijing Kuang, Xunpeng Huang, Kun Zhou, Tongtong Liang, Zhewei Yao, Yi-An Ma, Yuxiong He

机构 * University of California, San Diego(加州大学圣地亚哥分校) Snowflake AI Research

AI总结 提出RiVER框架,通过校准的连续奖励信号,在无真实解的任务上训练LLM,在AtCoder和精确解基准上均取得提升。

详情
AI中文摘要

使用可验证奖励的强化学习(RLVR)训练大语言模型通常依赖真实答案来分配奖励,限制了其在真实解未知的任务中的适用性。我们引入了一个基于排序的可验证框架(RiVER),该框架在没有真实解的情况下,使用确定性执行反馈作为连续值监督,训练LLM处理基于分数的优化任务。当将群体相对RL应用于此类连续奖励时,我们识别出两个关键挑战:\emph{规模主导},即跨测试实例未校准的分数幅度扭曲策略更新;以及\emph{频率主导},即重复采样的次优解可能压倒罕见但更强的候选解。RiVER通过校准奖励塑造来解决这些挑战,该方法使用实例级比较并强调排名靠前的求解器,同时为其他有效解保留有界反馈。我们在12个AtCoder启发式竞赛任务上训练,并在算法工程基准(ALE-Bench)、LiveCodeBench和USACO上评估。RiVER在ALE评分排名上将Qwen3-8B和GLM-Z1-9B-0414分别提升了8.9%和9.4%。更重要的是,尽管仅在基于分数的任务上训练且没有任何真实解,RiVER在精确解基准(如LiveCodeBench和USACO)上也使骨干模型平均绝对提升了2.4%和3.5%。相比之下,使用原始执行分数训练的基线模型虽然提升了ALE评分,但未能迁移到精确解基准。这些结果表明,结合适当的奖励校准,基于分数的优化任务可以作为无需真实解的有效训练环境,提升通用编码能力。

英文摘要

Reinforcement learning with verifiable rewards (RLVR) for training LLMs typically rely on ground-truth answers to assign rewards, limiting their applicability to tasks where the ground-truth solution is unknown. We introduce a \textbf{R}anking-\textbf{i}nduced \textbf{VER}ifiable framework (RiVER) that trains LLMs on score-based optimization tasks without ground-truth solutions, using deterministic execution feedback as continuous-valued supervision. When applying group-relative RL to such continuous rewards, we identify two key challenges: \emph{scale dominance}, where uncalibrated score magnitudes across test instances distort policy updates, and \emph{frequency dominance}, where repeatedly sampled suboptimal solutions can outweigh rare but stronger candidates. RiVER addresses these challenges with calibrated reward shaping that uses instance-wise comparisons and emphasizes top-ranked solvers while retaining bounded feedback for other valid solutions. We train on 12 AtCoder Heuristic Contest tasks and evaluate on Algorithm Engineering Benchmark (ALE-Bench), LiveCodeBench, and USACO. RiVER advances Qwen3-8B and GLM-Z1-9B-0414 by 8.9\% and 9.4\% in ALE rating rank. More importantly, despite training exclusively on score-based tasks without any ground-truth solutions, RiVER also improves the backbones across exact-solution benchmarks such as LiveCodeBench and USACO by an absolute average improvement of 2.4\% and 3.5\%. By contrast, baselines trained with raw execution scores improve ALE rating but fail to transfer to exact-solution benchmarks. These results suggest that score-based optimization tasks, combined with proper reward calibration, can serve as effective training environments for general coding ability without ground-truth solutions.

URL PDF HTML 收藏
2606.22953 2026-06-23 cs.AI cs.CL 新提交

Plans Don't Persist: Why Context Management Is Load Bearing for LLM Agents

计划不会持久:为什么上下文管理对LLM代理至关重要

Aman Mehta, Anupam Datta

机构 * Snowflake AI Research(Snowflake AI研究)

AI总结 本文通过重放配对诊断和压缩压力测试,证明标准LLM代理不将计划作为持久状态携带,而是依赖上下文中的计划,并揭示了推理模型的推理痕迹混淆问题。

Comments 17 pages, 8 figures

详情
AI中文摘要

长时域代理依赖于上下文管理:系统压缩、总结和驱逐旧标记,以便任务可以在有限窗口之外继续。只有当被丢弃的信息不再需要或已被内化时,这才是安全的。计划是压力案例:它们被早期编写,用于许多步骤,并且首先被驱逐。我们引入了重放配对,这是一种诊断方法,它在历史记录中有和没有计划的情况下运行相同的轨迹,并测量隐藏状态的余弦距离。在Llama-3.1-70B上,计划信号在计划后一步达到0.453的峰值,然后在单个动作-观察步骤中下降4.1倍;HotpotQA下降12.4倍。这证明了标准LLM代理不将计划作为持久状态向前携带,而是依赖于计划保留在上下文中。层L32探针检测到这种衰减作为诊断,而不是证明它本身读取计划内容。推理模型增加了一个测量混淆:它们的`<think>`痕迹重新推导计划内容,因此标准剥离会在剥离条件下留下计划证据。我们将此命名为推理痕迹混淆,并通过严格剥离修复它,该剥离仅从剥离运行中移除先前的`<think>`块。它在样本内恢复了步骤+1信号的+163%,在样本外恢复了+153%,同时没有显著改变非推理Llama(+4.8%)。在DeepSeek-R1-Distill-Llama-70B上,Llama训练的探针以AUROC 0.748(p=6e-4)转移,而R1特定的探针达到1.000,表明R1以不同的隐藏状态方向编码计划信号。最后,压缩压力测试显示了实际成本:天真的计划驱逐使ALFWorld成功率降低34.7个百分点,而探针门控的重新浮现并未恢复它。贡献是一个测量和压力测试框架,表明代理关键信息可能是上下文驻留的,而不是持久的。上下文管理是承重的,但仅保护计划是不够的。

英文摘要

Long-horizon agents depend on context management: systems compress, summarize, and evict old tokens so tasks can continue beyond finite windows. That is safe only when dropped information is no longer needed or has been internalized. Plans are the stress case: they are written early, used for many steps, and first to be evicted. We introduce replay pairing, a diagnostic that runs the same trajectory with and without the plan in history and measures hidden-state cosine distance. On Llama-3.1-70B, plan signal spikes to 0.453 one step after the plan, then falls 4.1x in a single action-observation step; HotpotQA falls 12.4x. This is evidence that standard LLM agents do not carry plans forward as persistent state, and instead depend on the plan remaining in context. A layer-L32 probe detects this decay as a diagnostic, not as proof that it reads plan content itself. Reasoning models add a measurement confound: their `<think>` traces re-derive plan content, so standard stripping leaves plan evidence in the stripped condition. We name this the reasoning-trace confound and fix it with strict stripping, which removes prior `<think>` blocks from the stripped run only. It recovers +163% of the step+1 signal in-sample and +153% held out, while not meaningfully changing non-reasoning Llama (+4.8%). On DeepSeek-R1-Distill-Llama-70B, a Llama-trained probe transfers at AUROC 0.748 (p=6e-4), while R1-specific probes reach 1.000, suggesting R1 encodes plan signal in a different hidden-state direction. Finally, a compression stress test shows the practical cost: naive plan eviction cuts ALFWorld success by 34.7pp, while probe-gated re-surfacing does not recover it. The contribution is a measurement and stress-test framework showing that agent-critical information can be context-resident rather than persistent. Context management is load bearing, but plan protection alone is not enough.

URL PDF HTML 收藏
2606.22936 2026-06-23 cs.AI 新提交

When Agents Commit Too Soon: Diagnosing Premature Commitment in LLM Agents

当智能体过早承诺:诊断LLM智能体中的过早承诺问题

Aman Mehta

机构 * Snowflake AI Research

AI总结 本文提出表征承诺作为跨运行隐藏状态收敛的指标,用于诊断长程LLM智能体过早承诺问题,并在多个模型和数据集上验证其预测轨迹一致性的能力。

Comments 22 pages, 16 figures Primary: cs.AI Secondary: cs.CL

详情
AI中文摘要

长程LLM智能体可能会悄无声息地失败:它们过早地确定对证据的一种解读,然后花费剩余时间来捍卫它。我们称之为过早承诺。最终答案评分无法捕捉这种失败模式,因为它只看到答案,而不关注过程是否已经崩溃到稳定路径。我们将表征承诺定义为在固定推理步骤上跨运行的隐藏状态收敛,并将其用作轨迹一致性的早期诊断指标。在Llama-3.1-70B上运行ReAct于HotpotQA时,第4步隐藏状态相似性预测下游行为一致性(r = -0.35,偏相关r = -0.45),具有局部的时间和层间特征。该信号在Qwen-2.5-72B和Phi-3-14B以及StrategyQA(r = -0.83)上复现。它不追踪正确性:承诺错误和承诺正确的问题在激活相似性上不可区分。这一边界是核心主张。承诺告诉我们智能体是否已稳定,而非是否正确。一个运行时监控器从隐藏状态检测不一致轨迹,AUROC高达0.97(更严格划分下为0.85-0.88),而提示干预将行为方差降低28%(与令牌匹配对照相比),同时准确性统计上无变化。我们还测试了该信号是否能引导自一致性计算;在更难的基准上,它仅适度帮助,并被一个更简单的基于输出的基线所匹配。结果是对隐藏过程失败的诊断,具有明确局限性,而非通用的准确性杠杆。

英文摘要

Long-horizon LLM agents can fail quietly: they settle on one reading of the evidence early, then spend the rest of the run defending it. We call this premature commitment. Final-answer scoring misses the failure mode because it sees only the answer, not whether the process has already collapsed to a stable path. We define representational commitment as cross-run hidden-state convergence at a fixed reasoning step, and use it as an early diagnostic of trajectory consistency. On Llama-3.1-70B running ReAct on HotpotQA, step-4 hidden-state similarity predicts downstream behavioral consistency (r = -0.35, partial r = -0.45), with a localized temporal and layer-wise signature. The signal replicates across Qwen-2.5-72B and Phi-3-14B, and on StrategyQA (r = -0.83). It does not track correctness: committed-wrong and committed-correct questions are not separable in activation similarity. That boundary is central to the claim. Commitment tells us whether an agent has settled, not whether it is right. A runtime monitor detects inconsistent trajectories from hidden states at AUROC up to 0.97 (0.85--0.88 under a stricter split), and a prompting intervention cuts behavioral variance by 28% against a token-matched control while leaving accuracy statistically unchanged. We also test whether the signal can route self-consistency compute; on a harder benchmark it helps only modestly and is matched by a simpler output-based baseline. The result is a diagnostic for a hidden process failure, with clear limits rather than a general accuracy lever.

URL PDF HTML 收藏
2603.25764 2026-06-23 cs.SE cs.AI 版本更新

Confident and Wrong: Silent Semantic Failures in Coding Agents

自信且错误:编码智能体中的无声语义失败

Aman Mehta

机构 * Snowflake AI Research(Snowflake AI研究院)

AI总结 本文揭示编码智能体在任务完成率与可信度之间存在系统性偏差,提出“无声语义失败”这一危险模式,并建议通过多次运行的测试验证正确率来评估智能体。

Comments 8 pages, 8 figures. Request: please change the primary category to cs.AI

详情
AI中文摘要

随着编码智能体进入生产工作流,团队不仅需要知道智能体是否完成任务,还需要知道其行为是否可信。我们表明,完成率和可信度存在显著且系统的偏差。在50个SWE-bench Verified任务的1750条轨迹上,我们比较了四个前沿模型在多次运行中的表现,并将提交率与测试验证解决率分开。GPT-5在100%的运行中提交了补丁,但仅解决了44%;Llama 4提交了99%但解决了18%;而Gemini尽管提交最少(70%),却解决了比GPT-5更多的任务(50%对44%)。这些差距并非随机:它们集中在一个我们称为“无声语义失败”的危险失败模式中。定性上,在一个有缺陷的任务中,智能体在所有五次运行中都提交了看似合理的补丁,但没有一个通过,这是重复的相同误解而非随机错误。定量上,它主导了失败,覆盖了Llama 4的80%失败运行和GPT-5的68%,并且它是不可见的:结果自信且一致地错误,因此基于完成度和一致性的监控在智能体不应被信任时看起来都健康。轻量级的编辑前提示无法缩小差距。第二个探针隔离了行动本能:给定一个已修复的缺陷,正确的做法是不干预,但大多数模型仍然编辑了正确的代码。这种行动偏差——在不需要行动时行动——正是完成度指标所奖励的。主线是度量:提交率衡量行动,但信任需要有效性。因此评估必须跟上:通过多次运行的测试验证正确率来评分智能体,报告其不确定性,并奖励那些知道何时不行动的智能体。

英文摘要

As coding agents move into production workflows, teams need to know not only whether an agent completes a task, but whether its action can be trusted. We show that completion and trustworthiness diverge sharply and systematically. Across 1,750 trajectories on 50 SWE-bench Verified tasks, we compare four frontier models over repeated runs and separate submit rate from test-verified resolve rate. GPT-5 submits a patch on 100% of runs but resolves only 44%; Llama 4 submits on 99% but resolves 18%; and Gemini, despite submitting least often at 70%, resolves more tasks than GPT-5 (50% versus 44%). These gaps are not random: they concentrate in one dangerous failure mode we call silent semantic failure. Qualitatively, on a buggy task the agent submits a plausible-looking patch on all five runs, yet none pass, the same misinterpretation repeated rather than random error. Quantitatively, it dominates failure, covering 80% of Llama 4's failing runs and 68% of GPT-5's, and it is invisible: the outcomes are confidently and consistently wrong, so completion-based and consistency-based monitoring both look healthy exactly when the agent should not be trusted. Lightweight pre-edit prompts do not close the gap. A second probe isolates the instinct to act: given an already-fixed bug, where the right move is to abstain, most models still edit the correct code. This action bias, acting when no action is warranted, is exactly what completion metrics reward. The throughline is measurement: submit rate captures action, but trust requires validity. So evaluation must catch up: score agents by test-verified correctness over repeated runs, report its uncertainty, and reward those that know when not to act.

URL PDF HTML 收藏
2606.15345 2026-06-18 cs.CL cs.IR 新提交

Beyond Monolingual Deep Research: Evaluating Agents and Retrievers with Cross-Lingual BrowseComp-Plus

超越单语言深度研究:用跨语言 BrowseComp-Plus 评估智能体和检索器

Yuheng Lu, Qingcheng Zeng, Heli Qi, Puxuan Yu, Fuheng Zhao, Rui Yang, Hitomi Yanaka, Naoto Yokoya, Weihao Xuan

机构 * Waseda University(早稻田大学) Northwestern University(西北大学) RIKEN AIP(理化学研究所革新智能研究中心) Snowflake Inc.(Snowflake公司) University of Utah(犹他大学) Duke-NUS Medical School(杜克-新加坡国立大学医学院) The University of Tokyo(东京大学)

AI总结 提出跨语言基准 XBCP,评估深度研究智能体在证据语言与查询不同时的表现,发现检索和智能体端均存在显著性能下降。

Comments Preprint

详情
AI中文摘要

深度研究智能体越来越被评估其搜索证据、推理检索来源和生成有依据答案的能力。然而,现有的浏览基准大多假设用户查询和支持证据使用同一种语言,因此当相关证据出现在另一种语言时,智能体搜索系统能否运行尚不清楚。我们引入了 XBCP(跨语言 BrowseComp-Plus),这是一个受控基准,它保留了 BrowseComp-Plus 的英文问答空间,但改变了支持文档的语言。XBCP 实例化了两个互补的设置:在跨语言设置中,每个查询与单一指定语言的证据配对。在多语言设置中,完整的证据语料库在 12 种语言(涵盖高资源和低资源语言)中均匀随机分布。我们使用稀疏和密集的多语言检索器评估了四个深度研究智能体,测量了答案准确性、证据召回率、搜索行为、校准度、引用忠实度和 oracle 检索。结果显示,当证据被翻译时,性能显著下降。即使是强大的密集检索器也会丢失证据召回率,智能体变得不那么校准,且引用证据的可靠性降低。值得注意的是,即使直接提供所有黄金证据,准确性仍然较低。这些发现表明,跨语言深度研究暴露了检索失败和智能体端在整合语言不匹配证据方面的独立困难。

英文摘要

Deep research agents are increasingly evaluated on their ability to search for evidence, reason over retrieved sources, and produce grounded answers. Existing browsing benchmarks, however, largely assume that the user's query and the supporting evidence are written in the same language, leaving open whether agentic search systems can operate when relevant evidence appears in another language. We introduce XBCP (Cross-lingual BrowseComp-Plus), a controlled benchmark that preserves the English question-and-answer space of BrowseComp-Plus but varies the languages of the supporting documents. XBCP instantiates two complementary settings: in the cross-lingual setting, each query is paired with evidence in a single assigned language. In the multilingual setting, the full evidence corpus is distributed equally and randomly across 12 languages spanning high-resource and low-resource regimes. We evaluate four deep research agents using sparse and dense multilingual retrievers, measuring answer accuracy, evidence recall, search behavior, calibration, citation fidelity, and oracle retrieval. Results reveal substantial degradation when evidence is translated. Even strong, dense retrievers lose evidence recall, and agents become less calibrated and cite evidence less reliably. Notably, accuracy remains lower even when all gold evidence is supplied directly. These findings suggest that cross-lingual deep research exposes both retrieval failures and an independent, agent-side difficulty in integrating language-mismatched evidence.

URL PDF HTML 收藏
2606.11680 2026-06-11 cs.AI cs.CL cs.LG 新提交

Organize then Retrieve: Hierarchical Memory Navigation for Efficient Agents

先组织再检索:面向高效智能体的层次化记忆导航

Hao-Lun Hsu, Nikki Lijing Kuang, Boyi Liu, Zhewei Yao, Yuxiong He

机构 * Duke University(杜克大学) Snowflake AI Research(Snowflake AI研究)

AI总结 提出HORMA框架,通过构建文件系统式的层次化记忆结构并利用强化学习训练的轻量级导航代理,实现高效检索,在长时任务中提升性能并降低令牌消耗。

详情
AI中文摘要

大型语言模型(LLM)智能体由于固有的无状态性,在处理长时任务时面临挑战,所有任务相关信息必须编码到不断增长的输入上下文中,导致推理质量下降、推理成本增加和延迟升高,因此需要高效的工作记忆机制。然而,现有方法要么依赖有损压缩,要么基于相似性检索,往往无法捕捉多步智能体任务所需的时间结构和因果依赖关系。在这项工作中,我们提出了HORMA,一种层次化组织与检索记忆智能体,它将经验组织成类似文件系统的层次化结构,其中总结的实体链接到相应的原始轨迹,从而在保留详细信息的同时实现高效访问。HORMA将工作记忆分解为两个阶段:结构化记忆构建和基于导航的检索。构建模块通过区分由信息缺失导致的失败和由误导性或过载上下文导致的失败,迭代地优化经验的结构化方式。导航模块使用强化学习训练的轻量级代理遍历层次结构,选择最小但充分的上下文,从而减少关键执行路径上的延迟。在ALFWorld、LoCoMo和LongMemEval上,HORMA在受限上下文预算下提升了任务性能,同时在长对话任务中最多仅使用基线22.17%的令牌。与现有方法相比,它始终实现了更好的效率-性能权衡,并能有效泛化到未见任务。

英文摘要

Large language model (LLM) agents struggle with long-horizon tasks due to their inherent statelessness, requiring all task-relevant information to be encoded in growing input contexts. The resulting degraded reasoning quality, increased inference cost, and higher latency necessitate efficient working memory mechanisms. However, existing approaches either rely on lossy compression or similarity-based retrieval, which often fail to capture temporal structure and causal dependencies required for multi-step agentic tasks. In this work, we present HORMA, a Hierarchical Organize-and-Retrieve Memory Agent that organizes experience into a file-system-like hierarchical structure, where summarized entities are linked to the corresponding raw trajectories, enabling efficient access without losing detailed information. HORMA decomposes working memory into two stages: structured memory construction and navigation-based retrieval. The construction module iteratively refines how experiences are structured by distinguishing between failures caused by missing information and those caused by misleading or overloaded context. The navigation module retrieves task-relevant context by traversing the hierarchy using a lightweight agent trained with reinforcement learning to select minimal yet sufficient context, thereby reducing latency along the critical execution path. Across ALFWorld, LoCoMo, and LongMemEval, HORMA improves task performance under constrained context budgets while requiring at most 22.17% of the baseline token usage in long conversation tasks. Compared to existing methods, it consistently achieves better efficiency-performance trade-offs and generalizes effectively to unseen tasks.

URL PDF HTML 收藏
2606.10445 2026-06-10 cs.LG cs.CL 新提交

SpenseGPT: Practical One-shot Pruning Enabling Sparse and Dense GEMMs for LLM Inference

SpenseGPT: 面向LLM推理的实用一次性剪枝,支持稀疏和稠密GEMM

Jaeseong Lee, Seung-won Hwang, Samyam Rajbhandari

机构 * Snowflake AI Research(Snowflake AI研究) Seoul National University(首尔大学)

AI总结 提出Spense混合稀疏-稠密格式,将权重矩阵分为2:4稀疏和稠密区域,结合一次性剪枝方法SpenseGPT,在B200 GPU上实现高达1.2倍端到端解码加速,同时保持模型精度。

详情
AI中文摘要

半结构化2:4稀疏性被现代加速器广泛支持,可提供高达2倍的理论加速。然而,其严格的50%稀疏性约束在训练后剪枝下常导致不可忽略的精度下降。同时,现有的宽松稀疏格式要么需要专门的编译器支持,要么引入限制端到端加速的运行时开销。我们提出Spense,一种实用的混合稀疏-稠密格式,将每个权重矩阵分为2:4稀疏区域和稠密区域。该设计放宽了有效稀疏性约束,同时保持与现有高性能稀疏和稠密GEMM库的兼容性,避免了自定义编译器支持和输入激活扩展。基于此格式,我们引入SpenseGPT,一种一次性训练后剪枝方法,生成稀疏和稠密区域。值得注意的是,我们表明选择正确的稠密区域很重要,并设计了两种不同的策略来选择它们。在Qwen3-32B和Seed-OSS-36B上的实验表明,我们的方法在B200 GPU上使用FP8精度实现了高达1.2倍的端到端解码加速,同时保持精度。据我们所知,这是首个在B200等最新GPU上通过半结构化稀疏张量核心实现真实世界端到端LLM解码加速并保持模型质量的一次性剪枝演示。

英文摘要

Semi-structured 2:4 sparsity is widely supported by modern accelerators, providing up to a 2x theoretical speedup. However, its strict 50% sparsity constraint often causes non-negligible accuracy degradation under post-training pruning. Meanwhile, existing relaxed sparsity formats either require specialized compiler support or introduce runtime overheads that limit end-to-end speedup. We propose Spense, a practical hybrid sparse-dense format that splits each weight matrix into a 2:4 sparse region and a dense region. This design relaxes the effective sparsity constraint while remaining compatible with existing high-performance sparse and dense GEMM libraries, avoiding both custom compiler support and input activation expansion. Building on this format, we introduce SpenseGPT, a one-shot post-training pruning method that produces sparse and dense regions. Notably, we show that selecting the right dense regions is important, and we devise two different strategies to choose them. Experiments on Qwen3-32B and Seed-OSS-36B demonstrate that our method achieves up to 1.2x end-to-end decoding speedup on B200 GPUs with FP8 precision, while preserving accuracy. To the best of our knowledge, this is the first one-shot pruning demonstration of real-world end-to-end LLM decoding speedup from semi-structured sparse tensor cores on recent GPUs such as B200s, while maintaining model quality.

URL PDF HTML 收藏
2606.07923 2026-06-09 cs.DB cs.AI cs.LG 新提交

Larch: Learned Query Optimization for Semantic Predicates

Larch: 面向语义谓词的学习型查询优化

Fuheng Zhao, Pawel Liskowski, Zihan Li, Benjamin Han, Puxuan Yu, Varich Boonsanong, Dimitris Tsirogiannis, Anupam Datta

机构 * Snowflake Inc.(Snowflake公司)

AI总结 提出Larch框架,利用嵌入增强的图神经网络和强化学习或监督学习优化AI SQL查询中语义过滤器的执行顺序,显著降低令牌开销。

详情
AI中文摘要

随着大型语言模型(LLM)的出现,许多数据库系统引入了语义运算符,使得能够对非结构化数据(如文本、图像、视频)进行分析查询。语义运算符通常会产生高昂的推理成本和延迟,使得语义(AI)SQL查询难以应用于大规模数据集。同时,其语义性质导致数据库引擎将其视为黑盒,使得AISQL查询难以优化。在本文中,我们介绍了Larch,一个用于优化AI SQL查询中语义过滤器执行的框架。Larch的灵感来自两个关键观察:i) 语义运算符的高延迟为计算密集型运行时优化技术留下了显著空间,ii) 非结构化数据通常伴随着嵌入形式的语义信息,允许在AI_FILTER提示和数据值之间进行高效的语义比较。基于这两个关键观察,我们提出了两种Larch变体:Larch-A2C和Larch-Sel。Larch-A2C使用嵌入增强的门控图神经网络编码任意语义过滤器表达式树,并将过滤器评估顺序表述为马尔可夫决策过程。相比之下,Larch-Sel利用监督学习模型预测过滤器选择性,随后应用动态规划为每个输入行找到接近最优的评估顺序。在多样化的真实世界数据集和全面的合成工作负载上进行评估,两种Larch变体在令牌使用方面始终优于现有的语义过滤器优化技术。我们的结果表明,Larch在不同工作负载下具有鲁棒性,与Palimpzest和Quest相比,将总令牌成本开销降低了3倍至19倍。

英文摘要

With the advent of Large Language Models (LLMs), many database systems introduced semantic operators that enabled analytical queries over unstructured data (e.g. text, images, videos). Semantic operators typically incur high inference costs and latencies making semantic (AI) SQL queries challenging to apply on large scale datasets. At the same time, their semantic nature leads database engines to treat them as black boxes, making AISQL queries difficult to optimize. In this paper, we introduce Larch, a framework for optimizing the execution of semantic filters in AI SQL queries. Larch was inspired by two key observations: i) the high latency of semantic operators leaves significant room for computationally-heavy runtime optimization techniques, ii) unstructured data are typically accompanied by semantic information in the form of embeddings allowing for efficient semantic comparisons between AI_FILTER prompts and data values. Based on these two key observations, we present two Larch variants: Larch-A2C and Larch-Sel. Larch-A2C encodes arbitrary semantic filters expression tree using an embedding-augmented Gated Graph Neural Network and formulates the filter evaluation order as a Markov decision process. In contrast, Larch-Sel leverages a supervised learning model to predict filter selectivities, subsequently applying dynamic programming to find a near-optimal evaluation order for each input row. Evaluated across diverse real-world datasets and comprehensive synthetic workloads, both Larch variants always outperform existing semantic filter optimization techniques in terms of token usage. Our results demonstrate that Larch is robust across diverse workloads, reducing total token cost overhead by 3x-19x compared to Palimpzest and Quest.

URL PDF HTML 收藏
2603.22327 2026-06-08 cs.IR cs.AI cs.DL 版本更新

Evaluating AI-based Scientific Knowledge Synthesis with Epidemiological Systematic Reviews

基于流行病学系统评价评估AI科学知识综合

Shreyansh Padarha, Ryan Othniel Kearns, Tristan Naidoo, Lingyi Yang, Łukasz Borchmann, Piotr BŁaszczyk, Christian Morgenstern, Ruth McCabe, Sangeeta Bhatia, Philip H. Torr, Jakob Foerster, Scott A. Hale, Thomas Rawson, Anne Cori, Elizaveta Semenova, Adam Mahdi

机构 * University of Oxford(牛津大学) Imperial College London(伦敦帝国理工学院) University of Nottingham(诺丁汉大学) Snowflake AI Research(Snowflake人工智能研究) Independent(独立)

AI总结 提出AgentSLR评估框架,包含自动化工作流和专家标注数据集,测试LLM在流行病学系统评价各阶段能力,发现无模型全面领先,结构化提取是主要瓶颈。

详情
AI中文摘要

系统文献综述(SLR)是一种要求高且风险大的科学知识综合形式,但作为大型语言模型(LLM)的评估场景仍未被充分定义。我们引入了AgentSLR,一个大规模评估框架,包含SLR自动化工作流和覆盖16,248篇文章的专家标注数据集,旨在测试LLM在流行病学SLR各阶段的能力。参考标注来自关于WHO优先病原体的同行评审研究,并由领域专家制作。该框架将每个综述阶段作为独立单元进行评估,并配有专用指标,以便进行有针对性的失败分析。我们评估了五种前沿推理模型,发现没有单一模型在所有任务中占主导地位,显示出子任务专业化往往被聚合基准所掩盖。结构化数据提取是一个主要瓶颈,没有模型在平均字段级F1上超过0.67。估计成本差异很大,评估模型之间相差高达96倍。记录的失败模式表明,评估的模型在流行病学中尚不足以可靠地进行无监督部署,因为其发现可能影响公共政策。

英文摘要

Systematic literature reviews (SLRs) are a demanding and high-stakes form of scientific knowledge synthesis that remains underspecified as an evaluation setting for large language models (LLMs). We introduce AgentSLR, a large-scale evaluation harness comprising an SLR automation workflow and an expert annotated dataset covering 16,248 articles, designed to test LLM capabilities across the stages of SLRs in epidemiology. Reference annotations were derived from peer-reviewed studies on WHO priority pathogens and produced by domain experts. The harness evaluates each review stage as a separate unit with dedicated metrics enabling targeted failure analysis. We evaluated five frontier reasoning models and found that no single model dominated across all tasks, showing sub-task specialisation often hidden by aggregate benchmarks. Structured data extraction is a major bottleneck, with no model exceeding an average field-level F1 of 0.67. Estimated costs vary substantially, by up to 96 times across evaluated models. Documented failure modes suggest that the evaluated models are not yet reliable enough for unsupervised deployment in epidemiology, where findings can inform public policy.

URL PDF HTML 收藏
2606.00547 2026-06-02 cs.CL

Learning to Retrieve: Dual-Level Long-Term Memory for Text-to-SQL Agents

学习检索:面向文本到SQL代理的双层长期记忆

Yibo Wang, Nikki Lijing Kuang, Philip S. Yu, Zhewei Yao, Yuxiong He

机构 * University of Illinois Chicago(伊利诺伊大学芝加哥分校) Snowflake AI Research(Snowflake AI研究院)

AI总结 提出MERIT框架,通过强化学习优化双层记忆检索(全局策略与局部决策),提升交互式文本到SQL代理的成功率并减少交互轮次。

详情
AI中文摘要

交互式文本到SQL代理通过多轮交互解决数据库任务,涉及模式探索、查询执行、反馈解释和决策修订。长期记忆帮助代理重用过去经验,但现有检索方法仍有局限。静态方法依赖固定的相似性启发式,无法优化下游效用;动态方法通常从稀疏的最终结果中学习,并在单一决策水平上检索记忆。当记忆有用性随交互阶段变化时,这种方法是 insufficient 的,因为用于初始规划的记忆可能不同于局部、状态条件执行所需的记忆。我们提出MERIT,一种动态多水平记忆检索框架。MERIT维护用于全局策略指导的片段级记忆和用于局部决策支持的轮次级记忆。两个水平都使用通过强化学习优化的学习检索策略。为了在有限的中间监督下训练轮次级检索,MERIT使用轻量级过程奖励模型为局部记忆选择提供密集的代理奖励。在BIRD-Interact上的实验表明,MERIT在成功率上优于无记忆、静态检索和动态检索基线,同时减少了平均交互轮次。在Spider2-Snow上的迁移结果进一步显示了无需基准特定调优的跨基准正迁移。这些结果表明,多水平检索改善了交互式文本到SQL代理中的经验重用。

英文摘要

Interactive text-to-SQL agents solve database tasks through multi-turn interactions involving schema exploration, query execution, feedback interpretation, and decision revision. Long-term memory helps agents reuse past experiences, but existing retrieval methods remain limited. Static methods rely on fixed similarity heuristics that do not optimize downstream utility, while dynamic methods often learn from sparse final outcomes and retrieve memories at a single decision horizon. This is insufficient when memory usefulness changes across interaction stages, since memories useful for initial planning may differ from those needed for local, state-conditioned execution. We propose MERIT, a dynamic multi-horizon memory retrieval framework. MERIT maintains episode-level memory for global strategic guidance and turn-level memory for local decision support. Both levels use learned retrieval policies optimized with reinforcement learning. To train turn-level retrieval despite limited intermediate supervision, MERIT uses a lightweight Process Reward Model to provide dense proxy rewards for local memory selection. Experiments on BIRD-Interact show that MERIT outperforms no-memory, static-retrieval, and dynamic-retrieval baselines in success rate while reducing average interaction turns. Transfer results on Spider2-Snow further show positive cross-benchmark transfer without benchmark-specific tuning. These results suggest that multi-horizon retrieval improves experience reuse in interactive text-to-SQL agents.

URL PDF HTML 收藏
2605.24183 2026-05-26 cs.DB cs.AI cs.LG

AvalancheBench: Evaluating Enterprise Data Agents Through Latent World Recovery

AvalancheBench: 通过潜在世界恢复评估企业数据智能体

Darek Kleczek, Fuheng Zhao, Alexander W. Lee, Julien Tissier, Pawel Liskowski, Ugur Cetintemel, Anupam Datta

机构 * Brown University and Snowflake(布朗大学和Snowflake)

AI总结 提出AvalancheBench基准,通过潜在世界恢复评估企业数据智能体的分析理解能力,揭示早期错误如何传播并导致系统性错误推荐。

详情
AI中文摘要

我们介绍了AvalancheBench,一个通过潜在世界恢复评估企业数据智能体的基准。AvalancheBench在三个方面改进了现有基准。首先,它评估分析理解而非流程完成:系统根据是否恢复了解释数据的片段、驱动因素、时间事件和关系来评分,而不仅仅是执行工作流或生成看似合理的报告。其次,它通过从已知潜在世界生成观测数据,为目标驱动分析提供真实基准,从而允许对不完整但有效的恢复给予部分分数。第三,它揭示了早期分析错误如何传播到后续结论:遗漏的片段、合并的事件或错误的归因可能导致系统性错误推荐。在这个意义上,AvalancheBench通过提供一个受控环境来诊断智能体是否恢复了企业数据背后的分析结构,从而补充了真实数据基准。在第一个电子商务用例中,领先编码智能体的最强配置仅恢复了26%的评分标准,失败集中在通用客户细分和合并的时间事件上。

英文摘要

We introduce AvalancheBench, a benchmark for evaluating enterprise data agents through \emph{latent world recovery}. AvalancheBench improves on existing benchmarks in three ways. First, it evaluates analytical understanding rather than pipeline completion: systems are scored on whether they recover the segments, drivers, temporal events, and relationships that explain the data, not merely on whether they execute a workflow or produce a plausible report. Second, it provides ground truth for goal-driven analytics by generating observations from a known latent world, enabling partial credit for incomplete but valid recoveries. Third, it exposes how early analytical mistakes propagate into later conclusions: missed segments, merged events, or wrong attributions can lead to systematically wrong recommendations. In this sense, AvalancheBench complements real-data benchmarks by providing a controlled setting for diagnosing whether agents recover the analytical structure behind enterprise data. On a first e-commerce use case, the strongest configuration of a leading coding agent recovers only 26\% of the rubric, with failures concentrated in generic customer segmentations and merged temporal events.

URL PDF HTML 收藏
2605.23215 2026-05-25 cs.LG cs.AI cs.CL

FastKernels: Benchmarking GPU Kernel Generation in Production

FastKernels:生产中GPU内核生成的基准测试

Gabriele Oliaro, Yichao Fu, May Jiang, Owen Lu, Junli Wang, Zhihao Jia, Hao Zhang, Samyam Rajbhandari

机构 * Snowflake AI Research(Snowflake AI研究院) CMU(卡内基梅隆大学) UCSD(加州大学圣地亚哥分校) Independent Researcher(独立研究者)

AI总结 针对现有基准与生产推理框架脱节的问题,提出FastKernels基准,包含46个代表性架构,覆盖96.2%的HuggingFace Transformers架构,并作为生产级推理框架,评估显示最强代理仅实现0.94倍加速,揭示基准-生产错位是关键瓶颈。

详情
AI中文摘要

基于LLM的GPU内核生成代理正在快速发展,但其进展从根本上受到所优化基准的限制。现有基准与生产推理框架严重脱节:它们在单GPU上使用合成输入评估内核,忽略周围的编译栈,并奖励复制已知优化而非发现新优化。由此产生的奖励信号具有误导性:代理学会生成在沙箱中得分高但在集成到实际系统时引入接口不兼容、编译栈冲突和静默正确性下降的内核。我们引入FastKernels,一个基于最小化46个代表性架构(涵盖8个类别)的内核基准,这些内核共同涵盖了96.2%(409/425)的HuggingFace Transformers架构。FastKernels同时作为一个简约的生产级推理框架,在主流LLM服务上与vLLM和SGLang等成熟系统运行性能相当,并在服务不足的架构上显著超过上游参考;每个任务的接口镜像其架构家族中最先进库的相应模块,使得优化后的内核能够直接部署到生产代码库中。在FastKernels上评估最先进的内核代理,我们发现即使最强的代理也仅实现0.94倍于生产基线的总加速,而较弱的代理分别为0.78倍和0.53倍——证实基准-生产错位是该领域的关键瓶颈。我们发布FastKernels,作为迈向基准收益直接转化为生产吞吐量改进的内核代理的垫脚石。代码可在https://github.com/Snowflake-AI-Research/fastkernels获取。

英文摘要

LLM-based agents for GPU kernel generation are advancing rapidly, yet their progress is fundamentally constrained by the benchmarks they optimize against. Existing benchmarks are poorly aligned with production inference frameworks: they evaluate kernels on a single GPU with synthetic inputs, ignore the surrounding compilation stack, and reward replicating known optimizations rather than discovering new ones. The resulting reward signals are misleading: agents learn to generate kernels that score well in sandboxes but introduce interface incompatibilities, compilation-stack conflicts, and silent correctness degradation when integrated into real systems. We introduce FastKernels, a kernel benchmark built around a minimal set of 46 representative architectures spanning 8 categories, whose kernels collectively subsume those of 96.2% (409/425) of HuggingFace Transformers architectures. FastKernels doubles as a minimalistic, production-grade inference framework that runs at parity with hardened systems such as vLLM and SGLang on mainstream LLM serving and substantially exceeds upstream references on under-served architectures; each task's interface mirrors the corresponding module in the state-of-the-art library for its architecture family, enabling direct deployment of optimized kernels into production codebases. Evaluating state-of-the-art kernel agents on FastKernels, we find that even the strongest agent achieves only 0.94$\times$ aggregate speedup over production baselines, with weaker agents at $0.78\times$ and $0.53\times$ -- confirming that benchmark-production misalignment is a critical bottleneck for the field. We release FastKernels as a stepping stone toward kernel agents whose benchmark gains translate directly into production throughput improvements. Code is available at https://github.com/Snowflake-AI-Research/fastkernels

URL PDF HTML 收藏
2605.21792 2026-05-22 cs.CL cs.AI cs.DB cs.LG

Residual Skill Optimization for Text-to-SQL Ensembles

残差技能优化用于文本到SQL集成

Jiongli Zhu, Haoquan Guan, Parjanya Prajakta Prashant, Nikki Lijing Kuang, Seyedeh Baharan Khatami, Canwen Xu, Xiaodong Yu, Yingyu Lin, Zhewei Yao, Yuxiong He, Babak Salimi

机构 * University of California, San Diego(加州大学圣地亚哥分校) Snowflake AI Research(Snowflake人工智能研究)

AI总结 本文提出DivSkill-SQL,一种残差技能优化框架,通过在当前技能集成失败的示例上优化新技能,从而构建互补的文本到SQL集成,提升Pass@K性能,在Spider2-Lite上实现了显著的准确性提升,同时在不同方言和任务上表现出一致的改进。

详情
AI中文摘要

文本到SQL集成通过生成多个SQL候选并选择一个来优于单一候选生成,但其效果受限于Pass@K,即至少有一个K候选正确的概率。现有方法通过随机解码或提示变体启发式地引入多样性,导致候选集受相关失败主导。我们提出DivSkill-SQL,一种残差技能优化框架,构建互补的文本到SQL集成而无需模型微调:每个新技能在当前技能集成失败的示例上进行优化,证明其对Pass@K的边际贡献。在Spider2-Lite上,DivSkill-SQL在Snowflake和BigQuery上分别比最强集成基线提升11.1和8.3个点,且在两个基础模型(Opus-4.6和GPT-5.4)上表现一致。在单个方言上无重新训练即可转移至其他方言(Snowflake、BigQuery、SQLite)和不同任务形式(如BIRD-Critic,+2.6个点)。错误诊断显示幻觉的模式参考和函数调用减少3倍,表明收益来自真正可靠的互补技能,而非表面形式变化。

英文摘要

Text-to-SQL ensembles improve over single-candidate generation by drawing multiple SQL candidates and selecting one, but their effectiveness is bounded by Pass@K, the probability that at least one of K candidates is correct. Existing methods source diversity heuristically through stochastic decoding or prompt variants, leaving candidate sets dominated by correlated failures. We present DivSkill-SQL, a residual skill optimization framework that builds complementary agentic Text-to-SQL ensembles without model fine-tuning: each new skill is optimized on examples the current skill ensemble fails on, provably targeting its marginal contribution to Pass@K. On Spider2-Lite, DivSkill-SQL improves selected accuracy by up to +11.1 points on Snowflake and +8.3 on BigQuery over the strongest ensemble baseline, with consistent gains across two base models (Opus-4.6 and GPT-5.4). Skills optimized on a single dialect transfer without retraining across dialects (Snowflake, BigQuery, SQLite) and to a different task formulation, such as BIRD-Critic (+2.6 pts). Error diagnostics show up to 3x fewer hallucinated schema references and function calls, indicating that gains come from genuinely reliable complementary skills rather than surface-form variation.

URL PDF HTML 收藏
2509.00303 2026-05-21 cs.DB cs.AI cs.IR

Access Paths for Efficient Ordering with Large Language Models

利用大型语言模型实现高效的排序访问路径

Fuheng Zhao, Jiayue Chen, Yiming Pan, Tahseen Rabbani, Sohaib, Divyakant Agrawal, Amr El Abbadi, Paritosh Aggarwal, Anupam Datta, Dimitris Tsirogiannis

机构 * Snowflake Inc.(Snowflake公司) University of Chicago(芝加哥大学) UC Los Angeles(洛杉矶大学) UC Santa Barbara(圣巴巴拉大学)

AI总结 本文提出了一种基于大型语言模型的排序语义运算符,并系统研究了其物理实现。通过改进现有语义排序算法并引入语义感知的外部归并排序算法,研究发现没有单一实现能在所有数据集上达到最优。基于此,设计了一个预算感知的优化器,利用启发式规则、LLM作为判断者评估和共识聚合动态选择最优的访问路径。实验结果表明,该优化器在所有基准测试中均能实现与最佳静态方法相当或更优的排名准确性。

详情
AI中文摘要

在本工作中,我们提出了LLM ORDER BY语义运算符作为一种逻辑抽象,并对其物理实现进行了系统研究。首先,我们对现有的语义排序算法进行了若干改进,并引入了一种语义感知的外部归并排序算法。我们的广泛评估表明,没有单一的实现能在所有数据集上提供普遍最优性。从我们的评估中,我们观察到基于比较的算法中排序成本与排序质量之间存在一种通用的时间尺度关系。基于这些见解,我们设计了一个预算感知的优化器,该优化器利用启发式规则、LLM-as-Judge评估和共识聚合来动态选择LLM ORDER BY的近最优访问路径。在我们的广泛评估中,我们的优化器在所有基准测试中均能实现与最佳静态方法相当或更优的排名准确性。我们相信,这项工作为构建稳健、大规模的LLM驱动分析系统中的语义运算符原则性优化提供了基础性见解。

英文摘要

In this work, we present the \texttt{LLM ORDER BY} semantic operator as a logical abstraction and conduct a systematic study of its physical implementations. First, we propose several improvements to existing semantic sorting algorithms and introduce a semantic-aware external merge sort algorithm. Our extensive evaluation reveals that no single implementation offers universal optimality on all datasets. From our evaluations, we observe a general test-time scaling relationship between sorting cost and the ordering quality for comparison-based algorithms. Building on these insights, we design a budget-aware optimizer that utilizes heuristic rules, LLM-as-Judge evaluation, and consensus aggregation to dynamically select the near-optimal access path for LLM ORDER BY. In our extensive evaluations, our optimizer consistently achieves ranking accuracy on par with or superior to the best static methods across all benchmarks. We believe that this work provides foundational insights into the principled optimization of semantic operators essential for building robust, large-scale LLM-powered analytic systems.

URL PDF HTML 收藏
2605.02960 2026-05-18 cs.LG

MoE-Prefill: Zero Redundancy Overheads in MoE Prefill Serving

MoE-Prefill: 在MoE预填服务中实现零冗余开销

Zhaoyuan Su, Olatunji Ruwase, Karthik Ganesan, Aurick Qiao, Samyam Rajbhandari, Juncheng Yang, Yue Cheng, Yuxiong He

机构 * University of Virginia(弗吉尼亚大学) Snowflake AI Research(Snowflake AI研究院) Harvard University(哈佛大学)

AI总结 本文提出MoE-Prefill系统,通过异步专家并行策略优化MoE预填服务,提升吞吐量和GPU利用率,实现在实际和长上下文合成工作负载中的性能提升。

Comments 19 pages, 12 figures, 4 tables

详情
AI中文摘要

生产级大语言模型工作负载日益服务于判别任务,如分类、推荐和验证,其答案来自单次预填传递的logits,无自回归解码。在混合专家(MoE)模型上服务这些仅预填的工作负载受限于模型的分布式执行需求:现有并行策略(张量、专家和流水线并行)以内存压力换取冗余计算、通信和同步,严重降低MoE预填服务效率。我们发现这些开销源于将专家放置与同步激活路由耦合——一种继承自解码时代的设计。大批量预填的长计算绑定前向传递打开每层足够的窗口,可以背景流式专家权重,在此期间用异步权重AllGather取代每层激活的AllToAll,完全重叠于计算。我们提出MoE-Prefill,一个仅预填服务系统,其后端AsyncEP(异步专家并行)通过权重而非激活路由收集专家,其前端通过前缀感知路由和真实FLOPs负载跟踪强制物理衍生的饱和阈值。在Qwen3-235B-A22B上跨四种硬件/精度配置,MoE-Prefill在实际工作负载中比最强分布式基线提升1.35-1.37倍,在长上下文合成工作负载中提升达1.59倍,维持29.8-36.2%的每GPU模型FLOPs利用率。

英文摘要

Production LLM workloads increasingly serve discriminative tasks, such as classification, recommendation, and verification, whose answers are read from the logits of a single prefill pass with no autoregressive decoding. Serving these prefill-only workloads on mixture-of-experts (MoE) models is bottlenecked not by compute but by the distributed execution required to fit the model: existing parallel strategies (tensor, expert, and pipeline parallelism) trade memory pressure for redundant computation, communication, and synchronization, severely degrading MoE prefill serving efficiency. We observe that these overheads stem from coupling expert placement with synchronous activation routing -- a design inherited from the decoding era. The long, compute-bound forward passes of large-batch prefill open a per-layer window wide enough to stream expert weights in the background, replacing per-layer activation AllToAll with asynchronous weight AllGather fully overlapped with computation. We propose MoE-Prefill, a prefill-only serving system whose backend, AsyncEP (Asynchronous Expert Parallelism), gathers experts by weight rather than routing them by activation, and whose frontend co-enforces a physically-derived saturation threshold through prefix-aware routing and true-FLOPs load tracking. On Qwen3-235B-A22B across four hardware/precision configurations, MoE-Prefill delivers 1.35-1.37x throughput over the strongest distributed baseline on real-world workloads and up to 1.59x on long-context synthetic workloads, sustaining 29.8-36.2% per-GPU model FLOPs utilization.

URL PDF HTML 收藏
2604.27089 2026-05-01 cs.LG cs.DC cs.PF

AutoSP: Unlocking Long-Context LLM Training Via Compiler-Based Sequence Parallelism

AutoSP:通过编译器基于的序列并行性解锁长上下文LLM训练

Ahan Gupta, Zhihao Wang, Neel Dani, Masahiro Tanaka, Olatunji Ruwase, Minjia Zhang

机构 * SSAIL Lab, University of Illinois Urbana-Champaign(SSAIL实验室,伊利诺伊大学厄巴纳-香槟分校) Anyscale Snowflake

AI总结 本文提出AutoSP,一种自动优化长上下文LLM训练的解决方案,通过编译器实现序列并行性和激活检查点优化,提升训练效率。

Comments 13 pages, 9 figures, 1 table

详情
AI中文摘要

大型语言模型(LLM)在长上下文任务中表现出巨大的实用性,但现有LLM训练库未提供优化长上下文训练的易用抽象,而侧重于通过ZeRO-3/FSDP、张量和流水线并行性优化大参数模型。这迫使用户重写训练库以整合各种复杂长上下文优化,如序列并行性,此过程需要深入专业知识,降低开发效率。为解决这些问题,我们引入AutoSP:首个自动优化长上下文LLM训练的解决方案。AutoSP编译模型并应用一组针对性优化:自动序列并行性和长上下文感知的激活检查点优化,显著提升LLM训练性,同时对吞吐量成本 negligible。我们的评估显示AutoSP在NVIDIA和AMD硬件上均有效,训练上下文增加达2.7倍和2.5倍,对运行时性能影响极小。

英文摘要

Large-language-models (LLMs) demonstrate enormous utility in long-context tasks which require processing prompts that consist of tens to hundreds of thousands of tokens. However, existing LLM training libraries do not provide easy to use abstractions to optimize for long-context training, instead focusing on optimizations for models with large parameter counts through ZeRO-3/FSDP, Tensor and Pipeline parallelism. This forces users to rewrite LLM training libraries to incorporate compositions of various complex long-context optimizations, such as sequence-parallelism, to training pipelines; a process that requires in-depth expertise, reducing developer productivity. To tackle these challenges, we introduce AutoSP: the first automated solution to automatically optimize LLM training for longer-contexts. AutoSP compiles models and applies a targeted set of optimizations: automated sequence parallelism, and long-context aware activation-checkpointing, to drastically enhance LLM trainability at negligible cost to throughput. Our evaluation demonstrates AutoSP's capability on both NVIDIA and AMD hardware, increasing training contexts by upto 2.7$\times$ and 2.5$\times$ respectively over competitive hand-written baseline at negligible cost to runtime performance.

URL PDF HTML 收藏
2604.25325 2026-04-29 cs.SE cs.AI cs.CL

R$^3$-SQL: Ranking Reward and Resampling for Text-to-SQL

R³-SQL:基于排名奖励和重采样的文本到SQL

Hojae Han, Yeonseok Jeong, Seung-won Hwang, Zhewei Yao, Yuxiong He

机构 * ETRI(电子科技大学) Seoul National University(首尔国立大学) Snowflake AI Research(Snowflake人工智能研究)

AI总结 R³-SQL通过统一奖励和重采样解决文本到SQL中排名不一致和正确SQL缺失的问题,提升了执行准确率。

Comments Accepted by Findings of ACL 2026

详情
AI中文摘要

现代文本到SQL系统生成多个候选SQL查询并进行排名以判断最终预测。然而,现有方法面临两个限制:首先,尽管执行结果相同,功能等价的SQL查询评分不一致;其次,当正确SQL不在候选池中时,排名无法恢复。我们提出R³-SQL,一种文本到SQL框架,通过统一奖励和重采样解决这两个问题。R³-SQL首先按执行结果分组并对组进行一致性排名。为了评分每组,它结合了组间配对偏好与最佳组排名和大小的点wise效用,捕捉相对偏好、一致性和候选质量。为了提高候选召回率,R³-SQL引入了代理重采样,判断生成的候选池并选择性重采样,当正确SQL可能缺失时。R³-SQL在BIRD-dev上实现了75.03的执行准确率,是使用公开模型大小的方法中新的最佳状态,五个基准测试中均保持一致提升。

英文摘要

Modern Text-to-SQL systems generate multiple candidate SQL queries and rank them to judge a final prediction. However, existing methods face two limitations. First, they often score functionally equivalent SQL queries inconsistently despite identical execution results. Second, ranking cannot recover when the correct SQL is absent from the candidate pool. We propose R$^3$-SQL, a Text-to-SQL framework that addresses both issues through unified reward for ranking and resampling. R$^3$-SQL first groups candidates by execution result and ranks groups for consistency. To score each group, it combines a pairwise preference across groups with a pointwise utility from the best group rank and size, capturing relative preference, consistency, and candidate quality. To improve candidate recall, R$^3$-SQL introduces agentic resampling, which judges the generated candidate pool and selectively resamples when the correct SQL is likely absent. R$^3$-SQL achieves 75.03 execution accuracy on BIRD-dev, a new state of the art among methods using models with disclosed sizes, with consistent gains across five benchmarks.

URL PDF HTML 收藏
2511.07663 2026-04-08 cs.DB cs.AI cs.LG

Cortex AISQL: A Production SQL Engine for Unstructured Data

Cortex AISQL:面向非结构化数据的生产级SQL引擎

Paweł Liskowski, Benjamin Han, Paritosh Aggarwal, Bowei Chen, Boxin Jiang, Nitish Jindal, Zihan Li, Aaron Lin, Kyle Schmaus, Jay Tayade, Weicheng Zhao, Anupam Datta, Nathan Wiegand, Dimitris Tsirogiannis

机构 * Snowflake Inc.(雪花公司)

AI总结 Cortex AISQL通过AI-aware优化、自适应模型级联和语义连接重写技术,解决大规模语义操作效率问题,提升非结构化数据查询性能。

Comments Published in SIGMOD Companion '26 (Industry Track), Bengaluru, India, May 31-June 5, 2026. ACM DOI: 10.1145/3788853.3803093. This version is the published ACM Version of Record under the Creative Commons Attribution 4.0 International (CC BY 4.0) license

详情
AI中文摘要

Snowflake的Cortex AISQL是一种生产级SQL引擎,将原生语义操作直接集成到SQL中,允许用户编写结合关系操作与语义推理的声明性查询,从而轻松查询结构化和非结构化数据。然而,在生产规模下实现语义操作的效率面临根本挑战。语义操作比传统SQL操作更昂贵,具有不同的延迟和吞吐量特性,且其成本和选择性在查询编译期间是未知的。此外,现有查询引擎未设计用于优化语义操作。AISQL查询执行引擎通过三种由Snowflake客户生产部署数据启发的新技术解决这些挑战。首先,AI-aware查询优化将AI推理成本视为首要优化目标,在查询规划期间直接推理大型语言模型(LLM)成本,实现2-8倍的速度提升。其次,自适应模型级联通过将大多数行路由到快速代理模型,将不确定情况升级到强大Oracle模型,实现2-6倍的速度提升,同时保持90-95%的Oracle模型质量。第三,语义连接查询重写通过将连接操作重新表述为多标签分类任务,将二次时间复杂度降低到线性,实现15-70倍的速度提升,通常预测质量也有所提高。AISQL已部署在Snowflake生产环境中,驱动分析、搜索和内容理解等多样化客户工作负载。

英文摘要

Snowflake's Cortex AISQL is a production SQL engine that integrates native semantic operations directly into SQL. This integration allows users to write declarative queries that combine relational operations with semantic reasoning, enabling them to query both structured and unstructured data effortlessly. However, making semantic operations efficient at production scale poses fundamental challenges. Semantic operations are more expensive than traditional SQL operations, possess distinct latency and throughput characteristics, and their cost and selectivity are unknown during query compilation. Furthermore, existing query engines are not designed to optimize semantic operations. The AISQL query execution engine addresses these challenges through three novel techniques informed by production deployment data from Snowflake customers. First, AI-aware query optimization treats AI inference cost as a first-class optimization objective, reasoning about large language model (LLM) cost directly during query planning to achieve 2-8$\times$ speedups. Second, adaptive model cascades reduce inference costs by routing most rows through a fast proxy model while escalating uncertain cases to a powerful oracle model, achieving 2-6$\times$ speedups while maintaining 90-95% of oracle model quality. Third, semantic join query rewriting lowers the quadratic time complexity of join operations to linear through reformulation as multi-label classification tasks, achieving 15-70$\times$ speedups with often improved prediction quality. AISQL is deployed in production at Snowflake, where it powers diverse customer workloads across analytics, search, and content understanding.

URL PDF HTML 收藏
2604.00698 2026-04-02 cs.LG cs.AI cs.CL

Learning to Hint for Reinforcement Learning

为强化学习学习提示

Yu Xia, Canwen Xu, Zhewei Yao, Julian McAuley, Yuxiong He

机构 * University of California, San Diego(加州大学圣迭戈分校) Snowflake AI Research

AI总结 本文提出HiLL框架,通过联合训练提示策略和推理策略,解决强化学习中因提示不足导致的优势崩溃问题,通过提示依赖性理论提升提示的迁移效果,实验显示HiLL在多个基准上优于GRPO和传统提示方法。

详情
AI中文摘要

组相对策略优化(GRPO)广泛用于具有可验证奖励的强化学习,但常遭遇优势崩溃:当一组中的所有回放获得相同奖励时,该组将产生零相对优势,从而无法学习。例如,如果一个问题对推理器来说太难,所有采样的回放都可能错误并获得零奖励。近期工作通过添加提示或辅助支架来解决这一问题,使推理器产生混合结果并恢复非零更新。然而,现有提示通常是固定的,而非适应当前推理器,且在提示输入下产生学习信号的提示不一定能改进测试时的无提示策略。为此,我们提出强化学习中的提示学习(HiLL),一种在RL中联合训练提示策略和推理策略的框架。对于每个困难问题,提示器根据当前推理器的错误回放生成提示,使提示生成适应推理器的演变错误。我们进一步引入提示依赖性,衡量正确提示轨迹对提示的依赖程度。我们推导出一个可转移性结果,表明较低的提示依赖性意味着从提示成功到无提示成功的更强转移性,并利用此结果定义一个转移加权奖励来训练提示器。因此,HiLL倾向于那些不仅恢复信息丰富的GRPO组,还能产生更可能改进原始无提示策略的提示。在多个基准上的实验表明,HiLL在多个基准上优于GRPO和先前基于提示的基线,证明了适应性和迁移感知提示学习在RL中的价值。代码可在https://github.com/Andree-9/HiLL获取。

英文摘要

Group Relative Policy Optimization (GRPO) is widely used for reinforcement learning with verifiable rewards, but it often suffers from advantage collapse: when all rollouts in a group receive the same reward, the group yields zero relative advantage and thus no learning signal. For example, if a question is too hard for the reasoner, all sampled rollouts can be incorrect and receive zero reward. Recent work addresses this issue by adding hints or auxiliary scaffolds to such hard questions so that the reasoner produces mixed outcomes and recovers a non-zero update. However, existing hints are usually fixed rather than adapted to the current reasoner, and a hint that creates learning signal under the hinted input does not necessarily improve the no-hint policy used at test time. To this end, we propose Hint Learning for Reinforcement Learning (HiLL), a framework that jointly trains a hinter policy and a reasoner policy during RL. For each hard question, the hinter generates hints online conditioned on the current reasoner's incorrect rollout, allowing hint generation to adapt to the reasoner's evolving errors. We further introduce hint reliance, which measures how strongly correct hinted trajectories depend on the hint. We derive a transferability result showing that lower hint reliance implies stronger transfer from hinted success to no-hint success, and we use this result to define a transfer-weighted reward for training the hinter. Therefore, HiLL favors hints that not only recover informative GRPO groups, but also produce signals that are more likely to improve the original no-hint policy. Experiments across multiple benchmarks show that HiLL consistently outperforms GRPO and prior hint-based baselines, demonstrating the value of adaptive and transfer-aware hint learning for RL. The code is available at https://github.com/Andree-9/HiLL.

URL PDF HTML 收藏
2603.23515 2026-03-26 cs.CL cs.AI

Training a Large Language Model for Medical Coding Using Privacy-Preserving Synthetic Clinical Data

利用隐私保护的合成临床数据训练大型语言模型进行医学编码

John Cook, Michael Wyatt, Peng Wei, Iris Chin, Santosh Gupta, Van Zyl Van Vuuren, Richie Siburian, Amanda Spicer, Kristen Viviano, Alda Cami, Raunaq Malhotra, Zhewei Yao, Jeff Rasley, Gaurav Kaushik

机构 * Veradigm Snowflake

AI总结 本文研究了利用隐私保护的合成临床数据训练大型语言模型进行医学编码的可行性,通过微调Llama 3-70B模型,实现了ICD-10-CM和CPT代码的高精度预测,显著提升了编码准确性。

Comments 20 pages, 6 figures

详情
AI中文摘要

提高医学编码的准确性和可靠性可以减少医护人员疲劳,支持收入周期流程,使医护人员能更专注于患者护理。然而,从临床文档中自动化分配ICD-10-CM和CPT代码仍具挑战性,由于记录异质性、编码指南复杂性和长尾分布。大型语言模型已被提出帮助或自动化特定医学编码任务。然而,基础模型并未专门训练用于医学编码,零样本编码效果不佳。我们研究了现代开放式基础模型是否能通过隐私保护的合成训练数据(源自电子健康记录)适应专家级医学编码任务。我们对Llama 3-70B进行微调,使用临床笔记和金标准代码对(由EHR基础模板和编码政策生成),然后评估ICD-10-CM和CPT的精确代码预测。未适应模型的零样本基线在精确代码匹配上的F1得分为0.18。在合成语料库上微调后,精确匹配F1超过0.70,代表在两种代码系统上均实现了显著的绝对提升。值得注意的是,性能在需要多步骤临床推理和代码组合的复杂类别(如高级疾病和脆弱类别)中仍保持较高水平,且模型在医疗理解任务上保持了其性能。这些结果表明,合成、基于政策的数据可以高效地教给通用大型语言模型以支持精确的医学编码,而无需暴露受保护的健康信息。该方法为安全地在特定任务上训练编码代理提供了可行的路径,这些任务代表现实世界的人群。

英文摘要

Improving the accuracy and reliability of medical coding reduces clinician burnout and supports revenue cycle processes, freeing providers to focus more on patient care. However, automating the assignment of ICD-10-CM and CPT codes from clinical documentation remains a challenge due to heterogeneous records, nuanced coding guidelines, and long-tail distributions. Large language models have been proposed to help or automate specific medical coding tasks. However, foundation models are not explicitly trained for medical coding and zero-shot coding has yielded poor results. We investigate whether a modern open-weight foundation model can be adapted for an expert-level medical coding task using privacy-preserving synthetic training data derived from electronic health records. We fine-tune Llama 3-70B on pairs of clinical notes and gold codes generated from EHR-grounded templates and coding policies, then evaluate exact-code prediction for ICD-10-CM and CPT. A zero-shot baseline with the unadapted model achieved an F1 score of 0.18 for exact code match. After fine-tuning on the synthetic corpus, exact-match F1 exceeded 0.70, representing a large absolute gain across both code systems. Notably, performance remained high on complex categories that often require multi-step clinical reasoning and code composition, including Advanced Illness and Frailty classes, and the model retained its performance on medical comprehension tasks. These results indicate that synthetic, policy-aware data can efficiently teach a general-purpose large language model to support precise medical coding without exposing protected health information. The approach offers a practical path for training coding agents safely and iteratively on specific tasks that represent real-world populations.

URL PDF HTML 收藏
2603.12180 2026-03-23 cs.CL cs.AI

Strategic Navigation or Stochastic Search? How Agents and Humans Reason Over Document Collections

策略导航还是随机搜索?智能体和人类如何在文档集合上进行推理

Łukasz Borchmann, Jordy Van Landeghem, Michał Turski, Shreyansh Padarha, Ryan Othniel Kearns, Adam Mahdi, Niels Rogge, Clémentine Fourrier, Siwei Han, Huaxiu Yao, Artemis Llabrés, Yiming Xu, Dimosthenis Karatzas, Hao Zhang, Anupam Datta

机构 * Snowflake\,AI\,Research University\,of\,Oxford Computer\,Vision\,Center

AI总结 本文通过MADQA基准测试,探讨智能体与人类在文档检索中的策略性推理与随机搜索差异,揭示最佳智能体在准确性上接近人类,但依赖暴力搜索而非有效策略规划。

详情
AI中文摘要

多模态智能体为自动化复杂文档密集型工作流提供了有前途的路径。然而,一个关键问题仍然存在:这些智能体是否表现出真正的策略推理,还是仅仅随机的试错搜索?为此,我们引入MADQA基准,包含2,250个由人类撰写的基于800种异构PDF文档的问题。受经典测验理论指导,我们设计该基准以在不同智能体能力水平下最大化区分能力。为评估智能体行为,我们引入一种新的评估协议,测量准确性与努力的权衡。使用此框架,我们表明,尽管最佳智能体在原始准确性上可与人类搜索者相媲美,但它们在很大程度上解决了不同的问题,并依赖暴力搜索来弥补策略规划能力的不足。它们未能缩小接近20%的差距以达到理想性能,仍陷入无生产力的循环。我们发布了数据集和评估工具,以帮助从暴力检索转向校准、高效的推理。

英文摘要

Multimodal agents offer a promising path to automating complex document-intensive workflows. Yet, a critical question remains: do these agents demonstrate genuine strategic reasoning, or merely stochastic trial-and-error search? To address this, we introduce MADQA, a benchmark of 2,250 human-authored questions grounded in 800 heterogeneous PDF documents. Guided by Classical Test Theory, we design it to maximize discriminative power across varying levels of agentic abilities. To evaluate agentic behaviour, we introduce a novel evaluation protocol measuring the accuracy-effort trade-off. Using this framework, we show that while the best agents can match human searchers in raw accuracy, they succeed on largely different questions and rely on brute-force search to compensate for weak strategic planning. They fail to close the nearly 20% gap to oracle performance, persisting in unproductive loops. We release the dataset and evaluation harness to help facilitate the transition from brute-force retrieval to calibrated, efficient reasoning.

URL PDF HTML 收藏
2603.18620 2026-03-20 cs.CL cs.AI

Learning to Self-Evolve

学习自我进化

Xiaoyin Chen, Canwen Xu, Yite Wang, Boyi Liu, Zhewei Yao, Yuxiong He

机构 * Mila – Quebec AI Institute(魁北克AI研究院) University of Montreal(蒙特利尔大学) Snowflake(Snowflake公司)

AI总结 本文提出LSE框架,通过强化学习训练大语言模型在测试时自我改进上下文,实验显示其在文本到SQL生成和通用问答任务中优于其他方法。

详情
AI中文摘要

我们介绍了学习自我进化(LSE),一种强化学习框架,用于训练大语言模型(LLMs)在测试时改进其上下文。我们置于测试时自我进化场景中,其中模型通过反馈优化已见问题的上下文以更好地处理新问题。现有方法完全依赖模型的固有推理能力,从未显式训练其执行此任务。LSE将多步进化问题转化为单步强化学习目标,每个上下文编辑通过下游性能的改进获得奖励。我们将其与树引导的进化循环相结合。在文本到SQL生成(BIRD)和通用问答(MMLU-Redux)任务中,一个4B参数模型使用LSE训练后,优于由GPT-5和Claude Sonnet 4.5驱动的自我进化策略,以及包括GEPA和TextGrad在内的提示优化方法,并能指导其他模型而无需额外训练。我们的结果突显了将自我进化视为可学习技能的有效性。

英文摘要

We introduce Learning to Self-Evolve (LSE), a reinforcement learning framework that trains large language models (LLMs) to improve their own contexts at test time. We situate LSE in the setting of test-time self-evolution, where a model iteratively refines its context from feedback on seen problems to perform better on new ones. Existing approaches rely entirely on the inherent reasoning ability of the model and never explicitly train it for this task. LSE reduces the multi-step evolution problem to a single-step RL objective, where each context edit is rewarded by the improvement in downstream performance. We pair this objective with a tree-guided evolution loop. On Text-to-SQL generation (BIRD) and general question answering (MMLU-Redux), a 4B-parameter model trained with LSE outperforms self-evolving policies powered by GPT-5 and Claude Sonnet 4.5, as well as prompt optimization methods including GEPA and TextGrad, and transfers to guide other models without additional training. Our results highlight the effectiveness of treating self-evolution as a learnable skill.

URL PDF HTML 收藏
2602.24288 2026-03-02 cs.AI cs.CL

DARE-bench: Evaluating Modeling and Instruction Fidelity of LLMs in Data Science

DARE-bench: 评估LLMs在数据科学中的建模和指令忠实度

Fan Shu, Yite Wang, Ruofan Wu, Boyi Liu, Zhewei Yao, Yuxiong He, Feng Yan

机构 * University of Houston(德克萨斯大学休斯顿分校) Snowflake AI Research(Snowflake人工智能研究院)

AI总结 DARE-bench通过提供可验证的真实值任务和大规模训练数据,有效评估和提升LLMs在数据科学中的建模和指令忠实度。

Comments Published as a conference paper at ICLR 2026. 10 pages plus appendix

详情
AI中文摘要

随着使用大语言模型(LLMs)解决复杂多步骤数据科学任务的需求迅速增长,出现了对准确基准测试的迫切需求。现有基准测试存在两个主要缺口:(i)缺乏标准化、过程感知的评估,能够捕捉指令遵守和过程忠实度,以及(ii)准确标记的训练数据稀缺。为弥合这些缺口,我们引入了DARE-bench,一个用于机器学习建模和数据科学指令遵循的基准测试。与许多现有基准测试依赖于人类或模型评判不同,DARE-bench中的所有任务都有可验证的真实值,确保了客观且可重复的评估。为了覆盖广泛的任务并支持代理工具,DARE-bench包含6300个Kaggle衍生任务,并提供大规模训练数据和评估集。广泛评估显示,即使是非常强大的模型如gpt-o4-mini在机器学习建模任务中也难以取得良好表现。使用DARE-bench训练任务进行微调可以显著提高模型性能。例如,监督微调使Qwen3-32B的准确性提高了1.83倍,强化学习使Qwen3-4B的准确性提高了8倍以上。这些显著的改进验证了DARE-bench作为准确评估基准和关键训练数据的重要性。

英文摘要

The fast-growing demands in using Large Language Models (LLMs) to tackle complex multi-step data science tasks create an emergent need for accurate benchmarking. There are two major gaps in existing benchmarks: (i) the lack of standardized, process-aware evaluation that captures instruction adherence and process fidelity, and (ii) the scarcity of accurately labeled training data. To bridge these gaps, we introduce DARE-bench, a benchmark designed for machine learning modeling and data science instruction following. Unlike many existing benchmarks that rely on human- or model-based judges, all tasks in DARE-bench have verifiable ground truth, ensuring objective and reproducible evaluation. To cover a broad range of tasks and support agentic tools, DARE-bench consists of 6,300 Kaggle-derived tasks and provides both large-scale training data and evaluation sets. Extensive evaluations show that even highly capable models such as gpt-o4-mini struggle to achieve good performance, especially in machine learning modeling tasks. Using DARE-bench training tasks for fine-tuning can substantially improve model performance. For example, supervised fine-tuning boosts Qwen3-32B's accuracy by 1.83x and reinforcement learning boosts Qwen3-4B's accuracy by more than 8x. These significant improvements verify the importance of DARE-bench both as an accurate evaluation benchmark and critical training data.

URL PDF HTML 收藏
2602.16507 2026-02-19 cs.LG

Small molecule retrieval from tandem mass spectrometry: what are we optimizing for?

从串联质谱中检索小分子:我们正在优化什么?

Gaetan De Waele, Marek Wydmuch, Krzysztof Dembczyński, Wojciech Kotłowski, Willem Waegeman

机构 * Department of Data Analysis and Mathematical Modelling, Ghent University, Belgium(数据分析与数学建模系,根特大学,比利时) Snowflake AI Research(Snowflake人工智能研究) Poznan University of Technology(波兹南技术大学)

AI总结 本研究探讨了在串联质谱数据中检索小分子时,指纹相似性与分子检索之间的根本权衡,揭示了损失函数选择对模型性能的影响。

详情
AI中文摘要

在计算分析液相色谱-串联质谱(LC-MS/MS)数据时,一个核心挑战是识别输出光谱背后的化合物。近年来,这个问题越来越多地使用深度学习方法来解决。一种常见的策略是通过输入质谱预测分子指纹向量,然后在化学化合物数据库中搜索匹配项。尽管在训练这些预测模型时使用了各种损失函数,但它们对模型性能的影响仍不明确。在本研究中,我们调查了常用损失函数,推导出新的遗憾界限,以表征在这些目标下贝叶斯最优决策必须分歧的条件。我们的结果揭示了两个目标之间的根本权衡:(1)指纹相似性和(2)分子检索。为了更准确的指纹预测通常会恶化检索结果,反之亦然。我们的理论分析显示,这种权衡取决于候选集的相似性结构,为损失函数和指纹选择提供了指导。

英文摘要

One of the central challenges in the computational analysis of liquid chromatography-tandem mass spectrometry (LC-MS/MS) data is to identify the compounds underlying the output spectra. In recent years, this problem is increasingly tackled using deep learning methods. A common strategy involves predicting a molecular fingerprint vector from an input mass spectrum, which is then used to search for matches in a chemical compound database. While various loss functions are employed in training these predictive models, their impact on model performance remains poorly understood. In this study, we investigate commonly used loss functions, deriving novel regret bounds that characterize when Bayes-optimal decisions for these objectives must diverge. Our results reveal a fundamental trade-off between the two objectives of (1) fingerprint similarity and (2) molecular retrieval. Optimizing for more accurate fingerprint predictions typically worsens retrieval results, and vice versa. Our theoretical analysis shows this trade-off depends on the similarity structure of candidate sets, providing guidance for loss function and fingerprint selection.

URL PDF HTML 收藏