---
title: "Beyond I.I.D. — paper by Gu et al. (2020) — summary and ideas"
description: "GrailQA tests whether question-answering systems can query a knowledge base when familiar relations appear in new combinations or the…"
canonical: "https://research.elamur.ai/free/en/papers/gu-2020-i-i-d-three-levels/"
---
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/gu-2020-i-i-d-three-levels/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Bases

# Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Bases

Paper · 2020 · Yu Gu, Sue Kase, Michelle Vanni et al.

**Authors:** [Yu Gu](https://md.research.elamur.ai/free/en/authors/yu-gu/), Sue Kase, [Michelle Vanni](https://md.research.elamur.ai/free/en/authors/michelle-vanni/), [Brian Sadler](https://md.research.elamur.ai/free/en/authors/brian-sadler/), [Percy Liang](https://md.research.elamur.ai/free/en/authors/percy-liang/), [Xifeng Yan](https://md.research.elamur.ai/free/en/authors/xifeng-yan/) and [Yu Su](https://md.research.elamur.ai/free/en/authors/yu-su/) · **Year:** 2020 · **Venue:** arXiv:2011.07743 · **Licence:** [CC BY 4.0 (arXiv)](http://creativecommons.org/licenses/by/4.0/)

[**115** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3100058503) · [licence](http://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2011.07743)
- [DOI 10.1145/3442381.3449992](https://doi.org/10.1145/3442381.3449992)
- [arXiv 2011.07743](https://arxiv.org/abs/2011.07743)
- [OpenAlex](https://openalex.org/W3100058503)

Citations: OpenAlex, 2026-10-14.

## Summary

A question can be new to a system in several ways. It can use a different name for a familiar person, ask for a combination of facts the system has never had to retrieve together, or refer to a kind of fact that never appeared in training. The authors argue that the usual test for [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/) on knowledge bases pays too little attention to these distinctions. It assumes that training and test questions come from the same distribution, a setting called i.i.d. On a large resource such as Freebase, collecting examples that reflect the range of questions real users might ask would be difficult and inefficient. Even familiar relations can be combined in too many ways to teach them all by example.

The authors define two kinds of generalization beyond i.i.d. testing. In compositional generalization, the relations, classes and operations a question requires have all appeared in training, but the way they fit together is new. In zero-shot generalization, the required query contains at least one schema item absent from training, sometimes from a domain withheld as a whole. The definitions apply to the executable query behind a question. A fresh paraphrase or an unfamiliar entity name can be difficult in any of the three settings.

To study these differences, the authors release GrailQA, a dataset of 64,331 question–query pairs contributed to by 6,685 crowd workers. At the time of the study it was the largest knowledge-base question-answering dataset with complex questions. It spans the 86 domains in Freebase Commons and includes questions with up to 4 relations, along with counting, comparisons and requests for extremes. Expert checks, independently reviewed paraphrases and web-mined names help the authors vary the wording and the entities while retaining a reference query for evaluation.

The paper also develops a parser using [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) to interpret the question and available schema labels together. Its Ranking approach reaches 25.0% answer F1 on GraphQ, setting a new best result in the paper’s comparison. On GrailQA, Ranking and the more flexible Transduction approach both outperform the adapted QGG baseline overall. Replacing BERT with fixed word embeddings has much greater consequences on GrailQA’s compositional and zero-shot questions than on its i.i.d. questions. Restricting the search around entities helps too, although a restriction can also remove the query the system needs.

GrailQA also helps when training data for a different benchmark are scarce. On WebQ, prior training on GrailQA lets the parser reach similar performance with fine-tuning on 10% of the WebQ training data, and it reaches 43% answer F1 with no WebQ training. That transfer experiment supplies the correct entities. Across the study, the strongest evidence concerns two distinct demands of generalization. A parser needs to connect unfamiliar wording and schema labels, and its search must leave enough room for the right query to be found.

## Deep dive: Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Bases

GrailQA tests whether question-answering systems can query a knowledge base when familiar relations appear in new combinations or the schema is new. · 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 natural question has to become a precise request

A [knowledge graph](https://md.research.elamur.ai/free/en/concepts/knowledge-graph/) records facts by linking entities through named relations. Freebase can represent a theater, a production and a producer as separate entities. Its schema describes the kinds of things linked by relations, while its facts record which particular things are linked. A query needs to respect both. The schema can tell a system that a relation involving producers is relevant to theater productions. The stored facts determine which productions a particular person produced.

A person asking about theaters can leave those distinctions implicit. A structured query must make them explicit. It has to say which relation to follow, in which direction, and whether a condition applies to the theater or to the production. A capacity threshold adds another requirement. The user can express all of this in ordinary language, while a person writing the query directly must know how the knowledge base organizes the information. As the authors describe it, providing a common question interface becomes more valuable as that organization extends across more subject areas.

The paper concentrates on [semantic parsing](https://md.research.elamur.ai/free/en/concepts/semantic-parsing/). In this approach, the system builds an intermediate expression that a database can execute. Another family of approaches retrieves and ranks possible answers directly. A semantic parse gives an evaluator something to inspect when an answer goes wrong. A candidate may use the wrong relation, reverse the right one, omit a class restriction or request a count when the user asks for names. Those errors are easier to distinguish when the system returns the expression that produced the answer.

#### What a random split makes easy to overlook

The standard i.i.d. assumption treats training and evaluation questions as draws from the same distribution. In practice, randomly dividing a collection is a way to test performance on more questions drawn by the same collection process. If that process repeatedly produces questions with the same query structure, examples with that structure can land on both sides of the split. A system can then do well because it has learned a reliable mapping for recurring patterns. That is a relevant capability for answering future requests drawn in much the same way.

The authors question whether enough representative examples could be collected for a knowledge base of Freebase’s breadth. The difficulties are both about coverage and about how to spend annotation effort. A large set of domains makes it hard to anticipate which relations and classes users will ask about. Adding another relation or condition multiplies the ways existing pieces can be assembled. Sampling more questions can spend a great deal of effort on popular patterns while leaving less common combinations untouched.

One way to collect closer to what users want would be to deploy a system, annotate incoming questions and train it again. The paper points out what happens in the intervals between those rounds. A user is most likely to expose a gap when asking about something the training collection has yet to cover. Resolving yesterday’s gaps through annotation still leaves the system facing new ones. The authors therefore frame generalization as a capability to build into the system, with separate tests for different ways a question can depart from the training examples.

Consider the theater example at the level of query structure. Training could illustrate production credits, where productions are staged and how capacity thresholds work, each in different examples. A new request could combine them to restrict the theaters that staged a particular producer’s work. Handling this request requires composing familiar ingredients. A question about who created a television program poses a different challenge if the program class or creation relation has never appeared in a training example. The parser then needs to recognize a schema item for which it has had no supervised example in that task.

There is a further distinction between a query pattern and the words used to ask for it. The same pattern can be expressed with different syntax, and a person can be mentioned by surname or title. Conversely, a small change in familiar phrasing can call for a change in relation direction or a different comparison. A split defined by wording alone would mix these cases. By defining the three levels on the executable expression, the authors leave room to study linguistic variation separately.

#### What earlier datasets and parsers could test

The paper traces several common benchmarks to collection procedures that favored familiar test structures. WebQ starts from actual Google search queries, with answers collected through crowdsourcing. A later annotation effort supplies logical forms. The authors describe the questions as mostly simple and single-relational. With the dataset randomly divided, its logical forms tend to recur across training and test, even when the questions differ in wording or topic entity. The two efforts are [Semantic Parsing on Freebase from Question-Answer Pairs](https://md.research.elamur.ai/free/en/papers/berant-2013-semantic-parsing-freebase-question-answer/) and [The Value of Semantic Parse Labeling](https://md.research.elamur.ai/free/en/papers/yih-2016-value-semantic-parse-labeling-knowledge/).

ComplexWebQ extends WebQ queries with additional SPARQL statements, for instance to impose conditions or ask for extremes. This creates more complex structures, but a random split can still distribute instances of the same structure across training and test. The paper reports that around 72% of ComplexWebQ test questions have a canonical logical form seen in training. It also points out that automatically extending an existing question can yield requests people would be unlikely to make. The underlying work is [The Web as a Knowledge-Base for Answering Complex Questions](https://md.research.elamur.ai/free/en/papers/talmor-2018-web-as-knowledge-base-answering/).

SimpleQ illustrates a different issue. Sample individual Freebase facts and a large corpus can result, but many questions can instantiate the same relation. Asking about the birthplace of many different people broadens entity coverage while exercising the same query structure. Counts of examples and counts of structures therefore describe different properties of a benchmark.

GraphQ is the closest predecessor for the GrailQA collection method. It generates well-formed, nonredundant logical forms from Freebase and gives the authors an algorithm they can reuse. GraphQ and QALD also offer ways to study composition by separating logical forms across training and test. For the authors’ zero-shot question, those benchmarks leave something unresolved. Most QALD test relations are seen in training, and GraphQ does not explicitly reserve new domains for evaluation. Both are relatively small for the scope the authors want. They also discuss CFQ as a synthetic benchmark focused on composition, with a different purpose from testing unseen knowledge-base schema. On DBpedia, they describe LC-QuAD as using generated queries and template questions that experts then paraphrase.

Earlier parsers gave the authors two broad ways to turn an utterance into a query. An encoder–decoder can predict a logical form as a sequence of symbols. A candidate-based approach first constructs possible queries with rules or templates and then scores them against the language. The former can assemble a program with a pattern it has never emitted before. The latter can remove many impossible or irrelevant choices before any language scoring takes place. In a large knowledge base, the flexibility of sequential prediction and the selectivity of candidate search address different needs. One of the paper’s examples of the candidate tradition is [Semantic Parsing via Staged Query Graph Generation](https://md.research.elamur.ai/free/en/papers/yih-2015-semantic-parsing-staged-query-graph/).

The authors also draw on work outside Freebase question answering. Earlier cross-domain semantic parsing had emphasized pretrained word representations, and cross-domain text-to-SQL research had shown how encoding a question together with schema labels could help align the two. A relational database used for a text-to-SQL example can present a much smaller menu of labels than Freebase does. The question for GrailQA is how to retain the benefit of seeing the schema in context while handling a vocabulary large enough to make indiscriminate search impractical.

### The method, step by step

#### Write down what can be new

The authors start by separating the schema from the facts. They use Freebase Commons, a curated portion of Freebase from which they exclude ad hoc domains under `base` and `user`. Across its 86 domains, the resource lists 2,038 classes and 6,265 relations, alongside more than 45 million entities. A domain groups related subject matter. A class describes a kind of entity, and a relation gives a named link that the query can use. The questions ultimately cover all the Commons domains and most of their classes and relations.

The paper represents the ontology as a set of permitted class–relation–class triples.

```
𝒪 ⊆ 𝒞 × ℛ × 𝒞
```

The symbol 𝒪 denotes the ontology, 𝒞 the set of classes and ℛ the set of binary relations. The multiplication signs denote Cartesian products, which form ordered triples by taking an item from each position. The subset symbol says that the ontology consists of selected triples from that space. A triple describes the classes at the ends of a relation. It supplies a typing pattern for facts without naming a particular instance.

The facts have their own representation.

```
ℳ ⊆ ℰ × ℛ × (𝒞 ∪ ℰ ∪ ℒ)
```

Here ℳ is the set of relational facts, ℰ the entities, ℛ the binary relations, 𝒞 the classes and ℒ the literals. A literal can be a numeric value, such as a venue’s capacity. The union symbol ∪ lets the final position be drawn from any of the three sets in parentheses. As before, × forms ordered triples and ⊆ selects those recorded in the knowledge base. In this expression the first position holds a particular entity. The distinction matters because a system may have access to facts involving an entity while having seen no training question that uses one of the relations attached to it.

To classify a question, the authors use 𝒮 for the schema inventory available to express queries. It includes relations, classes and, for GrailQA, functions in the query language. The inventory is distinct from the set of entity and literal values. Write 𝒮ₜᵣₐᵢₙ for the items that occur anywhere in the training examples and 𝒮_q for the items used in the logical form of question q. A *logical form* is the structured meaning of the question expressed as a query. It says which facts to retrieve and what to do with them.

The i.i.d. and compositional cases have a shared schema condition.

```
∀ q ∈ 𝒬, 𝒮_q ⊂ 𝒮ₜᵣₐᵢₙ
```

The symbol 𝒬 is the test set under consideration. The expression ∀ q ∈ 𝒬 means the condition applies to each question q in that set. The symbol ⊂ is the paper’s subset notation here, with 𝒮_q on the left for the items used in that question and 𝒮ₜᵣₐᵢₙ on the right for training coverage. Both settings require the pieces of every test query to have been seen. The i.i.d. condition additionally calls for test questions drawn from the same distribution as training. The compositional condition instead requires a query structure absent from training. In the dataset split, that structure is the canonical logical form shared across variations of the template.

Zero-shot evaluation changes which pieces the system needs to use.

```
∀ q ∈ 𝒬, ∃ s ∈ 𝒮_q such that s ∈ 𝒮 ∖ 𝒮ₜᵣₐᵢₙ
```

The symbols q and 𝒬 again denote a question and its test set. The symbol ∃ means that there is some schema item s among those used by q, indicated by s ∈ 𝒮_q. The set difference ∖ removes the training inventory 𝒮ₜᵣₐᵢₙ from the full schema 𝒮. The remaining requirement is that at least one item in the test query belongs to that difference. A relation can qualify even when the rest of the query is familiar. A whole domain can also be held out, as in the GrailQA evaluation. The schema is still available through the knowledge base. What is absent is the use of the held-out item in the supervised training questions.

These definitions let the same kinds of language variation run through each test. Replacing a person in a query with a compatible person ordinarily leaves the schema inventory unchanged. Changing a full name to a short form also leaves the query unchanged if the short form refers to the same entity. A different query relation may make a question zero-shot even if the sentence containing it looks much like a training question. The split is a statement about what the system has been taught to query.

#### Build each question around an executable structure

GrailQA begins with queries and elicits questions for them. This follows the overall pattern of [Building a Semantic Parser Overnight](https://md.research.elamur.ai/free/en/papers/wang-2015-building-semantic-parser-overnight/) and uses the logical-form generator behind GraphQ to work with a larger ontology. Starting from a query means the authors can choose structures and schema coverage before asking anyone to write the corresponding questions. It also gives them a way to collect several linguistic realizations of the same structure and decide how those realizations should be distributed.

The generator traverses the ontology and creates graph-shaped templates from its relations and classes, together with query functions. Connections in a template specify which conditions share a variable and which branch leads to the answer. The generator gives the resulting forms guarantees of well-formedness and nonredundancy. It then binds selected positions in each template to compatible entities or values. The initial binding produces the *canonical logical form*, the representative used in subsequent annotation.

The authors generate forms with up to 4 relations and optionally an additional operation from the specified family of counting, superlatives and comparisons. These operations change what a question demands. A count asks for the size of a qualifying set. A superlative asks which qualifying entity has an extreme value on a property. A comparison uses a property threshold to decide which entities qualify. Meaningful queries can combine such an operation with chains of relations, which lets the dataset test more than whether a parser can locate a single edge.

A graduate student reviews each generated representative and decides whether a person might reasonably want to ask the corresponding question. Of the generated canonical logical forms assessed at this stage, 86.5% are approved. For an approved form, a student writes a canonical question and another student checks both fluency and faithfulness to the query. Their annotation interface shows the query as an interactive graph. Selecting a component brings up information such as its description and type, helping an annotator understand which interpretation the graph warrants.

The canonical question sets entity and literal values apart with brackets. These marked spans do two jobs. For paraphrasing, they identify material whose reference needs to stay fixed while other words change. For later substitution, they mark the positions where the collection procedure can insert other compatible entities or values. The formal query and the words in the canonical question remain tied to the same slots.

How GrailQA turns Freebase queries into questions The steps in order.

#### Vary the wording, the entity and its name

Crowd workers on Amazon Mechanical Turk see a canonical question and supporting information such as the answer and a description of the topic entity. They write a plausible paraphrase while keeping the bracketed spans as given. Seeing the answer can help a worker interpret a question whose canonical wording is unfamiliar. Retaining the brackets preserves the structure needed to reuse the paraphrase with a different grounding. The collection continues until each canonical question has 5 accepted paraphrases. Access to the tasks required an approval rating of at least 95%. The appendix describes English proficiency as a requirement and reports that 98.1% of participating workers identified English as their native language.

Other workers review each paraphrase for fluency and fidelity. Fluency asks whether the question reads naturally. Fidelity asks whether it still asks for the same information. Keeping those judgments separate is important when a rewrite sounds better but drops a constraint or changes the direction of a relationship. A paraphrase receives 4 judgments on average. It is discarded if fidelity approval is below 75% or fluency approval is below 60%. By these criteria, the review discards 17.4% of the submitted paraphrases.

A reviewer judges a batch of 10 paraphrases containing a control item. The authors seed the control pool with examples whose quality they know and expand it with reviewed examples. Reviewers who miss a control item are prompted to reconsider their decisions on the batch. The control checks whether the review procedure is finding obvious failures as well as producing agreement. The authors report that the prompt to reconsider tended to make low-quality workers leave the task.

Names are varied through a separate process. A *surface form* is the wording that stands for an entity in the question. The formal entity for Barack Obama, for instance, can be mentioned by surname alone or with a title. The authors use FACC1, which connects around 10 billion mentions in over 1 billion ClueWeb documents to Freebase entities. Frequency produces a list of candidate forms. Independent crowd judgments then check that those strings can legitimately refer to the entity. Each list is reviewed by at least three workers, and forms chosen by less than 60% of the reviewers are discarded.

The project thus distinguishes changing which entity a query is about from changing what the same entity is called. Substituting another producer changes the reference query and can change its answers. Substituting an alias for the existing producer changes the question that reaches the parser while holding the reference query fixed. The benchmark can use both transformations. Acronyms and informal names extend the variation beyond spelling differences around a formal label.

Once the authors have a template and vetted questions, they produce additional bindings for the template’s slots. A binding is compatible if the resulting query gives a nonempty result on Freebase. This check can distinguish a plausible combination of classes and relations from a question with no recorded answer for the selected entities. The procedure then draws a logical form from the grounded-query pool and a phrasing from the corresponding paraphrase pool. The slots are filled together, preserving the relation between text and query.

Both pools start with uniform sampling weights. Whenever a grounded logical form is selected, its weight is divided by ρₗ, the logical-form decay factor, set to 2. Each time a paraphrase is chosen, its weight is scaled down by a factor of 10, the value assigned to the phrasing decay factor ρₚ. These settings make reuse less likely after a draw, with a stronger penalty on reusing a wording. The final operation can randomly replace a displayed entity name with a vetted alternative when one exists. The dataset, leaderboard and accompanying implementation code were released under the GrailQA project.

#### Express a graph as a short program

A graph query is convenient for seeing the relations and their shared variables. The parser needs a representation it can produce as a sequence, so the authors also express the query as a Lisp-style S-expression. Parentheses group a function and its arguments. A nested group can produce the set that the next group needs. The graph and S-expression are equivalent representations of the query, and either can be converted to SPARQL for execution against Freebase.

The grammar defines 10 functions. A class is interpreted through its members, and an individual entity can supply a set containing itself. A relation is represented through ordered pairs. Depending on the relation, the second entry can be an entity or a value. `JOIN` uses a relation to connect an input set to another set. `AND` intersects sets, while `R` reverses the direction of a relation. `COUNT` yields a set’s cardinality. `ARGMAX` and `ARGMIN` select entities by an extreme value. `LT`, `GT`, `LE` and `GE` filter by strict or inclusive comparisons against a threshold.

Here is the structure of the paper’s theater example, written with the production condition first in the inner intersection.

```
(AND Theater (AND (JOIN staged_here (JOIN producer Bob_Boyett)) (GE capacity 10000)))
```

`Bob_Boyett` is the entity grounding for the producer. The innermost `JOIN` uses `producer` to find productions connected to him. The surrounding `JOIN` follows `staged_here` to find venues associated with those productions. `GE` selects entities whose `capacity` meets or exceeds the literal `10000`. The inner `AND` keeps venues satisfying both the production and capacity requirements, and the outer `AND` restricts the result to the class `Theater`. Parentheses show which operation consumes which result. Swapping the arguments of an intersection leaves the set it returns unchanged.

This expression makes concrete why composition deserves its own test. Capacity, the theater class and each relation could be observed in isolation. To produce the expression, a parser has to use the production set to find venues, keep the capacity condition attached to those venues, and retain the expected answer type. Learning a word association for each relation is useful, but the final prediction has to put those associations into one executable structure.

#### Link entities before narrowing the search

At prediction time the process starts with language, so the parser must locate the names the dataset builders inserted. [Named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/) identifies text spans likely to name entities. Entity linking resolves each span to an entry in Freebase. A span can have several candidate referents, and the same referent can have several spans in different questions. These are separate decisions even when a system performs them in a pipeline.

The authors train a BERT-based recognizer on GrailQA’s training examples. To disambiguate a found mention, they use FACC1 popularity to select its most common candidate or candidates. They compare this linker with Aqqu, which uses rules and features involving language and entity popularity. On GrailQA the BERT-based linker has slightly lower recall and substantially higher precision. Recall describes how many of the true entities were recovered. Precision describes how many of the returned links were correct. The GrailQA parser comparisons use the BERT-based linker, so the systems normally start from the same links.

An identified entity gives the parser a starting point in the graph. Looking at the nearby facts makes it possible to reduce the available relations and classes for a particular question. The authors call this *vocabulary pruning*, or VP. In the standard pruned Transduction setting, a schema item is eligible if it is reachable within 2 hops of at least one linked entity. A hop is one traversal along a relation in the graph. If the question supplies multiple anchors, the procedure takes the union of their neighborhoods. Identified entities, functions and S-expression syntax symbols are also available to the decoder.

This yields a question-specific output vocabulary. Its schema items come from the knowledge base, so an item can be included even when it was absent from the training questions. That is how the parser can name a new relation at evaluation time. The same restriction creates a dependency. A mislinked anchor can expose an irrelevant neighborhood, and a relation outside the retained neighborhood can disappear from the choices. The decoder then has no way to produce that item through the pruned vocabulary.

#### Encode the question with possible output symbols

The neural parser is a sequence-to-sequence system. An encoder reads the words or word pieces in the question and a decoder outputs the symbols of a logical form in order. Both use long short-term memory units, abbreviated LSTM, in separate recurrent networks. At each position a recurrent network updates a hidden state, a vector that carries forward information from previous steps. The parser uses pretrained representations to supply the vectors for the question and the available output symbols. Sequence-to-sequence architectures and neural attention are part of the paper’s parsing background. [Sequence to Sequence Learning with Neural Networks](https://md.research.elamur.ai/free/en/papers/sutskever-2014-sequence-sequence-learning-neural-networks/) and [Language to Logical Form with Neural Attention](https://md.research.elamur.ai/free/en/papers/dong-2016-language-logical-form-neural-attention/).

The authors use the following sequence notation for the question.

```
q = x₁, …, x_|q|
```

Here q is the input question, x denotes an input token with its position as a subscript, and |q| gives the length of the question in tokens. The ellipsis stands for the intervening positions. In BERT encoding those positions are word pieces, the sub-word units BERT reads.

The desired output has a parallel notation.

```
a = y₁, …, y_|a|
```

Here a is the logical form, y denotes an output token with its position as a subscript, and |a| is the number of output tokens. The ellipsis represents the remaining positions between the first and last. A single output token can denote a whole schema item even when its label takes several word pieces to encode.

The probability of a logical form is expressed by a chain of token predictions.

```
p(a | q) = ∏[t = 1 to |a|] p(yₜ | y_<t, q)
```

The symbol p denotes probability and the vertical bar introduces the conditioning information. On the left, a is the predicted query and q the question. The product sign ∏ multiplies the terms for output positions t from 1 through the query length |a|. At position t, yₜ is the token being scored and y_\<t denotes the tokens at all earlier output positions. The conditional probability for the current token therefore depends on the question and the prefix already produced. The same probability decomposition can score a complete query supplied by a candidate generator.

The recurrence that supplies a hidden state is written as follows.

```
hₜ = LSTM(hₜ₋₁, gₜ)
```

The vector hₜ is the state at step t, and hₜ₋₁ is the state from the previous step. The vector gₜ is the representation fed in at step t. `LSTM` denotes the learned state-update operation. The encoder and decoder have separate parameters. On the encoder side, the input comes from the question embedding. On the decoder side, the input representation is looked up in the output-token embedding matrix.

The encoding-side input is given by a question-dependent function.

```
gₜ = f(q, 𝒱, t)
```

The symbol gₜ again denotes the input vector at step t. The function f takes the question q, its decoder vocabulary 𝒱 and the position t. It returns the vector for xₜ, the input token at that position. Because the vocabulary is an argument of f, the encoding can reflect schema labels presented alongside the question.

The decoder uses an embedding matrix with the following dimensions.

```
W ∈ ℝ^(|𝒱| × d)
```

Here W is the embedding matrix, ℝ denotes real numbers and ∈ indicates that W belongs to the space of real matrices of the stated shape. The number of rows is |𝒱|, the number of available output symbols, and each row has d coordinates. The sign × separates the two dimensions. In the contextual version, the rows are computed for the current question and its available vocabulary.

The paper writes the decoder’s embedding lookup as follows.

```
gₜ = [W]_{yₜ}
```

The input representation gₜ is the row of W indexed by the decoder token yₜ. The brackets with a subscript indicate that row selection. The same rows appear in the scoring operation that assigns a probability to each possible next output.

```
p(yₜ | y_<t, q) = [Softmax(W hₜ)]_{yₜ}
```

On the left, p gives the probability of token yₜ at step t, conditional on the previous output y_\<t and the question q. On the right, multiplying W by the decoder hidden state hₜ gives one score per available vocabulary item. `Softmax` converts those scores into probabilities that sum to one. The final subscript selects the value corresponding to yₜ. The reuse of W for input embeddings and output scoring is called tying the embeddings. It gives the embedding of a newly available schema label a direct role in deciding whether to emit it.

For BERT to compute these vectors, the question and output labels must fit within its input limit of 512 tokens. The paper handles this by dividing the vocabulary into chunks. One implementation passage specifies chunks of size 45. Each chunk is encoded in a separate BERT input alongside the same question. The special token `[SEP]` separates question and vocabulary, and punctuation separates individual items in the chunk. BERT’s last-layer vectors can then reflect interactions between the question and the labels present in that input.

To compute a row of W, the authors average the output vectors of the word pieces that make up that item. For a label such as `architecture.venue.capacity`, the constituents supply information about the kind of property the label names. An entity’s vector comes from pieces of its surface form. For the question itself, f uses the vector at the corresponding question position from the first chunk. Each item is thus encoded with the question, while the question vectors fed to the recurrent encoder come from a single pass instead of a combination of every chunk.

The comparison with [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/) changes this relationship between text and labels. A GloVe representation for a multiword label averages pretrained word vectors. Those constituent vectors are fixed across questions. BERT’s output can change with the accompanying question and the other labels in the same chunk. Both approaches can supply representations for labels beyond those encountered in supervised training. They differ in what context is available when a particular label is represented and scored.

#### Train a parser and use it in two ways

The experiments train a GloVe sequence parser and a BERT sequence parser, then vary how they search at inference. The BERT version uses uncased BERT-base and updates its pretrained parameters during [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). GloVe uses the fixed GloVe-6B-300d embeddings. The authors say that updating GloVe made performance slightly worse in their trials. Vocabulary restriction makes BERT training feasible. The paper describes a training subset based on both domain and proximity to topic entities in one implementation passage. The GloVe parser can be trained without vocabulary pruning.

For GloVe training, the batch size is 32 and Adam starts at a learning rate of 0.001. Memory usage limits the BERT version to a batch size of 1, so the authors use 16 steps of gradient accumulation. This adds gradients from successive examples before an update. Adam uses an initial rate of 0.001 for the newly trained parameters, and the rate for BERT’s parameters is 2e-5. Encoder and decoder hidden sizes are both 768. Hyper-parameters are chosen on validation data. Early stopping uses a patience of 3, and the selected checkpoint is the one with the highest validation exact match.

In **Transduction**, the decoder repeatedly predicts another symbol until it reaches the stop token. Each choice is made from the vocabulary supplied for that run. This mode can build expressions by arranging the available symbols, including comparisons, superlatives and class restrictions. Any particular combination of those symbols has to be found through decoding. Pruning the vocabulary reduces competition among individual symbols while leaving many possible combinations.

In **Ranking**, the same sequence parser scores queries already constructed by an enumerator. The enumerator starts from each linked entity and searches up to 2 hops along facts, with an optional count. It combines candidates from the different anchors when there is more than one. The highest-scoring complete query is returned. By constraining full expressions, Ranking can discard combinations that the Transduction vocabulary still permits. The tradeoff is that the score cannot recover a query the enumerator has left out. The authors consider enumeration to 3 hops prohibitively large for the approach they use.

The SPARQL endpoint serves several purposes. It exposes the graph for vocabulary selection and candidate creation, and it executes predicted queries to obtain answers. The authors run the endpoint locally using Virtuoso. They cache some pruning and enumeration results offline for reuse in their experiments because executing these requests online takes time. The experimental pipeline therefore separates the neural scoring operation from some of the work required to construct its candidate space.

### Experiments and results

#### How the splits turn the definitions into tests

The final collection contains 4,969 canonical logical forms and 29,457 paraphrases when the canonical questions are included in that count. Sampling and grounding turn these into 64,331 question–logical form pairs. These totals describe different levels of the collection. The canonical forms count the structural representatives. The paraphrase count describes the wording pool before it is combined with groundings. The final pair count includes the resulting variation in phrasing, entity and literal values. Treating all final pairs as distinct query structures would overstate the diversity the split tests.

Training contains 44,337 questions, validation contains 6,763, and test contains 13,231. The paper gives the approximate allocation as 70%/10%/20%. Within validation and test, 50% of questions come from held-out domains for zero-shot evaluation. A further 25% come from canonical forms withheld from training for compositional evaluation. The remaining 25% are drawn at random from the same data pool as the training distribution for i.i.d. evaluation. The latter two subsets also have the explicit requirement that the schema items used by their queries be seen in training.

The authors hold out 5 domains for zero-shot validation and 10 for zero-shot testing. The validation setting can therefore be used to choose parameters or checkpoints with schema-level novelty represented, while the test setting evaluates on its own held-out domains. In the compositional portion, holding out a canonical form means a system cannot rely on having trained on another instantiation of that particular query pattern. It can still rely on the fact that each of the schema items it needs has been observed somewhere.

The overall GrailQA result reflects this deliberately chosen composition. Zero-shot questions have the largest share in the validation and test setup. A change in how well a parser handles them can matter substantially to the overall score. The individual slices answer questions that an overall score alone cannot. They show whether a setting helps with familiar patterns, with building fresh combinations, or with grounding a schema item that was withheld from training.

#### How the authors judge a prediction

Exact match, or EM, measures whether the predicted logical form is semantically equivalent to the reference under the paper’s graph comparison. The evaluator first turns the S-expressions back into query graphs, then checks graph isomorphism. Isomorphism means the two graphs can be matched in their relevant structure and labels after allowing for differences such as the ordering of a written expression. A faithful rendering can therefore receive credit even if its text is different from the reference string. The authors describe this graph-based check as sound and complete for their representation, in contrast to matching plain strings or sets of components.

Answer F1 compares the result of executing the predicted query with the reference answer set. Precision takes account of returned answers that belong to that set. Recall takes account of reference answers that have been returned. F1 combines them, making it possible to give partial credit when a query retrieves some correct answers while leaving others out or adding unwanted ones. This metric also permits a comparison when a system does not expose a logical form in the benchmark’s representation.

The two measures can disagree in informative ways. A short query could return some of the right venues by following the production links without applying a capacity condition. It would receive answer credit to the extent that the sets overlap, while a graph comparison would detect the missing constraint. Execution on the current facts can also make different queries produce the same answers. In such a case, F1 captures agreement on the output, and EM still asks whether the system chose the intended query.

#### The comparisons on GraphQ and GrailQA

The authors use GraphQ to establish that their approach is competitive on an existing benchmark focused primarily on composition. The earlier best reported GraphQ F1 is 21.5 for SPARQA. The new Ranking system reaches 25.0% GraphQ F1. The paper reports the margin as 3.5 percent. The result supports using the new parser as a strong reference for the GrailQA experiments.

SPARQA and Ranking on GraphQ answer F1 Ranking achieves the higher answer F1 on GraphQ.

**The numbers**

| System or setting | F1 % |
| --- | --- |
| SPARQA | 21.5 |
| Ranking (this paper) | 25.0 |

On GrailQA, the main external comparison is QGG, the Query Graph Generation approach that the paper identifies as the leading system on ComplexWebQ and WebQ at the time. QGG learns from question–answer pairs through reinforcement learning. It uses BERT to score the match between a question and a candidate logical form as one of seven hand-crafted ranking features. The sequence parsers developed for GrailQA learn from question–logical form pairs, and the contextual version uses BERT to represent the symbols the decoder can emit. The comparison therefore involves differences in training supervision and architecture as well as in the use of BERT.

The adaptation retains QGG’s WebQ configuration for candidate generation, with relations up to 2 hops. The authors state that this covers 80% of the GrailQA training questions. They estimate that extending QGG training to 3 hops would take a few months because the GrailQA entity set produces so many possibilities. QGG is evaluated through answer F1 because it uses a different meaning representation. The study shares the same entity linker across the main GrailQA systems. This makes differences in how they use the links more visible. It does not make the two candidate generators identical.

Ranking has the best GrailQA performance overall, and both Ranking and Transduction outperform QGG overall on the shared answer measure. Ranking is particularly strong relative to Transduction on the compositional and zero-shot subsets. QGG’s performance is more uniform across the three settings. The authors suggest that learning from answers may let QGG encounter different queries that lead to the same result, giving it a wider range of patterns during training. The comparison does not isolate that explanation because QGG differs in other respects as well.

The paper reports several numerical changes for the GrailQA representation comparisons. Replacing BERT with GloVe is associated with a reported Transduction F1 drop of 17.5% on the compositional subset and 26.2% on the zero-shot subset. For Ranking the reported zero-shot F1 drop is 21.9%. The i.i.d. comparison is much closer. These figures describe drops under an embedding replacement. They do not specify the absolute F1 attained by each setting.

Reported GrailQA F1 drops when GloVe replaces BERT Transduction shows a larger reported drop on zero-shot questions than on compositional questions.

**The numbers**

| System or setting | F1 drop % |
| --- | --- |
| Transduction, compositional (this paper) | 17.5 |
| Transduction, zero-shot | 26.2 |
| Ranking, zero-shot | 21.9 |

#### Transfer from GrailQA to WebQ

The transfer experiment asks whether training on GrailQA is valuable beyond its own splits. WebQ has questions that originate in Google search logs, so it brings in wording from a different collection process. To run the same parser, the authors translate WebQ’s SPARQL queries into S-expressions. They then test Ranking with full WebQ training, adaptation with 10% of WebQ training data, and direct evaluation after GrailQA training with no WebQ training data.

The base starting point in the adaptation experiments is BERT, while the GrailQA starting point adds training on the source question–query pairs. The authors report that using GrailQA before WebQ improves performance, especially when little WebQ data is available. They describe the 10% adaptation condition as reaching similar performance with much less WebQ supervision. Under direct transfer, GrailQA-trained Ranking reaches 43% WebQ answer F1. Both the answer metric and the entity condition matter here. The authors supply correct entities for the transfer experiments, so the number measures the parser’s transfer given successful linking.

The no-WebQ-training result is zero-shot at the dataset level. The within-GrailQA zero-shot slice is defined by withholding knowledge-base domains and schema items from the supervised examples. In transfer, the salient absence is supervised training on the target benchmark. The result supports the claim that work done on GrailQA can carry over to questions collected elsewhere, under the stated linking condition.

### What the ablations show

#### Context helps most when training examples are a poor guide

The authors compare BERT and GloVe within both inference modes. This is a useful control because Ranking and Transduction otherwise differ in what they search. A difference between contextual and fixed representations within a mode can be observed without switching from whole-query candidate scoring to token-by-token generation. In both cases the BERT representation is jointly conditioned on the question and a chunk of available labels. GloVe uses averages of fixed vectors. The study compares those practical alternatives, including their different pretraining and fine-tuning treatments.

The main result is the uneven effect across evaluation slices. For i.i.d. questions, fixed embeddings remain competitive with contextual ones. A parser has ample opportunity to learn associations between familiar labels and recurring query structures in this setting. On compositional questions, relying too strongly on those recurring structures can lead to the wrong assembly of familiar pieces. On zero-shot questions, a label new to supervised training must be identified through other evidence. The large reported F1 losses after replacing BERT on the latter slices are consistent with stronger language-to-schema alignment in the contextual version.

One Transduction example involves the Oakland Raiders and their home games. BERT leads the parser to the home-team relation in the held-out `american_football` domain. With GloVe, the parser selects an arena or stadium relation from the sports schema that it saw during training. The mistaken relation has a plausible association with being at home. It connects the question to a venue, though the query needs the games in which the Raiders were the home team. The paper reports that selecting a familiar relation of this sort was a common error for the GloVe system and less frequent for its BERT counterpart. The example illustrates what a successful zero-shot alignment has to accomplish beyond recognizing the topic.

The BERT contribution is less pronounced on compositional questions with Ranking than with Transduction. The authors offer a search-based explanation. Once Ranking is limited to complete expressions constructed from the neighboring facts of a particular entity, many confusable programs from training are absent. Transduction’s vocabulary pruning can remove irrelevant symbols, but it still has to choose how to assemble the remaining ones. A stronger representation can do more work when the search presents more plausible but incorrect assemblies. The paper treats that interpretation as an explanation for the observed interaction between representation and search.

#### Vocabulary pruning and candidate pruning solve different problems

The Transduction comparison removes VP as well as testing the embedding substitution and the combination of both changes. The overall deterioration across reduced settings indicates that the choice of search space contributes alongside the choice of representation. The paper notes that BERT Transduction without pruning also fares poorly on the i.i.d. slice compared with the other Transduction settings. Its explanation is a training–inference mismatch. The BERT system is trained with a restricted vocabulary for computational reasons, and inference without that restriction confronts it with a larger set of choices.

That detail narrows what the pruning comparison establishes. Removing VP in the BERT experiment changes the size and composition of the search space at test time relative to the training conditions. It tests the effect of that practical change. It cannot cleanly identify how a BERT decoder trained and evaluated with the full vocabulary would behave. The fixed GloVe system does not have the same requirement to prune its vocabulary during training.

Ranking always depends on the linked entities for candidate construction, so the authors do not present a parallel Ranking variant with that search removed. Its gain over Transduction on the non-i.i.d. subsets comes with constraints that apply to full programs. The enumerator consults facts near the anchor. Vocabulary pruning supplies a menu of reachable elements that a decoder can still combine in many ways. For a question whose answer is visible in the local facts, the first approach can make the candidate set more selective. For questions requiring a form outside the enumerator’s rules, the second approach has more expressive room.

The authors also report that Ranking’s candidate generator recalls the reference query for 80% of GrailQA questions in its coverage analysis. That measure concerns whether there is a usable candidate before ranking. The final F1 reflects both the set it starts with and the scorer’s choice. Keeping the measurements distinct exposes two possible causes of a wrong answer. Improving the scoring function has limited benefit on a case whose required query is missing, while adding candidates makes the ranking problem harder unless the scorer can distinguish them.

#### Complexity changes which inference mode is stronger

The fine-grained analysis groups questions by features such as the number of relations and the presence of functions. Performance declines rapidly for all systems as questions use more relations. Longer queries create more opportunities to choose an incorrect relation, place a condition at the wrong point in a chain, or stop before the intended structure is complete. The paper reports that Ranking can even outperform Transduction on questions with 3 relations, in spite of enumerating candidates with up to 2 relations. On answer F1, a shorter candidate can receive partial credit if the facts it retrieves overlap the intended result. This explains how an approach with a strict candidate limit can retain an advantage on that slice without reproducing the full query.

Comparatives and superlatives reveal the other side of the tradeoff. A question about the chemical element first discovered can name an answer type and an ordering criterion without supplying any particular element as an anchor. A procedure that starts from a named entity then has no suitable place to begin its walk. Ranking and QGG struggle on these questions, while the more flexible Transduction performs better on comparatives and superlatives. The result points to a real difference in which forms can be assembled through the respective search procedures.

Counting makes the answer interface matter as well. The paper reports zero F1 for QGG on the GrailQA counting questions because QGG only returns entities, while the query asks for a quantity. This failure has a different interpretation from returning an incorrect count. The implementation’s permissible answer type prevents the required answer. In the authors’ own Ranking setup a count is one of the constructions the enumerator can add. Transduction can emit the count symbol as part of a program. The function results help explain why a single overall ranking of systems conceals differences in what their decoders and answer interfaces can express.

#### Change the wording and grounding with the entities supplied

GrailQA’s construction permits comparisons among questions with a controlled relationship. In the robustness analysis, the authors first group examples by paraphrase, so members of a group differ in entity grounding while keeping the same wording pattern. They also group by canonical template, so examples can vary along both the grounding and paraphrase dimensions. The second grouping therefore places more kinds of variation inside each group. Both analyses supply the correct entities to the parser, removing ambiguity and missed recognition from the comparison.

For each grouping the authors calculate an optimistic bound and a pessimistic bound on observed accuracy. The optimistic version credits every question in a group if at least one member was answered correctly. The pessimistic version credits the group’s questions only if all its members were answered correctly. Ordinary question-level accuracy falls between them. If a system always succeeds or always fails across the variants within each group, the three measures coincide. Mixed results within groups pull the bounds apart. The gap therefore measures consistency across variants. The level of accuracy still matters because consistently failing a group also yields agreement.

The BERT-based versions in general have narrower gaps than the GloVe versions. For instance, the fixed-embedding Ranking system can recover the state associated with Raipur as its capital and fail on the same wording pattern with Bhubaneswar. Ranking with BERT gets both examples right. Since the study supplies the entities, the difference belongs to prediction after linking, which includes how the grounded graph interacts with the parser and candidate scorer. It does not measure whether the live entity recognizer is equally resilient to the change of city.

For Ranking on the non-i.i.d. questions, the GloVe version even has the higher optimistic bound. Some groups therefore contain a successful GloVe prediction even when performance across variants is weaker. This is evidence that an embedding comparison can involve consistency across equivalent or closely related tasks in addition to which structures can ever be answered successfully. The optimistic bound gets to count a whole group after seeing a success, a privilege the parser has no way to use when answering an individual question.

#### Where wrong answers come from

The authors inspect 100 randomly sampled GrailQA questions that Ranking answered incorrectly. They find that uncovered questions account for 34% of those errors. This error-sample share and the candidate generator’s reported coverage concern different populations. The coverage number looks at what is available across the benchmark. The error inspection asks how often the lack of a suitable candidate explains a failure once a wrong answer has already been observed. It identifies candidate construction as a sizable problem even for the strongest overall method in the paper.

Entity recognition and disambiguation provide two other failure routes. The recognizer misses `RB` in a question about a song added to Rock Band. In a question about the beliefs of Mo, the system detects `Mo` but selects Missouri through its popularity rule instead of the intended religion. The first error deprives the search of an anchor. The second supplies an anchor that leads into the wrong part of the graph. More accurate scoring over queries in the resulting neighborhood would have little chance to repair either case.

Some wrong answers come from selecting a relation that appears plausible in isolation but has the wrong direction or answer type. The question about an earlier version of the Frostbite game engine illustrates direction. The reference uses the relation named `successor_engine` because of the endpoint from which the relation must be traversed. Ranking chooses `predecessor_engine`, which resembles the surface meaning of “previous” but encodes the wrong link for this query. The case shows why a schema name has to be understood as an oriented edge rather than as a keyword.

Around 20% of the relation misclassifications in the error analysis are tied to identifying the answer type. In the authors’ example, a question about a soundtrack featuring Amy Winehouse leads the parser to a relation associated with albums. Both categories are plausible in the musical domain, but the reference distinguishes them. Other typing errors involve a required class restriction. A parser may find people when the query asks for politicians specifically. The authors explain that explicitly enumerating type constraints for Ranking would produce prohibitively many candidates. The omission makes search tractable while leaving some type-sensitive queries beyond its reach.

Finally, the parser sometimes gets the requested operation wrong even when the relevant entities and relations are nearby. In one example it adds a count to a question asking for an image in a topic gallery. The difference changes the kind of answer returned. Together the errors locate failures in recognition, graph access, relation interpretation, type constraints and function choice. Those stages interact, but the authors’ separate cases show why success at one stage can coexist with failure of the complete query.

### Limitations

#### Limits the authors identify

The authors see entity linking as an unresolved practical problem. The parser’s use of entities as search anchors makes it particularly sensitive to mistakes on short names, acronyms and less popular referents. Popularity is helpful when the likely interpretation really is the common one. The Mo example shows that it can override a clue supplied by the topic of the question. The paper calls for more context-sensitive linking, especially for long-tail entities and variation in how people refer to them.

The candidate search is also limited by scale. Enumeration becomes too large when the authors extend the hop limit or add unrestricted type constraints. A tighter search works well on many questions while leaving some valid structures outside the candidate set. The authors identify more intelligently guided search as a direction for improving both styles of inference. Ranking needs a way to bring in promising structures that its present enumerator misses. Transduction needs ways to direct its larger space of possible programs towards queries supported by the language and the graph.

The authors also leave open why the contextual pretraining helps as much as it does. The embedding comparisons, error cases and robustness groupings show a pattern across evaluation conditions. They do not give a detailed explanation of which information in BERT accounts for that pattern. The paper mentions [RoBERTa](https://md.research.elamur.ai/free/en/papers/liu-2019-roberta-robustly-optimized-bert-pretraining/) and [BART](https://md.research.elamur.ai/free/en/papers/lewis-2020-bart-denoising-sequence-sequence-pre/) as possible subjects of future experiments. The reported evidence compares BERT with GloVe inside the systems the authors build.

The benchmark itself has residual annotation errors. The authors sample 100 canonical logical forms along with their canonical questions and paraphrases. They identify mismatches in 3 of the 100 canonical questions, commonly involving relation direction. They find 12 mismatches among 576 paraphrases when comparing each with its canonical question. The paper reports 3% canonical-question error, 2.1% paraphrase error and 5.6% overall error in the audit. All the reviewed paraphrases were reasonably fluent. A question can therefore read well while expressing a different query from its label.

#### Limits that follow from the setup

GrailQA covers a great deal of Freebase Commons, but its questions come from a query-first collection pipeline. The initial generator limits query size and uses a specified inventory of operations. Experts judge which resulting requests seem plausible, and crowd workers rewrite a question they have been shown. This process measures how a parser responds to controlled variety within that design. It does not establish the distribution of questions users would spontaneously ask about Freebase. The held-out-domain proportions express a deliberate evaluation policy, so an overall benchmark score has to be interpreted with that weighting in mind.

The analysis of linguistic diversity documents actual variation in those rewrites. After lowercasing, average Jaccard similarity between a paraphrase and its canonical question is 0.569 for unigrams and 0.286 for bigrams. Jaccard similarity compares the items two sets share with all the items in either set. Here the items are single words or adjacent word pairs. The mean Levenshtein distance, a character-edit measure, is 26.1 against an average length of 50.1 characters. Between paraphrases of the same canonical question, the respective Jaccard means are 0.527 and 0.257, and the average edit distance is 28.2. The paper reports greater dissimilarity when entities are excluded. These measures document changes to the wording. They leave open how closely the rewrites represent naturally occurring ways of expressing each intent.

The nonempty-answer check further delimits the situations the collected questions cover. It makes useful reference answers available and avoids validating a grounding that yields nothing in the database. Real requests can concern missing facts or combinations with an empty answer. Accuracy on executable queries with known, nonempty answers does not measure how the system would handle those cases or signal that it could find no answer.

The zero-shot definition is scoped to the annotated training examples. Test-time access to Freebase supplies the held-out labels and facts, and BERT brings pretraining from outside GrailQA. The experiment can therefore establish generalization to unfamiliar schema usage under supervised training. It does not establish that every word, relation description or entity relevant to the held-out domain was absent from all earlier exposure. The domain-based split is also one way to instantiate schema novelty. Withholding selected relations across many otherwise familiar domains would test a different mixture of shifts.

The embedding swap changes several properties together. BERT uses contextual encoding, joint presentation of question and schema labels, and fine-tuning. GloVe uses averages of static word vectors and is kept fixed. The results support the effectiveness of the BERT configuration. They cannot separately assign the F1 gains to joint encoding, fine-tuning or other differences between the pretrained representations. The BERT vocabulary comparison has a related limitation because the unpruned inference condition differs from the affordable training setup.

Finally, the robustness and WebQ transfer tests supply correct entities. That control is valuable because it lets the study examine what happens once the right graph anchors are known. It also means that the WebQ transfer number and the robustness gaps do not characterize end-to-end reliability. The shared linker in the primary GrailQA experiments keeps entity recognition and disambiguation in the comparison. Reading that evaluation alongside the controlled tests gives a clearer view of which gains concern query interpretation and which failures remain at the interface between language and the graph.

### What came after

The later citing work spans graph-based question answering, graph-enhanced reasoning and evaluation of agents. A citation establishes a connection to the paper. The research topics named by the later works show where the distinction between interpreting a question, finding graph evidence and assembling a query remains relevant. Whether a particular work reuses GrailQA, its domain split or the original parser is a separate question.

[Paths-over-Graph](https://md.research.elamur.ai/free/en/papers/tan-2024-paths-over-graph-knowledge-graph/) concerns reasoning with paths through a knowledge graph. That focus takes up a concrete problem in GrailQA’s search comparison. Individual neighboring relations can all be legitimate while only some paths connect a topic entity to the information requested. Treating a path as part of the reasoning process puts attention on how those relations work together, the same issue that makes a previously unseen composition more than a list of familiar labels.

[KG-Agent](https://md.research.elamur.ai/free/en/papers/jiang-2025-kg-agent-efficient-autonomous-agent/) addresses complex reasoning over knowledge graphs through an autonomous agent framework, with efficiency as an explicit aim. GrailQA provides a way to articulate the search problem that motivates such work. A system must be selective about where it looks while retaining enough flexibility to handle queries that escape common patterns. An agent framework shifts attention towards decisions made during a reasoning process. GrailQA’s original comparison exposes that tradeoff through the lists of symbols and complete programs available at prediction time.

[RGR-KBQA](https://md.research.elamur.ai/free/en/papers/feng-2025-rgr-kbqa-generating-logical-forms/) applies a knowledge-graph-enhanced language system to generating logical forms for question answering. It retains the intermediate object at the center of the GrailQA study. Producing a logical form makes it possible to ask whether a system used the expected relations and combined them correctly, alongside the separate question of whether execution produced the expected answer. For questions involving schema novelty, graph enhancement and logical-form generation meet at the problem of making the needed graph item available in a form the generator can use.

[Enrich-on-Graph](https://md.research.elamur.ai/free/en/papers/li-2025-enrich-graph-query-graph-alignment/) places query–graph alignment at the center of complex reasoning. This connects most directly to the original paper’s concern with language–ontology alignment. Recognizing words associated with a plausible relation is an initial step. The query also has to attach that relation to the right entity, in the right direction, and in the right part of the graph. In the original study those distinctions explain concrete wrong answers, such as following a plausible sports relation to a venue when the question calls for games.

[Follow the Path](https://md.research.elamur.ai/free/en/papers/zhang-2026-follow-path-reasoning-over-knowledge/) connects reasoning over graph paths to factuality. That question is adjacent to GrailQA’s comparison of query correctness with answer correctness. A graph traversal can expose the recorded links behind an answer, while an answer score evaluates the result. The original paper shows why access to a path is only part of a successful query. Its error analysis includes plausible paths that lead to the wrong class and paths followed in the wrong direction.

[Execution as Verification](https://md.research.elamur.ai/free/en/papers/zhang-2026-execution-as-verification-fine-grained/) concerns self-correcting reasoning for complex knowledge-base question answering, with execution treated as part of verification. In the GrailQA experiments, executing the selected query yields the answer set used to compute F1. Treating execution as a signal for revision raises a further question about what the result can reveal before the system settles on an answer. GrailQA’s distinction between exact match and answer F1 also describes a limit of that signal. A result can overlap with the expected answer even when the query has omitted a condition.

[CypherSmith](https://md.research.elamur.ai/free/en/papers/zhang-2026-cyphersmith-transforming-text-cypher-generation/) brings synthetic data to natural-language-to-Cypher generation. Its topic connects to the collection side of the GrailQA study. Whenever query structures are generated and then paired with language, the resulting data can be examined for which structures, combinations and schema items occur during training. The original paper’s split design offers a way to frame that question. High accuracy on held-out wordings and high accuracy on held-out query components answer different questions about what a system learned.

## Cite

Cite as Yu Gu, Sue Kase, Michelle Vanni, Brian Sadler, Percy Liang, Xifeng Yan and Yu Su. 2020. Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Bases. arXiv:2011.07743.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1145/3442381.3449992](https://doi.org/10.1145/3442381.3449992) · [arXiv 2011.07743](https://arxiv.org/abs/2011.07743)

```bibtex
@misc{gu2020beyond,
  title = {{Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Bases}},
  author = {Yu Gu, Sue Kase, Michelle Vanni, Brian Sadler, Percy Liang, Xifeng Yan and Yu Su},
  year = {2020},
  doi = {10.1145/3442381.3449992},
  eprint = {2011.07743},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1145/3442381.3449992}
}
```

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