arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.23050cs.DBcs.AI
收藏

DBAutoDoc: 通过统计分析和迭代LLM细化实现未记录数据库模式的自动发现与文档化

DBAutoDoc: Automated Discovery and Documentation of Undocumented Database Schemas via Statistical Analysis and Iterative LLM Refinement

Tasio Labs (a Blue Cypress company)(Tasio实验室(Blue Cypress公司旗下))

Amith Nagarajan, Thomas Altman

AI总结:

DBAutoDoc通过统计分析与迭代LLM细化技术,自动发现并文档化未记录的关系数据库模式,其核心是通过图结构问题迭代解决,结合神经网络反向传播的结构,实现语义校正,最终在基准数据库上取得96.1%的综合评分。

摘要:

大量关键数据库系统缺乏充分的文档。声明性主键缺失,外键约束为性能而被删除,列名是晦涩的缩写,且不存在实体-关系图。我们提出了DBAutoDoc,一个通过结合统计数据分析与迭代大语言模型(LLM)细化来自动化发现和文档化未记录的关系数据库模式的系统。DBAutoDoc的核心见解是,模式理解本质上是一个迭代、图结构的问题。受神经网络反向传播的结构启发,DBAutoDoc通过模式依赖图在多个细化迭代中传播语义校正,直到描述收敛。这种传播是离散的语义而非数学的,但结构类比是精确的:早期迭代产生粗糙的描述,类似于随机初始化,而后续的迭代则通过上下文在图中流动而逐步完善全局图像。该系统在论文中详细阐述了四个具体贡献。在基准数据库上,DBAutoDoc使用复合指标在两个模型家族(Google的Gemini和Anthropic的Claude)中实现了总体加权评分96.1%。消融分析显示,确定性流程相比仅LLM的外键检测提升了23个F1分数,证实了该系统的贡献是显著且独立于LLM预训练知识的。DBAutoDoc作为开源软件发布,包含所有评估配置和提示模板以确保完全可重复性。

英文摘要:

A tremendous number of critical database systems lack adequate documentation. Declared primary keys are absent, foreign key constraints have been dropped for performance, column names are cryptic abbreviations, and no entity-relationship diagrams exist. We present DBAutoDoc, a system that automates the discovery and documentation of undocumented relational database schemas by combining statistical data analysis with iterative large language model (LLM) refinement. DBAutoDoc's central insight is that schema understanding is fundamentally an iterative, graph-structured problem. Drawing structural inspiration from backpropagation in neural networks, DBAutoDoc propagates semantic corrections through schema dependency graphs across multiple refinement iterations until descriptions converge. This propagation is discrete and semantic rather than mathematical, but the structural analogy is precise: early iterations produce rough descriptions akin to random initialization, and successive passes sharpen the global picture as context flows through the graph. The system makes four concrete contributions detailed in the paper. On a suite of benchmark databases, DBAutoDoc achieved overall weighted scores of 96.1% across two model families (Google's Gemini and Anthropic's Claude) using a composite metric. Ablation analysis demonstrates that the deterministic pipeline contributes a 23-point F1 improvement over LLM-only FK detection, confirming that the system's contribution is substantial and independent of LLM pre-training knowledge. DBAutoDoc is released as open-source software with all evaluation configurations and prompt templates included for full reproducibility.

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

↑