HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Pay More Attention to History: A Context Modelling Strategy for Conversational Text-to-SQL

Yuntao Li Hanchu Zhang Yutian Li Sirui Wang Wei Wu Yan Zhang

Pay More Attention to History: A Context Modelling Strategy for Conversational Text-to-SQL

Abstract

Conversational text-to-SQL aims at converting multi-turn natural language queries into their corresponding SQL (Structured Query Language) representations. One of the most intractable problems of conversational text-to-SQL is modelling the semantics of multi-turn queries and gathering the proper information required for the current query. This paper shows that explicitly modelling the semantic changes by adding each turn and the summarization of the whole context can bring better performance on converting conversational queries into SQLs. In particular, we propose two conversational modelling tasks in both turn grain and conversation grain. These two tasks simply work as auxiliary training tasks to help with multi-turn conversational semantic parsing. We conducted empirical studies and achieved new state-of-the-art results on the large-scale open-domain conversational text-to-SQL dataset. The results demonstrate that the proposed mechanism significantly improves the performance of multi-turn semantic parsing.

Code Repositories

juruomp/rat-sql-tc
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
text-to-sql-on-sparcRAT-SQL-TC + GAP
interaction match accuracy: 43.2
question match accuracy: 65.7

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Pay More Attention to History: A Context Modelling Strategy for Conversational Text-to-SQL | Papers | HyperAI