---
title: "Structured Sentiment Analysis as Dependency Graph Parsing"
description: "How dependency graph parsing extracts who holds an opinion, what it concerns, how it is expressed, and whether the sentiment is positive or…"
canonical: "https://research.elamur.ai/free/en/papers/barnes-2021-structured-sentiment-analysis-as-dependency/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/barnes-2021-structured-sentiment-analysis-as-dependency/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Structured Sentiment Analysis as Dependency Graph Parsing

# Structured Sentiment Analysis as Dependency Graph Parsing

Paper · 2021 · Jeremy Barnes, Robin Kurtz, Stephan Oepen et al.

**Authors:** [Jeremy Barnes](https://md.research.elamur.ai/free/en/authors/jeremy-barnes/), [Robin Kurtz](https://md.research.elamur.ai/free/en/authors/robin-kurtz/), [Stephan Oepen](https://md.research.elamur.ai/free/en/authors/stephan-oepen/), [Lilja Øvrelid](https://md.research.elamur.ai/free/en/authors/lilja-ovrelid/) and [Erik Velldal](https://md.research.elamur.ai/free/en/authors/erik-velldal/) · **Year:** 2021 · **Venue:** Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**67** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3168715221|W6947766202) · [Cited by **39** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/barnes-2021-structured-sentiment-analysis-as-dependency/cited-by/) · [Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)](https://aclanthology.org/volumes/2021.acl-long/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2021.acl-long.263/)
- [PDF](https://aclanthology.org/2021.acl-long.263.pdf)
- [DOI 10.18653/v1/2021.acl-long.263](https://doi.org/10.18653/v1/2021.acl-long.263)
- [OpenAlex](https://openalex.org/W3168715221)

Citations: OpenAlex, 2026-10-14.

## Summary

A review can praise one feature and criticize another. To recover both opinions, a reader has to identify the words that express each judgment and connect them to the right subject. Sometimes the text also says whose judgment it is. A system that extracts the right phrases can still get the opinion wrong by attaching a criticism to the feature that was praised. Barnes and colleagues treat these connections as part of the result. Their approach to [sentiment analysis](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/) aims to recover complete opinions, including the holder, the target, the expression of sentiment, and its polarity.

The authors turn that task into [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/). They represent an opinion as a set of directed links centered on its sentiment expression. A link can identify what the expression is about or who is responsible for it, and a label records polarity. Because an annotated phrase can span several words, the parser uses a designated word to stand for the phrase and additional links to recover its extent. The paper compares using the first or last word as that representative and also tests whether a separate syntactic analysis can guide the choice.

The experiments cover five datasets in four languages. On each dataset, at least one of the basic graph encodings scores above the strongest sequence-labeling baseline on Targeted F1, which requires an exact target and the correct polarity. The margin varies. On the MPQA test set, the first-word encoding reaches 33.5 against 17.8 for RACL-BERT, while on the Basque MultiB EU test set it reaches 57.8 against 56.8. The authors also introduce Sentiment Graph F1 to evaluate whether the complete opinions have been recovered. They find that syntactically guided graphs can improve this broader measure even where scores for extracting individual phrases decline.

The results distinguish finding the words of an opinion from reconstructing the opinion itself. A parser can recover many of the links in its token-level output while still failing to assemble the correct combination of holder, target, expression, and polarity. The authors release the sentiment_graphs code and datasets for evaluating that more demanding task.

## Deep dive: Structured Sentiment Analysis as Dependency Graph Parsing

How dependency graph parsing extracts who holds an opinion, what it concerns, how it is expressed, and whether the sentiment is positive or negative. · about 36 minutes to read

**In this deep dive**

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

### The problem and its context

#### What counts as a complete opinion

An opinion has several parts that answer different questions about the same piece of text. The holder answers whose view is being expressed. The target answers what that view concerns. The expression is the stretch of text that conveys the view. The polarity records the kind of judgment conveyed, such as positive or negative. In an annotated sentence, each textual part can occupy a stretch of several tokens. A token is a unit of the input sequence, typically a word or another separately segmented item. The opinion therefore brings together text spans, a classification, and relations among them.

A sentence can contain more than one opinion. In that case, extracting a collection of holders, targets, and expressions leaves an important question open. Which holder and target go with each expression? If a sentence contains opposing judgments, even a complete inventory of its sentiment-bearing phrases leaves their interpretation unresolved until the arguments of each judgment have been identified. The same issue arises when two people express views about the same subject. In the paper’s formulation, these assignments are part of the output of [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/).

Some opinions leave the holder or target implicit. The annotation can record a sentiment expression and its polarity while leaving either of those roles empty. This makes a meaningful distinction between an opinion whose source is unspecified and an opinion that has been incorrectly assigned to a source. It also gives the approach a way to represent evaluations that occur without an explicit target span. The expression has a special status because it anchors the opinion even when the other fields are empty.

The authors use *structured sentiment* for this prediction problem. The structure is observable in the output: the annotation says which spans belong together. They distinguish this use from earlier work by Almars and colleagues, where structure concerned a latent hierarchy of sentiment aspects. The paper’s task is also more detailed than assigning a binary polarity to a whole sentence. A sentence label gives one judgment over the input, whereas an opinion annotation can record several judgments with different participants and different polarities.

This difference matters when an experiment measures progress on a single part of the task. Better target boundaries are valuable, but the target score by itself leaves open whether those targets can be paired with the right expressions. Similarly, a targeted sentiment score evaluates whether a polarity belongs to a given target, but can leave open whose opinion it was or which words conveyed it. The authors argue that a collection of such experiments gives an incomplete account of progress on opinion extraction. The outcome of one decision can depend on information being handled by another part of the system.

#### How earlier work divided the task

Some earlier opinion extraction systems used a pipeline. They first identified candidate holders, targets, and expressions and then decided which candidates were related. Much of the work the authors discuss used MPQA. Conditional random fields, or CRFs, were among the stronger approaches in that setting. These systems drew on resources such as sentiment lexicons, dependency analyses, and named-entity tags. The paper observes that with limited training data and a complicated extraction task, these approaches could still outperform recurrent neural approaches. Transition-based work offered another way to predict opinion structure end to end. As surveyed by the authors, this line of work addressed entities and relations while leaving polarity outside the task.

Targeted sentiment analysis tackled a different subset. It asked a system to find sentiment targets and determine the polarity directed at them. A successful answer might identify a feature discussed in a review and say whether the judgment of it is positive. The holder and the text that conveys the judgment can remain outside the predicted output. The paper places [Open Domain Targeted Sentiment](https://md.research.elamur.ai/free/en/papers/mitchell-2013-open-domain-targeted-sentiment/) in this line of work. The SemEval aspect-based sentiment tasks also included target extraction and polarity classification.

Work on aspect-based sentiment showed that coordination could help even within that smaller task. The authors describe joint approaches that performed comparably to pipelines and multitask approaches that could do better. They also cite gains from pretrained representations in aspect-based experiments, including [Exploiting BERT for End-to-End Aspect-Based Sentiment Analysis](https://md.research.elamur.ai/free/en/papers/li-2019-exploiting-bert-end-end-aspect/). These developments gave researchers ways to share information between target extraction and polarity prediction. A system could benefit from that sharing while still returning a limited account of the opinion.

Work described as end-to-end sentiment analysis added the extraction of sentiment expressions to target extraction and polarity classification. This brought more of the opinion into view. However, the augmented SemEval annotations discussed in the paper did not say which expression applied to which target. Expression annotations were supplied for sentences that had targets and usually identified sentiment-bearing words. An annotated expression can be a longer phrase, and an expression can anchor an opinion even when there is no explicit target. The authors also point out that the augmentation did not document its annotation procedure or agreement among annotators. These concerns apply to the evidence the dataset can offer about full opinions, even when it serves as a benchmark for the tasks it labels.

Aspect sentiment triplet extraction came closer to the relational problem by asking for a target, an expression, and their polarity together. It still left holders outside the triplet, and the authors raise similar documentation concerns about the augmented datasets used for it. In particular, the absence of reported guidelines, procedures, or annotator agreement makes it harder to tell what decisions the annotations support. The paper takes a different starting point by choosing corpora that already contain the roles and relations its output is meant to express.

#### Why the authors chose graphs

A representation has to make room for the parts of an opinion and let a system state how those parts fit together. A word sequence gives an order, and sequence labels can mark where spans begin and end. Separate relational decisions are still needed to say which of the marked spans belong to one another. In a graph, those decisions can be recorded directly as links. The authors draw on [semantic parsing](https://md.research.elamur.ai/free/en/concepts/semantic-parsing/) because its dependency graphs already provide a way to express relationships among pieces of a sentence.

The paper distinguishes ordinary syntactic dependency trees from the more flexible graphs used in some meaning representations. A tree gives each ordinary dependent a single parent. For opinion extraction, a span may be associated with more than one expression, and a sentence may have several expressions each anchoring an opinion. Some words may contribute to none of the annotated opinions. A graph can accommodate several entry points, disconnected portions, and more than one incoming link to a node. These properties make it possible to represent several opinions in the same sentence without forcing them into a single hierarchy.

The parser the authors adapt comes from [Simpler but More Accurate Semantic Dependency Parsing](https://md.research.elamur.ai/free/en/papers/dozat-2018-simpler-but-more-accurate-semantic/). In the account given by Barnes and colleagues, this approach can predict a graph by scoring potential arcs without a decoding algorithm that restricts the answer to a particular graph shape. Earlier work by Kurtz and colleagues had used this property for negation resolution, where elements of different negation instances can overlap. [Named Entity Recognition as Dependency Parsing](https://md.research.elamur.ai/free/en/papers/yu-2020-named-entity-recognition-as-dependency/) offered a related precedent for representing spans through links among their words.

Earlier sentiment work had also used syntactic trees to guide computation or supply features. Here, the authors change what the system predicts. The output graph describes opinions, with links for sentiment roles and span membership. Syntactic dependencies can inform how this graph is constructed, but its edges have a different purpose. A syntactic analysis may help the parser decide which word represents a target phrase. The resulting sentiment relation still says that the phrase is the target of a particular expression.

### The method, step by step

#### From an annotated sentence to a graph

The starting point is a sentence with annotated opinions. At the level of the task, each opinion is a record grouping the relevant spans with the polarity. The paper expresses the collection of opinions for a text as follows.

```
O = Oᵢ, …, Oₙ
```

`O` is the collection of opinions. `Oᵢ` denotes an individual opinion indexed by `i`, and `Oₙ` denotes the final indexed opinion in the collection. `n` is the number of opinions here, and the ellipsis stands for the intervening entries.

```
Oᵢ = (h, t, e, p)
```

`Oᵢ` is the opinion at index `i`. The entries `h`, `t`, and `e` are the holder, target, and expression spans. `p` is the polarity associated with the expression in this opinion. The holder and target entries may be empty.

At this level, a whole phrase can be a node. The expression is the root of the opinion, meaning it serves as its point of entry. Its connections identify the holder and target belonging to it. A different expression in the sentence can anchor a different opinion. The graph therefore gives each expression a place from which its associated roles can be read. Figure 1 illustrates this organization and the possibility that a holder or target is absent.

The parser operates on individual tokens, so the authors need a representation that brings each span down to a token endpoint. They designate one token in each span as its *head*. In this setting, a head is the token used to represent the larger span in a relation. If a target contains several words, the relation from the expression attaches to the target head, and links within the target identify the other words that belong to it. The expression works the same way. Its head anchors the opinion, while its internal links preserve the rest of the expression span.

In the head-first encoding, the initial token of each annotated span becomes its head. The initial token of the expression becomes a root of the sentiment graph. For a holder or target, links from the expression connect to that span’s first token. The remaining tokens in a multiword span are dependents of its head. In the head-final encoding, the authors apply the same design using the last token of each span. A span of one token already supplies its own endpoint under either convention.

Figure 2 shows that the change of convention can alter the token-level graph while preserving the underlying opinion. A connection between an expression and a target lands on different words when both spans have several tokens. The direction at the level of opinion roles stays the same: the expression anchors the relation to the target. The alternative head positions also change which word sends arcs to the other members of its own span. Thus two different sets of token arcs can represent the same expression, holder, target, and polarity.

The conversion makes the links *bi-lexical*, meaning each arc has individual tokens as endpoints. Tokens stay in sentence order. An arc runs from a head to a dependent and has a label identifying the relation or, for expression labels, carrying polarity information as well. The representation can still accommodate multiple roots and multiple incoming arcs. Tokens for which the parser predicts no sentiment link can remain outside the connected parts of the graph.

One restriction comes with this conversion. At a given ordered pair of tokens, the encoded graph allows a single arc. In a rare configuration, a span-level annotation can require multiple relations whose chosen heads coincide at both ends. The token representation then loses a distinction present in the original opinion graph. The authors acknowledge this mismatch between the structures used for learning and the structures they ultimately want to recover.

From opinion annotations and sentence tokens to predicted opinions The steps in order.

#### From words to arc scores

The parser begins with several descriptions of each token. A word embedding represents the word as a vector of learned values. A [part-of-speech tag](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) records a grammatical category, and a [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/) gives a base form. The parser uses embeddings for both of these features. It also uses a character-based long short-term memory network, or LSTM, to create a vector from the characters of the token. The word, tag, lemma, and character representations are concatenated, meaning the vectors are joined end to end.

The static word representations used in the experiments are Word2Vec skip-gram embeddings from the NLPL vector repository. The English vectors are 300-dimensional and were trained on English Wikipedia and Gigaword. The vectors for Basque, Catalan, and Norwegian Bokmål are 100-dimensional and come from the 2017 CoNLL corpora. The main graph experiments also use a token-level representation from multilingual [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/), referred to as mBERT. This supplies a contextual vector whose values depend on the token’s surroundings. The authors chose a multilingual source because comparable monolingual BERT resources were unavailable for Catalan and Norwegian at the time of their experiments. The graph parser uses the mBERT representations without updating them during training.

The input vectors pass through a bidirectional LSTM, abbreviated BiLSTM. One direction processes the sentence from its beginning toward its end. The other processes it from its end toward its beginning. Each position receives a contextual representation from this operation. That lets the parser score an arc using information about the surroundings of both endpoint tokens. For example, the vector for a potential target can reflect the expression near it, and the vector for that expression can reflect other judgments in the same sentence.

```
c₁, …, cₙ = BiLSTM(w₁, …, wₙ)
```

`w₁` through `wₙ` are the representations supplied for the input tokens in sequence order. `c₁` through `cₙ` are the resulting contextual token vectors. Here `n` is the number of tokens in the sentence, and the ellipses stand for the intervening positions. `BiLSTM` names the bidirectional recurrent operation that maps the sequence on the right to the sequence on the left.

A token can be suitable as a head for one decision and a dependent for another. To represent these two uses, the parser passes the same contextual token vector through two separate feedforward neural networks. A feedforward network transforms its input through learned layers. One transformation makes a vector specialized for considering the token as the source of an arc. The other prepares it to be considered as an arc’s destination.

```
hᵢ = FNN_head(cᵢ)
```

`i` indexes the token. `cᵢ` is its contextual vector, and `FNN_head` is the feedforward transformation for the head role. `hᵢ` is the transformed vector used when the token is considered a potential head. The indexed `hᵢ` here represents a token for scoring, while `h` in the opinion tuple is the holder span.

```
dᵢ = FNN_dep(cᵢ)
```

`i` again indexes the token, and `cᵢ` is the same contextual input to this calculation. `FNN_dep` is the transformation for the dependent role. `dᵢ` is the vector used when the parser considers that token as a potential dependent. The two transformations can therefore emphasize different information about the same word in context.

The last scoring operation considers an ordered head–dependent pair. The paper uses a bilinear transformation, which lets the score depend on interactions between the entries of the head vector and the entries of the dependent vector. The learned parameters for these interactions distinguish the possible arc labels. A special label, `NONE`, represents the absence of an arc. This places the decision about whether a relation exists and the decision about its label in the same scoring setup.

```
score(hᵢ, dⱼ) = hᵢᵀ U dⱼ
```

`score` gives the scores for the candidate pair. `i` is the token position being considered as a head and `j` is the position being considered as its dependent. `hᵢ` and `dⱼ` are the respective role-specific vectors. The superscript `ᵀ` denotes transposition of the head vector for the multiplication. `U` is the learned parameter tensor, an array whose label dimension provides a score for each permissible label, including `NONE`. The multiplication combines the information from both endpoints with those label-specific parameters.

The parser forms its answer from the arcs scored as present. It can retain several links involving the same token. This is how it can give one expression both a holder and a target or associate a span with more than one expression. Shared sentence representations inform the scores, while the output is assembled from decisions about candidate arcs. The method describes joint prediction in this sense: span membership, the links that form opinions, and polarity all have a place in the same prediction. It does not posit a separate stage that first freezes a list of spans and then sends that list to a relation classifier.

#### Refining the choice of head and arc label

The paper separates two aspects of graph design. One is how to label the arc to a non-head token within a span. The other is how to choose the head that stands for the span. The head-first and head-final conventions use position alone. They make it easy to construct training targets, but the selected word can be a peripheral part of the phrase. The alternative encodings ask whether more explicit role distinctions or a linguistically informed head make the prediction problem easier.

The variant called `+inlabel` distinguishes arcs that stay inside a span from arcs that connect spans. Consider the difference between including another word in a target phrase and asserting that the entire target phrase belongs to an expression. Both decisions contribute to an opinion, but they describe different relationships. An internal label lets the parser score span membership as a distinct type of decision. The authors test this modification with both first-token and last-token heads.

The `Dep. edges` variant uses a syntactic dependency analysis of the sentence to choose span heads. According to the paper, the chosen token must have an outgoing edge in the associated syntactic graph, and if multiple tokens meet that criterion, the first is selected. The syntactic analyses come from spaCy for English, Stanza for Basque and Catalan, and [UDPipe](https://md.research.elamur.ai/free/en/papers/straka-2017-tokenizing-pos-tagging-lemmatizing-parsing/) for Norwegian. These analyses guide the construction of the sentiment parsing graphs. The graph the system learns to produce still represents opinions.

Inspection showed that the edge-based procedure sometimes selected heads with dependency labels the authors considered unlikely choices. They cite punctuation and oblique dependents as examples. The `Dep. labels` variant filters out such candidates. This creates a comparison between selecting a head using edge information and adding a restriction based on its syntactic label. As the experiments show, a restriction that makes individual choices look more plausible during inspection need not improve the resulting opinion predictions overall.

#### Preparing and selecting the training runs

Training uses the opinion annotations from each dataset after the span-to-token conversion. The particular encoding determines which token pairs and arc labels serve as training targets. The system is then evaluated both on those token arcs and on the opinions recovered from them. This distinction matters when comparing head rules: a change of encoding can change the reference arcs while leaving the reference opinion spans and their roles the same.

The main graph experiments use the default hyper-parameters from the earlier negation parser. The authors train for 100 epochs and retain the checkpoint with the best Labeled F1 on the development set. An epoch is a pass through the training data. A development set is reserved for choices such as which checkpoint to retain. Here Labeled F1 measures whether the parser has predicted the right token arcs with the right labels. The sequence-labeling baselines instead select checkpoints by development-set Targeted F1, a measure they can optimize directly from their own outputs.

The authors repeat training with five different random seeds and report the mean. Their appendix also gives standard deviations, which describe how much the runs vary. For comparisons between the best and second-best results, the authors use bootstrap resampling with replacement. They require a result at `p < 0.05` in 3 of 5 runs for the significance designation. The reported averages and the significance designations answer different questions. An average gives the observed score across runs, while the designation applies the paper’s additional criterion for distinguishing the leading systems.

### Experiments and results

#### The evaluation corpora

The experiments use corpora with annotations for holders, targets, and expressions. They differ in subject matter, the frequency of each role, how much text a typical span covers, and what their polarity labels mean. Each corpus has training, development, and test splits. The results are therefore comparisons within established corpora, with some variation in the annotation decisions from one corpus to the next.

NoReC Fine contains Norwegian professional reviews from multiple domains. It is the largest of the structured sentiment datasets in the study. Its training split contains 8634 sentences and its test split contains 1272. The authors report 8,923 target annotations and 11,115 expression annotations across the dataset. The mean expression length in the test split is 4.9 tokens. Its sentiment annotations also distinguish degrees of intensity. The experiments leave intensity out, so the classification concerns polarity without distinguishing, for example, a strong judgment from a slight one.

The paired MultiBooked datasets contain hotel reviews. MultiB EU is the Basque corpus, with 1064 training sentences and 305 test sentences. MultiB CA is the Catalan corpus, with 1174 training sentences and 336 test sentences. Their source labels distinguish strong positive and strong negative opinions. The authors map these categories to positive and negative, respectively. This makes the experiment about the direction of the judgment and its associated structure. The graph output does not have to reconstruct the original intensity distinction.

MPQA contains English newswire. Its training split has 4500 sentences, and its test split has 1681. The paper reports 2,054 holders across the corpus, the largest holder count among the study datasets. The training targets average 6.1 tokens, and the test targets average 6.4 tokens. The test holders average 2.8 tokens. This gives the parser a different span prediction problem from a corpus dominated by short targets or holders. MPQA also uses a neutral category for subjective expressions that lack a clear positive or negative direction. The authors give reporting and choice expressions as examples of the kinds of language involved.

DS Unis is the English university-review portion of a corpus that also contains e-commerce text. The authors use only the university reviews because the e-commerce portion has many annotations where a target carries a polarity without an accompanying expression. The graph approach needs an expression to anchor the opinion. DS Unis has 2253 training sentences and 318 test sentences. Across the corpus it has 94 holders, the fewest in the study. Its neutral label can cover language whose evaluation depends on context. The paper discusses the case of classes being described as difficult, a property that can be desirable in a university review.

The distinction between the English corpora’s neutral categories is important for reading their results. A neutral label in newswire can be applied to a subjective act of reporting. In the university reviews, a neutral decision can arise because the property being described permits competing evaluations. Both receive the same broad category name in the experiment. The evidence a system needs to select that category can differ, just as the amount of material it needs to identify as a target differs between the two corpora.

#### What the comparison systems predict

The paper compares its approach with sequence-labeling systems for extracting targets and expressions and assigning polarity. A sequence labeler gives a tag to each token. Tags can distinguish a token at the beginning of a target or expression, a token inside it, and a token outside any such span. The systems can share information across their different prediction tasks. Their standard outputs cover the subtasks needed to compute span extraction scores and Targeted F1, while the complete holder–target–expression structure requires additional information.

IMN is an interactive multitask approach. Its convolutional layers create hidden representations of the sentence and use them to predict target and expression spans. A polarity component then uses information from the extraction predictions, including the probability that a token is a target. The arrangement is iterative. Predictions from one round help revise the representations for a later round. Barnes and colleagues use it as an example of a system in which decisions about spans and sentiment can inform one another while the final outputs are still sequence labels. [An Interactive Multi-Task Learning Network for End-to-End Aspect-Based Sentiment Analysis](https://md.research.elamur.ai/free/en/papers/he-2019-interactive-multi-task-learning-network/)

RACL also shares evidence across subtasks, using separate representations for target extraction, expression extraction, and polarity. It uses attention to weight what each task can draw from each of the others. The resulting representations feed into the predictions and can be passed on through successive layers. RACL-BERT augments this approach with contextual features. In their comparison, the authors use cased multilingual base BERT for this baseline in place of BERT Large. RACL-BERT updates the BERT representations during training, while the graph approach keeps its mBERT representations fixed. [Relation-Aware Collaborative Learning for Unified Aspect-Based Sentiment Analysis](https://md.research.elamur.ai/free/en/papers/chen-2020-relation-aware-collaborative-learning-unified/)

The paper also gives some previously reported span results. Earlier NoReC Fine results from Øvrelid and colleagues help situate the extraction numbers. Earlier MultiBooked scores from Barnes and colleagues are shown with a qualification because they come from 10-fold cross-validation. In that procedure, the data are divided and evaluated across different held-out portions. The main results here use the specified test splits. The paper leaves out the earlier MPQA approach by Katiyar and Cardie from the direct comparison because it used different splits and 10-fold cross-validation and its code was unavailable.

#### What the scores measure

The span scores measure how well a system identifies the tokens belonging to holders, targets, or expressions. They are reported separately for each kind of span. A partially recovered phrase can receive credit for the tokens it gets right, so the score is sensitive to extent without requiring every boundary to be exact. These measures are useful for comparisons with earlier extraction results. A target span score by itself leaves open which opinion the target belongs to and what polarity was directed at it.

Targeted F1 asks for an exact target span and the correct polarity. A predicted target that overlaps the annotation but omits part of it can receive credit under token-level Target F1 and still miss the corresponding item under Targeted F1. The same target can also fail under Targeted F1 because the extracted span is exact but its polarity is wrong. This metric is a point of comparison between the graph parser and the sequence-labeling baselines because all of them can provide a target and its polarity.

Unlabeled F1, abbreviated UF1, and Labeled F1, abbreviated LF1, evaluate individual arcs of the token graph. To receive credit under UF1, an arc must have the correct endpoints and direction. LF1 also requires the correct label. Taking the harmonic mean of recall and precision yields the F1 score. In arc evaluation, precision concerns the share of predicted arcs that are correct, and recall concerns the share of reference arcs that were recovered. These measures can show how well the parser reproduces local pieces of its chosen encoding. Correct arcs can contribute even if another mistake prevents recovery of an entire opinion.

The two sentiment graph scores evaluate the recovered opinions. Non-polar Sentiment Graph F1, or NSF1, considers the holder, target, and expression together. Sentiment Graph F1, or SF1, also requires the opinion’s polarity. Both require the graph roles to be matched and give graded credit for the token overlap of the matched spans. The paper averages overlap across the holder, target, and expression. For precision, the overlap is normalized by the predicted span’s token count. For recall, it is normalized by the reference span’s token count. The scoring procedure also allows empty holders and targets.

This weighting distinguishes two kinds of partial success. An opinion can contain the correct associated spans with slightly inaccurate boundaries, which can earn overlap credit. A system can also find the exact spans individually and connect them into the wrong opinions, in which case their separate extraction scores can look good while the sentiment graph score suffers. A third possibility is recovering the structure with a wrong polarity. NSF1 measures the structure without that classification requirement, while SF1 reflects it. Together these scores show what a particular gain covers.

#### Targeted sentiment and span extraction

On NoReC Fine, the test results illustrate the difference between extracting opinion language and recovering targets with their polarities. IMN obtains 35.9 for Target F1 and 48.7 for Expression F1, alongside 18.0 for Targeted F1. RACL-BERT reaches 47.2 for Target F1 and 56.3 for Expression F1, while its Targeted F1 is 30.3. The head-final parser scores 54.8 on target extraction and 55.5 on expression extraction. Its Targeted F1 is 31.9. Thus the larger advantage over RACL-BERT is on locating targets, whereas expression extraction is close and favors the baseline. The graph approach also predicts holders, with test Holder F1 of 51.1 for head-first and 60.4 for head-final.

NoReC Fine test Targeted F1 by system The head-final graph encoding has the highest score for exact targets with their correct polarities.

**The numbers**

| System or setting | F1 |
| --- | --- |
| RACL | 20.1 |
| RACL-BERT | 30.3 |
| Head-first | 30.5 |
| Head-final (this paper) | 31.9 |

On Basque MultiB EU, the leading systems are close on the targeted task. The first-token convention has the highest Targeted F1 among the basic graph encodings. The same variant reaches 73.9 on test Expression F1, compared with 72.6 for RACL-BERT. Both basic graph encodings obtain 64.0 on Target F1, while RACL-BERT obtains 59.9. The exact-target-and-polarity measure shows a narrower separation because it makes an additional demand on the prediction.

MultiB EU test Targeted F1 by system The head-first graph encoding leads a close comparison with the contextual sequence baseline.

**The numbers**

| System or setting | F1 |
| --- | --- |
| RACL | 48.2 |
| RACL-BERT | 56.8 |
| Head-final | 56.9 |
| Head-first (this paper) | 57.8 |

On Catalan MultiB CA, head-first reaches 55.0 on test Targeted F1, ahead of 53.9 for head-final and 52.4 for RACL-BERT. The paper marks the head-first result as significantly better than the second-best result under its test. Head-first also reaches 72.5 on test Target F1 and 71.1 on Expression F1. The corresponding RACL-BERT scores are 67.5 and 70.3. These results show gains on both kinds of span, with the metric requiring a correctly polarized exact target also favoring the graph approach.

On MPQA, the head-first graph obtains 33.5 for test Targeted F1, versus 17.8 for RACL-BERT. That head-first result is also marked significant. Head-first has 51.0 for test Target F1 and 48.1 for Expression F1. RACL scores 32.6 for target extraction and 37.8 for expression extraction, ahead of RACL-BERT on those particular span metrics. The baseline with the strongest joint target-and-polarity score can therefore differ from the strongest baseline at recovering the component spans.

DS Unis gives a further example of different rankings by metric. RACL-BERT has the highest test Target F1 in the main comparison, at 44.6. Head-final reaches 42.1. On test Expression F1, head-final obtains 45.5, while RACL-BERT obtains 38.2. Head-final also leads on test Targeted F1 at 29.6, compared with 27.3 for RACL-BERT. Head-first scores 26.7 on that measure. The headline comparison thus holds at the level of the best basic graph result per dataset. A reader choosing a single head convention would encounter exceptions to the broader pattern.

#### Arc accuracy and complete opinions

The arc and opinion scores make it possible to look more closely at the graph parser. On NoReC Fine, head-final reaches test UF1 of 48.0 and LF1 of 37.7, alongside NSF1 of 39.2 and SF1 of 31.2. Head-first reaches test UF1 of 39.2 and LF1 of 31.5, alongside NSF1 of 37.0 and SF1 of 29.5. The head-final encoding leads on both kinds of measure, although the separation is more pronounced for the token arcs. A gain in reproducing the token representation and a gain in recovering the underlying opinions can differ in size.

On MultiB EU, the two encodings produce the same test NSF1 of 58.0 and the same test SF1 of 54.7. Their arc scores differ. Head-first has test UF1 of 64.6 and LF1 of 60.0. Head-final has test UF1 of 60.8 and LF1 of 56.0. This is a direct example of two encodings receiving different scores on their token graphs and ending up with the same aggregate score on the opinion graphs. The position of an arc in the intermediate representation and the quality of the reconstructed opinion are distinct objects of evaluation.

On MultiB CA, head-first leads at both levels. Its test UF1 is 66.8 and its LF1 is 62.1. Its NSF1 is 62.0 and its SF1 is 56.8. The corresponding head-final test scores are 62.7 on UF1, 58.1 on LF1, 59.7 on NSF1, and 53.7 on SF1. The stronger head-first result on Targeted F1 therefore also has support in the scores that evaluate fuller opinion structure on this corpus.

The MPQA results show how difficult that fuller evaluation can be. The two basic graph encodings have test LF1 of 36.9 for head-first and 38.0 for head-final. Their test NSF1 scores are 24.5 and 26.1, and their SF1 scores are 17.4 and 18.8. Enough individual links are recovered to produce arc scores in the same general range as on some other corpora, yet the opinion-level results are lower. A partial graph can contain several correct arcs and still fail to supply the linked set of roles needed for one complete opinion.

On DS Unis, the head-final graph reaches 38.1 on test UF1 and 33.9 on LF1, compared with 35.3 and 31.4 for head-first. Head-final reaches 34.3 on test NSF1 and 26.5 on SF1, compared with 31.0 and 25.0 for head-first. The direction of these comparisons favors the last-token encoding, as on NoReC Fine. The basic choice of head convention has effects worth reporting, but its direction depends on the corpus and sometimes on what the evaluation counts.

These complete-opinion scores compare graph encodings. The main sequence-labeling baselines have no entries for SF1 or NSF1 because they do not return the complete opinion structure required for those measures. The direct result against those baselines comes from the metrics their predictions share with the graph parser. The sentiment graph results answer a complementary question about the quality of the fuller output the graph parser makes available.

### What the ablations show

#### Giving internal arcs their own labels

With the basic encodings in place, the authors vary the decisions that define the token graph. The `+inlabel` comparison keeps the positional head rule and changes how the links inside a span are labeled. Doing this for both head conventions tests whether explicitly naming span membership helps the parser learn the distinction between assembling a phrase and connecting that phrase to an opinion.

The authors report that this change tends to help on the non-English corpora. It generally improves their arc scores and frequently improves target and expression extraction and targeted sentiment. On NoReC Fine, the head-final test Target F1 is 54.8 in its basic form and 55.2 with `+inlabel`. Expression F1 goes from 55.5 to 56.3, and Targeted F1 goes from 31.9 to 34.8. The gain also appears in test LF1, which is 37.7 for plain head-final and 38.3 with the internal label. This pairing of results is consistent with a parser that benefits from having an explicit distinction between recovering the phrase and recovering its role.

On MultiB EU, the head-first variant with `+inlabel` reaches 59.2 on test Targeted F1 and 56.1 on test SF1. The basic head-first variant scores 57.8 and 54.7 on the same measures. Its LF1 is 60.0, while LF1 with the internal label is 60.3. On this corpus, a relatively modest change in labeled arc accuracy accompanies improvements on the tests that ask whether those arcs support targeted or complete opinions.

There are also cases where the internal label produces a mixed result within a single corpus. On MultiB CA, it takes head-first test Target F1 from 72.5 to 73.4 and Targeted F1 from 55.0 to 55.8. Its Expression F1 changes from 71.1 to 70.3 and SF1 from 56.8 to 56.0. The added distinction can improve target recovery while leaving the reconstruction of complete opinions harder. In MPQA, the head-first test Targeted F1 is 33.5 in the basic version and 21.3 with the extra label, even though test LF1 is 36.9 and 37.5, respectively. The effect depends on which decisions need to be correct together.

#### Choosing span heads from syntax

The syntax experiment asks whether a word chosen using dependency structure makes a better connection point than a word chosen by position. Across the datasets, the `Dep. edges` scheme gives the strongest reported average gain on the two sentiment graph measures. Relative to head-final, the authors report an average gain of 2.52 percentage points on NSF1 and 2.22 percentage points on SF1. For the non-English datasets alone, those reported average gains are 5.2 and 4.2 percentage points, respectively. The paper attributes the smaller averages over all datasets to weaker performance on the English corpora.

NoReC Fine shows how much the metric matters when evaluating this change. The `Dep. edges` encoding attains a test NSF1 of 50.9, compared with 39.2 for plain head-final. Its test LF1 is 33.8, compared with 37.7 for head-final. The syntax-guided encoding recovers complete opinions more successfully on this benchmark even though it recovers fewer of its labeled reference token arcs by F1. The two scores assess different structures, and changing the head rule changes the exact arcs that LF1 evaluates.

NoReC Fine test Sentiment Graph F1 by head and label scheme Using syntactic edges to select heads gives the highest F1 for complete opinions.

**The numbers**

| System or setting | F1 |
| --- | --- |
| Head-final | 31.2 |
| Head-final +inlabel | 31.7 |
| Dep. edges (this paper) | 39.4 |
| Dep. labels | 30.0 |

The same scheme can favor complete opinions without helping the task of finding exactly polarized targets. On MultiB EU, `Dep. edges` scores 57.4 on test SF1 and 54.0 on Targeted F1. The basic head-first parser scores 54.7 on SF1 and 57.8 on Targeted F1. MultiB CA presents a weaker case for the syntactic choice. Its test SF1 is 55.6 with `Dep. edges`, compared with 56.8 for head-first. Syntax provides a way to choose a head that can help organize an opinion, with the particular benefit conditioned by the corpus and metric.

The English results further qualify the average. In MPQA, `Dep. edges` attains test NSF1 of 24.2 and SF1 of 16.3, while head-final attains 26.1 and 18.8. On DS Unis, `Dep. edges` reaches 27.3 on test SF1, compared with 26.5 for head-final, but its NSF1 is 33.2, compared with 34.3 for head-final. The authors report that span extraction and targeted sentiment tend to be worse overall with the edge-based scheme. Their case for syntax rests primarily on the sentiment graph results and especially on the non-English comparisons.

Filtering candidate heads by syntactic label yields no consistent improvement in the paper’s experiments. For NoReC Fine, `Dep. labels` gives test NSF1 of 38.2 and SF1 of 30.0, below the corresponding `Dep. edges` results of 50.9 and 39.4. MultiB EU shows a much closer comparison, with test SF1 of 57.1 under label filtering and 57.4 with the edge rule. Detecting questionable head selections by inspection motivated the filter. The experiments show that the end-to-end effect of enforcing the filter varies, even if some individual selections become easier to justify linguistically.

#### Sentences that mention several targets

The authors test whether graph prediction is especially helpful when the parser must recover several targets from the same sentence. They select the test sentences that contain multiple targets and evaluate target extraction on those subsets. NoReC Fine contributes 147 sentences, MultiB CA contributes 74, and MultiB EU contributes 45. The corresponding English subsets contain 40 MPQA sentences and 10 DS Unis sentences. The reported measure is macro F1 for target extraction, a summary that averages F1 across the units being scored.

The basic graph encodings beat the sequence comparison in 9 of 10 comparisons on these subsets, as reported by the authors. The graph results themselves also show that a single head convention does not dominate across these cases. On the NoReC Fine subset, head-first has macro Target F1 of 63.3 and head-final has 67.8. On the MultiB EU subset, the scores are 68.9 and 65.9, respectively. On the MultiB CA subset, head-first reaches 72.2 and head-final reaches 73.7. The DS Unis subset favors head-first, at 56.9 against 43.1, on a particularly small set of sentences.

The paper names the sequence comparator differently in two places. The prose describes the test as a comparison with RACL-BERT, while the table labels the comparator RACL. The reported pattern supports the authors’ claim about target recovery in sentences with several annotated targets, but the identity of the sequence system matters when attributing an exact baseline score. The subset also evaluates extraction. It leaves open how frequently the predicted targets were paired with the correct expressions in those same sentences.

#### Removing the contextual representation

The authors rerun the graph setups without mBERT to see how much its contextual information contributes. The Word2Vec and other token features are still part of the parser. The comparison therefore asks what the additional frozen contextual features contribute within this graph architecture. The paper reports gains in percentage points by averaging across the graph setups.

The span extraction gains reported in the text are 4.1 points for holders, 3.4 for targets, and 3.1 for expressions. Targeted F1 gains 4.2 points on average. The two arc scores gain 3.3 points for UF1 and 3.8 for LF1. The gains extend to the reconstructed opinions, with 3.6 points for NSF1 and 3.9 for SF1. Since the improvement appears both before and after opinions are assembled, the contextual features contribute to more than one part of the evaluation.

The corpus-level gains vary. For test Targeted F1, the average increase across graph setups is 7.2 points on MPQA and 6.4 on DS Unis. It is 4.2 on NoReC Fine, 2.1 on MultiB CA, and 1.1 on MultiB EU. The paper reports the largest overall benefits for the English datasets, with Norwegian next and the hotel-review datasets showing smaller gains. The authors relate this observation to earlier work on uneven multilingual transfer and suggest exploring language-specific contextual representations. The experiments establish which corpora benefited most from the features in this setup. Language, domain, and annotation practice vary together across those corpora.

Removing mBERT also leaves cases where the parser performs well on a measure the baseline shares. On MPQA without contextual features, the head-first graph reaches 22.6 on test Targeted F1, while RACL has 11.8. The contextual head-first result is higher still at 33.5. The two comparisons answer different questions. One shows that graph prediction can give a strong targeted result in a setting without the extra contextual features. The other shows that adding those features further helps that graph configuration.

#### Looking directly at polarity

The final analysis narrows evaluation to the interaction between an expression and its polarity. A prediction counts as a true positive when its expression overlaps the reference expression and its polarity agrees. This removes the need to recover an exact target or connect all the roles of the opinion. It still requires the system to find the relevant expression, so the result concerns polarity attached to predicted opinion language.

The reported head-final test Polarity F1 values with mBERT are highest for MultiB EU at 75.7 and MultiB CA at 71.7. NoReC Fine has 57.0, DS Unis has 44.5, and MPQA has 38.5. The authors suggest that the variation reflects the kinds of language in the corpora. NoReC Fine spans several domains and has longer expressions. MPQA includes reporting expressions such as *said* and *asked*, whose interpretation depends heavily on context. These observations offer plausible reasons for the ordering. The experiment does not isolate ambiguous wording or domain diversity as a causal factor.

The polarity analysis also clarifies how to read the complete-opinion scores. A low SF1 can result from mistakes in choosing sentiment-bearing language, assigning polarity, finding another role, or linking the roles. An expression-level polarity test reduces the number of requirements and shows that performance still varies substantially between corpora. It gives a narrower view of the classification problem while preserving the connection between the label and the words that convey it.

### Limitations

#### Limits the authors identify

The authors acknowledge that the token-graph representation can lose information. Its single arc per ordered token pair means that some different role relations cannot be expressed simultaneously once they map to the same endpoints. This comes from the choice of output representation. Extra training data could help the parser learn the structures that the representation permits, while a collision of this kind would still require a change to what can be encoded. The paper characterizes these cases as rare and does not give a count of how frequently they occur.

The expression-centered representation also shapes corpus selection. The authors leave out the DS Unis source corpus’s e-commerce portion because many of its targets have a polarity without an annotated expression. The experiments therefore cover annotations in which an expression can provide the root, including cases with an empty holder or target. The omitted annotations raise a different representational problem: how to record a judgment when its polarity is associated with a target and the annotation provides no text span to anchor the expression.

The polarity labels in the benchmarks are simplified in places. In the hotel reviews, strong positive and strong negative are merged into the corresponding basic classes. In NoReC Fine, intensity is omitted. Neutral is included where the corpora annotate it, and the authors describe different uses of that category in MPQA and DS Unis. The results concern the polarity inventories used in the experiments. They leave the recovery of intensity and the reconciliation of different annotation policies open.

The authors also identify restrictions in the baseline comparisons. They could not directly compare with the earlier Katiyar and Cardie MPQA results under the same splits and procedure. They flag the earlier MultiBooked extraction results as coming from cross-validation. For the contextual baseline they match the multilingual BERT variant more closely, but RACL-BERT updates its BERT representations and the graph parser does not. The comparison represents the practical configurations the authors ran. It leaves the training treatment of those representations as one difference between them.

#### Limits visible in the experimental design

The headline advantage over sequence labeling is established for metrics that both approaches can be scored on, most prominently Targeted F1. The complete-graph metrics tell us how well the proposed approach recovers full opinions and how that changes under alternative graph encodings. The baseline systems produce a narrower output, so the experiments leave open how this parser would compare on SF1 with a complete opinion extraction pipeline equipped to predict holders and explicit relations. The targeted comparison and the full graph analysis each support a different part of the paper’s case.

The choice of development measure matters as well. The graph parser is selected by labeled token-arc accuracy, while the sequence baselines are selected by their exact target-and-polarity results. Labeled arc accuracy is a reasonable guide for a parser trained to predict labeled arcs. The test results show that arc scores and complete-opinion scores can move in different directions. The experiments do not establish how checkpoint selection directly on SF1 would affect the observed rankings or their variability across seeds.

Interpretation of the syntax experiments is bounded by the setup. The comparison changes how syntactic analyses are converted into sentiment graph heads, and the analyses come from different parsers for different languages. The corpora also cover different domains and exhibit different span and polarity distributions. The stronger average gains on the non-English corpora tell us where this implementation helped. They do not isolate which properties of the language, annotation, or syntactic analysis were responsible. The filtered variant adds evidence that head selection heuristics matter, with effects that depend on how they interact with a particular dataset.

The contextual representation ablation has a similar scope. For each setup, removing mBERT gives a direct comparison about its contribution. Comparing the size of that contribution across datasets is less controlled. MPQA and DS Unis differ from the hotel-review corpora in more than language, and the inputs include different static word vectors for English and the other languages. The ordering of the gains supports the authors’ motivation for examining language-specific representations. It is insufficient to quantify a language effect independently of the other differences.

Finally, the multiple-target and polarity analyses deliberately make narrower tests than SF1. The first shows how well systems recover targets in sentences with several of them, with some subsets based on very few sentences. The second scores a polarity only when the predicted expression overlaps an annotated expression. It combines locating that expression with assigning its label. These analyses illuminate where errors may arise, while the full graph score remains the reported test of recovering expressions, roles, links, and polarities together.

### What came after

The paper closes with research directions that follow from the difference between grammatical dependencies and sentiment dependencies. One is to enrich each token’s representation with contextual information from its syntactic head. That would use syntax when computing the vectors the parser scores. Another is to learn syntactic dependency parsing as an additional task alongside sentiment graph parsing. That would give the two tasks a shared training setup. Both proposals extend the use of syntax beyond the experiments reported here, which use syntactic analyses to choose the token that represents an annotated span.

The authors also propose trying another graph parsing approach, naming PERIN as an example. This would let a follow-up test how much of the observed behavior comes from the representation of the opinion and how much comes from the particular procedure used to score and assemble its arcs. PERIN appears in the paper as an existing approach the authors wanted to explore for sentiment. Subsequent studies that carried out these proposals or otherwise extended the sentiment framework are undocumented in the available record.

## Cite

Cite as Jeremy Barnes, Robin Kurtz, Stephan Oepen, Lilja Øvrelid and Erik Velldal. 2021. Structured Sentiment Analysis as Dependency Graph Parsing. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers).

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

```bibtex
@inproceedings{barnes2021structured,
  title = {{Structured Sentiment Analysis as Dependency Graph Parsing}},
  author = {Jeremy Barnes, Robin Kurtz, Stephan Oepen, Lilja Øvrelid and Erik Velldal},
  booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.263},
  url = {https://doi.org/10.18653/v1/2021.acl-long.263}
}
```

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