TL;DR
This paper introduces AfriSenti, the largest sentiment analysis benchmark for African languages, comprising over 110,000 tweets in 14 diverse languages. By addressing the significant under-representation of African languages in NLP research, AfriSenti aims to foster the development of more inclusive and equitable AI technologies.
What Problem Does This Paper Address?
Natural Language Processing (NLP) has seen tremendous progress, but this advancement is heavily skewed towards high-resource languages, leaving a vast number of African languages significantly under-represented. This disparity is particularly evident in sentiment analysis, a crucial area for understanding public opinion, market trends, and social dynamics. The lack of high-quality, annotated datasets for these languages is a major bottleneck. AfriSenti aims to bridge this gap by providing a comprehensive benchmark that enables researchers to build and evaluate sentiment analysis models for a wide array of African languages, many of which have historically been overlooked by the NLP community.
Methods
The authors employed a multi-pronged approach for data collection, acknowledging the limitations of standard NLP tools for many African languages. They utilized location-based heuristics, leveraging geographical information to identify tweets in specific languages. When this proved insufficient, they incorporated vocabulary-based strategies, using language-specific keywords, stopwords, and sentiment lexicons to curate relevant tweets. For languages with limited digital presence or complex writing systems, manual annotation by native speakers was crucial. They also implemented language detection techniques, including both existing tools and manual verification, to ensure data quality. For model evaluation, they established baseline experiments using both monolingual and multilingual pre-trained language models, including Africa-centric models like AfriBERTa and AfroXLMR, alongside general-purpose models like XLM-R and XLM-T.
Datasets
The core contribution is the AfriSenti dataset, a collection of over 110,000 tweets annotated for sentiment (positive, negative, neutral) across 14 African languages: Amharic, Algerian Arabic, Hausa, Igbo, Kinyarwanda, Moroccan Arabic, Mozambican Portuguese, Nigerian Pidgin, Oromo, Swahili, Tigrinya, Twi, Xitsonga, and Yorùbá. This dataset includes both newly created and existing datasets, with a focus on ensuring high-quality annotations from native speakers. The paper also mentions the release of sentiment lexicons for these languages.
Key Insights and Ideas
- The Digital Divide is Real: The paper starkly highlights the disparity in NLP support, with Twitter's API only officially supporting Amharic among the thousands of African languages. This necessitates creative, often manual, data collection methods.
- Linguistic Diversity is a Challenge and an Opportunity: The sheer diversity of African languages, including tonal languages and those with multiple writing systems (digraphia), presents unique challenges for sentiment analysis. However, this diversity also offers a rich landscape for developing more robust and adaptable NLP models.
- Code-Switching is Pervasive: The prevalence of code-switching (mixing languages within a single conversation) in African digital communication adds another layer of complexity to sentiment analysis, often requiring nuanced annotation and modeling.
- Africa-Centric Models Show Promise: The evaluation of models like AfriBERTa and AfroXLMR suggests that pre-training specifically on African languages can yield significant performance gains, even outperforming general multilingual models in certain contexts.
Key Results
The paper reports baseline experiments demonstrating the effectiveness of various pre-trained language models on the AfriSenti datasets. Notably, AfroXLMR-large achieved the best overall performance in multilingual settings, outperforming other models by a significant margin. XLM-T also showed strong performance, particularly on Arabic and Portuguese dialects, highlighting the benefit of domain-specific pre-training. For zero-shot cross-lingual transfer, Hausa and Amharic emerged as strong source languages for languages like Oromo and Tigrinya, likely due to linguistic similarity and dataset size. Inter-annotator agreement scores were generally intermediate to good, though some languages presented greater annotation challenges.
Limitations and Future Work
The authors acknowledge several limitations. The reliance on keywords and geographic locations for data collection led to imbalanced datasets in some cases. The subjective nature of sentiment analysis means that label bias can still be present, despite efforts to mitigate it. The paper also notes that offensive tweets were removed, which might impact the dataset's representativeness of unfiltered online discourse. Future work includes expanding the dataset to include more African languages and exploring other sentiment analysis sub-tasks. The authors also emphasize the importance of sharing individual annotation labels to facilitate research into inter-annotator disagreements.
Summary updated