Question Answering on Knowledge Bases and Text using Universal Schema and Memory Networks
Paper · 2017 · Rajarshi Das, Manzil Zaheer, Siva Reddy et al.
Summary
A question can ask for more than a database relation tells us. A list of US presidents can supply candidates for a question about the first African American president, while web sentences can describe the distinction that identifies the answer. A system that relies on fixed database predicates may struggle with that extra condition. A system that relies on text alone has to find and interpret a useful expression in prose. The authors investigate whether question answering improves when the system can consult both kinds of evidence during the same search for an answer.
The paper combines universal schema with a key–value memory network. Universal schema gives database facts and passages of text a common structure organized around pairs of entities. The memory network uses that structure to decide which facts matter to a question. Each fact has a key that describes the relationship and a value that represents the entity the fact could help identify. A Freebase key describes a subject and a named relation. A text key preserves the surrounding sentence while leaving a blank where the answer entity appeared. Both become vectors that can be compared with the question. The system uses the resulting scores to update its representation of the question and then ranks entities as possible answers. It learns from questions and their answers.
The evaluation uses SPADES, a benchmark of web sentences with an entity removed. On its test split, the joint system scores 39.9 F1, compared with 38.5 for the Freebase-only system, 26.6 for the text-only system, and 38.6 for a linear ensemble of the two separate systems. The earlier graph-matching baseline scores 31.4 test F1. The authors report a gain of 8.5 F1 points over that baseline. The comparison with the Freebase-only system is especially informative because SPADES was constructed from sentences whose entities already have a connection in Freebase.
The joint system also has an advantage when the authors restrict how many Freebase facts it can consult per entity at test time. Individual questions illustrate why text can help. A sentence may express an intention, a ranking, or an answer condition that takes more than a named database relation to describe. The development results also show that the joint system loses some answers that a source-specific system gets right. The experiments establish a benefit from sharing memory on this benchmark, alongside a remaining difficulty in choosing which evidence to trust for a particular question.
Deep dive: Question Answering on Knowledge Bases and Text using Universal Schema and Memory Networks
How universal schema and memory networks combine Freebase facts with web sentences to answer entity questions, and what the SPADES experiments show. · about 37 minutes to read
The problem and its context
Different sources make different parts of a question easy
The paper studies a specific answering task. The input is a sentence with a blank and at least one entity still visible. The output is the entity that belongs in the blank. An entity is a particular person, place, or other identifiable item. A visible entity gives the system a starting point for looking up evidence, and the wording around the blank tells it what kind of relationship to look for. The question about a US president, for example, supplies the country and asks the system to identify a person from a description of a presidency.
In a knowledge graph such as Freebase, a fact connects a subject to an object through a named relation. A database organized this way makes recurring questions tractable because the same relation can be applied across many entities. It also gives a system a way to combine conditions. If a family relation supplies possible parents, a separate property can narrow those candidates to a father. A symbolic query can make both conditions explicit and require them to hold together.
That advantage depends on coverage. A database may omit the relevant connection, or its available relations may express the question only indirectly. A presidency relation, for instance, leaves the historical qualification in the question to be resolved separately. The authors distinguish the incompleteness of a database’s recorded facts from the question of what its relational structure can express. The former concerns which entries the database contains. The latter concerns how readily the available predicates can represent distinctions that people make in ordinary language.
Web text can supply information at that finer level of description. A sentence can combine a person’s office, a historical distinction, and the circumstances of an event without a schema designed for that combination. It can also report what someone intended or threatened to do. That flexibility introduces a second problem. Similar facts can appear in very different expressions, and a sentence that mentions two entities can connect them in several ways. The system still has to work out which connection matters to the question.
These strengths motivate different ways of using the sources together. Text might supply a fact missing from the database, or it might express a present fact in wording that makes it easier to recognize. A database relation might help by identifying plausible entities even when additional wording is needed to choose among them. Those are different kinds of assistance. Only the first strictly requires a missing database fact. The paper’s architecture gives the question access to both sources so the learning procedure can discover which signals are useful in the benchmark.
From interpreting a question to locating an answer
The authors trace database question answering back to early systems such as BASEBALL. In the line of research they describe, semantic parsing converts a natural-language request into a structured representation of its meaning. This representation can be used to query a database. Earlier learning approaches used examples pairing questions with logical forms. The paper also points to work that expanded the approach to Freebase using supervision from questions and their answers. This distinction matters because a recorded answer is easier for an annotator to supply than a detailed specification of how the system should obtain it. Semantic Parsing on Freebase from Question-Answer Pairs
The other tradition looks for answers in text. The authors trace it through early encyclopedia-based work, the availability of web material, and shared evaluations that helped make text-based question answering a research task. They describe a later expansion in reading comprehension, supported by datasets such as SQuAD. Those tasks brought large collections of examples for learning how questions relate to passages. Their objectives can differ from identifying a known entity. A reading task might ask for an expression from a passage even if the answer has no corresponding Freebase entry.
The paper describes many earlier systems as using one source to improve inference on the other. Text could supply features that help select an answer from a database. Structured knowledge could enrich a system that answers from text. The common feature is an asymmetry between the source where answering primarily takes place and the source that helps it. The architecture in this paper places examples of both kinds of evidence inside the mechanism that selects an answer. One earlier approach in the first group is Question Answering on Freebase via Relation Extraction and Textual Evidence.
A second line of work combined curated facts with results from open information extraction. Open extraction turns passages into relation triples. The resulting items are convenient to store alongside database triples, but an extraction represents a selected part of the sentence. Surrounding words can carry the condition that makes an item relevant to a question. This paper keeps those words in its text keys. The earlier direction is exemplified by Open Information Extraction from the Web.
The paper identifies Gardner and Krishnamurthy’s work as its closest contemporary comparison. As the authors describe it, that approach generates an open-vocabulary logical form and ranks candidates using the likelihood of finding them with that form in Freebase and in text. The two projects share the goal of consulting both sources. Their approaches give different roles to an explicit representation of the question. In the memory network, a question vector and successive updates supply the signal for evidence selection. The question–answer pairs used for training give no annotation of the intermediate logical form.
Why use universal schema and memory together?
One established way of connecting a database to text is distant supervision. A relation recorded for an entity pair supplies a signal for finding text that might express it. The same pair can occur in sentences about different subjects, however, and the same fact can appear in a variety of surface forms. That makes matching a text pattern to a single database predicate an imperfect route to interpreting evidence. The paper places its work in the context of distant supervision for relation extraction.
Universal schema offers a different organization. Its rows identify pairs of entities, and its columns can describe either database relations or textual expressions connecting those entities. The shared rows make a database fact and a sentence comparable as observations about the same pair. Earlier universal schema work learned representations from the matrix and used them for relation extraction and database population. The paper builds on a variant that encodes sentences as vectors. This lets a textual relation have a representation based on its words even when another sentence expresses the relation differently.
Memory networks contribute the answering mechanism. Their external memory holds information in slots that the network can consult. The paper describes previous use of such slots for database triples and for material from reading passages. In the key–value version, the part used to recognize relevant evidence can differ from the part returned by that evidence. A question can match wording that describes a relationship, while the memory returns a representation of the entity associated with that relationship. This separation is particularly useful in a fill-in-the-blank task, where the answer should emerge from a lookup whose description can itself contain a blank. Key-Value Memory Networks for Directly Reading Documents
The preceding memory-network work supplied examples of how to handle each source. Universal schema supplied a way to present both kinds of facts to the same answering mechanism. The contribution examined here is their combination. A database triple can keep its named predicate and a sentence can keep its linguistic context, while both take part in the same operations for scoring evidence, updating the question context, and choosing an entity.
The method, step by step
From a blank to a set of facts
The procedure starts with a sentence, a blank, and the entities present in the sentence. Imagine the question about the first African American president. The mention of the United States gives the system an entity it can use to select candidate memory slots. The words describing the president shape the comparison with those slots. These two uses of the input are distinct. Entity membership determines which facts are eligible to be consulted. The question representation determines how strongly each eligible fact contributes.
For each eligible slot, the system reads the key to estimate relevance and takes the corresponding value as the information returned from that slot. A stored Freebase fact connecting a country and a president can provide a useful value. A sentence about the same president can provide the same entity value through a key that includes the historical qualification. The two keys can match different parts of the question even though they point to the same entity. Alternatively, competing slots can return different entities. In that case the learned scores affect which candidates are supported by the memory read.
A read produces a weighted combination of entity vectors. The system uses it to update the current representation of the question. It can then read the memory again using this revised context. After the final update, it compares that context with the candidate answer embeddings. The answer is the entity whose embedding has the largest inner product with the final context.
From a question and shared memory to an answer
The steps in order.
Representing the database and the sentences
The universal schema matrix is an organizing view of the evidence. A row stands for an entity pair. A column can represent a Freebase predicate or a textual relationship. An observed cell says that the relation or textual expression was observed for that pair. The architecture gives these observed entries a memory representation. An empty cell in the schematic matrix is therefore different from a memory slot carrying actual evidence. The paper’s architecture does its lookup over observed facts.
The key–value design makes the direction of each lookup important. A database fact begins as a triple.
(s, r, o) ∈ K
Here s is the subject entity, r is the database relation, and o is the object entity. K denotes the knowledge base, and ∈ says that the ordered triple belongs to it. The ordering identifies the entity from which the relation starts and the entity the fact returns.
The subject and relation each receive a learned vector. In the paper’s notation, the dimension of each is d. The key concatenates the subject vector and relation vector. The value is the object vector. Using a different typeface for vectors makes explicit a distinction the paper sometimes leaves implicit.
(k, v) = ([𝐬 ; 𝐫], 𝐨)
k is the key, and v is the value. 𝐬, 𝐫, and 𝐨 are the embeddings of s, r, and o, respectively. The square brackets and semicolon denote concatenation, so the two vectors occupy adjacent parts of a single key. The equality defines the ordered key–value pair. The resulting key lies in a space of dimension 2d, and the value lies in a space of dimension d.
An embedding here is a vector that the system can compare with other vectors using arithmetic. The database key has separate components for the entity and the relation, so using the same relation with a different subject changes part of the key. Using a different relation with the same subject changes the other part. The object stays outside the key. This lets the description of what to seek and the information that the slot returns play distinct roles.
The database-only experimental setting includes an inverse slot for every triple as well as a slot in the original direction. An inverse relation gives the system a way to use the fact when the entity named as the original object is the starting point for the question. Its key is constructed from that entity and the inverse of the original relation. Its value represents the original subject. The inverse slot is another way to look up an observed connection, with the original endpoints exchanging roles.
Textual evidence uses the same idea of a starting entity and a returned entity, but its relationship lives inside a sentence.
(s, [w₁, …, arg₁, …, arg₂, …, wₙ], o) ∈ T
T denotes the textual fact collection, and ∈ identifies a fact belonging to it. s and o are the entities chosen as the subject and object for this fact. The brackets enclose the sentence sequence. w₁ and wₙ indicate its endpoints in the paper’s schematic notation, and n indexes the final position. The ellipses stand for intervening material. arg₁ and arg₂ mark the positions of the mentions associated with s and o. This notation singles out their roles in the memory entry. The sentence around them remains available to the encoder.
The textual key replaces the first marked argument with the subject entity and the second with the blank token. The surrounding words stay in the sequence. The paper then uses the object embedding as the value, just as it does for Freebase.
x = [w₁, …, s, …, blank, …, wₙ]
x names the textual key before it is encoded as a vector. w₁ and wₙ again indicate the sequence endpoints and the ellipses indicate material between the displayed positions. s is the entity placed at the subject position. blank is the special token at the object position. The brackets enclose the sequence, and the equality defines the input sent to the encoder.
This procedure explains why a textual fact is more than a phrase between two names. Words before or after either entity may express what the sentence says about them. In a question involving a ranking, the qualifier that specifies the rank can therefore affect the key even when it falls outside the space between the entities. A sentence can also generate separate memory entries for different entity pairs. Each entry supplies its own focus and returned entity, while much of the wording can be shared.
The blank in a text key has a role similar to the blank in the question. It marks the position of an entity described by the context. Text keys can therefore provide evidence by matching contextual language, even when the answer entity cannot be mentioned by name on the question side. Keeping the answer entity in the value also allows structured and textual facts that point to it to use the same kind of output. They can both contribute to the weighted sum without any conversion from sentence spans to database rows during that calculation.
Putting keys and questions in the same space
The paper uses a bidirectional long short-term memory network, or LSTM, to encode a text key. An LSTM processes a sequence while maintaining a state that changes as it reads. In the bidirectional arrangement, one part reads in the original order and another reads in reverse. The final state from each direction contributes to the vector. This gives the fixed-size key a representation drawn from both readings of the sentence.
k = [LSTM→(x) ; LSTM←(x)]
k here is the encoded textual key. x is the prepared sentence sequence. LSTM→ and LSTM← denote the last states of the forward and backward LSTMs applied to that sequence. Each state has dimension d. The brackets and semicolon concatenate them. The equality defines the resulting key of dimension 2d.
For text, the factual description gets its representation from the entire prepared sequence. For Freebase, it comes from concatenating an entity vector and a relation vector. The two constructions have the same output dimension, which is necessary for the same context vector to score them. Their coordinates must also become useful for comparison across sources. The training procedure and the adjustments described below matter because equal dimensions alone leave the scales and distributions of the two kinds of keys free to differ.
The question encoder uses the same kind of bidirectional sequence representation. It takes the input words, including the blank, and returns a question vector of dimension 2d. This vector is the first context used for reading memory. In the paper’s notation, q can mean either the written question or its embedding. In the update rule it denotes the embedding whose coordinates can be compared with the keys.
c₀ = q
c₀ is the context before any memory read, with the subscript 0 marking its initial position in the sequence of updates. q is the vector produced by encoding the question. The equality sets the initial context to that vector.
This initialization gives the first lookup a clear interpretation. At that point any preference among eligible facts comes from the representation of the question and the stored keys. After a read, it can also reflect entities supported by earlier evidence. The later context still includes a transformed contribution from the preceding context, so a lookup does not have to rely solely on the most recent memory return.
Scoring facts and updating the context
The authors restrict the memory to slots containing at least one entity from the question. This is the first filter on the evidence. It keeps the system from comparing every question with the entire collection of stored facts. In the presidency example, the eligible set consists of memory entries containing the country mentioned in the question. Within the selected set, the same scoring operation applies to Freebase keys and text keys.
The score for a key is the dot product between that key and the context from the preceding iteration. A dot product sums products of corresponding vector coordinates. It provides the degree of support assigned to that slot in the memory read. The paper’s update uses this score directly as a multiplier on the value vector.
cₜ = Wₜ cₜ₋₁ + Wₚ ∑₍ₖ,ᵥ₎∈M ((cₜ₋₁ · k)v)
t identifies the current update, cₜ is the context it produces, and cₜ₋₁ is the preceding context. M denotes the memory considered for the question. ∑ adds a contribution for each eligible pair (k, v) in M, where k is the fact’s key and v is its value. The centered dot takes the inner product of cₜ₋₁ and k. Parentheses group that scalar score before it multiplies v. Wₚ projects the summed values into the context space. Wₜ is the weight matrix applied to the preceding context at the current hop. The plus sign adds the transformed context and projected memory return, and the equality sets their sum as the next context.
The dimensions explain the need for the projection. Every term in the sum is a scaled object vector with dimension d. The context that will be compared with the keys has dimension 2d. The projection lets the memory return enter that space. The other term retains information from the preceding context in a transformed form. The two terms thus carry different information into the next read, one from the preceding state and one from what the keys just selected.
The attention weights in this equation are dot-product scores. The expression contains no softmax over the slots, so the weights in the stated update should not be read as probabilities. The scale of a source’s key vectors can influence the scale of its contributions, as can the number and contents of the eligible facts. This helps explain why the authors address how textual and database representations are distributed during joint training.
Repeating the update allows the system to change what it emphasizes. A first read could return information that makes a different key score highly on a subsequent read. This is what the paper means when it describes the procedure as allowing multiple hops. The mechanism expresses a sequence of vector updates. It gives no explicit logical operator for an operation such as taking the largest item from a set, and the reported memory filter is still defined using the entities in the question. A succession of reads over that selected memory should therefore be understood separately from traversing an unrestricted chain of database edges.
Ranking the answer entities
After the last update, the paper chooses the entity whose representation has the highest inner product with the final context. A compact way to write the selection rule described in the paper is the following.
qₐ = arg maxₑ∈E (cₜ · uₑ)
qₐ is the answer entity. E is the set of possible answer entities, and e is a candidate in that set, as indicated by ∈. arg max returns the candidate at which the score is greatest. cₜ is the final context, uₑ denotes the representation of candidate e used for scoring, and · denotes their inner product. The equality identifies the selected entity with that maximizing candidate. The paper describes this choice over all 1.8M entities in the dataset.
The answer-scoring description is brief about how its vectors are made compatible. It specifies d-dimensional entity vectors in memory and a 2d-dimensional context for the attention update. An inner product at selection time requires compatible dimensions. The notation uₑ identifies the representation used at that stage without assuming an additional output projection or a particular way of sharing parameters. The paper explicitly specifies the projection of memory values in the update, while giving the final decision in terms of its inner-product criterion.
The distinction between eligibility and prediction matters here. An eligible slot is one the network can read for this question. The entity at the end of the procedure is selected from the dataset’s answer inventory. The ranking is therefore described as a separate step, with the memory providing evidence that shapes the context it uses. This differs from choosing the object of the highest-scoring slot directly. Multiple slot values can influence the final vector, and part of that vector also depends on the question itself.
Building the memory and training the system
The structured source is Freebase. The textual source is ClueWeb, with the actual sentences for textual fact memory drawn from the SPADES training split. SPADES supplies a cloze sentence and its answer. The authors recover the sentence for memory construction by inserting the answer into its original blank. They then use pairs of entities in the recovered sentence to construct textual facts. The blank made for any particular text key marks the object of that memory fact. Its role is defined by the selected pair, so it need not correspond to the same argument position as the blank in the original question.
The resulting memory contains sentences observed during training, encoded so their facts can support later questions. This is distinct from supplying the original held-out sentence with its missing entity restored. The standard training, development, and test splits separate the sources of these roles. The paper also uses a larger collection of ClueWeb sentences for embedding initialization. That collection and the textual evidence stored in memory are separate uses of web text.
Question–answer pairs provide supervision for the whole answering process. The known answer supplies the target for learning which vector comparisons lead to a successful prediction. The training examples do not label a fact as the required evidence or specify a symbolic expression for retrieving the answer. The memory operation is differentiable, so its learned representations can be adjusted as part of training for entity selection. The paper’s account emphasizes the architecture and settings, with less detail about the final objective and scoring parameterization.
Word, entity, and relation embeddings and the LSTM states use d = 50. Word and entity embeddings start from word2vec representations trained on 7.5 million ClueWeb sentences containing entities in the Freebase subset used for SPADES. Network weights use Xavier initialization. The initial word and entity vectors therefore receive information from co-occurrences in web text even in an experiment whose external memory is restricted to Freebase. Distributed Representations of Words and Phrases and their Compositionality
For each question, the implementation considers up to 5k Freebase facts and 2.5k textual facts. These limits apply to the evidence considered per question, while the 1.8M figure describes the answer-entity inventory. The authors use a training batch size of 32. They limit the gradient’s 2-norm to 5 to control updates when gradients become large. The optimizer is Adam with a learning rate of 1e-3, β₁ = 0.9, β₂ = 0.999, and ε = 1e-8. The beta parameters control the moving estimates used by the optimizer, and epsilon is its numerical stability term. Adam
Joint training starts from the parameters of an already trained Freebase-only system. The authors describe this initialization as crucial. The joint system thus starts with an answering procedure that has learned how to use database slots, then learns with both sources in memory. The paper also reports a minibatch adjustment for textual facts. The authors normalize their mean and variance and then scale and shift the representations to match the corresponding statistics of the Freebase facts.
That adjustment has a practical connection to the scoring rule. Facts from different encoders compete through the same dot product, so systematic differences in scale can influence their scores before a distinction in relevance is learned. Matching the statistics gives the textual representations a scale comparable to that of database representations within a minibatch. The authors report that the adjustment stabilized training and improved final performance. The paper presents this as part of the working configuration, with no separate score for its contribution.
Experiments and results
What SPADES measures
The benchmark treats an entity removed from a web sentence as the answer to a fill-in-the-blank question. The authors report 93K sentences and 1.8M entities for SPADES and use its standard train, development, and test splits. ClueWeb provides the source sentences, and Freebase provides the structured evidence. A test question concerns an occurrence in natural web text, while the text memory is built from the training sentences. Success means recovering the designated entity from the question and the information available to the system.
The benchmark choice follows from the kind of answer and the evidence comparison the authors wanted. Many text benchmarks admit answers that are passages or expressions outside the entity inventory. Those examples would require a different output procedure. The authors give SQuAD as an example of a large reading benchmark, reporting over 100k questions, and point out that answer formats and entity coverage can make such data favor text in this comparison. On the other side, they describe the questions in WebQuestions and WikiMovies as answerable from their respective databases. Such a setup would put less pressure on a system to recover missing information from sentences.
SPADES provides the required combination of natural wording and an entity target, with an important qualification. It includes sentences whose entities are connected through at least one Freebase relation. That selection favors examples with some structured coverage, even when a particular question asks for a condition that a related triple fails to express. The benchmark is therefore suited to testing whether text helps alongside a relevant database. It gives less direct evidence about questions whose entities lack any recorded Freebase connection.
The authors use F1 to report performance. F1 ordinarily combines precision and recall, giving higher values to systems that do well on both. The paper describes returning an entity and labels the benchmark results as F1 on each split. Its experimental account gives the scores without a detailed definition of the averaging procedure. The figures below accordingly retain the paper’s metric label.
Systems compared
The Freebase-only system, labeled Only KB, reads database facts. Its separate inverse slots make a connection usable from either argument position. Only Text reads the sentence-based facts constructed from SPADES training data. Both settings use memory lookups for answering, so their comparison asks how each evidence collection supports that answering procedure in this benchmark.
Ensemble combines the scores of those source-specific systems with a linear rule. It has access to signals from each evidence source after the individual systems have made their own assessments. UniSchema, the paper’s joint system, mixes the evidence earlier in its computation. Freebase and textual keys can both contribute to a context update before the system makes the final ranking. The distinction between these settings is where the evidence from the sources can first affect a shared decision.
The previous benchmark result comes from Bisk and colleagues. The authors describe that baseline as using graph matching to convert a natural-language question into a Freebase query. It gives a reference point for the system’s overall performance on SPADES. The comparisons among Only KB, Only Text, Ensemble and UniSchema address a narrower question, since they examine different ways of handling evidence within the authors’ own study.
Development and test scores
Answering systems on the SPADES test split by F1
UniSchema ranks first on the test split, ahead of the ensemble and either single-source system.
The numbers
| System or setting | F1 |
|---|---|
| Bisk et al. | 31.4 |
| Only KB | 38.5 |
| Only Text | 26.6 |
| Ensemble | 38.6 |
| UniSchema (this paper) | 39.9 |
On the SPADES test split, UniSchema scores 39.9 F1. Ensemble scores 38.6 and Only KB scores 38.5. Only Text scores 26.6. The earlier graph-matching result is 31.4 test F1, and the paper reports a test advantage of 8.5 F1 points over it. That headline comparison joins changes in the answering procedure and in the evidence available to it. The comparison with Only KB is the more direct evidence that access to the textual facts helped the authors’ database-based approach.
The test ordering also shows why the standalone text result is an incomplete guide to the value of the sentences. Text on its own has difficulty with many questions this benchmark includes. Its score alongside Freebase depends on whether it resolves questions that pose problems for Freebase, as well as on how frequently the shared system succeeds in using it. A smaller source-specific score can coexist with useful evidence for a substantial group of questions.
Answering systems on the SPADES development split by F1
UniSchema leads on development data, where the ensemble places close to the Freebase-only system.
The numbers
| System or setting | F1 |
|---|---|
| Bisk et al. | 32.7 |
| Only KB | 39.1 |
| Only Text | 25.3 |
| Ensemble | 39.4 |
| UniSchema (this paper) | 41.1 |
On the SPADES development split, UniSchema has 41.1 F1. Ensemble has 39.4, Only KB has 39.1, and Only Text has 25.3. Bisk and colleagues’ baseline has 32.7 development F1. The ranking of the systems is the same as on the test split. In both comparisons the ensemble sits close to Only KB, while the system that updates its context using both sources achieves the highest result.
The scores support a claim about the joint configuration tested in the paper. Shared attention enables interactions between types of facts before answer selection, and this configuration gives the authors’ strongest performance. The ensemble supplies an informative check because it too sees predictions informed by both sources. A score advantage over it establishes that, for these implementations, combining access inside the answering procedure worked better than applying the specified linear rule to separate scores. The paper’s other analyses investigate where that advantage might come from.
What the ablations show
How often the systems solve the same question
The source-only conditions reveal how much each evidence collection can support by itself. The development analysis goes further by checking which questions the source-specific systems answer correctly. The paper reports 18.5 for questions both Only KB and Only Text get right, 20.6 for questions Only KB alone gets right in that comparison, and 6.80 for questions Only Text alone gets right. These figures are entries in the SPADES development breakdown, which the paper labels Dev. F1 and organizes by correctness outcomes.
The two exclusive groups are important for interpreting the aggregate scores. Freebase is the stronger standalone source in this benchmark, and the sentences still support answers that its system misses. A joint system can benefit from text if it can recognize those cases often enough while preserving strong database-based decisions. The overlap analysis gives evidence for the existence of useful complementary predictions. It leaves the selection problem open.
The authors report a development entry of 45.9 for questions answered correctly by Only KB or Only Text. The word “or” includes cases in which both succeed. This is an oracle-style comparison because it uses the recorded answer to tell whether either individual prediction was right. A system answering a new question lacks that information. The value gives a measure of how much the two systems cover together under retrospective selection. It also leaves open the possibility that joint processing can discover answers absent from both separate predictions.
The comparison between UniSchema and Only KB shows both acquisition and loss. The entries are 34.6 where both are correct, 6.42 where UniSchema alone is correct in the comparison, and 4.47 where Only KB alone is correct. The joint system’s better development result therefore reflects changes in both directions. Its stronger score does not describe a simple addition of correct answers to a fixed database-only output. Changes to the evidence and to the scoring of that evidence can help one question and hurt another.
For UniSchema and Only Text, the corresponding development entries are 19.2 for both correct, 21.9 for UniSchema correct alone, and 6.09 for Only Text correct alone. Text-only successes can consequently be lost when evidence is combined, even when the combined system is better in aggregate. The paired comparisons give no complete account of which questions all systems missed or which individual facts caused a prediction to change. Their value lies in showing the distinct behavior that aggregate F1 hides.
What changes when Freebase coverage is restricted
The authors also vary the amount of structured evidence available at test time. They randomly select a limited number of Freebase facts per entity and compare the resulting performance of UniSchema with Only KB. This intervenes on the available evidence during inference. It tests how the two answering procedures behave when the structured source offers fewer facts for each entity.
Figure 2 shows UniSchema ahead of Only KB across the tested coverage settings. The authors describe the margin as wide when fewer than 16 Freebase facts per entity are available. Only KB depends strongly on coverage because the removal of facts can take away its route to the answer. UniSchema can still read textual material when the cap reduces the structured evidence. Its advantage under that restriction gives a different kind of support for joint memory than the comparison at the ordinary test setting.
Random removal has a particular interpretation. It simulates thinner structured evidence distributed by the sampling procedure. A database might also be incomplete because it systematically omits a kind of relation or because a particular group of entities has sparse documentation. The coverage experiment by itself measures the effect of the paper’s intervention. It complements the natural gaps illustrated by the examples, where the difficulty often concerns the kind of information available.
What the attention analysis and examples can establish
The paper reports that attention favors Freebase facts in 58.7% of the cases analyzed. It prefers text in 34.8% of cases even when the fact is present in Freebase. In the remaining 6.5%, the authors describe attention as evenly distributed across the sources. The result suggests that the network uses each source for more than an emergency fallback. A sentence can be favored even when a database fact is available, and some questions receive substantial weight on evidence of both kinds. The paper gives these figures as proportions of cases, without tying them to a stated split in that discussion.
The authors interpret the preference for Freebase in much of the analysis in light of its curated facts. A relation label can give a concise and consistent signal about how two entities are connected. A text key can offer a better match when the question’s wording includes a qualification that the database relation leaves implicit. The attention findings are compatible with both possibilities. Large weight is evidence about the system’s internal scoring. Whether a fact was necessary for the answer would require a different comparison, such as observing the prediction with that fact removed.
The SPADES examples give concrete interpretations of evidence that a joint memory can use. In the presidency question discussed earlier, Obama is the recorded answer. Freebase has a relation for presidents of the United States, while the paper identifies the racial and historical qualification as the part that the named relation leaves out. Text can express the office and the qualification together. The example helps distinguish having a relevant database relation from having a representation that expresses the question’s full condition.
The question involving Angelina asks for the person she has reportedly threatened to leave. Brad Pitt is the answer in the example. The fact of a threat, including its reported status, is the useful linguistic evidence. A static relationship record could connect the people involved, while a sentence can describe the reported intention. This case motivates retaining sentence context because the language that makes the question answerable may concern what someone said they might do.
Questions involving rank provide another case. Chicago is the target of an example that identifies a US city by its population rank, and Latinos is the target of an example about Spanish as a secondary and weaker language. The authors group such questions under comparative expressions. Text can state a ranking or qualifying description directly. A successful answer shows that the joint procedure recovered the entity associated with the description. The example gives no trace of a separate comparison or ranking operation performed across stored objects.
The answer to the question about Belshazzar’s father is Nabonidus. The authors explain that a parent relation together with the male type condition can express the query in structured terms, although Freebase has no dedicated father relation in their example. A textual formulation can carry that combined description in one key. This is a case where a suitable structured expression is possible and a text description can be easier for the learned lookup to match. It illustrates a difference in how directly a source presents a condition, instead of a complete absence of relevant structured knowledge.
These examples were selected from successes of UniSchema where Only KB fails. They describe the kinds of questions for which adding text can matter. The development breakdown supplies the corresponding reminder that some individual predictions change in the other direction. Together, the two views identify both the potential of text and the difficulty of assigning it the right influence.
What the training comparisons leave open
The paper reports two practical observations about training. Initializing UniSchema from Only KB was crucial in the authors’ experience. Matching textual fact statistics to those of the Freebase facts made training more stable and helped final performance. Both observations are relevant to the hypothesis that common memory makes the sources more useful. A common key dimension and a shared attention rule are part of the design, and effective training also depends on how the network starts and how the representations are scaled.
The paper supplies no separate F1 rows for omitting the initialization or the normalization. There is also no breakdown by number of memory reads. The quantified comparisons therefore isolate evidence-source settings and compare shared memory with a linear ensemble. The training observations identify ingredients of the final joint run, while leaving their individual effects unmeasured in the reported tables. The paper’s case analyses and the coverage intervention answer different questions and should not be used as substitute measurements for those ingredients.
Limitations
Limits identified by the authors
The authors explicitly flag the bias introduced by constructing SPADES from sentences with entities connected in Freebase. That choice was useful for studying an entity task at the intersection of structured and textual evidence. It also favors the source that supplied the connection. The scores establish that text adds value even under this favorable condition for the database. They give a weaker basis for predicting the relative strength of the two sources in data selected without that condition.
The task itself is defined around a blank, an entity already present in the sentence, and an entity answer. The authors explain that many text-based question-answering tasks use different kinds of output. A longer answer or a sentence that gives an explanation would require a different output mechanism. Questions with no recognizable entity in the input also fail to satisfy the assumption used to select memory slots. SPADES is a test of a particular type of answering, with deliberate constraints that make a mixed-source comparison possible.
The paper acknowledges the practical dependence of training on Freebase initialization and on matching statistics across the sources. Learned vectors can in principle represent facts from both collections inside a common space. Obtaining the reported configuration involved giving the joint procedure access to a trained starting point and adjusting the distribution of its text fact representations. These details matter to the interpretation of the results because both are part of what produced the tested system.
The authors also explain why the surrounding benchmarks gave them few suitable alternatives. Reading benchmarks could lack Freebase entities or ask for a different answer form, database benchmarks favored structured coverage by design, and they report that a benchmark with similar goals was unavailable at submission. The evaluation therefore centers on SPADES. Its coverage experiment alters one condition within that benchmark while holding the character of the task fixed.
Limits visible in the evaluation
The results distinguish usefulness from causal attribution only in specific ways. Comparing the complete UniSchema system with Only KB shows that the tested configuration benefits from the textual evidence. Several aspects of the configuration differ from a simple addition of more facts, including the normalization used to train with text. Comparing UniSchema with the linear ensemble shows an advantage over that combination rule. The experiment leaves room for other ways of combining predictions and for other training arrangements to behave differently. The conclusion about joint processing is strongest when kept at the level of the systems actually evaluated.
The label Only KB describes the external evidence stored in memory. The implementation uses word and entity representations initialized with word2vec trained on ClueWeb. Accordingly, the source comparison concerns which facts the network can consult during its memory read. It does not separate every influence of text and structured data throughout the full learning pipeline. This distinction becomes especially important if the results are used to make claims about systems trained without any web text.
The bounds on eligible facts likewise shape what is being tested. The paper uses an entity-based filter and caps how many facts each source can supply per question. If a useful fact lacks a visible question entity, it can be outside the memory considered for that question. If many facts are available, the cap restricts the collection the network attends to. The results characterize answering with those selection constraints. They leave open how the same procedure would behave with a different way of retrieving evidence from a larger collection.
Attention can describe a preference between kinds of slots, but correct predictions alone do not identify a causal chain of evidence. A system might return the right entity on a comparative question because a sentence states the comparison. It might do so through a combination of cues that correlate with the right answer. Repeated memory updates make several reads possible, but the paper does not verify a logical derivation for each read. There is accordingly a difference between the architecture’s capacity to revise its context and an empirical demonstration that it executes particular intermediate reasoning steps.
The selected successes reveal important categories of questions, yet there are no category-specific scores for all questions involving intentions, rankings, or additional type constraints. They establish that individual cases can be solved in the joint setting and missed in Only KB. The examples cannot determine how commonly each category benefits or the frequency with which a similar question fails. The paired development analysis gives aggregate information about gains and losses without grouping those changes by linguistic phenomenon.
The random coverage intervention tests a useful form of source scarcity. Its conclusions have to stay linked to random restrictions on recorded facts per entity. Systematic gaps can remove connections that are disproportionately important for particular questions. A missing family relation, for example, changes the interpretation of the evidence differently from a cap that can retain some facts of all relevant types. The results show robustness to the tested restrictions, while leaving performance under other kinds of missingness open.
Finally, the reported score ordering is based on the runs described in the paper. The results are presented as individual F1 values with no reported uncertainty across repeated runs. This matters when comparing close scores within the authors’ systems. The development and test rankings agree, and the coverage and overlap analyses add context, but the paper gives no estimate of variation due to random training choices or memory sampling. Its evidence supports the observed advantage of the final configuration on SPADES and the conditions tested there.
What came after
The closest connections in later citing work concern when to combine structured knowledge and text, and what form that combined evidence should take. Open Domain Question Answering Using Early Fusion of Knowledge Bases and Text takes the timing of the combination as its subject. Its question can be understood in light of the comparison between UniSchema and Ensemble. In the memory-network paper, the earliest common operation is the attention read over eligible facts. The ensemble combines the sources after separate systems assign candidate scores. The term early fusion places the later work on the side of studying integration before the final decisions are combined. Open Domain Question Answering Using Early Fusion of Knowledge Bases and Text
UniK-QA pursues unified representations for structured and unstructured knowledge in open-domain question answering. That objective extends the representation question at the center of universal schema. The original paper gives database facts and sentence facts keys with matching dimensions and values of the same kind, even though their keys are produced differently. A unified representation can address the same underlying problem at a different point in an answering system. The continuity supported by the later work’s stated focus is the aim of letting heterogeneous information take part in one answering process. UniK-QA
Knowledge Guided Text Retrieval and Reading centers a different decision, namely which text the system should retrieve and read. In the earlier paper, the entities already in a question restrict the available memory, and attention scores the fact keys that pass that filter. The later title puts knowledge in the role of guiding retrieval and reading. This connects the work to the problem of receiving useful evidence in the first place. A system can benefit from structured knowledge because it helps identify material worth reading, as well as because its facts can directly supply answer candidates. Knowledge Guided Text Retrieval and Reading
TAT-QA carries the hybrid-evidence question into benchmark design. Its subject is question answering over tabular data and accompanying text in finance. Freebase triples are the structured source in SPADES, while tables are the structured source named by TAT-QA. The common issue is how to evaluate a system when different forms of evidence can contribute to the answer. This is a connection at the level of the task and its evidence. The title’s emphasis on a benchmark places the work on the evaluation side of that problem. TAT-QA
Another pair of citing papers approaches the relationship between entities, structured knowledge, and text further upstream. E-BERT focuses on efficient entity embeddings for BERT. Entity embeddings in the memory-network paper are used explicitly during a question’s lookup and answer selection. E-BERT’s stated subject instead puts entity representations in relation to a language encoder. The common issue is how to make an entity representation useful when processing language, with the earlier work studying the issue in an external answer memory. E-BERT
Knowledge Graph Based Synthetic Corpus Generation uses a knowledge graph as the basis for producing a synthetic corpus for knowledge-enhanced pretraining. This connects structured knowledge and text at the level of training material. The earlier paper takes textual memories from observed training sentences and stores structured facts alongside them. The later title puts the structured facts upstream of the corpus itself. Both directions concern the relationship between explicit facts and representations learned from language, while their stated tasks place that relationship at different stages. Knowledge Graph Based Synthetic Corpus Generation
Towards Knowledge-Grounded Counter Narrative Generation for Hate Speech takes the general question of grounding a language task in knowledge into a different output setting. The memory network ranks entities to complete a sentence. The later work concerns generation of a counter narrative, for which the result is text. Its citation connects the work to a broader interest in bringing external knowledge into language processing. The stated focus supports that thematic connection. It gives no basis for attributing the use of universal schema or key–value memory to the generation system. Towards Knowledge-Grounded Counter Narrative Generation for Hate Speech
These citing works span representation, retrieval, evaluation, corpus construction, and generation. Their stated topics identify the connections to the earlier paper. The citations alone leave architectural inheritance and comparative performance unspecified. The memory-network paper’s particular role in this group is to make the point of combination concrete. A question can score a structured fact and a sentence during the same read, and the answer context can reflect both before the final decision. The later topics show how the question of where to bring those forms of information together recurs even when the evidence, task, or output changes.
Cite
Cite as Rajarshi Das, Manzil Zaheer, Siva Reddy and Andrew McCallum. 2017. Question Answering on Knowledge Bases and Text using Universal Schema and Memory Networks. Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers).
@inproceedings{das2017question,
title = {{Question Answering on Knowledge Bases and Text using Universal Schema and Memory Networks}},
author = {Rajarshi Das, Manzil Zaheer, Siva Reddy and Andrew McCallum},
booktitle = {Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)},
year = {2017},
doi = {10.18653/v1/p17-2057},
url = {https://doi.org/10.18653/v1/p17-2057}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/das-2017-question-answering-knowledge-bases-text/