SAGA: Sentiment-Aware Graded Attention for Sentiment Classification Using DistilBERT
Sentiment analysis is a long-standing challenge in natural language processing, concerned with the automated identification of affective polarity within text. Transformer encoders such as DistilBERT achieve strong accuracy, but they apply the same attention configuration at every layer and the same depth to every input. We present SAGA (Sentiment-Aware Graded Attention), which augments DistilBERT with lightweight attention-only strata whose number of heads grows from 2 to 12, and with a per-instance Attention Controller that stops computation for each input once successive strata cease to change its representation. In a multi-seed evaluation comprising 454 training runs on seven sentiment datasets, SAGA is competitive with its backbone at full depth, and its strata significantly strengthen shallow backbones, improving a one-block DistilBERT by 1.65 points on IMDB and 1.96 points on Yelp (p < 0.005). The resulting Compact SAGA models retain 97.5-99.4% of full DistilBERT accuracy with up to 39% fewer parameters and 59% fewer floating-point operations. The per-instance controller yields input-dependent depth and skips 75% of the SAGA strata on Yelp without loss of accuracy, and SAGA with deep supervision is the most accurate configuration among DeeBERT/FastBERT-style and Patience-based Early Exit-style early-exit baselines trained under the same protocol. A head-schedule ablation and attention probing show that the graded schedule performs on par with uniform and inverted schedules while computing 46% fewer attention maps, with attention becoming progressively more focused across strata. These results position SAGA as a flexible, lightweight extension of DistilBERT for accuracy-efficiency trade-offs in sentiment classification.
Authors
- Gopi B Sanghani
- Dixita B Kagathara
Institutions
- Darshan University (IN)
Publication Details
- Journal
- Cureus Journal of Computer Science.
- Published
- 2026-12-03
- DOI
- https://doi.org/10.7759/s44389-026-00407-1
- Primary Topic
- Sentiment Analysis and Opinion Mining
- Type
- article
- Field-Weighted Citation Impact
- 0.00