MTSQL-R1 Targets the Short-Horizon Habits That Break Multi-Turn Text-to-SQL

burkov · x · 2026-10-20

Multi-turn Text-to-SQL means converting a user's back-and-forth conversation into runnable database queries that stay consistent with earlier requests and the underlying schema. It matters because conversational data interfaces are increasingly common in business, and a query that fails to run or silently contradicts an earlier instruction can return wrong answers or expose the wrong data.

The article argues most existing systems treat this as one-shot translation: they generate a query per turn without executing it, checking it against the conversation, or fixing mistakes. This short-horizon habit is the main cause of non-executable or incoherent queries across turns.

To address this, it introduces and evaluates MTSQL-R1, a training framework aimed at producing executable, conversation-consistent SQL in multi-turn settings.

Original post →

More from coding & agent

coding & agent channel →