Introduction
Document-level Targeted Sentiment Analysis (TSA) aims to extract opinion targets and their corresponding sentiments from full reviews. Unlike sentence-level Aspect-Based Sentiment Analysis (ABSA), document-level TSA must handle hierarchical relationships between entities (e.g., a specific dish within a restaurant) and long-distance dependencies across multiple sentences.
Traditional approaches often rely on Sequence-to-Sequence (Seq2Seq) models, which treat the task as a text generation problem. However, these models struggle with rigid hierarchical structures and often fail to link distant entities correctly. To address these limitations, researchers have proposed Seq2Struct, a framework that treats document-level TSA as a structural discovery problem.
The Seq2Struct Framework
The Seq2Struct model decomposes the TSA task into four specialized modules designed to capture both local sentiment and global structural context.
- Flat Entity Extraction & Sentiment Classification: Using DeBERTa as a backbone, the model identifies individual entities (e.g., "staff," "price") and assigns initial sentiment labels.
- Multi-grain Graphical Model: To capture document-wide context, a graph is constructed with nodes representing the document, sentences, and entities. A Graph Convolutional Network (GCN) processes this graph, allowing the model to learn relationships between entities regardless of their distance in the text.
- Hierarchical Structure Identification: This module employs a table-filling method to predict affiliation probabilities between entities, effectively building a 2D matrix that represents the hierarchical tree.
- Target-Sentiment Pair Parsing: The final module assembles the tree. It includes a logic-based update rule: if sub-aspects (children) have conflicting sentiments, the parent entity's sentiment is updated to "Mixed" to accurately reflect the nuanced review content.
Experimental Results
The model was evaluated on a document-level TSA dataset across six domains, including product reviews (Books, Clothing, Restaurant, Hotel) and financial/social media (News, PhraseBank).
Seq2Struct achieved a state-of-the-art average F1 score of 46.49, a significant improvement over the previous Seq2Seq baseline of 34.27. Key findings include:
- Robustness to Length: Seq2Struct maintains higher performance as document length increases, whereas Seq2Seq models show rapid decay.
- Hierarchy Handling: On complex targets with three levels of hierarchy, Seq2Struct outperformed BART-based baselines by nearly 4% F1.
- GCN Impact: The multi-grain GCN was particularly effective for "Across-Sentence" targets, providing a 6% F1 boost over versions without the graph component.
Conclusion and Future Work
By shifting from a sequence-generation paradigm to a structural discovery approach, Seq2Struct effectively addresses the core challenges of document-level TSA. While the model sets a new benchmark, future research will focus on improving coreference resolution (e.g., handling pronouns like "it") and scaling the architecture to even longer, multi-page documents.
Summary updated