docs: Text2SQL/NL2SQL评估指标目录ADR - #40
Draft
Zhanghoks wants to merge 1 commit into
Draft
Conversation
- 新增 docs/design/2026-09-05-text2sql-evaluation-metrics-catalog-adr.md - 记录 Text2SQL 评估指标的权威定义目录(截至2026-08-28调研) - 涵盖结构匹配(EM/CM/PCM/ETM/TSED/FuncEvalGMN)、执行语义(Spider EX vs BIRD EX/Soft-F1/Test Suite Acc)、效率(VES/R-VES/VCES)、模块过程(NL2SQLBench CR/IR/ER/C2I)、形式化验证(FLEX/ROSE/SpotIt)、鲁棒性(QVT) - 明确哪些指标可用于自进化反馈(RL训练/测试时搜索)vs离线审计 - 映射到SqurveBridge score bundle keys(ex/sf1/rves/ves/em/cf1_*/error_root) - 关联 PR #39(四层分数包ADR)和 PR #38(UI L-strip ADR) - 仅文档变更,无运行时代码修改 Co-authored-by: zmjjkk <Zhanghoks@users.noreply.github.com>
This was referenced Sep 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要 / Summary
本PR添加了Text2SQL/NL2SQL评估指标权威目录的架构决策记录(ADR),为SqurveBridge的论文相关工作、工程实现和Demo四层映射提供可引用的指标定义。
动机 / Motivation
当前Text2SQL评估领域存在以下问题:
本PR内容 / What's Changed
新增文件:
docs/design/2026-09-05-text2sql-evaluation-metrics-catalog-adr.md涵盖指标分类:
结构匹配 / Structure Matching
cf1_*7组件)执行语义 / Execution Denotation
效率 / Efficiency
模块与过程 / Module & Process (NL2SQLBench)
形式化验证(离线审计) / Formal Verification (Offline Audit)
鲁棒性 / Robustness
自进化反馈分层 / Metrics as Feedback
五层模型:
关键指导:
SqurveBridge实现映射 / Implementation Mapping
Demo L-strip (PR #38/#39)
当前使用:
ex,sf1,emrves,vescf1_select,cf1_where,cf1_group,cf1_order,cf1_join,cf1_iuen,cf1_keywordserror_root*Phase 2待实现
cr/ir/er/c2i/i2c/e2c/schema_precision/schema_f1/pass@k备选方案 / Alternatives Considered
❌ 仅用String-EM: 假阴性率过高
❌ 仅用单一EX: gold SQL有错误;ROSE κ~25.56%证明EX不是绝对真值
❌ ROSE/SpotIt放Demo热路径: 成本/延迟不可接受;保持为离线审计
❌ 合成NL2SQLBench代理: 误导用户;宁可显示"—"
未决问题 / Open Questions
验证 / Verification
预期: 仅
docs/design/2026-09-05-text2sql-evaluation-metrics-catalog-adr.md新增。关联工作 / Related Work
docs/design/2026-08-12-multidim-eval-architecture.md(L1-L6层次)reproduce/eval/registry/builtin/,demo/api_server.py,reproduce/eval/bundle/schema.py检查清单 / Checklist
docs/design/ADR约定参考文献 / References (15篇主要论文)
Yu et al. Spider EMNLP 2018 • Hazoom et al. arXiv:2106.05006 • Ascoli et al. arXiv:2407.07313 • Song et al. ICSE-SEIP 2024 • Zhan et al. COLING 2025 • Zhong, Yu, Klein EMNLP 2020 • StatBot.Swiss ACL Findings 2024 • BIRD官方 • EuroMLSys 2026 • Hou et al. NL2SQLBench PVLDB 2026 • Kim et al. FLEX NAACL 2025 • Pei et al. ROSE ACL 2026 • SpotIt ICLR 2026 • Zhao et al. arXiv:2312.10321 • Li et al. NL2SQL360 PVLDB 2024