[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-84323-en":3,"doc-seo-84323-105":29,"detail-sidebar-cat-0-en-105":83},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},84323,687197207919,"Theodora","https://ap-avatar.wpscdn.com/avatar/a000253d6f5f7c60be?x-image-process=image/resize,m_fixed,w_180,h_180&k=1779446848396160552",8,"Research & Report","SQuaD-SQL Efficient Text-to-SQL with Small Language Models via LLM-Guided Knowledge Distillation","Text-to-SQL enables natural-language access to structured databases, but deploying large language models is hindered by high compute needs in resource-constrained environments. SQuaD-SQL (Small-Qualified and Distilled for SQL) trains small language models to approach LLM-level performance using knowledge distillation and synthetic data generation. The method uses LLM-based structured data creation with task prompts, parameter-efficient fine-tuning (e.g., LoRA) on a single consumer GPU, and domain-adaptive synthetic data to improve targeted transfer. Results on WikiSQL report 86.9% execution accuracy on test, with faster inference and lower memory usage.","SQuaD-SQL: Efficient Text-to-SQL with Small Language Models via  \nLLM-Guided Knowledge Distillation  \nWangyu Wu 1,5 , Xiaojian Lin4 , Rong Fu2 , Zaiyang Yu3 , Xuhang Chen7 , Wenjun Yu6 , Zhenhong Chen5∗  \n1The University of Liverpool 2University of Macau  \n3University of Chinese Academy of Sciences 4Tsinghua University 5 Microsoft  \n6 Shanghai University of International Business and Economics 7 Huizhou University  \narXiv :2607 .08 16 1v 1 [ cs .CL] 9 Jul 2026  \nAbstract—Text-to-SQL is a fundamental task in natural language processing that enables users to interact with structured databases using natural language. While large language models (LLMs) have demonstrated remarkable performance on this task, their substantial computational requirements hinder deployment in resource-constrained settings. In this paper, we introduce SQuaD-SQL (Small-Qualified and Distilled for SQL), a novel approach that empowers small language models (SLMs) to approach the performance of LLMs on the Text-to-SQL task while significantly improving efficiency through knowledge distillation and synthetic data generation. Our method comprises three key components: (1) LLM-based synthetic data generation, where structured knowledge is extracted from LLMs via carefully designed prompting strategies; (2) parameter-efficient fine-tuning, enabling full model training on a single consumergrade GPU; and (3) domain-adaptive fine-tuning, where domainspecific synthetic data further enhances performance in targeted domains. Experiments on the WikiSQL dataset demonstrate that SQuaD-SQL achieve execution accuracies of 86.9% in Test data, respectively, approaching the performance of LLMs, while offering faster inference and lower memory usage. These results suggest that, with proper training strategies, SLMs can serve as practical and efficient alternatives for Text-to-SQL applications in resource-limited environments.  \nI. INTRODUCTION  \nText-to-SQL enables users to query structured databases using natural language, significantly lowering the barrier for database access. Early rule- or template-based systems lacked scalability, while neural models such as Seq2SQL [1] and SQLNet [2] improved performance via sketch-based decoding and reinforcement learning. Recent advances in natural language interfaces to structured data, particularly Text-to-SQL, have largely followed a scale-driven paradigm. Text-to-SQL enables users to query structured databases using natural language, significantly lowering the barrier for database access. Early rule-or template-based systems lacked scalability, while neural models such as Seq2SQL [1] and SQLNet [2] improved performance via sketch-based decoding and reinforcement learning. Subsequent work introduced more complex datasets such as Spider [3] and structure-aware architectures like RAT-SQL [4] . Pretrained tabular models, including TAPAS [5] and TaBERT [6], further advanced performance by incorporating schema and table representations.  \n∗ Corresponding authors: [daisychen37@foxmail.com](daisychen37@foxmail.com)  \nFig. 1. Overview of the proposed teacher–student learning framework. A large language model provides structured instructional signals that guide a compact student model to internalize Text-to-SQL reasoning patterns without relying on manual annotation.  \nMore recently, large language models (LLMs) [7],[8] have demonstrated strong reasoning capabilities on Text-to-SQL tasks, often achieving state-of-the-art performance. However, these gains come at the cost of substantial computational resources. LLM-based systems [9], [10], [11], [12] typically suffer from high inference latency, expensive deployment requirements involving multiple high-end GPUs, and resourceintensive training and fine-tuning procedures. Such demands diverge sharply from the efficiency observed in human learning and significantly limit the practical deployment of Textto-SQL systems in real-world, resource-constrained settings. This contrast raises a fundament","cbCaioChSegGylml","https://ap.wps.com/l/cbCaioChSegGylml","pdf",847838,1,7,"English","en",105,"# Introduction\n## Teacher–student learning framework\n## Efficient training and domain adaptation\n## Experimental evaluation","[{\"question\":\"What training strategy enables efficient learning for small language models?\",\"answer\":\"SQuaD-SQL uses parameter-efficient fine-tuning such as LoRA, allowing training on a single consumer-grade GPU. It also applies domain-adaptive fine-tuning using domain-specific synthetic SQL examples to improve generalization.\"}]",1784194820,18,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":78,"head_meta":80,"extra_data":82,"updated_unix":27},"squad-sql-efficient-text-to-sql-with-small-language-models-via-llm-guided-knowledge-distillation","",{"@graph":35,"@context":77},[36,53,68],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/squad-sql-efficient-text-to-sql-with-small-language-models-via-llm-guided-knowledge-distillation/84323/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-17","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71],{"name":72,"@type":73,"acceptedAnswer":74},"What training strategy enables efficient learning for small language models?","Question",{"text":75,"@type":76},"SQuaD-SQL uses parameter-efficient fine-tuning such as LoRA, allowing training on a single consumer-grade GPU. It also applies domain-adaptive fine-tuning using domain-specific synthetic SQL examples to improve generalization.","Answer","https://schema.org",{"og:url":51,"og:type":79,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":81,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":84},[85,89,93,97,102,107,111,114,119,122,126],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":86,"show_sort_weight":87,"slug":88},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":90,"show_sort_weight":91,"slug":92},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":94,"show_sort_weight":95,"slug":96},"Exam",70,"exam",{"id":98,"doc_module":4,"doc_module_name":45,"category_name":99,"show_sort_weight":100,"slug":101},5,"Comic",60,"comic",{"id":103,"doc_module":4,"doc_module_name":45,"category_name":104,"show_sort_weight":105,"slug":106},6,"Technology",50,"technology",{"id":21,"doc_module":4,"doc_module_name":45,"category_name":108,"show_sort_weight":109,"slug":110},"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":112,"slug":113},30,"research-report",{"id":115,"doc_module":4,"doc_module_name":45,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":45,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":45,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":45,"category_name":128,"show_sort_weight":98,"slug":129},19,"General","general"]