fw#model #schema-linking
A Text2SQL model
We assume that the sub-objectives of the model include:
DTS-SQL proposes mainly the segregation of sub-objectives into their own sub-models. Each sub-model is then fine-tuned.
Schema linking involves identifying the pertinent tables (and columns) in a database schema
Priorly, schema linking has primarily been accomplished through in-context learning methods or implicitly during the fine-tuning process for SQL generation[2].
The objective is to find the optimal model
After identifying the appropriate tables for SQL generation, the next step is to utilize a model that constructs the SQL query based on the question and the schema of the correct tables.
This can be thought as the original Text2SQL problem, with the additional assumption that the Schema-Linking is optimal.
The objective is to find the optimal model
Finally, the target model
Model | Schema-Linking | EX | EM |
---|---|---|---|
Mistral 7B | All Tables | 71.9 | 70.9 |
Mistral 7B | DTS-SQL | 78.6 | 73.3 |
Mistral 7B | Perfect Schema-Linking | 86.6 | 80.7 |
DeepSeek 7B | All Tables | 82.1 | 69.0 |
DeepSeek 7B | DTS-SQL | 85.5 | 79.1 |
DeepSeek 7B | Perfect Schema-Linking | 90.3 | 84.2 |