arXiv:2609.11141cs.CLSep 2026

Manuscript Offprint

arXiv:2609.11141

Can LLMs Normalize Databases? A Benchmark and Multi-Agent Framework for Schema Normalization

Dong-Jae Koh, Huisu Kim, SeongHwan Yoon, Lasse M. Jantsch, Chun-Hee Lee, Seonghyeon Lee, Young-Kyoon Suh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large Language Models (LLMs) are increasingly used to generate structured outputs, but their reliability remains unclear when those outputs must satisfy database-level constraints. We study this issue through database normalization, involving reasoning about functional dependencies, lossless join decompositions, and inter-table constraints. We introduce a Database Normalization Benchmark (DNBENCH), comprising 3,275 samples for evaluating LLM-driven database normalization from 1NF to BCNF. DNBENCH uses a three-axis protocol to measure semantic equivalence, structural accuracy, and logical validity. Across Single, Complex, and Real World levels, DNBENCH uncovers recurring failures in dependency inference, schema decomposition, and inter-table constraint reconstruction. We further propose Multi-Agent Reasoning for Schemas (MARS), which separates evidence extraction, violation diagnosis, and decomposition planning from schema generation and verification. MARS improves the DNB-SCORE by 82.0% over the single-prompt baseline. All artifacts will be released upon acceptance.

1 Introduction

Large language models (LLMs) (Brown et al., 2020) have been explored for structured-data reasoning and database-related tasks. These tasks require outputs that satisfy formal constraints. In this context, LLMs' ability to follow natural-language instructions, reason over tabular data, and generate structured outputs makes them a promising approach for automating database workflows.

Normalizing databases using LLMs highlights this challenge because it requires both reasoning over dependencies and generating schemas that satisfy formal relational constraints. Database normalization is a foundational technique in relational data management (Banks et al., 1970), reducing redundancy, preventing update anomalies, and enhancing schema management by organizing data according to functional dependencies (FD). When a database schema is not properly normalized, it introduces data inconsistency, unnecessary query costs, and degraded data quality (Kent, 2000). Moreover, normalization is difficult to automate because it requires reasoning over functional dependencies, candidate keys, lossless-join decompositions, and dependency preservation (Codd, 1971).

Despite this importance, existing studies provide limited evidence for whether LLMs can handle database normalization. NormTab (Nahid and Rafiei, 2024) and TABARD (Choudhury et al., 2025) address normalization-related issues in table-cleaning or anomaly-detection settings, rather than schema normalization itself. Miffie (Jo et al., 2025) targets 1NF-3NF normalization with an LLM generator-verifier loop, but its verification lacks explicit schema-level checks for properties such as lossless join, key validity, dependency reasoning, and foreign-key connectivity. Consequently, the reliability of LLM-based database normalization remains insufficiently understood.

To address these concerns, we introduce a comprehensive Database Normalization Benchmark (DNBENCH) for evaluating end-to-end LLM-driven database normalization. DNBENCH provides 3,275 denormalization samples from realistic relational schemas, covering 1NF-to-BCNF violations with gold labels and decomposition targets. DNBENCH further proposes a three-axis evaluation protocol that measures semantic equivalence, structural accuracy, and logical validity, combining them into a unified DNB-Score to be presented in Section 3. We further design Multi-Agent Reasoning for Schemas (MARS), a framework that decomposes the normalization process into several subtasks and distributes them across multiple LLM agents that collaborate to perform normalization.

∗^{*} Equal Contributions

†^{\dagger} Corresponding author

MethodLLM BasedNormalizationEvaluationBenchmark Provided
1NF2NF3NFBCNFComplexSchemaExpl.
RDBNorma (2011)✕✕✓✓✕✕✕✕✕
EDNA (2013)✕✕✓✓✓✕✕✕✕
NormTab (2024)✓✓✕✕✕✕✕✕✕
TABARD (2025)✓✕✕✕✕✕✓✕✓
Miffie (Dual-LLM SR) (2025)✓✓✓✓✕✕✓✕✕
DNBENCH (ours)✓✓✓✓✓✓✓✓✓

Table 1: Comparison of DNBENCH with related work methods. Normalization groups 1NF to BCNF support and Complex (multi-violation) handling. Evaluation groups schema and explanation level scoring.

Our experiments characterize the current state of automatic database normalization using LLMs. Our DNBENCH enables quantification of the quality of generated DDLs on real-world databases. Also, we empirically demonstrate that our MARS approach produces, on average, 82.0%82.0\% more reliable DDLs while preserving inter-table constraints compared to naive prompting. Our contributions are as follows:

  • We introduce DNBENCH, a 3,275-sample benchmark for evaluating LLM-based database normalization, covering 1NF-to-BCNF violations.

  • We propose a three-axis evaluation protocol that assesses semantic equivalence, structural accuracy, and logical validity of generated schemas.

  • We benchmark modern LLMs on DNBENCH and identify major failure patterns, including unreliable FD inference, invalid decomposition, and weak inter-table constraint reconstruction.

  • We propose MARS, a multi-agent normalization framework that improves DNB-SCORE by 82.0%82.0\% over the baseline.