arXiv:2505.20321cs.CLcs.AI2025-05被引 8

首个面向生物医学知识库的科学推理型文本转SQL基准

BiomedSQL: Text-to-SQL for Scientific Reasoning on Biomedical Knowledge Bases

  • 构建基于真实生物医学数据库的问答-查询对数据集
  • 模型需推断基因显著性、效应方向等专业逻辑,准确率不足63%
  • 适合希望提升科学推理能力的AI研究者与医疗数据工程师

生物医学研究人员越来越多地依赖大规模结构化数据库进行复杂分析。然而,现有文本转SQL系统在将定性科学问题映射为可执行SQL时表现不佳,尤其当需要隐含领域推理时。本文提出BiomedSQL,首个专为评估生物医学知识库上科学推理能力而设计的基准。该数据集包含68,000个由模板生成且基于整合了基因-疾病关联、组学数据因果推断及药物审批记录的BigQuery数据库的真实问答-查询对。每个问题要求模型推断领域特定标准,如全基因组显著性阈值、效应方向或试验阶段筛选,而非仅依赖语法转换。我们在多种开闭源大模型上测试不同提示策略和交互范式。结果表明存在显著性能差距:Gemini-3-Pro在基线提示下达58.1%执行准确率,自研多步代理BMSQL达62.6%,均远低于专家基准90.0%。BiomedSQL为推动支持科学发现的强推理型文本转SQL系统提供新基础。数据集与代码已公开于https://datatecnica.github.io/biomedbench-suite/biomedsql。

原文摘要 · Abstract (English)

Biomedical researchers increasingly rely on large-scale structured databases for complex analytical tasks. However, current text-to-SQL systems often struggle to map qualitative scientific questions into executable SQL, particularly when implicit domain reasoning is required. We introduce BiomedSQL, the first benchmark explicitly designed to evaluate scientific reasoning in text-to-SQL generation over a real-world biomedical knowledge base. BiomedSQL comprises 68,000 question/SQL query/answer triples generated from templates and grounded in a harmonized BigQuery database that integrates gene-disease associations, causal inference from omics data, and drug approval records. Each question requires models to infer domain-specific criteria, such as genome-wide significance thresholds, effect directionality, or trial phase filtering, rather than rely on syntactic translation alone. We evaluate a range of open- and closed-source LLMs across prompting strategies and interaction paradigms. Our results reveal a substantial performance gap: Gemini-3-Pro achieves 58.1% execution accuracy under baseline prompting, while our custom multi-step agent, BMSQL, reaches 62.6%, both well below the expert baseline of 90.0%. BiomedSQL provides a new foundation for advancing text-to-SQL systems that support scientific discovery through robust reasoning over structured biomedical knowledge bases. The BiomedSQL benchmark and codebase are publicly available at https://datatecnica.github.io/biomedbench-suite/biomedsql.

文本转SQL科学推理生物医学大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。