Elamur Research

Exploring Graph Pre-training for Aspect-based Sentiment Analysis

Paper · 2023 · Xiaoyi Bao, Zhongqing Wang and Guodong Zhou

Summary

A review can express several judgments without giving the reader a separate sentence for each one. The job of aspect-based sentiment analysis is to recover those judgments and identify what each one is about. Bao and colleagues study a version of the task that requires a complete record for each judgment. The record contains the aspect mentioned in the review, the words expressing an opinion about it, a category for the aspect, and the polarity of the opinion. In the paper’s example about apps that are difficult to use, apps identifies the aspect, hard supplies the opinion, Software gives the category, and Negative gives the polarity. Extracting the right words is part of the job. Assigning each word or label to the right judgment is what makes the result usable.

The authors build on opinion tree generation, which groups the related parts of a judgment in branches of a tree and writes that tree as a sequence. Their contribution is to change how the generator prepares for that task. In element-level graph pretraining, it learns to recover review text or missing parts of an opinion tree from inputs that can contain both. The tree masking targets sentiment-bearing nodes and complete fragments built from them. In task-level graph pretraining, prompts ask for smaller outputs, such as the aspect terms alone, the opinions with their polarities, or the links between aspects and opinions. Training cycles through these exercises and includes the full extraction task before a separate fine-tuning stage.

On the ACOS test sets, the full approach reaches an exact-match quadruple F1 of 0.6390 for Restaurant and 0.4512 for Laptop. The corresponding scores for the prior opinion tree generator are 0.6164 and 0.4394. Removing either pretraining component lowers F1 in both domains. The case analysis also shows larger reported gains over the original generator for judgments with shared or implicit elements than for basic cases. Basic cases still receive the highest scores. Since that analysis compares the full system with the original generator, it reflects the combined training changes.

The experiments test a way to prepare a text generator for a particular structured output. The tree gives the authors a basis for choosing what to hide and what intermediate answers to teach. The additional exercises raise the cost of training, while final prediction still uses the same review-to-tree task. The authors identify transfer across domains and languages as open questions.

Deep dive: Exploring Graph Pre-training for Aspect-based Sentiment Analysis

Bao and colleagues train a system to read and complete opinion trees, improving extraction of aspects, opinions, categories, and sentiment from reviews. · about 32 minutes to read

The problem and its context

A review expresses judgments about particular things

A single sentiment label can tell a reader whether a review sounds favorable overall. Aspect-based sentiment analysis asks which part of the subject the reviewer is evaluating and how they evaluate it. A review can address different features, attach a different judgment to each one, and leave some information to inference. The task in this paper converts those judgments into structured records. It is a form of information extraction in which the connections between the extracted fields are part of the answer.

An aspect term is the wording that points to the thing under evaluation. An opinion term is the wording that conveys the evaluation. The aspect category groups the target under a label drawn from the task’s categories, and opinion polarity classifies the sentiment. The app example makes the distinction between words and labels concrete. A reader can find apps and hard in the sentence. The category Software and the polarity Negative are classifications derived from the sentence. Finding a span and assigning a category are distinct decisions, even when the target seems obvious.

A quadruple groups the fields that belong to the same judgment. Consider what can go wrong when the right pieces have all been found. A polarity can be attached to a different opinion, or a correctly identified opinion can be paired with the wrong target. A list of the words identified in the review could look entirely plausible while the assembled judgments are wrong. The paper’s evaluation treats the assembled quadruple as the unit of success, so this is a consequential error even when every extracted word occurs in the review.

The paper also distinguishes basic quadruples from cases it calls OneToMany, MonoImplicit and BiImplicit. The OneToMany label captures a case where a sentiment element participates in multiple associations. An implicit term lacks an overt span for the corresponding role. MonoImplicit covers cases where either the aspect or the opinion term is implicit, and BiImplicit covers cases where both are. These categories expose different shortcomings in a procedure that simply collects nearby words. With a shared element, the output has to represent more than one association. With an implicit element, the structure needs to accommodate the missing span while retaining the information that can be recovered.

The example with apps and hard is useful because its surface cues make the roles easy to separate. It also shows the limit of learning from straightforward cases alone. There is an overt target and an overt expression of difficulty, and their relationship is easy to see. A procedure that performs well when cues appear in that form may still struggle to assemble judgments when those cues are shared among records or when a term has to be left implicit. The authors want the training procedure to exercise these parts of the task before asking for the complete result.

How earlier systems assembled the answer

The paper describes a progression from predicting individual sentiment elements to extracting increasingly complete combinations. Early work tackled problems such as finding the aspect term, assigning an aspect category, or detecting polarity for a supplied target. The paper places work by Qiu and colleagues and by Tang and colleagues in this history. The question in a target-dependent polarity task is narrower than quadruple extraction because the target can already be given. A quadruple extractor has to produce the target or account for its absence, and return its associated opinion and classifications. Opinion Word Expansion and Target Extraction through Double Propagation, Effective LSTMs for Target-Dependent Sentiment Classification.

Other studies examined combinations of elements. Systems could extract aspect and opinion terms together, find an aspect and assign its polarity, or predict an aspect category with polarity. Work on triplets and quadruples extended the same progression to larger units. The position-aware tagging work cited by the authors concerns triplet extraction. The ACOS work formalizes quadruple extraction in a setting that includes implicit aspects and opinions. Each increase in the number of fields adds decisions about which items belong together. Position-Aware Tagging for Aspect Sentiment Triplet Extraction, Aspect-Category-Opinion-Sentiment Quadruple Extraction.

Classification approaches organized these decisions at the sequence or token level, sometimes in a pipeline and sometimes in a joint system. The authors identify error propagation as a concern for pipelines. If a stage supplies the wrong target, subsequent stages can make locally plausible decisions about that target and still produce an incorrect record. Joint classification can bring decisions together, but the paper describes the work of specifying how to combine and predict all the fields as a source of complexity.

More recent work, as the authors describe it, casts extraction as text generation. The input is a review and the output is a sequence that represents the desired records. Systems differ in how they write that sequence. One can list the sentiment elements, encode them with indices, or express the record as a paraphrase. A template can supply ordinary connecting words so that categories, polarity labels and review spans appear in a predictable arrangement. The eventual goal is still a structured prediction, even if the sequence resembles an ordinary sentence. Aspect Sentiment Quad Prediction as Paraphrase Generation.

Opinion tree generation, or OTG, is the immediate predecessor of Bao and colleagues’ method. It explicitly groups related sentiment fields in a tree and serializes that tree for generation. The aspect side can group a category with a term, and the opinion side can group a polarity with an expression. This makes the local relationships visible in the target representation. The new paper retains that representation and asks what training would help the generator learn it.

Why change pre-training?

The paper locates a mismatch between initial preparation on text and subsequent training on serialized opinion trees. A text pretraining exercise can teach a generator to complete a sequence. Generating an opinion tree also requires learning that certain parts of the sequence form a unit and that the semantic content of that unit should be recoverable from the review. The target has recurrent branch labels and delimiters, while the values that fill those branches vary with the judgment under discussion. These parts of the sequence play different roles in prediction.

That difference motivates a departure from indiscriminate graph masking. A general masking procedure can select nodes without regard to whether they contain sentiment information. An opinion tree is small enough that hiding a structural marker or a fragment of punctuation can create an exercise different from inferring an aspect, opinion, category or polarity. The authors cite earlier graph pretraining for abstract meaning representations and adapt the broad idea of graph reconstruction to the content and organization of the opinion tree. Graph Pre-training for AMR Parsing and Generation.

The authors identify a complementary problem in learning from complete targets. A full tree contains the answer to a collection of smaller questions, but training with that target does not ask each question independently. For example, a generator can practice identifying which expressions carry opinions before it has to attach those expressions to their targets and supply polarity. The paper accordingly proposes exercises that expose intermediate parts of the structure. Its design joins two choices about supervision. One chooses which information to remove from a representation. The other chooses which part of the final task to request from the review.

The method, step by step

Represent the judgments as an opinion tree

The basic input is a review sentence. The basic output is a rooted, directed, acyclic structure that contains its sentiment quadruples. In this setting, rooted means that there is a common starting node for the review’s judgments. Directed connections give the structure a parent and child organization, and acyclicity means that following those directed connections never returns to the starting node. A quadruple has an aspect branch and an opinion branch. The branch organization keeps the category next to the aspect term and the polarity next to the opinion term.

In the example about difficult-to-use apps, the aspect branch carries Software and apps. The opinion branch carries Negative and hard. The fact that both branches occur inside the same quadruple is the representation’s way of saying that the difficulty is an evaluation of the apps. With multiple quadruples, the root gives those records a common home, while each quadruple’s subtree preserves its own combination of fields. The sequence can therefore contain the same category or a repeated element under different judgment records without merging those records into a single list.

The authors write the tree as a sequence using a depth-first traversal. It follows a branch into its descendants before continuing to another branch. Branch markers and delimiters communicate the nesting in the resulting text. This is what allows an encoder and decoder to work with the tree without requiring the decoder to emit a separate graph data structure. The tree determines the organization of the training target and the units available for graph masking. The decoder’s immediate job is to emit the serialized tokens in order.

Reading the tree this way also makes clear where different kinds of mistakes can arise. The generated sequence has to express the hierarchy of the output, and the values placed in that hierarchy have to agree with the review. A category can be misplaced even if it belongs to the task’s inventory, and an opinion can occupy a correctly formatted branch while referring to a different aspect. The full target gives supervision for both the form and the contents of the intended answer. The auxiliary tasks change which forms or contents the generator is asked to recover on a given training example.

Preparing and training the opinion tree generator

The steps in order.

Preparing and training the opinion tree generatorStep 1: Annotate additional reviews with the original generator1. Annotate additional reviews with the original generatorStep 2: Serialize their opinion trees by depth-first traversal2. Serialize their opinion trees by depth-first traversalStep 3: Mask review text and selected tree elements3. Mask review text and selected tree elementsStep 4: Prompt for review or tree reconstruction4. Prompt for review or tree reconstructionStep 5: Prompt for partial sentiment trees5. Prompt for partial sentiment treesStep 6: Cycle through auxiliary and full extraction tasks6. Cycle through auxiliary and full extraction tasksStep 7: Fine-tune on complete opinion tree generation7. Fine-tune on complete opinion tree generation

Generate the serialized structure as a sequence

The authors use T5 as the encoder and decoder for the review-to-tree task. The encoder processes the input tokens, and the decoder produces the target tokens in sequence. In the ordinary extraction task the input supplies the review. During the auxiliary exercises, input can additionally supply a prompt and an intact or masked tree. These materials are serialized so the same generator can accept them. T5’s unified text-to-text approach.

A token is one position in the sequence processed by the encoder or produced by the decoder. A review span can occupy several such positions. A structural marker can also be part of the output sequence. The loss operates over target tokens, while the evaluation later operates on complete extracted quadruples. Keeping those units distinct helps explain why a targeted exercise can matter without requiring a new loss for each sentiment field.

The paper’s encoder equation gives the relationship between the input sequence and its hidden representation. Writing the encoder operation explicitly, the equation is:

H = Enc(x₁, …, x₍|x|₎)

Here x is the input token sequence, |x| is its length, and x₁ through x₍|x|₎ denote the first through the last input token. The ellipsis stands for the intervening tokens. Enc denotes T5’s encoder, and H is the resulting collection of hidden vectors that carries information about the input to the decoder. The equality defines the representation computed for this input.

The decoder uses that representation along with information from the prefix it has already processed. The paper writes this dependency schematically. With an explicit name for the decoder operation, it is:

yᵢ, hᵈᵢ = Dec([H; hᵈ₁, …, hᵈᵢ₋₁], yᵢ₋₁)

Dec denotes the decoder operation at output position i. Its results are the token yᵢ and the current decoder state hᵈᵢ. The superscript d marks a decoder state. H is the encoder representation, and the bracketed expression groups it with the decoder states from hᵈ₁ through hᵈᵢ₋₁. The semicolon inside the brackets separates the encoder representation from the decoder-state history. The ellipsis represents any intervening states, and yᵢ₋₁ is the previous output token. This equation describes the information available at the current step. It does not specify a search procedure for assembling a final output from token probabilities.

The conditional probability of the whole output factors into a product over its positions:

p(y | x) = ∏ᵢ₌₁^|y| p(yᵢ | y₍<ᵢ₎, x)

p denotes probability and the vertical bar means “given.” y is the full output, x is the input and |y| is the length of the output. The product sign ∏ means to multiply the factors for positions i from 1 through |y|. yᵢ is the token at position i, and y₍<ᵢ₎ is the output prefix ending immediately before that position. On the right, the decoder assigns a probability to yᵢ from a distribution over the target vocabulary, denoted V in the paper. The earlier part of a branch can therefore inform the probabilities for its later contents.

The principal training objective is the mean negative log-likelihood of the target tree:

L = −(1 / |τ|) ∑₍Xᴼ, Xᵀ₎∈τ log p(Xᵀ | Xᴼ; θ)

L is the loss to minimize. τ is the training set for the review-to-tree objective, and |τ| is the number of sentence and tree pairs it contains. Xᴼ denotes the original review sentence and Xᵀ the serialized target tree. ∑ adds the indicated quantity for every pair (Xᴼ, Xᵀ) belonging to τ, as marked by ∈. The leading 1 / |τ| averages the sum across pairs. log takes the logarithm of the conditional probability assigned to the target tree, and the minus sign makes a higher assigned probability correspond to a lower loss. θ stands for the learned parameters used to compute p. The semicolon separates those parameters from the sentence on which the probability is conditioned.

For a given pair, the paper expands the log probability into the sum of log probabilities for the target tokens:

log p(Xᵀ | Xᴼ; θ) = ∑ᵢ₌₁ⁿ log p(xᵀᵢ | xᵀ₁, xᵀ₂, …, xᵀᵢ₋₁, Xᴼ; θ)

Here n is the length of the target tree sequence, and i moves from its first through its last position. xᵀᵢ is the target token at position i. The list beginning with xᵀ₁ and extending through xᵀᵢ₋₁ is the preceding target prefix, with the ellipsis covering intervening positions. The prefix is empty at the first position. Xᴼ remains the input review, Xᵀ remains the complete target, and θ remains the set of learned parameters. The decoder calculates the conditional probabilities, and taking the logarithm turns the product across positions into a sum.

This objective explains how the different exercises can use one generator. An exercise changes what information appears in the input and which sequence counts as the target. Recovering a sentence and recovering a tree involve different answer tokens, yet both can be learned through conditional sequence prediction. The graph-specific part of the method lies in defining the examples and their targets.

Hide sentiment-bearing parts of the tree

Element-level graph pretraining, or EGP, starts from a paired review and opinion tree. The review and tree provide different views of a judgment. The review carries the wording and context. The tree selects the information needed by the extraction task, places it under branches and supplies category and polarity labels. Because some fields originate in review spans, evidence in either representation can help the generator fill gaps in the other.

The authors distinguish sentiment-bearing nodes from structural scaffolding when masking the tree. In the app example, Software and apps contribute the classification and term on the aspect side. Those values can be hidden together as a complete fragment. In contrast, masking an arbitrary sequence of symbols could hide only part of the syntax around an opinion branch. The resulting restoration task would then involve recovering a delimiter or a branch name, with little direct practice in finding the associated sentiment content. EGP selects the aspect term, opinion term, category and polarity as eligible content. When selected nodes form a continuous fragment, the method masks the associated subgraph as a unit.

The masking rule is about the tree input. The authors also mask review text, using a separate rate, and control the desired output through a prompt. A tree prompt requests a complete opinion tree. A sentence prompt requests the full review. Both outputs can be trained from the same underlying example, but giving both instructions allows the authors to vary which evidence is visible and which representation has to be reconstructed.

The first exercise, EGP1, provides the review and a tree with missing material. The target is the complete tree. The review supplies the source wording, and the surviving tree supplies part of the organization or some of the values. A generator can use the review to infer the sentiment information needed by the incomplete branch. Its target includes the whole serialized tree, so it also has to reproduce structure and values that were visible in the input.

EGP2 asks for the review from masked text with the tree shown as masked. It is a text reconstruction condition without usable opinion tree content in the example. This gives the group a sentence recovery exercise whose evidence comes from the surviving text. EGP3 also asks for the full review, this time providing the opinion tree alongside the partial sentence. For instance, the tree can supply the word expressing difficulty even when that word is missing from the sentence. The answer still includes all the surrounding wording. A tree summarizes judgments and cannot, on its own, preserve every detail of how the reviewer phrased them.

The remaining exercises mask material in both representations. EGP4 requests the complete tree, and EGP5 requests the complete sentence. This gives the same kind of partial input different destinations, with the prompt determining the answer. A surviving review phrase can help reconstruct a missing tree fragment. A remaining term or association in the tree can help restore masked review text. The paper treats these exercises as a way to learn the complementary value of each representation.

The schedule makes tree recovery harder as training progresses. During the 0% ∼ 25% range of pretraining epochs, the tree mask rate is 0.25. It moves to 0.3 in 25% ∼ 50%, to 0.35 in 50% ∼ 75%, and to 0.4 in 75% ∼ 100%. The text mask rate is 0.15 in every range. These quantities describe how inputs are corrupted in training. They are distinct from the proportion of any particular kind of case in the data.

The authors describe full review-to-tree extraction as the conceptual endpoint of increasing the mask, because the generator gets no tree to complete in that task. In this sense, final extraction corresponds to 100% tree masking. The EGP schedule itself ends at 0.4, and its sentence reconstruction exercises still have a visible text context. The authors explain their comparatively modest masking rates by pointing to the limited information in an opinion tree. Even a correct tree commonly omits words that a complete review reconstruction must supply. Raising tree masking as training proceeds and keeping the text rate fixed are ways to regulate different sources of difficulty.

Practice pieces of the extraction task

Task-level graph pretraining, or TGP, starts from a different question. Given the review, what part of the full tree should the generator learn to produce? A prompt selects a subtask, and the target is a tree containing the requested information. The subtasks reflect the authors’ account of how someone could construct an opinion tree by identifying basic elements, classifying them, and assembling relationships. At input time the generator receives a prompt and the sentence. The progression refers to the content of the exercises and how they build toward complete extraction.

The Aspect exercise finds the aspect terms and returns them in tree form. The Opinion exercise does the same for the opinion terms. These tasks isolate the two kinds of spans that the complete output has to connect. They can teach what belongs in each role without also requiring a complete judgment record on every output branch. For the running example, those roles are occupied by apps and hard, respectively.

Category builds on the aspect side. The requested answer includes category information corresponding to the aspect terms. Polarity builds on the opinion side, with the requested classification corresponding to the opinion expressions. In the app example these outputs teach the associations between apps and Software, and between hard and Negative. The phrase “builds on” describes the relation between the target structures. The paper gives the generator the review and a subtask prompt, so these exercises can be defined and trained without supplying a separately predicted answer from the preceding exercise.

Pair is the first subtask to join the aspect and opinion sides. It asks for the matching aspect term and opinion expression from a quadruple. A Pair answer has to identify their relationship, which is additional information beyond what appears in separate Aspect and Opinion answers. In a review with multiple judgments, finding all the terms on each side would leave the pairing problem unresolved. The target of this exercise provides supervision for that connection.

Triple retains the aspect and opinion association and includes polarity. The generator now has to connect an opinion to its target while preserving how that opinion is classified. Triple is intermediate because the full record also requires the aspect category. The method gives this intermediate structure its own prompt and target. Whether the correct opinion is connected to the right aspect and whether it carries the right polarity can thus be exercised together before requiring every branch of the complete answer.

These tasks are intended to give the generator practice with judgments whose components are shared or implicit. The rationale is easiest to see in the difference between recognizing an element and predicting how it participates in a record. A shared term may be recognized once, while the Pair or Triple output has to preserve its associations. An implicit term changes the evidence available to the generator, while other parts of the judgment may still be expressible. The decomposition provides several supervised views of the same review annotation. It leaves complete judgment prediction as the final task.

Combine the exercises, then train on the complete task

The authors obtain extra pretraining examples from review collections in the relevant domains. They select 20,000 sentences from each of two sources, Yelp and Amazon’s laptop domain. The original OTG system supplies annotations for these sentences without using the proposed pretraining. Those annotations act as targets for the extra training and provide the trees from which masked inputs and partial answers can be derived. The extra supervision thus starts from predictions on additional text.

The joint procedure cycles through the element-level exercises and then the task-level exercises. It also includes Finetune, the prompt for the complete extraction task, during pretraining. The paper describes accumulating loss within each epoch and updating gradients after that accumulation. Once the joint phase is finished, the authors save the resulting weights and continue training on complete opinion tree generation. The use of Finetune as a task name and the use of fine-tuning as a training phase refer to different things. The former is an exercise that can appear in the pretraining mix. The latter is the subsequent stage devoted to that exercise.

The distinction matters to the paper’s argument about bridging the training stages. Masked-tree recovery gives the generator partial structural evidence. Partial extraction asks for a subset of the structure with the review as evidence. Complete extraction in the pretraining cycle gives it practice generating the whole target from the review before that task becomes the sole focus. The final system follows the direct review-to-tree route. It does not need auxiliary predictions at inference to assemble the answer.

The authors report using T5 base and releasing implementation code in the EGP4ABSA-EMNLP2023 repository. The essential change they evaluate is in the training tasks and the way the opinion tree determines them. A generated review serves as a training target in the reconstruction exercises. For final extraction the target is the tree, whose quadruples provide the predictions scored in the experiments.

Experiments and results

Data, training settings and scoring

The benchmark is ACOS, which includes Restaurant and Laptop reviews. The authors follow its division into training, validation and test data. The training data are used for fitting, while the validation split supports choices about hyper-parameters and stopping. The main comparison reports held-out extraction performance in each domain. The Yelp and Amazon sentences provide additional pretraining material and are separate from the benchmark test scores.

The authors use a grid search on the validation split and select checkpoints by early stopping with validation Accuracy, the selection measure named in the paper. For optimization they use Adam. The reported learning rate is 3e-5 for pretraining and 1e-4 for fine-tuning, and the batch size is 16. The experiments run on an Nvidia RTX 3090 GPU. The authors say they average experimental results across ten runs with random initialization. Adam.

For the test metric, the complete quadruple has to match a reference quadruple. That includes the aspect term, opinion term, category and polarity, with all the fields associated correctly. Precision concerns how many predicted quadruples meet this criterion. Recall concerns how many reference quadruples are recovered. F1 is the paper’s headline metric and combines precision and recall. This is a stricter assessment than asking whether each aspect or opinion term appears somewhere in the output. An otherwise correct quadruple with an incorrect label or association fails the exact-match test.

The two domains have separate precision, recall and F1 columns. The paper also reports a case analysis that averages performance across the domains for the basic and irregular situations. These are different views of the results. The domain scores measure complete extraction on each test set. The case analysis asks whether results differ according to the shape or explicitness of the judgment, within the settings covered by those domains.

What the baselines compare

The classification group consists of DP, JET, TAS-BERT and Extract-Classify. These baselines represent earlier ways of organizing the prediction through extraction, tagging or classification. On Restaurant, JET records an F1 of 0.3901 and Extract-Classify records 0.4461. On Laptop, their F1 scores are 0.2381 and 0.3580, respectively. These comparisons provide context for how the earlier approaches fare on the same complete-record metric.

The authors also compare with BARTABSA, GAS, Paraphrase and TODA. This part of the comparison includes generative approaches that use different ways of writing the sentiment information into a target sequence. Seq2Path and OTG give comparisons with methods that organize records structurally. OTG is especially relevant because the proposed system starts with its opinion tree representation. The main results can show what happens when the training is changed while keeping that general approach to the output.

The table also includes ChatGPT and LLaMA. The authors ask ChatGPT to return the sentiment elements in the reviews through a prompt. For LLaMA they use LLaMA-7B and fine-tune it on the aspect-based sentiment data. Their Restaurant F1 scores are 0.4207 for ChatGPT and 0.6029 for LLaMA. On Laptop the corresponding scores are 0.3541 and 0.4426. These rows reflect the particular task and adaptation procedures used in the paper, with instruction-based extraction for one baseline and task-specific training for the other. Instruction following with human feedback, LLaMA.

The paper adopts earlier results for the preceding baseline comparisons. The table gives a broad picture of the approaches the authors chose to compare, and the training variants later in the paper address narrower questions about the contributions of EGP and TGP. Comparisons with distinct methods are informative about benchmark performance. The ablations are more direct evidence about what changes when the proposed exercises are added to opinion tree generation.

Restaurant and Laptop results

The complete system reaches an F1 of 0.6390 on the ACOS Restaurant test set. Its reported precision is 0.6486 and its recall is 0.6297. The original OTG baseline reaches an F1 of 0.6164, with precision of 0.6138 and recall of 0.6190. The improvement appears in both reported components for this comparison, with a larger visible change in precision. The test counts full judgments, so higher precision means that a greater share of the returned records satisfy exact match.

The strongest Restaurant baseline in the table is OTG by F1. LLaMA reaches 0.6029, and Seq2Path reaches 0.5995. The generative baselines in the chart give a sense of how the full system compares against alternative sequence targets and against the prior version of opinion tree generation. Its highest score in this group is consistent with the authors’ proposal that the way the generator is prepared matters even when it already has a structured output.

Exact-match quadruple F1 on the ACOS Restaurant test set

Joint graph pre-training leads the comparison and improves on the original opinion tree generator.

Exact-match quadruple F1 on the ACOS Restaurant test setExtract-Classify: 0.4461Extract-Classify0.4461Paraphrase: 0.5904Paraphrase0.5904Seq2Path: 0.5995Seq2Path0.5995LLaMA: 0.6029LLaMA0.6029OTG: 0.6164OTG0.6164Joint graph pre-training (this paper): 0.6390Joint graph pre-training (this paper)0.6390
The numbers
System or settingF1
Extract-Classify0.4461
Paraphrase0.5904
Seq2Path0.5995
LLaMA0.6029
OTG0.6164
Joint graph pre-training (this paper)0.6390

The full system reaches an F1 of 0.4512 on the ACOS Laptop test set. The table reports precision of 0.4523 and recall of 0.4523 for that system. For OTG, it gives precision of 0.4408, recall of 0.4381 and F1 of 0.4394. These are the paper’s reported entries. In particular, the reported F1 is the comparison value for the full system even though its separately reported precision and recall have the same displayed value.

The ordering of the strongest baselines changes on Laptop. LLaMA has the highest baseline F1 in the table at 0.4426, followed by Seq2Path at 0.4411 and OTG at 0.4394. The proposed method leads all of them on F1. Some classification baselines have higher precision than the full system in this domain. JET has precision of 0.4452, while TAS-BERT reaches 0.4715 and Extract-Classify reaches 0.4556. The latter two examples illustrate why the paper uses F1 for its overall comparison. TAS-BERT’s recall is 0.1922, and Extract-Classify’s is 0.2948. Their precision does not translate into the same balance between accurate predictions and recovered reference judgments.

Exact-match quadruple F1 on the ACOS Laptop test set

Joint graph pre-training leads on Laptop, where the strongest baselines cluster closely together.

Exact-match quadruple F1 on the ACOS Laptop test setExtract-Classify: 0.3580Extract-Classify0.3580Paraphrase: 0.4334Paraphrase0.4334OTG: 0.4394OTG0.4394Seq2Path: 0.4411Seq2Path0.4411LLaMA: 0.4426LLaMA0.4426Joint graph pre-training (this paper): 0.4512Joint graph pre-training (this paper)0.4512
The numbers
System or settingF1
Extract-Classify0.3580
Paraphrase0.4334
OTG0.4394
Seq2Path0.4411
LLaMA0.4426
Joint graph pre-training (this paper)0.4512

The authors describe their Restaurant and Laptop advantages as 2.36% and 0.92%, respectively, and report statistical significance at p < 0.05. Those percentages are the advantages stated in their discussion. The direct comparisons in the charts use the listed test F1 values. In both domains the system’s gains are measured on the joint extraction task, where an improvement has to manifest as more correctly assembled records relative to the balance of predictions and references.

The paper interprets the main results as evidence for both structured generation and pretraining fitted to that structure. The comparison between the full system and OTG is particularly useful for the second claim. Both use opinion trees, while the proposed approach includes the auxiliary curriculum. Relative to baselines with other target formats or training procedures, several design choices vary together. To see what the experiments say about the contribution of individual choices, the relevant evidence is in the controlled variants.

What the ablations show

Both groups of exercises contribute

The authors remove each pretraining paradigm from the full system and report the resulting F1 on the same two domains. On Restaurant, removing EGP yields 0.6339 and removing TGP yields 0.6334, compared with 0.6390 for the full method. On Laptop, removing EGP yields 0.4490 and removing TGP yields 0.4463, compared with 0.4512 for the full method. Removing both gives 0.6164 on Restaurant and 0.4393 on Laptop. The Laptop value in this experiment is printed as 0.4393. The separately reported OTG baseline in the main comparison is 0.4394.

Effect of the pre-training paradigms on ACOS Restaurant test F1

Each group of exercises contributes in the joint system, and omitting both produces the lowest score.

Effect of the pre-training paradigms on ACOS Restaurant test F1Without element-level or task-level pre-training: 0.6164Without element-level or task-levelpre-training0.6164Without task-level pre-training: 0.6334Without task-level pre-training0.6334Without element-level pre-training: 0.6339Without element-level pre-training0.6339Joint graph pre-training (this paper): 0.6390Joint graph pre-training (this paper)0.6390
The numbers
System or settingF1
Without element-level or task-level pre-training0.6164
Without task-level pre-training0.6334
Without element-level pre-training0.6339
Joint graph pre-training (this paper)0.6390

In both domains, the configuration retaining TGP scores above the configuration retaining EGP. The authors summarize the average drops on removal as 0.52% for TGP and 0.21% for EGP. Their interpretation is that the practice supplied by task decomposition is especially valuable, possibly because it addresses the problems associated with irregular quadruples. The measurable result is the F1 ordering under these removals. The scores describe each component’s contribution in this training setup and do not assign every prevented error to a specific skill.

A comparison between the individual removals is informative because the final extraction task stays the same. The generator still has to produce a complete tree under each condition. What changes is which set of preparatory examples has been available. Each group helps when the other is present. The variants do not establish how much either group would contribute with another architecture, another set of reviews or a different balance of updates across tasks.

It matters which tree material is masked

The element-level analysis compares EGP with indiscriminate masking under similar conditions. The indiscriminate variant can choose random tree nodes and text words instead of concentrating its tree corruption on sentiment-bearing elements. On the Restaurant test set, OTG with indiscriminate masking reaches 0.6287 F1. On Laptop it reaches 0.4423. The configuration labeled as including all EGP exercises reaches 0.6334 and 0.4463, respectively. The comparison is between ways of preparing the same type of structured output.

Random corruption is itself helpful in this experiment relative to the original OTG row, which gives 0.6164 Restaurant F1 and 0.4394 Laptop F1. The targeted exercises achieve higher scores. That pattern is consistent with the design rationale that masking the values and meaningful fragments of a compact tree directs practice towards recovery of the information used by extraction. The metric, however, is still quadruple F1. The comparison does not report separate rates of broken delimiters, wrong categories or incorrectly associated opinions.

The paper also builds up the element-level tasks in stages. Adding the full extraction exercise during pretraining gives Restaurant F1 of 0.6211 and Laptop F1 of 0.4411. The configuration that includes EGP1 with the full extraction exercise reaches 0.6243 on Restaurant and 0.4413 on Laptop. A subsequent configuration includes EGP2 and EGP3 as well, with scores of 0.6276 and 0.4421. The row with all EGP exercises reaches 0.6334 and 0.4463. The full method, which adds the task-level contribution, reaches 0.6390 and 0.4512.

The last element-level addition brings in EGP4 and EGP5 as a pair. Both review text and tree can be incomplete in these exercises, with one exercise requesting each kind of output. The authors attribute gains of 0.58% in Restaurant and 0.42% in Laptop to this addition. This supports their interpretation that the review and the tree can supply complementary evidence. Since the exercises are added together, their comparison measures the pair in the context of the other EGP tasks. It leaves open how much tree recovery and sentence recovery each contribute on their own.

The mask schedule is part of the tested system. The reported comparisons emphasize the type of corruption and the accumulated set of exercises. They provide the rates the authors use, but no separate result for a constant tree mask rate alongside the dynamic schedule. The evidence for targeting sentiment-bearing tree material is a direct comparison. The case for increasing the rate over time is a design explanation whose separate effect remains unmeasured in those reported results.

Irregular cases gain more and remain harder

The authors average performance across Restaurant and Laptop for four types of judgment. In the basic situation, OTG scores 0.6517 and the full method scores 0.6610. The reported improvement for that case is 0.93%. This is the highest-scoring category for both systems and supplies a reference point for interpreting the cases with shared or implicit elements.

In OneToMany, OTG scores 0.4503 and the full system reaches 0.4720, with a reported gain of 2.17%. The task here requires recognizing multiple associations involving a shared element. The system’s output has to account for those associations in the corresponding records. The result shows improvement on that category and leaves a substantial gap between its performance and performance on basic cases.

For MonoImplicit, the scores are 0.4035 for OTG and 0.4261 for the full system, with a reported gain of 2.26%. BiImplicit goes from 0.4184 to 0.4341, with a reported gain of 1.57%. MonoImplicit is the lowest-scoring category for both systems and has the largest reported increase. BiImplicit also improves, and the ordering shows why the categories should be read as different situations in the benchmark. Their average scores do not form a simple scale on which a larger number of implicit terms always corresponds to a lower score.

All the reported gains for irregular categories exceed the gain for the basic category. This agrees with the authors’ expectation that preparatory exercises can help in cases where the complete tree is harder to assemble directly. The analysis compares OTG with the complete graph pretraining system. It therefore measures the combined changes in training, including EGP, TGP and practice on full extraction during pretraining. A TGP-only comparison by irregular type would be needed to determine how much of each case-specific gain comes from the decomposition itself.

Partial tasks help even before the full curriculum is in place

The task-level ablation starts from OTG, which has an F1 of 0.6164 on Restaurant and 0.4394 on Laptop in this comparison. Adding Aspect gives 0.6251 and 0.4439. Including Opinion in that configuration gives 0.6275 and 0.4447. Already at this stage, the added exercises supply partial outputs that are directly relevant to locating the terms of a quadruple.

A configuration that also includes Pair and Triple reaches 0.6294 Restaurant F1 and 0.4473 Laptop F1. These tasks add supervision for associations after Aspect and Opinion have supplied practice with the separate term types. The next configuration incorporates Category and Polarity and has the same displayed values, 0.6294 and 0.4473. Thus the cumulative results show gains for several additions, with no further gain visible at the reported precision for that particular step.

The authors take Aspect to make a particularly strong contribution among the decomposition exercises. They suggest that the frequency of implicit terms may partly explain the pattern. The paper gives average implicit rates of 22.63% for aspect terms and 24.19% for opinion terms. This is offered as a possible explanation. The ablation begins with Aspect and adds subsequent exercises in groups, so the increments depend on which tasks were already present. It does not estimate an independent effect for each prompt under otherwise identical conditions.

With all the task-level subtasks and the complete extraction exercise in pretraining, the results reach 0.6339 for Restaurant and 0.4490 for Laptop. Across the experiments, the authors report an average improvement of 0.31% from including the full task during pretraining. This finding bears on the distinction between practicing parts and practicing the final combination. Partial tasks provide extra ways to exercise selected fields and links. The full task gives direct exposure to the output required after pretraining, and the reported inclusion comparison supports keeping it in the cycle.

Limitations

Limits the authors identify

The authors identify computation during pretraining as a cost of the method. A review can yield several training inputs, and the cycle through reconstruction and partial extraction tasks adds work before fine-tuning. They say inference cost stays the same. This follows the design of the method, in which complete extraction uses the resulting generator directly and the auxiliary prompts are used for training. The paper reports the hardware and some training settings, but its account of the cost is qualitative. It gives no measured training-time increase for readers to compare with the improvements in F1.

The authors also identify cross-domain and cross-language sentiment analysis as open problems. The experiments contain two review domains, and each is evaluated within the reported benchmark setup. This provides evidence that the method can be applied in both settings. A cross-domain transfer experiment would ask whether training in one setting helps with a domain for which that labeled training is unavailable. The Restaurant and Laptop results alone do not answer that question.

The authors study how to generate opinion trees in a single major language, leaving open the question of how well the approach performs in other languages. The scheme distinguishes between copied text spans and assigned category or polarity labels, but applying it elsewhere would require evidence about how those roles can be annotated and recognized there. The reported improvements establish performance for the benchmark setting used in the experiment.

Limits of the experimental design

The additional review sentences are labeled by the earlier OTG system. This scales up the number of training examples and gives the auxiliary tasks ready-made tree targets. It also means the extra targets can inherit the earlier system’s choices and errors. A masked fragment derived from an incorrect tree remains incorrect as a supervision target, even if it is well formed. The experiments do not report an accuracy audit of the Yelp or Amazon annotations or break down annotation quality by case type. The results show what happens with the automatically annotated material as used in this procedure.

The strongest direct generalization evidence concerns case types within Restaurant and Laptop. OneToMany, MonoImplicit and BiImplicit are pre-defined categories of judgments scored on the benchmark. Higher scores in those categories show that the trained system handles more of the cases captured by those labels under the evaluated conditions. The paper’s discussion of robustness is grounded in this comparison. It leaves open responses to other kinds of input variation and to changes in the review domain, sentiment categories or language.

Exact-match F1 measures a result that readers can interpret operationally. A system predicts a judgment, and the whole judgment agrees with the annotation or fails the match. That same property limits what the metric reveals about mechanisms. An incorrect polarity, a missed opinion span and a wrong association can all produce an incorrect quadruple. Improvements are compatible with learning better relationships, as the authors propose, and with improvements in identifying individual spans or labels. The paper does not separately report all of these error types, so its headline F1 figures cannot tell how much each kind of error changed.

Several ingredients of the training procedure are evaluated in combinations. The masking comparison addresses the choice between targeted and indiscriminate corruption. The paradigm removal addresses the contribution of each broad group of tasks. The cumulative exercises ask how results change when another set of prompts is included. These designs give different levels of evidence. They leave the separate effects of the masking schedule, the cyclic order and some paired exercises unresolved. In particular, the human-learning analogy motivates the decomposition. The reported results concern the benefit of the training configuration, with no direct comparison that reverses or otherwise varies the easy-to-hard order.

The authors report an average across repeated runs and give a significance threshold for the main advantage. The results discussion does not name the statistical test or display the spread across runs. Several adjacent ablation scores are close, and one cumulative TGP step has identical displayed values. These details support reading the broader pattern across variants while treating fine distinctions between individual subtasks with care. The conclusion supported across both domains is that training with the full set of proposed exercises improves the reported exact-match F1 over the tested opinion tree baseline.

What came after

The later citing work is Single-Pass, Depth-Selective Reading for Multi-Aspect Sentiment Analysis, published in 2026. Its title identifies a continued interest in recovering sentiment for multiple aspects and describes a single-pass approach that selects the depth at which it reads. Bao and colleagues address the assembly of complete aspect judgments through opinion trees and auxiliary supervision. The later work’s title places its emphasis on how the input is processed. The documented connection is the citation and the shared multi-aspect setting. The specific role of opinion trees, element masking or task decomposition in the later method is unspecified.

Cite

Cite as Xiaoyi Bao, Zhongqing Wang and Guodong Zhou. 2023. Exploring Graph Pre-training for Aspect-based Sentiment Analysis. Findings of the Association for Computational Linguistics: EMNLP 2023.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2023.findings-emnlp.234

@inproceedings{bao2023exploring,
  title = {{Exploring Graph Pre-training for Aspect-based Sentiment Analysis}},
  author = {Xiaoyi Bao, Zhongqing Wang and Guodong Zhou},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2023},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.234},
  url = {https://doi.org/10.18653/v1/2023.findings-emnlp.234}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bao-2023-exploring-graph-pre-training-aspect/