Elamur Research

Large-scale Simple Question Answering with Memory Networks

Paper · 2015 · Antoine Bordes, Nicolas Usunier, Sumit Chopra et al.

Summary

The authors study a basic problem in question answering. Suppose a person asks for something that a database already records as a single fact. To answer, a system must identify the entity the question refers to, work out which relationship it asks about, and find the matching entry among millions. The authors call this simple question answering because one entry supplies the evidence. That entry can contain several answers. The difficulty lies in finding it from ordinary language, where people can use different words for the same relationship and the same name for different entities.

The paper introduces SimpleQuestions, a dataset of 108,442 questions written in English by human annotators. Each question comes with the Freebase fact from which it was written, making it possible to check the selected subject and relationship directly. The authors also build a system based on Memory Networks. It first matches phrases in the question to names of entities and retrieves the facts attached to a shortlist of possible subjects. It then ranks those facts by comparing their learned vector representations with the question’s representation. The winning entry supplies the answer. To make more questions answerable in this way, the authors restructure Freebase. They replace some paths through intermediate nodes with direct links and store all objects of a given subject and relationship together.

On the WebQuestions test set, the strongest individual run achieves 41.2% F1, close to the best published comparison at 41.3%. Combining runs yields 41.9% and 42.2% F1 in the two ensembles. The paper reports that after restructuring Freebase, 86% of WebQuestions questions can be answered with a single supporting fact. On the SimpleQuestions test set, the best reported subject-and-relationship accuracy is 62-63%. The authors find the supporting fact among the candidates for about 86% of SimpleQuestions questions. The gap shows that the shortlist frequently contains the evidence even when the ranking procedure chooses a different fact.

The training experiments show why the choice of benchmark matters. Training with both human-written question datasets helps the same system handle a wider range of questions, while training with WebQuestions as the sole human-written question source yields 46.6% accuracy on SimpleQuestions. The authors also add facts from Reverb, an automatically extracted database, after training. On a Reverb test that supplies candidate facts to rank, they achieve 67% accuracy in the best individual run and 68% with an ensemble. Paraphrase training is particularly helpful in this transfer setting. Together, the experiments show how the arrangement of facts and the variety of training questions affect what a single lookup can accomplish.

Deep dive: Large-scale Simple Question Answering with Memory Networks

Memory Networks retrieve answers from Freebase in a single lookup, and SimpleQuestions tests how well that approach works across a large range of questions. · about 37 minutes to read

The problem and its context

Open-domain question answering aims to give a direct answer to a natural-language question across subject areas. Earlier systems, as the authors describe them, commonly searched for documents or webpages and extracted an answer from the results. A curated database such as Freebase offers another source of evidence. It organizes information gathered from sources such as text, web tables, and collaborative contributions into records that a system can query. A question can then be answered by identifying the appropriate record and returning what it contains.

A knowledge graph represents entities and the relations among them. In Freebase, a basic fact has a subject, a relationship and an object. The subject is the entity the relationship starts from. The object is the entity it points to. For the paper’s example about which languages people in Jamaica speak, the subject is the Freebase entry for Jamaica and the relationship is language_spoken. The question leaves the object open. Reading the objects attached to that relationship gives the answer set.

The request can be complete and intelligible to a person without using the vocabulary that appears in the database. The words about people speaking a language have to lead to a relationship stored under a database label. A name in a question also has to lead to the intended entity. Freebase gives each entity an internal identifier and supplies aliases, which are strings people use to refer to it. A mention that matches an alias gives the system a starting point. When several entities share an alias, the rest of the question can help decide which one is relevant. Choosing the appropriate relation among the links attached to that entity is a further decision.

This is why the authors use simple to describe the structure of the evidence. Consider a question that asks for several languages associated with a place. It can be answered by looking up a single subject and relationship if the lookup returns the full list of objects. Conversely, a question expecting a single name can require several steps if Freebase stores the relevant information along a path. The number of answers and the number of retrieval steps describe different aspects of the task.

Why the arrangement of facts matters

The Freebase records used in the paper do not always connect the entities of interest directly. Some relationships involve an intermediate entry because the original information includes several linked pieces. A relationship between entities, for instance, can carry dates for the period in which it held. The database can attach those pieces to an intermediate entry. A question asking for the related entity may have to follow a path through that entry even if the date plays no part in the request.

The authors make the structure of the database part of the research question. If the same answer is accessible through a direct edge, a system searching the subject’s immediate neighborhood can find it. If the answer sits behind an intermediate node, the search needs a way to decide which intermediate connections to follow. The paper treats some of that work as something that can be done in advance when preparing the database. What counts as one retrieval step therefore depends on how the memory is organized.

This matters for assessing reasoning in a question-answering system. An indirect path can reflect a question that genuinely depends on combining evidence, or it can reflect how a database has chosen to package a record. The authors focus on the latter case where a usable direct connection can be prepared ahead of time. Their research question is how well a system copes with human wording and large-scale retrieval once a suitable entry exists.

What earlier approaches offered

The paper describes earlier search-based approaches that used words from a question to find relevant material and then selected an answer from the results. Similar information retrieval ideas had also been applied to structured databases. Such approaches provide a point of comparison because the search can begin with the words that people actually use, without first converting the entire question into a formal expression.

A second family of approaches uses semantic parsing. A parser attempts to derive a structured interpretation from a sentence so that a database can execute it as a query. Its appeal is that the interpretation can capture how parts of a question fit together. The authors describe difficulties in scaling the inference needed to train such systems. They also note that some approaches relied on rules for mapping an interpretation onto the database and could use little or no supervision from paired questions and answers. The paper places the introduction of WebQuestions in this line of work. Semantic Parsing on Freebase from Question-Answer Pairs

A third approach puts questions and facts into a shared vector space. The vectors contain learned numerical features, and their similarity helps determine which fact best fits a question. The paper describes earlier work that represented both questions and Reverb facts by the words they contained. It also discusses a Freebase approach from Yang and colleagues that replaced a recognized entity mention with an entity marker and drew training material from entity mentions in Wikipedia. The version most closely related to the authors’ system used embeddings for Freebase paths and examined the value of including the answer’s neighborhood.

Memory Networks offer a framework for describing retrieval and response as operations on stored data. Earlier studies cited by the authors had used them to show that a learning system could retrieve and combine evidence in tasks built to test particular reasoning patterns. Many of those experiments used synthetic questions, which let researchers control the difficulty. The present paper takes on human-written questions and a much bigger memory. It uses an elementary form of the architecture in which a single retrieved entry supplies the response.

Why another benchmark was needed

The authors saw two problems with treating a small benchmark as a measure of open-domain coverage. Its facts may be concentrated among often occurring relations, and the wording of its questions may represent only a narrow range of natural expressions. A system can learn to handle the patterns it encounters repeatedly during training. A test set from the same source tells us only so much about how well it would answer questions gathered by another method.

WebQuestions provided a test based on queries gathered using Google’s suggestion service. Its supervision identifies answers by strings, leaving the supporting database entry to be inferred. The authors wanted a larger collection in which the supporting entry was known by construction. That makes it possible to evaluate whether the system identified the intended relationship and subject, even when an answer string by itself could be obtained from another fact.

The direction of collection is important. With a question collected first, the researcher must determine how to answer it from the database. With SimpleQuestions, the authors first select facts and ask people to write questions whose answers those facts supply. This makes the benchmark suitable for studying retrieval when a supporting record is known to exist. It also lets the authors vary which relationships the annotators see. Using SimpleQuestions alongside WebQuestions then makes it possible to ask whether training on different sources broadens what one retrieval procedure can handle.

The method, step by step

From a question to an answer

Imagine asking the system which languages people in Jamaica speak. It looks for phrases in the question that match entity names in Freebase. For each entity on the shortlist, it fetches facts where that entity is the subject. Those facts can describe quite different things. The ranking procedure compares each fact with the question, using learned representations to judge which combination of subject, relation and possible answers best fits the words the user supplied.

The highest-scoring fact determines the response. If that fact groups several objects under the language relationship, the whole set is returned. The system does not need to select a separate entry for each language or decide during response generation when it has found enough. Preparing the memory determines which objects belong together. At answer time the system selects the entry that contains them.

In Memory Network terminology, the Input map, I, prepares the data that enters the system. It turns the question into features and also prepares facts for storage. The Output map, O, uses those question features and the stored facts to choose supporting evidence. The Response module, R, returns the objects attached to that evidence. The Generalization module, G, is involved when the memory itself is updated. The paper uses it to connect Reverb facts to the Freebase memory after training. A normal Freebase query runs through I, O and R with the memory already in place.

A question’s path through the Freebase memory

The steps in order.

A question’s path through the Freebase memoryStep 1: Encode the question as words and alias phrases1. Encode the question as words and alias phrasesStep 2: Match question phrases to entity aliases2. Match question phrases to entity aliasesStep 3: Shortlist entities that could be the subject3. Shortlist entities that could be the subjectStep 4: Fetch grouped facts attached to those subjects4. Fetch grouped facts attached to those subjectsStep 5: Rank the facts by learned cosine similarity5. Rank the facts by learned cosine similarityStep 6: Return the selected fact’s object set6. Return the selected fact’s object set

Preparing Freebase for one lookup

Freebase assigns types to its entities and relationships. Its relationship vocabulary is fixed, and its records are collaboratively maintained. The authors use the FB2M and FB5M subsets. They describe FB2M as containing about 2M entities and 5k relationships, and FB5M as containing about 5M entities and more than 7.5k relationships. They prepare these subsets so that the information useful for answering lies close to candidate subjects and facts that share a subject and relationship can be retrieved together.

The first change to understand is grouping. When several entries have the same subject and relationship, their objects belong to one grouped fact. Consider how this changes the language question. A record for each language would leave the system with a choice among individual answers, even if several were appropriate. Grouping gives it an entry for the language relationship as a whole. The grouping is available during training, when the system compares questions with facts, and during evaluation, when it returns answers.

The authors report that grouping takes FB2M from 14M facts to 11M and FB5M from 22M to 12M. These are counts of entries under the paper’s description of the grouping procedure. What matters for a particular query is how many separate entries are attached to its candidate subjects. When several objects appear under the same relation, a single score now covers that group. The response still has access to all the objects once that score wins.

The other change removes intermediate entries called mediator nodes from the paths used for retrieval. Freebase can use a mediator to represent an association that has several participants or attributes. The authors replace paths through these nodes with direct connections. The label on the second part of the old path becomes the relation on the new direct entry. A search starting at the named subject can then consider the formerly indirect answer in the same pass as other directly connected facts.

There are different consequences for what the graph represents and what the question-answering procedure must do. For retrieval, the transformation makes the target accessible within the subject’s immediate neighborhood. For the original data, the intermediate structure can indicate which pieces belonged to the same underlying association. The paper’s system is designed to make use of the direct connection. Its scoring procedure can now concentrate on which available fact fits the question, without having to choose a continuation through a mediator for that fact.

Encoding the question and the facts

To compare a short sentence with a database entry, the system first represents each as a set of features. A question uses a bag of words and alias phrases. An n-gram is a sequence of adjacent words. The paper’s question vocabulary includes the individual words occurring in the question datasets and the aliases of Freebase entities. An alias made up of several words can be a single vocabulary feature alongside its individual words.

φq(q) ∈ ℝᴺⱽ

Here q is the question, φq is the feature map for questions and ℝ denotes real-valued vector space. The exponent denotes Nᵥ, the number of entries in the question vocabulary. A coordinate is set to 1 if the corresponding word or alias phrase occurs in the question, and to 0 otherwise. The representation records presence. Repeating a word does not give it a larger value. It preserves order inside a matched phrase, while the collection of active features carries no overall sentence order.

A Freebase entry starts with a subject, a relation and a set of objects. The paper writes its structure as follows.

f = (s, r, {o₁, …, oₖ})

Here f is a grouped fact. The symbol s denotes its subject, r denotes its relationship, and o₁ through oₖ are its objects. The braces denote the object set, and k is the number of objects in it. A factual record with several objects still has one subject and one relationship.

φf(f) ∈ ℝᴺˢ

The map φf turns the fact f into a vector with Nₛ real-valued coordinates. Here ℝ again denotes real-valued vector space, and Nₛ is the combined size of the entity and relationship inventory. The coordinate for the subject and the coordinate for the relation receive weight 1. The objects receive weight 1/k each, with k denoting the object count. Unused coordinates have value 0. An entity has a coordinate in this inventory regardless of which position it occupies in a fact.

This weighting lets objects contribute to the score without giving a relation a larger object contribution simply because it has a longer list. The objects remain important for the answer and also contribute features during ranking. In the base representation their contribution is the average of their embeddings. A relationship associated with many objects therefore has a different numerical representation from one with a single object, even though the procedure scores either kind of entry once.

Shortlisting candidate facts

Scoring every record for every question would make the retrieval problem much larger. The authors first apply an approximate entity-linking procedure. Entity linking maps a mention in language to an entry in the database. This step produces possible subjects using alias matches. The ranking procedure that follows can then use the whole question to decide which attached fact is relevant.

The system enumerates contiguous phrases in the question. It removes phrases containing an interrogative pronoun and discards single-word phrases on a stopword list. The remainder must match an alias. When a matched phrase is contained in a longer matching phrase, the shorter match is usually dropped. The exception covers cases where the longer form differs only by an initial in, of, for or the. Under that exception, the shorter form remains eligible. This lets the search retain a plausible shorter entity name when the extra word may belong to the surrounding question.

The system keeps the five longest matches and, for each of them, up to two entities with the largest numbers of Freebase links. It then retrieves facts having those entities as subjects. Link count serves as a way to prioritize among entities that share a name. The final comparison can use the other words in the question to choose between facts attached to those subjects. If the intended subject is absent at this point, its facts cannot enter the final ranking.

Candidate generation and question encoding use related information for different purposes. An alias match can put an entity into the search space, whereas the feature for that alias can contribute to the learned similarity. The question’s other words can influence similarity even if they identify no entity. In the Jamaica example, matching an alias can provide the subject candidates. The wording about speaking can then help a fact about languages outrank facts about other relationships available for those candidates.

Ranking facts in a shared space

An embedding is a vector whose values are learned. The system has an embedding matrix for question features and one for Freebase symbols. Each column is the vector for a feature or symbol. Multiplying a feature vector by the appropriate matrix combines the active columns using their feature weights. The result has the same dimension for the question and the fact. This makes it possible to compare them even though their original feature inventories differ.

scoreQA(q, f) = cos(Wᵥ φq(q), Wₛ φf(f))

The function scoreQA gives the similarity of question q and Freebase fact f. The map φq provides the question features and φf provides the fact features. Wᵥ is the matrix with d rows and Nᵥ columns for the vocabulary features. Wₛ has d rows and Nₛ columns for the Freebase symbols. The dimension d is chosen before training. The two products give vectors in that common space. The function cos is cosine similarity, which compares vectors by the angle between them after accounting for their lengths.

For a question, the matrix product adds the embeddings of its active words and phrases. For a fact, it combines the subject and relationship embeddings with the object contribution. This is how the system can assign a strong score to a fact whose relation label differs from the words in the question. The score depends on the alignment learned from examples. The candidate with the highest similarity goes to the Response module, which reads out its object set.

Collecting supervision for retrieval

SimpleQuestions gives the training procedure the intended Freebase fact. The authors began with FB2M and removed facts with undefined relationship types, which they identified by the presence of the word freebase in the type. They also filtered by the number of objects associated with each subject and relationship. Pairs with more than 10 objects were excluded. The authors give the kind of request this rule is meant to prevent: asking someone to name a person who is an actor. Even though such a question has support in Freebase, a particular fact offers little guidance about which person the question is asking for.

Among the eligible facts, the authors assigned lower sampling probabilities to facts whose relationships occurred more often. This gives less common relationships more opportunity to reach annotators. Each annotator saw a sampled fact with Freebase links for context. The task was to write a question about the fact’s subject and relationship, with the object as the answer. Annotators were encouraged to vary their phrasing for similar relationships and could skip a fact when they lacked enough context to write a natural question.

The resulting SimpleQuestions dataset was released by the authors. They randomly shuffled the questions and allocated 70% to training, 10% to validation and the remaining 20% to testing. The reported training count is 75,910, and the validation count is 10,845. The stored association with a specific Freebase fact provides the training target and later lets the evaluation compare predicted and intended subject–relationship pairs.

WebQuestions offers a different kind of supervision. It gives answer strings drawn from Freebase aliases, and a question can have several accepted answers. To derive training facts from those strings, the authors run their ordinary candidate generator on the question. For each fact it returns, they compare the aliases of its objects with the accepted strings. They retain facts whose aliases account for the largest number of accepted strings. When facts tie on this criterion, those with the fewest objects are retained. This preference keeps a broad relation from winning a tie simply because its many objects include some of the desired answers. A question is dropped from training if none of its candidates can produce any accepted string.

The authors call this distant supervision. The answer strings are observed, and the supporting fact is inferred. Because the training target comes from the same candidate procedure used at test time, a question whose intended fact is missed can yield no target, or a different fact may be chosen if its aliases fit. The procedure turns much of WebQuestions into usable ranking examples while preserving a clear distinction between this inferred supervision and the fact annotations in SimpleQuestions.

The training procedure also uses automatic questions generated from the Freebase subset in memory. The authors follow their earlier question-generation procedure and create one question per fact. This gives entities and relations a source of training even when they never occur in the human-written question collections. The synthetic examples link question features to Freebase symbols. They are especially relevant when the memory includes a large number of entities beyond those encountered in the supervised benchmarks.

The remaining source is a collection of question paraphrases from WikiAnswers, drawn from earlier work on open question answering. The paper gives the exact size as 15,189,550 clusters, each with 2 or more paraphrases. The training examples from these clusters do not depend on matching a question to a Freebase fact. They supply evidence that different strings can express the same request. Since the question embedding matrix is shared across the tasks, that evidence can affect how questions are represented when ranking facts as well.

Learning to prefer the right evidence

Training asks the system to put a supporting fact ahead of a competing fact by a specified margin. A question with its known or inferred support provides the positive pair. A sampled alternative provides the negative. The loss increases when the alternative receives too much relative credit. The resulting update can change the representation of the question, the facts, or both, so that the next comparison better favors the supporting evidence.

ℓQA(q, f, f′) = [γ − scoreQA(q, f) + scoreQA(q, f′)]₊

The quantity ℓQA is the question-to-fact training loss. The question is q, its supporting fact is f, and f′ is the sampled alternative. Each scoreQA term uses the Freebase cosine score. The parameter γ is the required margin. The brackets with the subscript ₊ take the positive part of the enclosed quantity. When the supporting fact is already ahead by the margin, the loss from that comparison is zero. When it falls short, the loss is the size of the shortfall.

The authors use two policies to obtain fact negatives. The default takes a positive fact and replaces its subject, relation or object set with the corresponding part of a fact sampled uniformly from the database. The choice of which part to replace is random, with a probability of 0.3 for replacing more than one part. The alternative policy draws a negative from the question’s actual candidates. The second policy exposes the system to facts that survive the same alias and subject filters as genuine answers. A candidate attached to the intended subject but carrying a different relation is the kind of distinction this policy can bring into training.

The paraphrase task uses the same question representation on both sides of the comparison. No Freebase symbols are needed for the comparison itself.

scoreQQ(q, q′) = cos(Wᵥ φq(q), Wᵥ φq(q′))

The function scoreQQ measures the similarity between question q and question q′. The map φq encodes each question, Wᵥ embeds its words and alias phrases, and cos compares the embedded vectors by cosine similarity. Both products use the same matrix. A paraphrase selected from the same cluster provides a positive comparison, and a question sampled outside the cluster provides the negative.

ℓQQ(q, q′, q″) = [γ − scoreQQ(q, q′) + scoreQQ(q, q″)]₊

Here ℓQQ is the paraphrase ranking loss. The question q is paired with paraphrase q′ and compared with the unrelated training choice q″, which is sampled outside q’s cluster. The paper uses cluster membership as the test for that choice. scoreQQ is the cosine-based question comparison, and γ is the margin. The positive-part notation […]₊ makes the loss zero whenever the paraphrase is already ahead by the margin.

The authors alternate stochastic gradient updates from the different sources. On a training step, paraphrase data are sampled with probability 0.2 when that source is included. In the full setup, the remaining selections are made uniformly among the three question-and-fact sources. This gives the datasets distinct roles without requiring a translation of all training examples into the same label format. The paraphrase task updates the shared question embeddings, while the question-and-fact task can also update the embeddings of Freebase symbols. After each update, the embedding columns are projected onto the L₂ unit ball, which bounds their Euclidean length.

For optimization the authors use WARP to speed training, Adagrad for the updates and HogWild! to run the updates across threads. They report a training time of 2-3 hours on 20 threads. The runtime describes their training setup. At inference, the trained embeddings are used to score the shortlist for each new question.

Adding Reverb after training

Reverb is derived from text through automatic information extraction. The Full Reverb collection used in the paper contains 2M entities and 600k relationships. Its entities are strings, and its relationship phrases come from an open vocabulary. A single referent can appear under several strings, and the same string can be ambiguous. Freebase provides typed entities, a fixed relationship inventory and curated records. This makes transferring to Reverb a test of how the learned question-and-fact comparison handles a change in the form of the evidence.

The authors first try to attach a Reverb subject or object to a Freebase entity using precomputed links. If a link is unavailable, they look for a Freebase alias matching the Reverb string. Together these procedures match 17% of Reverb entities to Freebase entities. The linking stage uses earlier work on connecting extracted strings to database entities. Entity Linking at Web Scale

An entity that can be linked uses the corresponding Freebase symbol. The text of an unmatched entity is represented by its words. The relation in a Reverb fact is always represented by words from its string. This hybrid encoding allows the score to draw from the existing word and symbol embeddings, without requiring a separate learned relation vector for every Reverb phrase. In the Reverb evaluation the candidates are supplied, so the immediate purpose of the encoding is to make those candidates comparable with the question.

scoreRVB(q, fᴿ) = cos(Wᵥ φq(q), Wᵥₛ φRVB(fᴿ))

The function scoreRVB scores question q against Reverb fact fᴿ. The question uses the map φq and the vocabulary matrix Wᵥ, as in the Freebase score. The map φRVB gives the Reverb feature vector, covering both vocabulary and Freebase symbol coordinates. Wᵥₛ joins the columns of Wᵥ and Wₛ, where Wₛ is the matrix for Freebase entities and relations. The joined matrix has d rows and Nᵥ + Nₛ columns, where d is the shared embedding dimension and Nᵥ and Nₛ are the sizes of the two feature inventories. Multiplying it by the Reverb features yields a vector that shares the question embedding’s space. The cos function compares their directions.

The new facts enter memory after the Freebase-based training phase. The authors reuse the existing embedding columns to score them. As a result, transfer depends on whether the words and entity symbols available for a Reverb fact can express enough of its connection to the question. That is a different test from learning afresh which extracted relations answer which questions from Reverb’s own supervised data.

Experiments and results

What each evaluation measures

WebQuestions has 3,000 training questions, 778 validation questions and 2,032 test questions in the paper’s split. The answers are strings, and many questions accept or require several. For each test question the system returns the objects of its selected fact. The evaluation computes an F1 score for that question’s predicted answer set, then averages those scores over the test questions. A prediction can therefore receive partial credit when it recovers some answers or includes extra ones. Both retrieving the intended relationship and selecting a suitably complete object set matter to the score.

SimpleQuestions has explicit annotations for the underlying Freebase facts. Its test metric is path-level accuracy. A prediction is counted as correct when both the subject and the relation agree with the annotated fact. This checks whether the question was mapped to the intended lookup. The term path here refers to the subject and the relationship used to reach the answer. A candidate associated with the right subject but the wrong relationship counts as an error, as does one with the right relationship attached to a different subject.

The Reverb test contains 691 questions and supplies a small candidate set for each question. The candidate facts are labeled correct or incorrect. To calculate accuracy, find the percentage of questions whose top-ranked fact carries a correct label. This test isolates the ranking of supplied evidence more directly than the Freebase evaluations, where the system generates its own candidates. It also measures a different outcome from WebQuestions F1, because it judges the first-ranked fact as a whole instead of comparing sets of answer strings.

The comparison groups also differ. For WebQuestions, the authors compare against published systems, including the closely related Freebase embedding approach and the joint relational embedding approach of Yang and colleagues. The authors compare only their own variants on SimpleQuestions because they were introducing the benchmark. For Reverb, the paper compares with the original paraphrase-driven approach, an earlier weakly supervised embedding approach and the earlier Memory Networks approach. The comparison with the original work places the transfer result in the setting of the test for which that system was designed. Paraphrase-Driven Learning for Open Question Answering

How the runs were selected

Every reported training setup uses the synthetic Freebase questions. References to training with only one question dataset concern the human-written sources, with automatic questions still supplying supervision. Otherwise a comparison described as training on WebQuestions alone could be mistaken for an experiment with no additional knowledge-base training at all.

The authors choose hyper-parameters for WebQuestions validation F1 even when the resulting run is also evaluated on SimpleQuestions or Reverb. They consider embedding dimensions of 64, 128 and 256, and learning rates listed as 1, 0.1, ..., 1.0e-4. The ranking margin is fixed at 0.1. They monitor validation F1 at intervals during training and use those checks to stop training. Accordingly, the Reverb test is an evaluation of settings selected elsewhere, and the SimpleQuestions results also reflect that common selection rule.

The paper compares a default policy that corrupts facts with a policy that samples negatives from candidates. Training with candidate negatives starts from the best default embeddings. The paper also considers enriching each object with a bag of entities in its immediate neighborhood. It reports this subgraph representation in a combination whose score adds the base and subgraph scores. A separate ensemble combines the 5 strongest runs on WebQuestions validation with the subgraph version excluded. The ensembles assess whether several trained scorers can collectively make better choices on the same task.

WebQuestions

Answer-set F1 on the WebQuestions test set

Both ensembles score above the strongest published comparison and the individual Memory Network run.

Answer-set F1 on the WebQuestions test setYang and colleagues: 41.3Yang and colleagues41.3Memory Network, individual run: 41.2Memory Network, individual run41.2Memory Network ensemble: 41.9Memory Network ensemble41.9Memory Network ensemble (this paper): 42.2Memory Network ensemble (this paper)42.2
The numbers
System or settingF1 %
Yang and colleagues41.3
Memory Network, individual run41.2
Memory Network ensemble41.9
Memory Network ensemble (this paper)42.2

The strongest individual result reported for the new system is 41.2% F1, comparable to 41.3% for the strongest published competitor identified by the authors. The ensembles reach 41.9% and 42.2% F1. The authors associate their best WebQuestions results with using the larger Freebase subset, training with all available sources and taking negatives from the candidate facts. The distinction between the single run and the ensembles matters. The single run is close to the published comparison, while the higher values come from combining scores.

The paper also compares systems in a setting using FB2M. The prior path-based embedding approach without the subgraph representation reached 35.3% F1. The authors report 36.2% F1 for their FB2M result without a subgraph. They point out that the earlier method searched paths through intermediate nodes, using a heuristic to control which continuations it examined. The new setup uses direct connections and grouped facts. Since the question representation and scoring function also changed, the comparison captures a change to the retrieval system as a whole.

The larger Freebase subset makes a substantial difference on this benchmark. In the paper’s comparison of Freebase sizes, the WebQuestions test F1 goes from 36.2% to 41.0%. The paper also estimates that 86% of WebQuestions questions can be answered using a single supporting fact after the graph has been prepared. The coverage estimate describes which questions have evidence in the required form. F1 describes how well the system actually selects the answer sets. A question may have readily accessible support and still receive a low score because the system selects the wrong entity or relationship.

SimpleQuestions

The strongest SimpleQuestions test results are reported as 62-63% subject-and-relationship accuracy. The paper also reports that about 86% of SimpleQuestions questions have their supporting fact in the candidate set. Looking at these measurements together shows where difficulty remains. Candidate generation excludes the support for some questions. For many others the ranker has access to the support. The test accuracy shows that availability within the shortlist is only part of solving the task.

The result also illustrates why the paper introduced a benchmark with explicit fact annotations. On a question evaluated by answer strings, several database paths might produce an accepted string. On SimpleQuestions the candidate has to capture the annotated subject and relationship. The accuracy therefore quantifies success at selecting the intended path. The authors’ reported candidate coverage offers a way to interpret that accuracy without assuming every error arose at the same stage.

FB5M does not yield the kind of improvement on SimpleQuestions that it yields on WebQuestions. The authors relate this to how the dataset was built. The target facts were sampled from FB2M, so their availability did not depend on introducing the larger Freebase subset. The extra graph entries can introduce more entities and candidate facts, yet the reported accuracy stays broadly similar. For this benchmark, the salient challenge is choosing among available alternatives given the question.

Reverb

Candidate reranking accuracy on the Reverb test set

Freebase-trained scoring improves on the original Reverb result, with the highest accuracy coming from the earlier embedding approach.

Candidate reranking accuracy on the Reverb test setOriginal paraphrase-driven approach: 54Original paraphrase-driven approach54Memory Network, transfer without retraining: 67Memory Network, transfer withoutretraining67Memory Network, transfer ensemble (this paper): 68Memory Network, transfer ensemble (thispaper)68Earlier weakly supervised embedding approach: 73Earlier weakly supervised embeddingapproach73
The numbers
System or settingaccuracy %
Original paraphrase-driven approach54
Memory Network, transfer without retraining67
Memory Network, transfer ensemble (this paper)68
Earlier weakly supervised embedding approach73

The strongest individual transfer run gets 67% accuracy on Reverb, and the ensemble of 5 reaches 68%. These values exceed the original system’s 54%. The strongest earlier result cited by the paper is 73%, obtained by an embedding approach developed for that setting. The new result shows that scoring learned with Freebase-oriented supervision can use facts extracted from text, given a way to represent them with existing features and a candidate set to rank.

The Reverb comparison involves no further training on Reverb after the new facts are introduced. It does involve preparation of those facts, including reuse of Freebase identifiers where a match can be made. Both parts are essential to interpreting the result. The weights are transferred, while the new records are converted into a representation that those weights can score. The experiment measures the outcome of that conversion and ranking procedure on the supplied candidates.

What the ablations show

Making evidence reachable

The paper analyzes the effect of removing mediator nodes by estimating how many WebQuestions items can be answered with one fact. The estimate rises from around 65% to 86% after the representation is changed. This is direct evidence that the single-lookup class is sensitive to graph structure. For these questions, putting the appropriate answer next to the subject changes which retrieval procedure is sufficient. The estimate leaves open how accurately the procedure will choose among the facts it can now reach.

Grouping bears on another part of the search. When the question asks for a list, all objects for the selected subject and relationship are already represented together. The same grouping also reduces the number of stored entries and can reduce how many scores must be computed for a candidate subject. The authors compare their grouped approach with the earlier path-based approach that combined answers using a heuristic at test time. The new system can train against an entry that represents the whole set, including when the target is inferred by comparing accepted answers with object aliases.

The paper’s comparison at a common Freebase size is informative but changes several operations together. The new system uses cosine similarity in place of a dot product, handles the entity string differently in the question representation, creates direct links through mediator removal and groups objects earlier. The authors report consistent improvements from using cosine similarity. The aggregate test comparison between the two approaches offers no separate numerical estimate for each of the individual contributions. It supports the combined design and explains how the search became simpler.

Moving to FB5M provides a comparison with a different interpretation. On WebQuestions, more connections can bring answers into the lookup neighborhood even when the question source was selected independently of either prepared subset. On SimpleQuestions, the supporting fact was chosen from FB2M before the question was written. Its underlying availability is guaranteed by the collection procedure. The contrast between benchmarks helps explain why increasing the size of memory can help one test substantially while leaving the other nearly unchanged. Added information is most consequential when the smaller memory offers inadequate access to the required facts.

Choosing competitors during training

The comparison of negative sampling policies asks which mistakes the scorer should learn to avoid. Corrupting a fact can teach basic associations between questions and entities or relations. Some corruptions will create an alternative that the test-time candidate filter would never present. Sampling candidates instead makes the negative resemble the facts the system actually has to distinguish at inference. Since those facts come from subjects matched by name, they may share much of their representation with the correct entry.

The authors report a slight improvement with candidate negatives. That supports using plausible alternatives when training the ranker. The candidate-negative stages are initialized from the best default run, so the comparison evaluates an additional stage starting with embeddings learned under the default policy. It does not establish how the candidate-negative policy would perform if used from the beginning with a separately initialized run.

The object subgraph comparison has a related qualification. A neighborhood representation gives an object features derived from other entities linked to it. It can provide evidence about the kind of answer a question is looking for. The reported result combines the subgraph score with the base score. It shows the performance of the combination. The paper gives no separate result for the subgraph scorer from which to infer how it ranks candidates on its own.

Which training signals transfer

The training-source experiments test whether questions drawn from different datasets teach the same retrieval behavior. Both human-written collections use Freebase, yet training on WebQuestions as the only human-written question source yields 46.6% test accuracy on SimpleQuestions. The examples in the two datasets come from different collection procedures, and the weak transfer shows that sharing a database does not make their question distributions interchangeable. A system exposed to synthetic Freebase questions and WebQuestions still has difficulty with many naturally worded requests elicited from sampled facts.

Training jointly with WebQuestions and SimpleQuestions yields results that the authors describe as as good as or slightly better across the tests they consider, compared with training with the corresponding question collections separately. The experiment tests whether one scoring procedure can benefit from both forms of supervision. WebQuestions contributes observed answer strings and inferred supporting facts, while SimpleQuestions supplies facts directly. The reported results show that the procedure can combine them without the deterioration the authors were looking for when testing joint training.

The paraphrase signal has a different pattern. When training already includes the human-written data for the corresponding Freebase test, adding paraphrases has limited effect there. The authors report some help in settings with only synthetic questions or without the relevant human-written source. The paraphrase task has a much stronger effect in the Reverb experiments. The authors’ explanation is that the Reverb questions have more varied vocabulary and sentence forms, making evidence about equivalent formulations more valuable.

That explanation is consistent with the use of one matrix for all question features. If wording variants are trained to lie close to one another, a relation can receive a suitable score for a question expressed differently from the Freebase training examples. The training-source comparison measures the effect of including the paraphrases. It leaves the explanation about lexical and syntactic variation as an interpretation of the result, since the experiment does not separately vary those two properties of the questions.

Limitations

Limits the authors state

The authors describe simple question answering as unsolved. Their own SimpleQuestions results illustrate both the value and the limits of the approach. The supporting fact is often reachable through the alias-based shortlist, and the ranker can use its learned scores to select it in many cases. A substantial share of questions still receive the wrong subject or relationship. The authors also observe that strong results on WebQuestions give little assurance of broad coverage when the questions come from another collection.

The paper studies the single-fact form of Memory Networks. It presents the framework as a route towards retrieval schemes that can gather several pieces of evidence. The experiments establish how the one-lookup design performs on human questions and a large memory. They provide no corresponding test of composing multiple retrieved facts. List answers are handled by grouping objects under a relation, which lets one entry provide all the objects. That is a particular form of aggregation built into the memory before the question arrives.

The authors also identify supervision as an open issue. WebQuestions provides answers without telling the system which facts support them. The training procedure infers targets from alias overlap, then discards questions for which it cannot infer any supporting fact. The authors point to weakly supervised Memory Networks as a direction for future work, so that training could use the answer signal without first assigning a specific support record by this heuristic.

Limits visible in the setup

SimpleQuestions is well suited to studying how a system retrieves known support, because every item originates from an available fact. The same collection procedure limits conclusions about questions asked independently by users. Annotators worked with the subject and relation in view and could skip unfamiliar cases. The sampling favors less frequent relationships, and the upper limit on objects removes some kinds of broad requests. These choices produce a controlled benchmark of questions about eligible facts. Its difficulty and coverage apply to that question collection.

The random split is a split over questions. It does not impose a requirement that test entities, relationship types or their combinations be absent from training. Synthetic training questions are also generated from facts in the chosen Freebase subset. The test can therefore reveal difficulty mapping a human formulation to an available fact even when the fact or its symbols have been represented during training. A different experiment would be needed to isolate generalization to held-out relations or to entities that have received no training signal.

The shortlist imposes restrictions that the ranking stage cannot overcome. A mention has to survive the phrase filters and match an alias. The intended entity must also survive the choice to favor heavily linked entries. These filters make searching feasible, while leaving some questions with no correct candidate. The paper’s coverage result measures the combined outcome of those decisions. It does not identify how many misses each individual filter causes or how they interact for particular kinds of entity names.

The representation of a question is another constraint. It keeps multiword aliases intact when they match and records the words present. Questions with the same active features receive the same vector, even if larger changes in word order alter who is related to whom. For facts, the same entity inventory is used in subject and object positions, and facts are encoded by their feature weights. The surrounding candidate procedure supplies important directionality by searching facts attached to candidate subjects. That procedure is part of what lets the simple vector comparison work.

Removing mediator nodes can also change what distinctions are visible in an entry. A mediator may attach additional information to a relationship, such as when it held. The direct relation is enough for questions that seek the connected entity without using that context. A question whose answer depends on the qualifier would require a representation and retrieval procedure that preserve the association between the qualifier and the relevant entities. The paper measures the improvement in reachability for one-fact questions, without testing whether the condensed links support such qualified requests.

Finally, the Reverb result concerns reranking supplied candidates. It shows that the transferred scorer can recognize some relevant extracted facts, even though few Reverb entities receive a Freebase identifier. It leaves open how well a system would search the entire Reverb collection for those candidates or deal with cases where there is no correct stored fact. The Freebase validation rule and the use of prepared candidates define the setting in which the transfer numbers can be interpreted.

What came after

Testing how much the simple task requires

The closest successor in scope is the study of strong baselines for simple question answering over knowledge graphs. Its stated comparison includes approaches with and without neural networks. That gives a later way to examine the separation used in the paper: shortlist likely subjects, then decide which relationship answers the question. The original contribution supplies a large benchmark and a learned procedure for both parts of the lookup. A baseline study asks how much of the task can be accounted for by simpler decisions and where a learned comparison is worth evaluating. Strong Baselines for Simple Question Answering

A later study of generalization in knowledge-base question answering makes the evaluation question more explicit. The original paper compares training sources and shows that success on one collection does not carry over automatically to another collection grounded in Freebase. The later work frames generalization in distinct levels. Its focus is the kind of novelty an evaluation asks the system to handle. That question follows naturally from the difference between recognizing a new wording for an available lookup and handling a test example that is novel along another dimension. Beyond I.I.D.

Work on relation extraction and textual evidence keeps Freebase as the object of the question-answering task and makes the source of evidence another part of the design. The paper already separates matching the subject from choosing a relevant relation and tests whether words from Reverb can help represent facts outside the fixed Freebase relation inventory. The later work’s stated focus brings relation extraction and textual evidence directly into Freebase question answering. The connection is the use of textual expressions to help decide which structured relation answers a question. Question Answering on Freebase via Relation Extraction and Textual Evidence

Changing what the memory holds

Key-Value Memory Networks for directly reading documents take the memory architecture towards a different source of evidence. The earlier system stores structured Freebase facts and uses the selected record’s objects as the response. A key–value organization distinguishes the information used to find a memory entry from the information read out when it is selected. Applying that organization to document reading changes what can occupy memory while retaining the broad operation of retrieving evidence for a question. It is a direct continuation of the question the Freebase system raises about how storage format shapes retrieval. Key-Value Memory Networks for Directly Reading Documents

Work on early fusion of knowledge bases and text takes up the relationship between structured and textual sources. In the original transfer experiment, text-derived Reverb facts enter after training and are expressed with the words and Freebase symbols already available to the scorer. In early fusion, combining knowledge bases and text is part of the stated approach to open-domain answering. These are different places to bring the sources together. The common problem is making evidence from text and a database accessible within a single question-answering process. Open Domain Question Answering Using Early Fusion of Knowledge Bases and Text

Requiring evidence across several steps

Later work on multi-hop reading comprehension puts the evidence across documents. This changes the experiment in a way that helps clarify what SimpleQuestions controls. A SimpleQuestions item starts with a fact whose subject and relation lead to the answer in the chosen representation. A dataset designed around reading across documents makes the retrieval and combination of separated information central to the task. Its stated goal takes up the cases the original authors set aside when they chose to study a single lookup. Constructing Datasets for Multi-hop Reading Comprehension Across Documents

Another later dataset focuses specifically on evaluating the steps in multi-hop reasoning. That focus extends the idea of checking intermediate evidence. SimpleQuestions makes it possible to compare the selected subject and relationship with the ones used during annotation. When several steps are intended, a correct final answer can leave open which steps led to it. A dataset designed to assess the reasoning steps makes that sequence a subject of evaluation in its own right. Constructing a Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Steps

Work using knowledge-base embeddings for multi-hop question answering stays closer to the original paper’s structured evidence. It takes up a setting where an embedding-based approach must address questions over a graph that require several relations. The original method gives a score to each available fact and reads the objects of the winner. The later work explicitly applies knowledge-base embeddings to the multi-hop setting. Across these directions, the paper’s distinction continues to matter: a task depends both on what the question asks and on whether the evidence has been stored as one retrievable entry or must be assembled from several. Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base Embeddings

Cite

Cite as Antoine Bordes, Nicolas Usunier, Sumit Chopra and Jason Weston. 2015. Large-scale Simple Question Answering with Memory Networks. arXiv:1506.02075.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1506.02075 · arXiv 1506.02075

@misc{bordes2015large,
  title = {{Large-scale Simple Question Answering with Memory Networks}},
  author = {Antoine Bordes, Nicolas Usunier, Sumit Chopra and Jason Weston},
  year = {2015},
  doi = {10.48550/arxiv.1506.02075},
  eprint = {1506.02075},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1506.02075}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bordes-2015-large-scale-simple-question-answering/

References

22 references, from the paper's own bibliography.

  1. Jonathan Berant and Percy Liang. 2014. Semantic parsing via paraphrasing. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (ACL'14), Baltimore, USA. our card
  2. Jonathan Berant, Andrew Chou, Roy Frostig, and Percy Liang. 2013. Semantic parsing on Freebase from question-answer pairs. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing (EMNLP'13), Seattle, USA. our card
  3. Antoine Bordes, Sumit Chopra, and Jason Weston. 2014a. Question answering with subgraph embeddings. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 615–620, Doha, Qatar, October. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  4. Antoine Bordes, Jason Weston, and Nicolas Usunier. 2014b. Open question answering with weakly supervised embedding models. In Proceedings of the 7th European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases (ECML-PKDD'14), Nancy, France. Springer. OpenAlex ↗ · Scholar ↗
  5. Qingqing Cai and Alexander Yates. 2013. Large-scale semantic parsing via schema matching and lexicon extension. In Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Sofia, Bulgaria, August. OpenAlex ↗ · Scholar ↗
  6. John Duchi, Elad Hazan, and Yoram Singer. 2011. Adaptive subgradient methods for online learning and stochastic optimization. The Journal of Machine Learning Research, 12. OpenAlex ↗ · Scholar ↗
  7. Susan Dumais, Michele Banko, Eric Brill, Jimmy Lin, and Andrew Ng. 2002. Web question answering: Is more always better? In Proceedings of the 25th annual international ACM SIGIR conference on Research and development in information retrieval, pages 291–298. ACM. OpenAlex ↗ · Scholar ↗
  8. Anthony Fader, Stephen Soderland, and Oren Etzioni. 2011. Identifying relations for open information extraction. In Proceedings of the Conference of Empirical Methods in Natural Language Processing (EMNLP'11), Edinburgh, UK, July 27-31. OpenAlex ↗ · Scholar ↗
  9. Anthony Fader, Luke Zettlemoyer, and Oren Etzioni. 2013. Paraphrase-driven learning for open question answering. In Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (ACL'13), Sofia, Bulgaria. our card
  10. Anthony Fader, Luke Zettlemoyer, and Oren Etzioni. 2014. Open question answering over curated and extracted knowledge bases. In Proceedings of 20th SIGKDD Conference on Knowledge Discovery and Data Mining (KDD'14), New York City, USA. ACM. OpenAlex ↗ · Scholar ↗
  11. Tom Kwiatkowski, Eunsol Choi, Yoav Artzi, and Luke Zettlemoyer. 2013. Scaling semantic parsers with on-the-fly ontology matching. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing (EMNLP'13), Seattle, USA, October. our card
  12. Thomas Lin, Mausam, and Oren Etzioni. 2012. Entity linking at web scale. In Proceedings of the Joint Workshop on Automatic Knowledge Base Construction and Web-scale Knowledge Extraction (AKBC-WEKEX'12), Montreal, Canada. our card
  13. Benjamin Recht, Christopher Ré, Stephen J Wright, and Feng Niu. 2011. Hogwild!: A lock-free approach to parallelizing stochastic gradient descent. In Advances in Neural Information Processing Systems (NIPS 24)., Vancouver, Canada. OpenAlex ↗ · Scholar ↗
  14. Siva Reddy, Mirella Lapata, and Mark Steedman. 2014. Large-scale semantic parsing without question-answer pairs. Transactions of the Association for Computational Linguistics, 2:377–392. OpenAlex ↗ · Scholar ↗
  15. Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus. 2015. Weakly supervised memory networks. arXiv preprint arXiv:1503.08895. OpenAlex ↗ · Scholar ↗
  16. Christina Unger, Lorenz Bühmann, Jens Lehmann, Axel-Cyrille Ngonga Ngomo, Daniel Gerber, and Philipp Cimiano. 2012. Template-based question answering over RDF data. In Proceedings of the 21st international conference on World Wide Web (WWW'12), Lyon, France. ACM. OpenAlex ↗ · Scholar ↗
  17. Ellen M Voorhees and DM Tice. 2000. Overview of the trec-9 question answering track. In TREC. OpenAlex ↗ · Scholar ↗
  18. Jason Weston, Samy Bengio, and Nicolas Usunier. 2010. Large scale image annotation: learning to rank with joint word-image embeddings. Machine learning, 81(1). OpenAlex ↗ · Scholar ↗
  19. Jason Weston, Sumit Chopra, and Antoine Bordes. 2015. Memory networks. In Proceedings of the 2014 International Conference on Learning Representations (ICLR). arXiv preprint arXiv:1410.3916. OpenAlex ↗ · Scholar ↗
  20. Mohamed Yahya, Klaus Berberich, Shady Elbassuoni, Maya Ramanath, Volker Tresp, and Gerhard Weikum. 2012. Natural language questions for the web of data. In Proceedings of the Conference on Empirical Methods in Natural Language Processing. OpenAlex ↗ · Scholar ↗
  21. Min-Chul Yang, Nan Duan, Ming Zhou, and Hae-Chang Rim. 2014. Joint relational embeddings for knowledge-based question answering. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 645–650. OpenAlex ↗ · Scholar ↗
  22. Xuchen Yao and Benjamin Van Durme. 2014. Information extraction over structured data: Question answering with freebase. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (ACL'14), Baltimore, USA. OpenAlex ↗ · Scholar ↗