Open access Jurnal SINTA 3
EVALUATING ROBERTA AND GPT-BASED MODELS FOR SDG MULTICLASS TEXT CLASSIFICATION ACROSS DIFFERENT DOCUMENT LENGTHS
BAREKENG: Jurnal Ilmu Matematika dan Terapan · Vol. 20 No. 3 (2026) · pp. 2645–2664
- ISSN
- 2615-3017, 1978-7227
- Published
- 2026-04-08
- Publisher
- PATTIMURA UNIVERSITY
- Language
- eng
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.
Collaboration network of the authors
31 authors · 89 co-authorship links · 1 across different organisations
Hover or tap a name to highlight its co-authors. Double-click to open the author's page.
- IPB University
- Bandung Islamic University
- Affiliation unknown
- Different organisations
- Same organisation
- Affiliation unknown
- Thicker line = more joint articles · bigger circle = more articles
Show as table
| Co-author | Organisation | Joint articles |
|---|---|---|
| Bagus Sartono | IPB University | 4 |
| I Made Sumertajaya | Affiliation unknown | 2 |
| Indahwati Indahwati | Affiliation unknown | 2 |
| Erfiani Erfiani | Affiliation unknown | 2 |
| Anang Kurnia | Affiliation unknown | 2 |
| Muh. Sunan | IPB University | 1 |
| Unique Desyrre A. Resiloy | IPB University | 1 |
| Desy Endriani | IPB University | 1 |
| Gerry Alfa Dito | IPB University | 1 |
| Anik Djuraidah | Affiliation unknown | 1 |
| Ismah Ismah | Affiliation unknown | 1 |
| Sim Hui Xin | Affiliation unknown | 1 |
| Andi Harismahyanti A. | Affiliation unknown | 1 |
| Anggita Rizky Fadilah | Affiliation unknown | 1 |
| Husnun Nashir | Affiliation unknown | 1 |
| Ni Gusti Ayu Putu Puteri Suantari | Affiliation unknown | 1 |
| Hari Wijayanto | Affiliation unknown | 1 |
| Kristuisno Martsuyanto Kapiluka | Affiliation unknown | 1 |
| Khairil Anwar Notodiputro | Bandung Islamic University | 1 |
| Ita Wulandari | Affiliation unknown | 1 |
| Yunna Mentari Indah | Affiliation unknown | 1 |
| Asep Saefuddin | IPB University | 1 |
| Kusman Sadik | Affiliation unknown | 1 |
| Lukmanul Hakim | Affiliation unknown | 1 |
| Nadira Nisa Alwani | Affiliation unknown | 1 |
| Megawati Megawati | Affiliation unknown | 1 |
| Alfa Nugraha Pradana | Affiliation unknown | 1 |
Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.