Skip to content
Review Open access

Bridging Aspect-Level and Document-Level Sentiment Analysis in Online Education Through Constrained Multi-Granularity Generative Modeling

Sep 2026 · Information · 0 citations · 25 references

Abstract

Automated sentiment analysis of online-education reviews is useful for understanding learner feedback. Classification-based methods usually capture only document-level polarity. They may miss aspect-level signals and may collapse to the majority class under the heavy imbalance typical of course reviews. When the task is reformulated as generation, document-level and aspect-level outputs can be unified. However, out-of-vocabulary aspect labels, parsing failures, and weakly grounded links between granularities may also be introduced. Multi-perspective and Holistic Evaluation T5 (MHE-T5), a model built on the Text-to-Text Transfer Transformer (T5), is proposed as a constrained multi-granularity generative model. It emits aspect-level and document-level sentiment in one schema. The model combines grammar/finite-state machine (FSM)-constrained decoding, a document–aspect consistency coupling with a proved alignment property, and a cross-granularity contrastive objective. The decoding guarantee is limited to schema parse-validity and closed-vocabulary conformity; it does not guarantee semantic correctness of the selected aspect or polarity. Across four datasets, including a large rating-derived Coursera corpus, two human-annotated education aspect-based sentiment analysis (ABSA) datasets, and the standard Multi-Aspect Multi-Sentiment (MAMS) benchmark, generative models improve macro-averaged F1-score (Macro-F1) over Bidirectional Encoder Representations from Transformers (BERT) by 0.36 to 0.61 on the three datasets that carry discriminative baselines. MHE-T5 attains the highest document-level Macro-F1 among the evaluated benchmarks while providing formal schema-level guarantees on the closed-vocabulary settings. A controlled comparison with DeepSeek-V3 on identical examples, used as a large language model (LLM) baseline, shows that the fine-tuned 220M model is a competitive schema-constrained fine-grained aspect extractor under the fixed protocol.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.