---
title: "Semantic Parsing of Ambiguous Input through Paraphrasing and"
description: "A semantic parser expands terse search queries into explicit questions and uses their fluency to choose among competing database interpretations."
canonical: "https://research.elamur.ai/free/en/papers/arthur-2015-semantic-parsing-ambiguous-input-through/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/arthur-2015-semantic-parsing-ambiguous-input-through/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2015](https://md.research.elamur.ai/free/en/papers/2015/) / Semantic Parsing of Ambiguous Input through Paraphrasing and Verification

# Semantic Parsing of Ambiguous Input through Paraphrasing and Verification

Paper · 2015 · Philip Arthur, Graham Neubig, Sakriani Sakti et al.

**Authors:** [Philip Arthur](https://md.research.elamur.ai/free/en/authors/philip-arthur/), [Graham Neubig](https://md.research.elamur.ai/free/en/authors/graham-neubig/), [Sakriani Sakti](https://md.research.elamur.ai/free/en/authors/sakriani-sakti/), [Tomoki Toda](https://md.research.elamur.ai/free/en/authors/tomoki-toda/) and [Satoshi Nakamura](https://md.research.elamur.ai/free/en/authors/satoshi-nakamura/) · **Year:** 2015 · **Venue:** Transactions of the Association for Computational Linguistics · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**11** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2295682796) · [Transactions of the Association for Computational Linguistics](https://aclanthology.org/volumes/Q15-1/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/Q15-1041/)
- [PDF](https://aclanthology.org/Q15-1041.pdf)
- [DOI 10.1162/tacl_a_00159](https://doi.org/10.1162/tacl_a_00159)
- [OpenAlex](https://openalex.org/W2295682796)

Citations: OpenAlex, 2026-10-14.

## Summary

A search query can name the things a person cares about while leaving out how those things are related. A query containing only the words for flights and Kobe could concern arrivals or departures. Adding a preposition would settle the direction, and that direction would change which records a database should return. The paper studies this problem in [semantic parsing](https://md.research.elamur.ai/free/en/concepts/semantic-parsing/), where the goal is to turn ordinary wording into a formal expression that an application can use. Its central question is whether a parser can recover an omitted relation by spelling out each plausible interpretation and judging how naturally it reads.

The authors extend a grammar that ordinarily connects an input sentence to a logical expression. The extended grammar works with a short query and generates both an explicit paraphrase and a database expression. The same grammar rules build the outputs together. A rule that supplies a location relation in the database expression can also supply a preposition in the paraphrase, even when that preposition is absent from the input. A statistical fluency score can then influence which derivation wins. The parser still uses its learned grammar scores, so the fluency score helps decide among interpretations already supported by the grammar.

The evaluation uses Geoquery, a collection of 880 questions about U.S. geography paired with formal queries. The authors make keyword versions by removing selected words and changing the order of those that remain. A direct parser obtains an F-measure of .879 on the original questions and .791 on the keyword versions. On keyword input, the extended grammar reaches .797 without fluency scoring and .827 in its best configuration, which combines scoring based on a large collection of questions with a separate reranking pass trained on Geoquery questions. The authors report a statistically significant gain for this configuration over both keyword baselines. In a separate annotation study, using people’s preferred paraphrases when available raises precision from .834 to .846 on the material used for that comparison.

The experiments show that a readable paraphrase can provide evidence about a missing relation and give a person a way to inspect that relation before accepting it. The evidence has clear bounds. The original full question still gives the direct parser an advantage, and a fluent paraphrase can express the wrong intention. The keyword inputs were derived from benchmark questions, so the results concern simulated omissions and reorderings in a geographic database task. The paper leaves naturally submitted queries and broader databases for future investigation.

## Deep dive: Semantic Parsing of Ambiguous Input through Paraphrasing and Verification

A semantic parser expands terse search queries into explicit questions and uses their fluency to choose among competing database interpretations. · about 38 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What disappears when a question becomes a search query

In database [question answering](https://md.research.elamur.ai/free/en/topics/question-answering/), a semantic parser takes a request and produces an expression that can be evaluated against stored facts. A request for Virginia’s cities, for instance, needs an expression that identifies cities, identifies Virginia as a state, and restricts the answers to cities located there. Each part has a distinct role. The city predicate describes the kind of answer to return. The location predicate connects possible answers to the state. The state name supplies the entity against which that condition is checked. A short query can preserve both content words while dropping the expression that connects them.

This creates a different practical problem from recognizing that a word has several possible senses. The paper uses Kobe to illustrate both. The name can designate a city or a basketball player. In a flight query, treating Kobe as a city narrows down the entity, but still leaves the direction unresolved. A database expression for flights going to the city differs from an expression for flights leaving it. A query about lodging in the city involves a third relation. The surrounding content word provides evidence about the relevant relation, yet the relation has to appear explicitly in the formal query even when the user supplied no word for it.

Complete sentences leave room for ambiguity as well. The paper notes that a prepositional phrase can attach to different parts of a sentence, a name can designate different entities, and the meaning of a quantifier can depend on its scope. In its example involving eating steak in Kobe, the place phrase can characterize the event or the item being discussed. The question can also permit different readings about how the diners share or distribute the steaks. These are ambiguities within wording that already supplies recognizable grammatical structure. Keyword input can remove some of that structure, leaving both the preferred interpretation and part of the evidence needed to construct it unresolved.

The order of the remaining words adds another complication. In a full geographic question, the placement of a modifier can indicate which thing is supposed to be largest. In a keyword request with the words for size, capital, and state, several of those terms can plausibly be attached to one another. A parser might have to decide whether the intended answer is a state selected by the size of its capital, or a state characterized as largest and related to some capital. Both possibilities can use much the same vocabulary. What distinguishes them is the assignment of roles, which an explicit paraphrase can bring back into view.

For a search engine, ambiguous wording can produce a large set of results that users have to sift through. The related work cited in the paper considers several ways to reformulate queries, including adding terms and substituting different wording. It also describes work that reconstructs questions from keyword inputs, and work that paraphrases web queries to reduce the mismatch between the language of a query and the language of documents. Those are problems in [information retrieval](https://md.research.elamur.ai/free/en/topics/information-retrieval/). The database setting gives a reformulation a different job. It must provide evidence for a particular formal query, where changing the relation can change the result even if every entity and topic word stays the same.

A brief dialogue utterance can pose a similar problem. It may make sense to another speaker while containing little of the structure a parser expects from a complete question. The paper focuses its experiments on keyword search, where deletion and reordering can be studied systematically. Its motivation also draws on earlier parsing of short dialogue input. Across both examples, a parser has to work with the words a user considered sufficient in context and assemble an expression that makes their relationships explicit.

#### Earlier approaches to building and checking interpretations

The paper places its work among statistical semantic parsers that use structured grammars and learn from examples. It mentions combinatory categorial grammar, synchronous context-free grammar, and dependency-based compositional semantics as approaches that had already handled substantial ambiguity. A compositional approach builds a larger meaning out of parts, such as a condition for being a city and a condition for being in a given state. The authors adopt the approach of treating a database query as a translation target, with grammar rules that pair natural-language fragments with fragments of formal meaning. They draw on [Learning for Semantic Parsing with Statistical Machine Translation](https://md.research.elamur.ai/free/en/papers/wong-2006-learning-semantic-parsing-statistical-machine/) and [Learning Synchronous Grammars for Semantic Parsing with Lambda Calculus](https://md.research.elamur.ai/free/en/papers/wong-2007-learning-synchronous-grammars-semantic-parsing/).

Earlier semantic parsers also used the syntactic structure of natural-language input to guide the construction of meaning. That can help when the input contains enough grammatical evidence to support a useful syntactic analysis. The paper points out that obtaining such an analysis is itself difficult for a sequence of loosely ordered keywords. If a location preposition is missing, analyzing the words that remain cannot directly reveal the preposition or its attachment. The proposed method draws its fluency evidence from language reconstructed during parsing, where candidate derivations can supply the missing material.

The authors trace the idea of using a paraphrase for disambiguation to earlier interactive work. A system can state an interpretation in ordinary language so a person can judge whether it matches the request. The significance of that technique here is that a database expression may be easy for software to execute and hard for a user to inspect. A paraphrase can expose the same consequential choice, such as the direction of travel, without requiring the user to understand the database representation. The paper connects this idea to [Paraphrasing Questions Using Given and New Information](https://md.research.elamur.ai/free/en/papers/mckeown-1983-paraphrasing-questions-given-new-information/).

Other semantic parsing work used paraphrases to connect complete questions to formal expressions. Fader and colleagues mapped questions to more standardized wordings that could readily be converted to formal queries. In the approach of Berant and Liang, the system identified entities, generated candidate formal meanings and corresponding canonical utterances, and chose the candidate whose utterance best paraphrased the input. The distinction in Arthur and colleagues’ setup is the role of the input. A keyword query gives the system relatively little explicit wording against which to compare full candidate questions. The output question is valuable in part because its own wording supplies evidence about the relation it makes explicit. The relevant earlier studies are [Paraphrase-Driven Learning for Open Question Answering](https://md.research.elamur.ai/free/en/papers/fader-2013-paraphrase-driven-learning-open-question/) and [Semantic Parsing via Paraphrasing](https://md.research.elamur.ai/free/en/papers/berant-2014-semantic-parsing-paraphrasing/).

Synchronous grammars had also been used for text generation, including sentence compression and producing alternative reference translations. This paper makes a grammar responsible for a text output and a formal output within the same derivation. That arrangement gives the parser a place to connect a phrase that reads naturally with the particular logical relation it expresses. The authors argue that this connection is especially relevant to compositional questions, where a choice inside one phrase can alter how several conditions fit together.

### The method, step by step

#### From the keywords to an executable candidate

Consider the Virginia example as a small version of the whole task. The input names cities and Virginia. A successful candidate expands the input into a request for cities in Virginia and builds an expression that returns entities satisfying both the city condition and a location condition involving the state. The words indicating the request and its location can appear on the paraphrase side even though they were absent from the keywords. The corresponding logical operators and predicates appear on the formal side. Their appearance is coordinated by the rules that assembled the candidate.

Now suppose a different derivation can use the same keywords and produce a different question and logical form. Each candidate receives a score based on the grammar rules it used and, in the verification configuration, on the words in its reconstructed question. The first kind of evidence reflects mappings learned from the annotated examples. The second reflects whether the resulting wording resembles text the fluency scorer was trained on. Once a candidate has been selected, the database receives the formal expression. The paraphrase remains available for inspection.

From a keyword query to a database answer The steps in order.

The automatic verification step is a ranking decision. The scorer has access to the candidate question and can favor word sequences that tend to occur together. It does not ask the database whether the user meant that question. A person shown the paraphrase can use a different kind of evidence, namely their own reading of the input. The paper investigates these two senses of verification separately. The grammar provides both with the same object to judge, an explicit rendering linked to a formal meaning.

#### How an ordinary synchronous rule works

The starting point is a [context-free grammar](https://md.research.elamur.ai/free/en/concepts/context-free-grammar/). In such a grammar, a category can be rewritten as a sequence of concrete symbols and further categories. A concrete symbol, called a terminal, is already part of the output. A nonterminal is a placeholder that can be expanded using another rule. A synchronous grammar writes corresponding pieces of different strings in one rule. It therefore describes how to assemble a pair of strings using a shared set of choices.

```
X → ⟨γₛ, γₜ⟩
```

Here X is the nonterminal being expanded, and the arrow denotes a rewrite. Angle brackets enclose the synchronized pair. The source-side sequence is γₛ, with s marking the source. The target-side sequence is γₜ, with t marking the target. Each sequence can contain terminals and indexed nonterminals. The indices tell the grammar which placeholders are to be expanded together.

The paper illustrates the notation with part of a translation between English and Japanese. The fixed words differ across the strings, while the same placeholders carry the participants in the event. A shared index preserves their correspondence when the surrounding words are arranged differently. In the illustrative rule, the verb comes between the participants on the English side and after them on the Japanese side. The authors draw the grammar notation and decoding background from [Hierarchical Phrase-Based Translation](https://md.research.elamur.ai/free/en/papers/chiang-2007-hierarchical-phrase-based-translation/).

```
X → ⟨X₀ eats X₁, X₀ wa X₁ wo taberu⟩
```

X is again the category being rewritten. X₀ and X₁ are occurrences of that category distinguished by their indices. An occurrence marked ₀ on the English side is expanded together with the occurrence marked ₀ on the Japanese side, and the occurrences marked ₁ are another synchronized pair. The words `eats`, `wa`, `wo`, and `taberu` are terminals. The comma separates the source and target strings within the angle brackets.

For semantic parsing, the target string describes a logical structure. In the complete Virginia question, a rule for the request introduces the form of the database answer and leaves a placeholder for its conditions. A rule for those conditions lays out where the contributions of the city term, the location term, and the state name will go. The city term supplies a predicate over potential answers. The preposition introduces a relation between the answer variable and a variable for the place. The state name identifies the value that the place variable stands for. The resulting query can ask for the values of the answer variable that meet the conditions together.

The set of rule applications used to build a candidate is its derivation. Different derivations can produce the same finished logical expression, and a single input can permit derivations that produce different expressions. A parser that looks for a high-scoring derivation therefore has to choose both how to break up the input and which mappings to apply to its parts. An intermediate category can be rewritten in several ways, and longer rules can capture dependencies that would be lost if every word had to be translated on its own.

This organization explains the particular difficulty with the keyword version of the Virginia request. In the ordinary derivation shown in the paper, the location predicate is paired with the preposition. When the input has no preposition, that rule has no matching word. A grammar could learn mappings directly from the keyword versions and assign a location predicate based on their surrounding structure. The proposed extension keeps that ability while also producing a word or phrase that expresses the predicate, giving the scorer more evidence about the choice.

#### Learning the grammar from paired examples

The authors start with each full question and its annotated meaning representation. They treat the representation as a tree whose internal nodes can stand for predicates, operators, or quantifiers. The learning procedure first uses statistical alignment to associate pieces of question text with pieces of the logical expression. An alignment is a proposed correspondence between parts of the pair. For example, across this kind of data a city word can be associated with a city predicate. The procedure uses these correspondences to decide which pieces of the question and which parts of the logic can form a rule together.

The GHKM extraction procedure identifies minimal rules consistent with the alignment. Its input includes the logical tree, so the result is a collection of rewrite rules that can be composed along the tree’s structure. A minimal rule captures a small part of the correspondence with positions left open for further expansion. The authors also compose minimal rules into larger ones. This lets a grammar rule record a larger pattern whose components may depend on one another. The procedure takes the relationships among logical variables into account during composition. In the experiments, the authors use pialign with one-to-many alignment enforced and give 4 as the maximum size for rule composition.

Some words receive no direct alignment to the logic. They can still belong to a grammatical phrase whose other parts do contribute to the interpretation. The extraction procedure attaches an unaligned word to the highest position in the logical tree that preserves alignment consistency. This gives the word a place in the learned association between the question and the formal expression. It also explains why question fragments can contain familiar request wording that contributes little by itself to the content of the database query.

The basic extracted rules cover training material well. To make the parser more robust on unseen queries, the authors supplement them with a word deletion rule and rules drawn from the database. The deletion rule allows a string containing an extra input word to be analyzed as the category represented by the rest of the string.

```
X → ⟨w X, X⟩
```

X is the head category and also the category of the synchronized child on each side. The terminal w stands for an arbitrary input word. The arrow indicates the expansion, and the angle brackets contain the source and target sequences. The source sequence has w followed by X. The target sequence has X alone, so the child keeps its target realization and w makes no target contribution. A feature in the final scoring function allows the parser to learn how to weight uses of this rule.

The database rules give explicit coverage to terms for things the database contains. The paper’s example uses an assertion about Michigan to make a rule headed by a state category, with the state name on both sides. More broadly, the assertion’s function determines the category, and a parameter appropriate to that assertion supplies the terminal. Such a rule gives the parser a way to recognize a known database value even when training questions provide inadequate coverage of that value. It does not establish the relation in which the value participates. Other rules still have to connect the state, city, or other entity to the rest of the query.

Word deletion here is a choice the parser can make about an observed input word. The authors also delete words when producing the benchmark’s keyword inputs, and later when constructing the input side of a grammar rule. Those operations serve different purposes. The benchmark operation creates the underspecified text on which the parser trains and is tested. The grammar construction operation teaches the parser how an underspecified fragment can correspond to a fuller phrase. The optional decoder rule handles a word that is present and can be skipped.

#### Giving the grammar another output

The generalization lets each rule have a source side and several target sides. The source is still what the parser has to match. Each target preserves the result of the same series of expansions in its own symbols. An indexed placeholder on the source identifies the corresponding target placeholders that participate in the rewrite.

```
X → ⟨γ₁, γ₂, …, γₙ⟩
```

X denotes the nonterminal at the head of the rule, and the arrow indicates its expansion. The angle brackets enclose the sequences in the rule. γ₁ is the source sequence. γ₂ through γₙ are the target sequences, and the ellipsis stands for any intervening sides. The index n is the total number of synchronized sides. A nonterminal selected on the source is expanded with its counterparts carrying the same index on the target sides.

In the paper’s 3-SCFG, γ₁ describes the keyword input, γ₂ the paraphrase, and γ₃ the meaning representation. These are sides of rules, so a given rule can supply just a fragment of the full paraphrase or formal expression. The Virginia derivation can introduce the overall request, combine a city expression with a state expression, and insert both the preposition on the question side and its location predicate on the logical side. Subsequent expansions provide the words and symbols for the city class and state name. The input side matches the surviving terms throughout this process.

The coupling matters when the missing material has substantive consequences. A paraphrase that expresses a location relation is evidence for the derivation that generated a location predicate. It cannot directly lend that evidence to another derivation that happened to use the same keywords for a different relation. This works because the paraphrase and the logical form share rewrite decisions. A higher fluency score affects the score of the derivation as a whole. The parser has a specific formal expression to promote along with that wording.

#### Constructing the keyword side

The authors obtain paired full and short queries by working from Geoquery. They begin with a stop-word list, which specifies common words eligible for deletion. They amend it to better suit the kind of query they want to simulate. For instance, they remove request verbs such as *give* and *show*, and protect *us*, since it can denote the United States. They also protect items such as *many*, *most*, and *much*. Such words can help say what quantity or comparison the user is asking about. These choices determine which cues the benchmark removes and which remain available.

The remaining tokens are shuffled. A human annotator then makes limited adjustments to the order where needed so that the result reads like a plausible keyword query. Each original question and annotated meaning gets a single keyword counterpart. Thus the grammar learns from triples: the short input, the fuller wording from which it was made, and the annotated expression for that wording. The logical representation stays paired with the original question through this procedure. No new logical form has to be assigned to the shortened input.

To build the tri-synchronous grammar, the authors first extract the ordinary paired rules from full questions and formal expressions. They retain those sides as the output question fragment and output logic fragment. To form a rule’s input side, they remove stop words from its question fragment and use the alignment between the benchmark question and its keyword version to account for order. The procedure assigns a corresponding range of positions in the full question to words of the keyword query and uses these correspondences to arrange the rule’s input words. The authors filter rules when the required alignment to the question is missing.

Some rules lose all their input words in the transformation. The original grammar can make the preposition a rule in its own right because there is a word to match. Its keyword descendant would have an empty input side, although it still introduces a preposition in the paraphrase and a predicate in the logic. The authors compose such rules with their parents. In the Virginia example, the relation then becomes part of a larger rule that has an observable input, the surrounding city and state material. The resulting grammar can supply a missing relation from a context that gives the parser something to match.

Composition solves a coverage problem while creating a ranking problem. With the full wording, a relation is supported by its own terminal on the input side. When the relation is attached to a larger keyword pattern, several relation-bearing rules can match that pattern. They may differ in their logical output as well as the wording they reconstruct. Those additional possibilities make it possible to recover the intended meaning after deletion. They also give the parser more plausible wrong candidates to rank below it.

#### Combining rule evidence with paraphrase evidence

The fluency feature uses an [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) probability. It assigns a probability to each successive word based on a limited history, then combines the probabilities for the whole paraphrase. The relevant evidence is the likelihood of concrete word sequences. A particular preposition beside a particular noun can therefore affect ranking even when the shorter input contained just the noun.

```
pₗₘ(W) = ∏ᵢ₌₁ˡ p(wᵢ | wᵢ₋₁, wᵢ₋₂, …, wᵢ₋ₙ₊₁)
```

W denotes the paraphrase and l its length in words. The symbol pₗₘ is the probability assigned by the fluency scorer. The product symbol ∏ combines the factors as the position index i runs from 1 to l. The word at position i is wᵢ. A vertical bar means that its probability p is conditioned on the preceding words, from wᵢ₋₁ back through wᵢ₋ₙ₊₁. The ellipsis represents the intervening context words, and n is the order of the n-gram, counting the current word together with its history.

One could also assign sequence probabilities to serialized logical expressions. The authors give two reasons for preferring the question side. First, logical order can be semantically incidental. Conditions combined by a commutative operator can be permuted while their joint meaning stays the same, so surface sequence preferences in the logic can be misleading. Second, ordinary text is available in much larger quantities than correct meaning representations. A question-side scorer can exploit those text collections and pass its preference back to the logical side through the shared derivation.

The ranking function combines features in a weighted sum. A feature is a measurable property of a candidate, and a feature’s weight expresses its contribution to the final ranking. Raw fluency is therefore one source of evidence alongside the rules the candidate uses.

```
score(K, S, T, D) = w · Φ(K, S, T, D)
```

K is the keyword input, S is the reconstructed question, T is the formal meaning representation, and D is the derivation, including the grammar rules used to construct the candidate. Φ is the vector of feature values for that candidate. The vector w contains a corresponding weight for each feature. The dot denotes the dot product, which multiplies each feature value by its weight and adds those contributions. The score on the left is the quantity used to rank candidates.

For the basic rule features, the contribution of a whole derivation is obtained by adding the features of its individual rule applications.

```
Φ(K, S, T, D) = ∑_{d∈D} Φ(d)
```

The left-hand side is the feature vector for K, S, T, and D, with those symbols retaining their meanings from the scoring function. On the right, d is a rule application in derivation D, and Φ(d) gives that application’s feature vector. The summation symbol ∑ and the membership sign ∈ say to add over the applications belonging to D. The addition is component by component, so a feature for a certain type of rule can accumulate across the derivation.

The rule features include statistics for the source conditioned on the targets, the targets conditioned on the source, and the joint occurrence of all sides. These quantities distinguish a common pairing from a pairing that is only common given a particular input or output. The paper gives the training-count estimate explicitly for the source conditioned on the targets.

```
p(γ₁ | γ₂, …, γₙ) = c(γ₁, …, γₙ) / c(γ₂, …, γₙ)
```

The γ symbols denote rule sides, with γ₁ the source and γ₂ through γₙ the targets. The ellipsis stands for the intervening sides, and n identifies the last side. The probability p to the left of the equality is conditional, as indicated by the vertical bar. The function c counts instances in the training rules. The numerator counts the complete combination of source and targets. The denominator counts the target combination regardless of the source, and the slash indicates division. The rule feature uses the logarithm of this probability. The reverse conditional and the joint probability also enter the score on a logarithmic scale.

The other basic features flag fully lexicalized rules, deletion rules, and rules made from the database facts. A fully lexicalized rule contains no nonterminal, so it matches or supplies concrete material throughout. The indicator for this rule type allows the learned score to prefer or disfavor such mappings relative to rules that leave some of the work to child derivations. The deletion indicator helps distinguish a derivation that accounts for the observed words through learned correspondences from one that skips material. The knowledge-base indicator marks use of the mechanically added rules for database terms.

The verification configuration includes the log probability of the paraphrase, the number of its words unknown to the scorer, and its word count. The unknown-word feature lets the ranking weights account for gaps in the fluency scorer’s vocabulary. Word count matters because combining successive probabilities can favor short sequences. The length feature lets the weight-learning process compensate for that tendency. It can be assembled from the terminals contributed by the individual rules on the paraphrase side. Fluency itself depends on how those contributions fit across rule boundaries.

#### Searching, tuning, and executing

With only local rule weights, a chart parser can build larger candidates by combining scored analyses of smaller spans. The authors describe this using the CKY family of algorithms. A paraphrase fluency score introduces dependencies between neighboring words even when those words came from different rules. Two analyses covering the same stretch of input may have different output words at their boundaries, and those differences can matter once another phrase is added. The decoder must therefore preserve more distinctions among partial candidates or approximate the search.

The paper uses incremental search to integrate the n-gram score during decoding. The authors implemented their tri-synchronous parsing on top of the [Travatar decoder](https://md.research.elamur.ai/free/en/papers/neubig-2013-travatar-forest-string-machine-translation/), generally retaining its default settings. A separate feed-forward neural scorer is applied afterward to retained candidates. This later stage adds a new feature value and ranks the candidates again. It can improve the position of a candidate present in the list. A derivation that was never generated or was already pruned is outside that stage’s reach.

The ranking weights are tuned with minimum error rate training, abbreviated MERT. In this setup, the parser produces candidate lists, the tuning procedure uses their question-answering outcomes to adjust the feature weights, and the new weights govern which candidates rank highest. The authors run the development decoding across internal splits and pool the outcomes for tuning. They retain the top 300 derivations for this procedure. To tune the neural reranker, they first generate candidates without its score, compute that additional feature for the candidates, and run another round of weight tuning.

The logical form can contain lambda expressions, which specify how a variable is bound and how a function can be applied to an argument. Beta-reduction simplifies a function application by substituting the argument for its bound variable. In the paper’s execution procedure, reduction removes the lambda function before the expression is run. The authors also apply type checking, following earlier semantic parsing work, to check that the formal pieces combine legally. The resulting query is executed in Prolog against the Geoquery facts.

The paper identifies Geoquery as its benchmark and points to software for reproducing the experiments. The official implementation choices matter for interpreting the method: the grammar is estimated from paired data, fluency enters the search and reranking at distinct points, and the downstream result comes from execution against an existing database. A naturally worded candidate helps choose an interpretation. A successful execution supplies the answer associated with that interpretation.

### Experiments and results

#### The test material and the comparisons

Geoquery contains 880 English questions about U.S. geography with corresponding formal representations. The evaluation uses the same 10 folds as earlier work by Wong and Mooney, with 792 training examples and 88 test examples in each outer split. Every question serves as held-out test material over the course of the evaluation. The keyword counterpart of each question inherits its association with the same formal query. This lets the experiments compare the two input styles on the same underlying tasks. Punctuation is removed and [stemming](https://md.research.elamur.ai/free/en/concepts/stemming/) is applied to both natural-language input styles.

Weight tuning takes place inside the training data. The paper describes 10-fold cross-validation there, with iterations that train on 712 examples and parse the remaining 79. The resulting candidates are pooled for MERT. The outer test fold serves a separate role. When a fluency scorer is trained on Geoquery questions, the authors build it separately for each outer fold and exclude that fold’s test questions. This keeps the held-out full wording from being supplied as in-domain fluency training for the keyword version of the same question.

The Direct parser uses a standard synchronous grammar to map input to the formal representation. In the full-question condition, this input retains the normal wording of the benchmark. In the keyword condition, Direct is trained to map the shortened queries to the logic. Thus its keyword result is a comparison to a parser adapted to that input style. Tri-LM uses the joint grammar but lacks paraphrase fluency verification. Tri+LM in the main comparison uses the Questions corpus for n-gram scoring during search and a Geoquery-trained neural scorer for reranking. These comparisons separate the effects of shortening the input, learning a joint grammar, and using the reconstructed wording to score candidates.

The fluency experiments use 4-gram scoring with Kneser–Ney smoothing, which assigns probability in a way that accommodates sparse n-gram observations. The authors train these scorers with [KenLM](https://md.research.elamur.ai/free/en/papers/heafield-2011-kenlm-faster-smaller-language-model/), using preparation that includes lowercasing and breaking the text into tokens. News supplies 44.0M sentences and 891M tokens of general English text. Questions supplies 20.2M sentences and 174M tokens from the question paraphrase collection of Fader and colleagues. The in-domain Geoquery condition uses 792 questions per outer training fold. The paper reports approximately ∼1.6K tokens for that training material in its data table.

The auxiliary feed-forward scorer also uses a 4-gram context and is trained on the Geoquery questions outside the current test fold. The motivation is that a neural scorer may handle sparse in-domain text better than the standard n-gram estimate does. Its use is limited to candidates the decoder has already retained. The distinction is important when examining the results for News and Questions, because a configuration described by its external corpus can also use in-domain evidence at the later reranking stage. The neural approach follows the line of work represented by [A Neural Probabilistic Language Model](https://md.research.elamur.ai/free/en/papers/bengio-2003-neural-probabilistic-language-model/).

#### What precision, recall, and F-measure count

The paper evaluates the parser through question answering. Precision is the fraction of parsed queries that are counted as correct. Recall is the fraction of all test queries that are counted as correct. A method can therefore obtain a relatively high precision while leaving some requests unanswered, which depresses recall. F-measure combines precision and recall through their harmonic mean. The numbers reported in the main table are proportions.

A candidate must yield a valid parse and an executable Prolog query. The paper discusses precision and recall in terms of correct answers, and its examples distinguish an incorrect interpretation from an executable one. This matters because a well-formed query can ask for the wrong thing, and a correct query can return an empty result. The readout of the experiment is performance at answering the benchmark questions. The formal expressions and paraphrases shown for particular inputs help explain where the differences in answering performance come from.

Direct parsing and paraphrase verification on Geoquery by F-measure Fluency scoring gives the best keyword result, while full-question input remains ahead.

**The numbers**

| System or setting | F-measure |
| --- | --- |
| Full questions, Direct | .879 |
| Keywords, Direct | .791 |
| Keywords, Tri-LM | .797 |
| Keywords, Tri+LM (this paper) | .827 |

#### What is lost with keywords and recovered by verification

On the full Geoquery questions, Direct records precision of .880, recall of .878, and F-measure of .879. The authors compare that recall with the 86.6% from Wong and Mooney and 87.6% from Li and colleagues that they cite for prior work. This comparison situates the full-question baseline. Its performance is in the range of the earlier parsers, which makes it a useful reference when considering what happens after the wording has been shortened.

With keyword input, Direct records precision of .792, recall of .790, and F-measure of .791. The lower recall shows that many of the intended answers are harder to recover from the surviving words. The candidate lists show part of the reason. Among the top 300 derivations, the paper reports 16.54 distinct meaning representations for full questions and 36.77 for keyword inputs. Because several derivations can lead to the same meaning representation, the count of distinct forms is more informative about the spread of interpretations than a count of derivations alone. This is a property of the parser’s retained candidates, which depend on both the grammar and the search.

On keyword input, Tri-LM gives precision of .804, recall of .790, and F-measure of .797. It can generate the explicit question and use the information captured by the joint rules, but it has no fluency score to distinguish the resulting questions. In the best Tri+LM configuration, precision is .830, recall is .820, and F-measure is .827. The paper reports significant gains for the verified configuration over Direct and Tri-LM on keyword input, using bootstrap resampling at p \< 0.05. Resampling assesses how stable the performance comparison is under repeated sampling of the evaluation cases. The significance procedure is drawn from [Statistical Significance Tests for Machine Translation Evaluation](https://md.research.elamur.ai/free/en/papers/koehn-2004-statistical-significance-tests-machine-translation/).

The improvement covers both measures that make up F-measure. Precision is higher among the queries that receive a parse, and recall is higher over the entire keyword test material. The comparison with full questions also establishes the scale of the recovery. The best keyword setting still has lower recall and F-measure than the direct parser given the complete questions. Explicit reconstructions supply useful inferred cues, while the original questions supply cues the user has actually expressed.

#### What the human study measures

The human evaluation starts from queries for which Tri-LM and Tri+LM both supply candidate lists. That condition holds for 866 of the 880 keyword inputs. For the annotation material, the authors take the highest-scoring output and 7 randomly chosen parses from the available lists. They duplicate 34 inputs at random to make 900 assignments. There are 3 annotators, each assigned 300 keyword queries with their candidate paraphrases. The material consequently differs from the full benchmark, and the precision values for this study have their own comparison set.

The annotators make a fluency judgment and an interpretation judgment. Fluency is scored on the scale 0, 1, or 2. The endpoints represent thoroughly unnatural wording and fluent English, with 1 used for wording that has minor grammatical errors. For interpretation, the annotator ranks readings using letters. An A marks the annotator’s preferred reading of the keyword query when a candidate captures it. Lower letters mark other readings in order of preference. These labels focus on whether the paraphrase expresses a plausible intended question, which is different from judging whether its English is well formed.

For the human-assisted comparison, a candidate marked A can replace the automatic Tri+LM answer. Tri-LM has precision .803 on the study material, Tri+LM has .834, and Tri+LM with human selection has .846. The authors report 35 changed answers in the switch from the highest automatic choice to the human-assisted choice. Of those, 23 improve correctness and 12 reduce it. A person’s interpretation improves the aggregate result in this experiment, even though individual replacements can go in either direction.

Automatic and human-assisted precision on the Geoquery annotation material Using annotators’ preferred readings raises precision above the automatic choices.

**The numbers**

| System or setting | Precision |
| --- | --- |
| Tri-LM | .803 |
| Tri+LM | .834 |
| Tri+LM with human selection (this paper) | .846 |

The fluency ratings help explain why the paraphrase is useful as an intermediate output. For the highest-ranked choices, the paper reports fluent wording at rating 2 for 54% of Tri+LM paraphrases compared with 41% of Tri-LM paraphrases. The paper also reports that 91% of the paraphrases receiving that fluency rating corresponded to correct formal interpretations. Its table shows the same broad ordering within each system: precision is higher for highly fluent outputs than for outputs judged severely unnatural. This is a relationship observed among the selected candidates. Fluency alone cannot determine whether an otherwise well-formed question matches the intent behind the keywords.

The study also reports a relationship between the annotators’ reading preferences and the correctness of the resulting queries. The most preferred readings have high precision for both systems, while lower-ranked readings have weaker results. The same paraphrase can be generated by both systems, so the counts for each system and letter can overlap. The results are consistent with the idea that a readable expansion exposes information a person can use to choose a formal interpretation. In this study the person assesses supplied candidates, and the ground truth remains the answer associated with the benchmark question from which the keywords were derived.

### What the ablations show

#### The joint grammar and the verification score do different jobs

The Direct and Tri-LM comparison changes the grammar while keeping fluency verification out of the decision. The equal recall of .790 on the keyword benchmark shows that the joint grammar on its own does not increase the fraction of test questions answered correctly in that comparison. Its higher precision and F-measure show some difference in output behavior. The two systems learn different associations. Direct estimates mappings from short input to logic, while Tri-LM routes the learning of those mappings through the annotated full questions and keeps a question side in its grammar.

The paper gives an example using a query about the capital with the greatest population. The Direct interpretation produces a logical structure in which the location and population conditions are combined incorrectly for the target question. Tri-LM finds the intended structure, with the answer drawn from capitals and the maximum applied to their populations. The example shows a way the full-question side can help the grammar learn a better association even before it is used as a fluency signal. The aggregate recall indicates that such cases do not yield a net recall gain in this comparison.

The second example isolates a choice that verification can change. The keyword input contains the words for greatest size, capital, and state. The target asks which state contains the largest capital. The unverified joint parser produces an interpretation in which the state is largest and is related by location to a capital. Its reconstructed wording places the state in the capital. The verified parser favors the more natural wording in which the state has the capital, along with the corresponding change in the logical roles. Here the likely arrangement of words reflects the direction of a relation that the keyword string left implicit.

Together the examples explain a dependency between the grammar and the fluency feature. The grammar has to generate a candidate with the needed interpretation and associate it with wording that reveals the difference. The fluency score can then make use of the wording. If the grammar produces no such derivation, higher confidence about English usage cannot introduce it during reranking. If two competing formal readings have comparably natural reconstructed questions, the short input and the other rule features still have to carry the decision.

#### What the choice of training text changes

The experiment varies the text used to estimate n-gram probabilities and separately removes neural reranking. The table includes a run with neither scorer, which has F-measure .797. Without neural reranking, News gives F-measure .802, Questions gives .806, and the in-domain Geoquery text gives .799. The Questions corpus thus gives the strongest result among the n-gram-only settings. It contains questions while coming from outside the geography benchmark. The result supports the authors’ suggestion that being representative of question wording can matter for choosing among candidate reconstructions.

The full settings use the neural reranker. With that component and no additional n-gram scorer in decoding, the system obtains F-measure .821. With News it obtains .819, with Questions .827, and with Geoquery .817. The benefit of an external scorer therefore depends on what other scoring evidence is present. In particular, News and Geoquery help relative to the run with neither scorer, while they do not beat the neural-only run when combined with it. Questions is strongest with and without neural reranking.

Fluency training text and neural reranking on Geoquery keywords by F-measure Questions gives the best result with neural reranking and leads the n-gram-only settings.

**The numbers**

| System or setting | F-measure |
| --- | --- |
| No fluency scorer | .797 |
| News n-grams | .802 |
| Questions n-grams | .806 |
| Geoquery n-grams | .799 |
| Neural reranking alone | .821 |
| News n-grams with neural reranking | .819 |
| Questions n-grams with neural reranking (this paper) | .827 |
| Geoquery n-grams with neural reranking | .817 |

This comparison concerns complete settings and their effects on answer correctness. The corpora vary in size as well as subject and type of text. News illustrates the availability of abundant general prose, Questions supplies a large sample of the relevant sentence type, and Geoquery supplies a small sample with the relevant subject matter. The best score shows the advantage of the Questions setting as configured. It leaves open how much of that advantage comes from the kinds of sentences it contains, its scale, or the way its preferences interact with the in-domain reranker.

With Questions n-grams, adding neural reranking changes recall from .804 to .820 and F-measure from .806 to .827. The paper interprets the broadly stronger results with reranking as support for better fluency estimates improving parsing. This change also clarifies the role of the retained list. The added scorer is able to improve the ordering of available candidates, a distinct contribution from steering decoding with n-gram probabilities. The experiment does not assign a separate share of the final gain to search behavior, since changing the scorer used in decoding can also change which candidates reach reranking.

#### Removing empty answers

The authors test a simpler way to reject questionable interpretations by excluding queries that return no answer. This reduces the number of distinct queries under consideration to 11.74 for full questions and 20.16 for keyword input. Yet removing empty results generally worsens performance in the tested keyword conditions. In the Questions configuration that otherwise gives F-measure .827, the empty-answer filtering version gives .793, with recall of .780.

The example about states bordering Hawaii explains the failure. A query asking about its state neighbors may correctly return an empty set. A well-formed question can have an empty answer because of the facts in the database, and the information that a relation has no instances can itself be the desired result. The filter confuses the contents of an answer with the quality of the formal interpretation. Fluency has a different basis for distinguishing candidates. It can favor a plausible question about state borders even when the answer to that question happens to be empty.

#### Putting paraphrasing before parsing

The paper also tests a pipeline in which the system first rewrites the keyword query into ordinary language and then parses the rewrite. The paraphraser learns from the paired keyword and question data using hierarchical phrase-based translation. It uses the Geoquery n-gram scorer during decoding and the neural scorer for reranking. The paraphraser obtains a [BLEU score](https://md.research.elamur.ai/free/en/concepts/bleu/) of 57.5, a measure of overlap with reference wording, while the downstream pipeline obtains 64.8 F-measure, below the direct keyword parser.

The authors attribute the result to cascading errors. An unnatural rewrite can fail to parse, and a rewrite can contain enough of the original wording to score reasonably on overlap while mishandling a relation that matters for execution. The pipeline evaluates an intermediate text output before a formal interpretation has been constructed from it. Joint decoding can evaluate a rule-based logical candidate in combination with the wording it generates. The controlled comparison concerns these implementations. It demonstrates that the measured quality of the paraphrases produced by this pipeline did not translate into reliable database answers.

#### Adding wider paraphrase evidence to the rules

A further attempt uses the external Questions collection to add features to matching grammar rules. The authors simulate keyword input for those questions with deletion and shuffling, train a hierarchical phrase-based paraphraser, and associate its rules with existing rules where the source and paraphrase sides match. A match would allow the semantic parser to use additional paraphrase features for that rule. The experiment returns no accuracy gain, with a reported matching recall of 15%.

The paper identifies several reasons for the limited overlap. The paraphrasing grammar allows no more than 2 nonterminals per rule, bars consecutive nonterminals on the source side, and requires a terminal. The semantic parser’s rules can have forms outside these restrictions. There are also lexical coverage gaps in the paraphrase resource. Accordingly, external questions can provide valuable statistics about finished wording while yielding relatively few compatible rules under this matching procedure. The authors relate the result to the difficulty of applying broad resources such as [PPDB: The Paraphrase Database](https://md.research.elamur.ai/free/en/papers/ganitkevitch-2013-ppdb-paraphrase-database/) through direct grammar matching.

### Limitations

#### Limits the authors identify

The authors explicitly treat the keyword inputs as a simulation. Their process represents word removal and flexible ordering, with human adjustments to make the resulting sequences plausible. People also choose their own content vocabulary when searching. They may substitute a simpler or more familiar expression for the one a benchmark author used. The simulated pairs retain the underlying benchmark wording apart from the specified transformations. Collecting paired real queries and fuller questions was outside the scope of the study. The paper argues that the grammar could in principle be learned from such pairs if they were available.

The evaluation is tied to U.S. geography and to the logic and database supplied by Geoquery. The conclusion names scaling to open-domain search over a larger knowledge base as future work. The grammar benefits from access to database facts that can supply additional entity rules. The reported experiments do not establish how far that procedure scales, what coverage it would achieve for a broader inventory of relationships, or how the verification evidence would behave when many more readings compete.

The annotation requirement is another boundary the authors acknowledge through their future directions. The system starts with full questions paired with formal meanings and builds keyword counterparts. It can also use large quantities of unpaired natural-language text for fluency scoring, but that text does not provide the semantic grammar’s supervision. The authors identify learning from question–answer pairs as an attractive direction, drawing on earlier semantic parsing that sought to learn without those full formal annotations. The paper leaves that change to the training procedure untested.

#### Limits visible in the evaluation design

The shortened query inherits its intended answer from a single source question. The paper’s motivating examples show why this choice needs care. A genuine keyword request may have several plausible readings. In the benchmark, the intended question is fixed by the data creation procedure, even if a different question sounds equally natural to someone encountering only the keywords. An annotator can favor a plausible reading and still make the benchmark result worse, as some of the human substitutions do. Conversely, matching the benchmark answer establishes recovery of the source question’s answer under the evaluation, not access to the private intention of a person who submitted that wording in practice.

The single keyword counterpart per question also limits what can be concluded about robustness to user wording. Two people could shorten the same geographic question differently, retain different relation words, or place the remaining terms in a different order. Here each held-out question has one particular shortened realization. The split controls for reuse of the original test examples in training. It does not assess the distribution of outcomes over all the ways a user could formulate the same request. The benchmark tells us how the approach behaves under the authors’ specified transformation and adjustment procedure.

Answer correctness is the practical target in the experiments. There is no separate test of whether all selected logical expressions are semantically equivalent to the annotated expression under different database contents. Different logical conditions could happen to return the same answer against a particular set of facts. The paper supplies formal and paraphrase examples to illustrate particular interpretive changes, but the aggregate results are answer-based. Claims about exact recovery of logical structure would require evidence beyond that readout.

The human-assisted precision numbers also depend on how the annotation candidates were gathered. Both automatic systems had to return a list for a query to enter the study, and the annotators saw selected candidates drawn from those lists. Their role was to recognize a preferred available reading. The experiment consequently measures the value of human judgment when suitable candidates can be displayed under those conditions. It leaves the behavior of a deployed search interface, including user effort and the effect of offering a different set of paraphrases, unmeasured.

Finally, the evidence for fluency is selective by design. The proposed score is sensitive to likely wording, and the examples show why an unlikely phrase can signal a poor logical interpretation. A perfectly fluent question can also be irrelevant to what the user meant, particularly when more than one relation is ordinary in the domain. The score is most informative when the grammar links the consequential logical difference to a consequential difference in wording. The experiments establish that such differences help on these Geoquery inputs, while the results on the original full questions show that the inferred cues recover only part of what the complete wording contributes.

### What came after

No later citing study is documented here. The paper itself ends with two proposed extensions. The first is parsing open-domain keyword requests over a larger knowledge base such as Freebase. That extension would test whether the joint grammar can generate sufficiently good paraphrases and formal candidates when the range of entities and relations is much broader than in Geoquery.

The second is learning from questions and answers rather than relying on explicit meaning representations for training. The authors point to earlier work that uses this weaker supervision and propose incorporating it into their approach. The unanswered question is how to learn the link between a paraphrase and the semantic choices inside a derivation when the training example supplies the answer but leaves the intervening logical form unspecified. Both extensions remain proposals in the paper.

## Cite

Cite as Philip Arthur, Graham Neubig, Sakriani Sakti, Tomoki Toda and Satoshi Nakamura. 2015. Semantic Parsing of Ambiguous Input through Paraphrasing and Verification. Transactions of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1162/tacl_a_00159](https://doi.org/10.1162/tacl_a_00159)

```bibtex
@article{arthur2015semantic,
  title = {{Semantic Parsing of Ambiguous Input through Paraphrasing and Verification}},
  author = {Philip Arthur, Graham Neubig, Sakriani Sakti, Tomoki Toda and Satoshi Nakamura},
  journal = {Transactions of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.1162/tacl\_a\_00159},
  url = {https://doi.org/10.1162/tacl_a_00159}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
