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

DevFeed: [\[Experiment, Analysis, and Benchmark\] How well do LLMs comprehend and design relational database schemata?](<https://devfeed.tech/articles/experiment-analysis-and-benchmark-how-well-do-llms-comprehend-and-design-relational-database-schemata-132704.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.17044>)

Author: Sriom Chakrabarti, Sean Bin Yang, Arijit Khan, Sebastian Link

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [schema design](<https://devfeed.tech/topics/schema-design.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [rdbms](<https://devfeed.tech/topics/rdbms.md>), [Database](<https://devfeed.tech/topics/database.md>), [text2sql](<https://devfeed.tech/topics/text2sql.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [constraint](<https://devfeed.tech/tags/constraint.md>), [constructor](<https://devfeed.tech/tags/constructor.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [data-type](<https://devfeed.tech/tags/data-type.md>), [data-types](<https://devfeed.tech/tags/data-types.md>), [database](<https://devfeed.tech/tags/database.md>), [design](<https://devfeed.tech/tags/design.md>), [domain](<https://devfeed.tech/tags/domain.md>), [experiment](<https://devfeed.tech/tags/experiment.md>), [gpt](<https://devfeed.tech/tags/gpt.md>), [gpt-5-4](<https://devfeed.tech/tags/gpt-5-4.md>), [influence](<https://devfeed.tech/tags/influence.md>), [integrity](<https://devfeed.tech/tags/integrity.md>), [keys](<https://devfeed.tech/tags/keys.md>), [large-language-models-llms](<https://devfeed.tech/tags/large-language-models-llms.md>), [llms](<https://devfeed.tech/tags/llms.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [recovery](<https://devfeed.tech/tags/recovery.md>)

## AI overview

SchemaBridge evaluates six open-weight and proprietary LLMs on designing relational schemas from requirements, describing existing schemas, and preserving structure through a description round trip. Across 902 schemata, human-written requirements under-specify structure: no model exceeds 0.27 referential-integrity F1. Asking for complete descriptions raises GPT-5.4-mini's referential F1 on SchemaBench from 0.228 to 0.909, while BLEU, ROUGE-L, and BERTScore decrease. Round-trip fidelity depends on both the schema constructor and describer. Structural cues help recover keys and relationships, but data types and nullability are poorly retained together through verbalization.

## Source excerpt

arXiv:2611.17044v1 Announce Type: new 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-to-Text-to-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