Structure, Association, and Decision Value: Representation-Based Difficulty Estimation for Adaptive Inference in African-Language NLI
Organizations: University of Lagos
Abstract
We ask whether internal representation statistics can provide useful example-level difficulty signals for adaptive inference in multilingual African NLP, and find that they cannot in this setting. Studying natural language inference across 15 African languages with frozen off-the-shelf checkpoints, we report four results. First, AfriXNLI's English configuration shares 1,047 of its 1,050 examples verbatim with XNLI evaluation data, and one widely used NLI checkpoint scores 1.000 on that test split, consistent with XNLI test exposure. Because AfriXNLI is derived from XNLI, its English, French and Swahili configurations cannot serve as clean evaluations for XNLI-trained models. Second, parameter count does not reliably order capability across African languages: our larger checkpoint is better in seven languages and worse in eight, with no significant aggregate difference. Third, across three multilingual representation spaces, angular dispersion is consistently more language-determined than effective rank, so pooled correlations can inflate one and mask the other. Fourth, the association that survives language control depends on the target: effective rank predicts probability gain from escalation but not whether escalation changes the prediction, while cheap-model confidence shows the opposite pattern; the two targets correlate at only 0.655. Under the tested models, signals, and compute budgets, no evaluated signal makes adaptive routing preferable to always-expensive inference, although an oracle exceeds it by 11 accuracy points at 60% of the compute. Our central methodological finding is that a representation statistic can be statistically significant for one notion of computational benefit while being irrelevant to another, and therefore be a poor decision variable.
Figures & tables
| Role | Checkpoint | Layers | Hidden | Params |
|---|---|---|---|---|
| Cheap rung | multilingual-MiniLMv2-L6-mnli-xnli | 6 | 384 | 118M |
| Mid rung | mDeBERTa-v3-base-xnli-…-2mil7 | 12 | 768 | 278M |
| Large rung | xlm-roberta-large-xnli | 24 | 1024 | 560M |
| Features (task-tuned) | mDeBERTa-v3-base | 12 | 768 | — |
| Features (African MLM) | afro-xlmr-base | 12 | 768 | — |
| Features (generic MLM) | xlm-roberta-base | 12 | 768 | — |
| § | Result | Depends on a target |
|---|---|---|
| 4 | Benchmark contamination | no |
| 5 | Capability not ordered by size | no |
| 6 | Language dominates geometry ( ) | no |
| 7 | Residual association with either target | yes |
| 8 | Routing evaluation | yes |
| eng | fra | swa | ||||
|---|---|---|---|---|---|---|
| Model | dev | test | dev | test | dev | test |
| MiniLM-L6 | 0.887 | 0.760 | 0.927 | 0.720 | 0.891 | 0.622 |
| mDeBERTa-base | 1.000 | 0.890 | 0.998 | 0.867 | 0.993 | 0.742 |
| XLM-R-large | 0.998 | 1.000 | 0.987 | 0.995 | 0.973 | 0.978 |
| Model | Params | Layers | Accuracy | Above chance |
|---|---|---|---|---|
| MiniLMv2-L6 | 118M | 6 | 0.410 | 11/15 |
| mDeBERTa-v3-base | 278M | 12 | 0.545 | 14/15 |
| XLM-R-large | 560M | 24 | 0.523 | 14/15 |
| mDeBERTa-base | AfroXLMR-base | XLM-R-base | |
|---|---|---|---|
| Statistic | (task-tuned) | (African MLM) | (generic MLM) |
| Angular dispersion | 0.583 | 0.484 | 0.542 |
| Spectral concentration | 0.112 | 0.249 | 0.241 |
| Effective rank | 0.075 | 0.133 | 0.151 |
| Feature (mDeBERTa) | Pooled | Within | |
|---|---|---|---|
| L8 angular dispersion | 0.757 | ||
| L12 effective rank | 0.040 | ||
| L12 spectral concentration | 0.031 |
| Signal | Holm | Holm | ||
|---|---|---|---|---|
| mDeBERTa L12 effective rank | ||||
| mDeBERTa L12 spectral conc. | ||||
| mDeBERTa L8 angular dispersion | ||||
| mDeBERTa L12 angular dispersion | ||||
| Cheap-model confidence | — | — | ||
| Budget | Random | Conf. | Geom. | Geom. | Geom.+Conf. | Oracle |
|---|---|---|---|---|---|---|
| 20% | 0.457 | 0.466 | 0.461 | 0.468 | 0.472 | 0.613 |
| 40% | 0.486 | 0.506 | 0.498 | 0.504 | 0.508 | 0.688 |
| 60% | 0.519 | 0.543 | 0.524 | 0.535 | 0.545 | 0.688 |
| 80% | 0.548 | 0.564 | 0.553 | 0.559 | 0.565 | 0.688 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Lang | Lang | Lang | |||
|---|---|---|---|---|---|
| ibo | lug | zul | |||
| sna | twi | yor | |||
| sot | lin | ewe | |||
| kin | wol | hau | |||
| xho | |||||
| orm |
| Stability test | Result |
|---|---|
| Bootstrap, 300 within-language resample | , 95% |
| Subsample 25%, 40 seeds | |
| Subsample 50%, 40 seeds | |
| Leave-one-language-out | |
| Label permutation, 20 | , |