Self-Supervised Knowledge Triplet Learning for Zero-Shot Question Answering
Paper · 2020 · Pratyay Banerjee and Chitta Baral
Summary
A multiple-choice question comes with several answers that may sound plausible. What makes one of them fit can depend on a detail in the situation, the particular thing the question asks, or a fact that the question leaves unstated. The authors ask whether a system can learn to judge that fit without being trained on the correct choices for the task it will face. Their approach to zero-shot question answering starts from a knowledge graph, where a fact or an association is broken into a head, a relation and a tail. The graph supplies the training targets. At evaluation, the corresponding roles are the context, the question and a candidate answer.
In Knowledge Triplet Learning, the system practices recovering any part of a complete triple from the other parts. To evaluate an answer, it checks how well the context and question predict that answer. It also checks how well the question and candidate predict the context, and how well the context and candidate predict the question. The authors compare a version that predicts numerical representations with one that reconstructs spans of text hidden from a RoBERTa encoder. They draw training triples from ATOMIC for social commonsense, link sentences through shared concepts for science and general commonsense, and use the order of events in short stories to build triples for abductive reasoning. When a benchmark supplies no context, the system retrieves sentences from a knowledge corpus.
Reconstructing masked text gives the strongest overall zero-shot results. On the development splits, it reaches 65.3 accuracy on aNLI and 48.5 on SocialIQA. The gains are more modest on ARC-Challenge, where the authors find that their science corpus supplies insufficient evidence for many questions. The few-shot learning experiment shows a separate benefit. With 8% of the labeled training data, the same kind of pretraining yields a SocialIQA validation accuracy of 69.1 ± 0.4, compared with 44.4 ± 1.2 for the ordinary RoBERTa classifier under the few-shot setup.
The experiments also show where the improvement comes from and where it breaks down. Which part of the triple is most informative varies across tasks, and using all the reconstruction scores gives the highest reported accuracy in the comparison. Selecting training triples for their relevance to the benchmark helps more than drawing a large random sample. Supplying benchmark-identified supporting facts produces a particularly large increase on QASC and OpenBookQA. The approach can make better use of relevant evidence than the paper’s baselines, while its performance with retrieved context still depends on whether that evidence reaches the scorer.
Deep dive: Self-Supervised Knowledge Triplet Learning for Zero-Shot Question Answering
Knowledge Triplet Learning uses facts and stories to train a system to rank multiple-choice answers without labeled examples from the target task. · about 36 minutes to read
The problem and its context
Learning to choose without a labeled answer key
In a supervised multiple-choice benchmark, each training question indicates which candidate is correct. That gives a system a direct way to practice the decision it will make at evaluation. It also gives the system access to regularities in how the examples were written. If the wording of distractors or the form of the questions has a recurring pattern, an answer selector can benefit from that pattern even when it has learned little about the knowledge the benchmark was designed to test. The authors connect this concern to reports of annotation artifacts in other language tasks. They also point to the effort invested in controlling those artifacts in WinoGrande.
The paper pursues a different way of obtaining supervision. Rather than using the answer keys from a benchmark, it makes prediction exercises from an external store of facts or events. The distinction matters for interpreting the term zero-shot. The system enters the benchmark with substantial prior training and may use its question and option text to find relevant knowledge. What it goes without is training on the benchmark’s labeled answer selections. The authors are testing whether practice with factual and narrative relationships can transfer to the decision of which proposed answer belongs with a question.
They distinguish their task from extractive question answering. In an extractive setup, a system identifies an answer span in text. The paper gives HotpotQA and Natural Questions as examples of benchmarks in that tradition. A multiple-choice benchmark supplies the possible outputs in advance. The procedure can therefore inspect each candidate and ask how well it fits the rest of the item. It can use an option as an input to a prediction as well as a target to be predicted.
Even within multiple-choice answering, the input varies considerably. A social question can arrive with a description of someone’s actions. An abductive question can ask for a plausible event connecting observations. A science question can arrive without any supporting passage. The first two cases give the system text that constrains its reading of the options. In the last case, it may have to obtain a useful sentence before it can evaluate the same kind of three-part relationship. This variation motivates separate choices about where to obtain training triples and what to put in the context slot at evaluation.
What earlier approaches supplied
The paper describes prior unsupervised question answering in terms of transfer and synthetic data. Some approaches adapt knowledge or skills learned elsewhere. Others construct practice questions from text. In the extractive work discussed by the authors, a corpus such as Wikipedia can provide a passage and an answer, with a question supplied by a template or by transforming another textual form. The resulting exercise resembles the eventual extractive task, so a system can practice finding answer spans without a person writing each question.
Other work uses generative systems to propose background knowledge, possible answers or questions that clarify what is being asked. The proposed text can then be compared with the choices. The paper discusses Self-Talk in this line of work and later includes its available results as a comparison. The connection to Knowledge Triplet Learning is that both approaches seek useful predictions beyond simply filling an answer slot. In Knowledge Triplet Learning, which prediction to make is specified by the position withheld from a triple, and the output is evaluated against a component already available in the example.
The authors also distinguish ways in which earlier work brought external knowledge into question answering. A system can learn contextual representations from a large, unstructured body of text, as in Deep Contextualized Word Representations and BERT. It can use a structured resource to enrich word or phrase representations. It can retrieve a relevant sentence or graph triple for a particular question. These approaches give external knowledge different roles. It can determine what is learned before questions arrive, what is accessible when a question arrives, or both. The paper’s science and general commonsense experiments make use of both roles.
A related line of work asks whether a pretrained system can supply a fact when a relation is expressed through a sentence template. The example the paper discusses is Language Models as Knowledge Bases?. In that setup, an entity and a relation constrain a masked position. Knowledge Triplet Learning trains on the three possible omissions and adapts the resulting scores to a choice among complete candidate triples. A prediction can concern an entire question or a context sentence instead of a single masked token.
From graph completion to a question-answering exercise
The paper places its task alongside knowledge representation and reasoning. A graph representation can encode heads, relations and tails as vectors so that known facts have a recognizable geometry. The authors describe TransE as treating a relation as a translation between entity vectors. They also discuss TransH as an attempt to handle more complex relationships and TransD as a source of ideas about projecting the inputs separately.
Graph completion asks which relation or entity could fill a missing place in a graph. The paper extends the prediction exercise to the head as well as the relation and tail. It also allows the different positions to have very different kinds of content. In a social triple, the head can be an event written as a clause and the tail a short description of a person. At evaluation a head can be a passage and a relation a question. The graph supplies the pattern of dependence the authors want to teach, while the pieces it connects can differ in length, form and purpose.
The method, step by step
Turning a fact into reconstruction exercises
Start with a description of someone trusting another person. A commonsense resource can connect that event to a judgment of the person’s character. It can record the description of the event as the head, a question about how the person is perceived as the relation, and a descriptor such as faithful as the tail. These are the roles illustrated by the paper’s example from ATOMIC. The resource puts a clause and a short descriptor in the same set of vertices because both can serve as endpoints of relations.
A complete triple of this kind provides several targets. With the description and the question present, the target is the descriptor. With the question and descriptor present, the target is the event description. With the event and descriptor present, the target is the question that makes the descriptor a fitting response. The middle case is particularly easy to misread. The aim is to recover a recorded situation consistent with the question and descriptor. A question about character and an answer like faithful leave room for many other situations too.
The question reconstruction direction has a related ambiguity. The same event can support a question about the person who acts or one about the effect on somebody else. If a proposed answer sounds reasonable in the first situation but addresses the second question, predicting the question from that answer provides a way to register the mismatch. This motivates treating the question as something to evaluate against a prediction, even though it is supplied in the original multiple-choice item.
The graph and its collection of facts can be written as follows.
G = (V, E)
Here G is the graph, V is its set of vertices, and E is its set of edges or relations. The parentheses group the vertex and edge sets that define the graph.
S ⊆ V × E × V
S is the set of recorded fact triples. The symbol ⊆ says that S is contained within the combinations on the right. The Cartesian product × specifies a tuple with a vertex in the first position, a relation in the middle and a vertex in the last position.
(h, r, t)
In this ordered tuple, h is the head, r is the relation and t is the tail. For question answering, the authors associate those positions with context, question and candidate answer, respectively. In their synthetic corpora, the roles can be assigned to sentences and concepts instead, according to the construction procedure.
fₜ(h, r) ⇒ t
fₜ is the function that predicts the tail t. It takes the head h and relation r as inputs. The arrow ⇒ indicates the prediction target. When the positions are interpreted as parts of a question-answering item, this is the direction that predicts an answer from a context and a question.
fₕ(r, t) ⇒ h
fₕ is the head prediction function, r is the question or relation, and t is the answer or tail. Its target h is the observed context or head. The arrow indicates that the prediction is trained against that recorded component.
fᵣ(h, t) ⇒ r
fᵣ is the relation prediction function. It takes h, the head or context, and t, the tail or answer, and predicts r, the relation or question joining them. Again, ⇒ marks the target of the prediction.
The functions define the same exercise at an abstract level. They can be implemented by learning to recover vectors or by predicting the tokens of the missing text. The graph establishes which pieces appear together during training. The multiple-choice evaluation supplies the proposed pieces and asks the scorer how compatible they are.
From knowledge triples to a multiple-choice answer
The steps in order.
Building triples from facts and stories
The route from a knowledge source to a triple depends on what that source records. ATOMIC already supplies events, relation types described in language, and associated responses. The system can use these triples to practice combinations relevant to social situations. SocialIQA is the target benchmark paired with this source. The hand-built structure in ATOMIC means that self-supervision here refers to obtaining targets from the triples. It leaves intact the human work that went into defining and populating the resource.
For science and general commonsense, the available source can be a corpus of complete statements. The authors construct a Common Concept Graph to turn such statements into linked material. They use spaCy part-of-speech tagging to extract noun and verb chunks. A chunk can contain a noun phrase or a verbal expression that serves as a concept in the construction. The chunks become vertices and sentences act as edges associated with their chunks. To obtain a training example, the procedure takes sentences that share a concept and places that concept in the last slot.
The sample about clouds makes the representation concrete. A sentence about moist Pacific air and low stratus clouds and another about clouds regulating atmospheric and oceanic processes both supply the concept clouds. The authors put the sentences in the head and relation positions, and the common concept in the tail position. The order of the slots matters to the training exercise. A withheld concept is inferred from the sentences. A withheld sentence is inferred from its counterpart and the concept they share. The middle slot of this training triple is thus a statement, whereas a question occupying the middle slot at evaluation may have to be converted into a statement.
The authors build this kind of graph from the QASC science corpus and the Open Mind Commonsense corpus, abbreviated OMCS. The paper puts the source sizes at around 17M sentences for QASC and 640K for OMCS. A sentence with several extracted concepts can participate in multiple pairings. A concept appearing in many sentences gives many possible pairs by itself. The paper describes the resulting pool of potential triples as reaching the order of 10¹² or more. The usefulness of such a pool depends partly on which combinations are brought into training.
The Directed Story Graph uses another way of defining relationships. Its source is short narratives from RoCStories and the Story Cloze Test. Each sentence is a vertex, and the directions of the edges follow the order in the story. A sentence can connect forward to a later sentence. Separate stories stay disconnected. To sample a triple, the procedure chooses an earlier sentence, an intermediate one and a later one, so that the middle is on a directed path between the endpoints.
sᵢ → sⱼ → sₖ
Here sᵢ, sⱼ and sₖ are sentences from the same story, in the order of their positions i, j and k. The arrows → mark forward edges in the graph. The sentences occupy the head, relation and tail positions in that order. An edge can span intervening sentences because its definition is based on relative order.
This design gives the system examples of the kind of connection it will encounter in abductive natural language inference, abbreviated aNLI. An intermediate sentence can make an earlier observation and a later one fit into a plausible account of what happened. Withholding that sentence creates an exercise resembling the evaluation task, while withholding an endpoint trains the other ways of checking the candidate. The graph’s construction encodes order directly. Whether the selected sentences also express a strong explanatory relationship depends on their content.
Sampling the concept graphs
The paper describes random sampling and curriculum filtering for the large Common Concept Graphs. In the random condition, the authors limit the training set to at most 1M sampled triples. This caps the amount of generated material used in that condition. It gives common patterns from the source corpus opportunities to appear, while the sample may still miss words and phrases important to a particular question set.
Curriculum filtering begins with the benchmark text. The procedure extracts noun and verb chunks from the available contexts, questions and choices. A generated triple qualifies when at least one of its entities occurs in the set of extracted chunks. The check depends on what the target task talks about. It leaves the choice labels unused. The label curriculum refers here to choosing content that is relevant to the subject matter of the evaluation. The paper’s description gives a filtering condition on the pool of triples, with no schedule that orders the selected examples by difficulty.
The data reported for the graph sources give a sense of the resulting training material. ATOMIC supplies 893,393 training triples. The Directed Story Graph supplies 1,019,030. The filtered QASC Common Concept Graph is listed at 1,662,308, and the filtered OMCS Common Concept Graph at 914,442. Each graph has 10,000 validation triples in the graph-data statistics. These counts are separate from the labeled splits of the question benchmarks. The reported QASC count exceeds the cap described for the random-sampling condition, so the figures for the filtered sets should be read in the context of the separate selection procedure.
The average lengths also show what each training exercise asks the system to predict. In the QASC graph, the two sentence positions average 10.5 and 10.3 words, and the concept position averages 1.5 words. The Directed Story Graph has sentence-length material in each position, with averages of 10.3, 10.2 and 10.4 words for head, relation and tail. In ATOMIC the averages are 11.2, 6.5 and 2 words. Thus even when every source is presented as triples, reconstructing a target can mean recovering a short concept, a question-like relation or an entire sentence.
Predicting a vector
The first implementation uses knowledge representation learning, abbreviated KRL. For a particular reconstruction direction, the system encodes the observed phrases and the target phrase separately. The encoder is RoBERTa-large, a Transformer. The implementation takes the output at the classification token, written [cls], as the vector representing each phrase. That vector contains a learned description of the phrase in context within its own input sequence.
The encoder supplies vectors in a common starting space. The system then learns separate projections for the observed positions and for the target. A projection is a learned transformation of a vector. Distinct projections allow the same phrase to be used differently depending on the role it plays in the reconstruction. A feedforward network then combines the two projected inputs to produce a prediction in the space where it will be compared with the projected target.
The notation below distinguishes the vectors before and after projection.
Iₑ₁ = Enc(I₁)
I₁ is the first observed phrase, Enc is the Transformer encoder, and Iₑ₁ is the resulting phrase vector. The subscript e denotes encoding and ₁ identifies the first input. The equality defines the vector using the output of the encoder.
Iₑ₂ = Enc(I₂)
I₂ is the other observed phrase, Enc is the same encoder, and Iₑ₂ is the resulting encoded vector for that input. The second input can be a different kind of phrase from the first, depending on which component is withheld.
Oₑ = Enc(O)
O is the observed target phrase, Enc is the encoder, and Oₑ is the target’s encoded vector. The system represents the target in order to compare it with the prediction built from the inputs.
Iₚ₁ = Mᵢ₁(Iₑ₁)
Iₑ₁ is the first input’s encoded vector. Mᵢ₁ is the learned projection for that position, and Iₚ₁ is its projected vector. The p distinguishes the projected vector from the original encoded one.
Iₚ₂ = Mᵢ₂(Iₑ₂)
Iₑ₂ is the second input’s encoded vector, Mᵢ₂ is the projection learned for that position, and Iₚ₂ is the output of that projection. The separate projection gives the second input its own transformation.
Oₚ = Mₒ(Oₑ)
Oₑ is the encoded target, Mₒ is the learned projection for the output, and Oₚ is the projected target. This is the reference vector against which the generated vector is judged.
Ô = C(Iₚ₁, Iₚ₂)
C is the learned combination function. It receives the projected inputs Iₚ₁ and Iₚ₂ and produces Ô, the predicted output vector. The hat identifies the generated counterpart of the observed target. The projection and combination functions are implemented with fully connected networks.
loss = LossF(Ô, Oₚ)
loss is the training objective for the prediction, LossF denotes the chosen loss function, Ô is the generated vector, and Oₚ is the projected true target. The contrastive version of LossF also receives projected noise examples.
The direct objective, L2Loss, minimizes the L2 norm of the difference between the generated vector and the projected target. The contrastive objective, NCELoss, gives the system a target to prefer over sampled alternatives. For a tail prediction, for instance, the candidates for negative examples are tails drawn from other triples. The sampling rule seeks a replacement that does not make the fixed head and relation into another true triple. The training settings use ten noise samples for this objective.
NCELoss(Ô, Oₚ, N) = −log[exp(sim(Ô, Oₚ)) / (exp(sim(Ô, Oₚ)) + ∑ⱼ∈ₙ exp(sim(Ô, Nⱼ)))]
NCELoss is the noise contrastive estimation loss. Ô is the predicted vector, Oₚ is the projected positive target, and N is the collection of projected noise vectors. The sum ∑ⱼ∈ₙ runs over their indices j, with Nⱼ denoting the noise vector at that index. sim is the comparison function, exp is the exponential and log is the logarithm. The fraction gives the exponentiated positive comparison a share of the total for the positive and negative candidates. The leading − turns a larger share into a smaller loss.
The paper reports contrastive runs with an L2-based comparison and with cosine similarity. Cosine similarity compares the orientations of vectors. For the direct L2 objective, the norm also serves as the distance when scoring a test triple. For the contrastive implementations, the paper defines the inference distance by complementing the comparison function.
D = 1 − sim
D is the distance used at evaluation for the contrastive version. The 1 is the reference value from which sim, evaluated on the predicted and target vectors, is subtracted. This form lets a greater similarity correspond to a lower distance. At evaluation there is no contrastive denominator over sampled training negatives. Each benchmark option provides the target for the distance calculation in its own candidate triple.
Predicting a span of text
The other implementation, span masked language modeling, is abbreviated SMLM. It works with the text of the complete triple. The authors apply tokenization, which divides the text into the units the encoder reads, and combine the parts into a single sequence. A classification token marks the start and separators mark the boundaries.
[cls][h][sep][r][sep][t][sep]
[cls] is the start classification token and each [sep] is a separator token. [h], [r] and [t] stand for the token sequences of the head, relation and tail. To practice a reconstruction direction, the system replaces the tokens of the corresponding component with masks while retaining the other components.
For instance, with the relation masked, the head and tail remain visible together. The encoder supplies a representation at each position, and a feedforward prediction layer assigns probabilities to tokens at the masked positions. It is the same encoder for the head, relation and tail exercises. This differs from separately encoding each phrase and combining the resulting vectors. Here the tokens from the visible components can interact within the encoder sequence.
The system predicts all tokens in the missing span in the same pass. Even if one of the masked positions is assigned a high probability for its true token, the procedure does not insert that token before predicting the next position. A candidate answer with several tokens is assessed by how well the system assigns probabilities to those tokens given the visible components and the masked span.
CELoss(h, r, mask(t), t) = (1/n) ∑ᵢ₌₁ⁿ [−log₂ Pₘₗₘ(tᵢ | h, r, mask(t))]
CELoss is the cross-entropy loss, written here for the tail prediction direction. h is the visible head, r is the visible relation, t is the observed target tail, and mask(t) is the version of that tail with its tokens masked. n is the number of tokens in t, and i indexes them from 1 through n in the sum ∑ᵢ₌₁ⁿ. tᵢ is the observed token at position i. Pₘₗₘ is the masked prediction probability, with | introducing the visible material and the masked positions on which the prediction is conditioned. The negative logarithm −log₂ gives a larger penalty to a lower probability. The factor 1/n makes the loss an average across the positions in the span. The same calculation can be made with the head or the relation as the target.
The SMLM distance is this reconstruction loss. So when the system assesses a candidate, it does not need to generate open-ended text and then decide whether its wording means the same thing as the candidate’s wording. The observed target supplies the tokens whose probabilities are scored. It also supplies the length of the masked span. This is practical for the paper’s setting, where every item comes with options the system can inspect.
Preparing and scoring a multiple-choice item
For items that provide context, that text can occupy the head position without being retrieved. For the remaining tasks, the authors use the question and its answer choices to query the relevant source corpus and retrieve its five highest-ranked sentences. These sentences serve as possible contexts. The method evaluates the choice with each retrieved sentence and averages the resulting scores. The source corpus is therefore involved both in teaching the task through triples and, for these benchmarks, in supplying text at scoring time.
The paper also describes converting question and answer pairs into hypotheses. The concept-graph training triples contain statements, while the benchmark can present a question with a wh word or a blank to fill. For a wh question, the authors use a rule-based conversion to turn the question and each choice into a declarative statement. For a blank or cloze item, they either insert the option into the blank or concatenate it with the question, according to the format. This procedure makes a claim out of the question and candidate. Its relevance to the method is that the science and common-concept training examples contain sentence-like components in positions where the original benchmark would supply a question.
For a given context and candidate, there are three reconstruction distances.
Dₜ = D(t, fₜ(h, r))
Dₜ is the tail or answer distance. D is the distance rule chosen for the implementation, t is the observed candidate, and fₜ predicts the tail from context h and relation or question r. In SMLM the distance evaluates the probability assigned to the observed target tokens. In KRL it compares vector representations.
Dₕ = D(h, fₕ(r, t))
Dₕ is the head or context distance. D again measures the mismatch between the observed target and the prediction. Here the observed target is h, and fₕ predicts the head using r, the relation or question, and t, the proposed answer.
Dᵣ = D(r, fᵣ(h, t))
Dᵣ is the relation or question distance. The distance function D compares the observed r to the prediction from fᵣ, which receives the context h and candidate t. It asks how compatible the actual question component is with the context and choice together.
score(h, r, t) = Dₜ × Dₕ × Dᵣ
score is the joint distance assigned to the candidate triple with head h, relation r and tail t. Dₜ, Dₕ and Dᵣ are the corresponding reconstruction distances. The multiplication sign × specifies how the method combines them. When the item uses multiple retrieved contexts, it is these per-context scores that are averaged.
ans = arg minₜ score(h, r, t)
ans is the selected answer. arg minₜ means to return the candidate t achieving the minimum score. The context h and question role r define the rest of the triple being assessed, with averaging across the retrieved contexts where applicable. The score is a ranking criterion within an item. Its magnitude is a product of distances, so the formula gives it no direct interpretation as a probability that a choice is correct.
Training and comparison settings
Both implementations start from the RoBERTa-large encoder, which the paper reports at 355M parameters. The full KRL system has 365M, and SMLM has 358M. The authors use three training epochs and the Transformers package. They report SMLM batch size settings of [512,1024] and KRL settings of [32,64], with the learning rate ranging over [1e-5,5e-5] and the reported warm-up setting over [0,0.1]. Training runs on 4 Nvidia V100s with 16GB each. The authors make their experimental code available.
They report three hyper-parameter trials on ten percent of the training material for each configuration and use three random seeds for training. The accuracy results are means of the seed runs. Where included, standard deviations give a sense of how much the measured outcome changes across runs or sampled training splits, depending on the experiment. The question-answering supervision differs between the main zero-shot and few-shot evaluations, so the label access and the source of variation need to be read with each result.
Experiments and results
Benchmarks and metric
The commonsense benchmarks are SocialIQA, aNLI and CommonsenseQA. SocialIQA uses a supplied context and offers 3 choices. Its development set has 1954 items in the paper’s dataset statistics. aNLI also supplies context, offers 2 choices and has 1532 development items. Both use knowledge sources closely related to how their inputs are organized. SocialIQA is paired with the social triples in ATOMIC and aNLI with the sequence of events in the Directed Story Graph. CommonsenseQA is paired with the OMCS Common Concept Graph, offers 5 choices and has a development split of 1221 items.
The science datasets are QASC, OpenBookQA and the AI2 Reasoning Challenge, with ARC reported separately for its Easy and Challenge splits. Each uses the QASC Common Concept Graph for pretraining. The QASC question set has 8 choices per item and 926 development items. OpenBookQA has 4 choices and 500 development items. ARC-Easy has 4 choices and 570 development items, while ARC-Challenge has 4 choices and 299 development items. The science systems use retrieved context in the standard zero-shot evaluation.
These differences shape how to read the accuracy. A random selector on QASC has a reported accuracy of 12.5. On aNLI it has 50.0. Thus the raw score does not convey how hard it is to distinguish the candidates without knowing the number of choices and observing the other baselines. Accuracy counts an item as correct when the selected choice matches the labeled answer. It gives no partial credit when the correct option receives a relatively high score but is ultimately ranked below another.
The zero-shot table reports mean accuracy for the train, development and test splits where the labels are available. Reporting accuracy on a benchmark training split in this experiment means evaluating the same zero-shot decision procedure on those questions. It does not turn those examples into supervised answer-selection training. The paper reports train and development results for QASC, CommonsenseQA, aNLI and SocialIQA in the main zero-shot comparisons. ARC and OpenBookQA also have results in the test column. The supervised reference rows have a different reporting pattern, so split names matter when making numerical comparisons.
What the baselines test
One baseline uses GPT-2 Large to score how well the text of each candidate follows the context and question. It selects the choice with the smallest language prediction loss. This supplies a comparison with an answer-scoring method that starts from general pretraining and predicts the candidate in the ordinary direction.
RoB-MLM uses RoBERTa-large as released and applies the same scoring rule used by SMLM. This compares the paper’s added training with what the existing masked prediction system can already do under that rule. RoB-FMLM takes the comparison further. It continues training RoBERTa-large on the concatenated fact triples using the original masked prediction task, then evaluates with the SMLM scoring rule. This asks whether simply exposing the encoder to the same kind of training text is enough to obtain the benefits of reconstructing designated components.
The information retrieval solver from ARC provides a separate way of ranking the options. It sends the context, question and candidate as a query to Elasticsearch. It uses the ranking score of the top qualifying sentence, which must share non-stopwords with both the question and answer. The choice with the highest retrieval score wins. This baseline uses matching in the source text directly as its evidence for the choice. The KTL pipeline uses retrieved material as input to another judgment about how the parts fit.
The main comparison includes random selection and the four KTL variants. The latter comprise the direct L2 representation objective, the contrastive representation objective with each of the two comparisons, and SMLM. The paper also reports available Self-Talk results and supervised reference scores from bidirectional attention flow, or BiDAF, and a supervised RoBERTa system. Those reference results help place the zero-shot accuracies alongside earlier approaches and systems trained with answer labels.
Zero-shot accuracy
The aNLI results show how the scores change across both KTL implementations. On its development split, the plain RoB-MLM baseline has 51.6 accuracy, RoB-FMLM reaches 51.4, and the retrieval solver reaches 54.8. The representation approach reaches 57.4 with direct L2 training and 60.5 with the L2 contrastive objective. SMLM reaches 65.3. The improvement is visible even though the task starts from a higher random score than the benchmarks with more choices.
Zero-shot development accuracy on aNLI
Span reconstruction leads the comparison, and both contrastive objectives improve on direct vector reconstruction.
The numbers
| System or setting | accuracy % |
|---|---|
| Random | 50.0 |
| RoB-MLM | 51.6 |
| RoB-FMLM | 51.4 |
| IR solver | 54.8 |
| KRL with direct L2 loss | 57.4 |
| KRL with contrastive L2 | 60.5 |
| KRL with contrastive cosine | 60.2 |
| SMLM (this paper) | 65.3 |
On SocialIQA development, the random score and the GPT-2 Large score are both 33.3. RoB-MLM gives 40.8, and the cosine contrastive KRL variant gives 46.4. SMLM gives 48.5. The authors also report 46.2 for Self-Talk and 51.2 for supervised BiDAF on the development split. The comparison places SMLM between those two systems. The experiment uses context provided by the item, so it avoids the need to retrieve a substitute social situation before evaluating an option.
On CommonsenseQA development, RoB-MLM reaches 37.2 and continued ordinary masked training on triples gives 24.8. SMLM reaches 38.8, while cosine contrastive KRL reaches 37.1. This is a case where the raw score of the existing masked encoder is already close to the best KTL result. The development comparison with Self-Talk at 32.4 and supervised BiDAF at 32.0 places SMLM ahead of both of those references, but the strong RoB-MLM score is important for assessing what the new training itself adds.
On QASC development, the retrieval solver scores 19.4, and the ordinary masked continuation baseline has 19.7. The cosine contrastive representation system gives 24.4, and SMLM reaches 27.2. The authors also report top-4 accuracy above 92% on QASC without assigning that figure a split in the discussion. The top-4 metric checks whether the correct answer survives within the highest-ranked group of four. It shows that the ranking can narrow the set of plausible options in many cases where it cannot place the answer first. The development accuracy of 27.2 is the result for choosing a single answer.
On OpenBookQA development, cosine contrastive KRL has 34.8, while SMLM has 34.6. On the test split, those configurations give 34.4 and 33.8, respectively. OpenBookQA is consequently a useful qualification to the overall preference for SMLM. The most effective of the paper’s representation objectives can lead on a particular benchmark. The information retrieval baseline reaches 28.8 on the OpenBookQA test split, while the supervised BiDAF score there is 48.8.
ARC-Easy test accuracy goes from 30.6 for RoB-FMLM to 33.0 for SMLM. On ARC-Challenge test, the random baseline is at 25.0, and SMLM reaches 28.4. Supervised BiDAF gives 21.2 on the ARC-Challenge test split, while the supervised RoBERTa reference reaches 67.2 on the same split. These two supervised comparisons lead to quite different readings. SMLM exceeds the older supervised reference on that split, while there is still considerable room between the zero-shot score and the stronger supervised reference.
Across the zero-shot benchmarks, the cosine contrastive system generally leads the vector-based alternatives. The aNLI development result in the chart shows an exception. The paper interprets the overall contrastive pattern as possible evidence for the benefit of training with negatives. SMLM has the strongest results overall, including the benchmarks where the head or the question can contribute more to the ranking than the answer prediction alone. The paper’s comparisons support that aggregate judgment while leaving room for benchmark-specific differences.
What transfers with a small labeled set
The few-shot experiment uses KTL for initialization rather than applying the product of the reconstruction distances as the final decision rule. A feedforward classifier is added to the pretrained encoder for fine-tuning. It has one class per answer option and is trained on 8% of the benchmark training set. The authors repeat this with three random samples of labeled training data and report mean validation accuracy. In this setting, the classifier can learn from examples of which option wins. The experiment asks what difference the earlier triple reconstruction makes when that direct signal is scarce.
The conventional RoBERTa classifier and its masked scoring counterpart provide comparisons without KTL initialization. The cosine contrastive and span reconstruction encoders are the two KTL initializations in the few-shot table. On QASC validation, ordinary RoBERTa reaches 44.5 ± 1.2, cosine contrastive KRL reaches 48.2 ± 0.9, and SMLM reaches 49.8 ± 0.6. The fully supervised comparison is 59.40. On OpenBookQA validation, ordinary RoBERTa reaches 47.8 ± 1.4, the KRL initialization gives 51.2 ± 0.6, and SMLM gives 55.8 ± 0.6. The fully supervised comparison is 71.0.
The SocialIQA few-shot results distinguish the initializations especially clearly. The baseline RoB-MLM entry is 46.8 ± 0.6, the KRL initialization gives 58.6 ± 0.8, and SMLM gives 69.1 ± 0.4 on validation. The fully supervised validation reference is 76.6. On aNLI validation, the ordinary RoBERTa classifier gives 68.8 ± 1.3, compared with 73.4 ± 0.9 for KRL and 76.8 ± 0.6 for SMLM. Fully supervised RoBERTa in that comparison gives 84.3. On CommonsenseQA validation the ordinary classifier gives 46.4 ± 1.5, and SMLM gives 51.2 as its mean. The fully supervised reference there is 71.4.
SocialIQA validation accuracy after few-shot fine-tuning
Span reconstruction gives the strongest initialization among the systems trained on the small labeled subset.
The numbers
| System or setting | accuracy % |
|---|---|
| RoBERTa | 44.4 |
| RoB-MLM | 46.8 |
| KRL with contrastive cosine | 58.6 |
| SMLM (this paper) | 69.1 |
The few-shot comparison supplies evidence about the encoder as well as the zero-shot scorer. The candidate ranking formula is no longer the final decision procedure, yet the tested KTL initializations still improve the trained classifier. The span-trained encoder also generally has smaller reported deviations than the ordinary classifier in this experiment. The deviations describe variation under the paper’s sampling and training procedure. The means show the effect at the single labeled-data fraction the authors tested.
What the ablations show
Which component helps identify the correct choice?
The scoring ablation keeps SMLM and changes which distances feed the final choice. The answer-only version checks the candidate against the question and context. The question-only version checks the actual question against its prediction from the context and candidate. The context-only version checks the context against its prediction from the question and candidate. Each of these last two options still uses the proposed answer as an input. Their difference lies in what the scorer tries to reconstruct.
The question distance has the strongest single-component result on the development comparisons for QASC, OpenBookQA and CommonsenseQA, which use retrieved context. On QASC, answer-only gives 23.4 ± 0.6, question-only gives 26.7 ± 0.8 and context-only gives 22.8 ± 1.1. All the distances together give 27.2 ± 0.6. On OpenBookQA, question-only gives 33.8 ± 0.7 and combining the distances gives 34.6 ± 0.8. In these settings, a candidate can sound like a possible completion while making the specific question harder to recover from the proposed claim and the context.
CommonsenseQA shows more room for the joint score. The individual development results are 33.6 ± 0.5 for the answer, 34.4 ± 0.8 for the question and 31.9 ± 0.9 for the context. The product reaches 38.8 ± 0.6. An ingredient can be weak on its own and still influence the ranking when another ingredient prefers a different candidate. The ablation measures that joint effect directly by holding the span reconstruction approach fixed.
The relative importance changes for supplied contexts. In SocialIQA, context-only gives 47.1 ± 0.8, answer-only gives 46.2 ± 0.7 and question-only gives 37.8 ± 0.5. The product yields 48.5 ± 0.6. Under the context-only score, the system rewards a proposed answer that, together with the question, makes the observed situation easier to recover. The strong result for this direction makes it possible to see why the paper includes head prediction in the first place. On aNLI, the individual means are tightly grouped at 64.8 for answer, 65.1 for question and 64.9 for context. The joint mean is 65.3. These comparisons give a reason to retain the several directions as sources of evidence. They do not measure the effect of training separate encoders with only one direction.
How the wording, the training sample and the context contribute
In the hypothesis comparison, the authors hold curriculum filtering in place and change whether the item is expressed as a hypothesis or an ordinary question. On QASC validation, the version with hypothesis conversion reaches 27.2 ± 0.6, and the question version gives 26.5 ± 1.2. On OpenBookQA validation, the corresponding results are 34.6 ± 0.8 and 32.2 ± 1.1. On CommonsenseQA validation they are 38.8 ± 0.6 and 35.4 ± 1.3. The change in mean is in the same direction across the three datasets. It is consistent with the paper’s rationale for making the input more like the factual statements seen during training.
The curriculum comparison holds hypothesis conversion in place and varies the composition of the synthetic training sample. Random sampling with hypothesis conversion gives 22.6 ± 1.4 on QASC validation, 28.4 ± 1.5 on OpenBookQA and 32.2 ± 1.4 on CommonsenseQA. The filtered runs have higher means on each. The authors report that the random sample covers only 50% of the target task’s concepts on average. A large source corpus can therefore produce a large sample that covers the vocabulary of an evaluation task only partially. The curriculum filter raises the chance that training will include triples built around terms the questions and options use.
A separate comparison gives the system the supporting fact identified by the benchmark. This is the gold-fact condition. With hypothesis conversion and curriculum filtering as well, it yields 72.4 ± 0.8 on QASC validation and 75.2 ± 0.7 on OpenBookQA validation. Compare those figures with 27.2 ± 0.6 and 34.6 ± 0.8 under the corresponding retrieved-context condition. The scorer can handle many more examples when a useful fact is supplied. The comparison isolates the opportunity created by better evidence more directly than a comparison between two entirely different answering systems would. The gold-fact condition is available for these two datasets in the ablation table.
QASC validation accuracy under changes to training and context
Filtering and hypothesis conversion improve the retrieved-context setting, and supplying the supporting fact has the largest effect.
The numbers
| System or setting | accuracy % |
|---|---|
| Hypotheses with random sampling | 22.6 |
| Questions with curriculum filtering | 26.5 |
| Hypotheses with curriculum filtering | 27.2 |
| Gold fact with hypotheses and curriculum filtering (this paper) | 72.4 |
The chart combines configurations from the same validation comparison. Its starred setting has access to the benchmark’s supporting fact. That access condition is essential to understanding why the bar is so much higher. The measured gain indicates how much a change in the evidence can affect this scorer. The standard zero-shot pipeline still has to find useful sentences from a corpus given the question and choices.
Training volume and failure cases
The paper’s sample-size experiment plots zero-shot accuracy on the target tasks’ training splits as the supply of KTL triples changes. The two systems shown are the cosine contrastive KRL variant and SMLM. The contrastive approach improves more quickly as examples are added at the lower end of the range. SMLM eventually does better with more examples. The authors attribute the early progress of the representation system to the training signal provided by negative examples. The curve levels off after 10⁵ samples in their discussion, which they interpret as a sign that the systems are overfitting to the synthetic material. The observed leveling also gives a narrower empirical conclusion. Within this comparison, adding more triples of the available kind has diminishing effects on the measured accuracy.
The authors inspect 50 errors from each question-answering task. Many have large distances in all reconstruction directions. In these cases there is little evidence that the triple fits the associations the system learned, and answer selection can approach random performance. A retrieved sentence can be irrelevant even if it contains words from the question or an option. It then changes the head reconstruction target and the information visible to the other reconstructions. Because scores are averaged over the retrieved contexts, the usefulness of the evidence depends on the set of sentences supplied.
The remaining errors illustrate different difficulties. Some items require tracking the effect of negation or of connecting propositions with and or or. Others require temporal comparisons or combining multiple pieces of knowledge. The authors also report a preliminary attempt to use GPT-2 to produce text for the KTL comparison. They observe low performance and interpret it as overfitting to the synthetic corpus. These observations help explain why matching the components of a triple often improves the choice while leaving a range of reasoning problems unresolved.
Limitations
Limits the authors identify
The authors identify inadequate coverage in the science source as one reason for the weaker ARC results. A corpus can contain many science facts and still omit the particular relationships needed for questions drawn from another benchmark. Training triples drawn from those facts can only reflect relationships present in the source and retained by the construction. The retrieval stage also depends on the source. If useful evidence is absent, a closer match among the available sentences can still leave the scorer without what it needs.
A second problem is retrieving the relevant sentences when the source does contain them. The authors observe that context created by retrieval is sometimes irrelevant and that the two benchmarks with supplied context are less exposed to this error. The gold-fact comparison makes this distinction concrete. It measures how well the system uses a useful context once it is available. Its high scores give grounds for the authors’ claim that better context retrieval could improve results, while the practical scores remain those obtained with the retrieval procedure actually tested.
The authors also point to random negative sampling as a possible weakness in the representation approach. A randomly substituted component can be easy to distinguish from the true one because it is about an unrelated subject. Success at separating such examples gives limited practice for fine distinctions among plausible choices. The paper proposes sampling replacements nearer to the target in contextual vector space as future work. It also names discriminator-based training and sequence-to-sequence prediction as possible implementations. The reported experiments establish results for the vector and masked-span methods.
The error analysis identifies trouble with logical connectives, time and multi-hop reasoning. A high compatibility score can reflect an association without resolving those relationships. The order-based story graph gives a training signal for the sequence of events, but success at predicting a story component does not establish a general ability to compare times or reason about temporal constraints. Similarly, linking two statements through a common concept provides material for science questions without ensuring that the system combines the statements in the way a particular item requires.
Limits implied by the evaluation
The zero-shot setup excludes target answer labels from KTL training. It uses the target questions, contexts and options in curriculum filtering where applied, and it uses the question and candidate text in retrieval. The result therefore describes adaptation to a benchmark’s subject matter without its answer key. A setting in which all target items are unavailable before the training sample is constructed would test a different kind of transfer. Similarly, ATOMIC already contains human-organized knowledge, and the synthetic graphs depend on written corpora and a tagging procedure. Self-supervision is the mechanism that produces the reconstruction exercises from those materials.
The way a graph is built also shapes what it can teach. In the Common Concept Graph, a shared chunk creates a training connection. The two sentences could express independent claims about that concept, use a phrase in different senses, or mention it with different importance. In the Directed Story Graph, temporal order is sufficient for the path, even when a middle sentence explains little about why a later event occurred. These are consequences of the graph definitions. The experimental accuracy measures whether the resulting exercises are useful to the target scorer. It does not validate every inferred connection.
A recorded target is one way to complete a training triple. For a context prediction, several situations could support the same question and answer. For a question prediction, several questions could connect an event with the same candidate. KRL compares against a single recorded vector, and SMLM scores the tokens of the observed span. Both can assign a large distance to wording or content that remains plausible. In evaluation, ranking a fixed choice set frequently tolerates this ambiguity because the procedure needs the correct choice to score better than its competitors. The results do not establish what would happen if the system had to formulate an answer freely or account for every valid completion.
The product rule carries a specific assumption about how to combine the distances. A particularly small distance can lower the product even when another component has a large distance. The score is therefore best read in terms of its measured effectiveness at choosing among candidates. The single-distance experiments compare the product with its individual factors under the same span-trained encoder. They leave open how it would compare with other combinations or whether the best combination would change with the source of the context.
The comparison between the vector and token approaches also bundles several differences. The encoder in the span version jointly sees the visible text within a concatenated sequence, while the vector version uses separate phrase representations. The objectives, prediction targets and batch settings differ. The authors offer joint attention and the character of the negative samples as possible explanations for the overall advantage of SMLM. The comparison does not independently vary these features. It supports a preference among the tested implementations more directly than it establishes which feature caused the preference.
Finally, the reported results use different splits and supervision conditions. The gold-fact results measure the effect of access to benchmark-provided evidence, and the few-shot results measure initialization under 8% labeled training data. The latter do not establish how the advantage changes as more labeled data becomes available. The zero-shot table reports seed means, and the ablation and few-shot tables provide selected measures of variation. These summaries describe the observed outcomes. They do not quantify how much of the advantage would persist under different knowledge sources, new question formats or different conditions for access to the benchmark text.
What came after
Dimensions of Commonsense Knowledge (2021) cites Knowledge Triplet Learning in work on commonsense knowledge. The connection is particularly relevant to the different roles that knowledge plays in the original experiments. SocialIQA draws on associations among events, questions about social behavior and likely responses. The story task draws on ordered events, and CommonsenseQA draws on concepts that recur across statements. These sources supply different kinds of constraints even though the same reconstruction task can be applied to each. The later citation establishes that the paper entered that discussion. It leaves open which, if any, of the reconstruction procedures the later work adopted.
The Life Cycle of Knowledge in Big Language Models (2023) also cites the paper, in a survey with a broader focus on knowledge in pretrained systems. Knowledge Triplet Learning provides a case in which the acquisition and use of knowledge can be examined separately. Triples from external sources furnish additional training, masked reconstruction supplies a way of probing candidate compatibility, and retrieved sentences furnish further knowledge at inference. The citation places the work in that broader research area. It does not establish an independent replication of the results or a subsequent implementation of the method.
Cite
Cite as Pratyay Banerjee and Chitta Baral. 2020. Self-Supervised Knowledge Triplet Learning for Zero-Shot Question Answering. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP).
@inproceedings{banerjee2020self,
title = {{Self-Supervised Knowledge Triplet Learning for Zero-Shot Question Answering}},
author = {Pratyay Banerjee and Chitta Baral},
booktitle = {Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)},
year = {2020},
doi = {10.18653/v1/2020.emnlp-main.11},
url = {https://doi.org/10.18653/v1/2020.emnlp-main.11}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/banerjee-2020-self-supervised-knowledge-triplet-learning/