[Paper Review] idT5: Indonesian Version of Multilingual T5 Transformer
This paper introduces idT5, a smaller, monolingual T5 model fine-tuned specifically for Indonesian, derived from the multilingual mT5 architecture. By distilling the mT5 model into a language-specific version, idT5 achieves 77.18% accuracy on sentiment analysis—8% higher than mT5—while reducing model size by up to 58%, with faster inference and lower memory usage.
Indonesian language is spoken by almost 200 million people and is the 10th most spoken language in the world, but it is under-represented in NLP (Natural Language Processing) research. A sparsity of language resources has hampered previous work on Indonesian. The Transformer is a new architecture rapidly becoming dominant for NLP, surpassing alternatives like convolutional and recurrent neural networks. T5 (Text-to-Text Transfer Transformer) is a Transformer model that converts all text-based language problems to text-to-text format for English. The multilingual variant is mT5 (multilingual T5) which has shown promising results on many NLP tasks across languages. However, the size of this multilingual model is a drawback for its application in real production applications, which sometimes require only one language. In this study, the mT5 model was adapted for only one language, Indonesian, resulting in a pre-trained T5 model that was specific only for Indonesian with a smaller size. For performance comparison, we fine-tuned this model and the mT5 model to the Sentiment Analysis (SA), Question Generation (QG), and Question Answering (QA) tasks with the exact mechanism and dataset. Fine-tuned model based on our model achieved 77.18% accuracy on SA, 8% higher than the mT5-based model, and obtained nearly the same score as the mT5-based model on QG and QA. The results confirm that it is possible to produce a smaller pre-trained model that maintains comparable yields while reducing the model size by up to 58%. In addition, the resulting model requires less memory, loads faster, and inference times faster.
Motivation & Objective
- To address the underrepresentation of Indonesian in NLP research due to limited language resources.
- To reduce the computational cost of multilingual models by creating a monolingual variant tailored for Indonesian.
- To improve performance on Indonesian NLP tasks by fine-tuning a specialized T5 model.
- To evaluate whether a smaller, language-specific model can outperform or match the performance of a larger multilingual model on downstream tasks.
- To demonstrate that model compression through language-specific fine-tuning yields faster inference and lower memory usage without sacrificing performance.
Proposed method
- Fine-tuning the mT5 model on a large-scale Indonesian text corpus to create a monolingual T5 variant.
- Training the model exclusively on Indonesian text to optimize for the language's syntax and semantics.
- Reducing model size by removing multilingual capacity, resulting in a more efficient architecture.
- Applying the same fine-tuning procedure and dataset to both idT5 and mT5 for fair comparison on three tasks.
- Using standard NLP benchmarks: Sentiment Analysis, Question Generation, and Question Answering.
- Evaluating inference speed, memory usage, and accuracy to compare efficiency and performance.
Experimental results
Research questions
- RQ1Can a monolingual T5 model trained specifically on Indonesian outperform the multilingual mT5 on Indonesian NLP tasks?
- RQ2To what extent can model size be reduced without significant performance degradation in Indonesian NLP tasks?
- RQ3How does the inference speed and memory usage of the language-specific model compare to the multilingual baseline?
- RQ4Does fine-tuning mT5 into a monolingual Indonesian model improve performance on sentiment analysis compared to the multilingual version?
- RQ5Can a smaller, specialized model achieve comparable results to mT5 on question generation and question answering tasks for Indonesian?
Key findings
- idT5 achieved 77.18% accuracy on the sentiment analysis task, which is 8 percentage points higher than the mT5-based model.
- The model maintained nearly identical performance to mT5 on question generation and question answering tasks.
- idT5 reduced model size by up to 58% compared to the original mT5 architecture.
- The model required less memory and loaded faster due to its smaller size.
- Inference times were faster for idT5 compared to mT5, confirming improved efficiency.
- The results confirm that language-specific fine-tuning of multilingual models can yield better performance and greater efficiency for low-resource languages like Indonesian.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.