TL;DR
ABSA-R1 introduces a "reason-before-predict" framework for Aspect-Based Sentiment Analysis (ABSA), leveraging reinforcement learning to make large language models articulate human-like rationales before outputting sentiment labels. By combining a customized sentiment-aware reward model with a performance-driven rejection sampling strategy that forces the model to learn strictly from its mistakes, it achieves state-of-the-art performance while providing transparent, interpretable reasoning paths.
What Problem Does This Paper Address?
Aspect-Based Sentiment Analysis (ABSA) is a fine-grained NLP task that goes beyond general sentiment classification to identify polarities toward specific aspects of a text (e.g., recognizing that in "The battery life is great, but the screen is dim," "battery life" is positive while "screen" is negative). Advanced variants like Aspect-Opinion-Sentiment Triplet Extraction (AOSTE) require models to extract the aspect, the opinion expression, and the sentiment polarity together.
While modern LLMs achieve high accuracy on these tasks, they typically operate as opaque "black boxes," outputting labels directly without explaining their underlying logic. This lack of transparency fails to align with human affective cognition, where we naturally construct internal justifications before reaching a sentiment judgment.
Methods
The authors propose ABSA-R1, a framework that forces an LLM to generate a natural language reasoning path ($p$) inside <think> tags before outputting its final prediction ($\hat{y}$) inside <answer> tags.
The model (built on Qwen2.5-7B-Instruct) is trained using an improved variant of Generalized Reward Policy Optimization (GRPO) alongside two novel core components:
- Sentiment-Aware Reward Model (SAR): A rule-based, customizable reward function that balances two elements:
- Format Reward ($R_f$): Evaluates tag compliance (correct use of
<think>and<answer>), logical flow (use of transitional phrases like "firstly" or "therefore"), and structural integrity. - Answer Reward ($R_a$): Measures the correctness of the final prediction (exact match for classification; soft F1-score for triplet extraction) with a soft penalty to discourage hallucination or omission.
- Performance-Driven Rejection Sampling (PRS): Acting as a metacognitive filter, this strategy evaluates candidate outputs during training and discards trajectories that are fully correct. By retaining only incorrect or incomplete generations, the training batch forces the policy update to be driven exclusively by the model's mistakes, accelerating convergence on complex linguistic structures like negation or implicit sentiment.
Datasets
The framework was evaluated on standard ABSA benchmarks from the SemEval workshops:
- Lap14 (Laptop reviews)
- Rest14, Rest15, Rest16 (Restaurant reviews)
To facilitate reasoning-aware training, the authors sampled 10% of the original training sets to construct a "cold-start" dataset, using DeepSeek-R1 to automatically generate the initial reasoning chains.
Key Insights and Ideas
- Reasoning Boosts Performance: Forcing the model to articulate why it chooses a sentiment before outputting the label significantly improves classification accuracy compared to direct answer generation (SFT).
- The Danger of Over-Formatting: The authors discovered a strict trade-off when tuning the format reward weight ($\lambda$). If the reward signal is dominated too heavily by formatting constraints ($\lambda > 0.2$), the model prioritizes "looking correct" (generating perfect tags and transitions) over "being correct" (semantic accuracy).
- Failing Productively: Standard reinforcement learning often reinforces paths the model already excels at. By filtering out correct answers via PRS, the model is forced to grapple with hard, error-prone instances, drastically improving learning efficiency.
Key Results
- Triplet Extraction (AOSTE): ABSA-R1 established a new state-of-the-art, achieving an average F1 score of 80.04. This outperformed the strongest structured baseline (TAGS) by 9.02 points and the best general LLM baseline (Qwen2.5-7B) by 4.26 points.
- Sentiment Classification (ABSC): The model achieved an average accuracy of 89.95% and an F1 score of 80.88%, outperforming specialized graph-based architectures (like CKG-BERT) without relying on external knowledge bases.
- Ablation Impact: Removing the Performance-Driven Rejection Sampling (w/o PRS) caused a catastrophic drop in performance, with F1 scores on the Lap14 triplet extraction task plummeting from 69.37 to 57.17.
- Human Validation: Qualitative human evaluation of 50 randomly sampled reasoning traces showed that 94.0% of the generated chains were logically sound and factually consistent with the source text.
Limitations and Future Work
Not discussed in the paper.
Summary updated