Aspect-based Sentiment Analysis with Opinion Tree Generation
Paper · 2022 · Xiaoyi Bao, Zhongqing Wang, Xiaotong Jiang et al.
Summary
A review can praise one feature of a product and criticize another. To capture that distinction, aspect-based sentiment analysis needs to identify both the target of each judgment and the words that express it. Bao and colleagues study a version of the task in which each judgment has four parts. The aspect term names the feature, the opinion term gives the wording of the judgment, the aspect category assigns the feature to a pre-defined group, and the sentiment polarity gives the direction of the judgment. The system must recover these parts and put them together correctly. A review can contain several judgments, so finding the right words and labels still leaves the question of which ones belong together.
The authors represent a sentence’s judgments as an opinion tree. Each judgment has a branch of its own, with a separate place for the aspect and for the opinion. The category sits on the aspect side, and the polarity sits on the opinion side. The authors turn the tree into a sequence with parentheses that mark its branches, then train T5 to generate that sequence from the review sentence. During generation, constraints restrict the choices according to the part of the tree being written. The authors also add a training stage in which the system learns from automatically produced constituency parses, meaning representations, and opinion trees before working with the human-annotated review data.
On the ACOS test sets, opinion tree generation reaches exact-quadruple F1 of 0.6283 for Restaurant and 0.4544 for Laptop, the highest scores among the systems compared in the paper. A prediction earns credit when all four parts match a human annotation as a group. The full system scores higher in both domains than variants that omit constrained decoding or the added joint pretraining stage. A separate comparison, with T5 as the common starting point, finds that the tested tree formats outperform a flat output sequence. Together, the comparisons support making the grouping of sentiment information explicit in the generated answer. The benchmark evaluates the recovered judgments, so the evidence for the tree comes from how well it serves that extraction task.
Deep dive: Aspect-based Sentiment Analysis with Opinion Tree Generation
Bao and colleagues use opinion trees to link what a review discusses with how it evaluates each aspect, improving exact extraction on ACOS. · about 33 minutes to read
The problem and its context
What a sentiment judgment contains
An overall verdict about a review can leave out the distinctions that make the review informative. A reader may care which part of a product drew praise, or why a restaurant visit attracted criticism. Aspect-based analysis works at that level. Its unit of interest is a judgment associated with a particular feature or subject. When a sentence contains several judgments, the output has to preserve their separate targets and evaluations.
The paper illustrates the four-part answer with a sentence that describes a surface as smooth. The aspect term is surface, the part of the sentence naming the feature. The opinion term is smooth, the description that expresses the evaluation in this example. The category is design, the label under which the feature belongs. The polarity is positive, the direction assigned to the opinion. The words surface and smooth come from the sentence. The category and polarity belong to the task’s label inventory and can express information the writer leaves unstated.
This distinction separates two jobs that can look similar in a finished answer. Finding an aspect term is a matter of identifying the relevant stretch of wording. Categorizing it requires deciding how the feature fits the available labels. Identifying an opinion term likewise locates wording in the input, while assigning polarity interprets its evaluative force. The benchmark asks for the wording and the interpretation together.
A quadruple records all of this for one judgment. Its components are distinct, but the point of predicting them jointly is to recover their association. Suppose a sentence evaluates the surface and also evaluates another feature. A system could recover both descriptions and both features, then get the result wrong by attaching a description to the wrong feature. The same problem arises if it assigns the correct polarity labels somewhere in the sentence while exchanging the judgments they describe. The output needs the equivalent of a statement that these pieces form a single record.
That is the information extraction problem behind opinion tree generation. Recovering a complete record requires several decisions, and the criterion for a correct record makes the decisions depend on one another. A good representation gives the system a way to express those dependencies in its answer. The central design choice in the paper is to give each judgment its own place in a hierarchy, then mark that hierarchy in the text the system generates.
How earlier work divided the task
As Bao and colleagues describe the field, early work often concentrated on one component. An aspect extractor could identify a feature mentioned in a sentence. A category detector could recognize the kind of feature under discussion. A polarity classifier could take an already specified aspect and predict how the writer felt about it. Each setting isolates a question that can be studied in its own right. In the last case, for example, supplying the aspect lets the study concentrate on interpreting the evaluation.
Later work combined components. The paper discusses studies that extract aspect and opinion terms in pairs, studies that recover an aspect with its associated polarity, and studies that detect a category together with an evaluation. These pairings bring the problem of association into the task. When an aspect and opinion must be extracted together, success means identifying a relationship between the two expressions as well as locating them.
Triplet and quadruple tasks bring more of the judgment into the same prediction. A triplet can combine the aspect, its opinion expression, and polarity. Quadruple extraction also asks for the aspect category. It therefore covers both the specific wording and the more general classification of the feature. The paper situates ACOS quadruple extraction in this progression towards recovering the complete collection of sentiment elements attached to each judgment.
Earlier approaches frequently framed their decisions as text classification at the level of a sentence or its individual tokens. When a system handles a full quadruple by dividing the work into stages, a decision in one stage can restrict what happens later. A system that first extracts an aspect–opinion pair can assign a category and polarity only to the pairs it passes forward. Missing a pair early leaves the later stage without the relevant combination to classify. Passing along an incorrect pair poses a different problem. The later labels can be individually plausible and still describe the wrong association.
The authors also draw attention to how classification systems represent their labels. A system can learn that a numerical identifier stands for a category, but there is no descriptive wording in the identifier itself. When the output uses the category’s name, that name can carry meaning in the same vocabulary used to process and generate text. The distinction matters to the authors because their method starts with a system already trained on text. The sentiment task can use part of that experience if its targets include meaningful label names.
From generated text to an explicit hierarchy
The paper describes several earlier attempts to handle aspect-based sentiment tasks through text generation. Some approaches generate a sequence that includes class indices. Others ask for the sentiment elements themselves as a sequence. Paraphrase generation expresses the judgment in a sentence-like form that can be read back into a quadruple. The latter approaches can present category or polarity labels as meaningful text and learn to produce the different components in a single generation process.
A sequence can contain all four elements and use order to indicate which field is which. A paraphrase can express their relationships through wording. The objection raised by Bao and colleagues concerns how explicitly the output format represents the relationships the task cares about. A flat sequence gives the reader or the recovery procedure an ordering convention. An opinion tree also marks which pieces belong to the same judgment and which are associated within it. Category and aspect term occupy the same side of a branch. Polarity and opinion term occupy the other side. Branch boundaries indicate where a complete judgment ends.
The authors place this choice alongside earlier work that uses explicit structure in language processing. Their starting point is that a relation can be made visible through the organization of nodes and their connections. For sentiment analysis, the useful organization is specific to the task. A syntactic analysis can say how the words of a sentence fit together grammatically. The opinion hierarchy instead records the feature, the assessment, and the labels needed for extraction. A review can have a rich sentence structure even when it expresses a single relevant judgment. Conversely, the tree can have several judgment branches under the same root when a single sentence evaluates several things.
The proposal keeps the appeal of producing one output from a review sentence. What changes is the format and the information that constrains it. The system learns to write a sequence that carries a tree, and the decoder uses the tree’s allowed form as it decides what can appear next. The paper also draws on parsing as a source of training experience. The authors reason that learning to express grammatical and semantic relationships in structured sequences may help with the related job of organizing sentiment information. They test that idea by training with several kinds of automatically constructed targets.
The method, step by step
Turning annotated judgments into a tree
The method starts with a review sentence and, for supervised training, the corresponding set of annotated quadruples. The annotations already supply the information the system will eventually have to predict. Tree construction changes its arrangement. The authors can perform that conversion before training because the target category, terms, polarity, and grouping are known for each annotated instance.
A virtual root stands for the entire output associated with the sentence. The authors attach a quad node to that root for each annotated judgment. This is the level of the tree that keeps judgments separate. Under a quad node sit an aspect node and an opinion node. These are role markers. The aspect node identifies the part of the judgment concerned with what is being evaluated. The opinion node identifies the part concerned with the evaluation.
The category is a child of the aspect node, and the aspect term is a leaf beneath the category. The polarity is a child of the opinion node, with the opinion term as a leaf beneath it. In the surface example, the aspect branch thus passes through design before reaching surface. The opinion branch passes through the positive polarity before reaching smooth. Both sides meet at the quad node. That common parent records that this surface and this evaluation belong to the same judgment.
The hierarchy places the labels alongside the expressions they characterize. An aspect category has a particular term under it, instead of sitting in a general inventory of categories detected for the sentence. The polarity is likewise local to an opinion branch. A reader can follow the branches to see the associations directly. When several judgments occur, repeating the same pattern beneath the root gives the output a uniform way of distinguishing them.
The paper describes the opinion tree as a rooted directed acyclic graph. There is a distinguished starting point, connections lead down from it, and following those connections never leads back to an ancestor. In the construction used here, the hierarchy comes from the sentiment fields and their roles. The leaf text can be drawn from different parts of the sentence. Its place in the tree records what that text contributes to a judgment.
This construction also explains how to recover the task output from a generated tree. Each quad node defines a record. Reading the category and term from the aspect side, and the polarity and term from the opinion side, recovers its quadruple. The structure is thus both a training target and an intermediate representation at inference. The final evaluation takes place on the recovered quadruples.
Writing the hierarchy as a sequence
T5 generates a sequence, so the next step is to write the tree in a form that preserves its nesting. The authors traverse it depth first. Starting at the root, the traversal follows a branch down before coming back to continue with the other branches. Opening and closing parentheses provide visible boundaries. A sequence reader can use those boundaries to identify which material lies inside a branch and which lies beside it.
The paper draws on earlier uses of such notation, including Neural Semantic Parsing by Character-based Translation. In Bao and colleagues’ method, the delimiters coexist with the words or labels that name the roles, categories, polarities, and mentions. The result is ordinary sequential input for the generation machinery, carrying the information necessary to reconstruct a hierarchy. In that sense, the word tree describes the organization of the answer, and sequence describes how the answer is recorded and produced.
There can be more than one way to visit branches that share a level. The authors use the order in which the corresponding spans appear in the sentence. Their example visits the branch associated with surface before the one associated with smooth, following the wording of the review. An ordering convention matters in training because the desired semantic answer could otherwise have several written forms. Giving the generator a consistent traversal supplies a target order in addition to the target contents and connections.
Parentheses convey more than the presence of a structure marker anywhere in the answer. Their position and nesting are what encode the shape. Moving a closing parenthesis can turn a descendant into a neighboring branch or close a record before its opinion has been written. A generator has to learn the format along with the labels and spans. That explains why the paper distinguishes choosing a structured target from constraining the generation process that produces it.
How opinion tree generation learns and predicts judgments
The steps in order.
Encoding the review and predicting the next token
The sentence-to-sequence architecture has an encoder that reads the input sentence and a decoder that writes its output. The authors use T5 base, whose starting parameters already reflect prior training for text generation. This starting point is separate from the paper’s additional pretraining on review sentences. The proposed training procedure takes T5 and extends it with tasks chosen for opinion tree generation.
The encoder computes a contextual representation for each input position. The paper writes the operation as follows.
H = Encoder(x₁, …, x₍|x|₎)
Here, x is the input token sequence for the review, |x| is its length, and x₁ through x₍|x|₎ are its tokens in order. The subscript identifies the position in that sequence, and the ellipsis stands for the intervening tokens. Encoder is the operation that processes the whole input. H is the resulting sequence of hidden vectors, with a vector hᵢ for input position i. The equals sign specifies the representation returned by the encoder.
The encoder consists of several transformer blocks that use multi-head attention. Attention lets the representation at an input position draw on information at other positions. This is relevant when the information needed to interpret a feature comes from elsewhere in the sentence. The representations are subsequently available to the decoder as it writes both the tree’s content and its delimiters.
The decoder generates its output incrementally. It has access to the encoded sentence and to what has already been produced. The paper describes one generation step with this relationship.
yᵢ, hᵈᵢ = Decoder([H; hᵈ₁, …, hᵈᵢ₋₁], yᵢ₋₁)
Here, y is the sequence that represents the opinion tree, and i is the current output position. yᵢ and hᵈᵢ are the output token and decoder state at that position. The superscript d marks a decoder state. yᵢ₋₁ is the preceding output token. Inside the brackets, H represents the encoder’s output, while hᵈ₁ through hᵈᵢ₋₁ stand for the earlier decoder states. The semicolon in the notation separates these sources of information, and the brackets group them as an argument to Decoder. The ellipsis covers the earlier states between the displayed endpoints.
The decoder uses self-attention over its own history and cross-attention to the encoder’s representation of the review. Self-attention gives it access to what it has started to write, such as the currently open branch. Cross-attention gives it access to the sentence, such as the wording that could appear in an aspect or opinion leaf. A beginning token starts the output, and an end token marks completion. Each successive decision can depend on the earlier output and the input together.
The probability of the sequence combines the probabilities of the individual choices.
p(y | x) = ∏ᵢ₌₁…|y| p(yᵢ | y₍<i₎, x)
Here, p denotes probability and the vertical bar means “conditioned on.” p(y | x) is the probability of the complete linearized tree given the input x. |y| is the output length, and ∏ means to multiply the displayed probabilities across positions i from the first through the end of the sequence. yᵢ is the token at the current position, and y₍<i₎ consists of the earlier output tokens. The less-than sign in that subscript indicates positions before i. The comma separates the earlier output and the review as the two sources of conditioning information. The paper uses softmax to normalize the token probabilities over the target vocabulary V.
Writing the probability this way makes clear what the system learns to predict. The next target token can be part of a label, part of a span, or a marker of structure. All are predicted through the same sequence objective. Dependencies among sentiment elements can affect later choices because the earlier output remains available to the decoder. This sequential conditioning also means that an early error can affect the continuation. The decoding constraints address the forms that later choices are allowed to take.
Restricting the choices during decoding
An unconstrained decoder has a general target vocabulary. Many continuations in that vocabulary would be inappropriate at a particular point in an opinion tree. A category label belongs in a category slot. Text taken from the review belongs in a mention slot. A delimiter belongs where the structure calls for opening or closing a branch. The proposed decoder uses the opinion schema, the specification of the allowable output structure, to select a smaller set of candidates as it goes.
The authors describe the search in terms of a trie. A trie represents permissible sequences by allowing them to share their beginnings. Once part of a sequence has been written, the next choices come from continuations of that prefix. In the paper’s notation, Vₜ is the candidate vocabulary at generation step t. It depends on the current generated state. The children under the current location in the search supply candidates that continue an allowable form.
The method draws its candidates from different sources. Category and polarity choices use pre-defined label names. Aspect and opinion mentions draw on spans in the input sentence. Parentheses provide the structural markers that organize those pieces. For instance, the paper illustrates a polarity decision with the options Positive and Negative. That example shows how a field can narrow the candidate set at a particular point in generation. The account of the method gives examples of these choices as part of explaining the schema.
The constraints act during inference. The system does not first generate an arbitrary answer and then ask a separate classifier what its category or polarity should be. It still relies on the learned decoder to choose among allowable continuations. The schema can determine that a polarity label is appropriate at a position, but the review and the learned parameters supply the evidence for choosing a particular polarity. It can similarly restrict a mention to the wording of the review while leaving the system to identify which span expresses the opinion.
The authors intend this process to yield an output conforming to the opinion tree schema. Conformity at that level concerns the places where fields can appear and the kinds of tokens that can fill them. Correctness on the sentiment task requires more. A well-formed branch can attach a plausible label to the wrong term. Treating those as distinct properties helps explain why the paper evaluates the recovered quadruples instead of counting acceptable bracket sequences as successes.
Learning from sentence–tree pairs
The training objective increases the probability of the annotated tree sequence for each input sentence. The paper defines the loss as the average negative log-likelihood of the training targets.
L = −(1 / |τ|) ∑₍Xᴼ, Xᵀ₎ ∈ τ log p(Xᵀ | Xᴼ; θ)
Here, L is the loss, τ is the training collection, and |τ| is its number of sentence–tree pairs. Xᴼ is a review sentence and Xᵀ is its linearized target tree. The superscripts distinguish the input and target. The summation sign ∑ adds the terms for pairs in the collection, and ∈ denotes membership in that collection. p is the conditional probability of the target given the sentence with parameters θ. The semicolon sets the parameters apart from the conditioning input in the notation. log takes the logarithm of the probability. Dividing by the collection size gives an average, and the leading minus sign makes a higher target probability correspond to a lower loss.
A complete tree has many output positions. Taking the logarithm of its probability turns the product of token probabilities into a sum.
log p(Xᵀ | Xᴼ; θ) = ∑ᵢ₌₁…n log p(xᵀᵢ | xᵀ₁, xᵀ₂, …, xᵀᵢ₋₁, Xᴼ; θ)
Here, Xᵀ is the target sequence, and n is its length. i indexes the positions in that sequence. xᵀᵢ is the target token at position i, while the displayed history xᵀ₁, xᵀ₂, …, xᵀᵢ₋₁ consists of the target tokens before it. Xᴼ is the review, and θ denotes the learned parameters. p is the decoder’s conditional token probability, the vertical bar introduces its conditioning information, and the semicolon sets apart the parameter argument. log is the logarithm, and the sum adds the log-probabilities across the target positions.
In training, this expression asks the system to predict each token given the preceding target tokens. At inference, the sequence has to continue from the output the system has actually generated. This distinction helps place the decoding constraints in the overall procedure. The likelihood teaches the system what annotated trees look like and which ones go with particular sentences. The schema supplies allowable choices for continuing a partially generated tree when the annotations are unavailable.
Learning from automatically constructed targets
The authors add three auxiliary tasks before adapting the system to the annotated sentiment data. Each takes a sentence and predicts a linearized structure. The common interface allows them to merge the training instances and use a shared vocabulary. They identify the tasks with unique tags preceding their targets. Sentences can therefore be associated with different kinds of structured outputs within the same training setup.
The first task is constituency parsing, a form of syntactic analysis that groups words into phrases and marks how those phrases nest. The authors apply an existing parser to review sentences and turn its trees into sequences. These automatic annotations make up a silver treebank. In the paper’s terminology, silver indicates that the annotations come from an automatic system. The use of such targets makes it possible to train the text-to-structure procedure on reviews that were collected without gold sentiment or syntax annotations for this experiment.
The second task is semantic parsing into Abstract Meaning Representation, or AMR. Here the targets are directed acyclic graphs whose nodes stand for concepts and whose edges represent relations between concepts. Again, an existing parser supplies the annotations, which are then written as sequences for training. AMR provides a different perspective from constituency. The latter teaches the system to represent the organization of phrases. AMR targets give it experience producing a structured account of what a sentence expresses.
The third task uses opinion trees themselves. The authors apply a baseline opinion tree generator to review sentences, obtaining automatically predicted trees. The predictions become additional sequence targets once they are linearized. The paper likens this procedure to self-training because an existing predictor supplies labels for material that lacked them. This data has a direct relationship to the final output format. It lets the system practice producing trees with sentiment categories, opinions, and their associated spans before it sees the gold targets used in fine-tuning.
The intended sources of benefit are different. Constituency targets provide examples of nested grammatical structure. AMR targets provide examples of relationships arranged as meaning structures. Pseudo-labeled opinion trees provide examples in the task’s own representation. Since the auxiliary data is automatically labeled, its targets can carry the strengths and errors of the systems that produced them. The setup uses these targets as extra training information and retains human-annotated sentiment trees for the main task.
The authors use 20,000 Yelp sentences and 20,000 Amazon sentences from the laptop domain for this stage. The relevant characteristic of these collections for the procedure is that they supply more review sentences. The constituency parser, AMR parser, and baseline opinion generator provide the different target structures. This enables the pretraining comparison to investigate both the choice of auxiliary task and the size of the data used for those tasks.
Retaining auxiliary tasks during fine-tuning
Fine-tuning starts from the parameters learned during pretraining and adapts them to the gold opinion tree data. The authors retain auxiliary supervision at this stage. They take a sentence from the gold corpus and feed it to the pretrained system to generate the corresponding auxiliary outputs. The same input is then associated with the human-annotated opinion target and with the automatically generated auxiliary targets. Tags continue to distinguish the output types.
The paper describes the number of outputs for a gold input with this expression.
k + 1
Here, k is the number of pretraining tasks. The plus sign adds a single gold target for the main opinion tree task to the k auxiliary outputs. The input, denoted s in the authors’ description, is the same sentence for these targets. Each target carries the tag identifying the task it represents. In particular, the auxiliary opinion target comes from an automatic prediction, whereas the main opinion target reflects the gold quadruples.
This is why the final training setup involves more than using auxiliary tasks to initialize weights. The auxiliary objectives remain represented on the sentences used for gold fine-tuning. The method, taken as a whole, combines an output format, an inference constraint, and a source of additional supervision. The output format determines what a tree records. The constraint determines how an output can be continued. The training procedure changes the examples from which the system learns to make those choices.
Experiments and results
The benchmark and what counts as correct
The experiments use ACOS, a benchmark for extracting complete aspect-level sentiment records. The Restaurant portion contains 2,286 sentences, and the Laptop portion contains 4,076 sentences. These are the reported domain totals. The authors follow the benchmark’s division into training, validation, and test sets. The sentences obtained from Yelp and Amazon belong to the additional pretraining procedure, where their targets are generated automatically.
The decisive unit of evaluation is a complete quadruple. Each predicted aspect term, opinion term, category, and polarity must match the corresponding parts of a gold quadruple, and the four elements must form the gold combination. Finding the right aspect and opinion words with the wrong category earns no credit for that quadruple. The same applies when the expected words and labels appear across a system’s predictions but have been assembled into the wrong records.
Precision describes the share of predicted quadruples that match a gold record. Recall describes the share of gold quadruples the system recovers. F1 combines precision and recall and is the paper’s final measure of extraction performance. Considering the components alongside F1 can reveal different strengths. For example, a system can recover a larger share of the gold records while accepting enough incorrect predictions that its final F1 remains lower.
The authors tune settings by grid search on the validation data and use a validation measure they call Accuracy for early stopping. The final comparison is based on the test-set extraction measures. The architecture uses T5 base. The paper reports 128 as the dimension of the other hidden variables, Adam with a learning rate of 3e-4, a batch size of 16, and an Nvidia RTX 3090 GPU. The reported experimental results average ten runs with random initialization.
What the baselines represent
The comparison spans rule-based extraction, joint prediction, pipelines, and generation. DP adapts a double-propagation approach originally used for extracting aspect–opinion sentiment triplets. It stands for a rules-based route to identifying relations among the elements. JET uses a position-aware tagging scheme to identify aspect terms, the opinions attached to them, and polarity within a unified prediction framework. Its approach builds the association into the tags used to represent the input positions.
TAS-BERT combines aspect extraction with category-based sentiment classification. As described in the paper, it attaches category and polarity information to the review as part of the BERT input. Extract-Classify first finds aspect–opinion pairs, then predicts category and sentiment for those pairs. Its staging makes it a direct comparison for the decision to produce an entire sentiment structure in one output.
The generative baselines differ in how they express the answer. BARTABSA casts the sentiment subtasks into a shared generation setting and uses class indices in its output. GAS generates a sequence of sentiment elements. Paraphrase represents a quadruple in a rewritten, sentence-like output and learns to produce that representation. All are relevant comparisons because the opinion tree proposal retains sequence generation while changing what the generated sequence describes.
The strongest comparison for a claim about the tree’s shape is the paper’s separate experiment varying the output representation with a common T5 backbone. The main benchmark comparison answers a broader question. It shows how the full approach, with its output format, decoding restrictions, and extra training, performs beside other published approaches as evaluated in the paper.
Restaurant test results
Opinion tree generation reaches an exact-quadruple F1 of 0.6283 on the Restaurant test set. GAS is the closest baseline on this metric at 0.5959, followed by Paraphrase at 0.5904 and BARTABSA at 0.5598. The other baselines score lower. Among the earlier systems, the three generative approaches occupy the leading positions by F1 on this split.
ACOS Restaurant test exact-quadruple F1 by system
Opinion tree generation leads the comparison, with GAS the closest baseline.
The numbers
| System or setting | F1 |
|---|---|
| DP | 0.2104 |
| JET | 0.3901 |
| TAS-BERT | 0.3353 |
| Extract-Classify | 0.4461 |
| BARTABSA | 0.5598 |
| GAS | 0.5959 |
| Paraphrase | 0.5904 |
| Opinion tree generation (this paper) | 0.6283 |
The proposed system’s Restaurant test precision is 0.6396 and its recall is 0.6174. It leads the comparison on both measures in this domain. The baseline with the strongest Restaurant precision is GAS at 0.6069, and the baseline with the strongest Restaurant recall is Paraphrase at 0.5911. GAS and Paraphrase thus offer an example of how the ranking can depend on which part of extraction quality is being examined. GAS leads the baselines in F1 while Paraphrase recovers a larger share of the gold records.
On this split, opinion tree generation improves the measured balance of finding gold records and keeping the predicted records correct. Because both measures test entire quadruples, the figures incorporate everything from locating the spans to putting the labels together with them. The main results table does not divide this advantage into gains attributable to categories, terms, polarity, or grouping. The controlled comparisons give evidence about parts of the system, while the Restaurant test figures describe the result for the complete extraction problem.
Laptop test results
On the Laptop test set, opinion tree generation achieves an exact-quadruple F1 of 0.4544. Paraphrase has the strongest baseline F1 at 0.4334. GAS follows at 0.4217, and BARTABSA reaches 0.4105. The three strongest baselines by F1 are again generative. Their order differs from Restaurant, where GAS leads Paraphrase.
ACOS Laptop test exact-quadruple F1 by system
Opinion tree generation leads the comparison, with Paraphrase the closest baseline.
The numbers
| System or setting | F1 |
|---|---|
| DP | 0.0800 |
| JET | 0.2381 |
| TAS-BERT | 0.2731 |
| Extract-Classify | 0.3580 |
| BARTABSA | 0.4105 |
| GAS | 0.4217 |
| Paraphrase | 0.4334 |
| Opinion tree generation (this paper) | 0.4544 |
The precision and recall scores show why it matters to specify the metric when describing the Laptop result. The proposed system’s test precision is 0.4611 and its recall is 0.4479. TAS-BERT has higher precision at 0.4715, while Paraphrase has higher recall at 0.4504. TAS-BERT’s recall is 0.1922, and Paraphrase’s precision is 0.4177. Opinion tree generation has the highest final F1 because of how it combines precision and recall on this split. Its lead therefore has a different profile from the Restaurant result.
The main comparisons show that opinion tree generation leads on the same exact-match objective in both review domains, with a different baseline posing the closest competition in each. They also support the authors’ observation that the generative approaches are strong comparisons for this task. A category or polarity label can be generated as meaningful text, and all the fields can be generated together. The rankings alone do not isolate the effect of label wording. The baselines differ in several ways, including the representations used to express the answer.
The authors report statistical significance at p < 0.05 for their main comparison. The reported F1 scores give the size and direction of the performance differences on the tested splits. The significance claim adds the authors’ statistical assessment of those comparisons. Its scope is the benchmark result reported in the paper. The separate analysis of decoding, pretraining, and output shapes is needed to examine how much evidence there is for the design choices behind that result.
What the ablations show
Constrained decoding and joint pretraining
The first ablation removes constrained decoding from the tree generator. Test F1 falls from the full system’s 0.6283 to 0.6249 on Restaurant and from 0.4544 to 0.4517 on Laptop. The tree remains the target representation in this comparison. What changes is whether the opinion schema restricts the token choices while the tree is written. The scores support using the constraints on these splits. They are end-to-end extraction scores, so they do not show how often the restrictions repaired an output that would otherwise have been ill-formed.
Removing the added joint pretraining tasks gives test F1 of 0.6164 for Restaurant and 0.4394 for Laptop. The removed stage is the paper’s pretraining with automatically produced syntax, AMR, and opinion targets. T5 is already pretrained at the starting point. The ablation therefore measures the value of the paper’s added training arrangement over that starting point. It gives evidence about the combined changes involved in using those auxiliary tasks, rather than about a single parser or data source in isolation.
The effect of these interventions differs in kind. Constrained decoding acts on the options available to the system when it produces an answer. Joint pretraining changes what the system has learned from structured targets before it makes those choices. Both changes can affect the same final measure, but an improvement in that measure does not specify the mechanism for each recovered record. A schema can prevent some invalid continuations. Exposure to more structured sequences can change which valid continuation the generator prefers. Those are two routes to a better complete output.
ACOS Laptop test exact-quadruple F1 under component removal
The full system leads every tested ablation on the Laptop split.
The numbers
| System or setting | F1 |
|---|---|
| Full opinion tree generation (this paper) | 0.4544 |
| Without constrained decoding | 0.4517 |
| Without joint pretraining | 0.4394 |
| Without syntax task | 0.4500 |
| Without AMR task | 0.4440 |
| Without opinion tree task | 0.4414 |
The individual auxiliary tasks
The authors also omit the auxiliary tasks one at a time. Without the syntax task, test F1 is 0.6206 for Restaurant and 0.4500 for Laptop. Without AMR, it is 0.6159 for Restaurant and 0.4440 for Laptop. Without the auxiliary opinion tree task, it is 0.6170 for Restaurant and 0.4414 for Laptop. Every omission produces lower F1 than the full configuration in each domain. This supports the particular mixture the authors use and gives a view of how it fares when one source of supervision is absent.
The single-task omissions have different rankings across the two domains. On Restaurant, the setting without AMR has the lowest F1 of the individual omissions. On Laptop, the setting without auxiliary opinion trees has the lowest F1 of those omissions. The syntax omission gives the score closest to the full result among the individual task omissions in both domains. These observations concern the removals from a particular training recipe. They do not tell us what would happen if each auxiliary task were used alone.
Restaurant also illustrates why the rows should be read as comparisons of configurations. The variant without AMR scores 0.6159, below the 0.6164 of the variant that removes the joint pretraining tasks altogether. The remaining auxiliary tasks in the AMR omission are therefore not guaranteed to improve on omitting the entire added stage. Each row changes the available supervision, and the results do not justify decomposing the full gain into independent contributions that could be added together.
The authors interpret the ablations as supporting the use of syntactic and semantic features for opinion tree generation. The experiment shows that keeping the corresponding training tasks helps the full setup relative to removing them individually. It leaves open which concrete kinds of errors each task helps fix. F1 can rise because the system picks better spans, better labels, better links between elements, or some combination of these changes. The omission scores are evidence for the auxiliary training design at the level of the complete task.
The shape of the generated answer
A separate comparison changes the representation of the output. The authors test their proposed hierarchy, a closely related tree with the category and polarity attached directly to the quad node, a simpler tree rooted over aspect–category and opinion–polarity pairs, and a flat sequence. They linearize the trees and train the generation systems with T5 as their common backbone. This comparison changes how the sentiment information is organized in the target while retaining the broad approach of generating a sequence.
The closely related tree changes the parentage of the category and polarity. In the proposed hierarchy, each label is embedded in the branch it helps characterize. The comparison variant attaches those labels at the level that represents the full judgment. The simpler tree organizes term–label pairs under a root. That design still gives part of the output a hierarchical form, while supplying less of the proposed organization around complete judgments.
The paper reports that every tested tree representation outperforms the flat sequence and that the proposed hierarchy outperforms the simple tree. The first result supports including structure even when the system ultimately writes a linear sequence. The second suggests that the associations encoded by the hierarchy matter. The proposed version represents a complete sentiment record through its quad node and gives each field a location on the relevant side of that record. The simple tree supplies a weaker grouping of the information that the benchmark checks together.
Because the comparison uses the same backbone, it speaks more directly to the output representation than the ranking of distinct baseline systems does. “Tree generation” in this setting means producing a sequence with structural markers, from which a tree can be recovered. The intervention changes the target sequence the system learns. It also changes how that target expresses grouping, role, and boundaries. The results support the tested structured encodings jointly with those properties and leave room for other structured encodings to behave differently.
The amount of auxiliary data
The authors vary the amount of data used for auxiliary pretraining and examine the average F1 across Restaurant and Laptop. They report that performance rises as the amount of pretraining data increases over the settings they consider. In this procedure, more unlabeled reviews become more automatically annotated instances after the parsers and baseline opinion generator have supplied targets.
The size comparison and the task omissions address different questions. The task omissions ask what happens when a source of structural supervision is absent. The data-size comparison asks how the auxiliary procedure fares with more material. The observed direction supports the authors’ use of additional review sentences in that procedure. The average describes performance across both domains and does not, by itself, give separate trajectories for Restaurant and Laptop or a measure of the quality of the automatically produced annotations.
Limitations
The scope the authors describe
The authors identify a difficulty in their own design: the desired tree has to represent several relationships among sentiment elements at once. Its expressiveness gives the generator more structure to learn and maintain. They introduce constrained decoding to guide the construction of a valid output and auxiliary training to give the system more experience with structured targets. Their analyses address these difficulties through observed extraction performance on the benchmark.
The conclusion makes a broad claim that the framework can be adapted to arbitrary aspect-based sentiment tasks without separate task-specific architecture design. The experiments directly reported in the paper concern complete quadruple extraction on the Restaurant and Laptop portions of ACOS. Earlier tasks enter the discussion as background, as sources of baselines, and as motivations for a unified method. The measured support for the framework comes from the tested quadruple setup. The claimed adaptability is wider than that experimental setting.
The paper also presents the opinion tree as an explicit and potentially interpretable representation of the review’s sentiment information. A reader can inspect which aspect was grouped with an opinion and where a category or polarity was assigned. The benchmark tests whether these grouped fields agree with the annotations. Interpretability in the sense of a reader being able to inspect the output follows from the format. Ease of use or accuracy of a person’s interpretation is a separate question that the paper does not measure.
Limits of the evaluation
The exact-match criterion makes the relationship among fields central, but it compresses distinct errors into one outcome. A prediction with the right feature and evaluation can miss because one label differs. A different prediction can fail because it puts together two unrelated expressions. In each case, the resulting record is incorrect. This is appropriate for evaluating complete extraction, although it gives little detail about which part of a system accounted for an F1 gain. A breakdown by fields or error type would be needed to see whether the tree primarily improves association, categorization, polarity, or span recovery.
A schema-valid prediction can still fail for any of those reasons. The constrained decoder determines allowable continuations, and the evaluation judges the content produced within that space. The paper reports the effect of removing the constraints on exact-match F1. It gives no separate count of malformed sequences, category-slot violations, or span errors. The results support the constraints as part of the system, with limited evidence about the distribution of errors they change.
The definition of an opinion leaf emphasizes a span taken from the review. The ACOS work cited by the authors explicitly covers implicit aspects and opinions as well. The method description provides little detail about how a missing textual mention is represented inside the tree or made available during constrained decoding. The aggregate test scores also give no separate measure for implicit cases. The ability to build well-formed records when a field is unstated thus merits a distinction from performance across the benchmark as a whole.
The reported averages summarize repeated runs, but the main table does not give run-to-run variation. The statement of statistical significance does not spell out the test used or provide separate test details for the ablations. Small score differences between settings are consequently easier to describe than to assess for stability. The evidence for the full benchmark result and the evidence for the relative order of closely scored variants have different levels of detail.
Limits of the training comparison and transfer claims
The joint training procedure changes several things together. It adds automatically produced targets, exposes the system to more review sentences, and retains auxiliary examples during gold fine-tuning. The task omissions provide more resolution about the sources of supervision. They do not isolate the initialization benefit from the benefit of continuing auxiliary tasks at fine-tuning time. Nor does the experiment independently measure the accuracy of the silver syntax, AMR, and opinion structures used as targets.
The pretraining material also has a relationship to the review domains in the evaluation. Yelp supplies one collection of sentences, and the Amazon sample comes from the laptop domain. The paper finds a benefit for the supplied data under its training procedure. There is no corresponding comparison that holds the amount of text fixed and varies whether those reviews come from the target domains. The design therefore leaves uncertain how much of the benefit depends on the subject matter and how much would transfer from other collections.
Finally, the explicit tree represents the relations specified by the task. Its branches expose the links between terms, category, and polarity, and its quad nodes expose the grouping of judgments. Those properties can be evaluated on the two ACOS domains. The experiments do not extend to a different language, a change in the label inventory, or another aspect-based task with a different output specification. The paper provides a concrete way to express the tested relations in a generated answer, with transfer beyond those conditions remaining an open empirical question.
What came after
Multilingual aspect-based sentiment analysis
Exploring Multilingual Pre-trained Language Model for Aspect-based Sentiment Analysis cites Bao and colleagues in work that takes up the task from a multilingual NLP perspective. The title identifies multilingual pretraining as its focus. This places the later work alongside a different decision about how to prepare a system for aspect-based sentiment analysis. Bao and colleagues add structural training to improve extraction on the Restaurant and Laptop benchmarks. The later title foregrounds language coverage in pretraining. The citation connects those lines of work, while the title leaves open whether the later method adopts the opinion tree, its linearization, or its decoding schema.
Tree-guided reasoning for quadruple prediction
Tree-CoT-RT also cites the opinion tree paper and stays with the task of aspect sentiment quadruple prediction. Its title describes an explainable framework combining multiple tree-guided reasoning paths with reinforcement learning. This places the tree at the level of reasoning paths in the later work’s stated approach. In Bao and colleagues’ method, the tree directly specifies the structure of the predicted sentiment records and is written as a sequence by the decoder. Both works bring an explicit tree into the problem of assembling quadruples. The later work’s title gives the tree a role in guiding the route to a prediction, while leaving open whether the final answer uses Bao and colleagues’ particular arrangement of aspect and opinion branches.
Cite
Cite as Xiaoyi Bao, Zhongqing Wang, Xiaotong Jiang, Rong Xiao and Shoushan Li. 2022. Aspect-based Sentiment Analysis with Opinion Tree Generation. International Joint Conference on Artificial Intelligence.
@inproceedings{bao2022aspect,
title = {{Aspect-based Sentiment Analysis with Opinion Tree Generation}},
author = {Xiaoyi Bao, Zhongqing Wang, Xiaotong Jiang, Rong Xiao and Shoushan Li},
booktitle = {International Joint Conference on Artificial Intelligence},
year = {2022},
doi = {10.24963/ijcai.2022/561},
url = {https://doi.org/10.24963/ijcai.2022/561}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bao-2022-aspect-based-sentiment-analysis-opinion/