TL;DR
This paper presents a submission to SemEval-2023 Task 12, focusing on sentiment analysis for 12 low-resource African languages. The authors explore the effectiveness of Afro-centric language models and parameter-efficient adapters, demonstrating their potential to improve sentiment analysis performance in these under-resourced linguistic contexts.
What Problem Does This Paper Address?
Natural Language Processing (NLP) research has historically under-served low-resource languages due to a lack of quality datasets for training and evaluation. While the rise of social media has increased visibility for these languages, specialized NLP techniques are still needed. Sentiment analysis, crucial for understanding public opinion and user feedback, is particularly challenging for these languages. The AfriSenti-SemEval Shared Task 12 aims to address this by providing datasets for 14 African languages, encouraging the development of models and techniques tailored to their unique linguistic characteristics. This paper tackles the challenge of building effective sentiment analysis models for these languages, specifically investigating the utility of pre-trained Afro-centric models and adapter-based approaches for zero-shot transfer.
Methods
The authors employed a multi-pronged approach across three sub-tasks:
- Sub-task A (Monolingual Sentiment Classification): They experimented with classical machine learning classifiers (Multinomial Naive Bayes, Multi-Layer Perception, XGB) using unigram and Tf-idf features. More importantly, they fine-tuned various pre-trained language models, including Afro-centric models like AfroXLMR, LaBSE, AfriBERTa, AfroLM, and Bernice, as well as language-specific models.
- Sub-task B (Multilingual Sentiment Classification): For this task, they fine-tuned multilingual pre-trained language models that support a broad range of the target languages.
- Sub-task C (Zero-Shot Sentiment Classification): To enable sentiment analysis on languages without direct training data, they utilized a parameter-efficient Adapter approach. This involved training language-specific adapters on monolingual data and then task adapters on related languages to facilitate zero-shot transfer. They also explored linguistic similarities between languages to inform their adapter training strategy.
Datasets
The primary dataset used is the AfriSenti dataset, introduced for SemEval-2023 Task 12. This dataset comprises Twitter data in 14 African languages for sentiment analysis tasks. The authors also mention using monolingual data for adapter training and leveraging existing pre-trained models trained on African languages.
Key Insights and Ideas
- Afro-centric models show promise: The findings suggest that pre-trained Afro-centric language models generally improve sentiment analysis performance for low-resource African languages, outperforming general-purpose models in many cases.
- Adapters are effective for zero-shot transfer: The adapter-based approach proved to be a viable strategy for zero-shot sentiment classification, especially for related languages, demonstrating that effective models can be built even with limited resources.
- Language-specific models can outperform: While Afro-centric models were generally strong, language-specific pre-trained models sometimes yielded better results for certain languages (e.g., Algerian Arabic and Moroccan Darija).
- Data cleaning had minimal impact: Surprisingly, extensive data cleaning (removing user tags, punctuation, and emojis) did not lead to significant performance improvements, leading the team to revert to using the original dataset.
- Linguistic similarity matters for adapters: The success of adapter-based zero-shot transfer was influenced by the linguistic similarity between the source and target languages.
Key Results
- Task A: The LaBSE multilingual model achieved good results for Amharic and Xitsonga, leading to rankings of 6th and 8th respectively. For Moroccan Arabic/Darija and Algerian Arabic, DziriBERT performed best. Afro-XLMR-base was the top performer for Hausa and Swahili.
- Task B: An ensemble of AfroXLMR-base, LaBSE multilingual, and twitter-xlm-roberta-base-sentiment models secured 9th place out of 33 participants.
- Task C (Tigrinya): An ensembled AfroXLMR trained on Amharic and multilingual data achieved an F1 score of 57.99%, placing them 18th out of 28. The best individual model for Tigrinya was multilingual AfroXLMR with an F1 score of 61.48%.
- Task C (Oromo): The best performing model for Oromo was AfriBerta trained on multilingual data, achieving an F1 score of 42.09%.
Limitations and Future Work
The authors acknowledge that their experiment to incorporate language-specific tags was unsuccessful due to the dataset not providing the necessary information. They also note that while adapters showed promising results for related languages in the zero-shot setting, further research is needed to explore their full potential for low-resource languages. Future work could focus on developing more robust adapter strategies and investigating their effectiveness across a wider range of linguistic families and tasks.
Summary updated