EVALUATING ROBERTA AND GPT-BASED MODELS FOR SDG MULTICLASS TEXT CLASSIFICATION ACROSS DIFFERENT DOCUMENT LENGTHS
Uswatun Hasanah, Agus Mohamad Soleh, Cici Suhaeni, Anwar Fitrianto
Department of Physics, Mathematics and Informatics
Key points
From the paper's conclusion- Fine-tuned GPT achieved the strongest results in all settings, with a macro F1-score of 0.9204 on the all-combined dataset, representing a 4.61% improvement over RoBERTa.
Abstract
Multiclass text classification remains a difficult task, primarily due to semantic ambiguity and differences in input length. This study evaluates RoBERTa and GPT-based models for multiclass text classification, focusing on how prompting strategies and document length affect accuracy and robustness. Experiments were conducted using the OSDG Community Dataset, which contains approximately 15,000 labeled samples. The dataset was partitioned into four subsets based on input length: short, medium, long, and all combined. Three GPT variants (zero-shot, few-shot, and fine-tuned) were compared against a RoBERTa baseline. Fine-tuning was implemented via OpenAI’s supervised API with prompt-response formatting. Performance was assessed through F1-score, precision, recall, and balanced accuracy. Fine-tuned GPT achieved the strongest results in all settings, with a macro F1-score of 0.9204 on the all-combined dataset, representing a 4.61% improvement over RoBERTa. Consistent gains were also observed across short (8.63%), medium (3.83%), and long (20.31%) texts. The largest improvement occurred on long documents, while medium-length inputs provided the most stable performance across models. These findings highlight the effectiveness of task-specific fine-tuning in enhancing GPT’s capability to classify SDG-related texts across diverse input lengths.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Best of Both Worlds: Fine-Tuned Small Models Complement LLMs for Cost and Performance BenefitsarXiv · 2026
- RAPT: Retrieval-Augmented Post-hoc Thresholding for Multi-Label ClassificationOpen Access Institutional Repository at Robert Gordon University (Robert Gordon University) · 2026
- Rethinking Class Imbalance for Single-Cell Foundation Models: A Systematic Benchmark Across Architectures and Long-Tail Loss FunctionsarXiv · 2026
- Feature Selection for Deep Text Classification With Limited Labeled Data: A Cross‐Architecture Empirical StudyConcurrency and Computation: Practice and Experience · 2026
- An accuracy and calibration benchmark of scGPT pipelines and matched classical models for cell type annotationScientific Reports · 2026
- Clifti-GPT: privacy-preserving federated fine-tuning and transferable inference of foundation models on clinical single-cell data.BioData mining · 2026