AutoThinkSQL introduces an auto-thinking mechanism for Text-to-SQL models, allowing them to bypass Chain-of-Thought reasoning for simple queries. Trained using both Supervised Fine-Tuning and Direct Preference Optimization, the model dynamically chooses when to engage in deep deduction. This approach reduces inference overhead on straightforward lookups while maintaining performance on complex tasks.
- Reduces latency by skipping reasoning steps for simple SQL queries.
- Leverages SFT and DPO to teach dynamic reasoning decisions.
- Improves efficiency without sacrificing accuracy on complex benchmarks.
- Demonstrated gains on Qwen3-Coder-30B-A3B architecture.