mlsanityData to 26 Nov 2026

Self-Refining Prompt Induction for Streaming Text-to-SQL

arXiv 2611.00960 ↗Submitted 31 Oct 2026cs.CL cs.AI cs.DBcited by 0

Not on the map. Why?

Abstract (arXiv)

Text-to-SQL assistants for streaming engines must handle dialect-specific types, windowing rules, and temporal semantics, including constructs poorly handled by generic prompts. We present Self-Refining Prompt Induction (SRPI), an offline method that converts generation failures into reusable dialect instructions while keeping model weights fixed. A Refiner revises the Generator's prompt using reference-conditioned feedback from three LLM judges; a sampled regression guard checks earlier successes, and a separate Compressor reduces prompt length. Inference uses the frozen prompt without retrieval or query repair. We evaluate cross-domain and cross-model transfer on Confluent Cloud Flink SQL using a controlled synthetic workload seeded by 30 expert-written examples, with 335 induction examples and 257 questions from held-out domains. The same induced prompt improves mean judge scores across seven Generators by 7.1-19.2 percentage points, including an increase from 85.3% to 97.5% for the induction model. A separate compression study reduces prompt length by 52.7% with a 0.19-percentage-point score decrease. An assistant using the induced prompt is in early access, with initial user feedback to inform subsequent refinement.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 21 of its 72 references that are in the map. Submitted 31 Oct 2026.

Builds on

21 of 72 references.

References · 21

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 9,360
  2. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,799
  3. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,638
  4. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,205
  5. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,102
  6. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 747
  7. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 711
  8. 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 530
  9. 2024Replacing Judges with Juries: Evaluating LLM Generations with a Panel of Diverse Modelscited by 381
  10. 2026DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compressioncited by 221
  11. 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 213
  12. 2020Semantic Evaluation for Text-to-SQL with Distilled Test Suitescited by 137
9 more
  1. 2024BEAVER: An Enterprise Benchmark for Text-to-SQLcited by 51
  2. 2024SQL-GEN: Bridging the Dialect Gap for Text-to-SQL Via Synthetic Data And Model Mergingcited by 19
  3. 2025Extractive Schema Linking for Text-to-SQLcited by 16
  4. 2026Exploiting LLM-as-a-Judge Disposition on Free Text Legal QA via Prompt Optimizationcited by 2
  5. 2026PolySQL: Scaling Text-to-SQL Evaluation Across SQL Dialects via Automated Backend Isomorphismcited by 2
  6. 2026TAHOE: Text-to-SQL with Automated Hint Optimization from Experiencecited by 2
  7. 2019One SQL to Rule Them Allcited by 1
  8. 2026Dial: A Knowledge-Grounded Dialect-Specific NL2SQL Systemcited by 1
  9. 2026Closing the Cross-Dialect Gap: Query Plans as a Portable Interface in Text-to-SQLcited by 1

Built on by

Not cited yet.