Show Your Work in Swahili: Reinforcement Learning for Native-Language Mathematical Reasoning

Jessica Lundin, Katherine Rosenfeld, David Adelani, Geoffrey Mosoti Nyakiongora, Halfan Ngowo, Sloan Coffin, Ralph Abboud, Guillaume Chabot-CouturearXiv 2026

TL;DR

The researchers present Fikiria, a two-stage training recipe (SFT + GRPO) designed to ensure Large Language Models (LLMs) reason mathematically in fluent Swahili rather than defaulting to English. By using a gated reward function that balances answer accuracy with linguistic fidelity, their 14B model achieved 79.2% accuracy on the AfriMGSM benchmark, significantly outperforming GPT-4o under strict formatting constraints.

What Problem Does This Paper Address?

Current state-of-the-art LLMs are excellent at math, but they suffer from a "usability mismatch" in multilingual settings. When asked a math question in a low-resource language like Swahili, these models often generate the correct final answer but perform their intermediate "Chain-of-Thought" (CoT) reasoning in English.

For a student in East Africa, a correct answer paired with an incomprehensible English explanation is a poor learning tool. The authors argue that native-language reasoning quality—reasoning that is mathematically sound, linguistically fluent, and culturally accessible—is just as important as the final numeric result.

Figure 1: Problem summary. Given a math question in Swahili, the LLM must generate both a correct answer and linguistically usable reasoning. Previous work has focused on improving accuracy while this paper considers both correctness of the final answer and usability of the reasoning trace through a two-stage SFT and GRPO pipeline described in Figure 2.

Methods

The authors introduce a two-stage pipeline to bridge this gap:

  1. Supervised Fine-Tuning (SFT): A "cold-start" phase where the model is taught the specific output format (using <rationale> and <answer> tags) and basic Swahili instruction-following.
  2. Reinforcement Learning (GRPO): They use Group Relative Policy Optimization with a novel gated structured reward.

The reward function $R$ is defined as: $$R = R_{format} \times (0.25 \cdot R_{ChrF++} + 0.50 \cdot R_{accuracy})$$

  • $R_{format}$ (The Gate): A binary-style multiplier that zeroes out the reward if the model fails to use the correct tags, omits a mathematical equation in its rationale, or produces a response that is too short.
  • $R_{ChrF++}$ (Surface Fidelity): A parameter-free metric that measures character n-gram overlap between the model's Swahili reasoning and a reference Swahili translation. This incentivizes the model to stay in-language.
  • $R_{accuracy}$: A standard reward for matching the ground-truth numeric answer.
Figure 2: Fikiria training pipeline. Starting from AfriqueQwen (8B or 14B, African CPT from Qwen3), cold-start SFT teaches Swahili instruction-following and the <rationale>/<answer> output format. GRPO then refines the model using a gated reward: R1 (format gate) multiplicatively gates R2 (ChrF++ of <rationale> against a Swahili MT reference, λ=0.25) and R3 (exact-match accuracy on <answer>, λ=0.50). The dashed SFT border and bypass arrow indicate that GRPO-only ablation variants omitting SFT are also evaluated (Table 1).

Datasets

  • Training Set: The authors created a new 2.3k-problem Swahili dataset by translating the popular GSM8K benchmark using GPT-4.1. They filtered these translations using SSA-COMET-MTL, a reference-free quality estimator, to ensure only high-quality data was used for training.
  • Evaluation Set: They used AfriMGSM (Swahili), a benchmark consisting of 250 human-translated grade-school math problems.

Key Insights and Ideas

  • Backbone Matters: The researchers used AfriqueQwen (8B and 14B), models that underwent continued pre-training (CPT) on 20 African languages. These backbones significantly outperformed the standard Qwen3 models, suggesting that foundational linguistic knowledge is a prerequisite for effective RL tuning in low-resource languages.
  • The "Thinking" Trap: Modern models like Qwen3 have a built-in enable_thinking mode. However, the authors found that this often triggered English-language reasoning, which actually lowered the model's Swahili confidence scores. They achieved better results by disabling the native thinking mode and supervising a custom <rationale> block.
  • SFT is Essential for Small Models: For 8B and 14B models, GRPO alone struggled to "discover" the required format and language simultaneously. SFT acted as a necessary bootstrap. Interestingly, for the larger 32B model, GRPO alone was nearly as effective as the full pipeline, suggesting larger models have stronger latent instruction-following capabilities.

Key Results

  • State-of-the-Art Performance: Fikiria-AfriqueQwen-14B reached 79.2% accuracy on AfriMGSM Swahili.
  • Comparison to GPT-4o: Under the same strict scoring (where malformed tags result in a zero), GPT-4o only reached 68.0%, largely due to formatting failures. Even when GPT-4o was given its "best-per-model" prompt (as reported in IrokoBench), it scored 78.8%, slightly below the Fikiria 14B model.
  • Human Preference: In a blind pairwise evaluation, human annotators preferred GPT-4o for overall reasoning clarity. However, Fikiria was preferred for the naturalness of its Swahili, highlighting its success in avoiding "translationese" or code-switching into English.

Limitations and Future Work

  • Surface vs. Logic: The $R_{ChrF++}$ reward measures how much the text looks like Swahili, not whether the logical steps are correct. A model could theoretically write a beautiful Swahili sentence that contains a mathematical hallucination.
  • Data Contamination: Since AfriMGSM is derived from GSM8K, there is a risk that the models saw similar problems during their initial pre-training, though the authors note this is a common challenge in the field.
  • Scaling: The study was restricted to Swahili. Future work aims to extend this gated reward framework to other African languages and develop automated metrics that can judge the causal validity of reasoning steps rather than just surface-level fluency.

Summary updated

BibTeX
@misc{lundin2026show,
  author = {Jessica Lundin and Katherine Rosenfeld and David Adelani and Geoffrey Mosoti Nyakiongora and Halfan Ngowo and Sloan Coffin and Ralph Abboud and Guillaume Chabot-Couture},
  title = {{Show Your Work in Swahili: Reinforcement Learning for Native-Language Mathematical Reasoning}},
  year = {2026},
  eprint = {2611.16104},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.16104},
}
Figure