Elamur Research

Using Author Embeddings to Improve Tweet Stance Classification

Paper · 2018 · Adrian Benton and Mark Dredze

Summary

A tweet can take a side on an issue without naming it. A reader who knows what the author usually writes about or whose messages they follow may have an easier time interpreting it. Benton and Dredze ask whether a tweet classifier can learn from that kind of context and still work when all it receives is a message. Their task is to decide whether a tweet favors, opposes, or expresses neither position towards a specified target. The same tweet can call for a different judgment depending on what the target is.

The authors summarize an account’s activity as an author embedding, a compact vector built from evidence such as the vocabulary of previous tweets or the accounts the author follows. They then train a recurrent neural network to predict that vector from the text of a tweet. This preliminary exercise uses tweets that have no stance labels. The network subsequently learns stance from a separate set of labeled examples. At prediction time, the author embedding has already served its purpose. The classifier uses the tweet text, so the identity or history of the account can be unavailable for the tweet it has to label.

The experiments evaluate this procedure against three alternatives: learning stance directly, pretraining on hashtags from individual messages, and using a linear support vector machine with sequences of words and characters. On the SemEval 2016 Task 6A test sets, pretraining on accounts selected for their connection to the evaluation topics raises the recurrent classifier’s score on four of the five targets. Its average macro F1 across targets is 53.0, compared with 50.8 for the recurrent classifier trained directly and 54.3 for the support vector machine. On a separate gun-control dataset, the clearest gain from pretraining comes with 100 labeled training examples. In that setting, the best recurrent result rises from 72.2 without pretraining to 75.0 with it, while the support vector machine reaches 79.2 test accuracy.

The gun-control experiments also allow a direct test of author information. When an author’s representation is available, a classifier can use it without the tweet or combine it with the tweet. Previous writing carries some stance information, but the current message is more informative, and adding the author features to it produces little change. Together, the experiments show that author activity can provide a useful training signal, especially when labeled examples are scarce. The size and consistency of the benefit depend on the target, the training set, and the classifier used for comparison.

Deep dive: Using Author Embeddings to Improve Tweet Stance Classification

Benton and Dredze use author embeddings to pretrain tweet stance classifiers that can work from the tweet alone at prediction time. · about 36 minutes to read

The problem and its context

A stance is about a target

In stance detection, the question is what position a message expresses toward a specified target. This is a form of text classification in which the meaning of the label depends on the subject of the judgment. A favorable statement about the right to own guns, for example, is evidence for the AGAINST label when the task defines the positive position as support for gun control. FAVOR and AGAINST make sense only in relation to that definition. For the SemEval task, NEITHER is also available when the message expresses neither support nor opposition toward the target.

This differs from assigning a general sentiment to a message. A reader can recognize enthusiasm, criticism, or frustration and still have to work out what the feeling is directed at. The paper places stance detection alongside earlier sentiment studies involving movie and product reviews, as well as work using social media to study public opinion. In some of those applications, a broad judgment about a review or opinion is the desired result. Stance imposes a more specific reading. A message might criticize the people who oppose a policy, for instance, and that criticism could signal support for the policy itself.

In the authors’ account of targeted sentiment, a system may have to find both the target and the feeling expressed toward it. Here the target has already been set. This matters for what the system learns and for how the results should be read. In the SemEval experiments, the authors train a separate classifier for each target. When a classifier sees a tweet, the target is already established by the task it was trained to perform. The experiment therefore tests whether the wording supplies enough evidence to assign a stance under that fixed question. Earlier work treated this relationship between a position and its subject as central to stance classification in online debate.

Tweets make the reading problem particularly visible. The paper describes them as short and informal, and the shared task contains messages that omit an explicit reference to the target. When the name of a candidate, movement, or issue is absent, a classifier must use whatever is left in the message. Its evidence may be a slogan, a reference to an associated controversy, or the way an evaluation is expressed. The authors are interested in whether a training exercise can teach a classifier to recognize such clues more readily when a labeled dataset is small. The shared task defines these difficulties and supplies the labeled examples for the paper’s main benchmark. SemEval-2016 Task 6

What knowing the author can contribute

An author’s past behavior can change how a reader interprets an ambiguous statement. The paper illustrates this with an account that repeatedly takes liberal positions. Even without seeing a past statement about a particular liberal candidate, a reader might consider support for that candidate more plausible given the account’s previous statements. The authors describe this kind of expectation as a prior. It gives the reader a starting point. The particular tweet can still supply stronger evidence for another interpretation.

Previous tweets are one possible source of that expectation. Following behavior gives a different view. If accounts that share some beliefs tend to follow overlapping groups of people, then those connections can help summarize which communities or subjects an author engages with. The paper takes both possibilities seriously. It also points out that a platform record may contain messages and social ties without an explicit field that identifies political views or tells a classifier which aspect of an account is relevant to a particular target. The researchers therefore work with representations learned from behavior.

That choice changes the kind of claim they can test. An author vector may combine signals related to topics, vocabulary, or the accounts a person follows. The researchers can ask whether training on that vector helps a downstream classifier. Reading an individual component as a specific belief would require evidence of a different kind. The purpose of the vector is to summarize observed patterns compactly enough to use as a learning target.

There is also a difference between knowing something about accounts in a research collection and having that information ready for every incoming tweet. Building an author representation means collecting enough previous activity and processing it. The introduction describes a setting where a large stream of messages would need to be classified, including messages from accounts for which those steps have yet to happen. The SemEval benchmark presents a more immediate version of the same problem. Its released examples come without the identifiers that would let the authors trace them back to accounts. A system that requires an author vector alongside every labeled or incoming tweet would depend on data that this benchmark cannot supply.

The paper’s proposal addresses the problem by moving the use of author information to an earlier stage. During pretraining, tweets are paired with account representations. During supervised learning, tweets are paired with stance labels. The people who wrote the pretraining examples can come from a separate collection. The connection between the stages lies in the parameters of the text-processing network. Once those parameters have been adjusted to predict author activity, they provide the starting point for learning from the stance examples.

What earlier work supplied

The paper draws on several uses of context in classification. It cites earlier research on recurrent networks for document and short-text tasks, including work on document sentiment classification. A recurrent network reads a sequence and keeps a running representation as it goes. In this paper, that gives the classifier a way to take word order and surrounding tokens into account. A linear classifier using recurring word and character patterns remains an important comparison because those patterns can be informative even with very short texts.

The closest comparison for the pretraining procedure comes from a SemEval submission that trained a recurrent network to predict hashtags withheld from individual tweets. A hashtag can provide a learning target wherever a message contains one, even when nobody has supplied a stance label. That procedure teaches a network to associate words in a message with the tag used in the same message. Benton and Dredze retain the broad idea of an auxiliary objective and change the source of the answer. In their proposal, messages by the same account can be assigned the same training target, derived from activity that extends beyond any single input tweet. MITRE’s SemEval transfer-learning approach

Earlier research on sarcasm supplies another comparison. The work cited by the authors gives the sarcasm classifier an author representation as part of its input. That is a direct way to use the author as context when the vector is available for the message being classified. In the stance pretraining procedure, the vector instead appears on the output side during the auxiliary exercise. The network has to predict it from text, and the final stance classifier can run without it. The paper separately tests the value of giving a classifier author features directly on the dataset where the necessary accounts can be identified. User embeddings for sarcasm detection

Earlier stance work also considered targets unseen during training by encoding a description of the target. The distinction is important here because Benton and Dredze change the initial training signal for the text encoder. Their experiments retain a fixed target for each classifier. Whether the auxiliary signal also helps a classifier reason about a new target is a separate question they identify for future research. Stance detection with bidirectional conditional encoding

The method, step by step

Turning context into a training target

The method starts with accounts whose activity can be observed. For each account, the researchers construct a compact numerical description from some aspect of its behavior. They then give the network an individual tweet and ask it to predict that description. To perform the auxiliary task, the network must learn which clues in a short message are associated with patterns visible across the author’s activity. Those clues might later prove useful to a stance classifier if they relate to the way people discuss the target.

The next stage supplies the labeled stance examples. These can be collected independently of the accounts used in pretraining. The tweet passes through the same sequence-processing layers, but the network now has an output layer for the stance labels. The weights learned during the auxiliary exercise initialize the layers shared between the stages. The label training then adjusts those layers for the main task. In use, the classifier predicts stance from the incoming tweet through the resulting network.

The ordinary recurrent baseline follows the same broad route from tweet text to stance output. Its text-processing layers learn from the labeled examples without first doing the author-prediction exercise. Both versions start with word embeddings trained on Twitter text. Thus the main comparison concerns the extra training of the tweet encoder. The ordinary baseline already has access to word representations learned from other text.

From account activity to tweet stance prediction

The steps in order.

From account activity to tweet stance predictionStep 1: Collect tweets and following data for pretraining accounts1. Collect tweets and following data for pretraining accountsStep 2: Construct a vector for each account2. Construct a vector for each accountStep 3: Encode individual tweets with a recurrent network3. Encode individual tweets with a recurrent networkStep 4: Train the encoder to predict author vectors4. Train the encoder to predict author vectorsStep 5: Fit a stance output using labeled tweets5. Fit a stance output using labeled tweetsStep 6: Predict stance from the incoming tweet text6. Predict stance from the incoming tweet text

Encoding the words of a tweet

The authors lower-case the tweets and apply Twitter-specific tokenization, which divides a message into the units the classifier reads. They replace usernames and links with shared placeholders. This retains the presence of an account mention or a URL as a feature while pooling their many distinct surface forms. The tokenizer comes from earlier work whose tools were designed for the language found in tweets. Part-of-Speech Tagging for Twitter

The input lookup layer converts the tokens into vectors. Its starting values come from Twitter-trained GloVe embeddings. These are representations of words or tokens. An author embedding, by comparison, summarizes an account and serves as a prediction target. Keeping those roles in view helps explain what is transferred. The auxiliary exercise changes how the network processes and combines its inputs. The final classifier still starts from the words of a tweet.

The recurrent unit is a gated recurrent unit, or GRU. Its hidden state is a vector that the network carries along the sequence. At each position, the GRU calculates how much of the previous state to carry forward and constructs candidate new values using the current input. The gates are learned functions of the input and previous state, so different positions and different components of the state can be treated differently. The paper uses the GRU from Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation.

The update gate is calculated as follows.

zᵢ = σg(Wz xᵢ + Uz hᵢ₋₁ + bz)

The index i marks the position in the tweet, and zᵢ is the update-gate vector there. xᵢ is the current input vector, and hᵢ₋₁ is the hidden state from the previous position in the direction of the recurrence. Wz and Uz are learned matrices that transform those vectors, and bz is a learned bias vector. Adjacent matrix and vector terms indicate multiplication. The plus signs add the resulting vectors, and σg applies the sigmoid function to each component. The equals sign identifies the resulting vector. The sigmoid makes each gate component a soft weight for carrying the previous state into the new one.

The reset gate uses the same inputs with its own parameters.

rᵢ = σg(Wr xᵢ + Ur hᵢ₋₁ + br)

Here rᵢ is the reset-gate vector at position i. xᵢ and hᵢ₋₁ are the current input and preceding hidden state. Wr and Ur are the reset gate’s learned matrices, and br is its bias. The products transform the inputs before addition, and σg again applies the sigmoid component by component to produce the vector on the left. The network uses this gate when proposing new state values. Components with a small gate value contribute less of their earlier state to that proposal.

The candidate state combines the gated past with the current input.

nᵢ = σh(Wh xᵢ + Uh(rᵢ ◦ hᵢ₋₁) + bh)

nᵢ is the candidate vector at position i, and σh is the hyperbolic tangent applied to each component. Wh multiplies the current input vector xᵢ. Uh multiplies the vector formed by taking the elementwise product, written ◦, of the reset gate rᵢ and the previous hidden state hᵢ₋₁. bh adds a learned bias. The terms inside the outer parentheses form the input to σh, whose result is the candidate on the left.

Finally, the GRU mixes the retained state and the candidate.

hᵢ = zᵢ ◦ hᵢ₋₁ + (1 − zᵢ) ◦ nᵢ

hᵢ is the resulting hidden state at position i. hᵢ₋₁ is the previous state, zᵢ is the update gate, and nᵢ is the candidate. The symbol ◦ multiplies corresponding vector components. The expression 1 − zᵢ subtracts each gate component from 1, giving the weight on its corresponding candidate component. The plus sign adds the retained part of the previous state and the weighted candidate. A larger update-gate value in this convention favors the previous state.

Combining evidence from across the message

The network now has a hidden state at each position. The authors use attention to give those states different weights before making a prediction. Here attention works by comparing each position’s state with the final state. The final state acts as a query, a vector against which the network scores the representations of the message’s positions. A dot product measures their alignment. Exponentiating and normalizing the scores makes the weights positive and gives them a fixed total of 1. The network combines the hidden states using those weights. The paper draws this scoring approach from Effective Approaches to Attention-based Neural Machine Translation.

aᵢ = exp(hᵢᵀ hₙ) / ∑ⱼ₌₁ⁿ exp(hⱼᵀ hₙ)

aᵢ is the weight on position i, and n is the number of positions in the message. hᵢ is the state at the position being scored. hₙ is the final-state query. The superscript ᵀ transposes a state so its product with the query is a dot product. exp is the exponential function. The denominator, introduced by /, uses ∑ to add the exponentiated scores for all positions j, starting at 1 and ending at n. Each term uses the state hⱼ and the same query hₙ. The resulting fraction gives the normalized weight on the left.

The weighted message representation is a convex combination. Each position contributes its state multiplied by its attention weight, and the combination stays within the range of mixtures of those states. A softmax output layer converts the scores for the stance classes into probabilities. Supervised training raises the likelihood assigned to the observed labels. When the network has an auxiliary task, the same message representation supplies the input to the author-prediction output.

The search includes forward and bidirectional GRUs. In the bidirectional case, one recurrence reads the text in its original order and the other reads it in reverse. The representation at a position joins the two directions’ activations. The diagram in the paper shows a 2-layer bidirectional example applied to a message that states that climate change deserves concern. Its weighted representation uses states from the second layer, and its query joins the final states of the forward and backward passes. The diagram marks separate weight matrices for the author and stance outputs. The rest of the network is shared between stages.

This distinction between the output layers is what lets the network take on a prediction target with a different meaning and shape after pretraining. A real-valued author vector can have components that describe broad patterns of activity. The stance output instead assigns probabilities to a small set of labels defined for the task. The useful transfer, if it occurs, comes through the text-processing layers before those outputs.

Choosing what the author vector should describe

The authors try several ways to represent an account. The most direct begins with a list of keyphrases thought to be relevant to the subject. The researchers summarize the frequency with which an author uses those phrases and turn it into a distribution over the list. The resulting vector answers a narrow question about the account’s history. It records how its usage is distributed across the selected expressions. That makes it easy to see what each component stands for, while the selection of phrases determines what kinds of behavior are represented.

The Author Text representation is broader. It starts from a matrix of accounts and words, using the account’s collected tweets as its text. The authors remove stopwords and retain the 30,000 most frequent token types. Entries are weighted using TF-IDF, which gives more influence to terms that help distinguish an account’s text from the broader collection. At this stage the representation is a bag of words. It retains evidence about which words an account uses, with their weights, while the original order of the tweets and words plays no role in the matrix.

The researchers then apply principal component analysis, or PCA. This projects the high-dimensional vectors onto a smaller set of directions that capture variation in the data. An account can consequently be described by a short vector of values along those directions. The compact representation preserves shared patterns across vocabulary usage. The components can mix many words, so an individual coordinate lacks the direct phrase-level interpretation of a component in the keyphrase distribution.

The Social Network representation starts from the list of accounts a user follows. The paper calls those followed accounts friends. For this representation the researchers build an adjacency matrix using the 100,000 most frequent friends in the collection. A row describes the observed following choices of an author with respect to that set of accounts. Applying PCA to this matrix gives a compact vector derived from configurations of followed accounts. Its source of variation is the network of observed connections, while Author Text derives its variation from writing.

The Multiview representation combines the text and network vectors. The researchers apply canonical correlation analysis, or CCA, to the two PCA representations. CCA seeks projections in which the paired views of the same users have correlated values. Then the authors average the two projected vectors for each account. This yields one shared representation whose coordinates are chosen using information from both views. The motivation comes from their earlier work, where an account’s representation was informative about its future hashtag usage, which they used as an indication of topic engagement.

The paper considers user-vector widths from 10 to 100 and uses 50, selected by an initial search for cross-validation performance with the Author Text representation. For real-valued embedding targets, the auxiliary objective is mean squared error. Predicted values are compared with the target coordinates, and large errors get extra weight through squaring. For the keyphrase distribution, the authors use a softmax output and cross-entropy. That loss puts pressure on the network to assign probability where the target distribution assigns weight. The choice of loss follows what the vector represents and what its values mean.

Collecting accounts and pairing their vectors with tweets

The SemEval benchmark has stance labels but lacks the account and message identifiers needed to build vectors for its authors. The researchers therefore assemble a separate, topically related pool of Twitter users. They take hashtags used to query the shared-task topics and look for them in a sample drawn from the Twitter 1% stream in 2015. Queries include #atheism, #climatechange, #feminism, #gohillary, and #prochoice, each giving the search a connection to the corresponding evaluation topic. Matching tweets supply authors whose broader activity can be collected.

For these authors, the additional collection includes up to 200 recent public tweets and their local following networks. If an account has fewer than 200 public messages, the procedure calls for collecting the available ones. Deleted or banned accounts and users for whom the API returns fewer than 50 tweets are excluded from the related-user collection. The resulting pretraining set contains 79,367 tweets from 49,361 distinct users. Network information is available for 38,337 users. The paper dates the collection of the timelines and following lists to May 5 through May 11, 2018. The 2015 stream serves to locate topic-related messages and their authors, and the later collection provides account activity used to build representations.

This pool supplies Author Text and Social Network vectors for the related-user conditions. When a network representation is missing, the researchers fill its place with the mean network vector calculated for the other users. They do this before learning the Multiview representation. The completed matrix therefore has paired text and network vectors for the CCA step. The mean is shared across users with missing network data, so the replacement cannot express differences in their unobserved following choices.

The general-user pool tests the importance of topical selection. In April 2015, its authors were drawn by uniform sampling from Twitter’s 1% stream. Their text history comes from January 2015 through March 2015, and the authors collect the following data in the same way as for the topic-related pool. The text embeddings use January and February 2015 tweets. The network sees tweets sampled from March 2015 when learning to predict the account vectors. This separation puts the account summary and its corresponding individual input tweets in distinct periods for the Author Text objective. The reported pool contains 152,751 inputs from 61,959 unique authors. It supports pretraining against text, network, and Multiview representations.

The gun-control experiment has its own pool of 49,023 unlabeled tweets collected on the subject. The paper describes using the distribution of general gun-related keyphrases across an author’s posts as one auxiliary target. It also describes constructing Author Text and following-network embeddings from activity associated with the collection. The reported Guns pretraining comparison includes topic-specific keyphrase and text conditions, along with conditions using the general pool. The account identities available for the Guns data also make it possible to connect author vectors with the labeled messages in a separate feature experiment.

Fitting and selecting the classifiers

The network makes a single pass through the auxiliary training set before fitting the labeled stance data. This pass updates the shared weights to make the text representation predictive of the chosen author target. For supervised learning, the authors weight each example’s loss by the inverse frequency of its label. That gives a message from a less common class more influence per example. The paper reports that this weighting improved performance in tasks with imbalanced labels.

The neural training uses minibatches of 16 examples and the Adam optimizer. Its base step size is 0.005, with β₁ set to 0.99 and β₂ to 0.999. Those β settings control how the optimizer accumulates information from recent gradients and their squared values. The authors cap the Euclidean norm of a weight update at 1.0. They report a minimum training period of 5 epochs and an early-stopping rule based on 3 epochs without improvement in held-out loss. An epoch is a pass through the relevant training set.

The search over architecture includes hidden-layer widths of 25, 50, 100, 250, 500, and 1000. The authors consider dropout rates of 0, 0.1, 0.25, and 0.5. Dropout temporarily suppresses some activations during training, so learning cannot always depend on the same set of active components. The available word-vector widths are 25, 50, 100, and 200, and the depth choices are 1, 2, and 3 recurrent layers. The search also considers whether to read in a single direction or in both directions.

For the recurrent classifier trained directly on stance, the authors choose an architecture using cross-fold macro F1 on the Feminist Movement topic. They run a separate architecture search for systems that use pretraining. The reported configurations therefore represent tuned approaches. Architecture selection is part of the comparison alongside the choice of auxiliary training. At SemEval evaluation, separate classifiers learn each target, and the reported test F1 averages scores from runs fit on the different cross-validation folds. In the Guns experiments, the average development-set F1 guides selection.

Experiments and results

What the test sets ask the classifiers to do

The experiments use English-language tweets and cover six stance domains across the two datasets. SemEval 2016 Task 6A provides 2,814 training tweets and 1,249 test tweets. The topics covered are Hillary Clinton, Legalization of Abortion, Atheism, the Feminist Movement, and the claim that climate change is a genuine concern. A tweet is labeled FAVOR, AGAINST, or NEITHER with respect to its given subject. The training sets are small for individual targets, the labels are imbalanced, and a target may be absent from the tweet’s wording. Each of those properties affects how much a classifier can learn from the labeled tweets.

The researchers use four-fold cross-validation within the SemEval training partition. They fit on a subset of the folds and use the held-out fold to compare configurations. Their folds are their own because the shared-task release did not include the original cross-validation folds. The final comparison still uses the test split that was supplied. The authors use the official class-averaged F1 measure in selection and evaluation. F1 for a class combines precision, the reliability of predictions of that class, with recall, the share of actual instances found. The SemEval metric averages F1 for FAVOR and AGAINST. NEITHER remains a prediction option and can affect the measured results through errors involving the scored classes.

The Guns dataset starts from a keyword stream collected beginning in December 2012 and continuing through 2013. The queries include expressions such as firearms and second amendment. Those broad phrases identify relevant messages. Distinct sets of hashtags then supply the stance labels. For example, #guncontrolnow belongs to the gun-control set, and #gunrights belongs to the gun-rights set. FAVOR denotes support for gun control. AGAINST denotes support for gun rights. Tweets with hashtags from both sets and tweets with no label-bearing hashtag are left out of the labeled collection. The authors say they remove the hashtags used to assign the labels from the training examples.

The resulting labeled pool contains 26,608 tweets. The researchers sample 50, 100, 500, or 1,000 examples per class and repeat the sampling five times for each training size. The training partitions are balanced by construction. The examples left over in each case are divided equally into development and test partitions. The test table labels its training sizes as 100, 200, 1000, and 2000 total examples. Reported accuracy averages across the sampled runs at each training size. Accuracy measures how frequently the predicted stance label agrees with the assigned label. It is a different measure from the class-averaged F1 used to report SemEval results.

This sampling design gives the paper a way to compare the effect of pretraining under several annotation budgets. Every size is drawn from the same overall labeled pool, and the remaining examples supply the development and test partitions for that draw. The resulting test sets vary with the sampling. The outcome is therefore a comparison across repeated splits under each training condition, with the development data available to select the corresponding configuration.

What the systems are compared against

The linear support vector machine, or SVM, learns from word and character n-grams. These are contiguous sequences of tokens or characters. Word sequences can capture repeated expressions, and character sequences can capture repeated spelling fragments or parts of a hashtag. The classifier uses the presence of such features as evidence for the stance labels. The authors tune the penalty associated with training errors using held-out cross-validation F1. This is the paper’s strong conventional baseline.

The plain recurrent classifier establishes the performance of the neural text encoder when trained directly on labeled stance examples. The message-hashtag condition supplies a comparison with a different auxiliary objective. The authors begin with the 200 most frequent hashtags in the relevant pretraining collection and remove tags that lack a topical function, such as #aww. That leaves 189 distinct tags and 32,792 tweets carrying at least one of them. A 189-dimensional softmax layer learns to recover a held-out tag from the text. The cross-entropy target gives weight 1 to the most frequent qualifying hashtag and 0 to the others. The procedure follows the earlier SemEval approach, with the tag derived from the individual message.

The author-pretrained recurrent systems ask the same kind of network to predict a different answer during its auxiliary phase. In SemEval the target can be a text, network, or combined embedding, and the source accounts can be selected by topic or sampled generally. The paper also reports a selection procedure that chooses the embedding type by validation F1 for each stance target in each source pool. That procedure matters when reading the aggregate results. A system that chooses by cross-validation can finish below a particular fixed representation on the eventual test split.

SemEval test results

SemEval 2016 Task 6A test macro F1 averaged across targets

Related-author pretraining improves the recurrent classifier, and the linear SVM leads the comparison.

SemEval 2016 Task 6A test macro F1 averaged across targetsMessage hashtag pretraining: 49.3Message hashtag pretraining49.3Recurrent classifier without pretraining: 50.8Recurrent classifier without pretraining50.8General-author pretraining, selected by validation: 52.2General-author pretraining, selected byvalidation52.2Related-author pretraining, selected by validation (this paper): 53.0Related-author pretraining, selected byvalidation (this paper)53.0Linear SVM: 54.3Linear SVM54.3
The numbers
System or settingmacro F1
Message hashtag pretraining49.3
Recurrent classifier without pretraining50.8
General-author pretraining, selected by validation52.2
Related-author pretraining, selected by validation (this paper)53.0
Linear SVM54.3

The average in the chart gives each target its own F1 result and then averages the target results. The topic-related pretraining condition chosen by validation also matches the displayed average for the fixed topic-related Author Text condition. The general-user choice based on validation reaches 52.2. Its results show that pretraining can be useful even when the accounts were sampled without a query for the evaluation topics. The difference between the selected related and general pools describes performance under these two sampling procedures, which also use different collections and periods.

The performance varies by target. For Atheism, the recurrent classifier trained directly scores 54.0 test macro F1. Topic-related Author Text pretraining gives 58.2, and the topic-related Multiview setting gives 60.1. The SVM scores 61.2. For the Feminist Movement, the plain recurrent classifier scores 48.5, and general-user Author Text pretraining reaches 54.4. The SVM reaches 57.7 on that target. These two cases show both that author pretraining can make a sizable difference within the recurrent family and that the ordering against the linear classifier can remain the same.

On the climate target, the related Author Text condition reaches 44.5, compared with 39.6 for the plain recurrent system and 41.4 for the SVM. For abortion legalization, the related Author Text condition scores 60.2, with the plain recurrent classifier at 58.6 and the SVM at 59.1. Those are instances where pretraining improves the recurrent system and the resulting test score also exceeds the linear baseline’s. On Hillary Clinton, the ordinary recurrent classifier reaches 53.5, the SVM reaches 52.0, and the strongest author-pretrained entry reaches 52.5. That target illustrates a separate outcome. The recurrent architecture performs well there, and the auxiliary training gives up some of its advantage.

The validation-selected topic-related condition raises the test score relative to the plain recurrent classifier on Atheism, the Feminist Movement, climate change, and abortion legalization. The validation-selected general-user condition raises it on Atheism, the Feminist Movement, and climate change. Each of these selected author conditions is ahead of the message-hashtag baseline on every target. That pattern holds for the selection procedures. Individual network-only and other fixed configurations sometimes trail that baseline, so the result depends on which embedding is used.

The paper assesses statistical differences with a bootstrap procedure using 1,000 samples of 250 examples each and a threshold of p = 0.05. In Table 2, the validation-selected general pool and its Author Text entry are marked as significantly better than both the plain recurrent and message-hashtag baselines for the Feminist Movement. The table marks the plain recurrent classifier as significantly below the SVM on Atheism and the Feminist Movement. These annotations distinguish reliably detected contrasts under the paper’s test from other positive or negative movements in the table. The simple count of targets with higher scores includes numerical improvements regardless of whether they cross that statistical threshold.

Guns test results

Guns test accuracy with 100 labeled training examples

General-user Multiview pretraining gives the strongest recurrent result in the smallest training setting.

Guns test accuracy with 100 labeled training examplesRecurrent classifier without pretraining: 72.2Recurrent classifier without pretraining72.2Gun-related keyphrase pretraining: 73.1Gun-related keyphrase pretraining73.1General-user network pretraining: 73.1General-user network pretraining73.1General-user Multiview pretraining (this paper): 75.0General-user Multiview pretraining (thispaper)75.0Linear SVM: 79.2Linear SVM79.2
The numbers
System or settingtest accuracy %
Recurrent classifier without pretraining72.2
Gun-related keyphrase pretraining73.1
General-user network pretraining73.1
General-user Multiview pretraining (this paper)75.0
Linear SVM79.2

At 200 labeled training examples, the general-user Multiview condition scores 79.1 test accuracy. The recurrent classifier trained directly and the one pretrained on gun-related Author Text both score 79.0, and the SVM scores 81.1. At 1000 training examples, the direct recurrent classifier and gun-related Author Text condition both reach 84.0, while the SVM reaches 85.9. At 2000 examples, the best recurrent entry in the table is the gun-related keyphrase condition at 85.6, compared with 85.3 for the direct recurrent classifier and 87.4 for the SVM.

Accuracy rises with training size across the reported configurations. The contribution of pretraining is clearest in the smallest condition and slight or inconsistent in the larger ones. The paper’s conclusion places the discernible benefit below 1,000 labeled examples. Individual entries can still move upward in larger conditions, as the gun-related keyphrase result at 2000 shows. The point of the authors’ conclusion is that the larger settings give little evidence of a repeatable advantage. The SVM has the highest numerical test accuracy at every reported training size in this comparison. The table marks several recurrent entries as significantly worse than the SVM at 100 examples, and the authors locate the statistically reliable SVM advantage in that smallest setting.

Testing the features directly on Guns

Guns SVM test accuracy by input with 2000 labeled training examples

Tweet features carry the strongest evidence on their own, and adding Author Text yields the highest score.

Guns SVM test accuracy by input with 2000 labeled training examplesAuthor keyphrase distribution alone: 51.8Author keyphrase distribution alone51.8Author Text embedding alone: 76.6Author Text embedding alone76.6Tweet n-grams alone: 87.4Tweet n-grams alone87.4Tweet n-grams and author keyphrases: 87.4Tweet n-grams and author keyphrases87.4Tweet n-grams and Author Text embedding (this paper): 87.6Tweet n-grams and Author Text embedding(this paper)87.6
The numbers
System or settingtest accuracy %
Author keyphrase distribution alone51.8
Author Text embedding alone76.6
Tweet n-grams alone87.4
Tweet n-grams and author keyphrases87.4
Tweet n-grams and Author Text embedding (this paper)87.6

The direct-input experiment uses overlapping account identities in the Guns data to give the linear classifier access to author features for the messages it is asked to classify. The authors compare current-tweet word and character n-grams with either the Author Text vector or the author’s keyphrase distribution. They also try adding each author representation to the tweet features. This is a separate test from pretraining. It asks how much the classifier can recover when it receives the account representation itself.

At 100 training examples, the Author Text-only input gives 72.1 test accuracy and keyphrases alone give 52.2. Tweet n-grams alone reach 79.2, and each combined condition also reaches 79.2. At 200 examples, Author Text alone reaches 74.1 and tweet text alone reaches 81.1. Both combined inputs again match the tweet-only result at 81.1. At 1000 examples, adding Author Text to the tweet gives 86.0 test accuracy, while using the tweet alone gives 85.9. At 2000 examples, that combination produces the small numerical increase shown in the chart.

The significance annotations in this experiment have different reference points. The paper marks the author-only conditions as significantly worse than tweet n-grams and uses a separate mark when a combined condition is significantly better than the Author Text-only input. The latter comparison establishes the value of the tweet relative to the account vector alone. It supplies no statistical claim that the combined features improve on the tweet-only condition. The test therefore supports the presence of useful stance information in the author’s vocabulary history while leaving the small numerical gains from combining it with the text as marginal results.

What the ablations show

Changing the auxiliary task

The comparison with the plain recurrent classifier removes the author-prediction stage from the training procedure. The two routes still use a recurrent text encoder and start with pretrained token vectors. They differ in whether the encoder first practices extracting clues associated with account behavior. The SemEval scores show that this extra procedure frequently leaves the network better prepared to learn a stance classifier. A separate architecture search for pretrained configurations means that the reported comparison captures how the whole tuned approach performs. It offers a less isolated estimate of what would happen if the authors held every architectural choice fixed and changed only the auxiliary loss.

The hashtag comparison is an additional control on the value of simply giving a network more practice before stance training. It provides early training on social media text with a label derived from each message. The author-based conditions use a target drawn from an account’s activity. On SemEval, the validation-selected author conditions beat the message-hashtag result across the targets, and the message-hashtag baseline has a lower average than the plain recurrent classifier. For the configurations tested, the source of the auxiliary answer matters. The comparisons also vary in the source tweets and in the form of the prediction target, so the result describes these concrete exercises. The experiment does not isolate the effect of predicting a user-level label while holding the pretraining corpus and loss fixed.

The general-user pool tests how strongly the pretraining data must be tied to the stance targets. Topic-related users provide the best average SemEval author-pretraining condition. General users also help on several targets, including the Feminist Movement, where the general Author Text result is the clearest statistically marked gain. This fits a broad view of the transfer. Generic author prediction can teach the encoder something about word use and account activity that helps learning a specific stance task. The scores do not identify which cues the encoder acquired. The observed result is an improvement in the downstream predictions for some targets under the tested setup.

Changing what the vector contains

The representation comparisons ask whether previous text, following behavior, or their correlated variation supplies a better target for the pretraining exercise. Text is the most consistently useful view in the SemEval discussion. For topic-related users, the fixed Author Text condition averages 53.0 test macro F1. The fixed network condition averages 43.3, and the Multiview condition averages 51.9. For general users, the corresponding averages are 51.5 for Author Text, 49.0 for the network, and 51.2 for Multiview.

The target-level results show how much the aggregate can hide. The topic-related Multiview representation gives 60.1 on Atheism, ahead of the 58.2 for topic-related Author Text. For the climate target, topic-related Author Text reaches 44.5 while the topic-related Multiview condition reaches 40.5. Even the same kind of vector can behave differently when estimated on a different pool of accounts. Network-only pretraining is especially weak for the topic-related users on average, while the general-user network condition reaches 41.4 for climate, compared with 38.2 for the general-user text condition on that target. A useful representation for one topic, with one pool of authors, can offer poorer preparation elsewhere.

There is a plausible reason to expect the text-derived target to be easier to learn from a tweet. Its coordinates summarize word usage, and the input itself consists of words. Some of the social-network variation may reflect relationships with little evidence in a short message. The experiments provide a test of the downstream consequences of the representation choice. They do not report a measurement that traces the outcome to ease of prediction, relevance to stance, or differences in coverage of network data. Those explanations remain open.

The authors are cautious about naming a universal winner. For Guns with 100 labeled examples, the strongest recurrent result uses the general-user Multiview representation. The paper says that the advantage of Multiview pretraining is statistically inconclusive. Taken alongside the SemEval results, this leaves a more specific finding. Author Text offers a useful auxiliary target in several tested settings. Combining text with network information is sometimes beneficial. The experiment gives limited support for choosing a single representation for all targets and training sizes.

Changing the amount of supervision

The Guns learning comparison varies the amount of labeled training material available to every classifier. At the smallest size, the best author-pretrained recurrent score stands clearly above the direct recurrent score in the table. As the labeled sample grows, the recurrent classifier trained directly approaches or matches most of the corresponding pretrained results. The keyphrase condition that leads among recurrent systems at the largest size gives a small change, and the Multiview condition that leads at the smallest size no longer has the highest recurrent score.

This is consistent with a useful initialization when supervised examples are scarce. At small sizes, the loss on labeled messages has fewer examples of how vocabulary and context relate to the target. Pretraining can put the encoder in a position where it already responds to some recurring patterns. As more labels become available, direct supervised learning has more opportunity to find those patterns itself. The experiment measures performance as the sample sizes change. Whether the gains come from that particular learning mechanism remains a question for analysis of the trained representations.

The SVM offers a practical check on how much the neural improvement accomplishes. Its lead at the smallest training size means that recovering some performance within the recurrent approach is a different achievement from finding the best-performing classifier for that dataset. This point also applies to the SemEval averages. The paper demonstrates an incremental benefit from an auxiliary exercise for the GRU, under some conditions, while the linear comparison establishes the performance level the recurrent approach still has to reach.

Providing author information directly

The direct-input Guns comparison removes tweet features, adds account features, or does both. With Author Text alone, a linear classifier recovers meaningful information about the stance labels even without seeing the particular message. The much weaker keyphrase-only results show that the exact author representation matters. In this collection, the broader summary of an account’s writing is a more effective input for the linear classifier than the distribution of the selected gun-related phrases.

The improvement from using a tweet alongside Author Text shows that the tweet adds information beyond the author history. Starting with the tweet alone and then adding the history produces a much smaller change. This asymmetry matters because a vector can be predictive by itself and still overlap substantially with evidence already available in the message. The experiment also uses a linear classifier, which limits the combinations of text and account features it can learn. It therefore measures how much those particular inputs help under that classifier, with those labels and training sizes.

The direct-input experiment and the pretraining experiment answer related questions. An author representation that predicts the labels directly is a candidate source of stance information. To help with pretraining, it also has to serve as an effective target for a network that sees only the words of a single tweet. A weak direct input could conceivably be useful in an auxiliary exercise, and a strong direct input can contain facts about the account that would be hard to recover from an individual message. The experiments report the effects of both uses. They leave the connection between particular vector components and particular stance decisions unresolved.

Limitations

Limits the authors identify

The authors describe the datasets as small and limited in spite of covering six targets. They specifically point to the size of the SemEval test sets when discussing which embedding works best. The scores establish that several author-pretraining conditions help the recurrent classifier, but individual topic scores can be sensitive to the examples in the test partition. The paper’s statistical comparisons find clearer evidence for some settings than for others. In Guns, the authors regard the advantage of Multiview pretraining as uncertain, even though it provides the strongest numerical recurrent result at the smallest training size.

The recurrent experiments consider a single family of text encoders, built around GRUs. The paper identifies architecture as a direction for further work and mentions convolutional networks as a possibility for coping with variation in the input. The evidence about whether pretraining can close the gap with the SVM is tied to the tested recurrent architecture and its training conditions. The linear baseline’s strong performance is part of the result. A more capable neural architecture was a proposal for future investigation, with no corresponding experiment in this paper.

The SemEval classifiers each learn a fixed target. The authors propose testing systems that learn multiple targets together and systems designed to handle a target that was unseen during training. That proposed work would ask whether the auxiliary task prepares a shared text encoder to interpret the relationship between a message and a new target description. The current task supplies the target through the choice of classifier. The paper also mentions possible evaluation on additional stance datasets and related message-level classification tasks, including rumor identification. These are proposed extensions of the procedure.

Data availability also constrains which representations the authors can test. The absence of account and tweet identifiers in SemEval precludes constructing author vectors for its labeled messages by the procedure used here. The separate related-user pool provides a way to study transfer in spite of that absence. In Guns, the overlap in users makes the direct-input experiment feasible. Accordingly, the paper’s main evidence for hands-off prediction at SemEval and its evidence for the value of author features as direct inputs come from different evaluation settings.

Limits that follow from the design

The Guns labels represent agreement with a hashtag-based rule. The rule selects tweets carrying markers associated with a side and excludes messages without a qualifying marker or with markers from both camps. A tweet that satisfies the rule can still pose a difficult language problem once the marker is removed from a training example. The selection nonetheless defines a population of messages written by people who used one of the chosen hashtags. Accuracy on those test samples measures recovery of the assigned labels within that population. Applying the same accuracy claim to messages with implicit positions and no selected hashtags would require a separate evaluation.

Overlap between available author data and labeled Guns examples makes the feature comparison possible, and it also sets the scope of that comparison. The reported procedure stratifies samples by class and defines development and test partitions over the remaining messages. The paper gives no author-disjoint evaluation for Guns. Its results establish performance under the reported tweet-sampling setup. They leave open how well the direct author features or the pretraining procedure would generalize in an evaluation that explicitly holds out entire accounts.

The SemEval case gives a different kind of evidence about prediction without account information. The stance system works without a lookup for the test tweet, because its input is just text. The missing account identities prevent checking the exact degree of overlap between benchmark authors and the users in separate Twitter collections. The architectural claim about requiring only a tweet is fully supported by the input design. Performance on a provably unseen population of authors is a larger claim about how a benchmark is partitioned.

Topical relevance is also intertwined with data collection. The general-user and related-user pools differ in the way authors are sampled, the number of tweets and accounts, and the procedure for selecting text used to construct the vectors. In the general pool, separating January and February activity from March pretraining tweets provides explicit separation for the Author Text target. In the topic-related pool, authors are found through earlier topic-bearing tweets, and their account activity is collected later. A comparison between these pools tests whether each resulting training resource is useful. It cannot assign their performance difference entirely to topical relevance.

The inference-time classifier uses no author embedding, but the training exercise still depends on what account activity can be observed. A following list is a record of connections whose meaning can vary by person. A text vector reflects the sampled tweets, vocabulary selection, and weighting. Replacing missing network vectors with a common mean also changes what variation the network-based and joint representations can contain. These design choices affect the available learning signal. The downstream results cannot by themselves establish whether the network learns particular beliefs, community membership, writing habits, or some mixture of correlates.

Finally, the benchmarks give separate estimates of classification quality under different label definitions and metrics. SemEval includes NEITHER and reports class-averaged F1 for the opposing stance labels. Guns selects messages assigned to opposing classes and reports accuracy. The metrics support comparisons among systems within each setting. Their values cannot be read as a common scale for the difficulty of the tasks or the strength of transfer. What carries across them is the broader pattern that author-based training sometimes improves the recurrent classifier, with the greatest gains concentrated in specific targets or data conditions.

What came after

Stance Detection on Social Media: State of the Art and Trends, from 2020, cites Benton and Dredze in a work that surveys social media stance detection. That places the approach in a broader account of the task. Its distinctive place in that account is the location of author information in the learning procedure. Account activity supplies an auxiliary prediction target, while the resulting stance classifier takes the text of a tweet as its input. This distinction connects the paper to both work on author context and work on learning from tweets whose stance has yet to be labeled.

Acquired TASTE: Multimodal Stance Detection with Textual and Structural Embeddings, from 2025, cites the paper in work on stance detection using textual and structural representations. The connection is clearest in Benton and Dredze’s Multiview experiment. They represent an author’s writing and following behavior through separate inputs, then learn a joint vector from variation shared across the two. Acquired TASTE’s stated scope also brings textual and structural evidence into the study of stance. The citation establishes the connection, while the title leaves the precise role of author pretraining in the later system unspecified.

These works point to two ways the paper remained relevant. It gives a survey of social media stance detection a concrete example of how author context can influence training when account records are unavailable at prediction time. It also supplies a precedent for studying textual and structural evidence together. The original experiments make the distinction between those contributions measurable. The usefulness of an author representation as a direct input, the value of learning to predict it during pretraining, and the benefit of combining two sources of account information each depend on the task and the evaluation design.

Cite

Cite as Adrian Benton and Mark Dredze. 2018. Using Author Embeddings to Improve Tweet Stance Classification. Proceedings of the 2018 EMNLP Workshop W-NUT: The 4th Workshop on Noisy User-generated Text.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/w18-6124

@inproceedings{benton2018using,
  title = {{Using Author Embeddings to Improve Tweet Stance Classification}},
  author = {Adrian Benton and Mark Dredze},
  booktitle = {Proceedings of the 2018 EMNLP Workshop W-NUT: The 4th Workshop on Noisy User-generated Text},
  year = {2018},
  doi = {10.18653/v1/w18-6124},
  url = {https://doi.org/10.18653/v1/w18-6124}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/benton-2018-author-embeddings-improve-tweet-stance/