Skip to main content
QUICK REVIEW

[Paper Review] Compositional Generalization via Semantic Tagging

Hao Zheng, Mirella Lapata|arXiv (Cornell University)|Oct 22, 2020
Topic ModelingComputer Science33 references6 citations
TL;DR

This paper proposes a two-stage neural semantic parsing framework that improves compositional generalization by first tagging input utterances with semantic symbols (e.g., predicates or SQL columns) via a neural tagger, then using a sequence-to-sequence model conditioned on both the input and the tag sequence to generate meaning representations. The method achieves consistent gains in compositional generalization across multiple datasets and architectures by enabling disentangled, lexicon-style processing and reducing attention-based interference.

ABSTRACT

Although neural sequence-to-sequence models have been successfully applied to semantic parsing, they fail at compositional generalization, i.e., they are unable to systematically generalize to unseen compositions of seen components. Motivated by traditional semantic parsing where compositionality is explicitly accounted for by symbolic grammars, we propose a new decoding framework that preserves the expressivity and generality of sequence-to-sequence models while featuring lexicon-style alignments and disentangled information processing. Specifically, we decompose decoding into two phases where an input utterance is first tagged with semantic symbols representing the meaning of individual words, and then a sequence-to-sequence model is used to predict the final meaning representation conditioning on the utterance and the predicted tag sequence. Experimental results on three semantic parsing datasets show that the proposed approach consistently improves compositional generalization across model architectures, domains, and semantic formalisms.

Motivation & Objective

  • To address the failure of neural sequence-to-sequence models in compositional generalization—i.e., generalizing to unseen combinations of seen components.
  • To incorporate the benefits of symbolic compositionality from traditional semantic parsers (e.g., explicit alignments and disentangled processing) into neural sequence-to-sequence models.
  • To design a decoding framework that preserves the expressivity of neural models while improving robustness to structural and semantic variations in test examples.
  • To evaluate the approach across diverse datasets, semantic formalisms (SQL, λ-calculus), and model architectures under query-based splits that stress compositional generalization.

Proposed method

  • Decompose semantic parsing into two stages: first, a neural tagger assigns semantic symbols (e.g., predicates or columns) to each word or span in the input utterance.
  • The tagger uses global context to predict semantic symbols independently per token, enforcing conditional independence and enabling lexicon-style alignments between linguistic expressions and meaning components.
  • A sequence-to-sequence model then generates the final meaning representation, conditioned on both the original utterance and the predicted sequence of semantic tags.
  • The tagger acts as a soft constraint on the output space, reducing attention interference and improving prediction of individual semantic components.
  • The framework is modular and compatible with any sequence-to-sequence model and semantic formalism.
  • The approach is evaluated under query-based splits to isolate compositional generalization performance.

Experimental results

Research questions

  • RQ1Can a neural tagging module improve compositional generalization in sequence-to-sequence semantic parsers by disentangling semantic component prediction from sequential generation?
  • RQ2How does semantic tagging compare to existing methods like data augmentation or attention supervision in handling unseen compositional structures?
  • RQ3To what extent does the performance gain from semantic tagging depend on the presence of explicit alignments between linguistic expressions and semantic symbols?
  • RQ4Does the method generalize across different semantic formalisms (e.g., SQL vs. λ-calculus) and model architectures?
  • RQ5What types of prediction errors are most reduced by semantic tagging, and does it introduce new error patterns?

Key findings

  • The proposed semantic tagging framework consistently improves compositional generalization across three semantic parsing datasets (GeoQuery, WikiSQL, ATIS) under query-based splits.
  • On WikiSQL, the method improved the coarse2fine model’s exact match accuracy by 4.3% absolute and execution accuracy by a similar margin, primarily by enhancing where-clause prediction.
  • The LSTM +ST model (with semantic tagging) outperformed GECA, a data-augmentation-based method, in compositional generalization, demonstrating the effectiveness of the inductive bias introduced by tagging.
  • Semantic tagging significantly reduced errors from predicting incorrect semantic symbols—especially in complex or rare constructions—while slightly increasing errors in partial or incorrect query generation.
  • The method achieved 86.2% accuracy in predicting semantic symbols on GeoQuery with λ-calculus, though final query accuracy was 52.1%, indicating that symbol-level gains do not always fully transfer to final output.
  • The approach is less effective on SQL queries with bridging columns (e.g., in ATIS), where no linguistic expression aligns to the semantic symbol, highlighting the need for alignment-aware symbol selection.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.