[Paper Review] Coarse-to-Fine Decoding for Neural Semantic Parsing
The paper proposes a two-stage coarse-to-fine decoding framework for neural semantic parsing: first generate a compact meaning sketch, then fill in detailed tokens conditioned on the sketch and input.
Semantic parsing aims at mapping natural language utterances into structured meaning representations. In this work, we propose a structure-aware neural architecture which decomposes the semantic parsing process into two stages. Given an input utterance, we first generate a rough sketch of its meaning, where low-level information (such as variable names and arguments) is glossed over. Then, we fill in missing details by taking into account the natural language input and the sketch itself. Experimental results on four datasets characteristic of different domains and meaning representations show that our approach consistently improves performance, achieving competitive results despite the use of relatively simple decoders.
Motivation & Objective
- Motivate semantic parsing with structured meaning representations and disentangle high-level from low-level information during decoding.
- Introduce a sketch-based intermediate representation to guide final decoding.
- Show that exploiting coarse sketches improves parsing accuracy across diverse domains and representations.
- Demonstrate competitive performance with relatively simple decoders across four datasets.
Proposed method
- Encode natural language input with a bidirectional LSTM encoder and generate a coarse meaning sketch a|x using an attention-based decoder.
- Encode the sketch with a bidirectional LSTM and use it to guide a fine-grained decoder that fills in missing details for the final meaning y.
- Factorize the generation into p(a|x) and p(y|x,a) and train to maximize log p(y|x,a) + log p(a|x).
- In the Django task, incorporate a copying mechanism to handle OOV tokens by copying from x during fine decoding.
- In WikiSQL, employ a table-aware encoder that attends to table columns and predict a WHERE-clause sketches and then fill in condition values with text spans copied from the question.
- Leverage parent feeding in decoding and constrain outputs with the predicted sketch to improve structure fidelity.
Experimental results
Research questions
- RQ1Does a two-stage coarse-to-fine decoding process improve neural semantic parsing over one-stage decoding?
- RQ2Can a compact, abstract sketch representation guide the final detailed decoding effectively across diverse meaning representations (logic forms, code, SQL)?
- RQ3What is the impact of sketch accuracy on final meaning accuracy across multiple domains?
- RQ4How does a table-aware encoding and copying mechanism contribute to performance on SQL and code generation tasks?
Key findings
- Coarse2Fine outperforms OneStage across Geo and Atis datasets (Geo: 88.2 vs 85.0; Atis: 87.7 vs 85.3).
- Providing oracle sketches yields substantial gains (Geo 93.9; Atis 95.1).
- In Django, Coarse2Fine achieves 74.1% accuracy, outperforming prior best results and OneStage baselines.
- On WikiSQL, Coarse2Fine surpasses OneStage and prior systems, with 71.7% accuracy and 78.5% execution accuracy; sketch-guided decoding contributes most to gains in the WHERE clause.
- Sketch accuracy is higher for Coarse2Fine than OneStage across Geo, Atis, Django, and WikiSQL (Geo 89.3; Atis 88.0; Django 77.4; WikiSQL 95.9).
- The framework is versatile across domains (logical forms, Python code, SQL) and meanings, achieving competitive results with relatively simple decoders.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.