---
title: "Iterative Search for Weakly Supervised Semantic Parsing (2019)"
description: "Iterative search teaches semantic parsers from answers by alternating between finding executable programs and learning from the ones it finds."
canonical: "https://research.elamur.ai/free/en/papers/dasigi-2019-iterative-search-weakly-supervised-semantic/"
---
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/dasigi-2019-iterative-search-weakly-supervised-semantic/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Iterative Search for Weakly Supervised Semantic Parsing

# Iterative Search for Weakly Supervised Semantic Parsing

Paper · 2019 · Pradeep Dasigi, Matt Gardner, Shikhar Murty et al.

**Authors:** [Pradeep Dasigi](https://md.research.elamur.ai/free/en/authors/pradeep-dasigi/), [Matt Gardner](https://md.research.elamur.ai/free/en/authors/matt-gardner/), [Shikhar Murty](https://md.research.elamur.ai/free/en/authors/shikhar-murty/), [Luke Zettlemoyer](https://md.research.elamur.ai/free/en/authors/luke-zettlemoyer/) and [Eduard Hovy](https://md.research.elamur.ai/free/en/authors/eduard-hovy/) · **Year:** 2019 · **Venue:** Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**41** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2944982877) · [Cited by **30** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/dasigi-2019-iterative-search-weakly-supervised-semantic/cited-by/) · [Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)](https://aclanthology.org/volumes/N19-1/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/N19-1273/)
- [PDF](https://aclanthology.org/N19-1273.pdf)
- [DOI 10.18653/v1/n19-1273](https://doi.org/10.18653/v1/n19-1273)
- [OpenAlex](https://openalex.org/W2944982877)

Citations: OpenAlex, 2026-10-14.

## Summary

An answer can tell a semantic parser whether a program worked without telling it whether the program understood the question. In [semantic parsing](https://md.research.elamur.ai/free/en/concepts/semantic-parsing/), a program is an executable representation of what someone said or asked. For a question about a table, it might select some rows and count them. A different program might produce the same count by selecting the wrong rows. With only the answer available during training, both programs can look equally successful. The parser must discover useful programs among many possibilities, even though its ability to rank them is precisely what it has yet to learn.

The authors give this search a starting point and then let it improve through successive rounds of training. They begin by enumerating short programs and keeping candidates that return the expected answers. The parser learns from those candidates before it attempts a more ambitious search. It then searches for longer programs during training, using a small hand-built lexicon to favor grammar rules connected to words in the input. A fresh pass over the training data uses the resulting parser to find candidates for the next round. The alternation matters because a fixed collection gives the parser something to learn from early on, while a renewed search can recover programs that the initial collection missed.

The authors evaluate the procedure on WikiTableQuestions and Cornell Natural Language Visual Reasoning. WikiTableQuestions asks about Wikipedia tables, where answers can be table entries or results of computations. On its official test set, the best individual run, selected by development accuracy, reaches 44.3%, compared with 43.8% for the strongest previously reported individual MAPO run in the corresponding comparison. Cornell NLVR asks whether a sentence holds in a scene, and the parser works with structured descriptions of the scenes. Iterative search reaches 82.9% accuracy on the hidden test set, compared with 82.5% for the strongest reported prior system there, which uses additional annotation and reranking. That prior system retains the higher accuracy on the public test set.

The controlled comparisons show where guidance makes the most difference. On the Cornell NLVR public test set, training without either lexical coverage or an initial parser fitted to the short programs yields 56.4% accuracy. Adding lexical coverage to that setup raises accuracy to 73.9%. On WikiTableQuestions, the authors find less benefit from coverage, although alternating the training objectives improves on the variants they compare on the official first fold. The experiments establish that better search can make answer supervision more useful. A candidate that returns every recorded answer can still express a different meaning from the input.

## Deep dive: Iterative Search for Weakly Supervised Semantic Parsing

Iterative search teaches semantic parsers from answers by alternating between finding executable programs and learning from the ones it finds. · about 37 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

#### An answer leaves the reasoning unspecified

A semantic parser translates an utterance into a logical form. Here, a logical form is a program whose operations have a defined interpretation. Executing it against the relevant context produces an output, called its denotation. A table is the context for a question about its rows or cells. A structured scene is the context for a statement about objects and their properties. In the first case, the output might be a table entry or a count. In the second, it is a truth value. The same distinction between program and output applies in either case.

Under full supervision, a training example can tell the parser which logical form it ought to produce. A learner can compare its proposed derivation with that annotation and identify where it went off track. Under the weak supervision studied here, a training example supplies the utterance, the world in which to interpret it, and the expected denotation. A learner can run a proposed program and compare the result with the label. The label provides no account of the operations that ought to have led there.

Consider the sort of table question for which the desired result is a count. To produce that count for the intended reason, the program may have to identify the relevant rows, apply a condition, and count what is left. For a particular table, another condition can happen to leave just as many rows. Both programs then pass the same execution check. Move the question to a context in which the conditions pick out groups of different sizes, and the distinction becomes visible. In training, the parser can make that distinction only to the extent that the observed contexts or other available signals expose it.

The paper calls such accidental successes spurious logical forms. The term identifies a mismatch between what a program computes and what the utterance means, even though the recorded output agrees. Grammar rules can guarantee that a count takes an input of an appropriate type, for instance. They cannot establish that the input to the count is the quantity someone meant to ask about. Similarly, an executor can verify whether a statement evaluates to true in a scene. That result alone leaves open which aspect of the scene made the statement true.

Binary labels make this ambiguity particularly acute. In Cornell NLVR, the result associated with a scene is true or false. A program that pays attention to the wrong visual property still has very few possible outputs to choose from. Seeing the same utterance paired with different scenes gives the learner more information, because it can require a candidate to reproduce the pattern of labels across those scenes. Even then, distinct programs can agree on the available worlds. The goal of the method is to find more useful training candidates under these conditions.

#### Why search is part of the learning problem

The paper traces an earlier line of semantic parsing through systems trained on annotated logical forms, including work on [database queries](https://md.research.elamur.ai/free/en/papers/zelle-1996-learning-parse-database-queries-using/). It gives the cost of producing those annotations as a reason to learn from denotations. There is also a question of how early to commit to a particular representation. For an open-domain task, the authors point out that it can be difficult to settle on the complete set of operations the task will require. Answer supervision gives researchers room to try different logical-form languages without collecting a new set of program annotations for every change. An experiment still needs an executable language of its own.

Research on [semantic parsing from question–answer pairs](https://md.research.elamur.ai/free/en/papers/berant-2013-semantic-parsing-freebase-question-answer/) had already developed methods for using denotations as the signal for learning. One approach rewards the combined probability of programs that execute to the observed answer. This is maximum marginal likelihood, or MML. The word “marginal” refers to adding up the probabilities of the candidate programs, since the supervision leaves the program itself unobserved. The parser may assign probability to several derivations and still receive credit whenever their executions agree with the label.

The difficulty is deciding which programs to include in that sum. The space grows rapidly as the grammar allows more operations to be combined. Complete enumeration is generally impractical, so earlier methods described in the paper approximate the sum by using a tractable set of candidates. Where that set comes from determines which correct-output programs the learner can reinforce. If the intended derivation is absent, its probability contributes nothing to the approximation. If incidental matches dominate the set, the learner can increase the likelihood of the observed answer by favoring those matches.

The authors distinguish two ways of assembling the candidate set. In dynamic MML, the parser searches while it is learning, commonly using beam search. A beam holds a limited set of promising partial derivations as they are extended. As the parser becomes better at ranking the derivations, this procedure can shift attention towards promising programs. At the start of training, however, the same filtering can discard useful paths before the parser has learned how to recognize them. A beam can finish with no program that matches the answer, or it can return programs that succeed for incidental reasons.

In static MML, a separate search supplies candidates before training begins. The parser can receive a consistent learning signal from the outset, and it can update its parameters without repeating that candidate search during the static phase. The quality of the offline search then governs the opportunity to learn. A restricted search can leave out the program that expresses a difficult utterance. A more generous candidate set can admit extra accidental matches. In both cases the selector faces the same underlying ambiguity, with different consequences for when and how often the learner encounters it.

The paper also discusses training criteria that let researchers specify a reward or cost. Work such as [From Language to Programs](https://md.research.elamur.ai/free/en/papers/guu-2017-language-programs-bridging-reinforcement-learning/) is part of the context for this approach. A cost can see features that a denotation match alone ignores. The authors use that freedom to ask whether a candidate includes operations suggested by the utterance. They connect this source of guidance with the lexical cues used in earlier parsers and with coverage mechanisms from work including [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). Their version tracks particular grammar productions suggested by input words.

These strands frame a practical question. A heuristic search can provide short candidates before the parser has learned much. A parser trained on those candidates can guide a later search, which has access to longer derivations. The resulting candidates can then be used as fixed evidence for another round. The method is designed around the dependence between search and learning, with lexical information available when execution feedback alone offers little basis for deciding which paths deserve attention.

### The method, step by step

#### From words to an executable derivation

The input to the training algorithm includes the utterance, its context, and its answer or truth label. The authors also choose a program language for each task. Its grammar determines which derivations the parser can construct. The parser produces a sequence of grammar productions, each of which extends an unfinished derivation. A completed sequence builds an abstract syntax tree, the structure that describes how the program’s operations and arguments are composed. Execution interprets that structure in the world attached to the example.

The parser can therefore make several distinct kinds of progress towards a useful candidate. It can build a derivation allowed by the grammar, include rules that reflect expressions in the utterance, and produce the observed denotation. These checks occur at different points. Grammar legality governs which extensions are possible during construction. Lexical coverage can influence which extensions receive high scores. The denotation becomes available when the completed program runs. A candidate’s value for training depends on how these sources of information are combined.

For Cornell NLVR, the world is a structured description of a synthetic scene. It represents the objects and records their shape, color, size, and coordinates. The authors define a typed functional language inspired by the GeoQuery tradition. “Typed” means an operation has specified kinds of input and output. “Variable-free” means programs compose operations without introducing named variables for objects or boxes. The language has types for boxes, objects, shapes, colors, numbers, and truth values. There are constants that give access to all the boxes or objects, as well as color and shape constants.

The language also provides ways to filter collections, inspect objects inside boxes, and make assertions. A filter can find objects with a particular shape or identify objects in a specified spatial relation. An assertion can ask whether a collection has a member or meets a count condition. The negation operation can take a filter and construct its negated counterpart. These pieces let a program express a statement by building the appropriate collection and then testing it. Of the 115 productions in Cornell NLVR’s grammar, 101 are terminal.

For WikiTableQuestions, the authors use the functional query language from the prior MAPO work. It supports the table operations needed for the task, including filters, counts, aggregations, and selection based on an extreme value. Selecting the entry attached to the greatest value and returning the greatest value itself are different operations. The appendix reflects this distinction in its lexical cues. Some expressions can suggest finding the row at an extreme, whereas other question patterns can suggest extracting the extreme value.

An early decision in the derivation can affect everything the parser can build afterward. A rule that begins a count leaves a different unfinished structure from a rule that retrieves a cell. Within a narrow beam, those derivations compete for space even before the parser can execute either program. This makes the scoring of partial programs consequential. The authors retain an existing grammar-constrained architecture and change how training supplies candidates and guides their search.

#### Establishing what counts as a match

The basic execution test can be written as follows.

```
⟦yᵢ⟧wᵢ = dᵢ
```

The index `i` identifies a training example. Its utterance is `xᵢ`, and `yᵢ` is a candidate translation of that utterance into an executable program. The brackets mean to execute `yᵢ` in world `wᵢ`. The equals sign checks whether the output agrees with `dᵢ`, the observed denotation for that world. A program that passes the test is consistent with the training example.

Cornell NLVR associates many utterances with multiple worlds. For example, the paper illustrates a statement about a box containing a single item that is blue. The same statement is evaluated in different scenes. One program is supposed to account for all the labels attached to that utterance. Requiring joint agreement means a candidate cannot pass by giving the output for just one scene. In the paper’s notation, the multiworld condition can be rendered as follows.

```
∀ j, ⟦yᵢ⟧wᵢʲ = dᵢʲ
```

The symbol `∀` means “for every.” The index `j` runs over the worlds associated with utterance `xᵢ`. Here `wᵢʲ` is one such world and `dᵢʲ` is the recorded truth label for that pair. The program `yᵢ` is shared across the worlds. Its execution must equal the observed label at each index for the candidate to pass the joint test.

This use of multiple worlds has an important consequence for training. A candidate that happens to be right in a single scene can be excluded before it reaches the next fixed candidate set. A program that checks the wrong property may still survive if that property yields the same label pattern anywhere the utterance is tested. The joint check raises the standard of evidence available from execution while leaving room for the lexicon to supply additional guidance about the program’s content.

#### What the static objective learns from a candidate set

The parser assigns probabilities to logical forms for an input utterance. Maximum marginal likelihood gives credit to their combined probability whenever their outputs agree with the label. The paper expresses the training objective as a product of sums.

```
max over θ  ∏_(xᵢ,dᵢ ∈ D)  ∑_(yᵢ ∈ Y : ⟦yᵢ⟧wᵢ = dᵢ)  p(yᵢ | xᵢ; θ)
```

The parameters being optimized are `θ`. The symbol `D` denotes the training data. The outer product, `∏`, combines the factors for its examples. Each example supplies utterance `xᵢ`, observed denotation `dᵢ`, and the world `wᵢ` used for execution. The inner sum, `∑`, ranges over candidate logical forms `yᵢ` in the output space `Y` that meet the execution condition after the colon. The notation `p(yᵢ | xᵢ; θ)` is the probability that the parser, with parameters `θ`, assigns to program `yᵢ` given input `xᵢ`. For a multiworld utterance, the relevant execution condition is agreement across its worlds.

The sum treats the logical form as something to be discovered from its observed effect. Suppose the retained list contains an intended program and another program with matching output. The objective rewards the probability mass the parser puts on the list as a whole. It supplies no direct annotation telling the parser which candidate captures the meaning. Patterns across training examples can still favor a recurrent interpretation, particularly when candidates have already been filtered or ranked using evidence beyond execution.

In the static stage, the inner sum is approximated with candidates collected before that phase begins. For the seed round, those candidates come from bounded exhaustive enumeration. For later rounds, they come from decoding with a trained parser. Static MML thus describes how the candidates are used, regardless of how they were found. During a static phase the learner can change the probabilities of the retained programs. The search that built their list stays outside that phase.

This separation also changes which examples can participate. An utterance for which the candidate search yields no consistent logical form supplies no program to the fixed list. The seed round consequently trains on a subset of the data. A later search can make a previously omitted utterance usable by finding a consistent candidate. A later candidate set can also lose coverage on some examples if the beam’s ranking changes. Renewal gives the method a way to revise the approximation each time it returns to MML.

#### What the online objective adds

The online phase uses minimum Bayes risk, or MBR. In this application, “risk” means average cost under the probabilities assigned to the candidates available on the beam. The parser searches for candidates while its parameters are being updated. Within that retrieved set, the criterion encourages probability to move toward programs with lower cost. The authors choose a cost that considers both execution and lexical coverage.

```
min over θ  ∑_(i = 1)^N  E_(p̃(yᵢ | xᵢ; θ)) [C(xᵢ, yᵢ, wᵢ, dᵢ)]
```

The minimization again adjusts `θ`, the parser parameters. The sum runs over the training instances indexed by `i`, with `N` denoting their number. The expectation operator `E` averages the cost `C` of each candidate `yᵢ` for utterance `xᵢ`, world `wᵢ`, and denotation `dᵢ`. The averaging distribution is `p̃(yᵢ | xᵢ; θ)`. The tilde indicates that the parser’s probabilities are renormalized over the logical forms on the beam, so the weights used in this expectation sum to one within the retrieved set. The `E` in this equation is the expectation operator. In the decoder equation below, the authors reuse the letter for a collection of action embeddings.

Renormalization makes the online objective a comparison among the candidates found by search. Among programs with the same execution result, the cost can still favor one that makes better use of the utterance’s lexical cues. And when the beam fails to yield an answer-consistent program, the coverage component can still distinguish candidates that omit different numbers of triggered productions. The beam remains the boundary of this calculation. A program absent from it receives no weight in that particular expectation.

The paper relates this criterion to dynamic MML through a special case. It observes that if the beam probabilities were left unnormalized and the cost were −1 for a matching program and 0 otherwise, minimizing expected cost would reward the likelihood assigned to matching programs on the beam. That is the dynamic MML behavior the authors describe. Their actual objective uses renormalization and a coverage-aware cost. This relationship helps locate the contribution in the choice of search objective and the way it is interleaved with fixed-candidate training.

#### Measuring lexical coverage

Each task has a small manually specified lexicon. It takes words or phrases from the utterance and triggers productions in the target grammar. The lexicon for each logical-form language contains under 40 rules. Many of the mappings point to constants or functions taking a single argument. In Cornell NLVR, mentions of colors or shapes can suggest corresponding filters or constants. A construction about containment can suggest retrieving the objects inside a box. A reference to touching a boundary can suggest a location-sensitive filter.

In WikiTableQuestions, a phrase asking how many items there are can trigger a count. A comparative expression can trigger a suitable filter. Words about an immediately preceding or following entry can trigger an operation that moves through the order of the table. The procedure can also trigger productions for numbers and for table material such as column names and cell strings. These cues use both the question and what is available in its context, since a column or entry to be included in the program depends on the table at hand.

To calculate coverage cost, the authors ask which productions were triggered and which among them the candidate omits. A derivation that includes more of those productions has lower coverage cost. This is a measure of membership in the candidate’s derivation. It leaves questions of composition to the grammar, the parser’s learned preferences, and the execution signal. A count and a filter can both be present in a program while the filter applies to the wrong input, for instance. That program can cover the lexical clues and still compute something else.

The objective combines coverage with a separate charge for execution errors.

```
C(xᵢ, yᵢ, wᵢ, dᵢ) = λS(yᵢ, xᵢ) + (1 − λ)T(yᵢ, wᵢ, dᵢ)
```

The function `C` gives the total cost for candidate `yᵢ`, utterance `xᵢ`, world `wᵢ`, and denotation `dᵢ`. The function `S` counts triggered productions missing from the candidate. The function `T` is 0 for an execution-consistent candidate and otherwise takes the value `e`, which the authors set to the greatest possible coverage cost for that instance. For Cornell NLVR, the joint test across the utterance’s worlds determines consistency. The hyper-parameter `λ` sets the weight for coverage, and `1 − λ` gives the complementary weight for execution.

Setting `e` from the maximum value of `S` makes the two terms comparable in magnitude at the instance level. An utterance can trigger more lexical cues than another, and so offer more ways for a derivation to incur coverage cost. The scale of the execution penalty adjusts with the possible coverage cost. The weight then expresses an experimental choice about how much influence each part of the signal has. The authors select it using development performance.

When two programs both return the expected output, the execution term is zero for both. The coverage term can favor the program that accounts for more of the triggered productions. When one program agrees with the answer and another includes more lexical cues, the combined cost is what determines how the online objective compares them. When candidates are retrieved for the next static round, the decoder retains candidates based on execution consistency. The lexical term guides learning and search without changing what it means to match the recorded answers.

#### Influencing the beam before a program is complete

The underlying parser uses an encoder and decoder with long short-term memory, or LSTM, cells. The encoder reads the utterance in both directions to build its representation. The decoder uses that representation and the derivation so far to score the next grammar action. At each step, the grammar specifies which productions are valid. For the table task, the architecture also supports entity linking, which helps it produce references to table entities. The authors remove this component for Cornell NLVR, where those references are outside the task.

The authors give the decoder a record of relevant productions that remain unused. This record, the coverage vector, has an entry of 1 for a triggered production that has yet to be emitted and 0 for an entry outside that set. As the decoder emits a triggered rule, the entry is updated. The vector therefore describes what remains to be covered on a particular derivation path. Two paths for the same utterance can have different remaining entries because they have already produced different grammar actions.

The decoder incorporates the remaining productions into its next-action scores.

```
sₐᵢ = eₐ · (pᵢ + γ × (vᵢˢ · E))
```

In this equation, `i` indexes a decoding step, and `a` identifies an action that can be scored at that step. The quantity `sₐᵢ` is the action’s score. The vector `eₐ` is the embedding of action `a`, a numerical representation of that action. The vector `pᵢ` describes the next action predicted by the original decoder. The vector `vᵢˢ` records the productions still to be covered, and `E` contains the embeddings of all actions. The inner dot with `E` combines the embeddings selected by the coverage vector. The learned scalar `γ` scales that contribution. The outer dot product compares the candidate action embedding with the resulting prediction vector.

The coverage vector gives search a way to consider lexical cues while a program is under construction. The coverage cost, by comparison, evaluates which cues are missing from the candidate being assigned a training cost. The two mechanisms work at different points. One can change which partial paths are extended, and the other can change how retrieved candidates are valued. The decoder’s use of embeddings makes the effect a learned adjustment to scores. The grammar still determines whether a rule can be applied at the current position in the derivation.

#### Alternating between fixed and newly found programs

The authors initialize the procedure by enumerating programs up to a search depth of 10 in both domains. They retain those that return the expected denotations, rank them by coverage cost, and keep a limited number per utterance. The quantity `k` is the cap on retained candidates. It is selected using development performance at each iteration and is typically 10 or 20. This gives the first static training round a collection of answer-consistent programs with some lexical preference built into the way candidates were chosen.

How iterative search renews the training candidates The steps in order.

The first static MML phase runs to convergence on the seed candidates. The trained parameters initialize the online MBR phase, which also runs to convergence. This gives online search a parser already trained to assign probability to programs that have some evidence behind them. The expectation is that its beam will be more useful than a beam from an untrained parser. MBR can then search at lengths that the initial exhaustive enumeration could not afford.

After the online phase, the authors decode the training examples with the resulting parser. This decoding pass checks the programs against the known denotations and builds the candidate collection for the next static phase. The procedure increases the maximum search depth by a step size of 2 at each search iteration. A wider range of lengths creates room for extra operations to be composed, while beam pruning directs computation toward paths with higher scores. The pseudocode uses development accuracy to decide whether to continue and returns the parameters from MBR.

There are two distinct uses of the beam in this cycle. During MBR training, it supplies the candidates whose costs are averaged while the parser learns. During the subsequent decoding pass, it supplies the pool from which the next static training set is drawn. The new fixed collection can include programs for examples that had no useful short candidate. It can also contain revised candidates for examples the seed search already covered. The algorithm’s leverage comes from coordinating these two uses so that each round of learning changes the evidence available to the next.

The paper identifies its public implementation as `iterative-search-semparse`, built using [AllenNLP](https://md.research.elamur.ai/free/en/papers/gardner-2018-allennlp-deep-semantic-natural-language/). The implementation provides the parser and training algorithms used for the experiments. The essential procedural choices are the bounded seed search, the fixed-candidate fit, its use as initialization for online search, and the decoding pass that updates the training candidates.

### Experiments and results

#### WikiTableQuestions

WikiTableQuestions is a [question-answering](https://md.research.elamur.ai/free/en/topics/question-answering/) benchmark in which each question is asked about a Wikipedia table. The program can return a cell, or it can compute an answer through numerical or set operations on table contents. This makes an answer richer than a binary truth value, though a table can still contain unrelated cells with the same value or admit different computations with the same result. Evaluation measures answer accuracy, so a prediction receives credit when execution gives the expected answer.

The training data come with five folds, each with a different 80/20 division into training and development data. The paper reports average and best individual-run results across these folds and reserves the official first fold for a more closely controlled comparison. The best individual run is selected by development performance. Its test score is consequently the score of the development-selected run, which can differ from selecting whichever run would have yielded the largest test number.

For this benchmark, the authors replicate the parser architecture from Krishnamurthy and colleagues and change the training algorithm and logical-form language. The MBR beam size is 20 in training and decoding, and the MML beam size is 10 during decoding. The optimizer is stochastic gradient descent, with a learning rate of 0.1. The validation splits are used to tune these settings. In the controlled first-fold experiment, the comparison also holds the logical-form language constant across the systems evaluated.

The main comparison covers published individual systems. The authors exclude ensembles because prior work differs in how many members it combines and how those members are selected. The chart pairs the average and best entries for Memory Augmented Policy Optimization, or MAPO, with the corresponding entries for iterative search. The earlier entry by Zhang and colleagues situates the strength of the closest alternatives.

Individual systems on the WikiTableQuestions official test set The best development-selected iterative search run has the highest test accuracy in the comparison.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Zhang et al. | 43.7 |
| MAPO, average | 43.1 |
| MAPO, best | 43.8 |
| Iterative Search, average (this paper) | 43.9 |
| Iterative Search, best | 44.3 |

The average for iterative search is 42.1% on development and 43.9% on the official test set. MAPO’s corresponding averages are 42.3% on development and 43.1% on test. The development-selected iterative run scores 43.1% on development and 44.3% on test. The best MAPO entry is 42.7% on development and 43.8% on test. The reversal in the ordering of the development averages and test averages is a reason to specify which split and which aggregation a comparison describes.

The paper’s other published test comparators include Pasupat and Liang at 37.1%, Haug and colleagues at 34.8%, and Neelakantan and colleagues at 34.2%. The closest entries are more informative about the size and scope of the headline result. In particular, MAPO also uses a lexicon to prune the seed programs that initialize its memory buffer. The advantage in this comparison is for the authors’ overall procedure in an individual-run setting. It does not isolate a contribution from giving a lexicon to a parser that previously had none.

The first-fold comparison makes the training alternatives more explicit. Static MML fits the heuristic seed candidates. Iterative MML repeatedly trains with static MML and increases the number of decoding steps between rounds. Iterative search includes the intervening coverage-aware MBR phase. Those three share the parser architecture and the seed candidates used for static MML. The authors also run MAPO in the same fold and logical-form language, giving the experiment a prior published comparator alongside the variants of their own procedure.

On the first fold, static MML scores 40.0% on development and 42.2% on the official test set. Iterative MML scores 42.5% on development and 43.1% on test. Iterative search scores 43.0% on development and 43.8% on test. MAPO in this comparison scores 42.1% on development and 42.7% on test. The 43.8% for iterative search in this experiment belongs to the first-fold setup. The headline 44.3% is from the comparison that selects the best individual run by development accuracy across the folds.

These comparisons show why the benchmark supports a narrower and more informative statement than an unrestricted leaderboard claim. The first-fold experiment compares specific training changes under shared conditions, while the published-results comparison asks where the full procedure stands among individual systems. The first helps explain the role of retraining and online search. The second shows the accuracy associated with the complete procedure when runs are reported in the way the authors matched to prior work.

#### Cornell Natural Language Visual Reasoning

Cornell Natural Language Visual Reasoning, abbreviated NLVR, assigns a true or false label to each sentence–scene pair. The standard training, development, and test split contains 12,409, 988, and 989 pairs, respectively. Most sentences occur in several worlds, with an average of 3.9 worlds per sentence. The parser receives the structured representations that accompany the scenes. Those representations supply the object attributes and positions the program needs in order to carry out its tests.

The authors set the word and action embedding dimensions to 50. The encoder and decoder each have a hidden layer size of 30. All parameters, including the embeddings, are initialized by the Glorot uniform procedure. The authors report that pretrained word representations offered no improvement in their experiments. They use 0.2 dropout at the encoder and decoder outputs and before next-action prediction. Dropout is a training technique that suppresses part of a representation during updates. The beam size is 10 in both training and testing, and the authors use [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/) with a learning rate of 0.001. The validation set determines the hyper-parameter choices.

The paper reports both accuracy and consistency. Accuracy credits individual sentence–world pairs when the predicted logical form yields the correct label. Consistency asks whether the predicted logical form yields the correct labels for every world associated with the utterance. A program can earn credit for the scenes where it succeeds and still fail the consistency check for that utterance. The stricter measure is closely related to the way the authors use grouped worlds during training, although it still evaluates the resulting truth labels instead of an annotated logical form.

The comparison includes MaxEnt and BiATT-Pointer, which the paper identifies as systems outside the semantic-parsing approach. The closest prior parser, by Goldman and colleagues, has entries with and without a learned reranker. The paper labels them “Abs. Sup.” and “Abs. Sup. + ReRank.” That work uses a lexicon to map expressions to abstractions and annotates complete sentences in the abstract space. The annotations support data augmentation for a supervised parser used as the starting point for weakly supervised training. The system also uses caching to augment the beam. Its reranked version adds a separately trained component that reorders the retrieved programs.

The authors compare their own procedure with both variants so the effect of the additional reranking stage is visible in the outcomes. On the public test set, MaxEnt scores 67.7% accuracy and BiATT-Pointer scores 73.9%. Abstract supervision without reranking scores 81.7%, abstract supervision with reranking scores 84.0%, and iterative search scores 82.4%. This places iterative search above the comparison without reranking and below the one with it on public test accuracy.

Systems with reported accuracy on the Cornell NLVR hidden test set Iterative Search has the highest reported hidden test accuracy among these systems.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| MaxEnt | 67.8 |
| BiATT-Pointer | 71.8 |
| Abs. Sup. + ReRank | 82.5 |
| Iterative Search (this paper) | 82.9 |

On the hidden test set, iterative search reaches 82.9% accuracy, and the prior reranked parser reaches 82.5%. The paper gives no hidden-test entry for abstract supervision without reranking. Iterative search reaches 85.4% accuracy on development, where the version with reranking scores 85.7% and the version without reranking scores 84.3%. The result therefore depends on which split is under discussion. The authors’ state-of-the-art accuracy claim for NLVR is anchored in the hidden result.

The consistency scores provide another view of the comparison. Iterative search records 64.8% consistency on development, 61.3% on the public test set, and 64.3% on the hidden test set. The abstract-supervision parser with reranking records 67.4%, 65.0%, and 63.9%, respectively. Without reranking, its reported consistency is 66.3% on development and 60.1% on the public test set. Iterative search leads the reported hidden-test comparison on this measure, while the development and public-test scores favor the reranked system.

The supervision comparison concerns what the systems need beyond the scene labels. Iterative search uses the structured worlds and a lexical resource, and the start of training depends on candidates collected by executing programs. The prior abstract-supervision procedure additionally uses manual annotations of complete sentences, plus the augmentation and decoding machinery described above. The observed performance establishes that the authors could reach their hidden-test result with this lighter form of annotation in Cornell NLVR.

### What the ablations show

#### Coverage and initialization supply different kinds of guidance

The clearest coverage comparison is on the Cornell NLVR public test set. The authors cross two choices. One is whether the risk cost includes coverage. The other is whether training starts from parameters learned by static MML on candidates found by exhaustive search. This separates the benefit of beginning with a trained parser from the benefit of giving the online criterion access to the lexical coverage term. Among the coverage runs, the authors select the term’s weight on validation data and find that 0.4 works best.

Coverage and initialization on Cornell NLVR public test accuracy Coverage improves accuracy with either starting point, with the larger benefit when training starts without MML initialization.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| No initialization, no coverage | 56.4 |
| No initialization, with coverage | 73.9 |
| MML initialization, no coverage | 77.7 |
| MML initialization, with coverage (this paper) | 80.7 |

Without guidance from either source, the parser reaches 56.4% public test accuracy. The paper reports 56.2% for the majority baseline, which predicts according to the more common label. The similarity of those scores illustrates the difficulty of learning from unguided search in this setup. Early beam candidates can fit the labels by chance or provide little variation the learner can use. By assigning costs to missing productions, coverage can give the learner a preference among programs whose execution results offer weak discrimination.

The consistency figures reveal the same pattern with a stricter test. With no MML initialization, public test consistency is 12.0% without coverage and 43.6% with it. With MML initialization, it is 51.1% without coverage and 56.4% with it. The method benefits from both sources, and the size of the coverage effect depends on what the starting parser already knows. The best setting in this controlled experiment reaches 80.7% accuracy. That result measures the setting in the coverage comparison, whereas 82.4% on the same public test set is the headline result of the full iterative procedure.

The authors report a weaker role for coverage on WikiTableQuestions. The average of the best-performing coverage weights is around 0.2 there, and they report that higher values left performance largely unchanged. The contrast is consistent with their account of the difference in supervision. A true-or-false answer gives fewer clues about the operations behind an execution than a table question can supply through a particular cell or computed result. The experiments compare different tasks with different languages and data, so the contrast indicates how the method behaved in these settings.

#### Which part of the iterative loop contributes

The WikiTableQuestions first-fold comparison shows progress from the fixed seed, to renewing candidates with iterative MML, to renewing them with the online MBR phase in the loop. The comparison between static MML and iterative MML shows that a second source of candidates matters even when training stays with maximum marginal likelihood. The comparison between iterative MML and iterative search then tests the package that adds online search and its risk criterion. Both changes improve development and official test accuracy in this comparison.

The iteration-by-iteration results follow a complementary question. Instead of comparing just the final systems, the authors record development accuracy at the maximization and search stages across successive rounds. A maximization stage is the static MML fit. A search stage is the online phase associated with MBR, after which decoding supplies candidates for the next maximization stage. The paper also records how many training examples the search can supply with at least one consistent program. That quantity describes the availability of training candidates. It has a different meaning from lexical coverage, which describes how much of an utterance’s triggered grammar material a particular program contains.

On Cornell NLVR, the initial static stage yields 64.0% development accuracy, and the first search stage yields 81.6%. The next static result is 76.5%, followed by 82.7% for search. Later, the static stage reaches 83.1% and the search stage reaches 85.4% on development. The last reported search score is 84.7%, followed by 81.2% for the next static stage. The trajectory shows substantial improvement over the seed and also shows that increasing the search allowance and repeating the cycle does not guarantee another improvement.

The WikiTableQuestions trajectory starts at 40.0% development accuracy for static MML. The first search stage reaches 42.5%, and a later search stage reaches 43.1%. Across the displayed rounds the search and maximization scores vary within a narrower range after the initial improvement. The paper records 83.3% training-example coverage for the seed, followed by search-stage entries including 70.2% and 71.3%. Thus a change can improve the parser while leaving fewer examples with retrieved candidates than the exhaustive seed did. Having some program that produces the answer is a coarse threshold. The programs that pass it can differ materially in how they help the parser learn.

The authors interpret the stronger gains on Cornell NLVR as likely connected to the lower quality of the initial candidate set in that domain. A bounded search can produce many answer-consistent programs for binary labels, including programs with little relation to the utterance. They offer this as an explanation of the trajectory. The iteration analysis measures consistency, the availability of candidates, and development accuracy. It does not provide a direct count of how many spurious programs the successive stages eliminate.

#### What additional depth lets the parser express

The paper examines Cornell NLVR development examples to illustrate how the form of retrieved programs changes. An early example uses a count to recognize a tower with a specified number of blocks. Another combines an object’s shape and color with a negated test for touching an edge. A later example has to restrict attention to a tower by its membership count, find its top object, and apply a color test. The final example illustrated in that sequence requires interpreting the relative position of differently colored blocks within a tower chosen by its size.

These programs show what depth buys in the chosen grammar. The longer derivations can compose operations whose outputs become inputs to subsequent tests. Checking where a colored block sits inside a tower first requires deciding which tower qualifies and then identifying the relevant objects within it. A shallow bound can leave too few decoding steps for all these operations. The authors report that the illustrated program at each iteration could not be produced in the previous iterations.

The examples also explain why the initial exhaustive pass serves as a seed. A short restriction makes that pass feasible and can recover basic operations on which later training can build. The learned beam then gives search a means of extending promising constructions. The inspection is qualitative. It demonstrates particular changes in the programs the system can produce across rounds, alongside the broader development and test outcomes measured elsewhere in the paper.

### Limitations

#### Limits identified by the authors

The initial enumeration has a practical depth bound. The authors report that exhaustive search beyond depth 10 was prohibitively expensive in their setup. This limits both the complexity of the seed programs and the share of the training data for which the first static fit receives candidates. Guided search makes greater depths accessible by pruning the derivation space. It inherits the possibility that a useful path will be cut off because the parser assigned it too low a score before seeing the complete program.

The paper treats candidate selection as a compromise between the chance of including a useful program and the risk of retaining distracting ones. A small candidate collection can be comparatively clean and still omit an intended interpretation. A larger collection can make more programs available while including more accidental matches. Development tuning sets the candidate cutoff and determines when to end the iterative process. Those choices govern the approximation to marginal likelihood in the reported experiments.

Lexical coverage also has different effects in the two tasks. The authors stress its role in Cornell NLVR, particularly for learning without MML initialization, and report a weaker effect in WikiTableQuestions. Each benchmark uses its own lexicon and program language. The results show what these resources contribute in the tested conditions. Applying the same training scheme elsewhere would require suitable ways to propose grammar actions from an utterance and a way to execute the resulting programs in their worlds.

The authors acknowledge the broader challenge of matching fully supervised semantic parsing with weaker supervision. Their experiments compare performance with previously reported approaches and with variants of answer-supervised training. The conclusion raises application to other structured prediction problems as future work. The paper locates its contribution in the learning algorithm, giving a reason to explore other architectures or tasks, while its evidence comes from the two studied domains.

#### Limits visible in the evaluation

The main metrics concern outputs. Accuracy tests whether an answer or truth value agrees with the reference. Cornell NLVR consistency extends the test across the available worlds for an utterance. Neither metric asks an annotator whether the program expresses the intended interpretation. A program based on an incidental pattern can potentially match all the observed labels. Higher output accuracy establishes that the parser answers more examples correctly in the evaluated setting. The exact frequency with which it recovers the intended logical form remains open.

The coverage mechanism offers a way to favor programs with relevant components, with a corresponding limit on what it can establish. The cost counts missing triggers. A program can include a color rule and a location rule but apply them to different objects from the ones described. A useful program can also omit a triggered rule if the cue is ambiguous or if the same meaning can be expressed with other operations. The reported gains test the usefulness of the heuristic as part of search. They do not measure the correctness of every lexical mapping or show that the set of triggered rules fully captures the utterance.

Cornell NLVR provides structured scenes to the parser. Its success depends on interpreting sentences over those representations, which already encode object properties and coordinates. The experiment therefore gives direct evidence about language grounding and execution over those worlds. It supplies no measurement of the ability to infer the structures from raw images. The grouped worlds add supervision as well, since the answer labels for an utterance constrain a program jointly. The size of the gain for a setting that supplies only a single world per utterance remains undetermined.

The experimental pipeline uses several forms of task knowledge while avoiding gold programs for individual training examples. The authors define or adopt a grammar, supply executors that give its programs meaning, and write lexical mappings for coverage. On WikiTableQuestions, the parser also includes machinery for referring to table entities. The Cornell NLVR comparison shows a reduction in the manual sentence-level annotation used by the closest prior parser. That reduction and the continuing use of grammar and lexical resources are both part of the supervision comparison.

The individual-run comparison on WikiTableQuestions follows the paper’s matching of conditions with prior work. It provides average and best development-selected results, and it omits ensemble comparisons because their construction varies. The reported best scores show the ordering in that comparison. The paper does not provide an uncertainty estimate for the difference between the strongest runs. The first-fold comparison provides firmer control over architecture and seed candidates for the authors’ variants, while its outcomes remain specific to that fold.

Cornell NLVR also shows how much the conclusion can depend on the evaluation split. The iterative parser leads the reported hidden-test outcomes, and the prior reranked parser leads on public test accuracy. Comparisons with the earlier parser combine differences in supervision, search, augmentation, caching, and reranking. Those differences matter when attributing an observed lead. The coverage comparison and the first-fold training comparisons give more direct evidence about parts of the new procedure than the headline comparisons give by themselves.

Finally, the iteration experiment tracks changes under a schedule in which the allowed depth grows and the parser used for search changes. The longer qualitative examples are compatible with what the grammar allows at greater depth. The stage results demonstrate how the overall procedure evolves, from a short exhaustive seed to training on beam-retrieved candidates. They leave room for several contributors to any given gain, including the new depth bound, lexical preferences, and the improved scoring of programs. The paper makes the strongest case for using those elements together in the settings it evaluates.

### What came after

#### Table understanding and execution

Among later papers that cite this work, several return to the relationship between a table question, the operations used to answer it, and the available supervision. Their stated topics offer a way to see how that problem continued. A citation establishes a connection in the research record. The titles of these papers identify their directions, while the role of the iterative training procedure in each is unspecified.

[TaPas](https://md.research.elamur.ai/free/en/papers/herzig-2020-tapas-weakly-supervised-table-parsing/) studies weakly supervised table parsing through pretraining. It stays close to the problem of learning to interpret table questions when the desired interpretation is only indirectly supervised. Its stated focus puts the preparation provided by pretraining at the center. In iterative search, the preparation for online search comes from fitting programs collected by an exhaustive seed procedure. The connection is the need for an initial basis on which learning from weak table supervision can proceed.

[TaBERT](https://md.research.elamur.ai/free/en/papers/yin-2020-tabert-pretraining-joint-understanding-textual/) addresses joint understanding of text and tabular data through pretraining. Its topic concerns the representation of the question together with the structure that gives the question meaning. That issue is present in iterative search when a decoder has to connect a phrase to an operation on a column or a cell. The earlier work asks how to discover effective derivations from denotations. TaBERT’s stated direction foregrounds the prior learning of representations for the paired kinds of input.

[TAPEX](https://md.research.elamur.ai/free/en/papers/liu-2021-tapex-table-pre-training-learning/) frames table pretraining around learning a neural SQL executor. Execution gives both studies a concrete connection between a computation and an answer. In iterative search, executing a proposed logical form lets the training algorithm test it against an observed denotation. TAPEX’s title identifies learning SQL execution as the pretraining task. It therefore takes up the execution side of table understanding, the ingredient the earlier paper uses to assess the output of a candidate program.

The [Korean-Specific Dataset for Table Question Answering](https://md.research.elamur.ai/free/en/papers/jun-2022-korean-specific-dataset-table-question/) extends the surrounding benchmark work to a dataset for Korean table questions. The link to the earlier experiment is the task of answering questions grounded in table structure. Language-specific data bring the linguistic side of that task to the foreground. In iterative search, the lexical cues are expressions in the input language that can suggest a target operation. A dataset framed around Korean table questions places such connections in a different language setting.

#### Symbolic representations, decomposition, and reasoning about code

[Binding in Symbolic Languages](https://md.research.elamur.ai/free/en/papers/cheng-2022-binding-language-models-symbolic-languages/) takes up the connection between language processing and symbolic representations. The earlier paper makes such a connection concrete by turning utterances into executable grammar derivations. The later title points to binding within symbolic languages as the object of study. The shared question is how linguistic information becomes usable in a formal computation. This is a broader connection than a claim about a shared candidate-search or training algorithm.

[Text Modular Networks](https://md.research.elamur.ai/free/en/papers/khot-2021-text-modular-networks-learning-decompose/) studies how to learn to decompose tasks in the language of existing systems. Decomposition is also central to understanding a logical form. A difficult request can have a sequence of operations whose intermediate results determine the final answer. In iterative search, that sequence is embodied in a grammar-derived program. The later work’s title places the expression of the parts in the language of existing components at the center of the problem.

[From Zero to Hero](https://md.research.elamur.ai/free/en/papers/liu-2023-zero-hero-examining-power-symbolic/) examines symbolic tasks in instruction tuning. It connects to the earlier work through the use of tasks with formally specified operations as part of learning. In iterative search, the formal specification supports checking candidate outputs and composing programs from grammar productions. The later paper’s stated subject is how symbolic tasks figure in instruction tuning, a different setting for investigating what supervision involving formal operations can support.

[NExT](https://md.research.elamur.ai/free/en/papers/ni-2024-next-teaching-large-language-models/) studies teaching systems to reason about code execution. The earlier paper uses an executor to distinguish programs by what they do in a world. NExT’s stated subject makes reasoning about that execution a learning target in its own right. The distinction helps locate the question addressed by iterative search. Its executor already knows how to run each valid candidate. Its contribution is a way to help the parser discover which candidates are worth learning from when the answer supplies only indirect evidence about their meaning.

## Cite

Cite as Pradeep Dasigi, Matt Gardner, Shikhar Murty, Luke Zettlemoyer and Eduard Hovy. 2019. Iterative Search for Weakly Supervised Semantic Parsing. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers).

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

```bibtex
@inproceedings{dasigi2019iterative,
  title = {{Iterative Search for Weakly Supervised Semantic Parsing}},
  author = {Pradeep Dasigi, Matt Gardner, Shikhar Murty, Luke Zettlemoyer and Eduard Hovy},
  booktitle = {Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)},
  year = {2019},
  doi = {10.18653/v1/n19-1273},
  url = {https://doi.org/10.18653/v1/n19-1273}
}
```

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