mlsanityData to 13 Oct 2026

Semantic Captioning: Benchmark Dataset and Graph-Aware Few-Shot In-Context Learning for SQL2Text

arXiv 2501.03166 ↗First posted 6 Jan 2025cs.CL cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have demonstrated remarkable performance in various NLP tasks, including semantic parsing, which translates natural language into formal code representations. However, the reverse process, translating code into natural language, termed semantic captioning, has received less attention. This task is becoming increasingly important as LLMs are integrated into platforms for code generation, security analysis, and educational purposes. In this paper, we focus on the captioning of SQL query (SQL2Text) to address the critical need for understanding and explaining SQL queries in an era where LLM-generated code poses potential security risks. We repurpose Text2SQL datasets for SQL2Text by introducing an iterative ICL prompt using GPT-4o to generate multiple additional utterances, which enhances the robustness of the datasets for the reverse task. We conduct our experiments using in-context learning (ICL) based on different sample selection methods, emphasizing smaller, more computationally efficient LLMs. Our findings demonstrate that leveraging the inherent graph properties of SQL for ICL sample selection significantly outperforms random selection by up to 39% on BLEU score and provides better results than alternative methods. Dataset and codes are published: https://github.com/aliwister/ast-icl.

Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Builds on 27 of its 46 references that are in the map. First posted on arXiv 6 Jan 2025.

Builds on

27 of 46 references.

References · 27

  1. 2020Language Models are Few-Shot Learnerscited by 32,320
  2. 2023GPT-4 Technical Reportcited by 18,278
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,107
  4. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,480
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,130
  6. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,424
  7. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,133
  8. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 925
  9. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 680
  10. 2023Using an LLM to Help With Code Understandingcited by 227
  11. 2019CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural Language Interfaces to Databasescited by 182
  12. 2019SParC: Cross-Domain Semantic Parsing in Contextcited by 142
15 more
  1. 2023Element-aware Summarization with Large Language Models: Expert-aligned Evaluation and Chain-of-Thought Methodcited by 76
  2. 2023In-Context Learning with Iterative Demonstration Selectioncited by 74
  3. 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 72
  4. 2020A Mathematical Exploration of Why Language Models Help Solve Downstream Taskscited by 71
  5. 2023Dr.ICL: Demonstration-Retrieved In-context Learningcited by 71
  6. 2023Large Language Models are In-Context Semantic Reasoners rather than Symbolic Reasonerscited by 63
  7. 2023SummIt: Iterative Text Summarization via ChatGPTcited by 54
  8. 2023From Sparse to Dense: GPT-4 Summarization with Chain of Density Promptingcited by 52
  9. 2023Fighting Fire with Fire: The Dual Role of LLMs in Crafting and Detecting Elusive Disinformationcited by 51
  10. 2023What Makes Good In-context Demonstrations for Code Intelligence Tasks with LLMs?cited by 47
  11. 2018SQL-to-Text Generation with Graph-to-Sequence Modelcited by 31
  12. 2023GPTutor: a ChatGPT-powered programming tool for code explanationcited by 23
  13. 2023Injecting the BM25 Score as Text Improves BERT-Based Re-rankerscited by 17
  14. 2023Exploring Demonstration Ensembling for In-context Learningcited by 8
  15. 2024SQLfuse: Enhancing Text-to-SQL Performance through Comprehensive LLM Synergycited by 7

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2026: 1.

1 paper.