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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- fr
|
| 4 |
+
- fon
|
| 5 |
+
pretty_name: French-Fon Code-Switching Evaluation Benchmark
|
| 6 |
+
task_categories:
|
| 7 |
+
- question-answering
|
| 8 |
+
tags:
|
| 9 |
+
- code-switching
|
| 10 |
+
- fon
|
| 11 |
+
- french
|
| 12 |
+
- multilingual
|
| 13 |
+
- nlp
|
| 14 |
+
- low-ressource-language
|
| 15 |
+
- llm-evaluation
|
| 16 |
+
size_categories:
|
| 17 |
+
- n<1K
|
| 18 |
+
license: mit
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# French-Fon Code-Switching Evaluation Benchmark
|
| 22 |
+
|
| 23 |
+
## Overview
|
| 24 |
+
|
| 25 |
+
This dataset is a benchmark designed to evaluate the contextual understanding of small language models in French-Fon code-switching scenarios.
|
| 26 |
+
|
| 27 |
+
The benchmark focuses on situations in which French and Fon (Fongbé) are used within the same interaction, with particular attention to cases where critical information required to answer a question is provided in Fon.
|
| 28 |
+
|
| 29 |
+
The benchmark was developed as part of an academic research project on the evaluation of language models in multilingual and low-resource language contexts.
|
| 30 |
+
|
| 31 |
+
## Research Question
|
| 32 |
+
|
| 33 |
+
The main research question is:
|
| 34 |
+
|
| 35 |
+
> How well can a small open-weight language model maintain contextual understanding when users switch between French and Fon within the same interaction?
|
| 36 |
+
|
| 37 |
+
## Model Evaluated
|
| 38 |
+
|
| 39 |
+
The benchmark was evaluated using:
|
| 40 |
+
|
| 41 |
+
**Qwen/Qwen3-4B-Instruct-2507**
|
| 42 |
+
|
| 43 |
+
The model contains approximately 4 billion parameters and was selected because it is an open-weight language model within the required range for this study.
|
| 44 |
+
|
| 45 |
+
## Benchmark Design
|
| 46 |
+
|
| 47 |
+
The benchmark contains:
|
| 48 |
+
|
| 49 |
+
- 40 base scenarios
|
| 50 |
+
- 4 experimental conditions
|
| 51 |
+
- 160 total evaluation instances
|
| 52 |
+
|
| 53 |
+
The 40 scenarios are distributed across four categories:
|
| 54 |
+
|
| 55 |
+
- Daily-life situations
|
| 56 |
+
- Reasoning
|
| 57 |
+
- Context tracking
|
| 58 |
+
- Local and cultural context
|
| 59 |
+
|
| 60 |
+
Each category contains 10 base scenarios.
|
| 61 |
+
|
| 62 |
+
## Experimental Conditions
|
| 63 |
+
|
| 64 |
+
Each scenario was evaluated under four conditions.
|
| 65 |
+
|
| 66 |
+
### 1. French baseline (`fr`)
|
| 67 |
+
|
| 68 |
+
The complete task is presented in French.
|
| 69 |
+
|
| 70 |
+
This condition provides a baseline for measuring the model's performance in French.
|
| 71 |
+
|
| 72 |
+
### 2. Fon-only (`fon`)
|
| 73 |
+
|
| 74 |
+
The relevant information and task are presented in Fon.
|
| 75 |
+
|
| 76 |
+
This condition evaluates the model's ability to understand and use information expressed in Fon.
|
| 77 |
+
|
| 78 |
+
### 3. French-Fon code-switching (`fr_fon`)
|
| 79 |
+
|
| 80 |
+
French and Fon are combined within the same interaction.
|
| 81 |
+
|
| 82 |
+
This condition evaluates the model's ability to maintain contextual understanding when switching between the two languages.
|
| 83 |
+
|
| 84 |
+
### 4. Critical information in Fon (`critical_fon`)
|
| 85 |
+
|
| 86 |
+
The final question is presented in French, while the information necessary to answer the question is provided only in Fon.
|
| 87 |
+
|
| 88 |
+
This condition specifically tests whether the model can identify, understand and reason over critical information expressed in Fon.
|
| 89 |
+
|
| 90 |
+
## Evaluation
|
| 91 |
+
|
| 92 |
+
Each model response was manually evaluated using a binary correctness criterion:
|
| 93 |
+
|
| 94 |
+
- `1` = correct
|
| 95 |
+
- `0` = incorrect
|
| 96 |
+
|
| 97 |
+
The evaluation primarily considered whether the model produced the expected semantic answer.
|
| 98 |
+
|
| 99 |
+
A qualitative error taxonomy was also used to analyze incorrect responses.
|
| 100 |
+
|
| 101 |
+
## Error Taxonomy
|
| 102 |
+
|
| 103 |
+
The following error categories were defined:
|
| 104 |
+
|
| 105 |
+
- **E1 — Wrong Fon understanding:** incorrect interpretation of information expressed in Fon.
|
| 106 |
+
- **E2 — Information loss:** relevant contextual information is lost or modified.
|
| 107 |
+
- **E3 — Code-switching interpretation error:** incorrect interpretation of the interaction when French and Fon are combined.
|
| 108 |
+
- **E4 — Reasoning error:** the relevant information is available but the model fails to perform the required reasoning.
|
| 109 |
+
- **E5 — Hallucination:** the model introduces unsupported information.
|
| 110 |
+
- **E6 — Partially correct:** the response contains part of the expected information but is incomplete.
|
| 111 |
+
- **E7 — Refusal or incomprehension:** the model states that it cannot understand or answer the task.
|
| 112 |
+
- **E8 — Other:** errors that do not fit the previous categories.
|
| 113 |
+
|
| 114 |
+
## Translation Verification
|
| 115 |
+
|
| 116 |
+
The 40 Fon translations used in the benchmark were manually verified before the final evaluation.
|
| 117 |
+
|
| 118 |
+
The translations were considered valid and no correction was required.
|
| 119 |
+
|
| 120 |
+
Automatic translation was therefore not treated as the gold standard for evaluation.
|
| 121 |
+
|
| 122 |
+
## Results
|
| 123 |
+
|
| 124 |
+
The benchmark produced the following overall accuracy:
|
| 125 |
+
|
| 126 |
+
**31.9%**
|
| 127 |
+
|
| 128 |
+
Performance by experimental condition:
|
| 129 |
+
|
| 130 |
+
| Condition | Accuracy |
|
| 131 |
+
|---|---:|
|
| 132 |
+
| French (`fr`) | 97.5% |
|
| 133 |
+
| Fon (`fon`) | 7.5% |
|
| 134 |
+
| French-Fon (`fr_fon`) | 5.0% |
|
| 135 |
+
| Critical information in Fon (`critical_fon`) | 17.5% |
|
| 136 |
+
|
| 137 |
+
Performance by scenario category:
|
| 138 |
+
|
| 139 |
+
| Category | Accuracy |
|
| 140 |
+
|---|---:|
|
| 141 |
+
| Context | 37.5% |
|
| 142 |
+
| Reasoning | 37.5% |
|
| 143 |
+
| Culture | 27.5% |
|
| 144 |
+
| Daily life | 25.0% |
|
| 145 |
+
|
| 146 |
+
## Error Analysis
|
| 147 |
+
|
| 148 |
+
Among the 109 incorrect responses, the main observed error types were:
|
| 149 |
+
|
| 150 |
+
| Error type | Count | Percentage |
|
| 151 |
+
|---|---:|---:|
|
| 152 |
+
| E1 | 43 | 39.45% |
|
| 153 |
+
| E3 | 34 | 31.19% |
|
| 154 |
+
| E7 | 20 | 18.35% |
|
| 155 |
+
| E4 | 11 | 10.09% |
|
| 156 |
+
| E2 | 1 | 0.92% |
|
| 157 |
+
|
| 158 |
+
The two dominant error types were E1 and E3, which together represented approximately 70.6% of all observed errors.
|
| 159 |
+
|
| 160 |
+
The results show a substantial degradation when Fon is involved in the task compared with the French baseline.
|
| 161 |
+
|
| 162 |
+
The French baseline reached 97.5% accuracy, whereas the Fon-only and French-Fon conditions reached 7.5% and 5.0%, respectively.
|
| 163 |
+
|
| 164 |
+
The critical-information-in-Fon condition reached 17.5%.
|
| 165 |
+
|
| 166 |
+
These results support the hypothesis that the model experiences substantial difficulty maintaining contextual understanding when information is expressed in Fon.
|
| 167 |
+
|
| 168 |
+
However, the hypothesis that the critical-information-in-Fon condition would necessarily produce the lowest performance was not confirmed, since the French-Fon condition obtained the lowest accuracy.
|
| 169 |
+
|
| 170 |
+
## Limitations
|
| 171 |
+
|
| 172 |
+
This benchmark has several limitations.
|
| 173 |
+
|
| 174 |
+
First, it contains 160 evaluation instances and therefore represents a relatively small evaluation set.
|
| 175 |
+
|
| 176 |
+
Second, the benchmark focuses on French and Fon and should not be generalized automatically to all African languages or multilingual settings.
|
| 177 |
+
|
| 178 |
+
Third, the evaluation uses manually constructed scenarios and therefore reflects the design choices of the researchers.
|
| 179 |
+
|
| 180 |
+
Finally, the results concern the evaluated model and benchmark conditions and should not be interpreted as a general statement about all language models or about the overall ability of AI systems to understand Fon.
|
| 181 |
+
|
| 182 |
+
## Intended Use
|
| 183 |
+
|
| 184 |
+
This dataset can be used for:
|
| 185 |
+
|
| 186 |
+
- Evaluating multilingual language models.
|
| 187 |
+
- Studying code-switching between French and Fon.
|
| 188 |
+
- Studying low-resource language understanding.
|
| 189 |
+
- Analyzing contextual understanding in multilingual interactions.
|
| 190 |
+
- Reproducing the experiments described in the associated research project.
|
| 191 |
+
|
| 192 |
+
## Dataset Structure
|
| 193 |
+
|
| 194 |
+
The repository contains evaluation scenarios, model responses, annotations, result tables, visualizations and experimental notebooks.
|
| 195 |
+
|
| 196 |
+
## Citation
|
| 197 |
+
|
| 198 |
+
If you use this benchmark in academic work, please cite the associated research project.
|
| 199 |
+
|
| 200 |
+
## License
|
| 201 |
+
|
| 202 |
+
This dataset is released under the MIT License.
|