Can LLMs Normalize Databases? A Benchmark and Multi-Agent Framework for Schema Normalization
Summary
This paper presents a benchmark (DNBench) for evaluating LLMs in database normalization tasks and introduces a multi-agent reasoning framework (MARS) that improves accuracy by 82% over single-prompt methods.
View Cached Full Text
Cached at: 09/11/26, 08:24 AM
# Can LLMs Normalize Databases?A Benchmark and Multi-Agent Framework for Schema Normalization
Source: [https://arxiv.org/html/2609.11141](https://arxiv.org/html/2609.11141)
Dong\-Jae Koh\*Huisu Kim\*SeongHwan Yoon\*Affiliation:Lasse M\. JantschChun\-Hee LeeSeonghyeon LeeYoung\-Kyoon Suh†Affiliation:School of Computer Science and Engineering, Kyungpook National University, South KoreaAffiliation:\{djkoh, kimisu0712, shyoon0214,lassejantsch, chunhee, sh0416, yksuh\}@knu\.ac\.kr
###### Abstract
Large Language Models \(LLMs\) are increasingly used to generate structured outputs, but their reliability remains unclear when those outputs must satisfydatabase\-levelconstraints\. We study this issue through database normalization, involving reasoning about functional dependencies, lossless join decompositions, and inter\-table constraints\. We introduce a*Database NormalizationBenchmark*\(DNBench\), comprising3,275samples for evaluatingLLM\-drivendatabase normalization from 1NF to BCNF\.DNBenchuses a three\-axis protocol to measure*semantic equivalence*,*structural accuracy*, and*logical validity*\. Across*Single*,*Complex*, and*Real World*levels,DNBenchuncovers recurring failures in dependency inference, schema decomposition, and inter\-table constraint reconstruction\. We further propose*Multi\-AgentReasoning for Schemas*\(MARS\), which separates evidence extraction, violation diagnosis, and decomposition planning from schema generation and verification\. MARS improves theDNB\-Scoreby82\.0%82\.0\\%over the single\-prompt baseline\. All artifacts will be released upon acceptance\.
††footnotetext:\*Equal Contributions††footnotetext:†Corresponding author## 1Introduction
Large language models \(LLMs\)[Brown et al\. \(2020\)](https://arxiv.org/html/2609.11141#bib.bib14)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 follownatural\-languageinstructions, reason over tabular data, and generate structured outputs makes them a promising approach for automating databaseworkflows\.
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 inrelationaldata management[Banks et al\. \(1970\)](https://arxiv.org/html/2609.11141#bib.bib9), reducing redundancy, preventing update anomalies, andenhancingschema 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\)](https://arxiv.org/html/2609.11141#bib.bib15)\. Moreover, normalization is difficult to automate because it requires reasoning over functional dependencies, candidate keys, lossless\-join decompositions, and dependency preservation[Codd \(1971\)](https://arxiv.org/html/2609.11141#bib.bib25)\.
Despite this importance, existing studiesprovidelimited evidence for whether LLMs can handle database normalization\. NormTab[Nahid and Rafiei \(2024\)](https://arxiv.org/html/2609.11141#bib.bib7)and TABARD[Choudhury et al\. \(2025\)](https://arxiv.org/html/2609.11141#bib.bib1)address normalization\-related issues intable\-cleaningor anomaly\-detection settings, rather than schema normalization itself\. Miffie[Jo et al\. \(2025\)](https://arxiv.org/html/2609.11141#bib.bib6)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\.
Table 1:Comparison ofDNBench
with related work methods\.Normalizationgroups 1NF to BCNF support and Complex \(multi\-violation\) handling\.Evaluationgroups schema and explanation level scoring\.To address these concerns, we introduce a comprehensive*Database Normalization Benchmark*\(DNBench\) for evaluatingend\-to\-endLLM\-drivendatabase normalization\.DNBenchprovides 3,275 denormalization samples from realistic relational schemas, covering 1NF\-to\-BCNF violations with gold labels and decomposition targets\.DNBenchfurther 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](https://arxiv.org/html/2609.11141#S3)\. We further design*Multi\-AgentReasoning 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\.
Our experiments characterize the current state of automatic database normalization using LLMs\. OurDNBenchenables 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:
- ∙\\bulletWe introduceDNBench, a 3,275\-sample benchmark for evaluating LLM\-based database normalization, covering 1NF\-to\-BCNF violations\.
- ∙\\bulletWe propose a three\-axis evaluation protocol that assesses semantic equivalence, structural accuracy, and logical validity of generated schemas\.
- ∙\\bulletWe benchmark modern LLMs onDNBenchand identify major failure patterns, including unreliable FD inference, invalid decomposition, and weak inter\-table constraint reconstruction\.
- ∙\\bulletWe propose MARS, a multi\-agent normalization framework that improvesDNB\-Scoreby82\.0%82\.0\\%over the baseline\.
Figure 1:Overview of the database normalization benchmark \(DNBench
\) pipeline\.DNBench
generates controlled denormalized schemas with gold violation labels and decompositions, then evaluates LLM\-generated DDL, violation types, and explanations along semantic, structural, and logical axes\.
## 2Related Work
Table[1](https://arxiv.org/html/2609.11141#S1.T1)positionsDNBenchrelative to prior normalization tools and LLM\-based methods\. Existing work falls into two broad categories:*traditional tools*that assist users in applying normalization rules and*LLM\-based systems*that address relatedtable\-cleaningor limited normalization tasks\. However, neither category provides a comprehensive benchmark for evaluating whether LLMs canreliablyperform Database normalization\.DNBenchfills this gap with a comprehensive normalization benchmark and a multi\-faceted evaluation protocol\.
### 2\.1Traditional Normalization Tools
Traditional normalization tools are primarilyrule\-basedor semi\-automatic systems designed for user\-assistance purposes\. While useful for automating normalization procedures, they are not designed as benchmarks; they typically cover only limited settings and lack quantitative metrics to measure normalization quality\.
[Dongare et al\. \(2011\)](https://arxiv.org/html/2609.11141#bib.bib4)introduces RDBNorma, a semi\-automated tool for normalizing schemas up to 3NF\. RDBNorma represents schemas and functional dependencies using linked lists and checks generated outputs against expected decompositions\. However, its evaluation focuses mainly on runtime and memory efficiency rather than on semantic preservation, lossless decomposition, key validity, or violation diagnosis\.
[Levandoski et al\. \(2013\)](https://arxiv.org/html/2609.11141#bib.bib5)presents EDNA, asemi\-automatedtool that supports normalization up to BCNF given user\-specified functional dependencies\. EDNA generates rule\-based normalized schemas from FDs, but it does not provide a quantitative protocol for evaluating normalization or robustness across diverse schemas andcomplexviolations\.
### 2\.2LLM\-based Normalization
Recent work has begun to explore the use of LLMs for table and schema normalization\. However, existing approaches either target different objectives or evaluate narrower forms of normalization\.
[Nahid and Rafiei \(2024\)](https://arxiv.org/html/2609.11141#bib.bib7)propose NormTab, an LLM\-based framework for normalizinghuman\-readableweb tables, such as Wikipediatables\.NormTab performs value\-level and structural cleaning, but its goal is to improve downstream SQL\-based question answering and fact verification\. It is therefore closer to table preprocessing rather than database normalization: it does not evaluate whether LLMs can reason over functional dependencies, preserve lossless decompositions, or construct valid normalized schemas\.
TABARD\([Choudhury et al\., 2025](https://arxiv.org/html/2609.11141#bib.bib1)\)evaluates LLMs on anomaly detection in tabular data, where models identify anomalous cells under different prompting strategies\. Although relevant to tabular reasoning, TABARD does not target normal\-form violations or schema decomposition\. As a result, TABARD does not address whether an LLM can diagnose dependency violations or produce a structurally valid decomposition\.
Most relevant to our work, Miffie\([Jo et al\., 2025](https://arxiv.org/html/2609.11141#bib.bib6)\)proposes a Dual\-LLM self\-refinement framework for 1NF\-to\-3NF normalization\. Miffie uses one LLM to generate decompositions and another to provide feedback on remaining violations\.However, its verifier is also LLM\-based and does not include explicit schema\-level checks for lossless join, key validity, or foreign\-keyconnectivity\.In contrast,DNBenchcombines LLM\-basedsemanticjudgment with explicit structural and logical checks to measure whether decompositions aresemanticallyequivalent, structurally accurate, and logically valid\.
## 3Database Normalization Benchmark
Figure[1](https://arxiv.org/html/2609.11141#S1.F1)shows the proposed database normalization benchmark \(DNBench\)\.DNBenchtransformsreal\-worldrelational databases into controlled denormalized samples annotated with gold violation labels and gold decomposition targets\. Given each sample, an LLM generates normalized data definition language \(DDL\), violation labels, and explanations\.DNBenchevaluates these outputs along semantic, structural, and logical axes\.
DNBench
consists of two components: \(i\) a denormalization pipeline that constructs controlled normal\-form violations from real\-world relational schemas, and \(ii\) a three\-axis evaluation protocol that measures semantic equivalence, structural accuracy, and logical validity\. These three scores are combined into a unifiedDNB\-Scoreto summarize overall normalization quality\.
### 3\.1Dataset Construction
We constructDNBenchusing twoText\-to\-SQLcorpora\. Spider[Yu et al\. \(2018\)](https://arxiv.org/html/2609.11141#bib.bib3)and BIRD[Li et al\. \(2023\)](https://arxiv.org/html/2609.11141#bib.bib8)provide realistic relational schemas with primary\-key \(PK\) and foreign\-key \(FK\) annotations\. These schemas serve as sources for controlled denormalization:DNBenchinjects and labels normal\-form violations into existing relational designs while preserving key constraints\. After construction, three database experts audited the generated samples and confirmed that the intended 1NF\-to\-BCNF violation patterns, chain\-rule labels, and gold decompositions were correctly represented\. Table[2](https://arxiv.org/html/2609.11141#S3.T2)summarizes the source DBs and the resultingDNBenchdataset\. Our dataset preserves realistic schema structure while introducing controlled normal\-form violations and gold decomposition targets\.
Table 2:Descriptive statistics for the source Spider and BIRD datasets and the resultingDNBench
dataset\.We construct the dataset through a three\-stage denormalization pipeline: \(1\) FK\-aware subsampling, \(2\) hybrid discovery–synthetic violation injection, and \(3\) chain\-rule labeling\.
##### Stage 1: Foreign Key\-awareSubsampling\.
We first downsample each source database while preserving FK constraints\. The sampling procedure traverses the FK graph from leaf tables upward, samples up tonntuples from each source table, and expands the selected key sets through FK and self\-FK closures\. It then applies a global size cap and removes remaining FK violations through cascade cleanup\. This produces compact database instances that remain referentially valid\. Full details and the complete algorithm are provided in Appendix[A\.3](https://arxiv.org/html/2609.11141#A1.SS3)\.
##### Stage 2: Discovery and Synthesis ofViolations\.
For each source schema, we identify normal\-form violation patterns: multivalued cells for 1NF, partial dependencies for 2NF, transitive dependencies for 3NF, and non\-superkey determinants for BCNF\.
Because real schemas often contain entangled rather than isolated violations, discovery alone is insufficient for controlled evaluation\. We therefore complement it with deterministic synthesizers for 2NF, 3NF, and BCNF\. These synthesizers incur violations through PK splitting,transitive\-dependencyinjection, and candidate\-key augmentation, respectively\. We compose synthesized violations in reverse chain\-rule order—BCNF, 3NF, 2NF, and 1NF—so that lower\-form injections do not erase previously introduced higher\-form violations\. This construction yields composite samples in which all intended violations remain observable\.
##### Stage 3: Chain\-rule Labeling\.
Each sample includes two gold decomposition targets: a*single*target resolving only the earliest violation and a*combined*target resolving the full violation chain\.
The composite synthesizers in Stage 2 ensure that fixing a lower\-form violation does not automatically remove higher\-form violations\. Thus, each violation must be handled explicitly, making the*combined*target distinct from the*single*target\. This enablesDNBenchto test whether a model fixes only the earliest violation or normalizes the full violation chain\. Each sample also includes an expected FK list, allowing FK correctness to be scored without re\-parsing generated DDL\.
### 3\.2Three\-Axis Evaluation Protocol
We evaluate each LLM prediction along threecomplementaryaxes:*semantic equivalence*,*structural accuracy*, and*logical validity*\. These axes capture whether a generated decomposition preserves the original data, matches the expected schema structure, and provides correct normalization reasoning\. We aggregate the three axes into a unifiedDNB\-Score\. The full prompts for both the LLM generator and the LLM\-as\-a\-Judge are provided in Appendix[H](https://arxiv.org/html/2609.11141#A8)\.
##### Criterion 1\. Semantic Evaluation
The semantic axis tests whether the generated decomposition satisfies the lossless\-join property with respect to the original table\. Specifically, the natural join of the generated relations must reconstruct the input table without introducing spurious tuples\. We report this check as a binary score\. Since a lossless join is a necessary condition for valid normalization, the semantic score acts as a gate inDNB\-Score: any semantic failure reduces the final score to zero\.
##### Criterion 2\. Structural Evaluation
The structural axis measures how closely the generated DDL matches the gold decomposition\. We parse theLLM\-generatedDDL into relational schema objects and compute three metrics:
- ∙\\bulletColumn F1: F1 between the generated and gold column sets\.
- ∙\\bulletPrimary Key F1: F1 between the generated and gold primary\-key sets\.
- ∙\\bulletForeign Key Score: The product of FK matching and FK validity: - ∘\\circFK F1: F1 between the generated and gold foreign\-key sets\. - ∘\\circFK Connected Score: A binary indicator of whether generated FK constraints validly referenceextanttablesand columns\.
The final structural score is the mean of Column F1, Primary Key F1, and Foreign Key Score\.
##### Criterion 3\. Logical Evaluation
The logical axis evaluates whether the model correctly diagnoses the normalization problem and justifies its decomposition\. It combines two components: \(i\) an LLM\-as\-a\-Judge score for the generated schema and explanation, and \(ii\) Violation F1 for the predicted normal\-form violation labels\.
The judge LLM rates each prediction along three dimensions:
- ∙\\bulletLogical Coherence: whether the generated decomposition is consistent with the intended normalization logic and gold DDL\.
- ∙\\bulletExplanation of Schema Alignment: whether the explanation is internally consistent with the generated DDL and declared violation labels\.
- ∙\\bulletExplanation Quality: whether the explanation uses normalization concepts correctly and presents the reasoning clearly and concisely\.
We useopenai/gpt\-oss\-20b[Agarwal et al\. \(2025\)](https://arxiv.org/html/2609.11141#bib.bib21)as the judge model\. We select this model because the Judge’s Verdict benchmark identifies it as a human\-like judge, showing strong agreement with human annotators without exceeding the natural range of human judgment variation\([Han et al\., 2025](https://arxiv.org/html/2609.11141#bib.bib22)\)\. This choice is suitable for evaluating normalization explanations, where excessive consistency may overlook valid judgment nuances\. We further validate the judge on our task through an expert\-agreement study; details are provided in the Appendix[E](https://arxiv.org/html/2609.11141#A5)\.
Violation F1compares the violation labels predicted by the model against the gold violation labels\. For each input table, we compute F1 over violation types, measuring whether the model correctly identifies which violations are present\.
The final score is the mean of the average judge score across three dimensions and Violation F1\.
##### DNB\-Score\.
We aggregate the three axes as:
DNB\-Score=Semantic×Structural×Logical\.\\text\{\{\\scalebox\{0\.92\}\[1\.0\]\{\\mbox\{\{\{DNB\-Score\}\}\}\}\}\}=\\text\{Semantic\}\\times\\sqrt\{\\text\{Structural\}\\times\\text\{Logical\}\}\.
Inspired by BLEU\([Papineni et al\., 2002](https://arxiv.org/html/2609.11141#bib.bib24)\),DNB\-Scoreuses the geometric mean of the structural and logical scores when the semantic score is11\. This aggregation rewards schemas that satisfy both complementary criteria, preserves the original score scale, and penalizes imbalance more strongly than an arithmetic mean\.
## 4Database Normalization Analysis
We evaluate LLMs’ database normalization capability using our benchmark dataset and evaluation protocol\. Our experiments are designed to measure two core capabilities required for database normalization: \(i\) identifying and reasoning over functional dependencies \(FDs\), and \(ii\) resolving multiple co\-occurring violations in the same schema\.
### 4\.1Experimental Setup
We use theDNBenchtest split generated by the pipeline in Section[3\.1](https://arxiv.org/html/2609.11141#S3.SS1), as summarized in Table[2](https://arxiv.org/html/2609.11141#S3.T2)\. Each sample contains a denormalized input table, row samples, gold violation labels, gold decompositions, and expected schema constraints\. We test four representative LLMs spanning dense and sparse mixture\-of\-experts \(MoE\) architectures across different scales\. Each setting is evaluated under both zero\-shot and few\-shot prompting, yielding six configurations\. More details on models and prompts are provided in Appendices[B](https://arxiv.org/html/2609.11141#A2)and[H](https://arxiv.org/html/2609.11141#A8)\.
We design three experimental settings for a comprehensive evaluation under different normalization scopes and FD availability \(Table[3](https://arxiv.org/html/2609.11141#S4.T3)\)\.
Table 3:Distinctions among the three experiments\.#### Experiment 1: Single Reasoning
Experiment 1 tests whether a model can resolve the earliest violated normal form given explicit FD evidence\. Although an input may contain a chain of violations, the model is asked to fix only the first violation: for example, 1NF in a 1NF–2NF–3NF–BCNF chain, or 2NF in a 2NF–3NF–BCNF chain\. This setting isolates the model’s ability to apply a single normalization rule\.
#### Experiment 2: Complex Reasoning
Experiment 2 extends the task to the full violation chain while still providing explicit FD evidence\. The model must identify all relevant violations and produce a valid multi\-step decomposition\. This setting evaluates whether the model can handle interactions among multiple normalization rules\.
#### Experiment 3: Real World Reasoning
Experiment 3 removes explicit FDs and requires the model to infer them from context\. The input includes a table, row samples, and natural\-language business rules, but it withholds formal FD annotations\. The model must infer latent FDs, identify the full set of violations, and generate a normalized schema\. This setting reflects practical normalization scenarios in which dependency information is not directly provided\.
Table 4:AverageDNB\-Score
\(↑\\uparrow\) on theDNBench
test split by model and evaluation settings; bold and†\\daggermark the best and second\-best scores in each column\.Table 5:Per\-modelDNB\-Score
component breakdown, averaged over theDNBench
test split and all six configurations\.Boldindicates the best score per column, and†\\daggerthe second\-best\.
### 4\.2Baseline Result and Analysis
DNBench
identifies two valuable findings when using an LLM to normalize relational databases\.
##### Findings 1\. FD extraction is the main bottleneck inLLM\-baseddatabase normalization\.
Our results validate that all four models degrade most sharply in the*Real World*setting, where FDs are not explicitly provided \(Table[4](https://arxiv.org/html/2609.11141#S4.T4)\)\. Averaged across models,DNB\-Scoredrops modestly from0\.3280\.328in*Single*to0\.2850\.285in*Complex*, but declines more sharply to0\.1880\.188in*Real World*\. This pattern indicates that, once FDs are given, models can apply normalization rules to some extent\. The harder problem is inferring reliable FDs from data samples and natural\-language business rules\.
##### Findings 2\. LLMs perform better at violation detection than at schema reconstruction\.
Table[5](https://arxiv.org/html/2609.11141#S4.T5)separates violation diagnosis from schema generation\. Violation F1 reaches up to0\.6780\.678, indicating that models can often identify which normal forms are violated\. However, structural performance remains much lower, especially for inter\-table constraints: FK Score ranges only from0\.100\.10to0\.170\.17across the four models\. Thus, the central challenge is not merely recognizing that a decomposition is needed but producing a normalized schema with a valid PK and FK structure\. In other words, LLMs are stronger at local violation diagnosis than at global schema reconstruction\.
Furthermore, our in\-depth per\-violation analysis shows that most models commonly struggle with multiple violations, BCNF reasoning, and already\-normalized inputs, even though performance varies across violation paths \(Table[D](https://arxiv.org/html/2609.11141#A4)in the Appendix\)\. The NONE cases are particularly revealing, as models sometimes introduce unnecessary decompositions even when no normalization is required\.
Overall, current LLMs face three main challenges in database normalization: \(i\) unreliable FD inference in realistic settings, \(ii\) weak reconstruction of valid inter\-table constraints, and \(iii\) a tendency to over\-normalize already valid schemas\. These findings motivate a structured normalization framework that separates reasoning stages and incorporates explicit verification\.
Figure 2:Overview of MARS framework—*Evidence*,*Diagnosis*,*Schema Generator*, and*Verifier*agents—together with the repair loop triggered by verification failures\.
## 5Multi\-Agent Reasoning for Schemas
The baseline analysis shows that LLM\-based normalization often fails because several distinct reasoning steps are compressed into a single prompt\. A model must infer FDs, diagnose normal\-form violations, plan decompositions, and generate SQL DDL in one pass\. Errors from earlier steps can propagate directly to the final schema without intermediate correction\.
Multi\-agent LLM frameworks address this issue by decomposing complex tasks across role\-specialized agents that exchange and verify intermediate outputs\. AutoGen[Wu et al\. \(2023\)](https://arxiv.org/html/2609.11141#bib.bib19)provides general infrastructure for orchestrating conversational agents, while MetaGPT[Hong et al\. \(2023\)](https://arxiv.org/html/2609.11141#bib.bib20)and ChatDev[Qian et al\. \(2024\)](https://arxiv.org/html/2609.11141#bib.bib2)demonstrate the effectiveness of role\-based agent pipelines\. Motivated by these findings, we adapt role specialization and verifier feedback to database normalization, where each step must satisfy dependency, foreign\-key, and lossless\-join requirements\.
### 5\.1MARS Framework
We propose Multi\-Agent Reasoning for Schemas \(MARS\), which decomposes LLM\-based database normalization into four stages: \(i\)*evidence extraction*, \(ii\)*violation diagnosis and decomposition planning*, \(iii\)*schema generation*, and \(iv\)*deterministic verification*\(Figure[2](https://arxiv.org/html/2609.11141#S4.F2)\)\.
##### Evidence Agent\.
The Evidence Agent extracts functional\-dependency \(FD\) evidence from the input schema, row samples, and optional FD annotations\. It treats provided FDs as direct evidence or infers candidate FDs from data, then classifies them as reliable, hypothetical, or rejected fordownstreamagents\.
##### Diagnosis Agent\.
The Diagnosis Agent identifies violated normal forms and the FDs responsible for those violations, prioritizing reliable FDs over hypothetical ones\. It then builds a stepwise decomposition plan that specifies the key dependencies, decomposition order, and target relations\.
##### Schema Generator Agent\.
The Schema Generator Agent emits SQL DDL for the planned decomposition, specifying normalized tables, primary keys \(PKs\), and foreign key \(FK\) constraints based on the diagnosed violations and FD evidence\.
##### Verifier Agent\.
The Verifier agent parses the generated SQL DDL and checks whether the proposed schema satisfies key normalization requirements\. It verifies column preservation, PK and FK validity, relation\-level normal\-form satisfaction, lossless join, and correct handling of 1NF violations involving multivalued attributes\.
##### Repair\.
When verification fails, MARS performs targeted repair for up to two rounds\. DDL construction errors return only to the Schema Generator Agent\. For decomposition\-strategy errors, such as selecting an incorrect violation target or failing lossless\-join verification, MARS re\-executes the Diagnosis Agent before schema regeneration\. When FK\-related errors occur, MARS invokes the Evidence Agent to review proposed FK references before regeneration\.
Table 6:Component\-level performance breakdown for the Real World setting\.DNB\-Score
and all component scores are computed per test sample and averaged over theDNBench
dataset\. All methods use Qwen3\-30B as the backbone LLM\.Boldmarks the maximum per column among reported scores, and†\\daggermarks the second\-best\.
### 5\.2Experiment Settings
Table[6](https://arxiv.org/html/2609.11141#S5.T6)evaluates all methods under the*Real World*setting from Table[4](https://arxiv.org/html/2609.11141#S4.T4)\. We focus on this setting because it best reflects practical database normalization: the model must infer FDs from schema context and business rules, rather than relying on explicitly provided FDs\. Among the four base LLMs in Table[4](https://arxiv.org/html/2609.11141#S4.T4),Qwen3\-30Bachieves the highest averageDNB\-Scorein the Real World setting\. We therefore use Qwen3\-30B as the backbone for all methods in Table[6](https://arxiv.org/html/2609.11141#S5.T6), ensuring that performance differences reflect the normalization framework rather than the underlying LLMs\.
TheBaselineis the single\-prompt Qwen3\-30B configuration from Table[4](https://arxiv.org/html/2609.11141#S4.T4)under the Real World setting\. It asks one model to infer latent FDs, diagnose violations, generate normalized SQL DDL, and explain the decomposition in a single response\.
Miffieis the Dual\-LLM self\-refinement framework proposed by[Jo et al\. \(2025\)](https://arxiv.org/html/2609.11141#bib.bib6)\. Following the original setup, we run up to three refinementiterations\.Although Miffie was designed for1NF–3NFnormalization, we evaluate it on the fullDNBenchReal World setting, including BCNF cases, as an LLM\-based refinement baseline\. Implementation details are provided in Appendix[F](https://arxiv.org/html/2609.11141#A6)\.
MARSis our role\-specialized framework described in Section[5](https://arxiv.org/html/2609.11141#S5)\. It performs one initial generation followed by up to two repair rounds, yielding at most three generation attempts\. This matches the maximum number of Miffie refinement iterations\.
### 5\.3Experiment Results
MARS achieves the strongest Real World performance\.Table[6](https://arxiv.org/html/2609.11141#S5.T6)reports that MARS achieves the highestDNB\-Scorein bothzero\-shotandfew\-shotsettings\. Compared with thesingle\-promptBaseline, MARS improvesDNB\-Scorefrom0\.2530\.253to0\.4230\.423in zero\-shot and from0\.2090\.209to0\.4180\.418in few\-shot\. Although Miffie also improves over the Baseline, it remains below MARS, showing that role\-specialized normalization is more effective than single\-prompt andself\-refinementapproaches\.
Miffie improves local schema consistency but weakens diagnosis\.Miffie improves lossless\-join performance and obtains high Column F1 and PK F1\. This suggests that iterative refinement helps preserve local schema elements\. However, its Violation F1 drops sharply, and its FK Score remains low\. Repeated refinement alone fails to maintain both the normalization diagnosis and inter\-table constraints\. Table[12](https://arxiv.org/html/2609.11141#A7.T12)in Appendix[G\.1](https://arxiv.org/html/2609.11141#A7.SS1)further shows that Miffie’s LLM\-based verifier struggles to distinguish high\-quality normalized schemas from low\-quality ones underDNBench\.
MARS improves the generation of valid normalized DDL\.MARS gains are concentrated in the semantic and structural components\. It substantially improves lossless join over the Baseline and achieves the highest FK Score among the compared methods\. By contrast, Violation F1 remains close to the Baseline, indicating that MARS does not substantially improve violation classification itself\. TheDNB\-Scoreimprovement, therefore, mainly stems from better information preservation and a more robust schema structure\. Despite these gains, FKreconstructionremains the weakeststructuralcomponent: FK Score stays far below Column F1 and PK F1, showing that validinter\-tableconstraintsare harder to recover than local table\-level structure\.
Stage\-wise artifacts reveal where MARS succeeds and fails\.We further inspect intermediate artifacts from each MARS stage\. Table[14](https://arxiv.org/html/2609.11141#A7.T14)inAppendix[G\.2](https://arxiv.org/html/2609.11141#A7.SS2)shows that schema generation artifacts align more reliably with the diagnosis plan than evidence extraction and violation diagnosis align with the gold references\. Thus, MARS is most effective once a plausible diagnosis plan is available and converted into executable SQL DDL\. Upstream FD inference and violation diagnosis remain the main bottlenecks\. Their errors can complicate later key selection and FK reconstruction\.
## 6Conclusion
We introducedDNBench, a comprehensive benchmark for assessing LLM\-driven database normalization using controlled denormalization data and a three\-axis protocol that measures semantic, structural, and logical validity\. We empirically verify that LLMs often identify violations but struggle to generateinformation\-preservingschemas with validinter\-tableconstraints, especially when functional dependencies must beinferred\.
We addressed the identified weaknesses using a multi\-agent framework \(MARS\) that separates functional dependency evidence extraction, violation diagnosis, decomposition planning, schema generation, and verification\. MARS outperforms single\-prompt andself\-refinementbaselines, demonstrating the importance of decomposing the database normalization process\. We believe thatDNBenchand MARS will, in concert, provide a systematic basis forLLM\-drivendatabase normalization, facilitating future research onmulti\-agentapproaches to database schema design\.
## Limitations
Although MARS substantially improvesDNB\-Scoreover the single\-prompt baseline, three limitations remain\.
##### FK reconstruction remains a bottleneck\.
Even with role specialization and verifier\-based repair, MARS’s FK Score still falls well short of Column F1 and PK F1\. This shows that preserving local table\-level information is easier than reconstructing the reference structure across decomposed relations\. FK reconstruction requires consistent relation boundaries, key choices, and reference targets, and upstream FD or diagnosis errors can further complicate this process\. Recovering valid inter\-table constraints after decomposition, therefore, remains an open problem\.
##### BCNF reasoning and recognizingalready\-normalizedschemas remain unresolved\.
Results by violation type in Appendix Table[7](https://arxiv.org/html/2609.11141#A4.T7)show that the framework continues to struggle with BCNF\-only inputs, which require candidate\-key reasoning over non\-superkey determinants\. Although NONE inputs are easier than violation cases, they still reveal unnecessary decomposition errors\. Both cases reveal limitations that are not addressed by intermediate validation alone and require stronger semantic reasoning about key structure\.
##### MARS requires a higher inference budget and remains sensitive to upstream errors\.
Unlike the single\-prompt baseline, MARS uses multiple LLM calls for evidence extraction, violation diagnosis, schema generation, and repair\. The performance gains should therefore be interpreted together with this additional inference cost\. Moreover, verifier\-based repair is most effective for local synthesis errors, such as missing columns or invalid constraints\. Still, it cannot always recover from incorrect FD evidence or an incorrect decomposition plan\. Future work should explore adaptive agent routing and stronger evidence extraction to reduce unnecessary calls while improving robustness\.
## References
- O\. S\. Agarwal, L\. Ahmad, J\. Ai, S\. Altman, A\. Applebaum, E\. Arbus, R\. K\. Arora, Y\. Bai, B\. Baker, H\. Bao, B\. Barak, A\. Bennett, T\. Bertao, N\. A\. Brett, E\. Brevdo, G\. Brockman, S\. Bubeck, C\. Chang, K\. Chen, M\. Chen, E\. Cheung, A\. Clark, D\. Cook, M\. Dukhan, C\. Dvorak, K\. Fives, V\. Fomenko, T\. Garipov, K\. Georgiev, M\. Glaese, T\. Gogineni, A\. B\. Goucher, L\. Gross, K\. G\. Guzman, J\. Hallman, J\. Hehir, J\. Heidecke, A\. Helyar, H\. Hu, R\. Huet, J\. Huh, S\. Jain, Z\. Johnson, C\. Koch, I\. Kofman, D\. Kundel, J\. Kwon, V\. Kyrylov, E\. Y\. Le, G\. Leclerc, J\. Lennon, S\. Lessans, M\. Lezcano\-Casado, Y\. Li, Z\. Li, J\. Lin, J\. Liss, L\. Liu, J\. Liu, K\. Lu, C\. Lu, Z\. N\. Martinovic, L\. McCallum, J\. McGrath, S\. McKinney, A\. McLaughlin, S\. Mei, S\. Mostovoy, T\. Mu, G\. Myles, A\. Neitz, A\. Nichol, J\. W\. Pachocki, A\. Paino, D\. Palmie, A\. Pantuliano, G\. Parascandolo, J\. Park, L\. Pathak, C\. Paz, L\. Peran, D\. Pimenov, M\. Pokrass, E\. Proehl, H\. Qiu, G\. Raila, F\. Raso, H\. Ren, K\. Richardson, D\. Robinson, B\. Rotsted, H\. Salman, S\. Sanjeev, M\. Schwarzer, D\. Sculley, H\. S\. Sikchi, K\. Simon, K\. Singhal, Y\. Song, D\. Stuckey, Z\. Sun, P\. Tillet, S\. Toizer, F\. Tsimpourlas, N\. Vyas, E\. Wallace, X\. Wang, M\. Wang, O\. Watkins, K\. Weil, A\. E\. Wendling, K\. Whinnery, C\. Whitney, H\. Wong, L\. Yang, Y\. Yang, M\. Yasunaga, K\. Ying, W\. Zaremba, W\. Zhan, C\. Zhang, B\. H\. Zhang, E\. Zhang, and S\. ZhaoGpt\-oss\-120b&gpt\-oss\-20b model card\.External Links:[Link](https://api.semanticscholar.org/CorpusID:280671456)Cited by:[§3\.2](https://arxiv.org/html/2609.11141#S3.SS2.SSS0.Px3.p3.1)\.
- Bankset al\.\(1970\)Banks, F\. E\., and CoddA Relational Model of Data for Large Shared Data Banks\.Communications of the ACM13,pp\. 377 – 387\.External Links:[Link](https://api.semanticscholar.org/CorpusID:43456054)Cited by:[§1](https://arxiv.org/html/2609.11141#S1.p2.1)\.
- Brownet al\.\(2020\)T\. B\. Brown, B\. Mann, N\. Ryder, M\. Subbiah, J\. Kaplan, P\. Dhariwal, A\. Neelakantan, P\. Shyam, G\. Sastry, A\. Askell, S\. Agarwal, A\. Herbert\-Voss, G\. Krueger, T\. Henighan, R\. Child, A\. Ramesh, D\. M\. Ziegler, J\. Wu, C\. Winter, C\. Hesse, M\. Chen, E\. Sigler, M\. Litwin, S\. Gray, B\. Chess, J\. Clark, C\. Berner, S\. McCandlish, A\. Radford, I\. Sutskever, and D\. AmodeiLanguage models are few\-shot learners\.ArXivabs/2005\.14165\.External Links:[Link](https://api.semanticscholar.org/CorpusID:218971783)Cited by:[§1](https://arxiv.org/html/2609.11141#S1.p1.1)\.
- Choudhuryet al\.\(2025\)M\. R\. Choudhury, A\. I\. K\. N\. Iyengar, S\. Siingh, S\. Puranam, and V\. GuptaTABARD: a novel benchmark for tabular anomaly analysis, reasoning and detection\.InFindings of the Association for Computational Linguistics: EMNLP 2025,C\. Christodoulopoulos, T\. Chakraborty, C\. Rose, and V\. Peng \(Eds\.\),Suzhou, China,pp\. 21783–21817\.External Links:[Link](https://aclanthology.org/2025.findings-emnlp.1189/),[Document](https://dx.doi.org/10.18653/v1/2025.findings-emnlp.1189),ISBN 979\-8\-89176\-335\-7Cited by:[Table 1](https://arxiv.org/html/2609.11141#S1.T1.2.6.1),[§1](https://arxiv.org/html/2609.11141#S1.p3.1),[§2\.2](https://arxiv.org/html/2609.11141#S2.SS2.p3.1)\.
- Codd \(1971\)E\. F\. CoddFurther normalization of the data base relational model\.Research Report / RJ / IBM / San Jose, CaliforniaRJ909\.External Links:[Link](https://api.semanticscholar.org/CorpusID:45071523)Cited by:[§1](https://arxiv.org/html/2609.11141#S1.p2.1)\.
- Cohen \(1968\)J\. CohenWeighted kappa: nominal scale agreement provision for scaled disagreement or partial credit\.\.Psychological Bulletin70,pp\. 213–220\.External Links:[Link](https://api.semanticscholar.org/CorpusID:29694079)Cited by:[Appendix E](https://arxiv.org/html/2609.11141#A5.SS0.SSS0.Px1.p1.1)\.
- Dongareet al\.\(2011\)Y\. V\. Dongare, P\. S\. Dhabe, and S\. V\. DeshmukhRDBNorma: \- a semi\-automated tool for relational database schema normalization up to third normal form\.ArXivabs/1103\.0633\.External Links:[Link](https://api.semanticscholar.org/CorpusID:6468461)Cited by:[Table 1](https://arxiv.org/html/2609.11141#S1.T1.2.3.1),[§2\.1](https://arxiv.org/html/2609.11141#S2.SS1.p2.1)\.
- Dubeyet al\.\(2024\)A\. Dubey, A\. Jauhri, A\. Pandey, A\. Kadian, A\. Al\-Dahle, A\. Letman, A\. Mathur, A\. Schelten, A\. Yang, A\. Fan, A\. Goyal, A\. S\. Hartshorn, A\. Yang, A\. Mitra, A\. Sravankumar, A\. Korenev, A\. Hinsvark, A\. Rao, A\. Zhang, A\. Rodriguez, A\. Gregerson, A\. Spataru, B\. Rozière, B\. M\. Biron, B\. Tang, B\. Chern, C\. Caucheteux, C\. Nayak, C\. Bi, C\. Marra, C\. McConnell, C\. Keller, C\. Touret, C\. Wu, C\. Wong, C\. C\. Ferrer, C\. Nikolaidis, D\. Allonsius, D\. J\. Song, D\. Pintz, D\. Livshits, D\. Esiobu, D\. Choudhary, D\. Mahajan, D\. Garcia\-Olano, D\. Perino, D\. Hupkes, E\. Lakomkin, E\. A\. AlBadawy, E\. I\. Lobanova, E\. Dinan, E\. M\. Smith, F\. Radenovic, F\. Zhang, G\. Synnaeve, G\. Lee, G\. L\. Anderson, G\. Nail, G\. Mialon, G\. Pang, G\. Cucurell, H\. Nguyen, H\. Korevaar, H\. Xu, H\. Touvron, I\. Zarov, I\. A\. Ibarra, I\. M\. Kloumann, I\. Misra, I\. Evtimov, J\. Copet, J\. Lee, J\. Geffert, J\. Vranes, J\. Park, J\. Mahadeokar, J\. Shah, J\. van der Linde, J\. Billock, J\. Hong, J\. Lee, J\. Fu, J\. Chi, J\. Huang, J\. Liu, J\. Wang, J\. Yu, J\. Bitton, J\. Spisak, J\. Park, J\. Rocca, J\. Johnstun, J\. Saxe, J\. Jia, K\. V\. Alwala, K\. Upasani, K\. Plawiak, K\. Li, K\. Heafield, K\. R\. Stone, K\. El\-Arini, K\. Iyer, K\. Malik, K\. Chiu, K\. Bhalla, L\. Rantala\-Yeary, L\. van der Maaten, L\. Chen, L\. Tan, L\. Jenkins, L\. Martin, L\. Madaan, L\. Malo, L\. Blecher, L\. Landzaat, L\. de Oliveira, M\. Muzzi, M\. Pasupuleti, M\. Singh, M\. Paluri, M\. Kardas, M\. Oldham, M\. Rita, M\. Pavlova, M\. H\. M\. Kambadur, M\. Lewis, M\. Si, M\. K\. Singh, M\. Hassan, N\. Goyal, N\. Torabi, N\. Bashlykov, N\. Bogoychev, N\. S\. Chatterji, O\. Duchenne, O\. cCelebi, P\. Alrassy, P\. Zhang, P\. Li, P\. Vasić, P\. Weng, P\. Bhargava, P\. Dubal, P\. Krishnan, P\. S\. Koura, P\. Xu, Q\. He, Q\. Dong, R\. Srinivasan, R\. Ganapathy, R\. Calderer, R\. S\. Cabral, R\. Stojnic, R\. Raileanu, R\. Girdhar, R\. Patel, R\. Sauvestre, R\. Polidoro, R\. Sumbaly, R\. Taylor, R\. Silva, R\. Hou, R\. Wang, S\. Hosseini, S\. Chennabasappa, S\. Singh, S\. Bell, S\. S\. Kim, S\. Edunov, S\. Nie, S\. Narang, S\. C\. Raparthy, S\. Shen, S\. Wan, S\. Bhosale, S\. Zhang, S\. Vandenhende, S\. Batra, S\. Whitman, S\. Sootla, S\. Collot, S\. Gururangan, S\. Borodinsky, T\. Herman, T\. Fowler, T\. Sheasha, T\. Georgiou, T\. Scialom, T\. Speckbacher, T\. Mihaylov, T\. Xiao, U\. Karn, V\. Goswami, V\. Gupta, V\. Ramanathan, V\. Kerkez, V\. Gonguet, V\. Do, V\. Vogeti, V\. Petrovic, W\. Chu, W\. Xiong, W\. Fu, W\. Meers, X\. Martinet, X\. Wang, X\. E\. Tan, X\. Xie, X\. Jia, X\. Wang, Y\. Goldschlag, Y\. Gaur, Y\. Babaei, Y\. Wen, Y\. Song, Y\. Zhang, Y\. Li, Y\. Mao, Z\. D\. Coudert, Z\. Yan, Z\. Chen, Z\. Papakipos, A\. K\. Singh, A\. Grattafiori, A\. Jain, A\. Kelsey, A\. Shajnfeld, A\. Gangidi, A\. Victoria, A\. Goldstand, A\. Menon, A\. Sharma, A\. Boesenberg, A\. Vaughan, A\. Baevski, A\. Feinstein, A\. Kallet, A\. Sangani, A\. Yunus, A\. Lupu, A\. Alvarado, A\. Caples, A\. Gu, A\. Ho, A\. Poulton, A\. Ryan, A\. Ramchandani, A\. Franco, A\. Saraf, A\. Chowdhury, A\. Gabriel, A\. Bharambe, A\. Eisenman, A\. Yazdan, B\. James, B\. Maurer, B\. Leonhardi, P\. \(\. Huang, B\. Loyd, B\. de Paola, B\. Paranjape, B\. Liu, B\. Wu, B\. Ni, B\. Hancock, B\. Wasti, B\. Spence, B\. Stojkovic, B\. Gamido, B\. Montalvo, C\. Parker, C\. Burton, C\. Mejia, C\. Wang, C\. Kim, C\. Zhou, C\. Hu, C\. Chu, C\. Cai, C\. Tindal, C\. Feichtenhofer, D\. Civin, D\. Beaty, D\. Kreymer, S\. Li, D\. Wyatt, D\. Adkins, D\. Xu, D\. Testuggine, D\. David, D\. Parikh, D\. Liskovich, D\. Foss, D\. Wang, D\. Le, D\. Holland, E\. Dowling, E\. Jamil, E\. Montgomery, E\. Presani, E\. Hahn, E\. Wood, E\. Brinkman, E\. Arcaute, E\. Dunbar, E\. Smothers, F\. Sun, F\. Kreuk, F\. Tian, F\. Ozgenel, F\. Caggioni, F\. \(\. Guzmán, F\. J\. Kanayet, F\. Seide, G\. M\. Florez, G\. Schwarz, G\. Badeer, G\. Swee, G\. Halpern, G\. Thattai, G\. Herman, G\. Sizov, G\. Zhang, G\. Lakshminarayanan, H\. Shojanazeri, H\. Zou, H\. Wang, H\. Zha, H\. Habeeb, H\. Rudolph, H\. Suk, H\. Aspegren, H\. Goldman, I\. Molybog, I\. Tufanov, I\. Veliche, I\. Gat, J\. Weissman, J\. Geboski, J\. Kohli, J\. Asher, J\. Gaya, J\. Marcus, J\. Tang, J\. Chan, J\. Zhen, J\. Reizenstein, J\. Teboul, J\. Zhong, J\. Jin, J\. Yang, J\. Cummings, J\. Carvill, J\. Shepard, J\. McPhie, J\. Torres, J\. Ginsburg, J\. Wang, K\. Wu, U\. KamHou, K\. Saxena, K\. Prasad, K\. Khandelwal, K\. Zand, K\. Matosich, K\. Veeraraghavan, K\. Michelena, K\. Li, K\. Huang, K\. Chawla, K\. Lakhotia, K\. Huang, L\. Chen, L\. Garg, A\. Lavender, L\. Silva, L\. Bell, L\. Zhang, L\. Guo, L\. Yu, L\. Moshkovich, L\. Wehrstedt, M\. Khabsa, M\. Avalani, M\. Bhatt, M\. Tsimpoukelli, M\. Mankus, M\. Hasson, M\. Lennie, M\. Reso, M\. Groshev, M\. Naumov, M\. Lathi, M\. Keneally, M\. L\. Seltzer, M\. Valko, M\. Restrepo, M\. Patel, M\. Vyatskov, M\. Samvelyan, M\. Clark, M\. Macey, M\. Wang, M\. J\. Hermoso, M\. Metanat, M\. Rastegari, M\. Bansal, N\. Santhanam, N\. Parks, N\. White, N\. Bawa, N\. Singhal, N\. Egebo, N\. Usunier, N\. P\. Laptev, N\. Dong, N\. Zhang, N\. Cheng, O\. Chernoguz, O\. Hart, O\. Salpekar, O\. Kalinli, P\. Kent, P\. Parekh, P\. Saab, P\. Balaji, P\. Rittner, P\. Bontrager, P\. Roux, P\. Dollár, P\. Zvyagina, P\. Ratanchandani, P\. Yuvraj, Q\. Liang, R\. Alao, R\. Rodriguez, R\. Ayub, R\. Murthy, R\. Nayani, R\. Mitra, R\. Li, R\. Hogan, R\. Battey, R\. Wang, R\. Maheswari, R\. Howes, R\. Rinott, S\. J\. Bondu, S\. Datta, S\. Chugh, S\. Hunt, S\. Dhillon, S\. Yu\. Sidorov, S\. Pan, S\. Verma, S\. Yamamoto, S\. Ramaswamy, S\. Lindsay, S\. Feng, S\. Lin, S\. Zha, S\. Shankar, S\. Zhang, S\. Wang, S\. Agarwal, S\. Sajuyigbe, S\. Chintala, S\. Max, S\. Chen, S\. Kehoe, S\. Satterfield, S\. Govindaprasad, S\. K\. Gupta, S\. Cho, S\. Virk, S\. Subramanian, S\. Choudhury, S\. Goldman, T\. Remez, T\. Glaser, T\. Best, T\. Kohler, T\. Robinson, T\. Li, T\. Zhang, T\. Matthews, T\. Chou, T\. Shaked, V\. Vontimitta, V\. O\. Ajayi, V\. Montanez, V\. Mohan, V\. Kumar, V\. Mangla, V\. Ionescu, V\. A\. Poenaru, V\. T\. Mihailescu, V\. Ivanov, W\. Li, W\. Wang, W\. Jiang, W\. Bouaziz, W\. Constable, X\. Tang, X\. Wang, X\. Wu, X\. Wang, X\. Xia, X\. Wu, X\. Gao, Y\. Chen, Y\. Hu, Y\. Jia, Y\. Qi, Y\. Li, Y\. Zhang, Y\. Zhang, Y\. Adi, Y\. Nam, Y\. Wang, Y\. Hao, Y\. Qian, Y\. He, Z\. Rait, Z\. DeVito, Z\. Rosnbrick, Z\. Wen, Z\. Yang, and Z\. ZhaoThe llama 3 herd of models\.External Links:[Link](https://api.semanticscholar.org/CorpusID:271571434)Cited by:[1st item](https://arxiv.org/html/2609.11141#A2.I1.i1.p1.1)\.
- Efron and Tibshirani \(1995\)B\. Efron and R\. TibshiraniAn introduction to the bootstrap\.External Links:[Link](https://api.semanticscholar.org/CorpusID:123398593)Cited by:[Appendix E](https://arxiv.org/html/2609.11141#A5.SS0.SSS0.Px4.p1.1)\.
- Hanet al\.\(2023\)Unsloth StudioExternal Links:[Link](https://github.com/unslothai/unsloth)Cited by:[Appendix B](https://arxiv.org/html/2609.11141#A2.SS0.SSS0.Px1.p1.1)\.
- Hanet al\.\(2025\)S\. Han, G\. T\. Junior, T\. Balough, and W\. ZhouJudge’s verdict: a comprehensive analysis of llm judge capability through human agreement\.External Links:2510\.09738,[Link](https://arxiv.org/abs/2510.09738)Cited by:[§3\.2](https://arxiv.org/html/2609.11141#S3.SS2.SSS0.Px3.p3.1)\.
- Honget al\.\(2023\)S\. Hong, X\. Zheng, J\. P\. Chen, Y\. Cheng, C\. Zhang, Z\. Wang, S\. K\. S\. Yau, Z\. H\. Lin, L\. Zhou, C\. Ran, L\. Xiao, and C\. WuMetaGPT: meta programming for multi\-agent collaborative framework\.ArXivabs/2308\.00352\.External Links:[Link](https://api.semanticscholar.org/CorpusID:260351380)Cited by:[§5](https://arxiv.org/html/2609.11141#S5.p2.1)\.
- Jianget al\.\(2024\)A\. Q\. Jiang, A\. Sablayrolles, A\. Roux, A\. Mensch, B\. Savary, C\. Bamford, D\. S\. Chaplot, D\. de Las Casas, E\. B\. Hanna, F\. Bressand, G\. Lengyel, G\. Bour, G\. Lample, L\. R\. Lavaud, L\. Saulnier, M\. Lachaux, P\. Stock, S\. Subramanian, S\. Yang, S\. Antoniak, T\. L\. Scao, T\. Gervet, T\. Lavril, T\. Wang, T\. Lacroix, and W\. E\. SayedMixtral of experts\.ArXivabs/2401\.04088\.External Links:[Link](https://api.semanticscholar.org/CorpusID:266844877)Cited by:[4th item](https://arxiv.org/html/2609.11141#A2.I1.i4.p1.1)\.
- Joet al\.\(2025\)E\. Jo, N\. Lee, and G\. KimDatabase normalization via dual\-llm self\-refinement\.ArXivabs/2508\.17693\.External Links:[Link](https://api.semanticscholar.org/CorpusID:280711349)Cited by:[Appendix F](https://arxiv.org/html/2609.11141#A6.p1.1),[Table 1](https://arxiv.org/html/2609.11141#S1.T1.2.7.1),[§1](https://arxiv.org/html/2609.11141#S1.p3.1),[§2\.2](https://arxiv.org/html/2609.11141#S2.SS2.p4.1),[§5\.2](https://arxiv.org/html/2609.11141#S5.SS2.p3.1)\.
- Kamathet al\.\(2025\)G\. T\. A\. Kamath, J\. Ferret, S\. Pathak, N\. Vieillard, R\. Merhej, S\. Perrin, T\. Matejovicova, A\. Ram’e, M\. Rivière, L\. Rouillard, T\. Mesnard, G\. Cideron, J\. Grill, S\. Ramos, E\. Yvinec, M\. Casbon, E\. Pot, I\. Penchev, G\. Liu, F\. Visin, K\. Kenealy, L\. Beyer, X\. Zhai, A\. Tsitsulin, R\. I\. Busa\-Fekete, A\. Feng, N\. Sachdeva, B\. Coleman, Y\. Gao, B\. Mustafa, I\. Barr, E\. Parisotto, D\. Tian, M\. Eyal, C\. Cherry, J\. Peter, D\. Sinopalnikov, S\. Bhupatiraju, R\. Agarwal, M\. Kazemi, D\. Malkin, R\. Kumar, D\. Vilar, I\. Brusilovsky, J\. Luo, A\. Steiner, A\. Friesen, A\. Sharma, A\. Sharma, A\. M\. Gilady, A\. Goedeckemeyer, A\. Saade, A\. Kolesnikov, A\. Bendebury, A\. Abdagic, A\. Vadi, A\. Gyorgy, A\. S\. Pinto, A\. Das, A\. Bapna, A\. Miech, A\. Yang, A\. Paterson, A\. Shenoy, A\. Chakrabarti, B\. Piot, B\. Wu, B\. Shahriari, B\. Petrini, C\. Chen, C\. L\. Lan, C\. A\. Choquette\-Choo, C\. Carey, C\. Brick, D\. Deutsch, D\. Eisenbud, D\. Cattle, D\. Z\. Cheng, D\. Paparas, D\. S\. Sreepathihalli, D\. Reid, D\. Tran, D\. Zelle, E\. Noland, E\. Huizenga, E\. Kharitonov, F\. Liu, G\. Amirkhanyan, G\. Cameron, H\. Hashemi, H\. Klimczak\-Pluci’nska, H\. Singh, H\. Mehta, H\. T\. Lehri, H\. Hazimeh, I\. Ballantyne, I\. Szpektor, I\. Nardini, J\. Pouget\-Abadie, J\. Chan, J\. Stanton, J\. M\. Wieting, J\. Lai, J\. Orbay, J\. Fernandez, J\. Newlan, J\. Ji, J\. Singh, K\. Black, K\. Yu, K\. Hui, K\. Vodrahalli, K\. Greff, L\. Qiu, M\. Valentine, M\. Coelho, M\. Ritter, M\. Hoffman, M\. Watson, M\. Chaturvedi, M\. Moynihan, M\. Ma, N\. Babar, N\. Noy, N\. Byrd, N\. Roy, N\. Momchev, N\. Chauhan, O\. Bunyan, P\. Botarda, P\. Caron, P\. K\. Rubenstein, P\. Culliton, P\. Schmid, P\. G\. Sessa, P\. Xu, P\. Stańczyk, P\. D\. Tafti, R\. Shivanna, R\. Wu, R\. Pan, R\. A\. Rokni, R\. Willoughby, R\. Vallu, R\. Mullins, S\. Jerome, S\. Smoot, S\. Girgin, S\. Iqbal, S\. Reddy, S\. Sheth, S\. Põder, S\. Bhatnagar, S\. R\. Panyam, S\. Eiger, S\. Zhang, T\. Liu, T\. Yacovone, T\. Liechty, U\. Kalra, U\. Evci, V\. Misra, V\. Roseberry, V\. Feinberg, V\. Kolesnikov, W\. Han, W\. Kwon, X\. Chen, Y\. Chow, Y\. Zhu, Z\. Wei, Z\. Egyed, V\. Cotruta, M\. Giang, P\. Kirk, A\. Rao, J\. Lo, E\. Moreira, L\. G\. Martins, O\. Sanseviero, L\. Gonzalez, Z\. Gleicher, T\. Warkentin, V\. S\. Mirrokni, E\. Senter, E\. Collins, J\. Barral, Z\. Ghahramani, R\. Hadsell, Y\. Matias, D\. Sculley, S\. Petrov, N\. Fiedel, N\. Shazeer, O\. Vinyals, J\. Dean, D\. Hassabis, K\. Kavukcuoglu, C\. Farabet, E\. Buchatskaya, J\. Alayrac, R\. Anil, D\. Lepikhin, S\. Borgeaud, O\. Bachem, A\. Joulin, A\. Andreev, C\. Hardin, R\. Dadashi, and L\. HussenotGemma 3 technical report\.ArXivabs/2503\.19786\.External Links:[Link](https://api.semanticscholar.org/CorpusID:277313563)Cited by:[2nd item](https://arxiv.org/html/2609.11141#A2.I1.i2.p1.1)\.
- Kent \(2000\)W\. KentA Simple Guide to Five Normal Forms in Relational Database Theory\.External Links:[Link](https://api.semanticscholar.org/CorpusID:9195704)Cited by:[§1](https://arxiv.org/html/2609.11141#S1.p2.1)\.
- Krippendorff \(2011\)K\. KrippendorffComputing krippendorff’s alpha\-reliability\.External Links:[Link](https://api.semanticscholar.org/CorpusID:59901023)Cited by:[Appendix E](https://arxiv.org/html/2609.11141#A5.SS0.SSS0.Px2.p1.1)\.
- Levandoskiet al\.\(2013\)J\. J\. Levandoski, D\. B\. Lomet, and S\. SenguptaEDNA, a Software Tool for Verifying the Normalisation of Relations during the Logical Database Design Process\.In12th International Workshop on the Teaching, Learning and Assessment of Databases \(TLDR\),pp\. 51–61\.Cited by:[Table 1](https://arxiv.org/html/2609.11141#S1.T1.2.4.1),[§2\.1](https://arxiv.org/html/2609.11141#S2.SS1.p3.1)\.
- Liet al\.\(2023\)J\. Li, B\. Hui, G\. Qu, B\. Li, J\. Yang, B\. Li, B\. Wang, B\. Qin, R\. Cao, R\. Geng, N\. Huo, C\. Ma, K\. C\. Chang, F\. Huang, R\. Cheng, and Y\. LiCan LLM Already Serve as A Database Interface? A BIg Bench for Large\-Scale Database Grounded Text\-to\-SQLs\.ArXivabs/2305\.03111\.External Links:[Link](https://api.semanticscholar.org/CorpusID:258547040)Cited by:[§A\.1](https://arxiv.org/html/2609.11141#A1.SS1.SSS0.Px2.p1.1),[§3\.1](https://arxiv.org/html/2609.11141#S3.SS1.p1.1)\.
- Nahid and Rafiei \(2024\)M\. M\. H\. Nahid and D\. RafieiNormTab: improving symbolic reasoning in llms through tabular data normalization\.ArXivabs/2406\.17961\.External Links:[Link](https://api.semanticscholar.org/CorpusID:270738165)Cited by:[Table 1](https://arxiv.org/html/2609.11141#S1.T1.2.5.1),[§1](https://arxiv.org/html/2609.11141#S1.p3.1),[§2\.2](https://arxiv.org/html/2609.11141#S2.SS2.p2.1)\.
- Papineniet al\.\(2002\)K\. Papineni, S\. Roukos, T\. Ward, and W\. ZhuBleu: a method for automatic evaluation of machine translation\.InAnnual Meeting of the Association for Computational Linguistics,External Links:[Link](https://api.semanticscholar.org/CorpusID:11080756)Cited by:[§3\.2](https://arxiv.org/html/2609.11141#S3.SS2.SSS0.Px4.p2.1)\.
- Qianet al\.\(2024\)C\. Qian, W\. Liu, H\. Liu, N\. Chen, Y\. Dang, J\. Li, C\. Yang, W\. Chen, Y\. Su, X\. Cong, J\. Xu, D\. Li, Z\. Liu, and M\. SunChatDev: communicative agents for software development\.InProceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),L\. Ku, A\. Martins, and V\. Srikumar \(Eds\.\),Bangkok, Thailand,pp\. 15174–15186\.External Links:[Link](https://aclanthology.org/2024.acl-long.810/),[Document](https://dx.doi.org/10.18653/v1/2024.acl-long.810)Cited by:[§5](https://arxiv.org/html/2609.11141#S5.p2.1)\.
- Wuet al\.\(2023\)Q\. Wu, G\. Bansal, J\. Zhang, Y\. Wu, B\. Li, E\. \(\. Zhu, L\. Jiang, X\. Zhang, S\. Zhang, J\. Liu, A\. H\. Awadallah, R\. W\. White, D\. Burger, and C\. WangAutoGen: enabling next\-gen llm applications via multi\-agent conversation\.External Links:[Link](https://api.semanticscholar.org/CorpusID:263611068)Cited by:[§5](https://arxiv.org/html/2609.11141#S5.p2.1)\.
- Yanget al\.\(2025\)A\. Yang, A\. Li, B\. Yang, B\. Zhang, B\. Hui, B\. Zheng, B\. Yu, C\. Gao, C\. Huang, C\. Lv, C\. Zheng, D\. Liu, F\. Zhou, F\. Huang, F\. Hu, H\. Ge, H\. Wei, H\. Lin, J\. Tang, J\. Yang, J\. Tu, J\. Zhang, J\. Yang, J\. Yang, J\. Zhou, J\. Zhou, J\. Lin, K\. Dang, K\. Bao, K\. Yang, L\. Yu, L\. Deng, M\. Li, M\. Xue, M\. Li, P\. Zhang, P\. Wang, Q\. Zhu, R\. Men, R\. Gao, S\. Liu, S\. Luo, T\. Li, T\. Tang, W\. Yin, X\. Ren, X\. Wang, X\. Zhang, X\. Ren, Y\. Fan, Y\. Su, Y\. Zhang, Y\. Zhang, Y\. Wan, Y\. Liu, Z\. Wang, Z\. Cui, Z\. Zhang, Z\. Zhou, and Z\. QiuQwen3 technical report\.External Links:[Link](https://api.semanticscholar.org/CorpusID:278602855)Cited by:[3rd item](https://arxiv.org/html/2609.11141#A2.I1.i3.p1.1)\.
- Yuet al\.\(2018\)T\. Yu, R\. Zhang, K\. Yang, M\. Yasunaga, D\. Wang, Z\. Li, J\. Ma, I\. Li, Q\. Yao, S\. Roman, Z\. Zhang, and D\. RadevSpider: a large\-scale human\-labeled dataset for complex and cross\-domain semantic parsing and text\-to\-SQL task\.InProceedings of the 2018 Conference on Empirical Methods in Natural Language Processing,E\. Riloff, D\. Chiang, J\. Hockenmaier, and J\. Tsujii \(Eds\.\),Brussels, Belgium,pp\. 3911–3921\.External Links:[Link](https://aclanthology.org/D18-1425/),[Document](https://dx.doi.org/10.18653/v1/D18-1425)Cited by:[§A\.1](https://arxiv.org/html/2609.11141#A1.SS1.SSS0.Px1.p1.1),[§3\.1](https://arxiv.org/html/2609.11141#S3.SS1.p1.1)\.
## Appendix ADataset Details
This appendix expands on the dataset construction in Section[3\.1](https://arxiv.org/html/2609.11141#S3.SS1)\. We describe the Spider and BIRD source datasets, explain why they are suitable source schemas for controlled denormalization, and summarize the expert validation of the generated DNB samples\.
### A\.1Source Datasets
##### Spider\.
Spider[Yu et al\. \(2018\)](https://arxiv.org/html/2609.11141#bib.bib3)is a large\-scale cross\-domain Text\-to\-SQL dataset built by a research team at Yale University\. It consists of 10,181 natural\-language queries and 5,693 unique SQL queries, drawn from 200 databases across 138 domains\. Each database contains an average of 5\.1 tables and foreign\-key relationships, covering SQL patterns from simple single\-table lookups to nested subqueries and multiple joins\.
##### BIRD\.
BIRD[Li et al\. \(2023\)](https://arxiv.org/html/2609.11141#bib.bib8)is a benchmark for evaluating Text\-to\-SQL performance in large\-scale real\-world database environments\. It consists of 95 databases, 33\.4 GB of data, 37 specialized domains, and 12,751 query–SQL pairs\.
##### Dataset Licenses\.
The Spider benchmark is distributed under the Creative Commons Attribution\-ShareAlike 4\.0 International \(CC BY\-SA 4\.0\) license\. The BIRD benchmark is distributed under the Creative Commons Attribution\-NonCommercial 4\.0 International \(CC BY\-NC 4\.0\) license\. Both datasets are used in this work for non\-commercial academic research purposes with appropriate attribution\.
### A\.2Selection Rationale
We chose Spider and BIRD over alternative tabular corpora for three reasons\.
First, both datasets provide relational schemas with explicit primary\-key and foreign\-key annotations\. These constraints are essential for FK\-aware subsampling, controlled violation injection, and structural evaluation of generated DDL\.
Second, both datasets cover diverse domains and schema structures\. This allows DNB to evaluate normalization behavior across a wide range of table layouts, key structures, and attribute combinations\.
Third, their relational structure makes them suitable source schemas for controlled denormalization\. Starting from realistic schemas allows us to generate denormalized samples with known violation patterns while retaining a database\-like structure\.
### A\.3Structure\-Preserving Relational Sampling
This subsection details Stage 1 \(FK\-aware Subsampling\) of the dataset construction pipeline in Section[3\.1](https://arxiv.org/html/2609.11141#S3.SS1)\. The goal of this stage is to downsample each large source database into a compact instance that remains a valid relational database—that is, one that preserves primary\-key uniqueness and foreign\-key referential integrity—so that the subsequent violation\-injection stages operate on realistic, self\-consistent schemas\.
Algorithm[1](https://arxiv.org/html/2609.11141#algorithm1)formalizes this procedure\. Starting from the schema metadata, we build a foreign\-key graph over the tables and identify*base tables*\(nodes with no outgoing FK edges\)\. For each base table, we select up tonntuples and expand the selected key sets through FK and self\-FK closures until convergence, ensuring that every referenced tuple is also retrieved\. After merging the retrieved tuples with primary\-key\-based deduplication, we apply a global per\-table row cap and insert the tables into a new SQLite database in topological order\. Finally, any residual FK violations are removed through recursive cascade cleanup, and empty tables are dropped\. The resultD′D^\{\\prime\}is a structurally faithful subsample on which controlled denormalization can be applied without introducing spurious integrity errors\.
Algorithm 1Structure\-Preserving Relational SamplingInput:Relational database
DD; max tuples per base table
nn; max rows per table
cc
Output:Sampled database
D′D^\{\\prime\}
1Extract schema metadata from
DDand obtain table set
𝒯\\mathcal\{T\}, primary keys, and foreign\-key \(FK\) relations;
2Build the FK graph over
𝒯\\mathcal\{T\}\(edge
u→vu\\\!\\to\\\!viff
uuhas an FK referencing
vv\);
3Identify base tables
ℬ⊆𝒯\\mathcal\{B\}\\subseteq\\mathcal\{T\}\(nodes with no outgoing FK edges\);
4Initialize sampled\-relation set
ℛ←∅\\mathcal\{R\}\\leftarrow\\emptysetand global PK registry
𝒦←\{\(t,∅\):t∈𝒯\}\\mathcal\{K\}\\leftarrow\\\{\(t,\\emptyset\):t\\in\\mathcal\{T\}\\\};
5for*each base tableb∈ℬb\\in\\mathcal\{B\}*do
6Construct join candidates by traversing FK chains from
bbto related tables;
7Remove candidates containing null primary keys;
8Select up to
nntuples from
bbbased on its primary key;
9Initialize local PK registry
𝒦b\\mathcal\{K\}\_\{b\}from the selected tuples;
10Expand
𝒦b\\mathcal\{K\}\_\{b\}via FK/self\-FK closure until convergence;
11Retrieve tuples from related tables using the converged key sets;
12Merge the retrieved tuples into
ℛ\\mathcal\{R\}with PK\-based deduplication;
13Update
𝒦\\mathcal\{K\}using
𝒦b\\mathcal\{K\}\_\{b\};
14if*some table inℛ\\mathcal\{R\}exceedsccrows*then
15Apply FK\-aware global capping while preserving referential integrity;
16Create a new SQLite database
D′D^\{\\prime\}and insert tables in topological order;
17while*FK violations are detected inD′D^\{\\prime\}*do
18Remove violating tuples by recursive cascade cleanup;
19Remove empty tables from
D′D^\{\\prime\};
20return
D′D^\{\\prime\}
### A\.4Expert Validation ofDNBenchSamples
After constructing the DNB dataset, three database experts reviewed the generated DNB samples\. The review focused on whether the denormalized tables contain the intended 1NF–BCNF violation patterns and whether the chain\-rule labels, gold decompositions, and expected schema constraints are consistent with the construction rules\. This validation concerns the generatedDNBenchsamples used in our experiments\.
## Appendix BModel Selection
We restrict our evaluation to four open\-weight language models widely adopted in the contemporary LLM ecosystem, which together cover the dominant architectural paradigms in modern LLM design\. By choosing models that are openly released, reproducible, and actively used across research and industry, we ensure that the failure modes uncovered byDNBenchare not artifacts of a single proprietary system but reflect properties of the broader class of modern LLMs\. The four models span two complementary axes that are known to influence reasoning behavior, namely model scale \(ranging from2727B to7070B total parameters\) and architectural family \(dense decoder\-only models against sparse mixture\-of\-experts models\), allowing the benchmark to probe whether normalization difficulty correlates with capacity, sparsity, or instruction\-tuning recipe\.
- •Llama 3\.3 70B[Dubey et al\. \(2024\)](https://arxiv.org/html/2609.11141#bib.bib10)is a7070B\-parameter dense decoder\-only model released by Meta and serves as a strong reference point for instruction\-tuned dense LLMs\. Its broad availability and extensive evaluation across reasoning benchmarks make it the de facto baseline for open\-weight large\-scale models\.
- •Gemma3 27B[Kamath et al\. \(2025\)](https://arxiv.org/html/2609.11141#bib.bib11)is Google’s open\-weight dense model designed for efficient deployment at moderate scale\. It represents the class of mid\-sized dense models that trade raw capacity for inference cost while retaining competitive instruction\-following ability\.
- •Qwen3\-30B[Yang et al\. \(2025\)](https://arxiv.org/html/2609.11141#bib.bib12)is Alibaba’s mixture\-of\-experts model from the Qwen3 family\. By activating a subset of its experts per token, it isolates the effect of sparse expert routing on normalization reasoning while remaining comparable in active\-parameter footprint to mid\-sized densemodels\.
- •Mixtral 8x7B Instruct[Jiang et al\. \(2024\)](https://arxiv.org/html/2609.11141#bib.bib13)is Mistral’s sparse mixture\-of\-experts model that routes each token through two of eight77B experts\. It is included as the most established open\-weight MoE baseline and as a smaller\-scale counterpart to Qwen3\-30B, enabling comparison across two MoE designs\.
Together, these four models cover dense and sparse architectures across a range of scales, ensuring thatDNBench’s findings characterize behavior shared by current modern LLMs rather than properties unique to a single model family\.
##### Model Licenses\.
We use all pre\-trained models in accordance with their respective licenses\. All models are used as\-is for evaluation only, without any modification or training, in full compliance with their license terms\. For quantized variants, we use GGUF builds redistributed by Unsloth[Han et al\. \(2023\)](https://arxiv.org/html/2609.11141#bib.bib23)under the original model licenses, with Q4\_K\_S quantization applied only to the model weights\.
- •gpt\-oss\-20bis released under the Apache License 2\.0 and the gpt\-oss usage policy\.
- •Qwen3\-30B\-A3B\-Instruct\-2507is used under the Apache License 2\.0\.
- •Mixtral\-8x7B\-Instruct\-v0\.1is used under the Apache License 2\.0\.
- •Llama\-3\.3\-70B\-Instructis used under the Llama 3\.3 Community License Agreement, © Meta Platforms, Inc\.
- •Gemma\-3\-27B\-ITis used under the Gemma Terms of Use\.
## Appendix CExperiment Reproducibility
All experiments were conducted as inference\-only evaluations on a high\-performance computing cluster\. No model fine\-tuning or parameter updates were performed\. The hardware and software configurations used for our empirical evaluations are as follows:
- •Hardware Resources\.We used an NVIDIA DGX\-class system equipped with NVIDIA A100\-SXM4\-40GB GPUs\. Each GPU provides 40 GB of HBM2 memory\. The experiments used 1×\\timesA100 for Gemma\-3\-27B, Qwen3\-30B\-A3B, Mixtral\-8x7B, and the MARS agent based on Qwen3\-30B\-A3B, and 2×\\timesA100 for Llama\-3\.3\-70B\.
- •Software Environment\.The system operated with CUDA 12\.2 and NVIDIA Driver 535\.161\.08\. Model inference was served through an OpenAI\-compatible vLLM server, and all evaluation scripts were executed in the same software environment\.
- •Results\.All experimental results, including MARS and MIFFIE, were described based on a single run\.
## Appendix DExtended Result Tables
This appendix collects every result table beyond the main paper’s Table[4](https://arxiv.org/html/2609.11141#S4.T4)\.
Table[9](https://arxiv.org/html/2609.11141#A4.T9)reportsDNB\-Scorevalues on theDNBenchtest split, broken down by dataset and model\. The relative ranking of the four models is consistent across BIRD and Spider, indicating that our findings generalize across both source corpora\.
Table[10](https://arxiv.org/html/2609.11141#A4.T10)presents per\-model Real WorldDNB\-Scorevalues broken down by violation path\. We observe that scores decrease as the number of normal\-form violations to resolve increases: theNONEcategory \(already\-normalized inputs\) scores highest for every model, while the mixed1NF–BCNFcases score lowest\.
Table[D](https://arxiv.org/html/2609.11141#A4)provides the full per\-cell results:DNB\-Scoreand its three component scores for every \(dataset, model, prompting setting, violation path\) configuration\.
Table[7](https://arxiv.org/html/2609.11141#A4.T7)reports the corresponding per\-cell breakdown for our MARS \(Qwen3\-30B\) pipeline under the Real World setting, allowing direct comparison against the single\-prompt Qwen3\-30B rows in Table[D](https://arxiv.org/html/2609.11141#A4)\.
Table[8](https://arxiv.org/html/2609.11141#A4.T8)reports the corresponding per\-cell breakdown for the Miffie \(Qwen3\-30B\) baseline under the Real World setting, allowing direct comparison against both the single\-prompt Qwen3\-30B rows in Table[D](https://arxiv.org/html/2609.11141#A4)and the Multi\-agent results in Table[7](https://arxiv.org/html/2609.11141#A4.T7)\.
Table 7:MARS \(Qwen3\-30B\)evaluation matrix:DNB\-Score
and its three components for every \(dataset, prompting setting, violation path\) cell in the Real World setting\.
Table 8:Miffie \(Qwen3\-30B\)evaluation matrix:DNB\-Score
and its three components for every \(dataset, prompting setting, violation path\) cell in the Real World setting\.
Table 9:DNB\-Score
values per model on each test split\. Each cell averages the five violation\-path categories \(none, BCNF only, 3NF\+BCNF, 2NF\+3NF\+BCNF, 1NF\+2NF\+3NF\+BCNF\) for the given \(dataset, model, task, prompt\) configuration\.Boldmarks the best model in each column within a dataset\.Table 10:Real WorldDNB\-Score
values \(↑\\uparrow\) by model, violation path, and dataset\. The five violation paths correspond to mixed violations and already\-normalized cases with no violation \(NONE\)\.Boldmarks the best score per column within each model among the five violation paths\.
## Appendix EValidation of LLM\-as\-a\-Judge
We conduct a human\-agreement study to validate the judge\. We measure whether the judge’s agreement with humans is statistically indistinguishable from inter\-human agreement\.
We sample5050instances \(10 databases from Spider and BIRD×\\times5 samples each\) and ask three database experts to score them independently under the same rubric used by the judge\. The LLM judge evaluates the same instances with identical prompts\. Scores are assigned on a 0–5 scale normalized to\{0,0\.2,0\.4,0\.6,0\.8,1\.0\}\\\{0,0\.2,0\.4,0\.6,0\.8,1\.0\\\}\. The overall logical score is the mean of the three logical axes defined in Section[3\.2](https://arxiv.org/html/2609.11141#S3.SS2)\.
Table[11](https://arxiv.org/html/2609.11141#A5.T11)summarizes the agreement statistics used to validate the LLM judge\.
##### Quadratic Weighted Cohen’sκ\\kappa\(QWK\)\.
QWK[Cohen \(1968\)](https://arxiv.org/html/2609.11141#bib.bib16)measures pairwise agreement between two annotators on an ordinal scale\. The average human–human QWK is0\.8520\.852, and the average LLM–human QWK is0\.8180\.818, indicating strong agreement between the LLM judge and human evaluators\.
##### Krippendorff’sα\\alpha\.
Krippendorff’sα\\alpha[Krippendorff \(2011\)](https://arxiv.org/html/2609.11141#bib.bib17)extends ordinal agreement to all annotators jointly\. We obtainα=0\.633\\alpha=0\.633on the humans, in the substantial range of the Landis–Koch scale\. That this value is not particularly high suggests that humans do not always assign the same score to the same sample, indicating that the task is difficult enough to elicit disagreement among human experts\.
##### Spearman’sρ\\rho\.
Spearman’sρ\\rhomeasures rank\-order agreement between the LLM scores and the human mean scores\. We obtainρ=0\.753\\rho=0\.753, indicating strong agreement in rankings\.
##### Equivalence test \(Δ\\Delta\)\.
We computeΔ=QWKHH−QWKLH\\Delta=\\text\{QWK\}\_\{HH\}\-\\text\{QWK\}\_\{LH\}and estimate its95%95\\%confidence interval using paired bootstrap sampling[Efron and Tibshirani \(1995\)](https://arxiv.org/html/2609.11141#bib.bib18)\. We obtainΔ=\+0\.034\\Delta=\+0\.034with95%95\\%CI\[−0\.031,\+0\.106\]\[\-0\.031,\+0\.106\]\. Because the interval contains00, the LLM–human agreement is statistically indistinguishable from the human–human agreement\.
Table 11:Agreement statistics on the overall logical score \(n=50n=50\)\.
## Appendix FMiffie construction
We implement Miffie as described by[Jo et al\. \(2025\)](https://arxiv.org/html/2609.11141#bib.bib6)\. The method uses a generator LLM and a verifier LLM in an iterative refinement loop\. To ensure a controlled comparison, both roles use Qwen3\-30B, and the input follows theDNBenchReal World setting, where explicit FD annotations are not provided\. We adapt the output format so that Miffie produces the fields required by theDNBenchevaluator, including normalized DDL, violation labels, and explanations\. The original generator–verifier refinement structure is otherwise preserved\.
## Appendix GArtifact and Loop Analysis
All analyses in this section are conducted on theDNBenchReal World setting with zero\-shot and few\-shot prompting aggregated into a single set of statistics \(N=2,570N=2\{,\}570evaluations\)\. For each group, we report the number of samples, its share of the aggregated evaluations, and the averageDNB\-Scorewithin that group\.
### G\.1Miffie Artifact Analysis
Table 12:Iteration\-loop behavior of Miffie\.Table[12](https://arxiv.org/html/2609.11141#A7.T12)summarizes the iteration\-loop behavior of the Miffie\. Each iteration corresponds to one generator–verifier refinement step\. The largest group terminates after the first iteration, with an averageDNB\-Scoreof0\.46270\.4627\. However,DNB\-Scoredrops sharply as additional refinement is required, from0\.46270\.4627after one iteration to0\.16590\.1659after two iterations and0\.09960\.0996after three iterations\.
This pattern suggests that repeated LLM\-based refinements are not sufficient to recover from difficult normalization cases\. Even among outputs that reach the third iteration, verifier\-passed samples achieve only a slightly higherDNB\-Scorethan verifier\-failed samples \(0\.11410\.1141vs\.0\.09810\.0981\)\. This indicates that the LLM\-based verifier does not reliably distinguish schema\-level normalization quality underDNBench’s evaluation\.
### G\.2MARS Artifact Analysis
Table 13:Repair\-loop behavior of MARS\.Table[13](https://arxiv.org/html/2609.11141#A7.T13)summarizes how often MARS requires verifier\-guided repair and how the finalDNB\-Scorechanges across repair groups\. Outputs that pass verification after the initial generation achieve the highestDNB\-Score, while outputs corrected after one repair remain close in quality\. In contrast, samples that require two repair rounds have much lower average scores\. Only 67 of the 1,290 two\-repair samples pass final verification, whereas most remain unresolved\.
Table 14:Stage\-wise artifact diagnostics for MARS\.Table[14](https://arxiv.org/html/2609.11141#A7.T14)summarizes stage\-wise artifact diagnostics for MARS\. Exact\-match FD recall evaluates whether the Evidence stage recovers gold atomic FDs, while violation\-type F1 measures the correctness of the Diagnosis stage against gold violation labels\. Plan\-to\-DDL exact\-match checks whether the generated DDL matches the diagnosis plan in terms of relation counts, relation names, columns, and primary keys\. Verifier pass rate reports the fraction of final outputs that pass deterministic verification after repair\.
The relatively low FD recall and moderate violation\-type F1 indicate that evidence extraction and diagnosis remain upstream bottlenecks\. By contrast, the higher plan\-to\-DDL exact match shows that the Schema Generator can more reliably implement a given diagnosis plan\. Thus, MARS mainly improves the conversion of a normalization plan into executable DDL, while reliable FD inference remains difficult\.
## Appendix HPrompt Examples
### H\.1Single Experiment Prompt
Youareadatabaseexpert\.
\*\*ChainRuleReminder:\*\*
\-Workthroughnormalformsbottom\-up\.Evenifhigherformsareimplicitlyviolated,‘violation\_types‘mustlistonlytheearliestviolatedstage\(or"NONE"\),andyourexplanationplusnormalizationplanmustfocusonresolvingthatstage\.
\-Allowed‘violation\_types‘choicesarestrictly\{"1NF","2NF","3NF","BCNF","NONE"\}\.Ifnoviolationisfoundatanylevel,setitto\["NONE"\]\.
\-Wheneveraviolationexists,citeitscauseanddescribethenormalizationstepsyouapplyforthatstage\.
\*\*Instructions:\*\*
\-Youaregiventhreeinputs:\(1\)thedenormalizedtableschema,\(2\)tablerows,\(3\)thefullfunctional\-dependencylist\.Inspectthesetodetectnormalizationviolations\.
\-Startingfrom1NFupward,findthe\*\*earliest\*\*violatednormalformandnormalizethetabletofixthatviolationonly\(perthechainrule\)\.
\-Usetheprovidedschema,rows,andfunctionaldependencylistasevidence;citewhethereachclaimcomesfromarowpatternoraspecificFD\.
\-Preserveallcolumns;donotdropanycolumn\.Useexactcolumnnamesfrominput\.
\-Ifdecomposing,defineproperFOREIGNKEYconstraints\.
\-EveryFOREIGNKEYmustreferencecolumnsthatactuallyexistinthetargettable\(nophantomcolumns\)\.
\-EveryFOREIGNKEYmustreferenceatableyouexplicitlydefine\*\*withinyourownSQLDDL\*\*\.Neverreferenceplaceholdernamessuchas’InputTable’;onlyusetablenamesyoucreate\.
\-When1NFisviolated,keepeverycolumnnameandvalueintactandrestoreatomicity\-\-\-thisnecessarilymeansdecomposingmulti\-valuedattributesintoseparatetables\.
\*\*OutputRequirements:\*\*
\-OutputasingleJSONobjectwithkeys:‘sql\_ddl‘,‘explanation‘,‘violation\_types‘\.\*\*DoNOTinclude‘functional\_dependencies‘oranyextrakeys\.\*\*
\-Allowedviolation\_types:\["1NF","2NF","3NF","BCNF","NONE"\]\.
\-If‘violation\_types‘is\["NONE"\],keeptheschemaunchangedin‘sql\_ddl‘,donotdecompose,andexplainbrieflywhyallnormalformshold\.
\-Strictconsistency:violation\_typesmustexactlymatchexplanationsections\.
\*\*NormalizationRules:\*\*
\-Iftherearemultivaluedcells,1NFisviolated\.
\-If\{A,B\}isakeyandthereisapartialFDsuchas\{A\}\-\>\{X\},2NFisviolated\.
\-IfthereisatransitiveFD\(CK\-\>B\-\>C\)whereBisnotakey,3NFisviolated\.
\-Ifthedeterminantisnotasuperkey,BCNFisviolated\.
%iffew\-shot:<Few\-shotExamples\>
Now,analyzethefollowingtable\.
SchemaDDL:
<OriginalSchema\>
RowsJSON:
<Table\>
FunctionalDependencies:
<ViolationFDs\>
Prompt 1:Single experiment prompt\. It resolves only the highest\-priority normalization violation, with FDs provided\. Filling or leaving empty the<Few\-shot Examples\>placeholder yields the few\-shot and zero\-shot configurations, respectively\.
### H\.2Complex Experiment Prompt
Youareadatabaseexpert\.
\*\*ChainRule\(ResolveAllViolations\):\*\*
\-Identifyeveryviolatednormalformfrom1NFuptoBCNFandfixthemall\.
\-‘violation\_types‘mustlisteveryviolatedstageinorder\(e\.g\.,\["1NF","2NF","3NF","BCNF"\]whenallarebroken;use\["NONE"\]ifnonearebroken\)\.
\-Foreachviolatedstage,citethecauseanddescribethenormalizationstepsyouapply\.
\*\*Instructions:\*\*
\-Youaregiventhreeinputs:\(1\)thedenormalizedtableschema,\(2\)tablerows,\(3\)thefullfunctional\-dependencylist\.Inspectthesetodetectnormalizationviolations\.
\-Startingfrom1NFupward,identifyeveryviolatednormalformthroughBCNFandnormalizethetabletofixalldetectedviolations\.
\-Usetheprovidedschema,rows,andfunctionaldependencylistasevidence;citewhethereachclaimcomesfromarowpatternoraspecificFD\.
\-Preserveallcolumns;donotdropanycolumn\.Useexactcolumnnamesfrominput\.
\-Ifdecomposing,defineproperFOREIGNKEYconstraints\.
\-EveryFOREIGNKEYmustreferencecolumnsthatactuallyexistinthetargettable\(nophantomcolumns\)\.
\-EveryFOREIGNKEYmustreferenceatableyouexplicitlydefine\*\*withinyourownSQLDDL\*\*\.Neverreferenceplaceholdernamessuchas’InputTable’;onlyusetablenamesyoucreate\.
\-When1NFisviolated,keepeverycolumnnameandvalueintactandrestoreatomicity\-\-\-thisnecessarilymeansdecomposingmulti\-valuedattributesintoseparatetables\.
\*\*OutputRequirements:\*\*
\-OutputasingleJSONobjectwithkeys:‘sql\_ddl‘,‘explanation‘,‘violation\_types‘\.\*\*DoNOTinclude‘functional\_dependencies‘oranyextrakeys\.\*\*
\-Allowedviolation\_types:\["1NF","2NF","3NF","BCNF","NONE"\]\.
\-If‘violation\_types‘is\["NONE"\],keeptheschemaunchangedin‘sql\_ddl‘,donotdecompose,andexplainbrieflywhyallnormalformshold\.
\-Strictconsistency:violation\_typesmustexactlymatchexplanationsections\.
\*\*NormalizationRules:\*\*
\-Iftherearemultivaluedcells,1NFisviolated\.
\-If\{A,B\}isakeyandthereisapartialFDsuchas\{A\}\-\>\{X\},2NFisviolated\.
\-IfthereisatransitiveFD\(CK\-\>B\-\>C\)whereBisnotakey,3NFisviolated\.
\-Ifthedeterminantisnotasuperkey,BCNFisviolated\.
%iffew\-shot:<Few\-shotExamples\>
Now,analyzethefollowingtable\.
SchemaDDL:
<OriginalSchema\>
RowsJSON:
<Table\>
FunctionalDependencies:
<ViolationFDs\>
Prompt 2:Complex experiment prompt\. It resolves all violations, with FDs provided\.
### H\.3Real\-world Experiment Prompt
Youareadatabaseexpert\.
\*\*ChainRule\(ResolveAllViolations\):\*\*
\-Identifyeveryviolatednormalformfrom1NFuptoBCNFandfixthemall\.
\-‘violation\_types‘mustlisteveryviolatedstageinorder\(e\.g\.,\["1NF","2NF","3NF","BCNF"\]whenallarebroken;use\["NONE"\]ifnonearebroken\)\.
\-Foreachviolatedstage,citethecauseanddescribethenormalizationstepsyouapply\.
\*\*Instructions:\*\*
\-Youaregiventhedenormalizedtableschemaandtablerows\.Functionaldependenciesmaybehidden,soinferonlydependenciesstronglysupportedbycolumnsemantics,keys,uniquenessconstraints,andrepeatedrowpatterns\.
\-Startingfrom1NFupward,identifyeveryviolatednormalformthroughBCNFandnormalizethetabletofixalldetectedviolations\.
\-Usetheprovidedschemaandrowsasevidence;citewhethereachclaimcomesfromrowpatterns,key/uniqueconstraints,orconservativesemanticinference\.
\-Preserveallcolumns;donotdropanycolumn\.Useexactcolumnnamesfrominput\.
\-Ifdecomposing,defineproperFOREIGNKEYconstraints\.
\-EveryFOREIGNKEYmustreferencecolumnsthatactuallyexistinthetargettable\(nophantomcolumns\)\.
\-EveryFOREIGNKEYmustreferenceatableyouexplicitlydefine\*\*withinyourownSQLDDL\*\*\.Neverreferenceplaceholdernamessuchas’InputTable’;onlyusetablenamesyoucreate\.
\-When1NFisviolated,keepeverycolumnnameandvalueintactandrestoreatomicity\-\-\-thisnecessarilymeansdecomposingmulti\-valuedattributesintoseparatetables\.
\*\*OutputRequirements:\*\*
\-OutputasingleJSONobjectwithkeys:‘sql\_ddl‘,‘explanation‘,‘violation\_types‘\.\*\*DoNOTinclude‘functional\_dependencies‘oranyextrakeys\.\*\*
\-Allowedviolation\_types:\["1NF","2NF","3NF","BCNF","NONE"\]\.
\-If‘violation\_types‘is\["NONE"\],keeptheschemaunchangedin‘sql\_ddl‘,donotdecompose,andexplainbrieflywhyallnormalformshold\.
\-Strictconsistency:violation\_typesmustexactlymatchexplanationsections\.
\*\*NormalizationRules:\*\*
\-Iftherearemultivaluedcells,1NFisviolated\.
\-If\{A,B\}isakeyandthereisapartialFDsuchas\{A\}\-\>\{X\},2NFisviolated\.
\-IfthereisatransitiveFD\(CK\-\>B\-\>C\)whereBisnotakey,3NFisviolated\.
\-Ifthedeterminantisnotasuperkey,BCNFisviolated\.
%iffew\-shot:<Few\-shotExamples\>
Now,analyzethefollowingtable\.
SchemaDDL:
<OriginalSchema\>
RowsJSON:
<Table\>
\*\*FDInferenceGuidance:\*\*
\-\*\*Rule1\(SemanticsoverStatistics\):\*\*Donotrelysolelyondatapatterns\.OnlyacceptFDsthatmakelogicalsensebasedonthecolumnmeaningsandcommonknowledge\.Ignorecoincidentalcorrelations\.
\-\*\*Rule2\(DecompositionviaSuperkey\):\*\*IdentifyCandidateKeysbasedonyourinferredFDs\.IfadeterminantX\(inX\-\>Y\)isNOTasuperkey,itisaviolation\(2NFpartialor3NFtransitive\)\.Decomposethetabletoresolveit\.
\-\*\*Rule3\(ConservativeDesign\):\*\*DoNOTdecomposetablesunlessaclearviolationofRule2isfound\.Ifmultipleschemadesignsarepossible,prefertheonethatpreservestheoriginalstructureasmuchaspossible\.
\-\*\*Rule4\(Verification\):\*\*EnsureLosslessJoinandReferentialIntegrity\.
Prompt 3:Real\-world experiment prompt\. It resolves all violations, without FDs provided\.
### H\.4Few\-shot Prompt
Hereareexamplestoguideyou\.
\-\-\-
\*\*Example1a\*\*
\*Input:\*
SchemaDDL:
CREATETABLEInputTable\(building\_idINT,building\_short\_nameVARCHAR\(255\),building\_full\_nameVARCHAR\(255\),building\_descriptionVARCHAR\(255\),building\_addressVARCHAR\(255\),building\_managerVARCHAR\(255\),building\_phoneVARCHAR\(255\),room\_countVARCHAR\(255\),building\_full\_name\_idINT,building\_short\_name\_descriptionVARCHAR\(255\),building\_id\_sub\_idINT,PRIMARYKEY\(building\_id,building\_id\_sub\_id\),UNIQUE\(building\_full\_name,building\_full\_name\_id\)\);
RowsJSON:
\{"columns":\["building\_id","building\_short\_name","building\_full\_name","building\_description","building\_address","building\_manager","building\_phone","room\_count","building\_full\_name\_id","building\_short\_name\_description","building\_id\_sub\_id"\],
"rows":\[
\[191,"TheEugene","TheEugene","Flat","71537GorczanyInletWisozkburgh,AL08256","Melyssa","\(609\)946\-0491","9",1,"DescriptionforTheEugene",1\],
\[225,"ColumbusSquare","ColumbusSquare","Studio","0703DanikaMountainsApt\.362Mohrland,AL56839\-5028","Kyle","1\-724\-982\-9507x640","7\|8\|6\|8",1,"DescriptionforColumbusSquare",1\],
\[624,"StuyvesantTown","StuyvesantTown","Studio","101QueenieMountainsSuite619NewKorbinmouth,KS88726\-1376","Marie","\(145\)411\-6406","5\|8",1,"DescriptionforStuyvesantTown",1\],
\[673,"BarclayTower","BarclayTower","Flat","1579RunteForgesApt\.548Leuschkeland,OK12009\-8683","Rogers","1\-326\-267\-3386x613","3",1,"DescriptionforBarclayTower",1\],
\.\.\.\(\+8rowswithbuilding\_id\_sub\_id=2\)\.\.\.
\]\}
FunctionalDependencies:
\-\{building\_id,building\_id\_sub\_id\}\-\>\{room\_count,building\_short\_name,building\_short\_name\_description,building\_address,building\_full\_name,building\_phone,building\_description,building\_manager,building\_full\_name\_id\}
\-\{building\_full\_name,building\_full\_name\_id\}\-\>\{room\_count,building\_short\_name,building\_short\_name\_description,building\_address,building\_phone,building\_description,building\_manager,building\_id,building\_id\_sub\_id\}
\-\{building\_id\}\-\>\{building\_short\_name,building\_full\_name,building\_description,building\_address,building\_manager,building\_phone\}
\-\{building\_short\_name\}\-\>\{building\_short\_name\_description\}
\-\{building\_short\_name\}\-\>\{building\_full\_name\}
\*CorrectOutput:\*
\{
"sql\_ddl":
CREATETABLEApartment\_Buildings\_key\(
building\_short\_nameCHAR\(15\),building\_full\_nameVARCHAR\(80\),
building\_full\_name\_idINTEGER,building\_short\_name\_descriptionTEXT,
PRIMARYKEY\(building\_short\_name\),
UNIQUE\(building\_full\_name,building\_full\_name\_id\)\);
CREATETABLEApartment\_Buildings\_detail\(
building\_idINTEGER,building\_short\_nameCHAR\(15\),
building\_descriptionVARCHAR\(255\),building\_addressVARCHAR\(255\),
building\_managerVARCHAR\(50\),building\_phoneVARCHAR\(80\),
PRIMARYKEY\(building\_id\),
FOREIGNKEY\(building\_short\_name\)REFERENCESApartment\_Buildings\_key\(building\_short\_name\)\);
CREATETABLEApartment\_Buildings\_sub\_detail\(
building\_idINTEGER,building\_id\_sub\_idINTEGER,
PRIMARYKEY\(building\_id,building\_id\_sub\_id\),
FOREIGNKEY\(building\_id\)REFERENCESApartment\_Buildings\_detail\(building\_id\)\);
CREATETABLEApartment\_Buildings\_mv\_detail\(
building\_idINTEGER,room\_countTEXT,
PRIMARYKEY\(building\_id,room\_count\),
FOREIGNKEY\(building\_id\)REFERENCESApartment\_Buildings\_detail\(building\_id\)\);
"explanation":"Firstviolation:1NF\.Cause:Multi\-valuedattributein’room\_count’\(violatesatomicity\)\.Fix:splitmulti\-valuedattributesintoatomicvalues\.Remainingviolation:2NF\.Cause:Partialdependency\{building\_id\}\-\>\{building\_short\_name,building\_full\_name,building\_description,building\_address,building\_manager,building\_phone\}\.Fix:removepartialdependencies\.Remainingviolation:3NF\.Cause:Transitivedependency\{building\_short\_name\}\-\>\{building\_short\_name\_description\}\.Fix:removetransitivedependencies\.Remainingviolation:BCNF\.Cause:Non\-superkeydeterminant\{building\_short\_name\}\-\>\{building\_full\_name\}\.Fix:decomposesoeverydeterminantisacandidatekey\.",
"violation\_types":\["1NF","2NF","3NF","BCNF"\]
\}
\-\-\-
\*\*Example2a\*\*
\*Input:\*
SchemaDDL:
CREATETABLEInputTable\(building\_idINT,building\_short\_nameVARCHAR\(255\),building\_full\_nameVARCHAR\(255\),building\_descriptionVARCHAR\(255\),building\_addressVARCHAR\(255\),building\_managerVARCHAR\(255\),building\_phoneVARCHAR\(255\),building\_full\_name\_idINT,building\_short\_name\_descriptionVARCHAR\(255\),building\_id\_sub\_idINT,PRIMARYKEY\(building\_id,building\_id\_sub\_id\),UNIQUE\(building\_full\_name,building\_full\_name\_id\)\);
RowsJSON:\(same8buildingtuplesasExample1a,replicatedacrossbuilding\_id\_sub\_idin\{1,2\},withnomulti\-valued’room\_count’column\)\.
FunctionalDependencies:
\-\{building\_id,building\_id\_sub\_id\}\-\>\{building\_short\_name\_description,building\_phone,building\_full\_name\_id,building\_short\_name,building\_manager,building\_address,building\_full\_name,building\_description\}
\-\{building\_id\}\-\>\{building\_short\_name,building\_full\_name,building\_description,building\_address,building\_manager,building\_phone\}
\-\{building\_short\_name\}\-\>\{building\_full\_name\}
\-\{building\_full\_name,building\_full\_name\_id\}\-\>\{building\_short\_name\_description,building\_phone,building\_short\_name,building\_id,building\_manager,building\_address,building\_description,building\_id\_sub\_id\}
\-\{building\_short\_name\}\-\>\{building\_short\_name\_description\}
\*CorrectOutput:\*
\{
"sql\_ddl":
CREATETABLEApartment\_Buildings\_key\(
building\_short\_nameCHAR\(15\),building\_full\_nameVARCHAR\(80\),
building\_full\_name\_idINTEGER,building\_short\_name\_descriptionTEXT,
PRIMARYKEY\(building\_short\_name\),
UNIQUE\(building\_full\_name,building\_full\_name\_id\)\);
CREATETABLEApartment\_Buildings\_detail\(
building\_idINTEGER,building\_short\_nameCHAR\(15\),
building\_descriptionVARCHAR\(255\),building\_addressVARCHAR\(255\),
building\_managerVARCHAR\(50\),building\_phoneVARCHAR\(80\),
PRIMARYKEY\(building\_id\),
FOREIGNKEY\(building\_short\_name\)REFERENCESApartment\_Buildings\_key\(building\_short\_name\)\);
CREATETABLEApartment\_Buildings\_sub\_detail\(
building\_idINTEGER,building\_id\_sub\_idINTEGER,
PRIMARYKEY\(building\_id,building\_id\_sub\_id\),
FOREIGNKEY\(building\_id\)REFERENCESApartment\_Buildings\_detail\(building\_id\)\);
"explanation":"Firstviolation:2NF\.Cause:Partialdependency\{building\_id\}\-\>\{building\_short\_name,building\_full\_name,building\_description,building\_address,building\_manager,building\_phone\}\.Fix:removepartialdependenciessonon\-keysdependonthefullcompositekey\.Remainingviolation:3NF\.Cause:Transitivedependency\{building\_short\_name\}\-\>\{building\_short\_name\_description\}\.Fix:removetransitivedependencies\.Remainingviolation:BCNF\.Cause:Non\-superkeydeterminant\{building\_short\_name\}\-\>\{building\_full\_name\}\.Fix:decomposesoeverydeterminantisacandidatekey\.",
"violation\_types":\["2NF","3NF","BCNF"\]
\}
\-\-\-
\*\*Example3a\*\*
\*Input:\*
SchemaDDL:
CREATETABLEInputTable\(building\_idINT,building\_short\_nameVARCHAR\(255\),building\_full\_nameVARCHAR\(255\),building\_descriptionVARCHAR\(255\),building\_addressVARCHAR\(255\),building\_managerVARCHAR\(255\),building\_phoneVARCHAR\(255\),building\_full\_name\_idINT,building\_short\_name\_descriptionVARCHAR\(255\),PRIMARYKEY\(building\_id\),UNIQUE\(building\_full\_name,building\_full\_name\_id\)\);
RowsJSON:\(same8buildingtuplesasExample1a,nosub\_idcolumn,nomulti\-valuedcells\)\.
FunctionalDependencies:
\-\{building\_id\}\-\>\{building\_short\_name\_description,building\_phone,building\_full\_name\_id,building\_short\_name,building\_manager,building\_address,building\_full\_name,building\_description\}
\-\{building\_short\_name\}\-\>\{building\_full\_name\}
\-\{building\_full\_name,building\_full\_name\_id\}\-\>\{building\_short\_name\_description,building\_phone,building\_short\_name,building\_id,building\_manager,building\_address,building\_description\}
\-\{building\_short\_name\}\-\>\{building\_short\_name\_description\}
\*CorrectOutput:\*
\{
"sql\_ddl":
CREATETABLEApartment\_Buildings\_key\(
building\_short\_nameCHAR\(15\),building\_full\_nameVARCHAR\(80\),
building\_full\_name\_idINTEGER,building\_short\_name\_descriptionTEXT,
PRIMARYKEY\(building\_short\_name\),
UNIQUE\(building\_full\_name,building\_full\_name\_id\)\);
CREATETABLEApartment\_Buildings\_detail\(
building\_idINTEGER,building\_short\_nameCHAR\(15\),
building\_descriptionVARCHAR\(255\),building\_addressVARCHAR\(255\),
building\_managerVARCHAR\(50\),building\_phoneVARCHAR\(80\),
PRIMARYKEY\(building\_id\),
FOREIGNKEY\(building\_short\_name\)REFERENCESApartment\_Buildings\_key\(building\_short\_name\)\);
"explanation":"Firstviolation:3NF\.Cause:Transitivedependency\{building\_short\_name\}\-\>\{building\_short\_name\_description\}\.Fix:removetransitivedependencies\.Remainingviolation:BCNF\.Cause:Non\-superkeydeterminant\{building\_short\_name\}\-\>\{building\_full\_name\}\.Fix:decomposesoeverydeterminantisacandidatekey\.",
"violation\_types":\["3NF","BCNF"\]
\}
\-\-\-
\*\*Example4a\*\*
\*Input:\*
SchemaDDL:
CREATETABLEInputTable\(building\_idINT,building\_short\_nameVARCHAR\(255\),building\_full\_nameVARCHAR\(255\),building\_descriptionVARCHAR\(255\),building\_addressVARCHAR\(255\),building\_managerVARCHAR\(255\),building\_phoneVARCHAR\(255\),building\_full\_name\_idINT,PRIMARYKEY\(building\_id\),UNIQUE\(building\_full\_name,building\_full\_name\_id\)\);
RowsJSON:\(same8buildingtuplesasExample1a,withoutsub\_idandwithoutshort\_name\_descriptioncolumns\)\.
FunctionalDependencies:
\-\{building\_id\}\-\>\{building\_phone,building\_full\_name\_id,building\_short\_name,building\_manager,building\_address,building\_full\_name,building\_description\}
\-\{building\_short\_name\}\-\>\{building\_full\_name\}
\-\{building\_full\_name,building\_full\_name\_id\}\-\>\{building\_phone,building\_short\_name,building\_id,building\_manager,building\_address,building\_description\}
\*CorrectOutput:\*
\{
"sql\_ddl":
CREATETABLEApartment\_Buildings\_key\(
building\_short\_nameCHAR\(15\),building\_full\_nameVARCHAR\(80\),
building\_full\_name\_idINTEGER,
PRIMARYKEY\(building\_short\_name\),
UNIQUE\(building\_full\_name,building\_full\_name\_id\)\);
CREATETABLEApartment\_Buildings\_detail\(
building\_idINTEGER,building\_short\_nameCHAR\(15\),
building\_descriptionVARCHAR\(255\),building\_addressVARCHAR\(255\),
building\_managerVARCHAR\(50\),building\_phoneVARCHAR\(80\),
PRIMARYKEY\(building\_id\),
FOREIGNKEY\(building\_short\_name\)REFERENCESApartment\_Buildings\_key\(building\_short\_name\)\);
"explanation":"Firstviolation:BCNF\.Cause:Non\-superkeydeterminant\{building\_short\_name\}\-\>\{building\_full\_name\}\.Fix:decomposesoeverydeterminantisacandidatekey\.",
"violation\_types":\["BCNF"\]
\}
\-\-\-
\*\*Example5a\*\*
\*Input:\*
SchemaDDL:
CREATETABLEApartment\_Buildings\_key\(building\_short\_nameCHAR\(15\),building\_full\_nameVARCHAR\(80\),building\_full\_name\_idINTEGER,PRIMARYKEY\(building\_short\_name\),UNIQUE\(building\_full\_name,building\_full\_name\_id\)\);
CREATETABLEApartment\_Buildings\_detail\(building\_idINTEGER,building\_short\_nameCHAR\(15\),building\_descriptionVARCHAR\(255\),building\_addressVARCHAR\(255\),building\_managerVARCHAR\(50\),building\_phoneVARCHAR\(80\),PRIMARYKEY\(building\_id\),FOREIGNKEY\(building\_short\_name\)REFERENCESApartment\_Buildings\_key\(building\_short\_name\)\);
RowsJSON:\(same8buildingtuplesasExample1a,distributedacrossthetwotables;nomulti\-valuedcells,nosub\_id,noshort\_name\_description\)\.
FunctionalDependencies:
\-Apartment\_Buildings\_key:\{building\_short\_name\}\-\>\{building\_full\_name,building\_full\_name\_id\}
\-Apartment\_Buildings\_key:\{building\_full\_name,building\_full\_name\_id\}\-\>\{building\_short\_name\}
\-Apartment\_Buildings\_detail:\{building\_id\}\-\>\{building\_short\_name,building\_description,building\_address,building\_manager,building\_phone\}
\*CorrectOutput:\*
\{
"sql\_ddl":
CREATETABLEApartment\_Buildings\_key\(
building\_short\_nameCHAR\(15\),building\_full\_nameVARCHAR\(80\),
building\_full\_name\_idINTEGER,
PRIMARYKEY\(building\_short\_name\),
UNIQUE\(building\_full\_name,building\_full\_name\_id\)\);
CREATETABLEApartment\_Buildings\_detail\(
building\_idINTEGER,building\_short\_nameCHAR\(15\),
building\_descriptionVARCHAR\(255\),building\_addressVARCHAR\(255\),
building\_managerVARCHAR\(50\),building\_phoneVARCHAR\(80\),
PRIMARYKEY\(building\_id\),
FOREIGNKEY\(building\_short\_name\)REFERENCESApartment\_Buildings\_key\(building\_short\_name\)\);
"explanation":"Noviolation\.1NFholds:everycolumnatomic\.2NFholds:Apartment\_Buildings\_detailhasasingle\-attributePKandApartment\_Buildings\_keyhasnopartialdependenciesonitscompositecandidatekey\.3NFholds:notransitivenon\-keydependency\.BCNFholds:everydeterminant\(\{building\_id\},\{building\_short\_name\},\{building\_full\_name,building\_full\_name\_id\}\)isasuperkeyofitstable\.Schemaiskeptunchanged\.",
"violation\_types":\["NONE"\]
\}
Prompt 4:Few\-shot Example\.
### H\.5LLM\-as\-a\-Judge Prompt
Youareanextremelystrictandmeticulousdatabaseprofessor\.YourtaskistoevaluateacandidateLanguageModel’sresponseforadatabasenormalizationproblem\.
CRITICAL:DoNOTgradeviolation\-typeidentificationitself\.Thatisassessedexternallyviaexactsetmatch\.YourjobistoevaluateONLYthefourcriteriabelow\.Thecandidatemustuseonlyallowedviolationtypes:\["1NF","2NF","3NF","BCNF","NONE"\]\.DoNOTinventcategories\.
GoldenAnswer\(GroundTruth\):
\-GoldenViolationTypes\(forreferenceonly;donotgradeexactmatchinghere;allowedset=\["1NF","2NF","3NF","BCNF","NONE"\]\):
<golden\_violation\_types\>
\-GoldenExplanation:
‘‘‘
<golden\_explanation\>
‘‘‘
CandidateLLM’sOutput\(tobeevaluated\):
\-CandidateViolationTypes\(mustbesubsetoftheallowedset;consistencywillbecheckedagainstthecandidate’sownexplanation\):
<llm\_violation\_types\>
\-CandidateExplanation:
‘‘‘
<llm\_explanation\>
‘‘‘
\-CandidateSQLDDL:
‘‘‘sql
<llm\_sql\_ddl\>
‘‘‘
EvaluationRubric\(scoreeach0\-5,withaconcisejustification\):
1\.LogicalCoherenceofDecomposition\(0\-5\)
\[WHAT:StructuralConsistencywithExpectedDecomposition\]
\-Evaluatewhetherthecandidate’sfinalDDLprovidesaplausibledecompositionthatsatisfiestheconstraintsdescribedintheGoldenExplanation\.
\-Checksemanticmatchingoftables,primarykeys,foreignkeys,andcolumnsetsimpliedbythenarrative\.
\-Namingdifferencesareacceptable;structuralmismatchesareerrors\.
\-DoNOTevaluatelogicalreasoning,terminology,orexpressionquality\-\-\-onlystructuralcorrectness\.
2\.Explanation\-SchemaAlignment\(0\-5\)
\[CONSISTENCY:Thecandidate’sowninternalconsistency\]
\-Evaluateconsistencybetweenthecandidate’sexplanation,candidate’sDDL,andcandidate’sviolation\_types\.
\-Ifmultipleviolationtypesarelisted,theexplanationMUSTbesectionedbytype\.
\-EachsectionMUSTincluderequiredevidence:
\-1NF:citeexactmulti\-valued/repeatingcolumn\(s\)andthepattern\(e\.g\.,pipe/commaseparation\)\.
\-2NF:citeanexplicitpartialFDusingsetnotation,e\.g\.,\{A,B\}isacompositekeyand\{A\}\-\>\{X\}\.
\-3NF:citeatransitivechain\(e\.g\.,CK\-\>B\-\>C\)andexplicitlystateBisnotakey\.
\-BCNF:explicitlystate"thedeterminantisNOTasuperkey"andnamethedeterminantattributes\.
\-DoNOTcomparewithGolden\-\-\-onlycheckthecandidate’sinternalconsistency\.
3\.ExplanationQuality\(0\-5\)
\[EXPLANATION:Conceptualaccuracyandclarity\]
\-Evaluatetheoverallqualityofthecandidate’sexplanation\.
\-Checkwhethernormalizationanddatabaseterms\(e\.g\.,1NF/2NF/3NF/BCNF,
functionaldependency,determinant,superkey,partialdependency,
transitivedependency\)areusedwiththeirstandardmeanings\.
\-Assesstheclarity,conciseness,andlogicalorganizationoftheexplanation\.
\-Penalizemisuseofterminologyorunnecessaryverbosity\.
\-DoNOTevaluatestructuralcorrectnessorexplanation\-schemaalignment\.
DetailedScoringScale\(reference\):
\-5:PerfectagainstGoldenforlogic/schema;rigorousevidenceandinternalconsistency\.
\-4:Minorinconsequentialdifferences\(naming\);evidencelargelysufficient\.
\-3:Generallysoundbutwithgaps\(minorschemaorevidenceomissions\)\.
\-2:Significantlogicalinconsistenciesormissingrequiredevidence\.
\-1:Mostlyincorrectorincoherent\.
\-0:Missing/irrelevant\.
RequiredOutputFormat:
ReturnonevalidJSONobjectonly\.DonotincludeMarkdownfencesoranyextratext\.
\{
"logical\_coherence\_of\_decomposition":\{"score":<score\_0\_to\_5\>,"justification":"<text\>"\},
"explanation\_schema\_alignment":\{"score":<score\_0\_to\_5\>,"justification":"<text\>"\},
"explanation\_quality":\{"score":<score\_0\_to\_5\>,"justification":"<text\>"\}
\}
Pleaseevaluatethecandidate’soutputnowbasedonthethreecriteriaonly\.
Prompt 5:LLM\-as\-a\-Judge prompt\.Similar Articles
New LLM Coordination Benchmark - Benchmarking Open-Ended Multi-Agent Coordination in Language Agents [R]
Introduces a new benchmark for evaluating multi-agent coordination in LLMs, finding that most models struggle with long-horizon open-ended tasks, but Gemini 3.1 Pro performs comparably to trained MARL agents on the hardest setting.
DBA-Bench: A Production-Fidelity Benchmark for LLM-Based Database Operations Agents
DBA-Bench is a production-fidelity benchmark for evaluating LLM-based database agents, featuring 106 scenarios across seven domains with outcome-first evaluation and controlled reproducibility. The best automated baseline achieves only 17.9% Safe Pass compared to 93.4% for human DBAs.
When JSON Is Not Enough: Semantic Reliability of Schema-Constrained LLM Ordering Agents
The paper introduces OrderBench, a benchmark for restaurant ordering LLM agents that evaluates semantic reliability beyond schema validity, demonstrating that structured output modes can achieve perfect schema validity while still having high semantic error rates.
Beyond Demographic Discrimination: Benchmarking Normative-Descriptive Calibration in LLMs
The paper introduces the Normative–Descriptive Calibration Benchmark (NDCB), 697 matched-pair scenarios testing whether LLMs differentiate between 'what should happen' and 'what is likely to happen' framings, finding Claude Sonnet/Opus 4.6 separate the framings most strongly while GPT-5.5 shows near-zero or negative separation.
Benchmarking LLMs
A study or report on benchmarking large language models, likely comparing performance across various tasks.