Robust Integration of Contextual Information for Cross-Target Stance Detection
Paper · 2023 · Tilman Beck, Andreas Waldis and Iryna Gurevych
Summary
A short argument can take a clear position without naming the issue it addresses. In the paper’s example, a writer credits school uniforms with fostering school spirit. To read that as support for uniforms, a reader needs to know that school spirit can mean a sense of pride and belonging that people value. Stance detection asks a system to make that kind of judgment from a text and a specified target. Beck and colleagues study what happens when the system also receives background information. They focus on a demanding version of the task in which the targets used for testing are absent from supervised training.
Their method, INJECT, reads the text and target in one encoder and the background sentences in another. The encoders exchange information through cross-attention at a selected layer. The text and target first guide the reading of the background, and the resulting background representation then informs the reading of the original input. Because the background arrives as ordinary text, the same architecture can use descriptions of commonsense relationships from ConceptNet, passages about claimed causes from CauseNet, or explanations elicited from T0pp. The authors compare this arrangement with a simpler alternative that appends the same background to the original input.
On a benchmark of 16 English stance datasets, the main comparison uses BERT. Giving it the target raises average test macro-F1 from 48.3 to 56.8. Appending the strongest source of background, generated explanations that connect a phrase in the text to the target, yields 56.2. INJECT with the same source reaches 57.8. At least one INJECT context setting improves on the text-and-target baseline in 13 of 16 datasets. The average also improves when INJECT is tested with RoBERTa and ELECTRA using that source. Results vary by dataset, and CauseNet helps on the largest number of tasks even though the generated explanations deliver the strongest overall average.
The controlled comparisons help explain why the way context enters matters. When the authors supply explanations or evidence chosen to be useful, both integration methods improve substantially, and appending the context scores higher. With randomly selected sentences, INJECT generally stays closer to the baseline that receives no background. An analysis of token attribution also finds changes in both directions. INJECT can give greater weight to wording that the baseline underuses, or reduce its reliance on terms strongly associated with a particular target and label. The evidence supports a method for managing imperfect context. The usefulness and reliability of that context still depend on where it comes from.
Deep dive: Robust Integration of Contextual Information for Cross-Target Stance Detection
INJECT uses separate encoders to bring background knowledge into stance detection and tests how well it handles unseen targets and noisy context. · about 35 minutes to read
The problem and its context
Stance is a relationship between a text and a target
An opinion survey can ask respondents directly whether they support a policy. Stance detection starts with text that people have already written and asks which position it expresses toward a specified person, claim, topic, or other target. The paper frames that as a scalable way to study opinions in unstructured text. Across its datasets, the object under discussion can be a debate topic, a person mentioned in a tweet, or a headline paired with an article. The system has to interpret the text with respect to the object the dataset assigns to it.
The paper’s school-uniform example makes the distinction from sentiment analysis concrete. The statement about school spirit describes a consequence of a proposal. The target tells the reader which proposal to associate with that consequence. Background knowledge supplies a further link by explaining why the consequence is generally presented as desirable. A stance classifier has to bring those pieces together. Recognizing the emotional tone of the fragment in isolation would leave the relationship to the policy unresolved. The difference is between judging the tone and deciding what the author favors, a distinction that also matters in the study of sentiment and emotion.
Even the output categories vary with the source material. A collection of arguments can ask whether a sentence supports or opposes a topic. An article paired with a headline can discuss the headline, disagree with it, or be unrelated to it. A social-media post can question a rumor without committing to either endorsement or denial. The paper treats these as separate classification tasks with their own sets of labels. That arrangement makes it possible to study how a shared approach to context fares when the meaning of a correct prediction changes with the dataset.
Why unfamiliar targets are a demanding test
A classifier can learn that certain words tend to occur in texts with a particular label. That association can be helpful when the words express the relevant position. It can also reflect how people talk about a specific issue in the training collection. If that issue appears again at test time, the classifier may succeed by relying on a familiar vocabulary. Testing on a different target asks whether the learned behavior transfers when the words people use to express support or opposition change.
The paper takes this concern from earlier studies of stance and argument mining, which found that target-specific terminology could be associated with labels in misleading ways. Argumentative sentences make the issue especially visible because the same subject vocabulary can appear in evidence for opposing conclusions. Terms referring to firearms, for instance, fit naturally in arguments on either side of gun control. Their usefulness depends on what the writer says about them. The authors investigate whether additional context can change how much influence such terms have over a prediction.
Cross-target evaluation gives that question a practical form. All examples for a given target belong to the same partition, so a system cannot train on examples labeled for that target and then be tested on other examples about it. The paper cites earlier work on this setting, including Stance Detection with Bidirectional Conditional Encoding. It also distinguishes the setting from the cross-domain benchmark protocol used in earlier work, where a system learns from other datasets and is evaluated on a held-out dataset. Here the training and test material comes from the same dataset, so conventions such as its label inventory can carry over while the targets change. The target may still be named in the input at test time. The held-out material is labeled training experience with that target.
How earlier systems brought in context
As the authors describe it, earlier approaches used several kinds of evidence. Some expanded the vocabulary available to a classifier with sentiment lexicons. Others drew on author information, interaction patterns such as retweets, or the relationship between parts of a larger discourse. That range is a clue to what the paper means by context. A missing piece can be a definition, a causal connection, or a feature of how a statement was produced and shared. Different domains provide different opportunities to obtain it.
Earlier work also tried to put knowledge into the system before training it for stance. The paper discusses approaches that used material from knowledge bases during pretraining or used knowledge completion as supervision. A representation learned in this way can carry information into a downstream task. Measuring the benefit still requires a downstream experiment because competence on the pretraining objective gives an indirect indication of how useful the acquired information will be for stance. One approach in this tradition is Knowledge Enhanced Contextual Word Representations.
Other work built connections to a particular knowledge source into the way a system processed its inputs. The paper describes a method that filtered Wikipedia triplets for use in Twitter stance detection. It also describes methods that ranked concepts in ConceptNet for argument relation classification or used a graph neural network to integrate concept–edge pairs. In these cases the graph provides a way to search for related information and, in some systems, determines how that information is represented during training. This is the role the paper distinguishes from the representation of a knowledge graph.
The authors also discuss approaches that change how the classifier learns the relationship between text and target. STANCY uses a consistency objective, with a contrastive training signal that favors greater closeness between a target and texts that support it. Other cited work prioritizes tokens that are informative about labels during masked-word training. The paper sees a risk in treating label relevance as a reason to emphasize a token without accounting for its association with a particular target. A token can be predictive in the training set and still give weak guidance about the position taken by a writer discussing an unfamiliar issue.
Why put the background into sentences?
The authors want the choice of knowledge source to follow the needs of the example. A definition may help with a phrase in a short argument. A description of a causal relationship may supply an unstated premise. A general-purpose commonsense resource may contain a useful relation for some domains, while a source designed around a particular kind of text may be more suitable elsewhere. A common textual format lets the source vary while the stance classifier receives the same kind of input.
That choice leaves two practical problems. The first is retrieval. A result can mention the same subject as the original text and still say nothing useful about the author’s position. The second is integration. A sentence that is present in the input can compete for attention even when its relevance is weak. The paper tackles both issues empirically by varying the source of the sentences and testing different ways of giving those sentences to the classifier. It learns to use the retrieved text during supervised stance training, which attaches the value of the context directly to the classification task.
The method, step by step
What the classifier receives
Each example begins with the text to be classified and its target, where the dataset supplies one. The training data also contains a stance label. Before training or evaluation, the context procedure collects background sentences for the example. In the school-uniform case, those sentences describe the pride and enthusiasm associated with school spirit and explain how that feeling can be viewed as beneficial for a school community. The label tells the classifier how the author’s position was annotated. The background offers information that can help the classifier arrive at that position.
The authors define context in terms of what would make an interpretation of stance plausible given the text and target. The retrieval procedures approximate that ideal. They produce candidates whose relationship to the task can be indirect, and the classifier receives those candidates as text. In particular, the retrieval step does not have to turn a sentence into a stance judgment before handing it over. The procedure can supply a definition even though the same definition could be used to understand arguments with different positions.
How INJECT uses background sentences to predict stance
The steps in order.
The task notation
x ∈ X
Here x is the individual text being classified, X is the collection of possible input texts, and ∈ means that the item belongs to the collection.
t ∈ T
Here t is the target associated with the text, T is the set of targets, and ∈ indicates membership. For a dataset with headlines as targets, t would be the particular headline paired with the text.
y ∈ Y
Here y is the stance label for the example, Y is the label inventory for the dataset, and ∈ indicates membership. Supervised training uses the known value of y. At evaluation, the classifier selects a label from Y for the example.
c ∈ C
Here c is a context entry for an example, C denotes the collection of contextual information made available to the encoder, and ∈ indicates membership. The paper describes the entry c as a list containing m texts, where m is the number of background items supplied for an example. The encoder’s maximum sequence length bounds the length of the individual texts. The main experiments use m = 2, a setting the authors chose through preliminary experiments.
I = (X, T)
Here I denotes the input stream of the architecture, X denotes the texts, and T denotes their targets. The parentheses group the text and target components, and the equals sign defines what the input stream contains. For a single example the corresponding items are x and t. The context goes through its own stream.
Retrieving commonsense and causal information
ConceptNet supplies commonsense assertions as connections between concepts. An edge has a textual relationship description and a weight derived from its frequency in the resource’s training corpus. The authors use the English portion, remove concepts that are English stopwords, and discard relations that lack descriptions. Stopwords are the common words screened out by the list used in their procedure, which comes from the Natural Language Toolkit. After filtering, the search covers 400k nodes connected by approximately 600k edges.
To find relevant ConceptNet material, the procedure searches for string matches between the text’s tokens and the names of concepts. It examines paths of length one with a concept at either or both ends occurring in the text. The edge weight then determines the ranking. The textual description along a selected path becomes a candidate for the context encoder. The procedure can thus bring in a fact about a concept that the author mentions, even if the author leaves its properties unstated. Its ranking favors relations with high weights in ConceptNet, so the step that decides whether the resulting sentence helps infer the stance still lies downstream.
CauseNet provides a different kind of background. It collects claims about causal relations from ClueWeb12 and Wikipedia. Beck and colleagues use its high-precision subset, with 80,223 concepts and 199,806 relations. They discard any concept with fewer than three characters or made up solely of a modal verb. Filtering these fragments reduces the pool of short or generic concept strings before retrieval. CauseNet supplies claimed relationships between events or conditions, so the retrieved claim may help a classifier recognize a consequence that the original text leaves implicit.
Retrieval from CauseNet uses a sentence representation for each relation and for the example. A version of Sentence-BERT with uncased BERT-base weights does the encoding. The procedure compares the example vector with the stored relation vectors using cosine similarity and ranks the relations accordingly. Cosine similarity measures how closely the vectors point in the same direction. In this setting it allows a candidate to rank highly because its representation is close to the example, even when the word strings differ. This use of closeness between sentence representations is a form of semantic similarity.
The two resources thus produce comparable inputs at the end of different retrieval processes. ConceptNet begins from concepts matched in the original wording and ranks short graph paths by their supplied weights. CauseNet begins from the encoded example and ranks causal material in a sentence representation space. Neither retrieval score is a measure of stance relevance. Converting the candidates into text gives the next stage access to their content while leaving their original ranking rules in the retrieval stage.
Generating background from phrases and targets
The third source uses a pretrained generator as a source of explanations. The motivation comes from prior work that queried pretrained systems for information using ordinary-language prompts, including Language Models as Knowledge Bases?. For each example, the authors extract noun phrases of up to three words with Stanford CoreNLP. They ignore stopwords during this process and filter out phrases equal to the target. A noun phrase is a group of words organized around a noun, such as the phrase about school spirit in the example. It gives the generator a more focused subject to explain than the whole argument would.
The authors use two prompting configurations. T0pp-NP requests information about one item, which can be a noun phrase or the target. T0pp-NP-T asks about the relationship between items, such as a phrase found in the text and the target. The first configuration is suited to supplying a definition or explanation of a term. The second asks the generator to connect something the writer says to the subject of the stance judgment. In both configurations the output is treated as candidate background.
P₁(a) = define a
P₁ is the first single-item template, and a is the term inserted into it. The equals sign shows the prompt obtained by substituting the term for the placeholder.
P₂(a) = what is the definition of a
P₂ is the second single-item template. a again stands for the term being queried, and the expression to the right of the equals sign is the resulting definition request.
P₃(a) = explain a
P₃ is the third single-item template and a is the term to be explained. The equals sign gives the wording of the request after substitution.
P₄(a, b) = relation between a and b
P₄ is the first template for paired items. a and b refer to the expressions inserted into the prompt. The comma separates its arguments, and the equals sign gives the wording used to request their relationship.
P₅(a, b) = how is a related to b
P₅ is the second paired template. a and b are the two supplied expressions, and the words after the equals sign ask how the former is related to the latter.
P₆(a, b) = explain a in terms of b
P₆ is the remaining paired template. a specifies what to explain and b supplies the frame of reference. The equals sign gives the prompt construction.
The selected generator is T0pp, which builds on a pretrained text-to-text encoder–decoder and was further trained on prompts drawn from diverse supervised tasks. The authors tried T5 directly and judged its responses inferior for this use. The two pieces of prior work behind the chosen generator are T5 and Multitask Prompted Training Enables Zero-Shot Task Generalization.
The generation procedure caps the output length at 40 words. The authors observed some outputs consisting of a single word, so they order candidates by descending length. They reject candidates in which repetitions account for more than half of the generated words and remove special tokens. Their prompt selection also involved manual inspection. During those trials they found that wording affected results and that omitting terminal punctuation helped avoid very short responses. The filters address visible problems with output form. Whether an explanation is true, relevant, or suited to the stance example remains a separate matter.
Passing information between the encoders
Each encoder first handles its own sequence with ordinary self-attention. Self-attention lets a token representation incorporate information from other tokens in the same sequence. On the input side, that sequence includes the text to be classified and its target. On the context side, the representations are formed from the retrieved sentence. At the chosen layer, cross-attention gives one sequence access to representations from the other sequence. These operations use the attention mechanism introduced in Attention Is All You Need, the work behind the Transformer and attention architecture.
Attention has a query, keys, and values. The query supplies the representation doing the looking. The keys are the representations it is matched against, and the values are the information combined according to those matches. In the first exchange, the context asks the questions in this sense, while the input supplies the keys and values. This gives the background side access to the particular text and target being considered. The background representation can therefore depend on the example for which it was retrieved.
IB⁽ʲ⁾(K = e⁽ʲ⁾₍I,s₎, V = e⁽ʲ⁾₍I,s₎, Q = e⁽ʲ⁾₍C,s₎)
IB⁽ʲ⁾ is an INJECT block at encoder layer j. K, V, and Q are its keys, values, and queries. e⁽ʲ⁾₍I,s₎ denotes the self-attention output on the input side at that layer, with I identifying the input stream and s indicating self-attention. e⁽ʲ⁾₍C,s₎ is the corresponding output on the context side, identified by C. The equals signs specify which representations the block receives in each role. The context encoder processes the block’s output to obtain an updated hidden state, denoted by h_C.
That hidden state then goes into the block on the input side. The original text and target now supply the queries. The keys and values come from the updated representation of the background. The order of the two operations matters because the background read by the input encoder has already interacted with the example.
IB⁽ʲ⁾(K = h_C, V = h_C, Q = e⁽ʲ⁾₍I,s₎)
IB⁽ʲ⁾ now refers to the INJECT block on the input side at layer j. K and V receive h_C, the hidden state produced for the context by the first exchange. Q receives e⁽ʲ⁾₍I,s₎, the input stream’s self-attention output at that layer. The subscripts identify the streams and s again marks self-attention. The equals signs assign those representations to the three attention roles.
The paper calls the resulting cross-attention output on the input side e⁽ʲ⁾₍I,c₎, with c indicating cross-attention. Further processing gives the input hidden state h_I, where I identifies the same stream that began with the text and target. When there are multiple context sentences, the method averages the cross-attention contributions across them. This gives the classifier a representation that includes contributions from each of the supplied sentences. The averaging operation gives each contribution an equal place in that combination. Inside the attention blocks, the system can still vary how much information it takes from individual tokens.
The classifier reads the resulting input representation through pooling, dropout, and a linear layer. Pooling forms the representation used for classification. Dropout is the training operation that randomly suppresses some components of a representation, and the linear layer produces scores for the dataset’s stance labels. The training objective is standard cross-entropy against the annotated label. It penalizes assigning low probability to that label and updates parameters in both encoders. The authors use the same encoder architecture on both sides, with separate parameters. The training stage learns to use context for the stance objective without a separate stage of knowledge pretraining.
Where the exchange takes place
The injection layer is chosen on development data. In the main experiments, the authors try layers 3, 6, 9, and 12. Layer 12 performs best in that search and is used in the reported main comparison. At other layers the two streams use standard Transformer blocks. This makes the point of interaction a particular architectural decision. Early layers can read their own sequences independently, and the chosen layer determines when the contextual information enters the input representation.
The simpler comparison appends the context to the input with the appropriate separator, such as [SEP] in BERT. A special case is an example with two input texts, where the context is attached to the second text. Ordinary self-attention can then combine information anywhere within the joined sequence. This makes concatenation a strong comparison for asking how much the dual encoders contribute. The relevant information is present in both conditions, and the integration mechanism determines when it can affect the text representation.
The paper explains the efficiency difference using the sizes of the attention matrices. For concatenation, it writes the size as follows.
d_sep = (len(input) + len(context)) × (len(input) + len(context))
d_sep is the attention matrix dimension for the joined sequence. len(input) is the input sequence length and len(context) is the context sequence length. len denotes the length operation, + adds the lengths, and × distinguishes the two dimensions of the matrix. Both dimensions use the combined length.
d_input = len(input) × len(input)
d_input is the size of the input-side self-attention matrix when that side is processed separately. len(input) gives its sequence length. It appears in both dimensions, separated by ×, because queries and attended positions are in the input sequence.
d_context = len(context) × len(context)
d_context is the size of the context-side self-attention matrix. len(context) is the corresponding sequence length, and the × joins the dimensions for positions drawn from that sequence.
d_cross_context = len(input) × len(context)
d_cross_context is the cross-attention matrix dimension assigned to the exchange on the context side in the paper’s ordering. len(input) and len(context) give the lengths of the two participating sequences. The × indicates that the matrix connects positions from one stream with positions from the other.
d_cross_input = len(context) × len(input)
d_cross_input is the matrix dimension for the exchange on the input side. len(context) and len(input) remain the separate sequence lengths, with × joining them in the opposite order for the reverse direction of exchange.
In the separate encoders, the input and context self-attention matrices are used throughout, with the cross-stream matrices added at the injection layer. This explains why the paper can report a runtime advantage over processing a combined sequence even though the architecture has two sets of encoder parameters. In the reported argmin training reference, BERT+Target and the comparison that uses ConceptNet each take 618 seconds, and INJECT takes 400 seconds. Those times describe the authors’ reference measurement on argmin. The matrix argument describes how the attention computation is organized as sequence lengths vary.
Training and selection
The main experiments start from uncased BERT-base and use the same general training settings across configurations. They train for five epochs using batches of 16 and set the learning rate to 0.00002, and a warmup ratio of 0.2 under linear scheduling. The optimizer updates the network parameters using AdamW, the method described in Decoupled Weight Decay Regularization. The reported test performance comes from the epoch that performs best on the development split. The paper also releases data and code for the experiments.
Experiments and results
A shared protocol for different kinds of stance
The main cross-target benchmark consists of 16 English datasets. Some contain posts or threads from debates, some pair articles with headlines or claims, and some use social-media messages. The remaining material includes arguments and claims drawn from varied sources. The breadth is important to the design. A specialized method can do well where its assumptions fit the way a dataset is organized. A shared protocol makes it possible to see how often that performance carries over to other kinds of text and targets.
The news datasets illustrate the variation even within one group. In fnc1 the text is an article and the target is a headline. The full collection has 75,385 examples, with 42,476 in training, 7,496 in development, and 25,413 in testing. Its overall label distribution assigns 73% of the examples to unrelated and 2% to disagree. Another news collection also uses article–headline pairs but distinguishes for, observing, and against. The distribution of labels and the decisions a classifier must make differ despite that common input structure. This is the Emergent stance dataset.
The social-media portion includes tweets about people, topics, and claims. The rumor dataset has categories for endorsement, denial, questions, neutrality, and unrelated messages. Its cross-target splits contain 6,093 training examples, 299 development examples, and 505 test examples. The authors report that some instances in the benchmark could no longer be obtained or were empty and had to be excluded. The rumor collection therefore illustrates a practical issue with reproducing a benchmark built from social-media posts. Its original study is Rumor has it.
The argmin dataset, which supplies the school-uniform example, classifies sentences as arguments for or against a topic. It has 6,845 training examples, 1,568 development examples, and 2,726 test examples in the cross-target setup. Another part of the social-media group uses the familiar labels against, none, and favor. The paper’s shorthand semeval16 in the results refers to SemEval-2016 Task 6. These differences matter when interpreting the average. The aggregate combines performance on several different classification problems, each judged against its own labels and held-out targets.
The authors use the existing benchmark splits where possible and make splits where necessary for their setup. Each experiment trains on one dataset. For the main BERT study, the results are averaged over ten runs with different initialization seeds. The paper’s main evaluation description names the Mann–Whitney U test and a significance threshold of 0.05. A dagger in the main results marks a reported significant difference relative to the text-and-target BERT baseline. The appendix also names a Bhapkar test at the same threshold without explaining how the two tests relate to the markers in the main table. The numerical scores can be read independently of that ambiguity.
The metric is macro-F1. For each label, precision asks how often a prediction of that label is correct, while recall asks how frequently examples with that label are recovered. F1 brings those quantities into one score, and the macro average gives each label equal weight. In an imbalanced collection such as fnc1, that mean reflects performance on rare disagreement as well as on common unrelated items. The paper reports a test macro-F1 for each dataset and an average across datasets. The benchmark average is therefore a comparison across the evaluated tasks, while an individual score captures behavior on the labels and held-out examples of one task.
What the baselines establish
The simplest baseline reads the text alone. BERT+Target reads the text and the target as parts of the same input, separated with the encoder’s separator token. This comparison estimates the importance of stating the target explicitly, before introducing any outside source. The context concatenation baselines add material from the same sources that INJECT uses, including the combined source condition and random context. The paper writes the concatenation operation with ⊕ and the INJECT operation with ⊗ in its results.
The authors also evaluate three methods designed for cross-target stance. TGA-Net clusters topics to obtain generalized topic representations. STANCY learns a representation in which supporting texts are closer to their targets and opposing texts are further away. JointCL uses a prototypical graph to build representations of tokens in relation to the target. Each brings a different proposed solution to the transfer problem, so their comparison with BERT+Target helps establish the strength of the simpler baseline.
There are exceptions in how scores enter the averages for these systems. All three require explicit target information, which is unavailable to them for semeval19. JointCL also fails to run on fnc1 because of the long inputs. For the relevant cells, the authors substitute the BERT+Target result when calculating the benchmark average. These substitutions keep the aggregate over a common set of datasets. An individual score that is unavailable for a system still gives no direct evidence of how that system would perform under those conditions.
The main cross-target comparison
BERT-based systems on the cross-target stance benchmark by average test macro-F1
INJECT with phrase-to-target explanations leads the comparison, while appending the same explanations trails the text-and-target baseline.
The numbers
| System or setting | macro-F1 |
|---|---|
| BERT text only | 48.3 |
| BERT text and target | 56.8 |
| BERT with appended T0pp-NP-T | 56.2 |
| INJECT with ConceptNet | 57.2 |
| INJECT with CauseNet | 57.7 |
| INJECT with T0pp-NP | 57.5 |
| INJECT with T0pp-NP-T (this paper) | 57.8 |
The paper reports that adding the target alone improves average test macro-F1 by +8.5pp and benefits 14 out of 16 datasets. The strongest INJECT result is a further improvement over 56.8, which is the relevant baseline for assessing background knowledge. The two comparisons address different kinds of information. The first gives the classifier an explicit description of what the opinion concerns. The second gives it descriptions and relationships that may illuminate what the writer says about that object.
STANCY averages 56.2 on benchmark test macro-F1, JointCL 50.9, and TGA-Net 46.8. They all fall below the average for BERT+Target. The paper also identifies settings where the specialized ideas perform well. STANCY scores 74.3 on fnc1 test macro-F1 against 72.9 for BERT+Target. On vast, TGA-Net scores 62.7 while BERT+Target scores 36.1. The authors relate TGA-Net’s advantage there to the distribution of topics. The dataset has 5634 targets and a mean of 2.4 examples per target, a setting where grouping topics may help compensate for the scarcity of examples attached to any particular one.
The main INJECT finding is broad but uneven. At least one retrieved source improves on BERT+Target in 13 of 16 datasets. The authors identify perspectrum, poldeb, and snopes as cases where the extracted contexts provide no clear benefit. The score on rumor shows what a larger improvement looks like. For the rumor test split, BERT+Target scores 40.5 macro-F1, appending T0pp-NP-T raises it to 44.5, and using that source with INJECT reaches 52.2. The paper reports the gain over BERT+Target as 11.7pp and marks the INJECT result as significant in its main comparison.
Other changes are smaller. On fnc1, T0pp-NP-T gives 72.1 when appended and 74.0 with INJECT, compared with 72.9 for BERT+Target. The paper marks the INJECT improvement over BERT+Target on fnc1 as significant. On ibmcs, the same INJECT source scores 53.4 against 52.0 for BERT+Target. The social-media dataset wtwt illustrates a loss: BERT+Target reaches 55.2, appending scores 54.2, and INJECT reaches 54.4. In that case both context conditions trail the baseline, and the separate encoder recovers only part of the loss seen with concatenation.
Results with other encoders
To test whether the architecture depends on BERT, the authors repeat the comparison with RoBERTa and ELECTRA. They carry over the cross-target protocol and use T0pp-NP-T, the strongest source from the main study. This comparison changes the underlying encoder while retaining the kind of context and the distinction between appending and cross-attending to it. The relevant cited work for the former encoder is RoBERTa.
Average test macro-F1 for RoBERTa and ELECTRA on the cross-target stance benchmark
For both encoders, INJECT improves on the text-and-target baseline while concatenation lowers the average.
The numbers
| System or setting | macro-F1 |
|---|---|
| RoBERTa text and target | 61.6 |
| RoBERTa with appended T0pp-NP-T | 60.8 |
| RoBERTa with INJECT (this paper) | 61.9 |
| ELECTRA text and target | 62.0 |
| ELECTRA with appended T0pp-NP-T | 61.6 |
| ELECTRA with INJECT | 63.1 |
The encoder comparison table describes its test scores as averages over three runs with different seeds. ELECTRA has the largest gain reported for this comparison, +1.1pp on average, and the highest overall score. The RoBERTa gain is smaller. On arc, for instance, RoBERTa with the target scores 60.4 test macro-F1 and its INJECT variant scores 62.9. On wtwt the relationship reverses, with 64.2 for RoBERTa with the target and 62.2 for its INJECT variant. The aggregate result shows that the benefit can carry over to other encoders. The individual datasets show that the transfer includes variation in how useful the context is.
What the ablations show
How the context source changes the outcome
The comparison across distinct context sources is an ablation of what goes into the context stream. In the main BERT experiment, every evaluated source has a higher benchmark test average with INJECT than when appended. ConceptNet scores 57.2 with INJECT and 55.7 with concatenation. CauseNet scores 57.7 and 54.9, respectively. For the generated single-item explanations, the corresponding scores are 57.5 and 55.7. Paired explanations perform best on average in both integration settings, but the aggregate benefit over the text-and-target baseline appears only with INJECT.
CauseNet improves test macro-F1 on 12 tasks with INJECT, the largest count the authors report for any source. T0pp-NP-T delivers the largest total improvement across datasets. The two comparisons answer different questions. Counting successful tasks credits a source for any improvement. An aggregate score is sensitive to how much performance changes, so a large improvement on a task such as rumor can matter more there. A source that gives frequent small gains and one with larger gains concentrated on fewer tasks can therefore appear in different orders under the two comparisons.
Combining all the sources yields 57.2 test macro-F1 with INJECT and 55.5 with concatenation. The combined context trails the strongest individual sources in the separate-encoder setup. The authors suggest that averaging contributions from the supplied sentences may dilute a particularly helpful sentence when other candidates offer different or less relevant information. The experiment observes the result of a mixed-context configuration. It leaves open how the mixture would behave with a mechanism that assigns different weights to entire sentences, or with a different way of selecting which candidates enter the mixture.
What happens when the background sentence is unrelated
Random context tests whether the system needs task-relevant background in order to gain from the integration architecture. In the main BERT comparison, the INJECT random condition averages 57.3 on test macro-F1 and slightly exceeds BERT+Target on ten datasets. The corresponding concatenation condition averages 54.5. Random context supplies no matched explanation for the particular example by design. The result suggests that the way the two streams interact can alter the classifier’s behavior even without deliberately relevant information.
This finding complicates a simple reading of the source comparisons. If a condition with unrelated sentences can improve the aggregate, exceeding BERT+Target need not measure the amount of useful knowledge the classifier acquired. The relevant retrieved sentence may add genuine information, while the architecture itself may change which input cues dominate regardless of the source. The paper’s follow-up comparisons investigate these possibilities by supplying background at the other end of the usefulness range, and by looking at how the classifier attributes importance to individual tokens.
When the context is deliberately informative
The authors use two datasets for a controlled comparison of ideal and random context. For natural language inference, they use e-SNLI, which pairs inference examples with explanations. For claim verification, they use evidence supplied with Snopes. Each dataset uses its original splits for these tests. That matters because the Snopes column in the main benchmark measures cross-target stance under a different setup, with automatically retrieved context. The controlled test gives the classifier information taken from the corpus itself. The inference collection is described in e-SNLI.
The authors treat the supplied explanation or evidence as ideal background because it is already selected to help justify the class. The e-SNLI condition uses one explanation, with m=1, and the Snopes condition uses ten pieces of evidence, with m=10. For the random conditions, the authors draw grammatically formed sentences from the Gutenberg corpus available through NLTK. A random sentence is thus readable and can occupy the same kind of place in the computation as useful evidence. It has been selected independently of the example it accompanies.
Context integration on the original Snopes split with random sentences by test macro-F1
INJECT stays closer to the context-free result when Snopes examples receive unrelated background sentences.
The numbers
| System or setting | macro-F1 |
|---|---|
| BERT without context | 51.8 |
| BERT with appended random context | 49.7 |
| INJECT with random context (this paper) | 51.1 |
With ideal Snopes evidence, the context-free system scores 51.8 test macro-F1, concatenation reaches 78.0, and INJECT reaches 75.8. With ideal e-SNLI explanations, the corresponding test scores are 90.33, 98.70, and 98.35. The scores in this comparison are averages across three seeds. Both methods take advantage of background selected to support the decision, and concatenation leads in both ideal conditions. On e-SNLI with random context, concatenation scores 90.08 and INJECT scores 90.52, with the baseline at 90.33. Both are close to the reference there, and INJECT is slightly above it.
The paper draws a qualified robustness conclusion from the conditions together. Direct access to context through a joined sequence can be valuable when the information consistently bears on the prediction. The main stance task supplies candidates with much less dependable relevance. In the per-dataset comparison with T0pp-NP-T, the authors find that where both methods improve, INJECT consistently performs better. Where both lose ground, INJECT generally loses less, with Snopes as the exception. These are comparisons of downstream scores under the context conditions the paper tests.
Measuring reliance on target-specific wording
The attribution analysis asks whether the two methods change how the classifier treats words that strongly signal a target and a label in the data. To identify those words, the authors count token occurrences associated with each label–target combination. They first form an odds quantity for a token under a particular combination, then compare its odds there with its odds outside that combination. Taking the strongest association across all combinations gives each token a measure of its maximum specificity.
o(w, (lᵢ, tⱼ)) = c(w, (lᵢ, tⱼ)) / c(¬w, (lᵢ, tⱼ))
o denotes the odds for token w in the group defined by label lᵢ and target tⱼ. The indices i and j identify a label and a target. c denotes a count within the specified group. Its first use counts occurrences of w, and its second counts the complementary outcomes denoted by ¬w, where ¬ means the token is absent. The slash divides the first count by the second, and the equals sign defines the odds.
r(w, (L, T)) = max₍ₗᵢ,ₜⱼ₎ ∈ L × T log(o(w, (lᵢ, tⱼ)) / o(w, ¬(lᵢ, tⱼ)))
r is the maximum log odds ratio for w across the label set L and target set T. L × T means all pairings of those labels and targets, ∈ indicates that the maximization ranges over those pairs, and max chooses the largest result. The numerator is the odds o within pair (lᵢ, tⱼ), and the denominator is the odds outside that pair, indicated by ¬ before the parentheses. The slash forms the ratio and log takes its logarithm. A larger score means that the token is more characteristic of at least one label–target combination by this measure.
The authors retain the top 5% of tokens by that relevance criterion. They approximate the importance of tokens in the network by measuring vector norms at the 12th layer. A vector norm gives the magnitude of a representation. Here the resulting measure is an estimate of how strongly a token contributes through attention. For the selected tokens, they compute the Pearson correlation between the relevance score and the estimated attribution. A larger positive value means that tokens more characteristic of a label and target also tend to receive greater attribution. This is the sense in which the paper uses attribution as a tool for interpretability.
The direction of change varies across the six datasets in the analysis. On rumor, the reported Pearson correlation is -14.1 for BERT+Target and 31.4 for INJECT with T0pp-NP-T. The authors report an increase of 45.5 on their correlation scale alongside the test macro-F1 improvement of 11.7pp. They read the result as stronger attribution to relevant tokens that the baseline had underused. On ibmcs and mtsd, the INJECT correlation goes down while test performance improves. For mtsd, the reported correlation changes from 64.5 to 33.8. On wtwt, the correlation also goes down, from 11.6 to 6.4, and the paper reports a performance loss of 0.8pp. A shift away from target-specific wording can help or hurt depending on what those words contribute to the particular task.
The paper makes this tradeoff concrete with paired examples about gun control from argmin, comparing BERT variants with INJECT using CauseNet. In the argument against gun control, INJECT makes the correct prediction and the other evaluated variants miss it. The attribution for firearms is lower with INJECT, and several more general words receive greater emphasis. In the argument supporting gun control, the same tendency accompanies an incorrect INJECT prediction. An expression about the right to carry arms matters for interpreting that argument, and the system gives the specific words in that expression less importance. The examples illustrate how a change that helps with a misleading cue can also suppress a cue that the writer actually uses to convey a position.
Which datasets gain more?
A separate analysis uses the dataset as the unit of comparison. The authors compute correlations between dataset properties and the performance difference between BERT+Target and the average of the INJECT variants. They consider the number of labels, their imbalance, readability, and other properties such as the amount of vocabulary shared by training and test. Their imbalance measure uses the spread of label frequencies relative to their mean.
label imbalance = standard deviation of label counts / mean of label counts
Label imbalance is the dataset statistic. The standard deviation in the numerator measures how widely the counts vary across labels, and the mean in the denominator is the average count per label. The slash indicates division, and the equals sign defines the statistic.
The paper finds larger gains on datasets with more labels or more uneven label distributions. It also relates gains to the variability of Flesch reading-ease scores within a dataset. Those scores characterize how easy the texts are to read. A dataset containing examples with quite different readability may ask the same classifier to deal with many levels of linguistic difficulty. The paper reports a strong positive relationship between the baseline’s variation across random initializations and the improvement from INJECT. The authors interpret this pattern as evidence that INJECT helps especially where the baseline is unstable. These are associations across datasets, so the comparison supports that interpretation without isolating any one dataset property as the cause.
Limitations
Limits the authors identify
The authors describe the quality of the supplied context as a ceiling on what the method can achieve. Concept matching, semantic similarity, and generation can each introduce background that is only loosely related to the actual stance. INJECT is designed to absorb that kind of noise more successfully than appending, but the classifier can still lose performance when the context is unhelpful. The finding on wtwt illustrates the authors’ concern about domain fit. A general-purpose source may give weak background for tweets about financial mergers and acquisitions.
The paper treats context from a generator as a further source of risk. T0pp can reproduce false information and stereotypical associations acquired during pretraining. The authors point out that many stance targets are controversial, so biased explanations could affect predictions in ways that aggregate classification scores conceal. They leave evaluation of those effects outside the scope of their experiments and consider such an evaluation necessary before deploying the approach beyond academic research. The controlled random sentences measure the effect of irrelevant content, whereas a biased explanation can be topical enough to look convincing and still distort the judgment.
The authors also report sensitivity to prompt wording. They saw changes in output quality during development and found that punctuation could affect how long the answers were. The selected templates and filters gave usable candidates for the benchmark, but the authors found no template configuration that worked equally well across all datasets. The generated context results therefore depend on the particular extraction and prompting choices as well as on the encoder architecture. The paper connects this concern to earlier evidence that changing a factual query’s wording can change what the system returns. How Can We Know What Language Models Know?
Finally, the two parallel encoders require twice as many parameters as the baseline and impose additional hardware demands. The paper presents the architecture as a proof of concept for integrating context while limiting reliance on spurious correlations. Its speed argument concerns the size of attention matrices and includes a training-time measurement on argmin. The authors identify parameter sharing and adapters as possible ways to reduce the parameter cost. Their suggested direction draws on Parameter-Efficient Transfer Learning for NLP.
Limits of the comparisons
The benchmark tests transfer to unseen targets within English datasets. Its variety supports a conclusion across the text sources represented in those evaluations. The setup leaves cross-language transfer and transfer into an entirely unseen dataset open. It also leaves open whether a deployment would have a target described as clearly as the benchmark does. The strong BERT+Target result shows how valuable that information can be, while the unavailable entries for semeval19 show that access to an explicit target affects which systems can be evaluated.
The improvement with random sentences means that the performance gain cannot be assigned wholly to useful retrieved facts. INJECT changes the architecture and increases the parameter count at the same time as it changes the route by which words interact. The random and ideal context conditions help separate some effects. They leave room for a contribution from the extra encoder, the attention pattern, or the changed training dynamics. Likewise, the stronger results with generated relational prompts establish that this source works well with INJECT in the reported setup. They leave the factual accuracy of individual explanations unmeasured.
The transfer check across encoders uses only the best-performing context source from the main study. It therefore verifies the portability of that integration setup across the tested encoders and leaves the other source–encoder combinations open. The benchmark average also gives a limited view of deployment behavior. Some datasets show gains of practical interest, while others show small changes or declines, and some specialized methods have unavailable scores filled in by the baseline for the average. The per-dataset results are essential to understanding where each comparison applies.
The attribution analysis measures an association between estimated attention contributions and token relevance. A word’s strong label–target association does not by itself tell us whether its use is linguistically misleading. The gun-control examples show both possibilities, and the correlation gains and losses across datasets reinforce that distinction. To establish why a specific prediction changes, evidence would need to isolate the role of the relevant words or contextual statements. The paper instead shows how patterns of attribution vary with the integration mechanism and how those patterns accompany changes in accuracy as measured by macro-F1.
The ideal-context comparison establishes that the architecture can use explanations and evidence already aligned with a decision. Such inputs make a useful test of whether the integration mechanism can exploit informative context when it receives it. They also set conditions quite different from retrieving open-ended background for an unfamiliar target. The remaining uncertainty is most consequential when the context is relevant enough to affect the decision but contains a misleading premise. The experiments with arbitrary unrelated sentences address a different kind of noise.
What came after
No subsequent studies are identified that extend or evaluate INJECT. The authors close by proposing more selective ways to elicit background explanations and exploring parameter sharing between the encoders. Both directions follow from the experiments. Improvements depend in part on the quality of the retrieved material, while keeping the streams separate increases the number of parameters. The paper leaves open how much of the observed robustness can be retained with more selective context and a smaller architecture.
Cite
Cite as Tilman Beck, Andreas Waldis and Iryna Gurevych. 2023. Robust Integration of Contextual Information for Cross-Target Stance Detection. Proceedings of the 12th Joint Conference on Lexical and Computational Semantics (*SEM 2023).
@inproceedings{beck2023robust,
title = {{Robust Integration of Contextual Information for Cross-Target Stance Detection}},
author = {Tilman Beck, Andreas Waldis and Iryna Gurevych},
booktitle = {Proceedings of the 12th Joint Conference on Lexical and Computational Semantics (*SEM 2023)},
year = {2023},
doi = {10.18653/v1/2023.starsem-1.43},
url = {https://doi.org/10.18653/v1/2023.starsem-1.43}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/beck-2023-robust-integration-contextual-information-cross/