arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.26394cs.CL
收藏

多轮文本到SQL的记忆架构:基准测试与实证研究

Memory Architectures for Multi-Turn Text-to-SQL: A Benchmark and Empirical Study

LLM Suite Engineering Team, JP Morgan Chase & Co.(JP摩根大通公司LLM套件工程团队)

Ravi Kumar Tummalapenta, Suman Addanki

AI总结:

针对多轮Text-to-SQL任务,提出EnterpriseMem-Bench基准并评估五种前沿模型,发现无状态方法在第三轮后执行准确率归零,且记忆架构复杂度并不单调提升准确率。

摘要:

多轮Text-to-SQL是企业分析的核心,但现有评估主要集中于单轮场景。我们引入EnterpriseMem-Bench,一个包含300个会话和1400轮的多轮Text-to-SQL基准,通过编程方式从三个企业领域(BIRD金融、SEC EDGAR、Northwind)构建,具有确定性真实标签和每轮记忆关键标注。我们在五种记忆条件下评估五个前沿模型——GPT-5 mini、GPT-5.2、Claude Sonnet 4.5、Sonnet 4.6和Opus 4.6,通过三路消融实验独立隔离工作记忆窗口大小、情景检索和语义增强的影响。所有Claude模型均启用扩展思考以保持与GPT推理模型的对等性。我们引入记忆收益分数(MBS)作为每轮诊断指标。四项发现如下:(1)无状态多轮Text-to-SQL在所有五个模型下,即使启用推理,到第三轮时执行准确率也降为零;(2)记忆架构复杂度并不单调提升准确率——工作记忆占主导,额外组件产生模型和数据集依赖的效果,变化范围从+14到-16个百分点;(3)Claude Sonnet 4.6在SEC EDGAR上各条件下表现比Sonnet 4.5差17-33个百分点,这是一个在推理下仍然存在的代际退化;(4)在推理下,Claude的错误分布变为单峰——每个非正确轮次都是错误结果。我们发布了基准、智能体和评估代码。

英文摘要:

Multi-turn Text-to-SQL is central to enterprise analytics yet remains predominantly evaluated in single-turn settings. We introduce EnterpriseMem-Bench, a multi-turn Text-to-SQL benchmark of 300 sessions and 1,400 turns built programmatically from three enterprise domains (BIRD financial, SEC EDGAR, Northwind), with deterministic ground truth and per-turn memory-critical annotation. We evaluate five frontier models -- GPT-5 mini, GPT-5.2, Claude Sonnet 4.5, Sonnet 4.6, and Opus 4.6 -- across five memory conditions enabling a three-way ablation isolating working-memory window size, episodic retrieval, and semantic augmentation as independent effects. All Claude models are evaluated with extended thinking enabled to maintain parity with GPT reasoning models. We introduce the Memory Benefit Score (MBS) as a per-turn diagnostic metric. Four findings emerge: (1) stateless multi-turn Text-to-SQL collapses to zero execution accuracy by Turn 3 across all five models, even under reasoning; (2) memory-architecture complexity does not monotonically improve accuracy -- working memory dominates, and additional components produce model- and dataset-dependent effects from +14 to -16 percentage points; (3) Claude Sonnet 4.6 underperforms Sonnet 4.5 by 17-33pp on SEC EDGAR across conditions, a generational regression persisting under reasoning; (4) under reasoning, Claude error distributions become mono-modal -- every non-correct turn is a wrong-result error. We release the benchmark, agent, and evaluation code.

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

↑