---
title: "Joint Learning of Sentence Embeddings for Relevance and"
description: "Learn how Baudiš and colleagues trained sentence embeddings to weigh evidence and answer questions, and where learned weighting…"
canonical: "https://research.elamur.ai/free/en/papers/baudis-2016-joint-learning-sentence-embeddings-relevance/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/baudis-2016-joint-learning-sentence-embeddings-relevance/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2016](https://md.research.elamur.ai/free/en/papers/2016/) / Joint Learning of Sentence Embeddings for Relevance and Entailment

# Joint Learning of Sentence Embeddings for Relevance and Entailment

Paper · 2016 · Petr Baudiš, Silvestr Stanko and Jan Šedivý

**Authors:** Petr Baudiš, Silvestr Stanko and Jan Šedivý · **Year:** 2016 · **Venue:** Proceedings of the 1st Workshop on Representation Learning for NLP · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **4** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/baudis-2016-joint-learning-sentence-embeddings-relevance/cited-by/) · Proceedings of the 1st Workshop on Representation Learning for NLP · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/W16-1602/)
- [PDF](https://aclanthology.org/W16-1602.pdf)
- [DOI 10.18653/v1/w16-1602](https://doi.org/10.18653/v1/w16-1602)

## Summary

A search can find news about the right people and the right event and still leave the question unanswered. Some sentences report the outcome, some discuss what might happen, and others mention the same people for unrelated reasons. Baudiš and colleagues study what happens when a [question-answering](https://md.research.elamur.ai/free/en/concepts/question-answering/) system has to make a decision from such a collection. They call the general task Hypothesis Evaluation. Its central difficulty is deciding both which sentences bear on the question and what answer those sentences support, using training data that gives the correct answer to the question as a whole.

The authors turn the question and each evidence sentence into numerical representations called sentence embeddings. They compare the representations in pairs and estimate two quantities for each sentence. One indicates whether the sentence points towards a yes or a no. The other controls how much influence it has on the final prediction. A weighted average combines the pairwise estimates. Because the whole calculation is differentiable, the authors can train the encoders and both scoring functions together. The training process sees the answer to the question without being told which sentences supplied it or whether individual sentences supported or contradicted it.

The paper introduces Argus, an event-question dataset with evidence retrieved from news, and tests the same approach on two multiple-choice tasks. AI2-8grade/CK12 pairs school science questions with passages retrieved from textbooks. In [MCTest](https://md.research.elamur.ai/free/en/papers/richardson-2013-mctest-challenge-dataset-open-domain/), the possible answers are judged against sentences from a story. Across these settings, a recurrent encoder first trained to recognize suitable replies in Ubuntu technical-support conversations was the strongest general choice among the architectures the authors tested. The benefit of learned evidence weighting depended on the dataset. It improved the strongest encoder on the school science task and helped on MCTest. On Argus, the comparisons showed no statistically meaningful advantage for weighting over the simpler ways of combining evidence.

The Argus analysis helps explain why successful end-to-end training leaves an important question open. The learned answer and relevance scores were strongly correlated, with Pearson’s r = 0.803. The authors took this as evidence that the relevance scorer had failed to learn a sufficiently separate function in that setting. On MCTest, the strongest recurrent system was competitive with the leading published neural approach, while simpler averaging encoders also did well. The authors report accuracy over repeated training runs, which matters for interpreting those comparisons. A particularly successful run and the result a reader should expect from a fresh run are different measurements.

## Deep dive: Joint Learning of Sentence Embeddings for Relevance and Entailment

Learn how Baudiš and colleagues trained sentence embeddings to weigh evidence and answer questions, and where learned weighting improved accuracy. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Finding evidence and deciding what it says

Suppose the question asks whether a named player won an award. A newspaper sentence that announces the winner can settle the question. A headline debating whether the player deserved to win can contain much the same vocabulary while doing a different job. A sentence naming a rival as the winner could be just as relevant as the announcement naming the player, yet support the opposite answer. A system making the final decision needs a way to distinguish these cases after passages have already been collected.

The paper brings together two research problems that frequently start from different inputs. In the sort of [information retrieval](https://md.research.elamur.ai/free/en/topics/information-retrieval/) pipeline the authors describe, matching terms helps bring potentially relevant evidence to the top and discard material further down. They give [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/) and [BM25](https://md.research.elamur.ai/free/en/papers/robertson-1994-okapi-trec-3/) as examples of ways to score overlap. That step can narrow a search while leaving the direction of the evidence unresolved. Textual entailment, by contrast, asks what conclusion follows from an evidence text given a particular hypothesis. The entailment setups discussed in the paper frequently start with a single evidence sentence or with material whose relevance has already been established. The authors also describe a tendency to use relatively short, carefully formed sentences, with limited exposure to the names found in open-domain news.

Hypothesis Evaluation places the decision after retrieval but before the noisy results have been sorted into supporting, opposing and unhelpful material. Its input contains the question and the set of evidence made available to the decision system. Its output is an answer for the entire set. This formulation matters because a label at that level can arise from quite different evidence configurations. A correct answer might be explicitly stated in a sentence, repeated in several reports, or supported by something a reader has to infer. The training label gives the system the outcome while leaving those configurations unresolved.

The practical problem came from Augur, a prediction market in which users could make bets on questions about future events. When the event had occurred, someone needed to determine the outcome so that the market could settle. The authors were interested in using Argus to help with that determination from public news. A question written before a sports event, for instance, could be evaluated against reports written after it. The practical constraints included a limited set of labelled questions and authentic news text with such complications as sentence segmentation errors and clauses incidental to the event. The paper studies the step that turns retrieved material into an answer. Its experiments take the available evidence as input.

#### Where earlier approaches fit

The authors discuss Memory Networks as an example of work that had already brought retrieval and inference together. The sentence representations explored in the setting they cite were averages of word embeddings. The language and vocabulary in that setting were also more restricted than those encountered in their news application. This earlier work motivates treating sentences as units from which a system can select evidence. It leaves open how much structure a sentence representation needs when the text contains unfamiliar names, ordinary news prose and questions whose meaning changes with small changes in wording.

Answer sentence selection offers a different starting point. The papers the authors discuss under this heading include work based on a [quasi-synchronous grammar for question answering](https://md.research.elamur.ai/free/en/papers/wang-2007-what-is-jeopardy-model-quasi/) and neural methods that use attention. Attention here means learning how much emphasis to give different parts of an input. In answer sentence selection, the main objective is to identify a sentence useful for answering a question. Hypothesis Evaluation still has to produce a decision after that kind of selection. A sentence can be the most useful one precisely because it establishes that the answer is no. The distinction between usefulness and direction motivates separate outputs in the authors’ approach.

Work on entailment supplied examples of how to learn sentence representations and compare them. The [Stanford Natural Language Inference corpus](https://md.research.elamur.ai/free/en/papers/bowman-2015-large-annotated-corpus-learning-natural/) offered a large collection of single-evidence pairs, with broader vocabulary and somewhat more involved sentences than the simple retrieval-and-inference examples discussed in the paper. The authors also cite the [SemEval task on sentence relatedness and entailment](https://md.research.elamur.ai/free/en/papers/marelli-2014-semeval-2014-task-1-evaluation/) in describing established entailment settings. Recurrent sentence encoders and [word-level attention for entailment](https://md.research.elamur.ai/free/en/papers/rocktaschel-2015-reasoning-about-entailment-neural-attention/) gave the authors mechanisms worth evaluating. Their own supervision differs in granularity. A training item gives the outcome for a question and its evidence set, so even when a sentence pair would be easy to label by hand, the learning procedure receives no such label.

MCTest brought another version of the problem into view. A story supplies the evidence, and the reader chooses among proposed answers. The paper describes leading systems based on engineered features, including [syntactic and frame-semantic information](https://md.research.elamur.ai/free/en/papers/wang-2015-machine-comprehension-syntax-frames-semantics/). It also describes a convolutional approach that uses attention at several levels to find useful parts of the story. For Baudiš and colleagues, this was a setting in which to ask whether independently comparing each candidate with each story sentence could provide enough information for a good decision. The expectation behind this design is clearest for questions with a decisive sentence. When the answer depends on the order of events or on connecting several statements, the story has structure that a set of separate comparisons can lose.

These research settings suggest different meanings of a good evidence representation. A retriever benefits from recognizing that two pieces of text concern the same topic. An entailment system needs differences between statements to remain visible after encoding. A story reader may need to keep track of where a statement occurs and how it connects to earlier ones. The paper asks how far a shared sentence-pair architecture can go across tasks with these different demands, using final answers to train the components that assign influence and direction.

### The method, step by step

#### From questions and evidence to scores

An Argus input consists of a yes-or-no question and a collection of sentences retrieved for it. The question itself serves as the text on one side of every comparison. In the multiple-choice tasks, a question and a candidate answer are combined into a hypothesis. Each choice therefore gets its own score. The multiple-choice decision comes from ranking those scores, while Argus uses the prediction for the single question. This lets the authors apply the same evidence-integration calculation with different ways of constructing and comparing hypotheses.

From a hypothesis and its evidence to a prediction The steps in order.

The paper writes the general prediction problem as a function of a hypothesis instance.

```
yᵢ = fʰ(Hᵢ)
```

Here, i indexes the instance, Hᵢ is the input instance, and fʰ is the function that evaluates it. The output yᵢ is on the interval [0, 1], with the low end corresponding to no and the high end to yes. The question-level supervision supplies the binary target for that output. In the multiple-choice adaptation, a corresponding output is computed for each candidate hypothesis, so values can be used to order the candidates.

```
Hᵢ = (qᵢ, Eᵢ)
```

Hᵢ consists of qᵢ, the text to evaluate, and Eᵢ, the collection of evidence texts that can be used to evaluate it. The index i identifies the same hypothesis instance in both terms. Depending on the dataset, the text is either the binary question or the result of combining a question with a proposed answer.

```
Eᵢ = {eᵢⱼ}
```

Eᵢ is the evidence set for instance i, eᵢⱼ is an individual evidence text, and j indexes evidence within that instance. The braces indicate that the formal input groups the evidence as a set. In the actual scoring procedure each available sentence contributes a pairwise score. The calculation combines the contributions without supplying the scorer with a separate representation of the original sequence of sentences.

#### Encoding a sentence

The input to a sentence encoder is a sequence of tokens. Each has a numerical representation that starts with [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/), a source of [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/). An embedding gives the token a vector whose coordinates can participate in the calculations of a neural network. The paper adds binary indicators for token type and for overlap with the text on the other side of the comparison. Some overlap indicators concern individual tokens and others concern bigrams, which are adjacent token pairs. This gives the scoring system access to exact matches alongside the patterns represented by the embedding coordinates. An encoder can share its parameters across both sides while receiving inputs that reflect the particular pair.

The authors use 50-dimensional GloVe vectors in place of the 300-dimensional ones considered in the earlier setup they adapt. They learn task-specific changes for the top 100 most frequent tokens. Other tokens use fixed GloVe vectors when available, including tokens that were absent from the task training set. This policy gives frequent words and punctuation room to change while reducing the number of representations that can be fitted to a small dataset. The authors note that frequent items can include conjunctions and other signals that have a large effect on how a statement is composed. They describe the generalization benefit as an observation from preliminary experiments. The experiments reported in detail do not isolate each of these vocabulary choices.

On that shared input, the paper tries several ways to make a sentence vector. The simplest, called `avg`, takes the mean of the token vectors and applies a learned projection. Averaging treats the sentence as a collection of tokens and compresses it in a fixed way. The projection can reshape the result into a space better suited to pair scoring. A [Deep Averaging Network](https://md.research.elamur.ai/free/en/papers/iyyer-2015-deep-unordered-composition-rivals-syntactic/) uses the same kind of averaging together with word-level dropout and several nonlinear transformations. The nonlinear layers give the encoder more flexibility in how it uses the average. The averaging operation still discards the original order.

The recurrent encoder, labelled RNN, reads the sentence in both directions using gated recurrent units, or GRUs. A recurrent unit updates a state as it encounters each token. Gates help determine how information from the current token and the previous state enters that update. The bidirectional version can build its representation using information from either side of a position. The paper sums the directional states and uses the final states for sentence representations. Its choice of GRU draws on the encoder architecture described by [Cho and colleagues](https://md.research.elamur.ai/free/en/papers/cho-2014-properties-neural-machine-translation-encoder/). Because the state evolves through a sequence, the resulting representation can depend on the order of its words. The learning problem is to retain the distinctions that actually matter for deciding the answer.

The convolutional encoder, or CNN, applies filters along the sequence and takes the maximum response for each filter across the sentence. A filter can respond strongly to a pattern that occurs in a local span, and taking its maximum keeps the strongest response regardless of position. This produces a sentence vector with a coordinate for each filter. The paper draws on [Kim’s convolutional sentence encoder](https://md.research.elamur.ai/free/en/papers/kim-2014-convolutional-neural-networks-sentence-classification/) and uses rectified linear activations in the convolutions in place of hyperbolic tangent activations. In the combined RNN-CNN, the convolution processes the per-token recurrent outputs. A local filter in that combined encoder therefore receives states that have already been shaped by the surrounding text.

These variants give the experiments comparisons at the level of what an encoder can retain. An average can preserve broad lexical content. A convolution can preserve strong short patterns, even when their exact position varies. A recurrent state can carry information through the sequence. The combined encoder offers local filtering with inputs that already carry context. These are differences in how information can be represented. Whether a distinction is actually learned depends on the supervision and the data available for estimating the parameters.

#### Word attention and transfer

The variant called `attn1511` builds on the recurrent-convolutional encoder. It also uses the hypothesis when determining which words in an evidence sentence should receive emphasis. This operates inside a sentence. It is separate from Evidence Weighing, which gives whole sentences different influence after they have been scored. The distinction is important because a system can use a simple sentence embedding and still learn which sentences matter. It can also use an elaborate word-attention encoder and give every sentence equal weight at aggregation.

In the original answer sentence selection version of `attn1511`, word attention used softmax normalization.

```
sₕ,ₑ(t) = exp(aₕ,ₑ(t)) / ∑ₜ′ exp(aₕ,ₑ(t′))
```

Here h is the hypothesis and e is the evidence sentence. The position t identifies the token whose attention is being calculated. The function aₕ,ₑ gives a scalar attention score for a token in that pair, and sₕ,ₑ gives the resulting focus on it. The exponential function is written exp. The sum ∑ runs over positions t′ in the evidence sentence, with t′ serving as the index for each term in the denominator. This normalization gives the positions a shared attention total. Stronger emphasis on some tokens reduces the share available to the others.

For Hypothesis Evaluation the authors use a different normalization for this encoder.

```
sₕ,ₑ(t) = σ(aₕ,ₑ(t)) / maxₜ′ σ(aₕ,ₑ(t′))
```

The indices h and e again identify the hypothesis and evidence, t is the token of interest, aₕ,ₑ is its raw attention scoring function, and sₕ,ₑ is the normalized focus. The function σ is the sigmoid, which maps a scalar into the interval between zero and one. The maximum, written max, finds the largest sigmoid score across the positions indexed by t′. The token with the strongest response supplies the scale for the rest. Several tokens can consequently receive large focus values at the same time. The authors describe this form as working better in this task than their prior attention mechanism, without giving a full comparison of the two normalizations in the main results.

The transfer variant, Ubu. RNN, uses the same basic recurrent architecture as the RNN and starts from parameters fitted on the [Ubuntu Dialogue Corpus](https://md.research.elamur.ai/free/en/papers/lowe-2015-ubuntu-dialogue-corpus-large-dataset/). The source task ranks candidate next utterances given a dialogue context. The authors describe a corpus with one million chat dialogue contexts drawn from Ubuntu technical-support channels. Its language includes informal typing and specialized computing terms. A successful response selector needs to represent the exchange well enough to recognize a plausible next contribution. Its training target concerns conversational fit.

For Hypothesis Evaluation, the authors keep the learned recurrent initialization and train the encoder further on the target task. They use the modified vocabulary handling described above, and the target task replaces the dialogue system’s dot-product scorer with the paper’s pair scorers. What is carried over is a starting point for the encoder’s parameters. The news or story decision is still learned from its own labels. This is [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/), and it gives the experiments a way to compare learning the recurrent representation from the target data with learning it from a much larger source first.

#### Comparing the pairs

The hypothesis and evidence encoders share parameters, an arrangement the paper calls Siamese training. Both sides therefore use the same learned transformations to produce their embeddings. Each pair goes through a comparison based on two coordinate-by-coordinate operations. The sum combines the values at each corresponding coordinate. The product exposes a different interaction by multiplying the corresponding values. Applied to the whole vector, these operations yield features for the pair.

The paper uses the resulting features as inputs to separate point scorers. Although it refers to these as MLP scorers, the version used here has no hidden layer. Each scorer forms a linear prediction from the pair features, followed by a sigmoid. The simple scorer makes the sentence encoder important. It needs to present the information in a form that allows the pair features and the linear calculation to establish a useful direction or weight.

The first score, Cᵢ, expresses answer direction for an evidence item. Its low end points toward no and its high end towards yes. The authors call this an entailment score within their task. It is a scalar estimate for the current hypothesis, with no separate classification output for an evidence sentence that is neutral. The second score, Rᵢ, expresses how much weight the evidence should have. The pair of outputs permits a strongly negative estimate to carry substantial weight. A sentence that points weakly or unreliably towards an answer can have less influence if its weight is small. These are behaviors the architecture permits, and their interpretation depends on what the functions learn from the available training signal.

#### Combining the evidence

The Evidence Weighing calculation is a normalized weighted average.

```
y = (∑ᵢ CᵢRᵢ) / (∑ᵢ Rᵢ)
```

Here y is the prediction for the whole hypothesis. In this formula i indexes evidence items within the hypothesis. Cᵢ is the item’s answer-direction score, and Rᵢ is its relevance score. Both are in [0, 1]. The numerator sums the products of direction and weight, and the denominator sums the weights themselves. The symbol ∑ᵢ means to sum over all available evidence items. The denominator gives relative rather than absolute influence to each weight. A sentence with a much higher weight than the others will have more influence over where the prediction lands.

This operation makes the effect of weighting concrete. When all relevance scores are equal, the output behaves like a plain average of the direction scores. If a high-weight sentence supports one answer while several low-weight sentences point the other way, the high-weight sentence can pull the decision towards its answer. When contradictory sentences receive similar weight, they can draw the average towards the middle. The operation has no input for the date of a statement, its position in a story, the reliability of its source or the relationship between that statement and the next. Such distinctions can affect the prediction only to the extent that they are present in the text being scored and survive in the pair representation.

For comparison, Evidence Averaging uses a single scalar per pair and takes the mean across evidence. It retains learned comparisons between the hypothesis and each sentence. Its aggregation gives the resulting predictions equal influence. The BM25 Feature variant also uses Evidence Averaging, but the pair scorer additionally sees a BM25 overlap score. The lexical signal can change a pair’s prediction before averaging. It is therefore a different use of overlap from weighting the final average directly by BM25. It is also distinct from the token and bigram overlap indicators already present in the encoder input.

#### Learning from the final answer

Training uses the question-level labels. If a predicted answer differs from its target, the error can flow through the weighted average and through both pair scorers to the shared encoder. The error signal can change a sentence’s estimated direction and can change how much influence the estimate has on the aggregate. The weights are learned as part of reducing answer error, with no independent check in the loss that a weight matches a human judgment of relevance.

The authors train the system in Keras with binary cross-entropy and the [Adam optimizer](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/). Binary cross-entropy penalizes predictions that put low confidence on the observed binary label. The paper reports L₂ regularization with a coefficient of 10⁻⁴ and dropout with probability 1/3. The regularization discourages large parameter values, and dropout makes training proceed with randomly omitted activations where it is applied. The authors found ranking-based losses ineffective in their setting. The reported multiple-choice evaluation nevertheless uses ranking at decision time, ordering the hypotheses by scores learned under the binary objective.

The supervision thus works indirectly at the evidence level. If a group of sentences yields the right answer, there can be many ways to divide the predictive work across those sentences. The system can also improve the answer by making direction estimates more reliable without learning useful variation in the weights. Evidence Averaging and the BM25 Feature comparison let the authors test whether the additional flexibility of Evidence Weighing pays off at the level they can evaluate directly, which is the final answer.

### Experiments and results

#### Argus and its news evidence

The Argus questions concern events in politics, sports and the stock market. To make retrieval reproducible, the authors restricted the time domain of the questions to September 1, 2014 through September 1, 2015. They first asked Mechanical Turk contributors to write questions and supply an answer and a news reference. This yielded an initial set of 250 questions with some redundancy. They then added manually derived questions that reversed the polarity, pairing a changed question with the opposite answer. They also generated questions using 26 templates concerning winners of sporting events and elections for the US Senate or state governorships.

Those sources introduce different kinds of variation. The contributor-written items can differ in subject and phrasing. Templates make it possible to produce questions with a common structure and different entities or outcomes. Reversed questions put pressure on a system that uses topic words as a short cut. Two questions can concern the same event and still require different decisions when a negation changes what is being asked. A reversal also illustrates why the pipeline needs to evaluate the wording against retrieved evidence even when retrieval itself would return similar text for both items.

To collect evidence, the authors used Argus’s Syphon component to assign [semantic roles](https://md.research.elamur.ai/free/en/concepts/semantic-role-labeling/) to question tokens. Roles describe functions that parts of a sentence serve in an event or relation. When role assignment succeeded for all tokens, the component produced keywords for search. The retrieval stage queried a newspaper collection and kept sentences containing at least 2/3 of the question keywords. The sources included The Guardian, selected sections of The New York Times and partial historical archives from 35 RSS feeds. The authors retained questions for which this procedure yielded at least one evidence sentence. The figure describing the final dataset gives its size separately from the counts for the initial question pool and the templates.

The examples show why the retained sentences still need a decision procedure. A question about Andre Iguodala and the NBA Finals MVP award can retrieve a line debating the merits of the choice and a line reporting that he received the award. Their lexical connection to the question is close, while their evidential force differs. In the example concerning a presidential run by Donald Trump, a policy-related report refers incidentally to the campaign announcement. Other sentences use enough of the same vocabulary to enter the collection, including an obviously fanciful headline. A useful reader has to notice the evidence inside the report as well as discount surrounding material that has little bearing on the actual event.

The headline result on Argus is that the Ubuntu-initialized recurrent encoder outperformed the other encoder variants by a substantial margin in the authors’ comparison. The evidence integration comparison gave a different result. The authors report no statistically meaningful accuracy differences among the ways of aggregating evidence. A recurrent encoder trained on the target data also did well on this particular task, a pattern the authors contrast with the behavior of convolutional encoders on the other tasks. The scale of the pretraining benefit and the relative lack of a weighting benefit are separate observations. Stronger sentence representations can raise answer accuracy even when the alternative aggregation rules yield similar results.

#### School science questions and textbook retrieval

The school science experiment uses the AI2 Elementary School Science Questions collection without diagrams. It contains 855 four-choice questions. The authors turn each proposed answer into a hypothesis by substituting the choice for the question word, then use Solr to search the CK-12 “Concepts B” textbooks for each hypothesis. A candidate can retrieve a different evidence set from its competitors because its text is part of the search query. There were 525 questions for which the procedure recovered any supporting evidence. These counts describe dataset construction and retrieval coverage. The experiment separately measures whether the system picks the right choice.

Question coverage before and after CK-12 retrieval for AI2-8grade/CK12 Textbook retrieval supplied evidence for a subset of the original question collection.

**The numbers**

| System or setting | questions |
| --- | --- |
| Original no-diagrams question pool | 855 |
| Questions with evidence in the authors’ dataset (this paper) | 525 |

The pedigree example makes the evidence setup easier to see. One candidate for a question about the transmission of family traits is a pedigree chart. The textbook evidence retrieved for that candidate explains how pedigrees represent inheritance and gives information about the symbols they use. A competing choice, an energy pyramid, retrieves descriptions of energy passing through food chains. Those descriptions may be informative about the candidate term and still contribute little to answering the question about family traits. The alternative evidence sets make the task partly a comparison of how well retrieval supports each completed hypothesis.

Other questions can require reasoning about a situation or a thought experiment. A relevant textbook sentence can supply background while leaving the decisive inference to the reader. The authors describe AI2-8grade/CK12 as preliminary. Its retrieved evidence was not checked by a human, and the authors judge that many hypotheses are effectively unprovable from the collected sentences. They also tried retrieving from English Wikipedia and found the resulting task harder. CK-12 supplies the evidence for the reported experiment. The released dataset is therefore tied to a particular collection and construction procedure, with variable evidence quality across questions and candidates.

On this task the Ubuntu-initialized recurrent encoder again led the encoder comparison. The evidence integration results differ from Argus. Learned weights improved on the simpler approaches for that strongest encoder. The comparison showed no corresponding general advantage across all the encoders. At the simple end of the comparison, adding the BM25 input helped the averaging-based system. Both results are compatible with useful lexical or learned evidence signals. They show benefits at particular points in the design space, where the underlying encoder and scorer determine how much the system can do with the information.

#### Stories and candidate answers in MCTest

MCTest contains 660 stories, each with four questions and four answer options per question. Some questions are tagged as depending on a single sentence, and others as requiring evidence from multiple sentences. The paper uses the official extension for textual entailment evaluation, which merges questions with their answers to form candidate texts. It pools training material from MC-160 and MC-500, the two parts of the benchmark, and reports test performance for the parts separately. As a result, the displayed accuracy for the combined training split and the accuracies for the separate test splits refer to different sets of examples.

Providing the story changes what it means to find the evidence. The system has the passage from which the question was written, so it can compare a candidate against sentences without searching a newspaper or textbook collection. A single useful sentence may sit among several sentences that mainly provide narrative context. For questions involving more than one sentence, the order and proximity of events can matter. The paper’s integration methods use the scores from individual comparisons, so the multiple-evidence class gives a direct view of where those comparisons are less adequate.

The published comparison includes an ensemble based on engineered syntactic and frame-semantic features and neural systems called Attentive Reader, Neural Reasoner and HABCNN. The last is a family of convolutional systems with attention at different levels, and HABCNN-TE is the strongest previously reported neural result the authors emphasize. The paper reports that simple averaging-based encoders are surprisingly competitive, including a result on MC-500 that beats the previously reported HABCNN-TE result in the comparison the authors highlight. The Ubuntu transfer encoder was reported as statistically comparable to the strongest prior neural result on both dataset parts. The engineered ensemble supplies a separate comparison. The paper’s strongest claims about matching or improving previous performance concern the neural systems.

MCTest also shows the gap between an overall result and a class-specific one. The tested architectures did poorly on questions marked as requiring multiple pieces of evidence. Learned Evidence Weighing nonetheless gave a significant accuracy improvement in the MC-500 comparison for all question types. The two observations can coexist. Choosing which individual sentences matter can improve predictions across the dataset while leaving questions that require connecting those sentences difficult. The experiment supports the value of assigning sentence-level influence in this setting without establishing that the system has learned to follow a chain of evidence through a story.

#### Accuracy across independent training runs

The evaluation counts correct answers at the question level. On Argus each hypothesis is one question, so the binary prediction is used for that question. On MCTest and AI2-8grade/CK12 the system evaluates four candidate hypotheses and ranks them for each question. A question contributes a correct result if the ranking selects its correct answer. This way of scoring does not reward a system for separately recognizing irrelevant evidence or for assigning a direction that agrees with a human reading of each sentence. The paper compares those internal behaviors through analyses alongside the question-level results.

The authors present mean test accuracy across 16 independent training runs, with 95% confidence intervals calculated using Student’s t-distribution. A fresh training can differ because of such choices as random initialization, training batch order and dropout. The mean is the authors’ estimate of the test accuracy to expect from the training procedure. The interval reflects the uncertainty of that estimate from the repeated runs on the benchmark. It is a different source of uncertainty from variation across news collections, story sets or ways of constructing questions.

The MCTest results provide a concrete illustration. For MC-160 across all question types, the paper reports that 5/16 of the runs exceeded an accuracy of 0.631. It also singles out the run with the top MC-500 test result and says that it clearly surpassed HABCNN-TE on the single-sentence class and on all questions. That selected run illustrates what the architecture sometimes achieved. The repeated-run mean answers the practical comparison of how well the training procedure typically performed. The authors point out that the earlier neural studies in the comparison did not supply confidence intervals for their published results, leaving less information about their run-to-run variability.

### What the ablations show

#### The effect of changing the evidence calculation

The most direct comparison changes the way predictions from the evidence set are aggregated. Evidence Averaging uses one learned prediction per sentence and a plain mean. The BM25 Feature variant adds a lexical overlap input to that prediction while retaining the plain mean. Evidence Weighing allows the sentence to contribute a learned direction and a separately learned weight. Since the last change also changes the pair’s outputs, the comparison evaluates a complete integration choice. It shows whether the added scoring and weighting procedure improves the answer, without identifying a contribution for every part of that procedure in isolation.

Argus gives the clearest example of an intuitively useful feature whose measured addition has little effect. The evidence examples contain sentences a reader would discount, so a way to suppress them seems well suited to the task. In the reported comparison, the different integration schemes produce no statistically meaningful separation in test accuracy. The authors’ preliminary filtering offers one possible explanation. By requiring substantial question-keyword coverage, the collection procedure may already have shaped the kinds of irrelevant sentences that reached the system. The remaining distinctions could be difficult to learn from a modest collection of question labels. Both possibilities come from the authors’ interpretation, and neither was tested by independently changing the retrieval rule or increasing the training set in a controlled experiment.

For AI2-8grade/CK12, the strongest recurrent encoder improves when given learned evidence weights. The other encoder comparisons qualify the result. In particular, the simplest averaging encoder benefits from the BM25 input. A plausible reading is that matching terminology can help it recognize evidence pertinent to a candidate even when its sentence representation is relatively simple. This remains an interpretation of the accuracy change. The experiment measures the value of making lexical overlap available to the scorer, with no annotation establishing how each evidence sentence was treated.

For MCTest, the comparison on MC-500 across all question types favors Evidence Weighing. This matches the setup in which one or a few story sentences can contribute disproportionately to an answer. Since the evidence comes from an existing story, a system can benefit from assigning little influence to contextual sentences while retaining a strong prediction from a decisive line. The aggregate accuracy result supports sentence weighting under those conditions. Any claim about reasoning through sentence order would require evidence from the questions that depend on that order, where the paper reports weaker performance.

#### What the Argus scores reveal

On Argus the paper examines the relationship between the outputs that were intended to have different roles. The reported Pearson correlation between the classification and relevance scores is r = 0.803. Pearson correlation measures the strength and direction of linear association between numerical quantities. The positive association here means that a stronger prediction toward yes tended to accompany a higher relevance score. In principle a sentence pointing towards no can be just as important to the final decision as one pointing toward yes. The two scorers give the system the capacity to express that distinction, while the outcome labels leave it free to learn a different relationship.

The authors interpret the high association as evidence that a distinct evidence-weighting function failed to emerge on this task. They have the integration comparison to set alongside this observation. Since weighting also gave no meaningful accuracy gain on Argus, there was little measured support for a useful, independently learned relevance function there. The correlation by itself would be less conclusive. It summarizes how the outputs co-vary and does not indicate which particular pieces of evidence are appropriately ranked. A correlation could also reflect the mixture of supporting, opposing and irrelevant sentences generated by a retrieval pipeline. The paper supplies no independent relevance labels with which to distinguish such explanations.

This analysis makes the supervision issue visible. At training time a direction score and its weight enter the same final calculation. The system is rewarded when the combined output gets closer to the answer. Some of that improvement could come from making direction scores sharper, some from moving weight to better-predicted sentences, and some from both scores responding to the same cues. The separate names for the outputs describe their intended roles and their positions in the calculation. How separately those roles are learned is an empirical question.

#### The effect of pretraining and encoder choice

The recurring advantage of Ubu. RNN is the strongest evidence in the paper for the value of training the recurrent encoder on a larger source before adapting it. The ordinary recurrent encoder already provides a comparison with a similar architecture trained on the target questions. The transfer version adds an initialization learned on dialogue response ranking, and the target training still uses the evidence-scoring procedure for Hypothesis Evaluation. The result supports the transfer of a useful text representation across the particular tasks in the study. It leaves open which properties of the source task or corpus produced the gain.

The authors compare training and test accuracy to examine overfitting. The recurrent systems, including the word-attention variant, tended to fit the target training data more readily than they generalized to the test sets. Convolutional encoders appeared more resilient in these comparisons. The authors tried reducing the dimensionality of the hidden representations and report that this did not improve performance. They suggest that the amount of training data may still have been insufficient for the word-attention encoder. They also give a tentative observation from preliminary work that attention might be more task-specific than the recurrent text representations they transferred.

At the same time, the recurrent encoder trained without dialogue pretraining did well on Argus. The authors suggest that differences between the tasks may matter more than a general preference for a particular architecture. On Argus, a negation or change in composition can reverse the meaning while much of the vocabulary stays fixed. A state that changes as words are processed can in principle preserve this difference. On the other tasks, some decisions can be made by recognizing a sentence that largely restates the candidate. A convolution or even an average can then contain much of the necessary signal. The comparison supports the architecture pattern the authors report. The explanation in terms of negation and composition is their hypothesis, since the experiments do not isolate performance on those phenomena.

The strength of the averaging encoders also affects how the more elaborate architectures should be read. An averaging encoder combined with learned pair scoring already has more information than a raw keyword count. It can match broad lexical content, use the overlap indicators and reshape its pooled vector for the task. Where that is sufficient, the main comparison is how much additional held-out accuracy the recurrent, convolutional or attention-based layers bring. In the paper’s small datasets, the more complex encoders did not consistently win that comparison. Pretraining the basic recurrent encoder changed the result more reliably than adding complexity to an encoder trained on the target data alone.

### Limitations

#### Limits the authors state

The authors identify a concrete problem with representing named entities and their roles. Their tennis example switches which of Roger Federer and Martin Cilic beat the other at the US Open. The relevant names and much of the surrounding language are shared between the two questions. A useful comparison needs to preserve who occupies each role. In the baseball example, the question asks about the Royals winning, while a headline says that the Giants won by defeating the Royals. Finding the team named in the question only brings the system to the right event. It still has to match the team with the outcome it actually had.

A compact sentence embedding can lose these distinctions. The authors argue for explicitly passing along and reconciling the roles of named entities, especially when an entity lacks a useful pretrained vector. Ordinary word attention can point to the names or surrounding phrases but provides no explicit representation of the roles to reconcile. The authors propose exploring a representation that can preserve multiple facts from a single sentence in future research. They relate that suggestion to differentiable parsing work with a memory structure. This is a proposal in their conclusion, with no experiment showing that it resolves the entity examples.

The authors also state that their MCTest systems make no attempt to model information flow across adjacent sentences. Each evidence sentence enters through a comparison with the candidate text. The final calculation uses the resulting scores independently of where the sentences occur in the story. When a question requires a detail introduced earlier to be linked to an event described later, the mechanism has no explicit stage to make that connection. The weak performance on the multiple-evidence class is consistent with this architectural limit. The improvement from weighting on the full MC-500 test set establishes value for choosing among sentences under this setup.

The school science evidence has a different limitation. The authors regard the dataset as preliminary because the retrieved material was not reviewed by a human and appears insufficient for proving many hypotheses. Some questions require reasoning that a textbook search may support only indirectly. The authors place the achievable accuracy from the collected evidence below the ideal value of 1.0, without reporting an independently measured ceiling. The evidence quality is therefore part of what the experiment varies in practice, even when every system is evaluated on the same prepared dataset.

Small target datasets also limit what the authors conclude about recurrent encoders and attention. They observe overfitting and raise the possibility that the system needs more training material to learn evidence weights in noisy, vocabulary-rich news. Their observations about attention transfer come from preliminary experiments, and they identify a fuller investigation as future work. The main transfer evaluation supplies evidence about initialization from Ubuntu response selection. It gives no comparable measurement of transferring the token attention function itself.

#### Limits of what the experiments establish

The Argus results apply to questions that survived the retrieval procedure. Successful role assignment, article retrieval and sentence filtering were conditions for appearing in the final dataset. These conditions rule out some questions and expose the answer system to a particular mixture of useful and unhelpful sentences. Accuracy is consequently conditional on evidence being available under that procedure. It does not measure how often an end-to-end service can resolve an arbitrary question when search returns nothing or misses the decisive news.

The yes-or-no supervision also gives a limited view of what evidence weights mean. Consider two systems that each answer a question correctly. One might give a large weight to the sentence a reader would quote as justification. The other might give large weights to several sentences whose wording happens to predict the correct answer. On this evaluation both receive credit for the answer, and the weight pattern has no independent correctness target. The Argus correlation helps diagnose what the scoring functions do in aggregate. It cannot establish equivalence between the learned weights and a human annotation of evidence relevance. The successful weight comparisons on the other datasets measure an improvement in decisions under their evaluation conditions.

The weighted mean also combines evidence without distinguishing repetition from corroboration. Several sentences can repeat the same report, share nearly identical language or describe separate observations. Their combined influence follows from their individual scores and weights. The paper uses no explicit relationship between them in this calculation. Similarly, the output scale represents direction from no to yes, with no separate answer for insufficient evidence. A score in the middle could arise from conflicting, individually forceful predictions or from many inconclusive ones. The binary accuracy metric provides no way to tell those situations apart.

For the multiple-choice experiments, candidate formulation and evidence access are entangled in different ways. In the science task, each completed hypothesis becomes a search query. A strong score can depend on whether that formulation retrieved a useful explanation and on how well the encoder interpreted it. In MCTest, the candidate is compared with a story already supplied with the question. An architecture’s relative performance across those tasks reflects differences in vocabulary, evidence construction and the kind of reasoning needed. The cross-dataset results help identify patterns worth investigating, but they do not isolate a general rule about when weighting will help.

The pretraining comparison likewise has a defined scope. The source corpus is large compared with the task datasets as the authors describe them, and the source and target objectives differ. Gains under these conditions establish that this particular source was useful for the recurrent encoder. They leave open how much the gains depended on having more text, the response-ranking objective, or properties of the dialogues that help a recurrent encoder learn transferable distinctions. An experiment that changed those factors separately would be needed to resolve their contributions.

Finally, the repeated runs make the authors’ own results easier to interpret while leaving the published comparison uneven. An average accompanied by an interval can be compared descriptively with a previously reported point result. Estimating a difference between the two training procedures would also require comparable information about the earlier system’s variability and evaluation conditions. The paper recognizes that limitation in comparing neural results on MCTest. Its most defensible claims concern what the simpler systems achieved on those splits, how performance varied across runs and where the authors’ own controlled comparisons favored a particular design.

### What came after

There are no documented later studies to trace here. The paper closes by making the Argus task implementation, the evidence integration code and its dataset processing available as open source. It also releases the Argus and AI2-8grade/CK12 datasets. Those releases provide the original setups for testing the distinction between finding relevant evidence and determining what it supports.

The authors’ proposed next steps address difficulties that their experiments leave visible. One is to retain the roles of entities explicitly enough to distinguish a winner from an opponent when both names appear in the same sentence. Another is to let the system retain several facts from a sentence rather than relying entirely on the information that survives in a single vector. They also identify attention transfer as an open experiment, following the gains from transferring recurrent encoder parameters. These are directions proposed by the authors. The demonstrated results concern joint learning from question answers, the conditional value of weighing sentences and the performance of the transferred recurrent encoder.

## Cite

Cite as Petr Baudiš, Silvestr Stanko and Jan Šedivý. 2016. Joint Learning of Sentence Embeddings for Relevance and Entailment. Proceedings of the 1st Workshop on Representation Learning for NLP.

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

```bibtex
@inproceedings{baudis2016joint,
  title = {{Joint Learning of Sentence Embeddings for Relevance and Entailment}},
  author = {Petr Baudiš, Silvestr Stanko and Jan Šedivý},
  booktitle = {Proceedings of the 1st Workshop on Representation Learning for NLP},
  year = {2016},
  doi = {10.18653/v1/w16-1602},
  url = {https://doi.org/10.18653/v1/w16-1602}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
