Pith. sign in

REVIEW 1 cited by

SQL-Encoder: Improving NL2SQL In-Context Learning Through a Context-Aware Encoder

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2403.16204 v1 pith:TNO3ZBXZ submitted 2024-03-24 cs.CL cs.DBcs.HC

classification cs.CLcs.DBcs.HC
keywords similaritymodelmodelsin-contextlearningqueriesstructuralcompetitive
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Detecting structural similarity between queries is essential for selecting examples in in-context learning models. However, assessing structural similarity based solely on the natural language expressions of queries, without considering SQL queries, presents a significant challenge. This paper explores the significance of this similarity metric and proposes a model for accurately estimating it. To achieve this, we leverage a dataset comprising 170k question pairs, meticulously curated to train a similarity prediction model. Our comprehensive evaluation demonstrates that the proposed model adeptly captures the structural similarity between questions, as evidenced by improvements in Kendall-Tau distance and precision@k metrics. Notably, our model outperforms strong competitive embedding models from OpenAI and Cohere. Furthermore, compared to these competitive models, our proposed encoder enhances the downstream performance of NL2SQL models in 1-shot in-context learning scenarios by 1-2\% for GPT-3.5-turbo, 4-8\% for CodeLlama-7B, and 2-3\% for CodeLlama-13B.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Taming SQL Complexity: LLM-Based Equivalence Evaluation for Text-to-SQL

    cs.CL 2025-06 reject novelty 4.0 of 10

    An LLM-based pipeline for judging SQL query equivalence achieves high accuracy on the authors' own data, but test-set fitting and a self-defined ground truth weaken the results.

Pith tools