Comparative Performance of Transformer Models for Cultural Heritage in NLP Tasks

Open

Tri Lathif Mardi Suryanto, Aji Prasetya Wibawa, Hariyono, Andre Nafalski

2025 Advance Sustainable Science, Engineering and Technology Vol. 7 Issue 1 Article Cited by 15 Quartile

Abstract

AI and Machine Learning are crucial in advancing technology, especially for processing large, complex datasets. The transformer model, a primary approach in natural language processing (NLP), enables applications like translation, text summarization, and question-answer (QA) systems. This study compares two popular transformer models, FlanT5 and mT5, which are widely used yet often struggle to capture the specific context of the reference text. Using a unique Goddess Durga QA dataset with specialized cultural knowledge about Indonesia, this research tests how effectively each model can handle culturally specific QA tasks. The study involved data preparation, initial model training, ROUGE metric evaluation (ROUGE-1, ROUGE-2, ROUGE-L, and ROUGE-Lsum), and result analysis. Findings show that FlanT5 outperforms mT5 on multiple metrics, making it better at preserving cultural context. These results are impactful for NLP applications that rely on cultural insight, such as cultural preservation QA systems and context-based educational platforms. © 2025, University of PGRI Semarang. All rights reserved.

Affiliations

Faculty of Engineering, Universitas Negeri Malang, Jl. Semarang No.5, East Java, Malang, 65145, Indonesia; Faculty of Computer Science, Universitas Pembangunan Nasional “Veteran” Jawa Timur, 60294, Indonesia; Faculty of Social Sciences, Universitas Negeri Malang, Jl. Semarang No.5, East Java, Malang, 65145, Indonesia; UniSA Education Futures, University of South Australia SCT2-39 Mawson Lakes Campus, Adelaide, 5095, SA, Australia