Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

From Script to Semantics: Prompting Strategies for African NLI

Domain:

natural language processing

Record type:

paperdataset
Creator:
TiwOkoNwo
Host:avatar
Large language models (LLMs) are increasingly evaluated in multilingual settings, yet their inference behavior in low-resource African languages remains underexplored especially under pure prompting without fine-tuning. We present a systematic study of prompting strategies for Natural Language Inference (NLI) in Swahili, Yoruba, and Hausa using the AfriXNLI benchmark. We evaluate five prompting strategies Baseline (zero-shot), Script-Aware, Language Specific, Contrastive, and Native-Label Self-Translation (NL-STP) across two mid-sized open weight models (Llama3.2-3B and Gemma3-4B). To isolate the effect of prompt design, the effect of few-shot examples and Chain-of-Thought reasoning is eliminated in our study. We find a significant difference in performance of class wise across strategies with highly neutral class collapse and high prediction skew in some configurations. Contrastive prompting proves to be the most reliable and steadily improving strategy over language and model and has better balance of class behavior and balance of overall accuracy gains. Notably, well-constructed prompts are sufficient to beat more powerful baselines that are provided with few-shot prompts and Chain-of-Thought prompts. We have found that prompt formulation is essential to multilingual NLI with low-resource languages and that language aware decision structuring can be used to meaningfully enhance robustness in resource challenged settings. Accepted at the RAIL Workshop, LREC 2026

Visit

arxiv.org

Tasks

natural language inference

Languages

HausaSwahiliYoruba

Tags

Computation and LanguageMachine Learning

Similar

Data and Script for: A computational text analysis of recent African digital health strategies and their attention to vulnerable populationsRui0828/Learning-From-Mistakes-PromptingWhen Less Is Enough: Context Selection and Prompting Strategies for Bengali News Headline GenerationNo One Fits All: From Fixed Prompting to Learned Routing in Multilingual LLMsIntermediate NLI Training for Cross-Lingual Transfer in Low-Resource African LanguagesText to Speech System for Meitei Mayek Script

Data and Script for: A computational text analysis of recent African digital health strategies and their attention to vulnerable populations

Final analysis script and data used for the paper " A computational text analysis of re

Rui0828/Learning-From-Mistakes-Prompting

LoResMT@ACL 2024: Learning-From-Mistakes Prompting for Indigenous Language Translation – A feedback-

When Less Is Enough: Context Selection and Prompting Strategies for Bengali News Headline Generation

Large language models (LLMs) have shown strong performance in text generation tasks, yet their effec

No One Fits All: From Fixed Prompting to Learned Routing in Multilingual LLMs

Translation-based prompting is widely used in multilingual LLMs, yet its effectiveness varies across

Intermediate NLI Training for Cross-Lingual Transfer in Low-Resource African Languages

Intermediate-task training---fine-tuning a pretrained model on an intermediate task before fine-tuni

Text to Speech System for Meitei Mayek Script

This paper presents the development of a Text-to-Speech (TTS) system for the Manipuri language using