Skip to main content
QUICK REVIEW

[Paper Review] ColloQL: Robust Cross-Domain Text-to-SQL Over Search Queries

Karthik Radhakrishnan, Arvind Srikantan|arXiv (Cornell University)|Oct 19, 2020
Topic ModelingComputer Science24 references7 citations
TL;DR

This paper introduces ColloQL, a robust text-to-SQL model that handles noisy, colloquial, search-style queries through data augmentation and content-aware BERT modeling with two sampling strategies—random and relevance-based sampling. It achieves state-of-the-art performance on WikiSQL (84.9% logical form accuracy and 90.7% execution accuracy) without execution-guided decoding, while also introducing a new benchmark dataset of 400 simplified, ambiguous queries for cross-domain evaluation.

ABSTRACT

Translating natural language utterances to executable queries is a helpful technique in making the vast amount of data stored in relational databases accessible to a wider range of non-tech-savvy end users. Prior work in this area has largely focused on textual input that is linguistically correct and semantically unambiguous. However, real-world user queries are often succinct, colloquial, and noisy, resembling the input of a search engine. In this work, we introduce data augmentation techniques and a sampling-based content-aware BERT model (ColloQL) to achieve robust text-to-SQL modeling over natural language search (NLS) questions. Due to the lack of evaluation data, we curate a new dataset of NLS questions and demonstrate the efficacy of our approach. ColloQL's superior performance extends to well-formed text, achieving 84.9% (logical) and 90.7% (execution) accuracy on the WikiSQL dataset, making it, to the best of our knowledge, the highest performing model that does not use execution guided decoding.

Motivation & Objective

  • To address the challenge of translating noisy, short, and ambiguous search-style natural language queries into executable SQL queries.
  • To improve generalization of text-to-SQL models beyond well-formed, grammatically complete sentences commonly used in existing benchmarks.
  • To reduce inference cost and memory usage when incorporating table content for disambiguation by using sampled table content instead of full table scans.
  • To create a new benchmark dataset of 400 simplified, ambiguous queries to evaluate performance on real-world search-style input.
  • To demonstrate that content-aware BERT modeling with sampling strategies enhances robustness and accuracy on both colloquial and standard text-to-SQL tasks.

Proposed method

  • Data augmentation via templates to generate synthetic, short, and colloquial-style questions from well-formed sentences in the WikiSQL dataset.
  • A content-aware BERT encoder that incorporates sampled table content—either randomly or based on relevance—to disambiguate ambiguous columns in queries.
  • Random sampling of table values to reduce memory and inference overhead while maintaining disambiguation capability.
  • Relevance-based sampling that selects table values most likely to resolve ambiguity by matching tokens in the question to column types and data distributions.
  • Offline generation of samples per column to enable fast inference and support for personalization or distribution shift adaptation.
  • Model fine-tuning on augmented data and evaluation on both the original WikiSQL and a newly curated dataset of simplified queries.

Experimental results

Research questions

  • RQ1Can data augmentation improve text-to-SQL models’ robustness to colloquial, short, and ambiguous search-style queries?
  • RQ2How do different sampling strategies for incorporating table content affect disambiguation performance and inference efficiency?
  • RQ3Can a content-aware BERT model achieve state-of-the-art performance on standard benchmarks like WikiSQL without execution-guided decoding?
  • RQ4To what extent does content sampling reduce the need for full table scans while preserving accuracy in ambiguous query scenarios?
  • RQ5How effective is the proposed model on a new benchmark of simplified, ambiguous queries designed to test robustness to missing or implicit column references?

Key findings

  • ColloQL achieves 84.9% logical form accuracy and 90.7% execution accuracy on the WikiSQL test set, outperforming all prior models that do not use execution-guided decoding.
  • The model maintains high performance on simplified, ambiguous queries—achieving 97.2% accuracy in predicting where-clause columns—demonstrating robustness to colloquial input.
  • Content augmentation via templates improves generalization, increasing logical form accuracy on the original WikiSQL dev set from 79.5% to 80.6% when retraining with augmented data.
  • Relevance-based sampling achieves superior performance (87.0% LF accuracy on simplified queries) compared to random sampling (83.2% LF accuracy), especially in ambiguous settings.
  • The inference time for ColloQL with relevance sampling is 15 seconds on a 7M-row table with 18GB RAM, significantly faster than NL2SQL base (200s) and feasible for real-time use.
  • Error analysis reveals that aggregation prediction errors stem from noisy labels in WikiSQL, while select column errors arise from ambiguity in column role interpretation, especially in telegraphic queries with abbreviated column names.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.