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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

SAGA: Sentiment-Aware Graded Attention for Sentiment Classification Using DistilBERT

Gopi B Sanghani, Dixita B Kagathara
Cureus Journal of Computer Science.
Sentiment Analysis and Opinion Mining
article

SAGA: Sentiment-Aware Graded Attention for Sentiment Classification Using DistilBERT

Gopi B Sanghani, Dixita B Kagathara
article en

Abstract

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.

Cureus Journal of Computer Science.
Darshan University (IN)
Sentiment Analysis and Opinion Mining
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon