Source-linked AI summary
Learning Executable Semantic Parsers for Natural Language Understanding
Percy Liang
TL;DR
Natural language understanding aims to produce appropriate actions from utterances, and semantic parsing faces linguistic, statistical, and computational challenges. The paper describes learning parsers from answer supervision with logical forms treated as latent variables, presents a framework, and identifies semantic representation and supervision as central open questions.
Problem
Semantic parsing remains young and faces linguistic, statistical, and computational challenges, within the broader goal of systems that produce appropriate actions from language.
Source: §1 · pp. 1–2Method
The paper discusses learning semantic parsers from answer supervision, treating logical forms as latent variables to be inferred from answers.
Source: §1 · p. 2Results
The paper presents a semantic parsing framework and identifies semantic representation and supervision as the two big questions going forward.
Source: §5 · p. 7Takeaways & Limitations
Executable semantic parsing covers the pipeline from utterance to task output but compromises on domain-generality.
Source: §5 · p. 7Executable semantic parsing compromises on domain-generality, which is partly inevitable because understanding tasks require domain-specific knowledge or grounding.
Source: §5 · p. 7
Abstract
from arXiv · showhide
For building question answering systems and natural language interfaces, semantic parsing has emerged as an important and powerful paradigm. Semantic parsers map natural language into logical forms, the classic representation for many important linguistic phenomena. The modern twist is that we are interested in learning semantic parsers from data, which introduces a new layer of statistical and computational issues. This article lays out the components of a statistical semantic parser, highlighting the key challenges. We will see that semantic parsing is a rich fusion of the logical and the statistical world, and that this fusion will play an integral role in the future of natural language understanding systems.
1. INTRODUCTION
Natural language understanding is framed as producing an appropriate action from an utterance in context. The introduction motivates executable semantic parsing as a response to shallow statistical NLP, then highlights its supervision, scaling, and core research challenges.
- Semantic parsers map utterances to logical forms that can be executed in context, separating language understanding from world knowledge while compositionality supports a range of possible utterances.For example, primes and the numbers below 10 denote sets whose intersection supplies the logical form for the question.Source: §1 · p. 1
- Statistical NLP shifted attention toward tasks that fell short of end-to-end understanding, and question answering often used shallow analysis with unstructured text.Source: §1 · p. 2
- Weak supervision replaces annotated logical forms with answers, which are easier to crowdsource, while leaving logical forms latent for inference without degrading accuracy.This makes learning more difficult, though showed it can be solved without an accuracy decrease.Source: §1 · p. 2
- Semantic parsing scaled from limited domains toward broad-coverage knowledge bases and semi-structured tables, with crowdsourced question-answer datasets growing by an order of magnitude.Earlier systems used annotated logical forms, while later systems learned from answers,.Source: §1 · p. 2
- The field faces linguistic questions about representing and composing meaning, statistical questions about weakly supervised learning and generalization, and computational questions about searching logical forms.Source: §1 · p. 2
2. FRAMEWORK
The framework treats understanding as mapping an utterance and context to an action through an executable logical form. It separates this task into semantic representations, candidate generation and scoring, parsing, and learning.
2. FRAMEWORK
- A logical form z captures an utterance’s semantics and executes in context c to produce the desired action y.The setup covers questions answered from a knowledge base and commands mapped to actions in a robot’s environment.Source: §2 · p. 2
- Five components divide the work: the executor computes denotations, grammar generates candidates, model scores derivations, parser searches them, and learner estimates parameters.The executor, grammar, and model specify semantic and scoring elements; parser and learner provide algorithms.Source: §2 · pp. 2–3, Figure 2 · p. 3
- The grammar constructs candidate derivations, while a log-linear model weights derivation features and defines a probability distribution for selecting among them.A chart parser can search for high-probability derivations under that model.Source: §2 · p. 3
- Beam search keeps high-scoring sub-derivations because exact computation would require tracking exponentially many logical forms; its parameter-dependent candidate set makes the gradient heuristic.The objective is non-concave, so SGD is guaranteed at best to reach a local optimum.Source: §2 · p. 4
- Because training examples provide actions rather than correct derivations, learning sums probability over derivations whose logical forms execute to the observed action.The objective is optimized across examples using stochastic gradient descent.Source: §2 · p. 4
- The components are loosely coupled, allowing improvements to each in isolation.The executor, grammar, model, parser, and learner focus on distinct parts of the system.Source: §2 · p. 4
3. REFINING THE COMPONENTS
The section examines design choices across the executor, grammar, model, parser, and learner. Their suitability depends on the logical forms and utterances in the application, and choices trade linguistic coverage against statistical and computational complexity.
3.1 Executor
- First-order logic misses set-building questions; lambda calculus adds set construction, while lambda DCS offers a lifted representation that can align with noun-phrase meanings.The logical language also determines which application-specific actions can be represented.Source: §3.1 · pp. 4–5
3.2 Grammar
- A grammar can be coarse and application-specific because the model filters its candidates, but flexible rules can produce nonsensical forms and require features to score them.Grammar choice trades expressivity against statistical and computational complexity; CCG suits structured sentences, while flexible grammars suit noisy utterances with simple logical forms.Source: §3.2 · p. 5
3.3 Model
- Targeted lexical features can use corpus statistics, lexical resources, or string overlap, while denotation features encode world validity; nonlinear models are more powerful but need more data.Type constraints can prune ill-formed logical forms.Source: §3.3 · p. 6
3.4 Parsing
- Chart parsing limits contextual features to a span and builds spans in fixed order; shift-reduce parsing supports incremental context, while agenda-based parsing prioritizes promising derivations.Fixed-order chart parsing can spend equal resources on spans unlikely to enter the final derivation.Source: §3.4 · p. 6
3.5 Learner
- Practical learners often assume supplied entity, date, and number rules; grammar induction varies, and denotation-supervised approaches start from crude grammars whereas other methods require logical forms.Parameter estimation can use SGD, L1 regularization, or AdaGrad; AdaGrad’s per-feature step sizes can improve stability and convergence.Source: §3.5 · p. 6
4. DATASETS AND RESULTS
The section surveys semantic-parsing datasets spanning geography, spoken language, regular expressions, knowledge bases, web questions, navigation, and tables, with results reported separately for each task.
DATASETS AND RESULTS
- Around 90% was achieved on Geo880 by learning from either logical forms or answers.Geo880 contains 880 compositional questions about US geography, with clean language and a limited domain.Source: §4 · p. 6
- 84.6% is the best reported ATIS-3 result, using semantic parsing on utterances with disfluencies and flexible word order but simpler logic than Geo880.ATIS-3 contains 5,418 utterances paired with logical forms.Source: §4 · pp. 6–7
- 65.6% was obtained on Regexp824, where semantic unification tests logical-form equivalence among many expressions that can match the same language.The dataset pairs 824 natural-language examples with regular expressions.Source: §4 · p. 7
- 68% is the Free917 state-of-the-art accuracy, with many predicates made manageable by assuming perfect named-entity resolution and using Freebase type constraints.Free917 contains 917 question–logical-form pairs.Source: §4 · p. 7
- 52.5% is the reported WebQuestions state of the art; its real web questions are varied, but some answers are imperfect because they must come from one Freebase page.WebQuestions contains 5,810 question-answer pairs without logical forms.Source: §4 · p. 7
- 37.1% was reported on WikiTableQuestions, where test questions use new tables and methods must generalize to new predicates.The dataset has 22,033 question-table-answer triples, including questions requiring aggregation across a table.Source: §4 · p. 7
- 58.8% average accuracy across eight small-domain datasets built from 12,602 question-answer pairs using a crowdsourcing recipe [30].The recipe produces question–logical-form pairs.Source: §4 · p. 7
- 65.3% was obtained on navigation instructions in a grid world, whose multi-sentence sequences include imperative and context-dependent constructions absent from previous datasets.The dataset contains 706 instructions [12].Source: §4 · p. 7
5. DISCUSSION
The discussion presents semantic parsing as a framework for natural language understanding while identifying representation and supervision as open design questions. It weighs executable parsing against alternative approaches and points to the field’s broader prospects.
DISCUSSION
- The framework leaves two central questions open: how to represent language semantics and what supervision to use to learn them.The discussion anticipates end-user impact and insights into language and learning as interfaces grow more ubiquitous and machine learning ambitions expand.Source: §5 · p. 7
- Natural-language and logical-form structures diverge, motivating intermediate representations such as canonical utterances and domain-general logical forms.Domain-general forms still need downstream inference, while executable parsing spans utterance to task output at the cost of domain-generality; the best broadly useful representation remains open.Source: §5 · p. 7
- Weaker supervision can use desired actions such as answers, large text corpora, or reinforcement-learning reward signals.The reinforcement-learning framing highlights context-dependence in language interpretation.Source: §5 · p. 7
- Recurrent neural methods share utterance-to-behavior learning with executable parsing but do not separate parsing from execution.They are architecturally simpler, yet more data hungry, and their ability to learn complex logical reasoning generally remains unclear.Source: §5 · p. 7