---
title: "Building a Semantic Parser Overnight — Wang 2015"
description: "Building a Semantic Parser Overnight shows how to turn a database schema and crowdsourced paraphrases into a natural language query…"
canonical: "https://research.elamur.ai/free/en/papers/wang-2015-building-semantic-parser-overnight/"
---
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/wang-2015-building-semantic-parser-overnight/)

[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/) / Building a Semantic Parser Overnight

# Building a Semantic Parser Overnight

Paper · 2015 · Yushi Wang, Jonathan Berant and Percy Liang

**Authors:** [Yushi Wang](https://md.research.elamur.ai/free/en/authors/yushi-wang/), [Jonathan Berant](https://md.research.elamur.ai/free/en/authors/jonathan-berant/) and [Percy Liang](https://md.research.elamur.ai/free/en/authors/percy-liang/) · **Year:** 2015 · **Venue:** Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**318** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2251957808) · [Cited by **164** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/wang-2015-building-semantic-parser-overnight/cited-by/) · [Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)](https://aclanthology.org/volumes/P15-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/P15-1129/)
- [PDF](https://aclanthology.org/P15-1129.pdf)
- [DOI 10.3115/v1/p15-1129](https://doi.org/10.3115/v1/p15-1129)
- [OpenAlex](https://openalex.org/W2251957808)

Citations: OpenAlex, 2026-10-14.

## Summary

A new database can be ready to query long before anyone has collected examples of how people would ask it questions. That is the starting point of *Building a Semantic Parser Overnight*. The authors want to build a system that turns ordinary requests into queries the database can execute, a task known as [semantic parsing](https://md.research.elamur.ai/free/en/concepts/semantic-parsing/). They begin with the operations the interface should support. A developer gives database predicates short, readable names. A reusable grammar then combines those names into executable queries and produces a plain-language rendering of each query. Crowdworkers rewrite these renderings in their own words. The system trains on the rewrites, with the original queries supplying their meaning labels.

The generated phrases make the work feasible because they give people something specific to say without asking them to work out the answer. They also let the developer request examples of comparisons, superlatives, negation, and aggregation by exercising the corresponding grammar rules. The authors call attention to a complication that makes these examples necessary. A short expression can do the work of several operations in a query. Asking for articles published after a named paper, for instance, implies looking up that paper’s date and using it as the boundary of a comparison. The authors hypothesize that many such expressions correspond to small pieces of query structure, so a collection of fairly shallow examples can teach language that remains useful when the parser encounters more deeply nested requests.

The initial collection covers seven domains and contains 12,602 examples. The system ranks pairs of candidate queries and generated renderings using similarities between the renderings and the user’s wording, including similarities learned from the crowdworkers’ rewrites. The reported average is about 59%, with the results table giving 58.8% test denotation accuracy across the original domains and the added RECIPES domain. Denotation accuracy asks whether executing the selected query returns the right answer. For the overnight RECIPES demonstration, the authors wrote the seed lexicon in less than 30 minutes, collected rewrites while they waited overnight, and obtained 70.8% on the test set the following morning. The authors released the code, data, and experiments through CodaLab, and the implementation uses SEMPRE.

Tests on independently written requests show how much the evaluation source matters. On the 280 standard GEO880 test examples, the parser achieved 56.4% without using the benchmark’s 600 standard training examples. The paper gives roughly 90% as the contemporary state of the art. In its geography development analysis, accuracy for the top-3 derivations reached 73%. Preference for short renderings and the search depth limit both contributed to errors. In a separate collection of freely written CALENDAR requests, the grammar could express 52% of the cleaned queries. On the 95 requests the authors could annotate, the parser gave the correct answer for 46.3%, while the final set of retained candidates contained a correct answer for 84.2%. The workflow makes it possible to train a parser quickly. The independent tests show how much remains to be learned about which requests people make and how to rank the queries that answer them.

## Deep dive: Building a Semantic Parser Overnight

Building a Semantic Parser Overnight shows how to turn a database schema and crowdsourced paraphrases into a natural language query interface. · about 44 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

#### A database before an interface

Suppose a publications database stores papers, authors, citation links, and dates. It already knows which authors belong to which paper and which papers cite one another. An interface has to establish what a user wants done with those facts. A question about who wrote a paper calls for a lookup. A request for the newest paper calls for ordering papers by date and selecting an extremum. A request to count the papers that appeared later than a particular work combines a lookup, a comparison, a restriction to papers, and a count. A semantic parser turns each request into an explicit instruction that the database can execute.

The authors assume that the database and its schema are already available and that the builder has some idea of the intended functionality. That assumption leaves a substantial gap. The database schema has a name for the relation that stores a publication date, while users might express the relation through a verb such as “publish,” a phrase about recency, or a comparison with some other paper. The table of facts supplies the values to compare. It supplies little direct evidence about the words with which a person will request the comparison.

Collecting a corpus from an existing interface would put real requests in front of the developer. A new interface has no such history. Even asking people to imagine questions leaves the choice of operations largely to the people who happen to contribute. They might provide many variations of a lookup and few examples that require counting or comparing. That imbalance has practical consequences. A system built on the resulting collection may respond to some apparently simple requests while failing on others that users reasonably expect it to handle. The training corpus can leave the boundaries of the interface implicit.

The paper illustrates the issue with WebQuestions, which it describes as containing no questions whose answers are numbers. This is an example of a collection failing to exercise a whole class of outputs. It matters even when the underlying database can support such outputs. A developer who starts from a grammar can make a count or a numerical comparison an explicit part of the intended interface, then generate material for that operation before the first user arrives. This changes the initial question for data collection. The builder asks which executable operations should be represented and which sentences could teach them.

There is a corresponding tradeoff. An inventory of intended operations is a good place to start if the builder knows the application. User requests can still reveal that an omitted operation matters or that a purportedly central operation rarely comes up. The paper separates these sources of evidence in its evaluation. It first asks how well a parser learns from the data the process produces, then asks what happens when the wording or the intended query comes from outside that process.

#### What earlier supervision supplied

One tradition described in the paper used sentences paired with annotated logical forms. A logical form specifies the entities, relations, and operations the system should execute. This supervision tells the learner much more than the final answer does. If an answer happens to be a publication date, the logical form can say exactly which paper to look up and how that paper was identified. The expense is that someone must supply a formal analysis for the original sentence. The paper places work on probabilistic categorial grammars and synchronous grammars for semantic parsing in this tradition.

Other work used denotations as supervision. A denotation is what an expression evaluates to in a particular database. A person might know the answer to a question and be able to record it without knowing how to write the formal query. The learner then has to contend with an ambiguity that explicit annotations can resolve. Distinct queries can yield the same answer against a given database. The expected answer provides evidence for a query, while the learner still has to identify what the question meant. The paper discusses this shift alongside work that used still weaker forms of supervision. [Semantic Parsing on Freebase from Question-Answer Pairs](https://md.research.elamur.ai/free/en/papers/berant-2013-semantic-parsing-freebase-question-answer/) exemplifies the use of questions paired with answers.

For the new-domain problem, both kinds of supervision begin after an important event has already occurred. Someone has produced a question. Once that question exists, attaching an answer can be much easier than writing a logical form, but a person still has to understand the question and determine the answer. The second task can involve finding facts or carrying out several operations. If a question asks which person authored the largest collection of papers, for example, deciding that the request is intelligible takes less work than comparing author totals.

The authors shift the task given to the annotator. Their crowdworkers get a verbal rendering of an already specified query. Their job is to decide what it is asking and express that meaning in more natural language. The system already has the query, so an accurate rewrite inherits its logical form. This is a way to obtain explicitly labeled training examples without requiring a crowdworker to write in a formal language. The quality of the supervision then depends on how well the original rendering communicates the intended query and how faithfully the worker preserves it.

The paper also sets its work against the emphasis on large knowledge bases such as Freebase. It argues that the scale of those resources should be distinguished from the range of compositional requests in collections such as Free917 and WebQuestions. A broad knowledge base can be the backdrop for questions that exercise a relatively narrow range of operators. Conversely, a specialized database can invite demanding compositions and language that is peculiar to its subject. A targeted interface for a website or device can therefore pose an interesting problem even with a much smaller database. The paper mentions regular expressions and language grounded in perception as examples of the persistence of specialized uses.

#### What the grammar is responsible for

There were precedents for using paraphrases in [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/), including work centered on requests involving a single property. The most immediate precedent for the parser is [Semantic Parsing via Paraphrasing](https://md.research.elamur.ai/free/en/papers/berant-2014-semantic-parsing-paraphrasing/). Its relevance is the idea of mediating between an input request and an executable meaning with another linguistic expression. The additional role for paraphrasing in the overnight workflow is upstream. It creates the training corpus itself.

The authors also discuss the resemblance to older rule-based database interfaces and to controlled natural language. Writing a grammar intended to recognize the ways users naturally ask for something is a demanding undertaking. The grammar in this paper has a more tractable assignment. For a query it can construct, it should say what the query means in a recognizable way. One faithful rendering is enough to give the learner and the crowdworker a starting point. The available wording can be stiff, and the grammar can use the same construction repeatedly across domains.

There are consequently two different language problems. The first is finding a conventional way to verbalize a formal operation so that another person understands it. The second is recognizing how people will express that operation in context, sometimes with words whose contribution spans several pieces of the formal query. The builder and the shared grammar address the first problem. Human rewrites supply the evidence from which the parser learns to address the second. Keeping those jobs distinct is what allows the grammar to remain compact while giving the interface a chance to handle wording that its grammar would never generate.

### The method, step by step

#### From a schema to a labeled example

The process starts by choosing readable expressions for things already defined in the database. In a publications database, a developer can supply *article* as the name of a type, *publication date* as the name of a property, and *cites* as a way of expressing a relation between papers. These lexical choices give the reusable grammar material for building questions about the domain. They also determine how much information a worker can recover from each generated phrase. A short label like *date* can leave several plausible interpretations, while *publication date* identifies the event that the date describes.

The grammar then generates a query and a canonical utterance together. A canonical utterance is a standardized expression of the query’s meaning. For a query selecting the latest article, the grammar can describe an article with the greatest publication date. That sounds formal, but a worker can infer that it means the most recently published paper. Because the date property and the superlative operation were already chosen during generation, the worker’s rewrite can be paired with a specific executable query.

When the parser is used, the direction changes. It receives natural wording, proposes formal queries along with their canonical renderings, and scores those renderings against the input. A generated description can be a strong match even when its syntax differs from the user’s. For example, *newest* can support a candidate whose canonical rendering mentions the maximum date. Once the parser has selected a candidate, the logical form is the part that is executed.

From a database schema to a parser The steps in order.

#### What the seed lexicon contains

The paper represents the database as a set of triples. A triple records an ordered pair of entities and the property connecting them. Values such as dates can occupy an entity position in this representation. Here is the notation for one database fact.

```
(e₁, p, e₂) ∈ w
```

The symbol `w` is the database. The sign `∈` means that the expression to its left belongs to that set. The symbols `e₁` and `e₂` identify the first and second entities in the fact, and `p` is the database property linking them in that order. Parentheses and commas group the three entries into a triple. For a publication date fact, the first entity is a paper and the second is its date.

The seed lexicon is the bridge from the database vocabulary to the grammar. A lexical entry associates a piece of wording with a syntactic category and a database meaning. The category describes where a phrase can be used in a generated expression. The lexical entry for a date property can indicate that the builder wishes to use it as a relational noun phrase, a phrase that names something in relation to another object. That category licenses constructions such as asking for the publication date of a paper.

```
⟨t → s[p]⟩
```

The angle brackets enclose one lexical rule. The symbol `t` is its surface phrase, `s` is the syntactic category assigned to it, and `p` is the predicate that supplies its meaning. Square brackets attach the predicate to the category. The arrow says that the phrase can be used to produce a constituent with that category and meaning.

Type names and entity names also enter the lexicon, in separate categories. A type name such as *article* describes a class of objects. An entity name picks out a particular object. The builder supplies two typical entities for each semantic type, giving the generator material for questions about concrete instances. This makes it possible to show a worker what it means to request papers that cite a named paper or meetings that include a named attendee.

The lexicon uses verb phrases for unary predicates, which apply to single entities. A housing predicate indicating the presence of a private bath can be rendered as a phrase about having one. For binary predicates, which connect ordered pairs, the builder chooses between relational noun phrases and the category for transitive expressions. A date is usually suitable for the noun phrase category. *Cites* naturally takes a noun phrase for its object. The transitive category also admits longer expressions that fit into the same pattern. The relevant question is which surface construction lets the predicate combine intelligibly with other material.

These assignments give the developer a small but consequential role in the design of the generated language. The grammar can know how to compare the values of a property without knowing what that property means to a basketball fan. To handle a label that needs more context, the authors sometimes add a parenthetical qualification. A phrase about assists, for example, can specify that the count is for a season. That qualification provides information that a generic rule for counting has no way to supply.

#### How a query gets its meaning

The formal query language is lambda DCS. The paper builds expressions whose values are sets. A unary expression denotes a set of entities. A binary expression denotes a set of ordered pairs. An individual name has a unary denotation with just that individual in it, while a database property denotes the pairs recorded under that property.

```
⟦e⟧ᵥ = {e}
```

The double brackets mean “the denotation of the enclosed expression.” The subscript `ᵥ` indicates evaluation in the database `w`. The symbol `e` is an entity, the equals sign expresses equality of the two sets, and the braces on the right enclose a singleton. A named article used as an expression therefore denotes a set containing that article.

```
⟦b.u⟧ᵥ = {e₁ | ∃ e₂ ∈ ⟦u⟧ᵥ, (e₁, e₂) ∈ ⟦b⟧ᵥ}
```

Here `b` is a binary expression and `u` a unary expression. The dot is the join operator. The result contains each `e₁` for which there exists an `e₂` in the denotation of `u` such that the ordered pair `(e₁, e₂)` is in the denotation of `b`. The braces specify a set, the vertical bar means “such that,” and `∃` means “there exists.” The symbols `∈`, `=`, and `ᵥ` again indicate membership, equality, and the database of evaluation.

A join can use a property to select the objects associated with a known value. Joining `publicationDate` to a year selects the entities whose dates match that year. The reverse lookup uses the same stored pairs in the opposite direction. Given a known article, the intended result is its date. The query first reverses the relation and then joins it to the article.

```
(e₁, e₂) ∈ ⟦b⟧ᵥ ⇔ (e₂, e₁) ∈ ⟦R(b)⟧ᵥ
```

The symbol `R` denotes reversal, and `⇔` means that the membership conditions on its two sides are equivalent. If a pair with first component `e₁` and second component `e₂` belongs to the binary relation `b`, the pair in the opposite order belongs to `R(b)`. The denotation brackets are evaluated against the same database.

Once expressions denote sets, conjunction and disjunction can use ordinary set operations. The paper writes intersection with `⊓` and union with `⊔`. The complement operator `¬` supports negated constraints. For instance, a query can intersect the set of articles with the set that satisfies a date condition. It can then apply a negated citation constraint to keep articles that lack a particular connection. Each constraint contributes a set, and the overall description picks out the entities meeting the combined conditions.

Aggregation and superlatives use the selected entities as input. In `count(u)` the operator counts the elements in the unary denotation `u`. The paper also includes `sum(u)` and `average(u, b)`, with the latter using a binary relation `b` to supply values for the entities in `u`. Its superlative construction compares values assigned to members of a selected set. The result is the subset achieving the extremum, which allows tied entities to remain in the denotation.

```
argmax(type.article, publicationDate)
```

The operator `argmax` returns the members of its first argument that attain the maximum under the relation given by its second argument. The parentheses enclose the arguments and the comma separates them. The type expression `type.article` denotes the set of articles. The binary `publicationDate` associates articles with their publication dates. The period inside `type.article` is part of the notation for the type predicate, while a dot between separate query expressions indicates a join. The grammar also has the corresponding minimum construction.

A ranking can use a quantity calculated from facts instead of a scalar property stored with each entity. To find the paper citing the most papers, the system needs to calculate a count separately for each candidate. Lambda abstraction provides a way to make a binary relation out of that calculation.

```
⟦λx.u⟧ᵥ = {(e₁, e₂) | e₁ ∈ ⟦u[x/e₂]⟧ᵥ}
```

The symbol `λ` introduces an abstraction, `x` is the variable it binds, and `u` is the unary expression making up its body. The dot after `x` separates the variable from that body. In `u[x/e₂]`, the brackets and slash indicate substitution of `e₂` for the free occurrences of `x` in `u`. For each possible `e₂`, the expression includes a pair with `e₁` whenever evaluating the substituted body produces `e₁`. The other symbols mark the resulting set, the membership condition, and evaluation in the database.

```
R(λx.count(R(cites).x))
```

The predicate `cites` runs from a citing article to an article it cites. Starting with an article assigned to `x`, the inner reversal and join retrieve the articles it cites. The operator `count` measures the size of that set. The abstraction associates such a count with the article used as its argument, and the outer `R` orients the resulting pairs from article to count. This gives a superlative the same kind of input it receives from a direct date property. The formal representation can therefore handle a stored quantity and a calculated quantity using related constructions.

#### How the grammar builds text and logic together

The grammar builds trees. At the leaves, lexical rules supply wording and meanings for database predicates and entities. At an internal node, a rule specifies how to combine the words and grammatical categories beneath it. That same rule also specifies how their logical meanings combine. The surface string for the whole tree and the logical expression at its root are assembled through the same derivation.

```
⟨α₁ … αₙ → s[z]⟩
```

The angle brackets mark a grammar rule. The symbols `α₁` through `αₙ` stand for the sequence of tokens or categories the rule takes as input, and `n` is the length of that sequence. The ellipsis indicates the intervening elements. The arrow points to the result, where `s` is the resulting category and `z` the logical form assigned to it. The square brackets attach that meaning to the category.

One rule takes a relational noun phrase and an entity-denoting noun phrase joined by the word *of*. Its meaning applies a reversed relation to the entity. The grammar can therefore produce a request for an article’s publication date while constructing a query that follows the date property towards its value.

```
⟨RelNP[r] of NP[y] → NP[R(r).y]⟩
```

The category `RelNP` identifies a relational noun phrase, `NP` denotes a noun phrase, and `of` is a literal word supplied by the rule. The variable `r` stands for the binary relation expressed by the relational noun phrase. The variable `y` stands for the unary meaning of the input noun phrase. The result is another noun phrase, whose logical form joins `y` to `R(r)`, the reverse of `r`. The arrow and brackets play the same roles as in the general rule schema.

Another family of rules produces phrases that modify a noun. A phrase containing a comparison such as *at least* can introduce a constraint on the value of a property. A transitive expression can take an object and supply a constraint on the subject, as when a clause restricts articles by what they cite. The rules also allow the relation to be used in the reverse orientation, so the paraphrase learner can encounter constructions in which the entity described by the head noun occupies a different role. Where the grammar allows negation, it builds the corresponding complement in the logical form.

The grammar then combines modifiers with a noun phrase by intersection. An article that meets a date condition and a citation condition belongs to the article type and to the sets picked out by both modifiers.

```
NP[x] CP[f] (and CP[g])* → NP[x ⊓ f ⊓ g]
```

The input starts with a noun phrase `NP` carrying the unary meaning `x`. The category `CP` denotes a complementizer phrase, used here for a modifier, and `f` and `g` are the unary meanings of such modifiers. The word `and` is a literal connector. Parentheses group the additional modifier pattern and the asterisk allows repetition. The arrow produces a noun phrase whose denotation intersects the head meaning with the meanings of the modifiers, using `⊓` for set intersection. The displayed `g` represents the contribution of an additional modifier where one occurs.

The grammar can also choose disjunction, take a count, or apply a superlative to a noun phrase. A superlative over a directly recorded property refers to a value such as date. A superlative over a count refers to the size of a set related to each candidate. Other rules express thresholds on those counts and specify the direction of comparison. The surface wording explains which property or related entity class is involved. The formal side says which set is counted, which objects are compared, and which candidates remain in the result.

Relations with several arguments require special treatment. In SOCIAL, an education record can be represented by an abstract entity with links to a student, a university, a field of study, and start and end dates. The paper’s example connects an education record to Alice, UCLA, music, and the relevant dates. The grammar designates one of the relations, in this case the student link, as the subject. It can then describe students through conditions on their education records. It can also request a value from a matching record, such as the university associated with a particular student and start date. A human rewrite can express the same information with a verb such as *study* and its accompanying phrases, even though the database uses several distinct links.

The common grammar and the seed lexicon together specify which query and utterance pairs can be generated. In actual generation, type checks rule out incompatible combinations. The authors also limit recursion to keep the utterances intelligible. A grammatically available rule that takes a citation object should, for instance, be prevented from inserting a bare year where it needs an entity that can be cited.

```
GEN(G ∪ L) = {(z, c)}
```

The symbol `G` is the domain-general grammar, `L` is the seed lexicon, and `∪` combines these sets of rules. The operation `GEN` generates the pairs permitted by the rules in the generation procedure. The braces enclose the resulting set, where each pair contains the logical form `z` and the corresponding canonical utterance `c`. The equals sign names the set on the right as the output of that procedure.

The paper describes the underlying expectation as canonical compositionality. The idea is that the structure of a formal query can guide the construction of a readable rendering. The rendered text need only make the right interpretation available. For the implemented grammar, this means accepting singular nouns where a fluent author would use plurals and leaving out determiners. It also means choosing lexical labels that still communicate the intended property when placed in one of the shared constructions.

#### What the workers contribute

The Mechanical Turk task shows a worker four canonical utterances. For each, the worker can supply a natural reformulation or say that the original is incomprehensible. The authors sent each canonical utterance to 10 workers. Having multiple people perform the task gives the collection a chance to record different ways of expressing the same operation. It also yields repetitions and, in some cases, the same natural wording attached to distinct canonical utterances.

Across the seven initial domains, the collection received 18,032 responses. The mean time for a worker to paraphrase an utterance was 28 seconds. The authors collapsed identical rewrites associated with the same canonical utterance and discarded identical rewrites that were associated with distinct canonical utterances. The resulting collection had 12,602 examples. An example retains the natural wording, the generated wording, and the formal query. The parser can use the first two to learn similarities and the third to identify the candidate it should select.

```
D = {(x, c, z) | (z, c) ∈ GEN(G ∪ L), x ∈ P(c)}
```

The symbol `D` names the training dataset. In each triple, `x` is a natural utterance, `c` its source canonical utterance, and `z` the logical form generated with `c`. The condition after the vertical bar requires the pair `(z, c)` to come from generation with the combined grammar and lexicon, and `x` to belong to `P(c)`, the set of accepted paraphrases of `c`. The punctuation groups the triple and states the membership conditions for the set.

Sometimes the rewrite stays close to the source. *Brick* can stand in for *block*, preserving the same grammatical role. Often the change affects the whole construction. A canonical phrase relating a meeting to an attendee may become a phrase about a meeting *with* that person. A relation involving an author can become a clause with *wrote*. In BASKETBALL, a noun phrase naming a point total can become a verb phrase about the points a player scored. In each case, a grammar rule licenses the formal operation and the source wording, while the rewrite shows a more idiomatic way to communicate it.

Some natural expressions stretch across several rules. Consider how a publications query establishes who co-authored a paper with a named individual. It must identify papers by that individual and then follow the author relation to people associated with those papers. The compact verb *coauthor* can evoke that chain. A phrase about people born on the same day also condenses a comparison between values obtained through separate uses of the same date relation. In CALENDAR, an expression with *between* can carry a start constraint and an end constraint that the canonical grammar describes separately.

The authors call this sublexical compositionality. The name refers to a mismatch in the size of the relevant units in ordinary language and the query. One word, or one short phrase, can correspond to a compound logical fragment. Conversely, the rest of a request can relate to that fragment in an ordinary compositional way. The phrase asking for a count can remain recognizable as a count even if the description of what to count contains a compressed comparison between publication dates.

This distinction motivates the paper’s assumption of bounded non-compositionality. If the mismatches are typically local to small fragments, examples need only get deep enough to show those fragments. A larger query could then combine several familiar fragments in a new way. If the mismatch instead extended unpredictably across entire derivations, collecting examples for clearly chosen grammar rules would still leave the builder with a large number of missing constructions. The extent to which the shorter examples suffice is therefore an empirical question.

#### How a new request becomes a set of candidates

The typical entities in the seed lexicon are useful during data generation. At runtime, the input may mention other database entities or values. The parser detects dates and numbers and uses string matching to recognize database entity names. These recognitions yield rules tied to the current input. If the utterance names a paper and a year, the procedure can supply entries for that paper and year even if the representative names used to collect the paraphrases were different.

```
Lₓ = (L with its entity rules replaced by T(x))
```

The symbol `Lₓ` denotes the lexicon used for utterance `x`. The symbol `L` is the original seed lexicon, and `T(x)` is the set of lexical rules triggered by detecting values and matching entity names in that input. The text on the right specifies the replacement, and the equals sign defines the resulting lexicon. The other domain-specific vocabulary continues to be available.

Candidate generation applies the common grammar with this input-specific lexicon. It builds larger expressions from smaller ones. The generator can combine pieces of meaning even when the resulting construction has no literal counterpart in the input. An utterance consisting of the word *article* can, for instance, yield a candidate that counts articles. The candidate remains possible because generation has the article type and the count rule. Evidence from the input then helps determine whether that candidate deserves to survive and rank highly.

The search would become large if it retained everything the grammar could build. The authors use beam search, which keeps a limited collection of candidates at each search state. A state includes the syntactic category and the depth of the logical form. The paper sets the candidate limit to `K = 20` for each state. Here `K` is the beam limit. This lets the system try different ways of composing the recognized material without having to carry every possible derivation forward. It also means that an early scoring decision can remove a partial analysis on which a correct final query depends.

#### How the candidates are scored and the parser is trained

The parser assigns higher probability to candidate pairs that have stronger evidence from a weighted collection of features. A feature is a measurable property of a candidate and its relation to the input. One can record a word match, for instance, while another can record how much material a canonical utterance contains that has no counterpart in the user’s request. The score adds the weighted contributions of these features.

```
pθ(z, c | x, w) ∝ exp(φ(c, z, x, w)ᵀθ)
```

The expression `pθ` is the conditional probability under the learned parameters `θ`. Its outcomes are the logical form `z` and canonical utterance `c`, and the vertical bar introduces the given utterance `x` and database `w`. The sign `∝` means proportional to. The function `exp` exponentiates the weighted score. The vector `φ` contains the feature values for this candidate in context, and `ᵀ` indicates transpose so that multiplying by `θ` forms their dot product. Both vectors contain `d` real-valued entries, where `d` is the number of feature dimensions. The proportional scores are normalized over the competing candidate pairs.

The basic evidence includes word and adjacent-word matches. Some matches use a shared [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/), the normalized form used to associate variants of a word. Others use entries from the general-purpose [Paraphrase Database](https://md.research.elamur.ai/free/en/papers/ganitkevitch-2013-ppdb-paraphrase-database/), or PPDB. The features count supported matches and also count unmatched words on either side. A candidate that contains an extra constraint can therefore receive different evidence from one that covers just the user’s request. The parser also has access to the size of the candidate’s denotation and the size of the derivation tree. It can combine the grammatical category of the input’s first word with a coarse distinction between entity and number answers.

The domain-specific lexical evidence comes from alignments of the natural and canonical utterances in the training pairs. The authors use the Berkeley Aligner, associated with [Alignment by Agreement](https://md.research.elamur.ai/free/en/papers/liang-2006-alignment-agreement/), to estimate conditional probabilities for word alignments. Those probabilities support a maximum-weight alignment for a pair of utterances. This is a choice of correspondences between positions that makes the combined alignment weight as large as possible.

For an aligned natural word, lexical features can associate it with the corresponding canonical word or with that word and one of its neighbors. Adjacent aligned words support features linking adjacent spans. Unaligned words can contribute evidence of their own. The same alignments also support a phrase table. The method extracts pairs of phrases consistent with the word correspondences and adds an indicator when a candidate pair contains one of those phrase pairs. For example, a concise authorship expression in a natural rewrite may align with a longer construction that explicitly names the author property.

These alignments act as evidence in scoring. A pairing observed in training need not become the only legal way to analyze a word. It can receive a weight alongside evidence about the rest of the utterance and the result returned by the candidate. This is particularly important for wording that has different implications across a domain. Even a frequent association can be a misleading guide to a particular sentence.

Training gives the annotated triple a higher probability while penalizing large parameter values. Since the original query is available for each accepted rewrite, the likelihood can refer directly to the intended canonical utterance and logical form.

```
O(θ) = ∑₍ₓ,꜀,𝓏₎∈D log pθ(z, c | x, w) − λ‖θ‖₁
```

The symbol `O` is the objective to maximize, and its argument `θ` is the parameter vector. The sum `∑` ranges over triples `(x, c, z)` belonging to `D`. The function `log` takes the logarithm of the probability assigned to the annotated pair `(z, c)` for input `x` in database `w`. The minus sign subtracts the penalty. The symbol `λ` here is the regularization weight, separate from the use of lambda to bind a variable in a logical form. The notation `‖θ‖₁` is the sum of the absolute values of the parameter entries. The authors optimize this objective with AdaGrad. The resulting weights guide the beam and the ranking of completed candidates at test time.

### Experiments and results

#### What the main test measures

The initial experiments cover seven application domains selected for different linguistic and database phenomena. CALENDAR emphasizes temporal wording. BLOCKS involves descriptions of spatial arrangements. HOUSING introduces measurement units, and RESTAURANTS includes extended phrases expressing unary properties. PUBLICATIONS provides cases in which short pieces of language correspond to compound queries. SOCIAL exercises relations with several arguments, and BASKETBALL tests labels that need parenthetical context. The authors add RECIPES in a separate turnaround experiment and include its score in the main results table.

These domains give the same grammar different work to do. In BLOCKS, a spatial extreme can be described by looking at where other blocks lie relative to a candidate. A generated query for the leftmost block can, for instance, favor the block with the greatest number of blocks to its right. A worker can express the result directly as a request for the block furthest to the left. In SOCIAL, a request for the date when someone began attending a university needs conditions on an education record before it can retrieve the date. The surface request may sound like a simple question beginning with *when*, even though the formal derivation has several parts.

The authors construct a database for each domain by generating facts from its entities and properties, subject to the types allowed by the schema. Each domain has a random test holdout of 20% of its examples. The remaining 80% is used for development, with a further training and development split of 80%/20%. The held-out items in the main experiment are examples made through the same generation and paraphrasing process as the training items.

The evaluation metric is denotation accuracy, the fraction of examples for which the selected query executes to the expected answer. It credits an alternative query when its result happens to agree with the reference in the test database. That suits the practical aim of producing an answer for the user. As a measurement of semantic analysis, it has a qualification. Two queries that agree in a given database can differ on other database contents. The metric therefore tracks successful answers under the experimental conditions rather than exact agreement of formal expressions.

The main results compare the full parser with three reduced versions. NO LEX removes the lexical features learned from aligned in-domain rewrites while retaining the PPDB match features. NO PPDB keeps the domain-specific features and removes the PPDB matches. BASELINE omits both groups. These comparisons hold the broad parsing procedure in common, allowing the authors to examine what the two sources of paraphrase evidence contribute.

Average test denotation accuracy across the eight domains The full parser leads overall, and removing learned lexical features has the largest effect of the individual removals.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| BASELINE | 31.3 |
| NO LEX | 36.8 |
| NO PPDB | 56.9 |
| FULL (this paper) | 58.8 |

The authors describe the overall result as 59% in rounded language. The table reports an average of 58.8% for FULL, 56.9% for NO PPDB, 36.8% for NO LEX, and 31.3% for BASELINE across the eight domains. Averages are useful for this feature comparison because each variant faces the same collection of domains. They also leave a broad spread in individual results.

Full parser test denotation accuracy by domain Results vary appreciably across domains using the same generation and training procedure.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| BLOCKS, full parser (this paper) | 41.9 |
| BASKETBALL, full parser | 46.3 |
| SOCIAL, full parser | 48.2 |
| HOUSING, full parser | 54.0 |
| PUBLICATIONS, full parser | 59.0 |
| RECIPES, full parser | 70.8 |
| CALENDAR, full parser | 74.4 |
| RESTAURANTS, full parser | 75.9 |

The high end of the range includes RESTAURANTS at 75.9% and CALENDAR at 74.4% on their generated-data test splits. BLOCKS reaches 41.9% under the same metric and split procedure. SOCIAL, with 48.2%, includes requests where ordinary language can compress a set of related record fields into a single construction. The score differences establish that performance varies materially by domain. The domains change several conditions together, including the predicates, the paraphrases, and the query structures. Their scores alone cannot tell which of those conditions produces a particular order.

#### How the overnight run worked

The authors began the RECIPES run exactly 24 hours before their submission deadline. They started at midnight, built the seed lexicon in less than 30 minutes, and then generated the material for workers to rewrite. The paraphrases were collected overnight. By morning, the authors had trained a parser and obtained a RECIPES test denotation accuracy of 70.8%.

The run demonstrates the turnaround of an assembled workflow. The lexicon represents work specific to recipes. The generation grammar, interpretation of the formal queries, crowdsourcing procedure, and parser training were already available. The test measures performance on held-out examples from this run’s generated and rewritten data. It provides a direct demonstration that a working parser could be trained within the stated period under those conditions.

#### What happened on independently written questions

GEO880 tests what happens when the questions are taken from outside the authors’ data collection process. The team built a parser for US geography using its own workflow and evaluated it on the 280 standard test examples. It left the benchmark’s 600 standard training examples unused. The result was 56.4% test accuracy. The paper gives the contemporary best performance as approximately 90%, so the comparison illustrates the distance from the strongest reported systems while the training condition identifies what was different about the overnight approach.

The geography test can expose problems hidden by a matched training and test collection. Its questions may require deeply nested structures, or express common distinctions in ways the generated examples taught the parser to associate with a different predicate. The authors’ development analysis uses a separate sample of 100 sentences, on which the reported accuracy is 60%. Keeping that sample distinct from the standard test set matters when interpreting the error analysis and the paper’s figure of 73% for the top-3 derivations.

The independent CALENDAR evaluation begins earlier in the process. Workers were free to invent calendar queries without a generated sentence to steer them. The authors collected 186 queries and discarded 5 as spam. They replaced the named people, dates, and other entity mentions with entities from the seed lexicon. This isolates more of the problem of interpreting the request by reducing the pressure on entity recognition. In total, the grammar could express 52% of the cleaned queries.

The next step assesses the trained parser on the 95 requests that the authors could annotate with logical forms. Its first choice gave the correct denotation for 46.3%. Oracle accuracy, which counts a success whenever a correct denotation appears anywhere on the final beam, was 84.2% on those same requests. This measures the potential of the candidates the search retained. An oracle is allowed to use the correct answer to identify a successful candidate after the fact, whereas the deployed scoring procedure must choose from the candidates using features available at prediction time.

The independently written calendar data thus exposes two separable sources of failure. A request can be outside the grammar’s expressible range before ranking begins. A representable request can still receive the wrong answer because of the candidates the search constructs or the order in which it ranks them. The grammar coverage figure and the two denotation accuracy figures refer to different points in that process and use the corresponding populations of requests.

### What the ablations show

#### The domain’s rewrites carry most of the lexical evidence

The feature removals address a claim that motivated the workflow. If an existing resource were enough to recognize the wording used in a specialized domain, the procedure could rely more heavily on general paraphrase evidence. The full results favor the evidence learned from the crowdworkers’ paired utterances. Leaving out the learned lexical features reduces the reported average test accuracy from 58.8% to 36.8%, even though the parser still has PPDB matches. Leaving out PPDB instead gives an average of 56.9%.

The differences vary considerably by domain. In CALENDAR, NO LEX gets 25.0% on the generated-data test set, while NO PPDB gets 73.2%. SOCIAL shows 15.3% for NO LEX and 43.6% for NO PPDB. This fits the authors’ account of constructions whose meaning depends on the repeated combinations of properties or arguments in a particular application. The same words can describe quite specific formal operations once they are used in a calendar or a social database. Examples made for the domain are a direct source of those associations.

The separation is smaller in HOUSING, where NO LEX gets 51.9% and NO PPDB gets 54.5%. The latter is above FULL’s 54.0% for that test split. RESTAURANTS reaches 64.6% with NO LEX and 73.8% with NO PPDB. Removing both feature groups produces the lowest average, although the remaining evidence can still yield substantial accuracy in some domains. For RESTAURANTS, BASELINE reaches 61.3% on its test set. Word overlap and other basic cues can evidently do some of the work when surface descriptions are close enough to the words a user employs.

The comparison removes whole families of features. In particular, the lexical ablation affects evidence from word alignment, neighboring words, and extracted phrase pairs. The result supports learning lexical correspondences from the domain’s rewrites as a group. It leaves open which particular lexical features produced the gain, which expressions account for it, and how much the gain depends on the rest of the scoring procedure. Because those weights also guide beam search, the observed differences can reflect both what gets generated far enough to survive and how completed queries are ranked.

#### How far shallower examples transfer

The nesting experiment uses CALENDAR to probe the claim about small logical fragments. The authors divide utterances according to the number of noun phrases embedded inside a noun phrase in the canonical derivation. They call the resulting groups `NP₀`, `NP₁`, and `NP₂`, with the subscripts indicating exactly zero, one, and two embedded noun phrases. This is a structural classification of the canonical expressions. It need not coincide with the apparent complexity of a natural rewrite, since a compact rewrite can conceal much of the canonical structure.

The authors vary which groups contribute training examples while holding fixed the structural group used for testing in each comparison. For an `NP₁` test, one parser sees only `NP₀` during training, and another also sees `NP₁`. For an `NP₂` test, one parser sees both shallower groups, and another also sees the test group’s depth during training. In both cases the question is whether shallower training material contains enough evidence to recognize the relevant language.

CALENDAR test denotation accuracy by training and test nesting Training on examples at the test depth helps, and shallower training transfers better to the deepest group than the shallowest training does to the intermediate group.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Train NP₀, test NP₁ | 22.9 |
| Train NP₀ and NP₁, test NP₁ (this paper) | 85.8 |
| Train NP₀ and NP₁, test NP₂ | 28.1 |
| Train NP₀, NP₁ and NP₂, test NP₂ | 47.5 |

For the `NP₁` test, training on `NP₀` gives 22.9%, while training on both groups gives 85.8%. For the `NP₂` test, training on the two shallower groups gives 28.1%, while including the deepest group in training gives 47.5%. The authors read the pattern as evidence that intermediate examples supply some of the useful expressions that are absent from the shallowest examples. The case for bounded fragments is that, once those expressions occur in training, the parser can use some of what it learned in a deeper structure.

The absolute accuracy on the deeper examples is still modest, including when training includes that depth. The experiment also varies the quantity and composition of training examples together with the depths they cover. Different test strata can vary in difficulty. The results give a concrete picture of the transfer achieved in this calendar setup. They leave the size of any general bound on non-compositional language unspecified.

#### What the error analyses identify

The authors examined 10 errors in each domain for their main analysis. They attribute nearly 70% of the errors they reviewed to problems with matching natural wording to canonical utterances. Sometimes the selected rendering adds content. Sometimes it loses part of the request, and sometimes it substitutes the wrong constraint. A restaurant request combining waiter service and outdoor seating can, for instance, select a candidate that keeps waiter service and replaces outdoor seating with a reservation condition. The overall shape of the query is recognizable even as one of its filters changes.

The paper attributes another 12.5% in that analysis to reordering. The direction of a relation is especially vulnerable. A request to identify venues associated with a small number of articles can be turned into a description of articles associated with a small number of venues. Many of the same words and count cues appear in both readings. To distinguish them, a scoring procedure needs evidence about which entity is being described and which entity acts as the object of the count. The authors attribute the remaining errors in this review to inaccurate crowdsourced rewrites.

A separate check estimates the noise in the collected labels themselves. The authors manually assessed 20 examples from each of the initial domains and found that 17% of the utterances in that check were inaccurate. Some errors start with ambiguity in the canonical wording. A phrase about the number of teams can invite an interpretation involving a player’s jersey number. Others stem from the rewrite, as when a worker changes a restaurant into a hotel. In both cases, the formal query remains attached to wording that fails to express it. The noise check and the error analysis answer different questions. One inspects examples for faithfulness, while the other inspects mistakes made by the parser.

In the 100-sentence geography development sample, the authors attribute 30% of errors to a learned preference for shorter canonical paraphrases. A concise candidate can match the most distinctive words while losing an operation required by the request. The authors observe that the right query frequently remains near the top of the ranking in those cases, with 73% accuracy for the top-3 derivations in the analysis. This suggests that candidate generation often supplies a useful option even when the parser’s first choice is wrong.

The paper assigns 25% of the reviewed geography errors to derivations deeper than the configured maximum. Here the issue is that a correct construction would require more levels than the search permits. Another 17.5% of the errors involve paraphrase matching. In the paper’s example, the parser interprets a question about California’s size as asking for its population where the reference expects area. Reordering and syntactic structure account for 7.5% of the errors. A request for the area of the largest state can turn into a query returning the largest state itself, losing the final lookup of the requested property.

The calendar oracle offers a complementary view of ranking errors. A correct denotation survives to the final beam for 84.2% of the annotatable independent requests, while the top candidate achieves 46.3%. This identifies a substantial set of cases where the search has already found an executable answer that matches the expected denotation. More accurate selection could improve results on those requests with the same final beams. The oracle gives no way to select that candidate at runtime and applies only to the requests the authors were able to annotate.

### Limitations

#### Limits the authors identify

The authors name nested quantification as outside the implemented grammar. A request for each author’s most cited work is an example of why this goes beyond an ordinary superlative. The query must create a separate set of works for each author, find an extremum within each set, and associate the result with that author. A rule selecting a global extremum over a set of works does a different job. The paper anticipates a substantial change to the grammar to handle the nested case.

They also identify [anaphora](https://md.research.elamur.ai/free/en/concepts/coreference-resolution/) as outside the grammar. A request for authors who cite themselves needs an expression within the citation condition to refer back to the author currently being considered. Giving the parser a fixed entity name from the seed lexicon would fail to capture that dependency. The authors regard anaphora and nested quantification as possible extensions of the general approach, while their experiments concern the grammar they actually implemented.

The independent CALENDAR requests make the practical coverage limits more concrete. The authors could not annotate 20% of the cleaned utterances because they involved relative time. A question about the next meeting, for instance, requires interpreting the request in relation to a current or otherwise relevant time. Another 14% of requests involved missing entities or binary predicates unavailable to the grammar. The authors found 2% that required unsupported calculations, such as deriving the amount of free time in a day. The rest of the uncovered requests included topics outside the intended calendar application.

The authors also impose a depth limit to keep generation usable. Long compositions can produce canonical wording that becomes hard to follow, and a deeper runtime search must consider more combinations. Geography demonstrates a cost of the restriction because some reference queries need deeper derivation trees. This is a different failure from giving the wrong score to an available candidate. When the depth limit prevents a derivation, a better ranking of the surviving candidates cannot recover it.

Finally, the paper acknowledges that poor rewrites can follow from wording supplied by the authors themselves. This is a limitation of asking a person to infer intended meaning from a verbal rendering. The label is exact as a record of the generated query. The correspondence between that label and the text a worker produces depends on the worker having read the source as intended. Collecting several rewrites and applying duplicate filters makes the data easier to use, while the human check shows residual noise.

#### Limits of the evidence

The main test shows how well the parser handles held-out examples collected through the same pipeline as its training data. A random split of individual examples can place different paraphrases of a canonical utterance on different sides of the split. The resulting score does not establish generalization to entirely new canonical forms or to combinations of operations absent during training. The calendar depth comparison tests one kind of structural transfer, and the independent evaluations test particular shifts in the data. Together they give a more detailed picture than the held-out average alone.

Rule coverage has a similarly specific interpretation. The process can deliberately generate examples that exercise the rules the builder chose. It does not establish that those rules describe the range of requests people will make. The free-form calendar study makes this distinction observable. It begins with requests chosen by the workers and discovers where the available relations and operations fall short. Results for the subset the grammar can express should be interpreted with that selection in view.

Replacing entity mentions in the independent calendar evaluation also affects what the reported scores represent. It helps isolate composition, lexical interpretation, and ranking by removing some of the difficulty of recognizing mentions. An interface used on a calendar with unfamiliar names and dates has to solve that recognition problem as well. The full system does include string matching and detection of certain values, but the independent calendar figures give limited evidence about how those components would fare under unrestricted entity mentions.

The use of generated database facts is appropriate for a controlled study of query execution over the chosen schemas. It leaves open how accurate the answers would be against a naturally assembled database, with its own coverage and distribution of facts. Denotation accuracy also depends on which facts happen to be present. An overbroad query can return an expected singleton if the extra items it would otherwise retrieve are absent. Likewise, distinct incorrect expressions can both yield an empty set. Reading the answer scores as evidence about exact logical form recovery would require an additional check.

The paper’s claim about ease of supervision is grounded in a difference between the tasks. A rewrite asks workers to preserve a meaning they have been given. Answer collection also asks them to determine the result. The study reports response times for rewriting and describes the overnight schedule. It does not give a matched measurement of the time or cost of both workflows on the same questions. The results establish that the authors obtained usable labeled data with a rapid paraphrase task. The size of the savings relative to an equally specified answer-collection task remains open.

The time claim also starts from a particular state of preparation. The builder already has a database, a schema, an idea of the capabilities, and access to a reusable grammar and training system. RECIPES demonstrates the time required to specialize and run that system under the paper’s conditions. It offers no timing for deciding what a new application should do, constructing its database, or adding query operations beyond the grammar’s repertoire. These would be separate pieces of work in a setting where the prerequisites had yet to be met.

The geography and calendar analyses show why a quick initial parser can still require significant improvement. Better lexical evidence could change the ordering of available candidates. A deeper or different search could allow other derivations to be considered. Additional grammar rules or schema entries could give the parser a way to express a request that currently has no supported form. The evaluations distinguish those problems well enough to locate several specific causes of error. They do not measure the improvement that any particular repair would deliver.

### What came after

#### Extending and reusing supervision

[Data Recombination for Neural Semantic Parsing](https://md.research.elamur.ai/free/en/papers/jia-2016-data-recombination-neural-semantic-parsing/) takes up the construction of training data under the heading of recombination. The overnight paper builds an example by specifying a formal structure, rendering it, and obtaining new wording for it. Recombination asks a related question about how structured pieces can supply additional training material. The connection is particularly clear in the original paper’s account of sublexical compositionality. Reusable units of language may correspond to fragments with internal structure, so the choice of pieces matters alongside the choice of words.

[Bring Your Own KG](https://md.research.elamur.ai/free/en/papers/agarwal-2024-bring-your-own-kg-self/) likewise centers the problem of starting with a particular structured resource. Its stated approach is self-supervised program synthesis for zero-shot question answering over a [knowledge graph](https://md.research.elamur.ai/free/en/concepts/knowledge-graph/). That emphasis puts program construction and supervision back at the center of the new-domain problem. In the overnight workflow, the developer supplies a lexicon and the crowd supplies natural rewrites. The later work frames the starting point as a graph for which the system must acquire question-answering behavior through self-supervised synthesis.

[Bootstrapping a Neural Conversational Agent](https://md.research.elamur.ai/free/en/papers/shah-2018-bootstrapping-neural-conversational-agent-dialogue/) considers how to get a conversational system started using dialogue self-play, crowdsourcing, and online reinforcement learning. The unit of interest extends from an isolated database request to an interaction. Its connection to the overnight paper is the use of generated material and human contributions during bootstrapping. The original procedure generates a meaning-bearing request before asking a person to phrase it. Dialogue self-play concerns the generation of conversational material, where what a speaker says can depend on what has already happened in the exchange.

#### Weak supervision and structured outputs

[Neural Symbolic Machines](https://md.research.elamur.ai/free/en/papers/liang-2017-neural-symbolic-machines-learning-semantic/) addresses semantic parsing on Freebase with weak supervision. It follows a different point of entry into a problem the overnight paper discusses in its account of earlier work. When the learner receives weaker signals about meaning, it must infer more about which symbolic query explains an example. The overnight data identifies the intended expression before collecting its natural wording. The Freebase work’s stated focus keeps the executable structure central while changing how directly that structure is supervised.

[Seq2SQL](https://md.research.elamur.ai/free/en/papers/zhong-2017-seq2sql-generating-structured-queries-natural/) makes SQL the formal destination of the parser and uses reinforcement learning for query generation from natural language. The common task is turning a request into an executable database query. The original work gives a large role to making a query readable as a canonical utterance and comparing that rendering with the request. Seq2SQL’s stated contribution emphasizes the generation of structured queries in the target language. SQL and lambda DCS occupy the corresponding place in the two task definitions, as the representation that specifies the operations the system must perform.

[Span-based Semantic Parsing for Compositional Generalization](https://md.research.elamur.ai/free/en/papers/herzig-2021-span-based-semantic-parsing-compositional/) addresses composition through spans of the input. This bears directly on the question the calendar depth experiment raises. A parser can gain from combining familiar pieces in unfamiliar structures, but it needs a representation of where those pieces are in the sentence and what they contribute. The overnight study exposes the difficulty through mismatches between short phrases and larger logical fragments. The span-based work makes compositional generalization the explicit target of its parsing approach.

#### Constraints and particular query operations

[Constrained Language Models Yield Few-Shot Semantic Parsers](https://md.research.elamur.ai/free/en/papers/shin-2021-constrained-language-models-yield-few/) returns to semantic parsing with limited task examples and puts constraints at the center of the approach. Constraints also serve a concrete purpose in the overnight procedure. A type check can eliminate candidates whose arguments are incompatible, and the grammar determines which formal compositions are available to search. The later paper’s framing brings constrained prediction into a [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/) setting, where the examples available for the task are themselves scarce.

[Which bird does not have wings](https://md.research.elamur.ai/free/en/papers/shim-2026-which-bird-does-not-have/) concentrates on negative constraints in knowledge graph question answering and names schema-guided semantic matching and self-directed refinement as its approach. Negation was already one of the operations the overnight grammar was designed to exercise. The later work gives that particular operation a more central role. Its schema emphasis is pertinent to the original parser’s error analyses, where choosing the right kind of constraint and linking it to the right database relation can determine whether an otherwise plausible query answers the question.

These connections concern different parts of the original problem. Some of the citing work focuses on how training signal is obtained, while other work emphasizes the structure of the query, the units that compose it, or the constraints that guide prediction. The overnight experiments locate those choices at distinct stages. A system needs a way to express the intended operation, evidence connecting that operation to a user’s language, and a search procedure that can find and prefer the resulting query. Its independent tests remain especially informative because they show how each stage can limit the answer a user ultimately receives.

## Cite

Cite as Yushi Wang, Jonathan Berant and Percy Liang. 2015. Building a Semantic Parser Overnight. Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.3115/v1/p15-1129](https://doi.org/10.3115/v1/p15-1129)

```bibtex
@inproceedings{wang2015building,
  title = {{Building a Semantic Parser Overnight}},
  author = {Yushi Wang, Jonathan Berant and Percy Liang},
  booktitle = {Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
  year = {2015},
  doi = {10.3115/v1/p15-1129},
  url = {https://doi.org/10.3115/v1/p15-1129}
}
```

> 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)
