A Review of Schema Representation and Compression Techniques in Large Language Models
With the increasing application of large language models (LLMs) in text-to-Structured Query Language (Text-to-SQL) and intelligent data querying, database schemas have become an important context that affects query understanding, schema linking, and SQL generation. Based on benchmarks including WikiSQL, Spider, BIRD, and Spider 2.0, this paper reviews six directions: natural-language representation and prompt construction, semantic representation and embedding, relevance modeling and dynamic selection, schema compression and token optimization, structural relation modeling and auxiliary information enhancement, and LLM-driven Text-to-SQL applications. This paper compares the publicly reported results of representative methods, including RESDSQL, CHESS, RSL-SQL, CodeS, DAIL-SQL, and MAC-SQL, as well as RAT-SQL, SDSQL, and LGESQL, and points out that schema compression is not simple text deletion. Instead, it combines retrieval, ranking, pruning, structural constraints, and dynamic sub-database construction to balance information retention and context cost. Existing research still has several prominent problems: relevance ranking has difficulty considering both semantic matching and join-path completeness; compression effectiveness lacks unified and comparable evaluation metrics; and some methods do not adequately report token costs and end-to-end latency. In addition, the generalization ability of related methods in complex, real-world business databases remains to be verified. In response to these problems, this paper summarizes research gaps concerning dynamic K values, unified compression metrics, end-to-end efficiency, and real-world database validation, and proposes directions such as a closed loop of retrieval, compression, generation, and execution verification.
Authors
- Qibin He
Institutions
- Minzu University of China (CN)
Publication Details
- Journal
- Computers and artificial intelligence.
- Published
- 2026-11-26
- DOI
- https://doi.org/10.70267/cai.v3n6.261276
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00