Research map / Large language models / Language, safety and interpretability
Leveraging Code to Improve In-Context Learning for Semantic Parsing
Ben Bogin, Shivanshu Gupta, Peter Clark, Ashish Sabharwal
Allen Institute for AI · University of California, Irvine
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use Python with domain description instead of DSL output with only demonstrations | ICL semantic parsing prompts · GeoQuery length split (10 demonstrations) | execution accuracy: +57 points absolute | Improved |
| use Python with domain description instead of DSL, with a single demonstration | ICL semantic parsing prompts · GeoQuery (1 demonstration) | execution accuracy: 17% -> 77% | Improved |
| switch the output language between Python, JavaScript and Scala (ablation) | StarCoder ICL prompts · semantic parsing benchmarks | execution accuracy | No clear effect |
Open problems in in-context learning analysis
Which in-context learning methods hold up beyond English classification on small open models, and what do they cost?
- Only a few small or medium open models were tested. · 14 papers state it
- The method needs many extra LLM calls or passes. · 13 papers state it
- Evaluated on English data only, with other languages untested. · 12 papers state it
Closest papers by meaning
- Mitigating Data Scarcity in Semantic Parsing across Languages with the Multilingual Semantic Layer and its Dataset (ACL 2024 · similarity 0.89)
- Improving Generalization in Language Model-based Text-to-SQL Semantic Parsing: Two Simple Semantic Boundary-based Techniques (ACL 2023 · similarity 0.89)
- kNN-ICL: Compositional Task-Oriented Parsing Generalization with Nearest Neighbor In-Context Learning (NAACL 2024 · similarity 0.89)
- Few-Shot Semantic Parsing with Language Models Trained on Code (NAACL 2022 · similarity 0.89)
- In-context Learning Generalizes, But Not Always Robustly: The Case of Syntax (NAACL 2024 · similarity 0.89)
- In-Context Language Learning: Architectures and Algorithms (ICML 2024 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.