Abstract
Aspect-Based Sentiment Analysis (ABSA) requires extracting structured quadruples (Aspect, Opinion, Category, Polarity) from text. Traditional generative models often fail to capture the underlying structural dependencies between these elements. This paper introduces EGP4ABSA, a framework utilizing two novel pre-training paradigms: Element-level and Task-level Graph Pre-training. By treating sentiment data as a structured "Opinion Tree," the model achieves state-of-the-art performance on key benchmarks, outperforming large-scale models like ChatGPT and LLaMA-7B.
Introduction
The core challenge in Aspect-Based Sentiment Analysis (ABSA) lies in its complexity. Unlike binary sentiment classification, ABSA aims to identify a quadruple: (Aspect Term, Opinion Term, Aspect Category, and Sentiment Polarity). For instance, in the review "The apps are hard to use," a model must correctly map "apps" (Aspect) to "hard" (Opinion), "Software" (Category), and "Negative" (Polarity).
Current state-of-the-art methods typically employ generative models (e.g., T5) to produce these quadruples as flat text sequences. However, this approach often ignores the inherent structural dependencies—such as the direct link between a specific opinion word and its associated polarity. Furthermore, a significant "objective gap" exists between general language model pre-training (predicting missing words) and the specialized task of generating structured sentiment trees.
Methodology: The EGP4ABSA Framework
The proposed EGP4ABSA framework centers on the Opinion Tree, a hierarchical graph representation of the sentiment quadruple. To bridge the gap between general pre-training and structured extraction, the authors introduce two main strategies.
1. Element-level Graph Pre-training (EGP)
Rather than masking random tokens, EGP masks specific nodes or sub-trees within the Opinion Tree (e.g., an entire "Aspect" branch). This forces the model to reconstruct sentiment elements based on structural context. A dynamic masking rate is employed, gradually increasing the difficulty to help the model transition from general language understanding to complex structural generation.
2. Task-level Graph Pre-training (TGP)
TGP decomposes the quadruple extraction task into a curriculum of six simpler sub-tasks. The model learns incrementally: starting with individual elements (Aspects, Opinions), then mapping them into pairs, and finally constructing full triples and quadruples. This mimics human learning patterns and improves robustness against irregular sentiment cases.
3. Joint Training Loop
To prevent overfitting and handle "irregular" cases (e.g., implicit aspects or one-to-many relationships), the model undergoes a cyclic training loop. This loop combines the pre-training sub-tasks with a "Finetune" task, ensuring the model remains adaptable to diverse sentiment structures.
Experimental Results
The EGP4ABSA model was evaluated on the ACOS dataset, which includes challenging "irregular" sentiment cases in the Restaurant and Laptop domains.
- State-of-the-Art Performance: The model achieved an F1 score of 0.6390 in the Restaurant domain and 0.4512 in the Laptop domain, significantly surpassing previous benchmarks like OTG.
- Comparison with LLMs: Notably, EGP4ABSA outperformed large-scale models like ChatGPT (F1 0.4207) and LLaMA-7B (F1 0.6029) on the Restaurant task. This suggests that targeted graph-based pre-training is more effective for niche structural tasks than raw model scale.
- Handling Irregularities: The most significant gains were observed in "One-to-Many" and "Implicit" sentiment scenarios, where traditional sequence-based models typically struggle.
Conclusion and Future Work
EGP4ABSA demonstrates that treating sentiment as a graph rather than a sequence allows models to develop superior structural awareness. While the framework is computationally intensive due to its multi-task pre-training phase, its success on complex ABSA tasks is clear. Future research will focus on extending this graph-based approach to cross-domain and cross-lingual sentiment analysis, exploring how these structures generalize across different languages and domains of human expression.
Summary updated