IndoNLU: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding

TL;DR

Introduced IndoNLU benchmark with 12 tasks, trained IndoBERT models, outperforming multilingual models by significant margins.

cs.CL 🔴 Advanced 2020-09-11 56 views
Bryan Wilie Karissa Vincentio Genta Indra Winata Samuel Cahyawijaya Xiaohong Li Zhi Yuan Lim Sidik Soleman Rahmad Mahendra Pascale Fung Syafri Bahar Ayu Purwarianti
NLU benchmark IndoBERT low-resource NLP Indonesian

Key Findings

Methodology

Utilized a multi-task learning framework encompassing single-sentence classification, sequence labeling, and sentence pair tasks, integrating diverse datasets. Developed large-scale Indo4B corpus (~23GB) for self-supervised pretraining of IndoBERT and IndoBERT-lite models. Standardized data splits and evaluation metrics (macro F1). Compared monolingual IndoBERT variants with multilingual models (mBERT, XLM-R) across tasks, optimizing hyperparameters (learning rate, batch size). Employed transformer architectures with MLM and sentence prediction objectives, ensuring broad task coverage and robustness.

Key Results

  • IndoBERT-LARGE achieved an average F1 of 81.21% on classification tasks, surpassing XLM-R-LARGE's 79.76%. In sequence labeling, IndoBERT-LARGE scored 81.26%, outperforming multilingual counterparts. Model size ranged from 15M to 335M parameters, performance scaled with size. The Indo4B corpus, derived from diverse sources like social media, news, Wikipedia, significantly enhanced model performance. Multi-task evaluation confirmed the effectiveness of dedicated monolingual models for Indonesian, with consistent improvements over baselines.
  • Compared to multilingual models, IndoBERT variants showed superior results in tasks like sentiment analysis and entity recognition, validating the importance of language-specific pretraining. Ablation studies indicated that larger models and larger datasets contributed substantially to performance gains. The benchmark setup ensures reproducibility and fair comparison, fostering further research.

Significance

This work addresses the critical resource gap in Indonesian NLP, establishing the first comprehensive benchmark and high-performance models. It provides a standardized platform for evaluating low-resource language models, accelerating research and practical applications such as sentiment analysis, named entity recognition, and question answering. By demonstrating the superiority of monolingual models trained on large native corpora, it paves the way for more accurate and efficient NLP solutions tailored to Indonesian, benefiting both academia and industry. The release of datasets, models, and evaluation frameworks fosters community engagement and future innovation.

Technical Contribution

The paper introduces a multi-task benchmark covering 12 diverse tasks, along with a large-scale Indonesian corpus (Indo4B) for self-supervised pretraining. It develops and evaluates multiple BERT-based models (IndoBERT, IndoBERT-lite) trained exclusively on Indonesian data, outperforming existing multilingual models. The approach emphasizes task diversity, data standardization, and model scaling, providing a replicable framework for low-resource NLP. It also offers detailed training strategies, hyperparameter tuning, and ablation analyses, contributing valuable insights into the design of language-specific models.

Novelty

This is the first comprehensive Indonesian NLU benchmark integrating 12 tasks with standardized data splits and evaluation protocols. It introduces large-scale native corpora (Indo4B) for pretraining, resulting in models that outperform multilingual counterparts significantly. The work bridges the gap between resource scarcity and model performance, setting a new standard for low-resource language NLP. Its multi-task design and detailed benchmarking framework are innovative, providing a blueprint for similar efforts in other low-resource languages.

Limitations

  • High computational cost for training large models limits accessibility for smaller research groups.
  • Some tasks suffer from limited annotated data, affecting model generalization.
  • Handling of highly informal or emerging slang remains challenging, requiring ongoing data updates.

Future Work

Future directions include model compression for deployment, expanding task coverage (dialogue, generation), and improving cross-domain robustness. Incorporating multimodal data (audio, images) could enhance understanding. Further research on low-resource adaptation techniques and continual learning will help maintain model relevance amid evolving language use.

AI Executive Summary

Indonesia, with over 170 million internet users, ranks as the fourth largest online language community. Despite this, NLP research for Indonesian remains underdeveloped due to scarce resources and fragmented datasets. Existing efforts lack standard benchmarks, hindering progress. Addressing this gap, the present work introduces IndoNLU, a comprehensive benchmark comprising 12 diverse tasks, from sentiment analysis to named entity recognition, designed to evaluate Indonesian language understanding systematically.

Central to this initiative is the creation of Indo4B, a large-scale corpus (~23GB) assembled from social media, news, Wikipedia, and subtitles, providing a robust foundation for pretraining. Using this data, the authors develop IndoBERT and IndoBERT-lite, monolingual transformer-based models trained with masked language modeling and sentence prediction objectives. These models are evaluated across all tasks, demonstrating superior performance over existing multilingual models like mBERT and XLM-R, with IndoBERT-LARGE achieving an average F1 of over 81%.

The benchmark and models significantly advance Indonesian NLP, offering a standardized evaluation framework and high-performing tools for industry and academia. The results confirm that language-specific pretraining on large native corpora yields substantial gains, emphasizing the importance of resource development for low-resource languages. The work also highlights future directions, including model compression, cross-domain adaptation, and multimodal integration, to further enhance NLP capabilities for Indonesian and similar languages. Overall, this research marks a pivotal step toward democratizing NLP technology for low-resource languages, fostering innovation and practical deployment.

Deep Analysis

Background

Recent NLP breakthroughs, such as BERT and RoBERTa, have revolutionized language understanding, primarily in high-resource languages like English and Chinese. Multilingual models like mBERT and XLM-R extended these advances to many languages but often underperform in low-resource settings. Indonesian, despite its large internet user base, remains underrepresented due to limited datasets and resources. Existing datasets are scattered, with inconsistent annotations and lack of standard benchmarks, impeding progress. Prior efforts to develop Indonesian-specific models have been limited in scope and scale. The necessity for a unified, large-scale resource and evaluation framework is urgent to unlock NLP's potential for Indonesian, enabling applications like sentiment analysis, named entity recognition, and question answering to reach practical maturity.

Core Problem

The core challenge lies in the scarcity of high-quality, large-scale annotated datasets and pre-trained models tailored for Indonesian. Current datasets are fragmented, with inconsistent formats and limited scope, making model training and evaluation unreliable. Additionally, existing benchmarks focus mainly on English or Chinese, leaving Indonesian without a standardized platform for fair comparison. This resource gap hampers the development of accurate, robust NLP systems in Indonesian, affecting both academic research and industry deployment. Overcoming these barriers requires constructing comprehensive datasets, designing effective pretraining strategies, and establishing multi-task benchmarks that reflect real-world applications.

Innovation

The paper's key innovations include: 1) the creation of IndoNLU, a multi-task benchmark covering 12 tasks across various domains and styles, standardizing evaluation for Indonesian NLP; 2) the assembly of Indo4B, a large-scale (~23GB) corpus from diverse sources, enabling effective self-supervised pretraining; 3) development of IndoBERT and IndoBERT-lite, monolingual transformer models trained on Indo4B, outperforming multilingual models in downstream tasks; 4) comprehensive comparison and analysis of models, demonstrating the benefits of language-specific pretraining. These innovations collectively push Indonesian NLP from resource scarcity toward resource abundance, setting a new standard for low-resource language research.

Methodology

  • �� Data collection: Aggregated Indonesian texts from social media, news, Wikipedia, subtitles, and parallel corpora, forming Indo4B. • Data preprocessing: Cleaned texts, segmented sentences, masked tokens, preserved morphological richness, masked private info in social media data. • Model training: Used transformer architectures (BERT, ALBERT variants), trained with MLM and sentence prediction objectives, with hyperparameters tuned for size and data scale. • Task design: Developed 12 tasks, including classification, sequence labeling, and sentence pair tasks, with standardized splits. • Evaluation: Employed macro F1-score, early stopping based on validation, hyperparameter optimization, and ablation studies to assess model performance. • Baseline comparison: Benchmarked against mBERT, XLM-R, and scratch models, analyzing parameter effects and data impact.

Experiments

Experiments involved training multiple models (IndoBERT, IndoBERT-lite, mBERT, XLM-R) on Indo4B, with hyperparameters like learning rate (1e-5 to 4e-5), batch size (8-256), and steps (up to 1 million). Data splits were standardized for reproducibility. Fine-tuning was performed for each task, optimizing hyperparameters via validation. Performance was measured using macro F1 scores across tasks, with results showing IndoBERT-LARGE achieving the highest average scores. Ablation studies confirmed that larger models and more extensive pretraining data improve performance. Cross-task analysis demonstrated the models' robustness and generalization capabilities, validating the effectiveness of the resource and training strategies.

Results

IndoBERT-LARGE achieved an average F1 of 81.21% on classification tasks, outperforming XLM-R-LARGE (79.76%). In sequence labeling, IndoBERT-LARGE scored 81.26%, surpassing multilingual models. The models trained on Indo4B significantly outperformed those trained on smaller or less diverse datasets, confirming the importance of large-scale native corpora. The multi-task evaluation showed consistent improvements, especially in entity recognition and sentiment analysis. The results highlight the advantage of language-specific pretraining, with performance gains more pronounced as model size increases. These findings demonstrate the effectiveness of the proposed resources and training framework.

Applications

The benchmark and models can be directly applied to Indonesian sentiment analysis, named entity recognition, and question answering systems, improving accuracy and robustness. Industries such as social media monitoring, customer service, and content moderation will benefit from these tools. Academic researchers can use the standardized benchmark to evaluate new models, fostering innovation. The models also serve as foundational components for developing multilingual or cross-lingual NLP systems, enabling broader language inclusivity. Long-term, these resources can support the development of intelligent virtual assistants, automated translation, and inclusive AI solutions tailored to Indonesian speakers.

Limitations & Outlook

High computational costs for training large models limit accessibility for smaller labs. Some tasks suffer from limited annotated data, affecting generalization. Handling informal slang and rapidly evolving language remains challenging, requiring continuous data updates. The models may also struggle with domain-specific jargon outside the training scope. Future work should focus on model compression, domain adaptation, and continual learning to address these issues.

Plain Language Accessible to non-experts

想象你在一个厨房里,厨师需要准备各种菜肴。有些菜很简单,只需要放一些调料;有些菜复杂,需要多步骤配合。以前,厨师每次做菜都得自己摸索,效率很低。现在,厨房里有一台智能厨师助手,它学会了很多菜谱(大量食谱资料),可以帮厨师快速准备各种菜肴。这个助手就像我们训练的模型,用很多印尼语的文章和对话资料,学会理解句子、找出重要信息、判断情感。它可以帮你写文章、回答问题,就像个聪明的厨师助手一样。这样,印尼语的应用变得更方便、更智能,大家都能用上好用的工具。

ELI14 Explained like you're 14

想象你在学校里,有很多不同的科目,比如数学、语文、英语。以前,每门课都用不同的教材,老师也不一样,学习很麻烦。现在,老师发明了一本超级教材,里面包含所有科目的知识,还能帮你做练习题。这本教材就像我们训练的模型,用很多印尼语的文章、新闻、社交媒体内容学习,变得特别聪明。它可以帮你理解句子、找出人名、地点,甚至判断一句话的情感。就像你用一本万能的教材学习一样,这个模型能帮很多印尼语的应用变得更智能、更方便。未来,它还能帮你写作文、聊天,像个聪明的朋友一样!

Abstract

Although Indonesian is known to be the fourth most frequently used language over the internet, the research progress on this language in the natural language processing (NLP) is slow-moving due to a lack of available resources. In response, we introduce the first-ever vast resource for the training, evaluating, and benchmarking on Indonesian natural language understanding (IndoNLU) tasks. IndoNLU includes twelve tasks, ranging from single sentence classification to pair-sentences sequence labeling with different levels of complexity. The datasets for the tasks lie in different domains and styles to ensure task diversity. We also provide a set of Indonesian pre-trained models (IndoBERT) trained from a large and clean Indonesian dataset Indo4B collected from publicly available sources such as social media texts, blogs, news, and websites. We release baseline models for all twelve tasks, as well as the framework for benchmark evaluation, and thus it enables everyone to benchmark their system performances.

cs.CL