---
title: "QUINT: Interpretable Question Answering over Knowledge Bases"
description: "QUINT answers questions over Freebase and shows how it turns each question into a query, so readers can inspect where an answer came from."
canonical: "https://research.elamur.ai/free/en/papers/abujabal-2017-quint-interpretable-question-answering-over/"
---
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/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/abujabal-2017-quint-interpretable-question-answering-over/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2017](https://md.research.elamur.ai/free/en/papers/2017/) / QUINT: Interpretable Question Answering over Knowledge Bases

# QUINT: Interpretable Question Answering over Knowledge Bases

Paper · 2017 · Abdalghani Abujabal, Rishiraj Saha Roy, Mohamed Yahya et al.

**Authors:** [Abdalghani Abujabal](https://md.research.elamur.ai/free/en/authors/abdalghani-abujabal/), [Rishiraj Saha Roy](https://md.research.elamur.ai/free/en/authors/rishiraj-saha-roy/), [Mohamed Yahya](https://md.research.elamur.ai/free/en/authors/mohamed-yahya/) and [Gerhard Weikum](https://md.research.elamur.ai/free/en/authors/gerhard-weikum/) · **Year:** 2017 · **Venue:** Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing: System Demonstrations · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing: System Demonstrations · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/D17-2011/)
- [PDF](https://aclanthology.org/D17-2011.pdf)
- [DOI 10.18653/v1/d17-2011](https://doi.org/10.18653/v1/d17-2011)

## Summary

Where someone grew up, where they were born, and where they lived are different questions to ask a database. In the QUINT demonstration, wording about where Martin Luther was raised produces Eisleben. The system has identified the theologian and retrieved his birthplace. Another interpretation of the same input produces Saxony-Anhalt through a relationship for places of residence. A reader can inspect both interpretations and see which part of the wording led to each relationship. This is the problem the paper takes up in [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/).

QUINT retrieves facts from Freebase, a [knowledge graph](https://md.research.elamur.ai/free/en/concepts/knowledge-graph/). A question comes in as ordinary language, and QUINT translates it into a database query. It learns how to make that translation from examples with known answers. During training, it works back from an answer to find a possible query, then pairs elements of that query with the words and grammatical structure of the example. It saves the resulting pattern in a form that can be reused. For a new question, QUINT looks for a corresponding grammatical pattern, uses the new wording to fill in the query, and ranks the candidates it builds.

The patterns also give QUINT something to show the reader. A brief explanation identifies the person, relationship, or category that the system associated with a phrase. A more detailed view shows the grammatical analysis, the matching pattern, examples from which it was learned, and the query that returned the answer. Lower-ranked queries have their own answer displays. If a phrase cannot be interpreted or the question has no matching pattern, QUINT can ask the reader to rephrase.

The authors use individual questions to show how these displays help locate a problem. For Germany’s former currency, QUINT ranks a query that returns the euro above a query for currencies formerly used. A query asking where Michelle Obama went to college returns HarvardLawSchool and PrincetonUniversity when it specifies the requested category. The walkthrough documents how the answers and explanations are produced and identifies the available WebQuestions and Free917 training configurations. It leaves benchmark performance and the effect of explanations on readers’ ability to diagnose errors unmeasured.

## Deep dive: QUINT: Interpretable Question Answering over Knowledge Bases

QUINT answers questions over Freebase and shows how it maps words to database queries, so readers can see why a particular answer came first. · about 32 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 depends on how the question was translated

A knowledge base can represent a person, a city, or an institution as a distinct entry. A relationship can connect a person to a city, and a type can identify an institution as belonging to a particular category. To retrieve a fact, a query specifies which entries and relationships to look for and which part of the matching information to return. A natural-language question usually leaves some of those details implicit. Deciding how to express its meaning in an executable form is the task of [semantic parsing](https://md.research.elamur.ai/free/en/concepts/semantic-parsing/).

Consider the two decisions hidden in the Martin Luther example. The name needs to be resolved to a person. The phrase about being raised needs to be resolved to a relationship between that person and a place. Even after the person is settled, a query for a birthplace and a query for a place of residence make different requests of Freebase. Once the system displays a place name, the reader has to infer what request was made unless the interface exposes the interpretation. The form of the answer gives little assistance here. A city or region looks just as plausible on the screen whether the query captured the reader’s meaning exactly or approached it through a related fact.

The database can execute either query successfully. Successful execution means the query pattern found a match. Whether that match answers the question depends on decisions made earlier, when the system chose the entry for the name, interpreted the words that describe a relationship, and put the query together. There is also a separate issue of data coverage. A database may hold a birthplace and a place of residence while lacking a fact that directly identifies where someone grew up. It can also lack a fact that the query expresses accurately.

These sources of difficulty matter because they give a reader different ways to proceed. An ambiguous name can be expanded. A question that describes a relationship loosely can be phrased around the exact fact the reader wants. A query can be checked for a qualification that disappeared along the way. In each situation, a useful explanation has to identify a decision closely enough for someone to respond to it. The authors make that access to specific decisions the point of [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/).

There are also different reasons to look at a satisfactory answer. A reader who recognizes the result may still want to confirm that the system used the intended person or relationship. Someone investigating the system’s behavior may want to see why a particular query could be constructed from that question at all. The first task can be served by showing the phrase and its interpretation side by side. The second calls for more of the machinery, including the grammar of the input, the pattern that matched it, and the form of the executable query. QUINT uses the same underlying derivation to support both purposes.

#### What earlier systems made available to inspect

The authors situate QUINT in a line of work that translates questions into formal queries. They describe systems that can execute queries over a structured resource such as Freebase or YAGO and present the matching entries directly. The paper cites earlier work on learning semantic parsers from questions paired with answers, including [Semantic Parsing on Freebase from Question-Answer Pairs](https://md.research.elamur.ai/free/en/papers/berant-2013-semantic-parsing-freebase-question-answer/).

Templates offer one way to organize the translation. A template captures a recurring form and says how to build a query for an input with that form. The paper describes earlier template-based approaches as depending on rules or patterns specified by hand. The authors identify coverage as a practical difficulty. A manually assembled inventory reflects the formulations its designers anticipated. An unfamiliar expression may fall outside it even when the knowledge base contains the information needed for an answer. QUINT obtains its inventory by looking for patterns in observed questions and their answers. Coverage still depends on which patterns the resulting inventory contains.

The paper also discusses work that places questions and parts of a knowledge base in a shared numerical representation. In the approaches the authors describe, that representation supports answering without explicitly constructing a formal meaning for the question. QUINT’s authors are concerned with what can be traced in such a system. A method can retrieve a relevant entity or graph fragment while giving a reader little basis for identifying the phrase that supplied a particular relationship. An explicit query gives an explanation somewhere to point, and a record of how the query was formed gives it a connection back to the input.

Generating multiple candidate queries is another possibility. The paper discusses approaches that build a broad set of candidates, including [Semantic Parsing via Staged Query Graph Generation](https://md.research.elamur.ai/free/en/papers/yih-2015-semantic-parsing-staged-query-graph/). The authors’ concern is that candidate generation can leave the connection between words and individual query elements underspecified for explanation. Seeing an executable candidate lets a knowledgeable reader identify the relationships it uses. It may still leave open which phrase the system regarded as expressing each relationship or how a clause supplied an entity or a type condition.

QUINT is designed around the connection that such an explanation needs. Its patterns associate the grammatical arrangement of a question with the arrangement of a query and record which words can supply values to which positions. The pattern therefore has a job before and after the answer appears. It guides construction of a candidate and provides the correspondences that let the interface describe that construction. The demonstration’s contribution is to put this kind of derivation in reach of the person who asked the question.

### The method, step by step

#### Start with an answer and work back toward the question

The system works in two phases. In the first, it has training questions and their expected answers. It uses those answers to search for plausible ways of expressing the questions in Freebase, and it learns a way to order queries. In the second, it receives a new question. The expected answer is now unknown, so it makes use of the patterns and ranking procedure prepared in the first phase. The interface shows parts of that second process, including the pattern learned from earlier questions.

A training example asks where Obama received his education. Its expected answers are ColumbiaUniversity, HarvardUniversity, and PunahouSchool. The authors illustrate the construction with ColumbiaUniversity. If a query is supposed to recover that entry from a question about Barack Obama, the way the two entries are connected in Freebase gives QUINT a starting point. A connection used to record education is a plausible source of a query about where someone was educated. The graph supplies the arrangement of entries and edges, while the wording supplies evidence about which parts of that arrangement to retain.

The system needs a representation of the wording that travels across topics. It uses grammatical relations between words, such as the connection between a verb and its subject or auxiliary. A dependency tree places those relations in a structure that can be compared across questions even when the words change. The process that produces it is [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/).

At this stage there are two structures. The dependency tree describes the question. The provisional query describes a way to reach its expected answer in the graph. QUINT establishes correspondences between the two, then removes example-specific values from the parts it retains. A learned template can consequently keep a place for a subject entity and a place for a relationship while leaving their actual values open. A new question can fit that arrangement with a different name and verb.

How QUINT learns templates and explains answers The steps in order.

#### Find a graph fragment for an expected answer

The paper identifies an individual question within the training collection using membership notation.

```
u ∈ U
```

Here `u` is a natural-language utterance, the question used in an individual training example. `U` is the collection of training utterances. The sign `∈` means that the item on its left is a member of the collection on its right. The question comes with an expected answer set, whose entries the authors call gold answers because they supply the target for training.

The search is carried out for individual answers in that set.

```
a ∈ Aᵤ
```

The symbol `a` denotes an answer entity. `A` with subscript `ᵤ` identifies the set of expected answers associated with question `u`. The membership sign says that `a` is one entry in that set. ColumbiaUniversity is the answer entity chosen for the illustrated construction. The remaining entries in the expected set can also serve as endpoints for the procedure.

QUINT first locates the question’s entity mentions and resolves them to entries in Freebase. The paper names AIDA as the system it uses for this step. Locating the mention makes it possible to associate a stretch of the input with an entity role. Disambiguation chooses the particular graph entry that fills that role. In the education question, the graph fragment shown by the authors begins at the entry BarackObama. The two tasks are closely connected, and the first is [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/).

For a given answer, QUINT looks for the smallest subgraph that contains that answer and every entity detected in the training question. A subgraph is a selection of nodes and edges from the larger graph. Its connections supply the structure QUINT will use to propose a query. If a question mentions several entities, the requirement to include them all makes the search account for each detected referent in the same fragment. The starting assumption is that a compact graph connection to the expected answer can give the system a plausible interpretation to investigate. The authors describe the construction as heuristic.

QUINT then extends the fragment with the answer’s type nodes. A type describes the category an entry belongs to. In the education example, the type nodes shown for the chosen answer are Organization and EducationalInstitution. The extension makes both available to the alignment procedure. Whether the words in the question support keeping those types is decided in the next stage. This matters because a type can be true of an answer in Freebase without being a condition expressed by the question. A fact about Columbia can help explain what sort of entity it is while contributing little to the instruction of finding where Obama was educated.

The authors call the provisional pattern constructed from this fragment a backbone query and write it as `q̂`. The `q` stands for a query and the mark above it identifies this provisional form. QUINT replaces the known answer with a variable. The known entry has already done its job as a guide to the graph structure. Making its position variable gives the resulting query a place to return whatever entry fits when the pattern is executed.

Distinct variables also replace the intermediate Freebase nodes called CVT nodes. Freebase uses these nodes to represent relationships involving several values. In the illustrated education fragment, there is a link out of BarackObama for education and a link from an intermediate point to the institution. The answer position is at the institution end. The intermediate variable lets the links meet at the appropriate value when Freebase finds a match. It serves a different purpose from the answer position, which identifies what the reader should receive.

This construction turns a particular graph match into a question the database could answer. BarackObama remains a concrete entry in the provisional education query, while the institution is open. The fragment provides an education edge, an institution edge, and possible type conditions. The next task is to determine how much of that material can be accounted for by the wording. At this point the fact that Columbia can be reached by the pattern gives a reason to consider it. Which parts make a faithful interpretation requires evidence from the sentence.

#### Align the grammatical structure with the query

QUINT uses weighted lexicons to relate phrases to the vocabulary of the graph. The paper calls the predicate lexicon `Lₚ` and the type lexicon `L꜀`. In both names, `L` denotes a lexicon. The subscript `P` designates predicates, the named relations that can connect query positions. The subscript `C` designates the categories used for typing. A weighted entry associates language with a possible graph item and gives that association a weight. References to particular entities are resolved through the entity-linking machinery.

A phrase can correspond to a graph item even when the names on the two sides have little in common. A verb can supply a relationship whose database label uses a different expression, and a category word can use a different name in Freebase. QUINT needs more than a lookup of matching strings. It has to decide which bits of the question are being used, what role each is playing, and where each graph item belongs in the provisional query. Grammar gives it an arrangement of possible word positions, while the lexicons help connect those positions to predicates and types.

The system seeks an alignment, denoted `m` in the paper. An alignment records which words or groups of words correspond to which graph items. The authors formulate the choice as a constrained optimization problem and solve it with integer linear programming. In this setting, the solver chooses among combinations of proposed correspondences, subject to conditions on what can be selected together. The aim is to pick the preferred admissible alignment. The demonstration gives the problem’s form and describes what the solver returns. The individual constraints and objective coefficients are outside the walkthrough.

A correspondence can refer to several word positions. In the later worked question about Martin Luther, the auxiliary and the main verb participate together in providing the predicate wording. The proper name occupies another position and supplies an entity. The type role follows the same general logic when a question supplies a category for the answer. Each role specifies what kind of graph item the wording can contribute, and its place in the query determines what that item will do.

Once the solver has chosen the alignment, QUINT prunes the dependency tree and the backbone query. It discards grammatical nodes that fall outside the alignment, along with graph nodes and edges that have no place in it. The paper singles out EducationalInstitution as a node dropped from the education example. The earlier graph expansion had made the type available because it is attached to the known answer. The alignment step decides what survives as part of the interpretation learned from that question.

Pruning gives the construction a way to manage information that is present on only one side. Freebase may list properties of an answer that the question never expresses. A dependency tree may have grammatical material that the current query pattern has no use for. Keeping the aligned parts leaves a structure that can be reused and makes its commitments explicit. There is also a consequence for later questions. If an expression supplies a meaningful qualification and the matched pattern gives it no role, the candidate query can lose that part of the request.

#### Store a pair of patterns for later use

After pruning, QUINT drops concrete values from the structures on both sides of the alignment. The paper represents the result as a pair.

```
(uₜ, qₜ)
```

Here `uₜ` is the utterance template and `qₜ` is the query template. The subscript `ₜ` identifies their status as templates. The parentheses group them together, and the comma separates the grammatical pattern from the query pattern. The pair retains the correspondences found during learning, so that each structure can be used with the other.

On the utterance side, `W` is a placeholder for a word in the paper’s figures. Positions can retain grammatical information such as whether a word is a verb or a noun and how it relates to another position. On the query side, the figure uses abbreviated labels for the entity, predicate, and type roles. An index shared across the two sides points to a correspondence. If the predicate is indexed by the positions of the main verb and auxiliary, those positions together provide its wording when another question matches.

The representation makes it possible to reuse structural information across subjects. The provenance shown for the Martin Luther question includes the training question about Obama’s education and a question about where Riddell Helmets are manufactured. Both concern different events and entities from those in the new question. For this template, what carries across is a grammatical arrangement in which the entity phrase has one job and the verb material has another. The predicate and entity actually used at answering time come from the new words and their available Freebase interpretations.

QUINT puts the resulting pairs in a repository and repeats the learning procedure over its training examples. The authors describe the expected effect of similar utterances contributing recurring structures as follows.

```
|T| ≪ |U|
```

`T` denotes the template repository, and `U` is the set of training utterances. The vertical bars indicate the number of elements in the enclosed collection. The symbol `≪` expresses that the quantity on the left is much smaller than the quantity on the right. The relationship describes reuse of a template by utterances that share structure. The authors give no measured inventory sizes for the two configurations in the demonstration.

The provenance display makes one aspect of that reuse visible. It associates the displayed template with examples from which it was obtained. Looking at those examples shows what kinds of earlier questions could yield the selected pattern. When the template is applied again, it supplies a form for the new query. The answers to the earlier questions explain part of the origin of that form. The response to the new question comes from executing a freshly instantiated query.

#### Apply the patterns and rank the candidates

The paper distinguishes a new utterance, `u′`, from a training example. The prime marks the question being answered by the trained system. QUINT computes its dependency tree and checks that structure against the utterance templates in `T`. Each matching pattern brings along its paired query form and the correspondence needed to fill it. If a group of positions supplies a predicate, the words at those positions in the new question provide the expression to interpret. An entity slot obtains its value from the phrase aligned with that slot.

A successful match supplies query structure and roles. The actual values for those roles can still admit alternatives. Martin Luther can refer to more than one person, and wording about being raised can support more than one plausible relationship. Predicate and type lexicons and the entity-linking component make graph items available for the slots. This is how the input can give rise to multiple candidate queries, even when the system finds a grammatical form that fits.

The ranking function is learned during training and used after candidate construction. The paper describes a random forest classifier within a learning-to-rank framework. A random forest combines decisions from a collection of decision trees. Here the learned function expresses a preference between a pair of queries in the context of the input utterance. The system uses its learned preferences to order the candidates. The ranker therefore acts on queries that have already been made available by matching and instantiation. A missing query and a query placed low in the order are different outcomes of this procedure.

Executing a candidate means asking Freebase for entries that satisfy the completed pattern in SPARQL, the formal query language used in the demonstration. In the figures, `?ANS` marks the answer position and `?VAR` marks intermediate positions. The question mark identifies a variable, and the label after it indicates the variable’s function in the illustration. Intermediate variables let different conditions share a value. In the education pattern, for instance, the connection to the person and the connection to an institution can meet through such a position. The retrieved entity appears at the answer position.

The principal answer display follows the highest-ranked query. The interface can present more of the order, with the answers from each query in a separate tab. The paper refers to the top `k` queries, where `k` is the chosen number of ranked queries to show. When the information is available, an answer can be accompanied by a picture, a short Freebase description, and a Wikipedia link. These details can help identify what the answer refers to. The explanation can then account for why that entry was returned.

#### Give the reader access to the interpretation

The brief view puts the phrase-level decisions within reach of someone who has never seen a SPARQL query. It shows how wording was interpreted as Freebase items. In the Martin Luther case, a reader can see which person the system settled on and that it read the phrase about being raised in terms of birthplace. The answer can be evaluated in light of these choices. A reader who meant a different person has a reason to revise the name, while a reader who meant residence has a reason to look for a different predicate or express the relationship more directly.

The detailed view begins with the parse of the current question. In the worked example, the verb *raised* is connected to its auxiliary, the name that acts as the subject in the passive construction, and the interrogative *where*. The matched utterance template displays the retained positions, and the query template shows the roles associated with them. The shared indices help the reader follow the verb positions into the predicate role and the nominal position into the entity role. A reader can also open the provenance display to see example questions associated with that template.

The final part of the detailed view shows the actual query and an alignment table with the Freebase items chosen for the phrases. The table makes the step from a role to its value explicit. Giving the verb phrase a predicate role describes what that phrase contributes to the query. Selecting `placeOfBirth` describes the particular contribution made in the highest-ranked interpretation. A lower-ranked query can express the same role with a different value. The reader can follow that choice through to its own answer tab.

The system can also respond when it cannot proceed with an interpretation. If it is unable to link a particular phrase to a graph item, it can identify the phrase and request revised wording. When the difficulty is the lack of an utterance template that fits, the reformulation request applies to the question as a whole. These prompts communicate what QUINT was able to determine about the failure and give the reader a different starting point for another attempt.

### Experiments and results

#### What the demonstration runs

The demonstration interface offers configurations learned from the training portions of WebQuestions and Free917. Each choice loads a repository of learned templates and its corresponding query-ranking function. The interface also allows the reader to decide whether the query should include an answer type, how many query tabs should be available, and how many decision trees should be used in the ranking component. The paper identifies these controls and illustrates individual query runs. It gives no comparative results for the two training sources or for different tree counts.

The evidence consists of questions entered into the live system, their returned entities or messages, and the intermediate steps the interface makes available. Earlier systems supply context for the design. The demonstration runs no numerical baselines against them. It reports neither a held-out split evaluation nor aggregate answer metrics such as accuracy or F1. The numerical comparison available for the main example is the order of queries for a particular input. That order measures the preference expressed by QUINT’s ranker in the example.

#### What comes first for Martin Luther

The main run asks where Martin Luther was raised. The highest-ranked query uses the Freebase entry for the theologian and the `placeOfBirth` predicate. It returns Eisleben. The authors also inspect the query at rank 2, where the predicate is `placesLived` and the answer is Saxony-Anhalt. The ordering records QUINT’s preference for the birthplace interpretation of that wording. Whether the result fits depends on what the reader intended by asking where the person was raised.

Query ranks for the Martin Luther question over Freebase QUINT puts the birthplace interpretation ahead of the residence interpretation.

**The numbers**

| System or setting | Query rank |
| --- | --- |
| QUINT birthplace query, Eisleben (this paper) | 1 |
| QUINT residence query, Saxony-Anhalt | 2 |

The answer tabs are useful here because they associate the place names with distinct derivations. The reader can inspect the predicate that brought a place into the results. The difference between Eisleben and Saxony-Anhalt can then be understood as the effect of asking Freebase for a different kind of connection to the same person. The displayed ordering concerns the candidate queries for this one input and gives no general preference between birth and residence as interpretations of similar questions.

The authors also illustrate what happens when the original wording is made more explicit. Naming Martin Luther King gives QUINT a more specific person to find, and the run returns Atlanta as his birthplace. Keeping the theologian as the subject and asking explicitly where he lived returns Saxony-Anhalt. The expanded name affects the evidence for the entity choice. The wording about living affects the evidence for the relation. The original explanation tells the reader which of those choices to examine before changing the question.

The detailed display also explains the structure shared by the interpretations. The parser produces a tree for the input, the template recognizes the arrangement of the name and verb phrase, and the query pattern assigns them their roles. The provenance display illustrates that the arrangement was available from questions in other subject areas. The concrete link to a birthplace or residence is made for the new question. This is what lets the demonstration show both transfer of a reusable pattern and variation in the relationship chosen when it is applied.

#### When a historical interpretation is available farther down

A more explicit qualifier appears in the question about Germany’s former currency. QUINT places the query returning Euro first. The authors trace this answer to an alignment that fails to give *former* an effective role and to a query using `currencyUsed`. The predicate represents a different request from the one made by a question about historical currencies. The answer is therefore unsuitable even though it comes from executing a well-formed query.

Among the top-5 queries for this input, the authors find one that applies `currencyFormerlyUsed`. The historical predicate retrieves DeutscheMark, GermanRentenmark, and GermanPapiermark. The paper gives the cutoff of the inspected group and leaves the historical candidate’s exact position within that group unspecified. The evidence supports two observations about the run. The first candidate misses the explicit qualification, and the system has generated another candidate that captures it.

This case shows what becomes visible when each query has a separate display. A list of currency names would leave the reader to infer whether the alternatives came from distinct relationships, different database entries for Germany, or some other part of the construction. Inspection of the queries makes the source of the difference ascertainable. It also shows that the candidate generator reached a usable interpretation even though the ordering made a different one the main answer.

#### When the requested category restricts the result

The question about Michelle Obama’s college attendance demonstrates the option to put an answer type into the query. QUINT associates *college* with the Freebase type `University`. Including that type gives the desired answer set of HarvardLawSchool and PrincetonUniversity. A question about where she studied would describe a broader range of institutions and could include a high school. In the college question, the type condition expresses the narrower category at the point where the query identifies its answers.

The paper gives the desired output for the constrained query and says that the condition is necessary to obtain it in the example. It leaves the complete set from the unconstrained execution unspecified. The result accordingly documents which entities the constrained version returns and the role of a particular restriction. It supplies no measure of how often enabling the same option changes, improves, or degrades the answers to other questions.

The type example also shows what the lexicon is doing for a reader of the explanation. The word in the question is *college*, while the type used by the query is `University`. Their correspondence is an interpretation the system has made. Seeing that correspondence lets someone check the actual scope of the constraint alongside the list of institutions. Merely seeing the names of the institutions would leave the use of the category implicit.

#### When the system detects a gap or picks a wrong referent

The authors show two difficulties that arise while connecting phrases to graph entries. In a question about countries belonging to the European Union, they use the expression *euro-union*. QUINT cannot interpret it because the relevant lexical resources have no entry for it. The response identifies the problematic phrase and requests a reformulation. That request gives the reader a particular span to revise.

For a question about the classification of the English language, QUINT makes a link that is valid as a graph reference but unsuitable for the request. It treats *English* as a reference to England. The resulting interpretation can be inspected in the brief view. The authors suggest expanding the wording to *English language* as a possible repair. They present this as a possibility, so the original error and its diagnosis are the demonstrated observations.

The question about Germany’s capital during the forties produces a different message. QUINT reports that it has found no matching template and asks the reader to reformulate the question. The message concerns the grammatical structure available to the template matcher. The paper does not identify a single problematic phrase in this case. Together the runs show how the interface can distinguish a phrase it could not interpret, a phrase it interpreted incorrectly, and a question for which it could not construct a query through a learned pattern.

### What the ablations show

The paper reports no systematic ablation study. It offers a worked comparison involving an answer-type condition, comparisons among queries produced for the same input, and case analyses of failures and reformulations.

#### Carrying an answer type into the query

The Michelle Obama example is the closest the demonstration comes to testing the effect of a specific query component. The wording, the intended person, and the request about attendance provide the context for examining what changes when an answer-type requirement is included. The type is attached to the answer position. Being reachable through the relevant connection to Michelle Obama is one part of matching the query, and belonging to `University` is another. The reported result follows from requiring both.

This comparison shows the value of separating the interpretation of a phrase from its use in query execution. The system can identify a category word and associate it with a graph type, while the query setting determines whether the condition has a role in selecting the answer. The reader can inspect the query to see whether the identified category is actually enforced. In the demonstrated case, the authors attribute the desired set to enforcing it.

The evidence concerns a single question and a specific type mapping. A wider effect would depend on how frequently questions express a category, how accurately that category is mapped, and what type information Freebase attaches to potential results. A mistaken mapping could impose the wrong restriction. An answer with incomplete type information could fail to satisfy a condition even if the relationship is accurately recorded. The college example isolates a case in which the constraint serves the requested scope. It leaves these other conditions untested.

#### The alternatives show what the system was able to generate

Inspecting multiple queries for the same input holds the wording fixed. For Martin Luther, a reader can compare two queries that keep the theologian as the referent and give the verb phrase different interpretations. Each predicate yields the answer that follows from its own relationship. The comparison identifies a particular source of the change in the output. It also shows how a reader can recognize an interpretation that better suits their purpose even when the ranker prefers another.

The currency case makes it easier to judge the selected query against the wording, because *former* expressly asks for a historical relationship. The query that returns Euro misses that requirement. Since a query with `currencyFormerlyUsed` is already present, the top result cannot be explained by the absence of every suitable candidate. The walkthrough thus makes it possible to diagnose a selection problem alongside the omission in the leading query’s alignment.

This observation has a narrower scope than a test of ranking methods. The paper shows the assembled queries and their positions in the displayed examples. It leaves open how the order would change with another ranking procedure, another set of decision trees, or a different candidate inventory. And although a reader can tell that the weaker interpretation came first in the currency question, the example provides no account of the individual decision-tree judgments contributing to the preference. Candidate inspection identifies the error in the outcome and the interpretation available as an alternative.

#### Reformulation can test a particular part of the interpretation

The Martin Luther reformulations intervene at the input. Making the name more specific and asking explicitly about residence are ways to change different pieces of evidence. The resulting answers show that the system can respond to both kinds of edit in the instances the authors describe. Because each edit has a visible motivation in the original derivation, the walkthrough also explains why a reader might try it. The approach depends on the reader being able to recognize a mismatch and supply wording the system can use.

The comparison between *euro-union* and *English* clarifies where that recognition comes from. The first input causes the system itself to flag a span. The second completes the connection and generates a graph item the reader can inspect. Seeing England gives the reader evidence that the system understood the word as a country reference. Spelling out the language is meant to bring a different referent into consideration. The paper documents the diagnosis and proposes the revised wording, leaving the success of that particular repair open.

The template mismatch illustrates a case where the interface can give less targeted guidance. When none of the learned grammatical patterns fits, there is no matched template to inspect for a misplaced predicate or entity. The system can report that it had no applicable pattern. It gives the reader room to try another formulation, but the message itself does not point to a phrase whose replacement would establish a match. The cases differ in the amount of information the system has available when it encounters the difficulty.

The provenance example offers another kind of inspection. Seeing the education and manufacturing questions associated with the template gives a reader concrete evidence about its reuse across subject matter. It explains a particular structural match. A comparison of alternate repositories, or an experiment tracking how template coverage changes with training examples, would address a larger question about learning. The walkthrough establishes that the connection between examples and the matched pattern can be displayed in a running system.

### Limitations

#### Limits the authors identify

The authors identify uncertainty in language, gaps in the knowledge base and lexical resources, and mistakes in the answering procedure as reasons a result can disappoint. An explanation makes some of those reasons visible. Its value depends on what the system had a chance to observe. If there is a graph entry for a phrase and the system picked the wrong one, the displayed entry can expose the discrepancy. If Freebase lacks a relevant fact, the derivation can show what was queried, while the scope of the missing data can remain uncertain.

Dependence on learned structures creates a coverage limit. A question can be meaningful and concern facts the graph represents, yet fail to fit any pattern in the repository. The authors give an example involving the capital of Germany during the forties. Their diagnosis is that the form has no available match. The message therefore explains a failure to derive a query using QUINT’s current patterns. The existence of a suitable fact in Freebase is a separate question.

Lexical coverage presents a related problem at a different point. Even with a useful grammatical structure, a critical phrase may lack a mapping that fills its role. The problem is visible when QUINT can identify a phrase it could not interpret. On other inputs, available mappings can lead to an incorrect choice whose result still looks coherent. Entity links to the wrong referent and predicates that express a nearby relationship are both capable of producing queries the database can execute. The reader then has to inspect an answer or its explanation to recognize what happened.

The authors also identify omissions and choices that can occur during query construction and ranking. The alignment of a candidate can lose a temporal qualifier, an answer type can be needed to express the right category, and a suitable candidate can appear below a weaker one. These are different failures because the missing part may need to be supplied by the template, the mappings, a query condition, or the ordering of candidates. Exposing the derivation helps identify which possibility has support in an individual run.

The reformulation prompts are a limited form of interaction. The system can flag certain failures, and the reader can choose new wording. The authors frame a system that asks about parts of a question it is uncertain about as a future direction. They also suggest that reformulations could help improve lexical resources or other parts of the answering process. The walkthrough shows a request for revised wording and examples of revised inputs. Learning automatically from responses or conducting a dialogue to settle open interpretations remains outside its demonstrated capabilities.

#### Limits of the evidence and of the explanation

The demonstration provides a record of individual runs. It names the datasets used to train the available configurations but leaves held-out effectiveness, the relative merits of the configurations, and the prevalence of each failure unmeasured. The article’s characterization of QUINT as a strong answering system comes from the authors’ account. The results shown here establish that the demonstrated behavior occurs and that relevant intermediate choices can be displayed. They provide no numerical basis for comparing overall answer quality with the earlier approaches discussed in the paper.

The explanation interface also has two different standards of success. One is whether it can display the parse, template, mappings, and query used in a run. The authors demonstrate that capability. The other is whether access to those displays makes readers more accurate in judging answers, more effective at reformulating questions, or appropriately more confident. Those outcomes would require observing users and comparing their behavior under specified conditions. The paper motivates such benefits through examples and leaves the behavioral effects unmeasured.

There is a boundary within the derivation itself. The display can show how the wording supplies a semantic role, which object or predicate fills that role, and what query was executed. The ranking preference also affects why one answer is presented first, but the detailed view described in the paper stops short of explaining the individual decisions of the ranker. For the currency case, a reader can establish which predicate would have been preferable and find the candidate containing it. Establishing why the learned function put that candidate lower would require further evidence about the ranking process.

The paper also leaves parts of training underspecified for reproduction. The description identifies the use of a small graph fragment, answer types, weighted lexical resources, an alignment solved by integer linear programming, and pairwise query preferences learned through a random forest. These details establish the roles of the components. They leave the full optimization formulation and the detailed ranking specification open. The walkthrough can therefore guide an understanding of how an example moves through the system without giving enough information to reproduce every intermediate selection from the description.

A known answer is an informative training signal, with limits that follow from the construction. Reaching the expected entity through a compact graph fragment supplies evidence for a possible query. Distinct queries can agree on that entity while expressing different conditions. The later alignment uses the words of the question to judge which elements to retain, so the graph match and the linguistic evidence both matter. The demonstration gives no independent measurement of how often the query inferred from a known answer captures the intended meaning. Template provenance shows where a pattern came from. Verifying that interpretation would call for a separate comparison.

For the same reason, an executed query can be faithfully explained even when its answer is factually inadequate. A reader might agree that the proper entity was chosen and that the query expresses the desired relationship. The answers still depend on Freebase’s recorded facts. The explanation supports checking the translation and locating where the retrieved results came from. It cannot by itself establish that the graph contains all relevant facts or that the facts are correct. Pictures and descriptions help identify an entity in the response, which is a distinct task from validating the information used to return it.

Finally, the examples depend on the representation available in Freebase. The system uses its entity entries, type labels, and intermediate structures for relationships with several values. The paper describes knowledge-base question answering more generally and mentions YAGO as another resource in the field. The live walkthrough establishes behavior with Freebase. An implementation over a different knowledge base would face that resource’s categories, relations, and ways of representing connections. How much of the training procedure, template inventory, and phrase mapping would carry across remains untested in the demonstration.

### What came after

A later survey cites QUINT in its treatment of explainable natural language processing. Its documented connection to the demonstration is the survey citation. QUINT’s contribution to that subject is a concrete system in which a reader can inspect decisions made during answering, down to the database item assigned to an individual phrase. The short explanation makes the interpretation readable without requiring familiarity with query notation, and the detailed explanation lets a reader trace that interpretation through the template and query. [A Survey of the State of Explainable AI for Natural Language Processing](https://md.research.elamur.ai/free/en/papers/danilevsky-2020-survey-state-explainable-ai-natural/)

The citation establishes that QUINT appears in the later survey. It leaves the survey’s treatment of the individual mechanisms open, including the role it assigns to the template provenance display, the inspection of lower-ranked queries, and the reformulation prompts. Those mechanisms are documented by the QUINT demonstration itself. Its examples show the level at which the provenance of an answer can be made inspectable: a residence relationship can be traced to the same verb phrase as a birthplace relationship, and a type condition can be traced to the word that narrows the intended answer.

## Cite

Cite as Abdalghani Abujabal, Rishiraj Saha Roy, Mohamed Yahya and Gerhard Weikum. 2017. QUINT: Interpretable Question Answering over Knowledge Bases. Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing: System Demonstrations.

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

```bibtex
@inproceedings{abujabal2017quint,
  title = {{QUINT: Interpretable Question Answering over Knowledge Bases}},
  author = {Abdalghani Abujabal, Rishiraj Saha Roy, Mohamed Yahya and Gerhard Weikum},
  booktitle = {Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing: System Demonstrations},
  year = {2017},
  doi = {10.18653/v1/d17-2011},
  url = {https://doi.org/10.18653/v1/d17-2011}
}
```

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