Strong Baselines for Simple Question Answering over Knowledge Graphs with and without Neural Networks
Paper · 2018 · Salman Mohammed, Peng Shi and Jimmy Lin
Summary
A question can ask for a single fact and still leave an answering system with several decisions to make. In response to a question about Sasha Vujacic’s birthplace, the system must locate the words naming him, match them to his Freebase entry, and determine that the requested information is his birthplace. Only then can it look up the answer. The paper uses this task to test how much increasingly elaborate neural architectures contribute to question answering over a knowledge graph.
The authors build a pipeline in which they can change how the name is detected and how the relation is predicted while keeping the graph lookup and final ranking procedure in place. They compare bidirectional recurrent networks with a conditional random field for detecting the name, and they test recurrent networks, a convolutional network, and logistic regression for predicting the relation. In every configuration, the name is linked to graph entries by fuzzy string matching. The final stage discards subject–relation pairs that the graph cannot support and uses graph information to settle ties between entries with the same name.
On the SimpleQuestions test set, the strongest combination reaches 74.9 accuracy for predicting both the subject and the relation. It uses a bidirectional LSTM for detecting the name and a bidirectional GRU for predicting the relation. Replacing the LSTM with the conditional random field yields 73.7. A system that uses the conditional random field and logistic regression with features derived from word counts reaches 67.3, above the original benchmark result. The component evaluations explain why improving one stage can have a limited effect on the overall result. A detector can locate the right words while the linker still struggles to retrieve the intended Freebase entry from among many entries carrying the same name.
The results give neural networks a clear advantage in predicting relations, while placing the strongest simple pipeline close to several more elaborate published systems. The authors also report results across multiple training runs, making visible some of the variation that a single score conceals. They leave open how much any particular addition, such as attention or residual connections, would help if introduced into the same pipeline under controlled conditions. The implementation is available as open-source code under the name BuboQA.
Deep dive: Strong Baselines for Simple Question Answering over Knowledge Graphs with and without Neural Networks
See how recurrent networks, fuzzy name matching, and logistic regression compare on simple Freebase questions in the SimpleQuestions benchmark. · about 31 minutes to read
The problem and its context
A short question can require two different kinds of interpretation
Freebase represents facts as triples. The subject identifies what the fact is about, the predicate names the relation, and the object gives the value associated with that subject and relation. In the birthplace example, the subject is the graph entry for Sasha Vujacic, the predicate denotes place of birth, and the object supplies the place. The words of the question provide clues about the first two positions. Once those positions are resolved, the graph supplies the third.
Simple has a specific meaning in this setting. It describes how much graph structure is needed to answer the question: a single fact suffices. Finding that fact can still require resolving a name that belongs to several entries or recognizing a relation whose formal name looks different from the words of the question. The paper cites analyses of an earlier benchmark and of real user questions as evidence that this restricted task covers a broad range of requests. A system that handles it well therefore solves a useful problem even though its search is confined to a single fact.
The distinction between the subject's name and its graph identity matters throughout the study. In everyday reading, locating a name can feel like resolving the reference. In Freebase, several distinct entries can have the same label. The words alone may suffice to recover that label while leaving the entry uncertain. Conversely, identifying the intended entry does not identify which fact the user wants about it. Asking about a place of birth and asking about another property of the same subject would leave the name unchanged and alter the relation. These two sources of uncertainty give the authors separate places to test how much a learned component contributes.
From general queries to a common benchmark
The paper traces recent work on questions over knowledge graphs to research on semantic parsing. In the line of work it associates with Berant and colleagues, a system maps the question into a logical form that can be expressed as a structured query. The logical form represents what must be true of an answer. In the SimpleQuestions setting, the target can be represented directly by the subject and predicate of a stored triple. This makes it possible to evaluate a pipeline that assigns those two parts separately. Semantic Parsing on Freebase from Question-Answer Pairs
Bordes and colleagues introduced SimpleQuestions and tackled it with memory networks. The benchmark gave subsequent studies a common set of questions and graph facts. With a fixed target for each example, researchers could compare complete systems that organized the work very differently. They could also develop specialized components, such as a relation classifier, and judge how the resulting pipeline performed on the same task.
The paper describes several directions researchers took. Golub and He used a character-level encoder and decoder with attention, which allows the system to give different parts of an input different weight as it works. Dai and colleagues used a conditional probabilistic framework with bidirectional GRUs, a kind of recurrent network that can carry information along a sequence. Lukovnikov and colleagues encoded questions at both the word and character levels and trained their system end to end. These approaches gave systems different ways to represent the question and connect it to a graph fact.
Other work assigned specialized neural components to particular stages. Yin and colleagues used character-level convolution for entity linking, then a separate word-level convolutional network with attention in its pooling operation to select a fact. Yu and colleagues used a hierarchical bidirectional LSTM with residual connections for relation detection and combined its predictions with the output of a linker. Residual connections let information pass around intervening transformations. In both cases, the complete system made several design choices together. Its final score could establish the performance of the package, while leaving the contribution of any one choice uncertain.
What a stronger baseline could establish
The immediate precedent was the study by Ture and Jojic. They divided the work into simpler subproblems and used ordinary recurrent networks, arguing that attention offered little help on this task. The authors follow that decomposition and widen the comparison. A conventional sequence tagger can stand in for the neural name detector, and a linear classifier can stand in for the neural relation predictor. This makes it possible to ask which choices really require a recurrent or convolutional network when other parts of the system already handle graph lookup and ambiguity.
The motivation also comes from comparisons outside graph question answering that the paper itself discusses. It points to work in which careful tuning made standard LSTMs competitive with newer architectures. It also cites an example from sequence transduction in which attention could carry work previously assigned to a more involved encoder–decoder arrangement. In the latter case attention was the component that remained, illustrating the broader point that the value of a component depends on the job it has to do and the alternatives available to it. Attention Is All You Need
On SimpleQuestions, a strong baseline needs to do more than provide an easy score to beat. It needs access to a reasonable way of finding names in the graph, a reasonable way of ranking relations, and a procedure for combining the two. Otherwise, the gains credited to an architecture may include gains due to a stronger search procedure or a better way of using the graph. The paper's modular design makes several of those choices visible and allows the authors to vary particular components while leaving others in place.
The method, step by step
From the question to a graph lookup
The pipeline starts by lowercasing the question and dividing it into tokens according to Penn TreeBank conventions. Tokens are the units the subsequent components process. Lowercasing lets otherwise identical strings be treated alike when case is the only difference. It also means that capitalization no longer provides a direct clue to where the name begins or ends. The paper deliberately keeps preprocessing at this level. Tokenization
From that common input, the system pursues two lines of evidence. One starts by marking the words that refer to the subject. It then uses those words to retrieve possible Freebase entries. The other looks at the entire question and ranks the relations it might express. The two lines meet when the system forms possible pairs of entries and relations. The graph serves as a check on whether each pair describes a fact that can be looked up.
This design gives the intermediate stages different outputs. The name detector returns words from the question. The linker turns those words into a ranked list of identifiers. The relation classifier returns a separate ranking over predicates. The final stage needs both rankings because it has to decide which interpretation of the name goes with which interpretation of the question. The object of the selected fact is then the value sought by the question.
From a SimpleQuestions query to a Freebase fact
The steps in order.
Find the words that refer to the subject
Entity detection is treated as sequence labeling. Each word in the question receives either the tag Entity or the tag NotEntity. Neighboring words tagged Entity make a span. In the birthplace example, the intended span covers the words of the person's name. The detector need only mark their boundaries. Freebase identity comes later, and the labels used here do not distinguish classes such as person or place. The task uses the sequence-labeling machinery associated with named entity recognition.
The recurrent versions begin with a sequence of word embeddings, vectors that represent words numerically. The authors use bidirectional LSTM and bidirectional GRU variants. A forward pass processes the sequence in its original order and a backward pass processes it from the other direction. At each position, the network joins the two hidden states. A hidden state is the numerical representation produced as the network works through the sequence. Joining the states lets a tag decision draw on context from both sides of the word. Word embeddings
The joined representation passes through a linear layer, batch normalization, a rectified linear activation, dropout, and an output layer for the tags. The linear layer transforms the representation. Batch normalization adjusts intermediate activations during training, and the rectified activation introduces a nonlinear transformation. Dropout suppresses some activations during training. The output layer gives the scores used to choose between the two token labels. The authors test the recurrent tagger without the extra conditional random field layer used in some of the sequence-labeling architectures they cite. Here, the recurrent tagger and the conditional random field are separate alternatives.
The other detector is a conditional random field, abbreviated CRF. It scores label sequences using features drawn from the input. The authors use the Stanford NER implementation and describe features such as the location of a word, its part-of-speech tag, and short sequences of characters. These features give it access to clues about the shape of a name and the role of the surrounding words. Its output has the same form as the recurrent tagger's output, so the same linking procedure can take over from either detector.
Detection is therefore judged on a narrower question than the rest of the system. If a name has several words, finding some of them can give the linker useful material while failing to recover the annotated span. And if every word is recovered exactly, nothing in the detection labels decides which graph entry the name denotes. That separation lets the experiment distinguish how well the words were found from how well they were linked.
Turn the detected name into possible graph entries
A Freebase entry has a Machine Identifier, or MID. The MID distinguishes the entry from other entries with the same label. The linking stage starts with the detected words and searches for MIDs whose names resemble them. To make that search efficient, the authors build an inverted index over contiguous word sequences in the graph's entity names. Each indexed sequence leads back to the entries whose names contain it. Such a sequence is an N-gram.
n ∈ {1, 2, 3}
Here n is the number of words in a name sequence. The symbol ∈ means that n is a member of the set in braces. The indexed sequences therefore cover individual words, adjacent pairs, and adjacent triples.
At lookup time, the system makes corresponding sequences from the detected span and queries the index. It looks at the longest order first. If it finds an exact entity match there, it stops before checking shorter orders. Otherwise it backs off. The effect of this rule is to use the more specific matches when available and to permit broader retrieval when the more specific search fails. A query for a sequence of several words can be more selective than a query for any of those words individually. Conversely, a detected span or a graph label that differs in part may still share a shorter sequence.
Entries retrieved during lookup go into a candidate list. The linker ranks them by the resemblance between the detected string and each entry's canonical label, using Levenshtein distance. This distance describes how much editing is required to turn one string into another. For the implementation, the authors use the ratio function in the Python package fuzzywuzzy. The index and the edit comparison serve different purposes. The index finds entries worth considering, and the comparison orders the entries that have been found.
This string-based linker stays in place when the authors change the name detector or the relation classifier. It has a predictable source of ties. If several MIDs have the same canonical label, each label has the same resemblance to the detected words. A good string match can therefore produce a group of equally plausible entries as far as the linker is concerned. Later stages can use the requested relation and the graph structure to distinguish some of those entries. If retrieval omits the intended MID, later stages have no entry to recover.
Predict the relation from the whole question
The relation predictor treats the question as a single classification example. Each Freebase predicate under consideration is a possible class. In a question about someone's birthplace, words about where the person was born give a clue to the appropriate predicate even though the sentence does not contain a formal Freebase path. The classifier learns how question wording corresponds to those predicates. The predicted name span is not its input. It receives the whole tokenized question, so cues from any position remain available.
The recurrent classifiers use the same general architecture as the recurrent taggers. The difference is where they read out the prediction. The tagger needs a representation and a decision at every position. For relation prediction, the paper takes the forward and backward hidden states at the final token and uses them to make a single decision about the question. The score at the output concerns a relation, rather than the membership of a particular word in the subject span.
The convolutional alternative looks for useful local sequences. It applies filters of widths two to four to the sequence of embedded words. A filter can respond to a short pattern at several places in the question. Max pooling keeps its strongest response across positions, and a fully connected layer uses the pooled responses to produce relation scores. A softmax turns the output scores into a distribution over the relation classes. The authors use a single, fixed embedding channel and omit attention. The design is a simplification of the sentence classifier described in Convolutional Neural Networks for Sentence Classification.
The convolutional and recurrent variants offer distinct routes to a whole-question decision. A recurrent classifier reads out a representation made by processing the sequence, while the pooled convolutional classifier keeps strong responses to local patterns. The birthplace wording makes it easy to see how nearby words could be informative, but the paper tests these alternatives across the benchmark rather than assigning any particular class of questions to one architecture. Both give the next stage a ranking of relation candidates.
The paper also tries logistic regression, a classifier that assigns scores from weighted input features. The first feature set gives weights to individual words and pairs of adjacent words using TF-IDF. This weighting takes account of how frequent a term is in the input and how widely it occurs across the collection. Single words can serve as cues, and adjacent pairs preserve some local order. The classifier can learn to associate those features with particular predicate classes without a recurrent or convolutional layer.
The other logistic regression variant uses a representation built in two parts. For the first part, it averages the word embeddings of the question tokens into a single vector. The average gives the classifier access to shared information across words with similar vectors, while treating the same words in different orders alike. For the second part, it adds explicit lexical indicators whose dimensions come from the top 300 terms in relation names. Freebase names such as people/person/place_of_birth give an idea of the vocabulary the paper draws on. These indicators let a recognizable word act as a distinct clue alongside the information carried by the embedding average.
The two logistic regression variants test different ways to make the wording useful to the same kind of classifier. The TF-IDF version relies on terms and adjacent pairs found in questions. The embedding variant gives that classifier both a continuous representation and a vocabulary tailored to the relation names. The authors distinguish the latter from the pipeline that avoids neural representations altogether because its inputs include pretrained word vectors. Their implementation uses GloVe.
Combine the search results and use the graph
The linker provides a ranked set of MIDs, and the classifier provides a ranked set of relations. The system keeps a selected number from each ranking and pairs every retained entry with every retained relation. Before checking the graph, the number of pairs is the product of the two list sizes.
m × r
Here m is the number of entity candidates retained from the linker and r is the number of relation candidates retained from the classifier. The multiplication sign × means that each of the m candidates is paired with each of the r candidates. The authors choose the list sizes on the validation set.
The initial score of a pair is formed by multiplying the two component scores. Written with a name for each score, that operation is:
s(e, p) = sₑ(e) × sᵣ(p)
Here e is a candidate Freebase entity and p is a candidate predicate. The score of their pair is s(e, p). The term sₑ(e) is the linker's score for the entity, and sᵣ(p) is the relation predictor's score for the predicate. The equals sign defines the combined score and × denotes multiplication. The product uses evidence from both rankings without requiring the linking and relation components to be trained together.
The graph then rules out pairs that have no corresponding fact. Suppose the classifier ranks a relation highly and the linker ranks an identically named entry highly. The combination remains useful only if the relation actually occurs for that entry. This check lets the linker and classifier influence each other's final interpretation through the graph. A relation ranked below the classifier's first choice can still support the answer if a compatible entity is available and higher-scoring combinations fail the graph check.
Some pairs remain tied after this step. This is especially easy to see when several people called Adam Smith receive the same linking score and each supports the relation under consideration. The paper's first preference is for the entry with more incoming edges, a quantity called in-degree. An incoming edge records another graph entry's relation to the candidate. The authors treat more incoming edges as a clue that a question may refer to this entry. If a tie needs a further decision, the procedure favors an entry that has a Wikipedia mapping. Both signals come from the graph and its records about entities. The wording of the name is identical across the cases that motivate their use.
The ordering of these decisions matters. The graph check concerns whether a pair is possible in the data used by the system. The preferences for in-degree and Wikipedia concern which of the remaining tied possibilities to choose. An entry can be structurally prominent while still being the wrong answer to a particular question. By using these preferences for ties, the authors employ them where the preceding scores leave the choice unresolved.
Build the annotations and train the components
SimpleQuestions supplies an answer triple for each question. That triple gives the subject MID, but a tagger also needs to know which words in the question refer to that subject. The authors recover this information using the names file from Dai and colleagues. They take the name associated with the known MID and align it to the words of the question. An exact occurrence supplies a span directly. If the entity name does not appear verbatim, the procedure looks for the word sequence that minimizes Levenshtein distance from that name. The matched span supplies the positive token labels for the resulting linguistic annotation.
This alignment and the inference-time linking search both use name similarity, but they start from opposite ends. In constructing the annotations, the authors already know the correct subject and are looking for its occurrence in the question. At prediction time, the system has words supplied by the detector and is looking for an unknown subject identifier. A closest string in the annotation procedure can give a useful training target even when the wording and the name file differ. That same approximation can also produce a noisy target. By contrast, the predicate class for a relation training example is supplied by the recorded triple.
The neural implementations use GloVe vectors of size 300. The authors optimize negative log likelihood using Adam, beginning at a learning rate of 0.0001. Negative log likelihood penalizes the system for assigning low probability to the observed target tag or relation. The authors search randomly over hyper-parameter settings and choose them on the development set. In the final configuration, the LSTM and GRU hidden states and the hidden layers of the multilayer perceptrons have size 300. The convolutional output channel also has size 300. Dropout rates are 0.5 for the convolutional architecture and 0.3 for the recurrent architectures.
The experiments used PyTorch v0.2.0 and CUDA 8.0 on an NVIDIA GeForce GTX 1080 GPU. The CRF uses the Stanford NER tagger, and the logistic regression implementations use scikit-learn. These details distinguish the shared experimental setup from the particular changes being compared. Varying the entity detector changes the source of the span, while the index and final graph checks still process the resulting candidates. Varying the relation classifier changes the predicate ranking supplied to those checks. The authors release the implementation as open source.
Experiments and results
What counts as a correct prediction
SimpleQuestions contains 75.9k training questions, 10.8k validation questions, and 21.7k test questions. Each question comes with a Freebase subject, predicate, and object that together answer it. The experiments use the 2M-subset of Freebase, following earlier studies. The training questions provide examples for fitting the components. The validation questions are used to select hyper-parameters and how many candidates to combine, as well as to report the intermediate evaluations. The final system comparisons use the test questions.
Entity detection is evaluated on contiguous spans of words bearing the entity tag. Precision asks how many predicted spans match the annotated spans, and recall asks how many annotated spans are recovered. F1 combines precision and recall, so a detector needs to find the names without introducing too many incorrect spans. This evaluation treats the span as the unit of interest. The words recovered by the detector can still be useful to the linker when the span is imperfect by this measure.
The next stages are evaluated by whether they include the right answer at a specified depth in a ranked list. The paper writes this measure as:
R@N
Here R stands for recall and N is the number of leading results considered. The @ indicates the cutoff at which recall is evaluated. On a given question, the linking stage succeeds at that cutoff if the list contains the correct MID. For relation prediction, it succeeds if the list contains the correct predicate. A higher cutoff allows a later stage to consider alternatives that the component would have missed if only its first choice were retained.
For the full pipeline, the authors require the predicted subject and predicate to both match the benchmark. They report accuracy, equivalent to R@1 for the final joint prediction. This criterion explains why a correct relation alone or a correctly matched name string cannot earn credit. The system is evaluated on identifying the fact through its subject and relation, rather than on the fluency of a written answer.
The authors use 20 random seeds for the entity detection experiments and 50 for the relation prediction experiments. In the comparisons for which they report ranges, they give the mean and the lowest and highest observed scores. Those endpoints describe the runs that were performed. They avoided a distributional summary that would require them to assume the scores followed a normal distribution. The paper draws this reporting practice from work on variability in sequence tagging. Reporting Score Distributions Makes a Difference
Detecting the span and retrieving the entry
On the validation set, the bidirectional LSTM achieves mean F1 of 93.1 for entity detection. Its lowest and highest observed scores are 92.8 and 93.4. The CRF reaches 90.2 F1. The authors also report that the bidirectional LSTM outperforms the bidirectional GRU on this stage. The published discussion gives the direction of that recurrent comparison, while the reported F1 figures support a direct comparison between the LSTM and CRF.
Entity detection F1 on the SimpleQuestions validation set
The bidirectional LSTM has higher span F1 than the conditional random field.
The numbers
| System or setting | F1 |
|---|---|
| Conditional random field | 90.2 |
| Bidirectional LSTM (this paper) | 93.1 |
When the authors feed the detectors' output into the same linker, the CRF and LSTM give comparable entity retrieval results. Detection F1 and linking recall measure different successes, and the paper's results show that the ordering on the former gives an incomplete picture of the latter. A slightly different span can still produce useful index queries, while a perfectly identified name can retrieve many distinct MIDs with the same label. The two stages can therefore disagree about which questions have been handled successfully.
The authors' error analysis finds entries with highly ambiguous labels. Even at a depth of 50 candidates, the correct MID is absent more than 10% of the time in the linking evaluation. This is a consequential failure for the full system. The following stage can prune an incompatible pair or choose among tied entries. It can do either only with candidates the linker has retrieved.
Predicting the relation
For relation prediction, the validation comparisons include the convolutional classifier, recurrent classifiers, logistic regression, and component results from Ture and Jojic. The authors say they improve slightly on the latter evaluation and identify it as the earlier study for which they found an equivalent component comparison. This narrower comparison helps interpret the relation results, since end-to-end scores from other papers also include their choices about entities and evidence integration.
Among the authors' classifiers, the convolutional network has a slight edge over the bidirectional GRU on validation R@1. The GRU in turn has a slight edge over the bidirectional LSTM. At R@5, the convolutional classifier and the bidirectional GRU perform essentially alike. The logistic regression classifiers trail the neural alternatives. This is where the paper finds a clearer advantage for using neural networks in the pipeline, even though the choice between its leading neural classifiers depends on which part of the ranking is examined.
The comparison at R@5 matters for the way the results are used. The integration stage can still produce a correct answer when the relation classifier puts the right predicate below its first choice, provided that the predicate survives the cutoff and the graph offers a compatible subject. An advantage at R@1 counts more directly in a pipeline that always uses the top predicate. For the authors' procedure, availability among the retained alternatives is also relevant.
Predicting the complete pair
On the validation set, the authors find that retaining 50 entity candidates and five relation candidates works best for the final integration procedure. To obtain the end-to-end minimum and maximum scores, they cross 10 randomly selected trained entity variants with 10 trained relation variants. This lets the reported range reflect different pairings of trained components. It is a different operation from inspecting the minimum and maximum of one component in isolation, because any full-system prediction depends on which candidates both components supply.
The best end-to-end combination uses the bidirectional LSTM for detecting the subject span and the bidirectional GRU for predicting the relation. It achieves 74.9 accuracy on the SimpleQuestions test set. The corresponding configuration with a CRF detector reaches 73.7. The entity linking method is shared across these two settings, so the change is in the stage that supplies words to the linker. The paper reports a 1.2 absolute decrease in accuracy for that substitution.
The authors also report that replacing the GRU relation classifier with the convolutional classifier changes test accuracy by at most a decrease of 0.2 in the combinations discussed. The comparison underscores the difference between winning the validation measure for the first relation candidate and winning the test measure for the complete entity–relation pair. The convolutional classifier leads slightly at the former, while the strongest complete combination includes the GRU.
End-to-end accuracy on the SimpleQuestions test set
The bidirectional LSTM and GRU give the highest accuracy, while the conditional random field remains competitive when paired with the GRU.
The numbers
| System or setting | accuracy % |
|---|---|
| CRF and logistic regression with TF-IDF | 67.3 |
| CRF and logistic regression with embeddings and relation terms | 69.9 |
| CRF and bidirectional GRU | 73.7 |
| Bidirectional LSTM and bidirectional GRU (this paper) | 74.9 |
Pairing the CRF with logistic regression yields 69.9 test accuracy when the classifier uses embeddings and relation vocabulary features. Using the TF-IDF version gives 67.3. The latter configuration avoids neural networks and pretrained word embeddings. It improves on the original SimpleQuestions result from Bordes and colleagues. That historical comparison establishes that a pipeline built from these particular non-neural components is a credible benchmark competitor. It compares complete systems, which differ in more than the use of a neural network.
The best pipeline is close to a group of stronger published systems. The authors single out a considerably higher score reported by Ture and Jojic, which they were unable to reproduce. They say that the source code for that system did not appear to be available online. With that result set aside, the authors describe their best result as two points below the next-highest reported result. That comparison is conditional on the results included and on the differences in reporting practice between the studies. The paper treats it as evidence that elaborate published systems often had only a modest lead over a carefully constructed baseline.
What the ablations show
Changing the detector has a smaller effect after linking
Replacing the bidirectional LSTM with the CRF is one of the cleanest component comparisons in the study. The recurrent detector scores higher on validation span F1, while the complete pipeline with the CRF detector still reaches 73.7 on the test set with the GRU relation classifier. The paper describes the substitution as a 1.2 absolute drop in full-system accuracy. Following the comparison through the pipeline is more informative than using the span result alone to estimate the value of the recurrent detector.
The linking results identify where much of the uncertainty remains. Better span boundaries do not distinguish two entries with the same canonical name. The fuzzy index can also give the same useful candidates to two detections that differ at a word near a boundary. The paper reports comparable linking results for the two detectors, which is consistent with both effects. It does not assign a share of the observed result to either one. The controlled change shows that the CRF supplies usable input to this linker even though it is weaker at the annotated span task.
The long tail of same-label entities suggests that two kinds of errors deserve separate attention. In one, the intended entry never reaches the list the final stage uses. In the other, it reaches that list but loses to a competing interpretation. The linking analysis establishes the first problem directly at the reported depth and describes ambiguity as a source of difficulty. The evidence integration rules address the second problem among retrieved entries. Keeping these cases distinct matters when explaining the effect of a better detector, since they offer different opportunities for a downstream component to recover.
Changing the relation classifier alters the ranking in different ways
The comparison between the convolutional classifier and the bidirectional GRU also looks different depending on the stage. The convolutional classifier does slightly better when validation credit goes to the first relation. At the broader cutoff, their results are essentially the same. The final graph check has access to multiple predicates, so the small advantage in the first position need not carry through. On the test set, the recurrent classifier is part of the strongest overall pairing and the authors report only a small change when it is replaced with the convolutional classifier.
This comparison shows the value of testing a component under the conditions in which its output is used. A ranked list with a useful alternative can support the same final answer as a list with that predicate first. The final decision still depends on the scores and graph compatibility, so equal recall at a given depth does not guarantee equal accuracy. The paper's results establish that the two rankings were similarly useful to this integration procedure across the test set. They leave open how the errors of the two classifiers overlap question by question.
The contrast with logistic regression is larger. With the CRF and the linking procedure in place, the pipeline does better when it uses the GRU for relation prediction. Together with the validation relation comparisons, this supports a role for the neural classifier in recognizing which predicate a question requests. The strongest evidence here comes from exchanging relation predictors in a shared pipeline. The comparison with the original benchmark system supplies historical perspective, but cannot isolate what the relation predictor contributed.
Changing the features improves the linear alternative
The two logistic regression versions exchange complete feature representations while keeping the classifier family and the other parts of the pipeline in place. The hybrid embedding and relation-term input reaches 69.9 test accuracy with the CRF, compared with 67.3 for TF-IDF. This shows that the choice of inputs matters even when the relation predictor uses the same kind of decision rule. It also gives two different baselines for interpreting the neural results. One asks what a linear classifier can do with pretrained vectors and explicit predicate vocabulary. The other asks what can be achieved with a CRF, sparse text features, and graph search.
The feature comparison changes several things together. It adds word vectors and relation-term features while dropping the TF-IDF representation of question unigrams and bigrams. The result measures the effect of switching between those feature packages. It cannot say how much of the difference came from averaging embeddings, how much came from explicit relation terms, or how the result would change if the packages shared some of their inputs. Treating it as a comparison of complete inputs preserves what the experiment actually controls.
Search depth and tie-breaking are part of the result
The validation search for a candidate depth is another comparison within the pipeline. Allowing several entries and predicates gives the final stage more chances to encounter the intended pair. It also gives the procedure more pairs to check and more potentially competing interpretations. What worked best in the authors' validation search reflects those effects together. It does not imply that the highest cutoff will always give the best end-to-end result, even though recall of an individual ranked list can only stay the same or improve as the cutoff is enlarged.
The structural tie-breakers have a clear purpose, but the paper does not give a separate score for removing each one. The study shows how incoming edges and Wikipedia mappings are used after incompatible pairs have been removed. It does not quantify their individual contributions. Similarly, the comparisons with previously published attention and residual architectures concern complete systems. The authors propose adding architectural elements back into a common baseline in controlled experiments. Those experiments would answer a narrower question than the cross-system comparisons reported here.
Limitations
Limits the authors identify
The authors make training variability part of the interpretation. Different random initializations can produce different scores even when the architecture and data remain the same. Reporting the observed mean, minimum, and maximum makes this variation visible for the experiments that use multiple runs. Earlier studies frequently publish a single score. A single published number does not reveal how typical that result was, so the paper cautions against reading a small separation between reported results as a reliable architectural advantage.
The authors also cite research on answer selection showing that software versions and other implementation details can affect measured accuracy enough to rival incremental improvements. This observation is a reason for care when comparing studies conducted in different setups. The paper's own run ranges describe the effects observed under its experiments. They do not measure how much those particular results would change with a different software stack. Questionable Answers in Question Answering Research
The much higher published score from Ture and Jojic is an explicit unresolved comparison. The authors found that result difficult to reproduce and did not find its code online. Their statement about proximity to the best published results therefore depends on how that comparison is handled. The experiments establish an outcome for the pipeline and data configuration they studied. They do not establish why the other score was higher.
The authors acknowledge noise in the entity detection annotations. Where a canonical name has no exact occurrence, the nearest string is used as the location of the subject. The procedure supplies needed token labels, but string similarity cannot guarantee that every inferred boundary reflects what a person would mark. This affects the evidence used to train the detector and the interpretation of span scores measured against those annotations. The full-system correctness criterion uses the recorded subject and predicate and is a different check.
A further limit concerns the meaning of architectural complexity. The authors regard the recurrent and convolutional baselines as simpler than several published systems, but leave a general comparison of complexity open. Parameter count is a rough description. It does not show which patterns different arrangements of layers can learn easily. They also raise the question of how the tradeoff between complexity and accuracy changes with the amount of training data. Their experiments establish results for the configurations they trained on SimpleQuestions, while leaving that broader relationship for future work.
Limits that follow from the setup
The task supplies a graph and questions constructed around facts in it. Within that setting, pruning a pair that is absent from the graph is a sensible way to enforce the requirements of the benchmark. A system faced with a question whose answer is missing from the available graph would have no corresponding pair to recover. Similarly, a question whose answer depends on connecting several facts lies outside the single-fact design. The reported accuracy quantifies success within a restricted fact lookup task.
The exact-match criterion has implications for questions whose wording permits more than one interpretation. It rewards agreement with the recorded MID and predicate. If two entries have the same name and support the same requested relation, a reader may have little basis for identifying the intended one from the question alone. The graph popularity rules make a choice possible, but they cannot supply missing linguistic context. The paper identifies same-label ambiguity and analyzes retrieval difficulty. It does not measure how often a different plausible reading would deserve credit.
Incoming edge counts and Wikipedia mappings are also properties of the available graph data. An entry with more links can be a plausible default, but a question can still be about a less connected namesake. The study's justification for the heuristics is their use in breaking scoring ties. It does not examine whether their effects vary across kinds of entities or how well they transfer to a graph with different coverage. Their contribution should be read in connection with the Freebase subset, candidate generation, and scoring rules that give rise to the ties.
The conclusion about practical simplicity has a similar boundary. The authors make a case for considering maintenance when a more elaborate system offers a small accuracy gain. Their measured outcomes here are task performance and variation across runs. They give implementation settings, but no comparative maintenance measurements or deployment costs. The study therefore lets readers judge the accuracy needed to make such a tradeoff, while leaving its operational cost to be established in the intended deployment.
Finally, a strong baseline can set the bar for testing a technique without determining the outcome of that test. Several attention-based or residual systems in the review make different choices elsewhere in their pipelines. The experiments show that basic recurrent and convolutional architectures can be competitive with those complete systems on SimpleQuestions. A conclusion about the independent value of a specific architectural addition would require a matched comparison in which that addition is the controlled change.
What came after
Reconsidering the SimpleQuestions benchmark
Petrochuk and colleagues return to SimpleQuestions itself in SimpleQuestions Nearly Solved. Their work puts a new upper bound alongside a new baseline approach. This extends the benchmark question in a distinct direction. The strong baselines paper asks how much of the reported performance is reachable with straightforward components. An upper-bound study also asks how much room the benchmark leaves for improvement. Together those questions matter when deciding what a small gain tells us, particularly on a benchmark where the intended subject can be difficult to resolve from a name alone.
Moving beyond a single fact
Saxena and colleagues cite the paper in Improving Multi-hop Question Answering over Knowledge Graphs. Their stated approach uses knowledge base embeddings for questions that require multiple hops. A hop is a step along a relation in the graph. This changes the scope of the answering problem. In SimpleQuestions, identifying the subject and predicate can locate the fact needed for the answer. Multi-hop questions extend the search beyond the immediate relation of a starting entity. The earlier paper supplies a point of comparison for the single-fact task, while the later work focuses on a setting where that lookup no longer completes the question.
Broadening the questions used for evaluation
Abujabal and colleagues present ComQA, a community-sourced collection of complex factoid questions organized with paraphrase clusters. This changes what a benchmark asks a system to handle. Complex questions broaden the task beyond the single-fact questions studied in SimpleQuestions, and paraphrase clusters give related formulations a place in the design of the collection. Where the strong baselines study holds the benchmark fixed to compare components, ComQA addresses which questions and which forms of variation an evaluation can represent.
Cite
Cite as Salman Mohammed, Peng Shi and Jimmy Lin. 2018. Strong Baselines for Simple Question Answering over Knowledge Graphs with and without Neural Networks. Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers).
@inproceedings{mohammed2018strong,
title = {{Strong Baselines for Simple Question Answering over Knowledge Graphs with and without Neural Networks}},
author = {Salman Mohammed, Peng Shi and Jimmy Lin},
booktitle = {Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers)},
year = {2018},
doi = {10.18653/v1/n18-2047},
eprint = {1712.01969},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/n18-2047}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/mohammed-2018-strong-baselines-simple-question-answering/
References
- 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 2013). Seattle, Washington, pages 1533–1544. our card
- Jonathan Berant and Percy Liang. 2014. Semantic parsing via paraphrasing. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (ACL 2014). Baltimore, Maryland, pages 1415–1425. our card
- Antoine Bordes, Nicolas Usunier, Sumit Chopra, and Jason Weston. 2015. Large-scale simple question answering with memory networks. arXiv:1506.02075v1. OpenAlex ↗ · Scholar ↗
- Matt Crane. 2018. Questionable answers in question answering research: Reproducibility and variability of published results. Transactions of the Association for Computational Linguistics 6, to appear. our card
- Zihang Dai, Lei Li, and Wei Xu. 2016. CFO: Conditional focused neural question answering with large-scale knowledge bases. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (ACL 2016). Berlin, Germany, pages 800–810. OpenAlex ↗ · Scholar ↗
- Jenny Rose Finkel, Trond Grenager, and Christopher Manning. 2005. Incorporating non-local information into information extraction systems by Gibbs sampling. In Proceedings of the 43rd Annual Meeting of the Association for Computational Linguistics (ACL 2005). Ann Arbor, Michigan, pages 363–370. our card
- David Golub and Xiaodong He. 2016. Character-level question answering with attention. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing (EMNLP 2016). Austin, Texas, pages 1598–1607. OpenAlex ↗ · Scholar ↗
- Yoon Kim. 2014. Convolutional neural networks for sentence classification. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP 2014). Doha, Qatar, pages 1746–1751. our card
- Guillaume Lample, Miguel Ballesteros, Sandeep Subramanian, Kazuya Kawakami, and Chris Dyer. 2016. Neural architectures for named entity recognition. In Proceedings of the 15th Annual Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL/HLT 2016). San Diego, California, pages 260–270. our card
- Denis Lukovnikov, Asja Fischer, Jens Lehmann, and Sören Auer. 2017. Neural network-based question answering over knowledge graphs on word and character level. In Proceedings of the 26th International World Wide Web Conference (WWW 2017). Perth, Australia, pages 1211–1220. OpenAlex ↗ · Scholar ↗
- Xuezhe Ma and Eduard Hovy. 2016. End-to-end sequence labeling via bi-directional LSTM-CNNs-CRF. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (ACL 2016). Berlin, Germany, pages 1064–1074. our card
- Gábor Melis, Chris Dyer, and Phil Blunsom. 2017. On the state of the art of evaluation in neural language models. arXiv:1707.05589v2. OpenAlex ↗ · Scholar ↗
- Jeffrey Pennington, Richard Socher, and Christopher D. Manning. 2014. GloVe: Global vectors for word representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP 2014). Doha, Qatar, pages 1532–1543. our card
- 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 ↗
- Nils Reimers and Iryna Gurevych. 2017. Reporting score distributions makes a difference: Performance study of LSTM-networks for sequence tagging. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing (EMNLP 2017). Copenhagen, Denmark, pages 338–348. our card
- D. Sculley, Gary Holt, Daniel Golovin, Eugene Davydov, Todd Phillips, Dietmar Ebner, Vinay Chaudhary, and Michael Young. 2014. Machine learning: The high-interest credit card of technical debt. In Proceedings of the NIPS 2014 Workshop on Software Engineering for Machine Learning. Montreal, Quebec, Canada. OpenAlex ↗ · Scholar ↗
- D. Sculley, Jasper Snoek, Alex Wiltschko, and Ali Rahimi. 2018. Winner's curse? On pace, progress, and empirical rigor. In Proceedings of the 6th International Conference on Learning Representations, Workshop Track (ICLR 2018). OpenAlex ↗ · Scholar ↗
- Ferhan Ture and Oliver Jojic. 2017. No need to pay attention: Simple recurrent neural networks work! (for answering “simple” questions). In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing (EMNLP 2017). Copenhagen, Denmark, pages 2856–2862. OpenAlex ↗ · Scholar ↗
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. arXiv:1706.03762v5. our card
- Xuchen Yao. 2015. Lean question answering over Freebase from scratch. In Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Demonstrations (NAACL/HLT 2015). Denver, Colorado, pages 66–70. OpenAlex ↗ · Scholar ↗
- Wenpeng Yin, Mo Yu, Bing Xiang, Bowen Zhou, and Hinrich Schütze. 2016. Simple question answering by attentive convolutional neural network. In Proceedings of the 26th International Conference on Computational Linguistics (COLING 2016). Osaka, Japan, pages 1746–1756. OpenAlex ↗ · Scholar ↗
- Mo Yu, Wenpeng Yin, Kazi Saidul Hasan, Cicero dos Santos, Bing Xiang, and Bowen Zhou. 2017. Improved neural relation detection for knowledge base question answering. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (ACL 2017). Vancouver, British Columbia, Canada, pages 571–581. OpenAlex ↗ · Scholar ↗