EuroAlpaca: Task-Preserving Localisation of Instruction Data for European Languages
Organizations: Scientific Research, Telefónica Innovación Digital · Universitat Politècnica de Catalunya Barcelona, Spain
Abstract
Machine translation (MT) offers a scalable way to extend English instruction-tuning data to multiple languages, but it can distort task-critical constraints and required outputs, creating corrupted training examples and degrading models trained on such data. We introduce EuroAlpaca, a task-preserving localisation pipeline and near-parallel resource covering 50 European languages and regional varieties, together with European-IFEval, a multilingual benchmark for verifiable instruction following. Depending on the example, our pipeline applies field-wise MT while preserving task-critical content or reconstructs a task-equivalent target-language instance, followed by validation of cross-field coherence and target-language consistency. Across LoRA experiments with four LLMs, training on directly translated data improves ROUGE-L and F-BERT on the Aya Evaluation Suite, but reduces accuracy on European-IFEval by 29.8% relative to the unadapted baseline. In contrast, adaptation with EuroAlpaca improves accuracy by 12.9% over the same baseline, reversing the degradation caused by direct MT, while also achieving the highest ROUGE-L and F-BERT scores on Aya. These results show that preserving task semantics is essential for multilingual instruction tuning.
Figures & tables
| Handling regime | Count | % |
| Direct translation | 27,946 | 54.0 |
| Field-preserving translation | 12,726 | 24.6 |
| Task-level localisation | 11,088 | 21.4 |
| Total | 51,760 | 100.0 |
| Failure type | Typical cases | Handling policy |
| Source-language form dependence | Grammar or spelling correction, punctuation judgements, tense/voice edits, alphabetic ordering | Generate an analogous target-language task and recompute the output. |
| Lexical or phonological constraints | Letter/character counts, word counts, rhymes, acrostics, mnemonics, puns, anagrams | Replace the constrained material with target-language content satisfying the same constraint. |
| Language- or culture-specific expressions | Idioms, proverbs, fixed expressions, English-only prompts, language-specific examples | Substitute a natural target-language analogue while preserving task intent and difficulty. |
| Protected literals | Code, URLs, paths, identifiers, formulas, quoted strings, names, titles, table columns | Preserve fields containing task-critical literal artefacts. |
| Fixed output vocabulary or schema | Classification labels, JSON keys, structured outputs, canonical options | Preserve fields defining or containing the required labels or output format. |
| Field-role dependence | Translation tasks, demonstrations, input–output examples, source/target language roles | Preserve the role of each field rather than translating all fields uniformly. |
| Source task | Uniform MT failure | Task-preserving construction |
| Correct the grammar in an intentionally erroneous sentence. | Translation may silently remove the error, leaving nothing to correct. | Create a comparable target-language error and provide its correction. |
| Return a word that rhymes with a given word. | Rhyme depends on target-language phonology. Translated words may not rhyme. | Select a target-language cue and answer satisfying the same relation. |
| Write exactly ten words about a topic. | Word counts are not preserved under translation. | Generate target-language text satisfying the count. |
| Classify with exact labels. | Translating labels can break the required output vocabulary or automatic checker. | Translate the content but preserve the labels verbatim. |
| Interpret an idiom. | Literal translation may produce a nonsensical expression or a different idiom. | Replace it with a natural target-language idiom and explain that expression. |
| Translate a sentence from language A to language B. | Translating every field can invalidate the specified language pair. | Translate the instruction, but preserve the source and target texts. |
| Aya ROUGE-L | Aya F bert | European-IFEval Acc. | |||||
| Model | Training data | Mean | OTS | Mean | OTS | Mean | OTS |
| Tiny-Aya-Global | Off-the-shelf | 0.103 | – | 0.824 | – | 0.421 | – |
| Direct MT | 0.228 | +0.125 | 0.872 | +0.049 | 0.295 | 0.126 | |
| Task-Preserved | 0.232 | +0.129 | 0.874 | +0.050 | 0.446 | +0.025 | |
| EuroAlpaca | 0.238 | +0.135 | 0.877 | +0.054 | 0.499 | +0.078 | |
| Phi-4-Mini-Instruct | Off-the-shelf | 0.091 | – | 0.827 | – | 0.258 | – |
| Training data | Training data | Training data | |||||||
| Eval metric (Macro Avg) | Okapi | EuroAlpaca | MITS | EuroAlpaca | Bactrian-X | EuroAlpaca | |||
| Aya ROUGE-L | 16 | 0.231 | 0.239 | 35 | 0.212 | 0.223 | 19 | 0.217 | 0.232 |
| Aya F bert | 16 | 0.879 | 0.879 | 35 | 0.864 | 0.870 | 19 | 0.871 | 0.878 |
| European-IFEval Acc. | 17 | 0.377 | 0.397 | 38 | 0.289 | 0.359 | 20 | 0.401 | 0.385 |
| Resource | Sample-level alignment | Embedding similarity |
| Okapi | Yes | 0.867 |
| EuroAlpaca | Yes | 0.860 |
| Bactrian-X | Yes | 0.800 |
| MITS | No | – |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Tier | Languages | Hugging Face Dataset ID |
| Native-speaker or professional translator (human-curated) | ca | projecte-aina/IFEval_ca |
| da | danish-foundation-models/ifeval-da | |
| de | jzhang86/de_ifeval | |
| el | ilsp/ifeval_greek | |
| es | BSC-LT/IFEval_es | |
| et | tartuNLP/ifeval_et |
| Parameter | Value |
| Method | LoRA |
| Rank / alpha / dropout | 16 / 32 / 0.05 |
| Target modules | q , k , v , and o projections |
| Maximum sequence length | 1,300 tokens by default |
| Optimiser | AdamW |
| Learning rate |
| Component | Configuration |
| Decision model | Gemma-4-31B-IT, Q8_K_XL GGUF |
| Draft model | Gemma-4-E2B-IT, Q4_K_XL GGUF |
| Decoding | Temperature , top- , min- |
| Penalties | None explicitly configured |
| Reasoning | Disabled |
| Speculative decoding | 5–16 draft tokens |
Instruction Tuning
Instruction tuning adapts pretrained language models to follow natural-language requests using curated or synthesized instruction-response examples.
See all 81 papers