Glossary · AI & ML

Fine-Tuning

The process of further training a pre-trained AI model on specific data to improve performance on a particular task.

Fine-tuning is a transfer learning technique where a pre-trained model is additionally trained on a smaller, task-specific dataset to improve its performance on that particular task. For text-to-SQL applications, fine-tuning involves training the base LLM on pairs of natural language questions and their correct SQL translations for specific database schemas. This produces a model that better understands domain-specific terminology, schema conventions, and query patterns. Fine-tuning approaches range from full model fine-tuning (updating all parameters) to parameter-efficient methods like LoRA (Low-Rank Adaptation) that update only a small subset of parameters.

In practice

How AI for Database applies it

AI for Database continuously improves its models with anonymized query patterns to deliver better results for common database tasks.
AI & ML · aifordatabase glossaryRead-only ✓

Fig — every answer ships with the tables, rows and SQL behind it.

See it on your own database

Connect read-only in minutes. Free models included.

Start free