Zero and Few-shot Semantic Parsing with Ambiguous Inputs

Elias Stengel-Eskin, Kyle Rawlins, Benjamin Van Durme
2/12/2026

No official code found. Best implementation: esteng/ambiguous_parsing (6 stars, last commit 2023-06-02).

Abstract

Despite the frequent challenges posed by ambiguity when representing meaning via natural language, it is often ignored or deliberately removed in tasks mapping language to formally-designed representations, which generally assume a one-to-one mapping between linguistic and formal representations. We attempt to address this shortcoming by introducing AmP, a framework, dataset, and challenge for translating ambiguous natural language to formal representations like logic and code. We define templates and generate data for five well-documented linguistic ambiguities. Using AmP, we investigate how several few-shot text-to-code systems handle ambiguity, introducing three new metrics. We find that large pre-trained models perform poorly at capturing the distribution of possible meanings without deliberate instruction. However, models are able to capture the distribution well when ambiguity is attested in their inputs. These results motivate a call for including ambiguity explicitly in datasets and promote considering the distribution of possible outputs when evaluating systems. Data and code: https://github.com/esteng/ambiguous_parsing

View on arXivView PDF

Code Implementations(1)

60Shell, PythonJan 16, 20233 years agoNOASSERTION

Similar Papers

Cite this paper

@article{stengeleskin2026zero,
  title  = {Zero and Few-shot Semantic Parsing with Ambiguous Inputs},
  author = {Elias Stengel-Eskin and Kyle Rawlins and Benjamin Van Durme},
  year   = {2026},
  eprint = {2306.00824},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2306.00824},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.00824.svg)](https://codeofpaper.com/paper/2306.00824)

Discussion