Disambiguate First, Parse Later: Generating Interpretations for Ambiguity Resolution in Semantic Parsing

Irina Saparina, Mirella Lapata
2/25/2025
cs.CLcs.AI

No official code found. Best implementation: saparina/disambiguate-then-parse (5 stars, MIT, last commit 2026-02-13).

Abstract

Handling ambiguity and underspecification is an important challenge in natural language interfaces, particularly for tasks like text-to-SQL semantic parsing. We propose a modular approach that resolves ambiguity using natural language interpretations before mapping these to logical forms (e.g., SQL queries). Although LLMs excel at parsing unambiguous utterances, they show strong biases for ambiguous ones, typically predicting only preferred interpretations. We constructively exploit this bias to generate an initial set of preferred disambiguations and then apply a specialized infilling model to identify and generate missing interpretations. To train the infilling model, we introduce an annotation method that uses SQL execution to validate different meanings. Our approach improves interpretation coverage and generalizes across datasets with different annotation styles, database structures, and ambiguity types.

View on arXivView PDF

Code Implementations(1)

MIT

Disambiguate First Parse Later: Generating Interpretations for Ambiguity Resolution in Semantic Parsing

51PythonFeb 25, 20258 months agoMIT

Similar Papers

Cite this paper

@article{saparina2025disambiguate,
  title  = {Disambiguate First, Parse Later: Generating Interpretations for Ambiguity Resolution in Semantic Parsing},
  author = {Irina Saparina and Mirella Lapata},
  year   = {2025},
  eprint = {2502.18448},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.18448v2}
}

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/2502.18448.svg)](https://codeofpaper.com/paper/2502.18448)

Discussion