Introduction
Traditional Aspect-Based Sentiment Analysis (ABSA) models often rely on word-centric approaches, linking specific aspects (e.g., "battery life") to individual opinion words (e.g., "long"). However, this methodology faces significant challenges. First, it suffers from semantic loss, as multi-word expressions like "not bad at all" possess a holistic meaning that exceeds the sum of individual tokens. Second, sentiment conflicts arise when a single aspect is described by contrasting terms, such as "the food is delicious but expensive." In such cases, word-level models struggle to resolve the opposing signals.
To address these issues, researchers have proposed TF-BERT, a model that treats opinion expressions as continuous spans rather than isolated tokens. By analyzing entire phrases, the model captures the nuances of human sentiment more effectively.
Methodology: The TF-BERT Framework
The core innovation of this work is the Table Filling BERT (TF-BERT) architecture, which adapts table-filling techniques—commonly used in relationship extraction—to the task of sentiment analysis.
The pipeline consists of several key components:
- Encoder: A pre-trained BERT engine generates context-aware representations of the sentence and the target aspect.
- Table Generation (TG) Module: For each sentiment category (Positive, Negative, Neutral), the model constructs an $n \times n$ upper triangular table (where $n$ is the sentence length). Each cell $(i, j)$ represents the sentiment intensity for the span starting at index $i$ and ending at $j$.
- Sentiment Consistency Regularizer ($R_{SC}$): This constraint prevents the model from assigning high intensity scores to the same span across multiple sentiment tables, ensuring a decisive prediction.
- Decoding Strategies: The model offers two variants: Table-decoding, which identifies the top $K$ opinionated spans, and Table-aggregation, which summarizes intensities across the entire table for faster inference.
Experimental Setup
The model was evaluated on three standard ABSA benchmarks: Laptop (SemEval 2014), Restaurant (SemEval 2014), and Twitter. These datasets provide a rigorous basis for comparing TF-BERT against existing state-of-the-art models.
Results and Discussion
TF-BERT demonstrates superior performance across all tested datasets, setting new benchmarks for accuracy and Macro-F1 scores.
Key findings include:
- State-of-the-Art Performance: On the Laptop dataset, TF-BERT (agg) achieved 81.80% accuracy, surpassing previous leaders like DR-BERT.
- Robustness on Twitter: The model showed a significant jump in Macro-F1 (77.25) on the Twitter dataset, highlighting its ability to handle informal and complex language.
- Efficiency: Despite the $O(n^2)$ complexity of considering all spans, the "aggregation" variant proved computationally efficient, often outperforming graph-based baselines in training speed.
The success of the "Table-aggregation" method suggests that the global distribution of sentiment intensities across all possible spans provides a powerful signal for final classification.
Conclusion and Future Work
By shifting the focus from individual words to spans, TF-BERT effectively resolves sentiment conflicts and captures complex semantic meanings. However, challenges remain regarding computational overhead for extremely long sentences due to the quadratic growth of the table. Additionally, future research may explore aspect-agnostic table generation to process multiple aspects within a single pass, further improving efficiency.
Summary updated