Notes

Stance Detection

Sentiment analysis asks whether a piece of text sounds positive or negative. Stance detection asks a sharper question — positive or negative towards what? It classifies the position a text takes on a specific target: a claim, a policy, a product, a public figure. The target is supplied as part of the input, and the same sentence can carry opposite stances depending on which target you ask about.

Two inputs, one label
A stance classifier reads the text and the target together and emits one label from a small set. Because both inputs matter jointly, the standard recipe is cross-encoding: concatenate target and text, feed the pair to an encoder such as BERT or RoBERTa, and classify the pooled output — the same setup as natural language inference, which stance detection closely resembles. The label sets in use are small and task-specific.

  • Favour, against, none — the SemEval-2016 scheme for tweets about targets like climate change or a named politician.
  • Agree, disagree, discuss, unrelated — the Fake News Challenge scheme, pairing a headline with an article body to test whether the body supports the claim.

Where it bites
Stance is the load-bearing signal in claim verification and moderation pipelines: before judging whether a rumour is true, you need to know which posts support it and which reject it. The failure modes are instructive. Sarcasm inverts surface sentiment while leaving the stance intact. Attacking a target's opponent is support for the target. A sentence can be fiercely negative in tone yet favour its target, as in "I'm sick of people pretending vaccines are dangerous". Classifiers that lean on sentiment words collapse on exactly these cases, and on targets never seen in training, which is why zero-shot stance detection remains an open problem.

Stance detection classifies the position a text takes towards a given target — favour, against, or neither — with the target supplied alongside the text, so one sentence can take opposite stances on different targets. It matters because sentiment alone cannot say what the opinion is about: claim verification, rumour tracking and moderation all need text grouped by what it supports or rejects, not merely by tone.

Two people can both sound angry about the same news story while wanting opposite things. Knowing someone is upset tells you less than knowing what they are upset about.

Stance detection is software working out which side a piece of writing takes on a particular issue — for, against, or neither. The issue is named in advance, and that is what makes it different from measuring mood: the same tweet can back one claim and attack another. It is the tool behind tracking how opinion splits on a rumour, or checking whether a news article actually supports the headline above it. The hard part is tone that points the wrong way, like sarcasm, or outrage aimed at the other side.