AMALIA Technical Report: A Fully Open Source Large Language Model for European Portuguese

Afonso Simplício, Gonçalo Vinagre, Miguel Moura Ramos, Diogo Tavares, Rafael Ferreira, Giuseppe Attanasio, Duarte M. Alves, Inês Calvo, Inês Vieira, Rui Guerra, James Furtado, Beatriz Canaverde, Iago Paulo, Vasco Ramos, Diogo Glória-Silva, Miguel Faria, Marcos Treviso, Daniel Gomes, Pedro Gomes, David Semedo, André Martins, João MagalhãesarXiv 2026

TL;DR

AMALIA is a new, fully open-source 9B parameter large language model tailored specifically for European Portuguese (pt-PT) to counter the English and Brazilian Portuguese (pt-BR) biases prevalent in current models. Alongside the model, the authors introduce a novel suite of native benchmarks designed to evaluate regional linguistic and cultural nuances accurately. AMALIA sets a new state-of-the-art among fully open models on pt-PT specific tasks while remaining highly competitive on general multilingual benchmarks.

What Problem Does This Paper Address?

Current LLM development is heavily English-centric, and even multilingual models frequently neglect regional language variants. For Portuguese, models are overwhelmingly biased toward Brazilian Portuguese (pt-BR) due to the sheer abundance of web data. Furthermore, evaluating these models usually relies on machine-translated English benchmarks, which completely miss the unique linguistic, grammatical, and cultural nuances of European Portuguese (pt-PT). The authors address this dual gap by creating both a pt-PT optimized model and a suite of native evaluation datasets.

Methods

The authors built AMALIA by adapting the final pretraining phase of EuroLLM-9B. They injected 5.8 billion high-quality tokens from the Portuguese Web Archive (Arquivo.pt), explicitly filtering out .br domains to isolate pt-PT text. They also scaled the model's context window to 32K using RoPE scaling.

For alignment, they performed Supervised Fine-Tuning (SFT) using a curated mix of synthetic data (generated via a PersonaHub-inspired approach) and human-curated linguistic datasets. Finally, they applied Direct Preference Optimization (DPO). To prevent the common pitfall where DPO degrades reasoning performance, they used domain-specific teacher models (like Qwen 3-32B) to generate high-quality "chosen" responses for math and reasoning tasks, rather than relying solely on the base model's generations.

Datasets

The model utilizes 5.8B tokens of filtered pt-PT data from Arquivo.pt, alongside code from Stack-v2 and the original EuroLLM mixture. The SFT phase uses a diverse dataset mixture targeting instruction following, conversational reasoning, mathematics, and safety.

Data mixture used in the Supervised Fine-Tuning stage.

To ensure faithful evaluation, the authors introduced four new pt-PT native datasets alongside standard translated benchmarks:

  1. PT-PT Completions (PT-C): 70 curated examples testing vocabulary choices unique to pt-PT vs pt-BR (e.g., selecting comboios over trem).
  2. PT Exams (PT-E): Over 3.6K multiple-choice and open questions extracted from official Portuguese national high school exams spanning 2006–2023.
  3. ALBA: An 800-question expert-curated linguistics benchmark covering syntax, morphology, and culture-bound semantics.
  4. P3B3: A 200-prompt multi-turn benchmark explicitly designed to measure model bias between pt-PT and pt-BR.
Summary of datasets used for evaluation.

Key Insights and Ideas

  • Data Quality > Quantity for Dialects: Even though the pt-PT training data is orders of magnitude smaller than dominant English or pt-BR datasets, targeted data filtering (like stripping .br domains) and high-quality post-training allow the model to successfully capture subtle regional traits.
  • DPO Requires Domain-Specific Guardrails: Standard DPO can inadvertently hurt math and instruction-following capabilities if the reward model favors superficial stylistic traits. Using targeted teacher/critic pairs (Qwen 3-32B vs Qwen 3-0.6B) for preference data generation keeps reasoning sharp.
  • Resisting Dialect Collapse: Most global models suffer from "dialect collapse," defaulting to pt-BR even when explicitly prompted for pt-PT. AMALIA proves that targeted mid-training and variant-specific data mixtures can reverse this bias.

Key Results

  • Linguistic Fidelity: AMALIA-9B-DPO achieved state-of-the-art performance among fully open models across almost all pt-PT specific tasks. On the P3B3 bias benchmark, AMALIA-9B-DPO scored 95.9, vastly outperforming other open models like Llama 3.1-8B (27.8) and Qwen 3-8B (18.9), which heavily favor Brazilian Portuguese.
  • Academic & Grammatical Excellence: On PT Exams (Open Questions) and ALBA, AMALIA-9B-DPO scored 66.0 and 43.6 respectively, leading the fully open model category.
Language generation results of instruction-tuned variants on the newly created pt-PT benchmarks.
  • General Capabilities: It maintained strong general capabilities, matching or beating open baselines on translated standard benchmarks like MMLU and ARC-C.
Results of instruction-tuned variants on general and translated benchmarks.
  • Safety: Safety evaluations showed that the DPO step successfully halved the Attack Success Rate (ASR) compared to the SFT baseline, making the model highly resilient against jailbreaks.
ASR results of instruction-tuned variants on safety benchmarks.

Limitations and Future Work

The authors note that the extreme scarcity of native pt-PT datasets remains a major bottleneck for both training and deeper cultural evaluation. Additionally, due to limited computational resources, the model's pretraining was restricted to a few billion targeted tokens rather than trillions.

Future work will focus on expanding reasoning capabilities in both pt-PT and pt-BR, extending the context window, exploring reinforcement learning with verifiable rewards, and incorporating tool-calling features.

Summary updated

BibTeX
@misc{simplicio2026amalia,
  author = {Afonso Simplício and Gonçalo Vinagre and Miguel Moura Ramos and Diogo Tavares and Rafael Ferreira and Giuseppe Attanasio and Duarte M. Alves and Inês Calvo and Inês Vieira and Rui Guerra and James Furtado and Beatriz Canaverde and Iago Paulo and Vasco Ramos and Diogo Glória-Silva and Miguel Faria and Marcos Treviso and Daniel Gomes and Pedro Gomes and David Semedo and André Martins and João Magalhães},
  title = {{AMALIA Technical Report: A Fully Open Source Large Language Model for European Portuguese}},
  year = {2026},
  eprint = {2603.26511},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.26511},
}
Figure