Conceptio › Archive › arXiv CS
arXiv CS open access

[Experiment, Analysis, and Benchmark] How well do LLMs comprehend and design relational database schemata?

Sriom Chakrabarti et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
data-managementdatabasessqlstorage
Large Language Models (LLMs) are increasingly used for database tasks, yet most work, such as Text2SQL, assumes that the relational schema already exists. We ask whether LLMs can design a schema from natural language requirements (Text2Schema), verbalize an existing schema (Schema2Text), and preserv
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

arXiv:2611.17044v1 [cs.DB] 12 Nov 2026

[Experiment, Analysis, and Benchmark] How well do LLMs comprehend and design relational database schemata? Sriom Chakrabarti

Sean Bin Yang

Arijit Khan

Sebastian Link

Aalborg University Denmark scha@cs.aau.dk

Aalborg University Denmark seany@cs.aau.dk

Bowling Green State University, USA Aalborg University, Denmark arijitk@bgsu.edu

University of Auckland New Zealand s.link@auckland.ac.nz

descriptions usually express application concepts, business rules, and domain semantics, but many schema details such as tables, attributes, data types, domain constraints, and referential constraints may remain implicit or underspecified. In contrast, Data Definition Language (DDL) explicitly encodes this structural information but provides limited information about the business rationale or domain meaning behind it. This difference makes translation between the two representations challenging. When generating a schema, an LLM may need to infer structural details that are not explicitly stated in the requirements, while during schema comprehension it must preserve enough relational information in natural language for the original structure to remain understandable and recoverable. These differences lead to several challenges when evaluating whether LLMs can faithfully reason over a relational schema. First, natural language requirements are often incomplete, so an LLM needs to infer schema elements that are not clearly stated. Second, the same requirements can admit multiple valid relational designs, which makes exact match with a reference schema a stricter criterion than functional necessity. Third, when an existing schema is expressed in natural language, important structural information such as constraints and relationships may be omitted even when the description appears fluent and complete. Finally, in a Schema→Text→Schema pipeline, structural errors may arise either during schema verbalization or during reconstruction, making it difficult to determine where information is lost. Existing Text2SQL and SQL2Text benchmarks do not evaluate these challenges at the level of the complete relational schema, while recent Text2Schema work [11] primarily considers schema construction in one direction. To the best of our knowledge, no existing benchmark jointly evaluates schema construction, schema comprehension, and structural preservation across natural language and relational schema representation. It therefore remains unclear how well LLMs can construct, express, and preserve relational structure across natural language and formal schema representations. These challenges motivate an evaluation that measures not only the quality of generated schemata or descriptions but also which parts of relational structure are preserved, omitted, or incorrectly reconstructed across the two representations.

Abstract—Large Language Models (LLMs) are increasingly used for database tasks, yet most work, such as Text2SQL, assumes that the relational schema already exists. We ask whether LLMs can design a schema from natural language requirements (Text2Schema), verbalize an existing schema (Schema2Text), and preserve its structure through a Schema→Text→Schema round trip. We present SchemaBridge, a benchmark of 902 schemata from three collections, stratified by size and constraint complexity, that scores fidelity separately for tables, attributes, domain (data types and nullability), entity, and referential integrity. Evaluating six open-weight and proprietary LLMs, we find that: (i) human-written requirements under-specify schemata, with no model exceeding 0.27 referential integrity F1; (ii) LLM-generated descriptions carry far more structure when explicitly asked to be complete, raising GPT-5.4-mini’s referential F1 on SchemaBench from 0.228 to 0.909, even as BLEU, ROUGE-L, and BERTScore decrease; (iii) controlled experiments show that both constructor and describer choices influence round-trip fidelity under fixed settings; and (iv) masked schema experiments show that structural cues support recovery of keys and relationships, while joint data-type and nullability information is poorly retained through verbalization. Code and data are available at https://github.com/iamsriom/SchemaBridge Index Terms—Large language models, relational databases, schema comprehension, schema generation, benchmarking

I. I NTRODUCTION Large Language Models (LLMs) are increasingly being used to interact with relational database systems, yet most evaluations assume that the schema is already provided. In Text2SQL [1]–[3], for example, a natural language question is translated into an executable SQL query over a provided relational schema, with benchmarks such as WikiSQL [4], Spider [5], and BIRD [6] driving substantial progress in this setting. The complementary SQL2Text task [7]–[10] verbalizes individual SQL queries rather than complete relational schemata. These lines of research demonstrate that language models can operate over supplied relational structure but do not establish whether they can construct the schema itself or faithfully express the relational structure encoded by an existing design. Natural language and relational schemata represent information at different levels of abstraction. Natural language

1

Fig. 1. Overview of SchemaBridge. We evaluate LLMs across three complementary relational-schema reasoning tasks: schema design (Text2Schema), schema comprehension (Schema2Text), and structural preservation through the Schema → Text → Schema round trip. Structural fidelity is measured over tables, attributes, domain integrity, entity integrity, and referential integrity.

To address these challenges, we introduce SchemaBridge, a unified benchmark for evaluating relational schema reasoning across natural language and formal schema representations. As illustrated in Figure 1, SchemaBridge considers three complementary evaluation settings: schema design (Text2Schema), schema comprehension (Schema2Text), and structural preservation through a Schema→Text→Schema round trip. The benchmark evaluates 902 relational schemata from three complementary collections using multiple openweight and proprietary LLMs. Rather than relying on a single aggregate metric, SchemaBridge measures structural fidelity across five dimensions: tables, attributes, domain integrity, entity integrity, and referential integrity. This fine-grained evaluation enables us to identify where relational information is preserved or lost and to distinguish errors arising during schema construction, verbalization, and reconstruction. We make the following contributions: • Unified benchmark. We develop SchemaBridge, covering schema design (Text2Schema), schema comprehension (Schema2Text), and structural preservation (Schema→ Text→Schema) over 902 schemata from three collections, stratified by size and constraint complexity (§III–IV). • Diagnostic evaluation. We measure fidelity separately for tables, attributes, domain, entity, and referential integrity. We also perform controlled experiments to isolate the effects of

the constructor and the describer, while we perform masking to assess the recovery of hidden schema elements from visible structural evidence. (§III). • Empirical findings. Across six LLMs, we find: (i) limited exact-match fidelity when constructing schemata from provided requirements; (ii) improved round-trip preservation under detailed descriptions; (iii) variation in reconstruction performance across describer and constructor choices; and (iv) greater recovery of keys and foreign keys when structural evidence is available (§V). II. R ELATED W ORK We position Text2Schema, Schema2Text, and the Schema→Text→ Schema round trip against four lines of related work: foundations of relational schema design, schema construction from natural language requirements, natural language interfaces over existing schemata, and LLM-based relational schema construction. Foundations of Relational Schema Design. Relational schema design is a foundational problem in database systems. Codd [12] introduced the relational model, establishing relations as a logical abstraction of structured data independent of their physical storage and access paths. Chen [13] complemented this relational view with the entity-relationship model, which explicitly models the semantics through entities,

2

relationships, attributes, and structural constraints, providing a systematic bridge between application requirements and logical database design. Bernstein [14] subsequently formalized schema synthesis from functional dependencies (FDs), establishing dependencies as a formal basis for constructing normalized relational schemata. Later work automated parts of this process by discovering dependencies from existing relational instances and using them to support normalization and schema restructuring [15], [16]. These approaches provide formal mechanisms for deriving or refining relational structure but generally assume that the relevant data, dependencies, or schema elements are already available.

a multi-agent framework with stages for requirement analysis, conceptual modeling, logical design, and validation. Its evaluation covers relations, attributes, data types, primary keys, and foreign keys, making it the closest prior work to our Text2Schema setting. In the complementary direction, Avignone et al. [20] investigate LLMs’ ability to generate natural language descriptions of entity-relationship (ER) conceptual models. They evaluate the verbalization of ER constructs using different LLM backbones and prompting strategies. While this is closely related to our Schema2Text setting, their evaluation focuses on conceptual ER models rather than relational DDL and does not examine whether generated descriptions preserve sufficient structural information for schema reconstruction. SchemaBench [21] provides pairs of natural language descriptions and their corresponding relational schemata, supporting the evaluation of requirement-to-schema generation. Although it serves as a dataset for Text2Schema, it does not provide a unified evaluation of schema verbalization and round-trip structural preservation. We utilize SchemaBench as one of the three schema collections in our evaluation. These experiments examine complementary aspects of schema construction and verbalization but do not jointly evaluate the preservation of relational structure across both directions. To the best of our knowledge, SchemaBridge is the first unified evaluation framework to assess schema design, schema comprehension, and Schema→Text→Schema roundtrip preservation, while evaluating structural information loss across verbalization and reconstruction stages.

Schema Construction from Natural Language Requirements. A complementary line of work derives database designs from textual requirements. Early requirementsengineering approaches combine linguistic analysis, dependency parsing, hand-crafted extraction rules, and ontologydriven reasoning to identify entities, attributes, and relationships in natural language specifications [17], [18]. They show that conceptual structure can be recovered from text, but they target conceptual models such as UML or entity relationship diagrams and depend on manually designed rules or taskspecific extraction pipelines. As a result, they do not evaluate the generation of executable relational schemata, including tables, attributes, domains, keys, and referential constraints. Text2Schema extends this direction by assessing whether LLMs can construct these relational components directly from natural language requirements. Natural Language Interfaces over Existing Schemata. Advancements in LLMs have enabled substantial progress in translation between natural language and SQL. In Text2SQL, approaches such as DIN-SQL [19] employ task decomposition and self-correction, while DAIL-SQL [1] investigates prompt engineering and in-context learning for generating SQL queries from natural language questions over existing relational schemata. Benchmarks such as WikiSQL [4], Spider [5], and BIRD [6] have supported progress in this direction. However, these approaches assume that the underlying relational schema is already available. They evaluate an LLM’s ability to generate queries over a given schema, rather than its ability to construct or faithfully represent the schema itself. The complementary direction, SQL2Text, translates SQL queries into natural language descriptions to support explainability and query verification [7]–[10]. Although it verbalizes a formal database artifact, the object being described is an individual query rather than the schema. Consequently, neither Text2SQL nor SQL2Text evaluates whether schema-level information (tables, attributes, domains, keys, and referential dependencies) survives translation between formal and natural language representations. Our work takes the relational schema itself as the object of translation and evaluation.

III. S CHEMA B RIDGE : A T ESTBED FOR S CHEMA D ESIGN AND C OMPREHENSION Figure 2 provides an overview of the SchemaBridge execution and evaluation workflow. The following subsections describe its key components in detail. A. Evaluation Scope SchemaBridge evaluates three capabilities over a common relational schema representation: • Text2Schema (design): generate a schema from a natural language requirement. • Schema2Text (comprehension): describe an existing schema in natural language. • Schema→Text→Schema (preservation): reconstruct a schema from its own description. We regard a description as faithful if it preserves schemacritical information, and we measure this by how much of the schema can be recovered from it, rather than by its textual similarity to a reference. Outputs are analyzed at three levels: the schema level (divergence from the gold schema), the dimension level (fidelity per structural dimension), and the scenario level (aggregation over models, datasets, prompts, and schema complexity). Out of scope. We evaluate schema structure only. We do not assess query generation, instance data, normal forms or functional dependencies, referential actions, default values, or

LLM-Based Schema Construction. Recent work has started to apply LLMs directly to relational schema construction. SchemaAgent [11] formulates Text2Schema as generating a relational schema from natural language requirements, using

3

Fig. 3. Anatomy of structural fidelity. The evaluator measures schema fidelity across five dimensions: Tables, Attributes, Domain integrity, Entity integrity, and Referential integrity. Using a small two-table example, the figure highlights exactly which schema elements are counted in each dimension.

Fig. 2. SchemaBridge execution and evaluation workflow. Schemata from three collections are stratified by size and constraint complexity, passed through the model zoo in the roles of describer and constructor, and scored with element-level, schema-level, and description-level metrics. Masking is applied to test structural inferability.

Two schemata are content-equivalent when all five sets coincide after normalization. Structural fidelity is the agreement between a reconstructed schema Ŝ and the gold schema S on each component of C(·), reported separately per dimension (§III-E). Figure 3 illustrates which schema elements each dimension counts.

CHECK constraints. Constraints beyond keys and foreign keys, such as functional dependencies and cardinality bounds, raise separate questions of runtime enforcement [22], which we leave for future work. B. Schema Content and Structural Fidelity

C. Tasks and Round-Trip Diagnosis

a) Identifier and type normalization: Identifiers are normalized by lowercasing and removing quoting characters, spaces, underscores, and hyphens. SQL data types are compared using compatible integer, string, and binary families, with normalized base-type matching otherwise. Domain fidelity additionally requires matching nullability. Constraint names, engine clauses, and SQL keyword case are ignored. Our evaluation uses strict reference-based matching rather than functional equivalence. b) Schema content: The content of a schema S is a tuple of five sets C(S) = (CT , CA , CD , CE , CR ), one per structural dimension, with dimension set D = {T, A, D, E, R}: • Tables (CT ): the normalized names of the tables. • Attributes (CA ): the (t, c) pairs of table t and column c, capturing column-level structure beyond the set of relations. • Domain integrity (CD ): tuples (t, c, τ, ν) of table, column, data type τ , and nullability ν ∈ {NULL, NOT NULL}. A column is correct only if both τ and ν match. We score only these two properties, not the full range of domain constraints (e.g., defaults, CHECK). • Entity integrity (CE ): triples (t, K, κ) of table t, key columns K (single or composite), and constraint type κ ∈ {PK, UNIQUE}. • Referential integrity (CR ): foreign keys as directed 4-tuples (ts , As , tt , At ) of source table, referencing columns, target table, and referenced columns. A foreign key is correct only if all four components match. Referential actions (ON DELETE/ON UPDATE) are not scored.

We evaluate three complementary tasks using a gold relational schema S and its natural language requirements Y . Let γ denote an LLM-based schema constructor, δ a schema describer, T the generated natural language description, and Ŝ the reconstructed schema. The three tasks are defined as: Text2Schema : Ŝ = γ(Y ),

Schema2Text : T = δ(S),

RoundTrip : Ŝ = γ(δ(S)). In Text2Schema, the constructed schema Ŝ is compared against the gold schema S. In Schema2Text, the describer generates a natural language description T of S. The Schema→Text→Schema round trip combines both transγ δ formations: S −−→ T −−→ Ŝ. The reconstructed schema Ŝ is evaluated against the original schema S using structural fidelity measures in §III-E, without requiring a gold natural language description. To diagnose information loss, we first hold the constructor γ fixed while varying the describer δ, thereby measuring the effect of schema verbalization. Conversely, we hold the generated description T fixed while varying the constructor γ, thereby measuring differences in reconstruction performance. These controlled comparisons distinguish the contributions of the two stages to overall structural fidelity. D. Masking and Inferability To assess structural inferability, we mask one schema dimension at a time. For d ∈ D, the masked view S \d

4

hides the corresponding schema information while retaining the remaining structure. For MD , we retain the historical masking protocol, which hides data types, nullability, defaults, and auto-increment properties. However, domain recovery is evaluated only through joint data-type family and nullability matching, consistent with §III-B. Hidden elements are classified as inferable when the remaining schema provides heuristic evidence for recovery, such as identifier patterns or visible relationships; otherwise, they are non-inferable. These labels reflect structural clues rather than logical entailment. Round-trip retention is measured as the ratio of Round-trip to Direct recall on paired masked elements.

TABLE I E VALUATION METRICS .

X d∈{T,A,E,R}

nGED(S, Ŝ) =

X∈{T ,A,F } |X △ X̂|

Element Element Schema Description Description

P/R/F1 per dimension Hallucination rate nGED BLEU-4, ROUGE-L, BERTScore SCR

gold schema gold schema gold schema gold description source schema

↑ ↓ ↓ ↑ ↑

|{e ∈ E(S) : norm(e) occurs in norm(T )}| , |E(S)|

where norm is the identifier normalization of §III-B. We report the macro-average over schemata. SCR does not assess data types, keys, foreign keys, or other constraints. IV. E XPERIMENTAL S ETUP A. Datasets We evaluate SchemaBridge on three complementary schema collections: Enterprise-145 [29], RSchema [11], and SchemaBench [21], which together span enterprise-scale DDL, real-world relational designs, and software-project schemata paired with natural language specifications. This diversity lets us test whether LLM behavior is consistent across schema sources, sizes, domains, and levels of natural language supervision. Enterprise-145 and SchemaBench provide DDL references, while RSchema provides 518 logical annotations and 381 matched DDL references. Experiments requiring DDL use the prepared schema representations Gold DDL schemata are used as input for Schema2Text and the Schema→ Text→Schema round trip, in which the gold DDL is verbalized and then reconstructed, and structural preservation is measured against the original. Only the collections providing natural language requirements (RSchema and SchemaBench) are used for Text2Schema, where we test whether LLMs can generate executable DDL from textual requirements.

P P max(0, i Pi,d − i Mi,d ) P , i Pi,d

max |T | + |A| + |F | + |T̂ | + |Â| + |F̂ |, 1

Better

E(S) = Tables(S) ∪ Columns(S),

where Pi,d and Mi,d are the predicted and matched element counts. A zero denominator is considered zero. Failed generations contribute empty predictions. Strict matching may count valid alternative designs as false positives; thus, hallucination measures reference disagreement rather than semantic invalidity. c) Schema-level distance (nGED): To summarize divergence in a single number, we use a unit-cost structural distance over three element sets derived from C(·): tables T = CT , attribute labels A = {(t, c, family(τ ), ν)} (name, type family, and nullability), and foreign keys F = CR . With T̂ , Â, F̂ defined likewise for Ŝ, P

Compared against

SCR(T, S) =

with any ratio set to 0 when its denominator is 0. Precision measures specificity (how much of the output is grounded in the gold schema) and recall measures coverage (how much of the gold schema is recovered). We report micro-averages by aggregating matched, predicted, and gold counts before computing each ratio. b) Hallucination: We define hallucination as referencerelative structural over-generation. For each dimension d ∈ D, the hallucination rate is 1 4

Metric

Equivalently, it is a simplified graph edit distance [25] in which tables are nodes, attribute labels are node labels, and foreign keys are directed edges. Lower is better; 0 means identical element sets. We report the mean nGED over schemata. Since an attribute label includes type family and nullability, one type mismatch costs two units (one missing, one extra label), so nGED is sensitive to domain errors. In E0, we use a type-independent variant of nGED, representing attributes by their table-qualified names (t, c), to ensure comparability with untyped reference and baseline schemata. d) Description quality (Schema2Text): We compare a generated description T with the gold description using BLEU-4 [26], ROUGE-L [27], and BERTScore-F1 [28]. These measure lexical or semantic similarity to the reference, not whether T contains the schema’s content. To measure content directly, we define Schema Coverage Rate (SCR), the fraction of source table and column identifiers mentioned in T :

E. Evaluation Metrics Metrics operate at three levels (Table I). Element-level overlap and schema-level distance compare a reconstructed schema Ŝ with the gold schema S and apply to Text2Schema and the round trip; description-level metrics apply to Schema2Text. Failed or unparseable generations are treated as empty predictions over the complete evaluation set. They receive zero structural F1 and nGED= 1; failure counts are reported separately. a) Element-level overlap: For each dimension d ∈ D, let Gd = Cd (S), Ĝd = Cd (Ŝ), and Md = Gd ∩ Ĝd . Precision, recall, and F1 [23], [24] are |Md | 2Pd Rd |Md | , Rd = , F1,d = , Pd = |Gd | Pd + R d |Ĝd |

H=

Level

 ∈ [0, 1].

5

Enterprise-145. Our collection comprises 145 enterprisegrade relational schemata drawn from publicly available database benchmarks and real-world data integration repositories, spanning e-commerce, healthcare, logistics, finance, and academic information systems. Each schema is retained in its original DDL form, preserving column-level metadata including data types, NOT NULL flags, primary keys, unique constraints, and foreign keys. These DDL definitions serve as the gold schema S in our evaluation. However, Enterprise-145 does not provide human-authored natural language descriptions of its schema. Therefore, we use it for Schema2Text and Schema→Text→Schema evaluation. Its larger and more densely interconnected schemata provide a challenging setting for evaluating structural preservation. RSchema. We use all 518 RSchema logical references for structural evaluation and 381 matched DDL references for domain integrity [11]. The logical annotations do not specify SQL data types or nullability; therefore, domain fidelity is evaluated only on the DDL-backed subset. RSchema contains natural language requirements paired with annotated relational schemata. Its source material includes DDL from SchemaPile, constructed industry scenarios, and publicly available database-design examples. Some requirements were generated using LLMs, while the dataset construction process involved manual refinement, cross-review, and expert validation. The reference logical schemata specify tables, attributes, primary keys, and foreign keys. We use these annotations as the gold reference and apply the identifier and type normalization described in §III-B. In our masking experiments, table names are replaced with placeholders to assess structural inferability. This experimental masking is distinct from anonymization of the original dataset. SchemaBench. We use SchemaBench, a collection of 239 project-to-schema pairs derived from real open-source applications and public schema-design repositories. The pairs span 27 application categories, including content management, SaaS, subscription systems, IT asset management, and social media. Each instance consists of a natural-language project specification, a corresponding SQL DDL schema, and metadata identifying the schema’s source. We treat the released DDL as the gold reference. The dataset documentation states that the examples were manually curated and semi-automatically validated, but it does not describe the validation procedure or indicate whether the specifications were written entirely by humans or with LLM assistance. We therefore treat the provided descriptions as given requirements and evaluate structural fidelity against the reference schemas. Table II summarizes the structural characteristics of the three datasets. Enterprise-145 contains the largest schemata on average, with 13.9 tables, 119.2 columns, and 13.4 foreign keys per schema, followed by SchemaBench with 11.0 tables, 79.2 columns, and 11.8 foreign keys. In contrast, RSchema contains smaller schemata, averaging 4.7 tables and 22.6 columns, with few composite foreign keys and no UNIQUE constraints. These differences motivate our stratification by schema size and constraint complexity.

Fig. 4. Distribution of 902 schemata by size and constraint complexity across three datasets. Bars show category proportions, segment labels indicate counts, and n denotes tier totals.

B. Dataset Stratification We stratify each gold schema along two complementary dimensions: S IZE and C ONSTRAINT C OMPLEXITY. S IZE captures the overall schema scale, measured by the number of tables and columns. C ONSTRAINT C OMPLEXITY captures the difficulty of preserving relational constraints, considering foreign keys, composite foreign keys, UNIQUE constraints, and table width. These differences enable us to evaluate schema scale and constraint complexity separately. The content score is   col s = 2 min(f, 10) + 3c + min(u, 5) + 15 max 0, nntab − 10 , f denotes the number of foreign keys, c the number of composite foreign keys, u the number of UNIQUE constraints, and ncol /ntab the average number of columns per table. The weights reflect the relative complexity of relational constraints. Foreign keys receive a weight of 2 as they encode inter-table dependencies, while composite foreign keys receive an additional weight of 3 to account for multi-column relationships. UNIQUE constraints receive a weight of 1, as they capture table-level constraints. The smaller weight of 1/5 accounts for wider tables without dominating the score. By limiting foreign keys and UNIQUE contributions, it limits the influence of schema size, which is evaluated separately. These two axes define a 3 × 3 evaluation matrix (Table III). All stratification features are computed exclusively from the gold schema. Threshold Selection. We adopt heuristic size thresholds of 5 and 15 tables, paired with 50 and 150 columns, respectively, assuming approximately 10 columns per table. For structural complexity, the thresholds s = 4 and s = 10 correspond to

6

TABLE II S TATISTICS OF THE THREE SCHEMA COLLECTIONS . M EANS ARE COMPUTED PER SCHEMA . C OMPOSITE FK S (%) DENOTES THE PROPORTION OF FOREIGN - KEY CONSTRAINTS INVOLVING MULTIPLE COLUMNS . UNIQUE (%) DENOTES THE PROPORTION OF SCHEMATA CONTAINING AT LEAST ONE UNIQUE CONSTRAINT, EXCLUDING PRIMARY KEYS . Collection Enterprise-145 RSchema SchemaBench

# Schemata

Tables

Columns

FKs

Composite FKs (%)

UNIQUE (%)

145 518 239

13.9 4.7 11.0

119.2 22.6 79.2

13.4 4.1 11.8

4.2 0.1 2.4

15.9 0.0 11.3

SQL Dialect

Gold NL

MySQL DBMS-agnostic MySQL-style

No Yes Yes

same prompt is used for all constructor models and for roundtrip reconstruction.

TABLE III C LASSIFICATION RULES .

Listing 1. Basic describer prompt (verbatim).

Dimension

Category

Criterion

Size

Small Medium Large

≤ 5 tables, ≤ 50 columns ≤ 15 tables, ≤ 150 columns Otherwise

Summarize this database schema in one short paragraph of plain English: what it is for, main tables, and how they relate. Human-readable, no code.

Content

Easy Medium Hard

s<4 4 ≤ s < 10 s ≥ 10

b) Basic describer: The basic prompt (Listing 1) requests a short, human-readable summary and does not require exhaustive structural coverage. c) Detailed describer: The detailed prompt keeps the single-paragraph format but explicitly requests the schemacritical information. Listing 2 shows the excerpt on constraint coverage. Unlike the basic prompt, it does not require the paragraph to be short.

two and five ordinary foreign keys, respectively, when other score components are zero. These thresholds provide practical boundaries for stratified evaluation rather than universal measures of schema difficulty. Note that E ASY does not imply easier reconstruction: constraint-sparse schemata leave an LLM more room to add structure that the gold design omits, which exact matching counts as errors (§V-B and V-F).

Listing 2. Detailed describer prompt (verbatim excerpt). primary keys and any composite or unique constraints (entity integrity); every foreign key and which columns reference which tables, plus update and delete rules like CASCADE or RESTRICT (referential integrity); and any other indexes or constraints. Be exhaustive but write it all as one continuous, readable paragraph that a non-expert can follow.

C. Model Zoo.

We use six LLMs to evaluate. The open-weight models, accessed through the HuggingFace Inference API, are d) Reproducibility: The complete, unabridged constructhe code-specialized CodeLlama-13B [30] and DeepSeek- tor and describer templates, including their output specifiCoder-6.7B [31], and the general-purpose Llama-3.1-8B [32]. cations, are provided in the reproducibility package: https: The proprietary instruction-tuned models, accessed through //github.com/iamsriom/SchemaBridge their providers’ APIs, are Claude Sonnet 4.6 [33], GPT-5.4V. E XPERIMENTAL E VALUATION mini [34], and GPT-4o-mini [35]. This selection spans model families, code specialization, and scale, which lets us examine A. Research Questions and Protocol whether relational schema reasoning varies along these axes. We organize the evaluation around four research questions. The first five models serve as both describers and constructors; RQ1 Design. How accurately do LLMs construct relational GPT-4o-mini serves only as the fixed constructor for the round schemata from natural language requirements, and how trip (§V-D) and for the direct masking track (§V-F). do prompting strategies affect structural fidelity? D. Prompting Protocol RQ2 Comprehension. Can LLMs verbalize an existing schema without losing content, and do text-similarity metrics We use a fixed constructor prompt that requests MySQLdetect any loss? style DDL and structured metadata in JSON, and two describer RQ3 Preservation. How much schema content survives the prompts: basic, requesting a concise summary, and detailed, Schema→Text→Schema round trip, and does the loss explicitly requesting tables, columns, types, nullability, keys, arise in the describer or in the constructor? and relationships. Complete templates are released with the RQ4 Structural inferability. When schema content is hidden, reproducibility artifacts. which elements can be recovered from the remaining a) Constructor: A single fixed prompt asks the model to relational evidence, and which are supplied mainly by convert a natural language description, either a gold requirelearned design conventions? ment or a generated description, into one JSON object with two fields: ddl, containing MySQL-style table definitions and constraints, and metadata, recording the database name, B. E0: Schema Design from Natural Language Requirements table names, and column properties. The prompt instructs the a) Setup: Each of the five constructors receives model to choose names consistent with the description and to dataset-provided requirements for 518 RSchema and 239 add cascading update and delete actions where logical. The SchemaBench schemata using the fixed constructor prompt

7

b) Structural coverage vs. text similarity: Table VII shows that detailed prompting increases SCR for all five describers across the three datasets, while text similarity generally decreases. Claude Sonnet 4.6 and GPT-5.4-mini achieve near-complete identifier coverage on RSchema and SchemaBench. Gold descriptions tend to summarize requirements rather than list schema elements, which helps explain the lower similarity scores. SCR measures identifier mentions, not the correctness of types, keys, or relationships. Figure 5 compares SCR with round-trip structural F1 across these dimensions.

TABLE IV E XPERIMENTS AND THE RESEARCH QUESTIONS THEY ADDRESS .

Experiment

RQ1 RQ2 RQ3 RQ4 Sec.

E0 Text2Schema from gold NL E1 Schema2Text verbalization E2 Round-trip preservation E3 Constructor isolation E4 Masking and inferability E5 Scalability and cost

✓ ✓ ✓

✓ ✓ ✓

✓

✓

V-B V-C V-D V-E V-F V-G

(§IV-D). Predictions are evaluated against gold references: all 518 logical RSchema references for tables, attributes, entity, and referential integrity; 381 matched DDL references for domain integrity; and original DDL references for SchemaBench. We report micro-averaged F1 , four-dimensional hallucination (excluding domain) and type-independent nGED. Failed or unparseable generations are treated as empty predictions (nGED = 1 for nonempty gold), without an additional hallucination penalty. b) Requirements under-specify schema content: Table V shows that models could recover tables more reliably than domain and referential constraints. Natural language requirements often describe application entities but leave data types, nullability, and relationships implicit. Across both datasets, the comparatively low domain and referential F1 values are consistent with requirements that specify entities more explicitly than attribute types, nullability, and foreign-key constraints.

D. E2: Round-Trip Preservation a) Setup: We reconstruct the basic (B) and detailed (D) descriptions from E1 using a fixed GPT-4o-mini constructor (§IV-D). The evaluation includes 145 Enterprise-145, 381 DDL-matched RSchema, and 239 SchemaBench schemata. We report mean normalized graph edit distance (nGED) and micro-averaged F1 for tables, attributes, domain, entity, and referential integrity. b) Prompting and structural preservation: Table VIII shows that detailed prompting generally improves roundtrip fidelity, particularly for attributes, entity constraints, and foreign keys. The API-based describers achieve the highest detailed prompt F1 in several dimensions, but the smallest nGED on RSchema is obtained by CodeLlama-13B. Domain integrity remains comparatively difficult to recover, and a more detailed description does not improve every model-dataset combination. c) Schema complexity and failure modes: Figure 6 shows that structural fidelity generally declines with schema size, although the trend varies across describer LLM and constraint complexity. Detailed prompting improves preservation for most models, with Claude Sonnet 4.6 and GPT-5.4-mini maintaining comparatively high fidelity on larger schemata. These results indicate that detailed descriptions mitigate, but do not eliminate, complexity-dependent reconstruction errors.

Baselines and scoring. We compare Direct construction with one-shot, one-shot Chain-of-Thought (CoT), and few-shot prompting configurations based on SchemaAgent [11], using three open-weight LLMs (Table VI). We exclude the complete SchemaAgent multi-agent framework because its released implementation could not be reproduced in our environment. All outputs are evaluated under the same reference-based structural metrics. Domain F1 is omitted for untyped baseline outputs. Table VI shows that few-shot prompting achieves lower nGED than Direct construction across all three open-weight models, and generally improves table, attribute, and entity recovery. One-shot CoT consistently reduces structural fidelity relative to one-shot prompting. These results indicate that prompting strategy substantially affects schema design performance, while referential integrity remains challenging across configurations.

E. E3: Isolating the Constructor a) Setup: Unlike E2, which fixes the constructor, E3 fixes GPT-5.4-mini detailed descriptions and varies the constructor across five LLMs. We evaluate 765 DDL-backed schemata: 145 Enterprise-145, 381 RSchema, and 239 SchemaBench. We report mean nGED, micro-averaged structural F1 , and four-dimensional hallucination over tables, attributes, entities, and referential integrity, excluding domain. b) Constructor capability and domain errors: Table IX shows that constructor choice substantially affects structural fidelity even with identical descriptions. Claude Sonnet 4.6 achieves the lowest nGED on Enterprise-145 and SchemaBench, whereas CodeLlama-13B achieves the lowest nGED on RSchema. On RSchema, domain F1 remains substantially lower than other structural dimensions, indicating weaker joint data-type and nullability fidelity, potentially influenced by dataset-specific annotation conventions.

C. E1: Schema Verbalization into Natural Language a) Setup: We evaluate five describer LLMs under basic (B) and detailed (D) prompting (§IV-D). The evaluation covers 145 Enterprise-145, 381 DDL-matched RSchema, and 239 SchemaBench schemata. We measure description quality using corpus BLEU-4, ROUGE-L, and BERTScore-F1 against gold natural-language descriptions, and schema coverage using SCR. Since Enterprise-145 lacks gold natural-language descriptions, only SCR is reported for this collection.

8

TABLE V E0: D IRECT T EXT 2S CHEMA FROM GOLD NATURAL - LANGUAGE REQUIREMENTS . M EAN STRUCTURAL N GED AND FOUR - DIMENSIONAL HALLUCINATION RATE ( LOWER IS BETTER ), AND MICRO - AVERAGED F1 PER DIMENSION ( HIGHER IS BETTER ). RSchema USES 518 LOGICAL REFERENCES FOR STRUCTURAL EVALUATION AND 381 MATCHED GENUINE DDL REFERENCES FOR DOMAIN F1 . B EST VALUES PER DATASET AND COLUMN ARE IN BOLD .

Dataset

Constructor

nGED ↓

Structural F1 ↑

Hall. ↓ Tables

Attr.

Domain

Entity

Ref.

RSchema

CodeLlama-13B Llama-3.1-8B DeepSeek-Coder-6.7B Claude Sonnet 4.6 GPT-5.4-mini

0.583 0.615 0.561 0.560 0.553

0.669 0.696 0.595 0.635 0.605

0.554 0.572 0.566 0.602 0.600

0.414 0.377 0.443 0.401 0.433

0.115 0.121 0.150 0.208 0.223

0.301 0.199 0.391 0.407 0.399

0.141 0.104 0.184 0.204 0.225

SchemaBench

CodeLlama-13B Llama-3.1-8B DeepSeek-Coder-6.7B Claude Sonnet 4.6 GPT-5.4-mini

0.794 0.810 0.731 0.574 0.675

0.773 0.768 0.641 0.598 0.651

0.350 0.363 0.398 0.530 0.465

0.125 0.112 0.185 0.358 0.245

0.067 0.061 0.100 0.247 0.159

0.183 0.145 0.240 0.345 0.255

0.082 0.063 0.128 0.263 0.174

TABLE VI E0: T EXT 2S CHEMA PERFORMANCE OF OPEN - WEIGHT LLM S ON RSchema, MEASURED BY STRUCTURAL N GED, FOUR - DIMENSIONAL HALLUCINATION , AND MICRO - AVERAGED STRUCTURAL F1 . D OMAIN F1 IS UNAVAILABLE FOR UNTYPED BASELINES (–). B EST VALUES PER COLUMN IN BOLD .

Structural F1 ↑

Constructor

Method

nGED ↓

Hall. ↓ Tables

Attr.

Domain

Entity

Ref.

CodeLlama 13B

One-shot One-shot+CoT Few-shot Direct

0.613 0.668 0.540 0.583

0.728 0.737 0.589 0.669

0.587 0.580 0.600 0.554

0.379 0.344 0.461 0.414

– – – 0.115

0.130 0.047 0.355 0.301

0.034 0.004 0.118 0.141

Llama-3.1 8B

One-shot One-shot+CoT Few-shot Direct

0.602 0.670 0.547 0.615

0.714 0.764 0.638 0.696

0.564 0.553 0.585 0.572

0.399 0.334 0.461 0.377

– – – 0.121

0.221 0.067 0.373 0.199

0.086 0.020 0.146 0.104

DeepSeek-Coder 6.7B

One-shot One-shot+CoT Few-shot Direct

0.718 0.848 0.528 0.561

0.722 0.838 0.582 0.595

0.406 0.251 0.600 0.566

0.321 0.169 0.479 0.443

– – – 0.150

0.246 0.091 0.419 0.391

0.115 0.046 0.188 0.184

when naming and relational cues are present. The substantial gaps for attributes and foreign keys suggest that visible structural evidence helps reconstruct missing schema information. However, non-inferable recovery remains incomplete, and the heuristic classification does not establish whether successful predictions arise from logical reasoning or learned design conventions. c) Structural evidence and verbalization loss: Table XI shows that verbalization reduces recovery across all five dimensions. Attributes retain the highest proportion of Direct recall (0.797), followed by entity constraints (0.712) and foreign keys (0.645). Domain exhibits the lowest retention (0.078), with Round-trip recall falling from 0.409 to 0.032. This substantial loss in joint data-type and nullability recovery indicates that verbalization can discard schema-critical information even when structural evidence is available.

F. E4: Masking and Inferability a) Setup: E4 evaluates recovery of hidden schema information under five masks: MT (tables), MA (non-key attributes), MD (domain properties), ME (entity constraints), and MR (foreign keys). GPT-4o-mini reconstructs masked DDL directly or after verbalization by an LLM describer. Recall is micro-averaged over available scored outputs, grouped by heuristic inferability. For MD , the historical masking and inferability protocol is retained, but scoring uses joint data-type family and nullability matching. Domain evaluation is restricted to genuine DDL from Enterprise-145 and SchemaBench; synthetic RSchema domain references are excluded. The historical heuristic assigns no inferable domain labels to Enterprise-145. We also exclude 66 cases without Domain Direct outputs (1,663 eligible gold elements). b) Evidence-guided reconstruction: Table X shows that inferable elements are recovered more frequently than noninferable ones for tables, attributes, entity constraints, and foreign keys. Recovery is strongest for inferable entity constraints, whereas anonymized table names remain difficult even

G. E5: Scalability and Cost a) Setup: We evaluate round-trip inference efficiency using GPT-5.4-mini and Claude Sonnet 4.6 as describers, with GPT-4o-mini as the fixed constructor across 30 schemas

9

TABLE VII E1: S CHEMA VERBALIZATION UNDER BASIC (B) AND DETAILED (D) PROMPTING . B EST VALUES PER DATASET AND COLUMN ARE IN BOLD .

BLEU-4 ↑ ROUGE-L ↑

BERTScore ↑

SCR ↑

B

D

B

D

B

D

B

– – – – –

– – – – –

– – – – –

– – – – –

– – – – –

– – – – –

RSchema

CodeLlama-13B 7.63 Llama-3.1-8B 6.37 DeepSeek-Coder 2.90 Claude Sonnet 4.6 4.60 GPT-5.4-mini 3.18

4.55 6.76 2.56 1.19 1.52

0.260 0.263 0.226 0.241 0.244

0.225 0.252 0.214 0.189 0.185

0.864 0.840 0.862 0.863 0.832 0.829 0.859 0.817 0.860 0.816

0.748 0.932 0.519 0.754 0.963 0.973 0.421 0.999 0.365 1.000

SchemaBench

CodeLlama-13B 3.79 Llama-3.1-8B 4.19 DeepSeek-Coder 3.02 Claude Sonnet 4.6 2.09 GPT-5.4-mini 1.02

2.34 4.09 1.71 1.07 1.02

0.168 0.174 0.146 0.167 0.157

0.145 0.175 0.141 0.128 0.124

0.819 0.802 0.831 0.815 0.798 0.792 0.817 0.785 0.816 0.781

0.556 0.758 0.404 0.605 0.702 0.825 0.386 0.944 0.316 0.974

Dataset

Describer

CodeLlama-13B Llama-3.1-8B Enterprise-145 DeepSeek-Coder Claude Sonnet 4.6 GPT-5.4-mini

Tables

Attributes

Domain

D

0.514 0.605 0.447 0.636 0.638 0.661 0.472 0.882 0.411 0.917

Entity

Referential

1.00

BASIC

0.75 0.50

Structural F1

0.25 0

DETAILED

1.00 0.75 0.50 0.25 0

0.4

0.6

0.8

1.0

Schema Coverage Rate (SCR)

0.4

0.6

0.8

1.0

Schema Coverage Rate (SCR)

0.4

0.6

0.8

1.0

Schema Coverage Rate (SCR)

Enterprise-145

RSchema

0.4

0.6

0.8

1.0

Schema Coverage Rate (SCR)

0.4

0.6

0.8

1.0

Schema Coverage Rate (SCR)

SchemaBench

Fig. 5. E1–E2: Relationship between Schema Coverage Rate (SCR) and round-trip structural F1 across five dimensions under basic (top) and detailed (bottom) prompting. Each panel contains 15 model-dataset observations from Enterprise-145, RSchema, and SchemaBench. High identifier coverage does not necessarily imply complete structural preservation, particularly for domain integrity.

(10 per dataset). We measure end-to-end latency, token consumption, and API cost per schema under basic and detailed prompting, including both verbalization and reconstruction stages. b) Inference efficiency: Table XII shows that detailed prompting increases token consumption and API cost across all configurations, while latency varies with the model and dataset. Larger schemata incur higher inference costs due to longer descriptions and reconstruction outputs. Claude Sonnet 4.6 is consistently more expensive than GPT-5.4-mini, reflecting differences in token usage and API pricing. These results highlight the computational cost of preserving structural detail during round-trip reconstruction. c) Evaluation limitations: Our results measure referencebased structural fidelity rather than functional schema equiv-

alence. The experiments use model generations, and we do not estimate run-to-run variability. Small differences between models should therefore be interpreted cautiously. The controlled round-trip comparisons are conditional on fixed models and do not estimate describer-constructer interactions. VI. R ECOMMENDATIONS We provide several practical recommendations for generating relational schemas with LLMs and describing them. Specify structural requirements explicitly. When describing a schema, prompts should explicitly request tables, attributes, data types, keys, and foreign-key relationships. Detailed prompting substantially improves structural preservation, whereas brief descriptions often omit schema-critical information. Likewise, when generating a schema from a

10

Fig. 6. E2: Mean structural F1 across five dimensions by schema size and constraint complexity (765 schemata). Dashed and solid lines indicate basic and detailed prompting, respectively. Shaded regions denote size tiers. Constructor: GPT-4o-mini. TABLE VIII E2: ROUND - TRIP PRESERVATION UNDER BASIC (B) AND DETAILED (D) PROMPTING WITH GPT-4 O - MINI AS THE CONSTRUCTOR . M EAN N GED (↓) AND MICRO - AVERAGED STRUCTURAL F1 (↑). B EST VALUES PER DATASET AND COLUMN ARE IN BOLD .

nGED ↓ Dataset

Describer

Structural F1 ↑ Tables

Attributes

Domain

Entity

Referential

B

D

B

D

B

D

B

D

B

D

B

D

CodeLlama-13B Llama-3.1-8B Enterprise-145 DeepSeek-Coder Claude Sonnet 4.6 GPT-5.4-mini

0.714 0.739 0.561 0.718 0.711

0.625 0.520 0.505 0.101 0.108

0.481 0.490 0.506 0.708 0.629

0.436 0.559 0.493 0.729 0.746

0.161 0.150 0.242 0.219 0.195

0.199 0.266 0.253 0.633 0.627

0.088 0.076 0.155 0.098 0.086

0.106 0.169 0.168 0.595 0.591

0.188 0.178 0.294 0.218 0.185

0.227 0.316 0.319 0.668 0.695

0.193 0.168 0.326 0.180 0.183

0.210 0.322 0.316 0.760 0.799

RSchema

CodeLlama-13B Llama-3.1-8B DeepSeek-Coder Claude Sonnet 4.6 GPT-5.4-mini

0.364 0.461 0.353 0.501 0.519

0.339 0.348 0.390 0.468 0.469

0.980 0.975 0.988 0.945 0.890

0.994 0.991 0.991 0.994 0.992

0.692 0.526 0.933 0.462 0.414

0.889 0.710 0.950 0.985 0.987

0.547 0.435 0.528 0.389 0.360

0.555 0.543 0.463 0.349 0.351

0.621 0.467 0.907 0.471 0.491

0.883 0.790 0.932 0.994 0.991

0.646 0.479 0.928 0.469 0.473

0.871 0.758 0.952 0.988 0.989

SchemaBench

CodeLlama-13B Llama-3.1-8B DeepSeek-Coder Claude Sonnet 4.6 GPT-5.4-mini

0.581 0.647 0.419 0.622 0.663

0.443 0.497 0.403 0.212 0.200

0.777 0.708 0.790 0.830 0.741

0.863 0.898 0.838 0.914 0.958

0.369 0.242 0.499 0.315 0.251

0.574 0.449 0.649 0.868 0.923

0.241 0.167 0.339 0.221 0.173

0.367 0.307 0.401 0.717 0.737

0.411 0.267 0.606 0.392 0.291

0.557 0.528 0.680 0.899 0.942

0.313 0.201 0.507 0.323 0.228

0.485 0.428 0.629 0.869 0.909

natural language description, missing structural details should be stated explicitly.

translation metrics such as BLEU, ROUGE-L, and BERTScore do not reliably indicate whether a description preserves the original schema. We recommend evaluating schema comprehension through structural reconstruction, with fidelity reported separately for tables, attributes, domain, entity, and referential integrity. Schema Coverage Rate (SCR) additionally measures identifier preservation.

Validate domain and referential constraints. Even when LLMs recover tables and relationships accurately, they often struggle with data types and nullability. Domain constraints, primary keys, and foreign keys should therefore be validated before deployment. The masking experiment shows that LLMs often infer plausible relationships from column names and existing constraints, but these need not reflect the intended design and should be checked against application requirements.

Account for schema complexity and model roles. Structural preservation deteriorates as schema size grows, even under detailed prompting. A model that describes a schema well is not necessarily a good generator, so model selection should

Evaluate structural fidelity beyond text similarity. Machine

11

TABLE IX E3: C ONSTRUCTOR ISOLATION USING FIXED GPT-5.4- MINI DETAILED DESCRIPTIONS (N = 765). M EAN N GED AND FOUR - DIMENSIONAL HALLUCINATION (↓), AND MICRO - AVERAGED STRUCTURAL F1 (↑). B EST VALUES PER DATASET AND METRIC IN BOLD .

Structural F1 ↑

Dataset

Constructor

nGED ↓

Hall. ↓ Tables

Attr.

Domain

Entity

Ref.

Enterprise-145

CodeLlama-13B Llama-3.1-8B DeepSeek-Coder Claude Sonnet 4.6 GPT-5.4-mini

0.324 0.340 0.549 0.047 0.058

0.085 0.071 0.120 0.027 0.026

0.553 0.596 0.492 0.758 0.753

0.479 0.294 0.167 0.703 0.683

0.315 0.277 0.117 0.685 0.664

0.479 0.489 0.348 0.744 0.720

0.460 0.528 0.296 0.847 0.816

RSchema

CodeLlama-13B Llama-3.1-8B DeepSeek-Coder Claude Sonnet 4.6 GPT-5.4-mini

0.369 0.493 0.383 0.468 0.471

0.020 0.020 0.073 0.009 0.010

0.987 0.989 0.940 0.994 0.993

0.986 0.986 0.807 0.991 0.990

0.483 0.343 0.508 0.351 0.345

0.981 0.976 0.806 0.995 0.995

0.969 0.970 0.802 0.994 0.991

SchemaBench

CodeLlama-13B Llama-3.1-8B DeepSeek-Coder Claude Sonnet 4.6 GPT-5.4-mini

0.272 0.369 0.550 0.194 0.198

0.054 0.058 0.096 0.024 0.025

0.760 0.806 0.649 0.964 0.961

0.697 0.491 0.251 0.945 0.921

0.527 0.370 0.184 0.773 0.745

0.714 0.711 0.523 0.957 0.951

0.623 0.672 0.423 0.930 0.934

TABLE X E4: D IRECT RECALL BY HEURISTIC INFERABILITY (GPT-4 O - MINI ; OBSERVED - CASE OUTPUTS ). PARENTHESES SHOW ELIGIBLE GOLD ELEMENT COUNTS .

Masked dimension MT Tables MA Attributes MD Domain ME Entity MR Referential

Inferable

TABLE XII E5: M EAN ROUND - TRIP LATENCY, TOKEN USAGE , AND API COST UNDER BASIC (B) AND DETAILED (D) PROMPTING . Dataset

Non-inferable

0.350 (2,555) 0.197 (4,272) 0.611 (9,254) 0.187 (42,594) 0.409 (1,574) 0.479 (35,573) 0.872 (2,161) 0.635 (2,608) 0.687 (4,214) 0.288 (1,246)

TABLE XI E4: PAIRED D IRECT AND ROUND - TRIP RECALL OF HEURISTIC - INFERABLE ELEMENTS . ROUND - TRIP RECALL IS AVERAGED OVER AVAILABLE DESCRIBERS . R ETENTION IS ROUND - TRIP /D IRECT RECALL . D OMAIN USES JOINT DATA - TYPE AND NULLABILITY MATCHING .

Dimension

Gold N Direct

RT

Retention

MT Tables MA Attributes MD Domain ME Entity MR Referential

2,555 9,254 1,574 2,087 4,197

0.120 0.487 0.032 0.625 0.444

0.344 0.797 0.078 0.712 0.645

0.350 0.611 0.409 0.878 0.688

Describer

Latency (s) ↓

Tokens ↓

Cost (USD) ↓

B

D

B

D

B

D

RSchema

GPT-5.4-mini 68.4 Claude Sonnet 4.6 72.5

65.8 86.3

5750 6293

7444 0.0080 0.0116 8410 0.0186 0.0343

SchemaBench

GPT-5.4-mini 108.8 130.1 9496 12451 0.0181 0.0249 Claude Sonnet 4.6 134.8 145.0 10243 13022 0.0341 0.0554

Enterprise-145

GPT-5.4-mini 132.5 139.4 11231 13700 0.0194 0.0250 Claude Sonnet 4.6 165.9 164.9 12056 14248 0.0357 0.0524

correctness and that models recover relational constraints more effectively than domain information. These results encourage the importance of explicit constraint-aware prompting, perdimension evaluation, and validation of inferred schema elements. Future work will explore agentic AI frameworks, external schema-aware knowledge bases, and human-in-the-loop evaluation with LLM-as-a-Judge to assess semantic and structural fidelity. We also aim to develop an end-to-end framework integrating schema generation, verbalization, reconstruction, and validation, with unified metrics for evaluating both directions of the complete round-trip process.

treat the two tasks independently rather than rely on general LLM rankings. For large or complex schemata, additional structural validation is needed to identify omitted attributes and relationships.

AI-G ENERATED C ONTENT ACKNOWLEDGMENT OpenAI ChatGPT and Cursor were used selectively to assist with experimental code development, debugging, writing the paper, and the preparation of certain figures. All research decisions, experimental results, and interpretations were verified by the authors.

VII. C ONCLUSION AND F UTURE W ORK We presented SchemaBridge, a benchmark for evaluating relational schema design, comprehension, and structural preservation across 902 schemata. Our experiments show that given natural language requirements often underspecify schema-critical information, while detailed descriptions generally improve round-trip fidelity. We further demonstrate that text-similarity metrics do not reliably reflect structural

12

R EFERENCES

[21] S. Chafik, “SchemaBench,” 2026. [Online]. Available: https://doi.org/ 10.5281/zenodo.20151089 [22] H. Kalumin and A. Deshpande, “When the application layer is disposable: Putting integrity constraints back in the database,” arXiv preprint arXiv:2610.36418, 2026. [23] C. Cleverdon, “The cranfield tests on index language devices,” in Aslib proceedings, vol. 19, no. 6, 1967, pp. 173–194. [24] C. v. Rijsbergen, Information retrieval. Butterworth-heinemann, 1979. [25] K. Riesen and H. Bunke, “Approximate graph edit distance computation by means of bipartite graph matching,” Image and Vision Computing, vol. 27, no. 7, pp. 950–959, 2009. [26] K. Papineni, S. Roukos, T. Ward, and W.-J. Zhu, “Bleu: a method for automatic evaluation of machine translation,” in Annual Meeting of the Association for Computational Linguistics, 2002, pp. 311–318. [27] C.-Y. Lin, “ROUGE: A package for automatic evaluation of summaries,” in Text Summarization Branches Out. Association for Computational Linguistics, 2004, pp. 74–81. [28] T. Zhang, V. Kishore, F. Wu, K. Q. Weinberger, and Y. Artzi, “BERTScore: Evaluating text generation with BERT,” in International Conference on Learning Representations, 2020. [29] J. Motl and O. Schulte, “The ctu prague relational learning repository,” 2015. [Online]. Available: https://arxiv.org/abs/1511.03086 [30] B. Roziere, J. Gehring, F. Gloeckle, S. Sootla, I. Gat, X. E. Tan, Y. Adi, J. Liu, R. Sauvestre, T. Remez et al., “Code Llama: Open foundation models for code,” arXiv preprint arXiv:2308.12950, 2023. [31] D. Guo, Q. Zhu, D. Yang, Z. Xie, K. Dong, W. Zhang, G. Chen, X. Bi, Y. Wu, Y. K. Li, F. Luo, Y. Xiong, and W. Liang, “DeepSeek-Coder: When the large language model meets programming—the rise of code intelligence,” arXiv preprint arXiv:2401.14196, 2024. [32] A. Grattafiori, A. Dubey, A. Jauhri, A. Pandey, A. Kadian, A. Al-Dahle et al., “The Llama 3 herd of models,” arXiv preprint arXiv:2407.21783, 2024. [33] Anthropic, “Introducing claude sonnet 4.6,” Anthropic, Feb. 2026. [Online]. Available: https://www.anthropic.com/news/claude-sonnet-4-6 [34] OpenAI , “Introducing GPT-5.4 mini and nano,” OpenAI, Mar. 2026. [Online]. Available: https://openai.com/index/ introducing-gpt-5-4-mini-and-nano/ [35] OpenAI, “GPT-4o mini: Advancing cost-efficient intelligence,” OpenAI, Jul. 2024. [Online]. Available: https://openai.com/index/ gpt-4o-mini-advancing-cost-efficient-intelligence/

[1] D. Gao, H. Wang, Y. Li, X. Sun, Y. Qian, B. Ding, and J. Zhou, “Text-toSQL empowered by large language models: A benchmark evaluation,” Proceedings of the VLDB Endowment, vol. 17, no. 5, pp. 1132–1145, 2024. [2] M. Pourreza, H. Li, R. Sun, Y. Chung, S. Talaei, G. T. Kakkar, Y. Gan, A. Saberi, F. Ozcan, and S. Ö. Arik, “CHASE-SQL: multi-path reasoning and preference optimized candidate selection in text-to-sql,” in The Thirteenth International Conference on Learning Representations, 2025. [3] A. Koukouvinis, G. Katsogiannis-Meimarakis, and G. Koutrika, “Comparison and analysis of value linking in text-to-sql systems: [experiments & analysis],” Proc. ACM Manag. Data, vol. 4, no. 3, pp. 152:1–152:26, 2026. [4] V. Zhong, C. Xiong, and R. Socher, “Seq2sql: Generating structured queries from natural language using reinforcement learning,” arXiv preprint arXiv:1709.00103, 2017. [5] T. Yu, R. Zhang, K. Yang, M. Yasunaga, D. Wang, Z. Li, J. Ma, I. Li, Q. Yao, S. Roman, Z. Zhang, and D. R. Radev, “Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-SQL task,” in Conference on Empirical Methods in Natural Language Processing, 2018, pp. 3911–3921. [6] J. Li, B. Hui, G. Qu, J. Yang, B. Li, B. Li, B. Wang, B. Qin, R. Geng, N. Huo et al., “Can LLM already serve as a database interface? a big bench for large-scale database grounded text-to-SQLs,” Advances in Neural Information Processing Systems, vol. 36, pp. 42 330–42 357, 2023. [7] K. Xu, L. Wu, Z. Wang, Y. Feng, and V. Sheinin, “SQL-to-text generation with graph-to-sequence model,” in Conference on Empirical Methods in Natural Language Processing, 2018, pp. 931–936. [8] V. Câmara, R. Mendonca-Neto, A. Silva, and L. Cordovil, “A large language model approach to SQL-to-text generation,” in IEEE International Conference on Consumer Electronics, 2024, pp. 1–4. [9] A. Al-Lawati, J. Lucas, and P. Mitra, “Semantic captioning: Benchmark dataset and graph-aware few-shot in-context learning for SQL2Text,” in International Conference on Computational Linguistics, 2025, pp. 8026–8042. [10] S. Chakrabarti, C. Ma, A. Khan, and S. Link, “SQL-to-text generation with weighted-AST few-shot prompting,” in Databases Theory and Applications: 36th Australasian Database Conference (ADC 2025), ser. Lecture Notes in Computer Science, vol. 16391. Springer, 2026, pp. 365–379. [11] Q. Wang, Y. Li, Y. Feng, S. Chen, Z. Li, P. Zhang, Z. Shi, Y. Dou, Z. Huang, Z. Si et al., “SchemaAgent: A multi-agent framework for generating relational database schemas,” arXiv e-prints, pp. arXiv–2503, 2025. [12] E. F. Codd, “A relational model of data for large shared data banks,” Communications of the ACM, vol. 13, no. 6, pp. 377–387, 1970. [13] P. P.-S. Chen, “The entity-relationship model—toward a unified view of data,” ACM Transactions on Database Systems, vol. 1, no. 1, pp. 9–36, 1976. [14] P. A. Bernstein, “Synthesizing third normal form relations from functional dependencies,” ACM Transactions on Database Systems (TODS), vol. 1, no. 4, pp. 277–298, 1976. [15] T. Papenbrock, J. Ehrlich, J. Marten, T. Neubert, J.-P. Rudolph, M. Schönberg, J. Zwiener, and F. Naumann, “Functional dependency discovery: An experimental evaluation of seven algorithms,” Proceedings of the VLDB Endowment, vol. 8, no. 10, pp. 1082–1093, 2015. [16] T. Papenbrock and F. Naumann, “Data-driven schema normalization,” in International Conference on Extending Database Technology, 2017, pp. 342–353. [17] D. K. Deeptimahanti and R. Sanyal, “Semi-automatic generation of UML models from natural language requirements,” in India Software Engineering Conference, 2011, pp. 165–174. [18] G. Lucassen, M. Robeer, F. Dalpiaz, J. M. E. Van Der Werf, and S. Brinkkemper, “Extracting conceptual models from user stories with visual narrator,” Requirements Engineering, vol. 22, no. 3, pp. 339–358, 2017. [19] M. Pourreza and D. Rafiei, “DIN-SQL: Decomposed in-context learning of text-to-SQL with self-correction,” in Advances in Neural Information Processing Systems, vol. 36, 2023, pp. 36 339–36 348. [20] A. Avignone, A. Tierno, A. Fiori, and S. Chiusano, “Exploring large language models’ ability to describe entity-relationship schema-based conceptual data models,” Information, vol. 16, no. 5, p. 368, 2025.

13

Related documents

Record · ID 1653085 · SHA-256 6143d94f727a61fd
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive