TL;DR
Apertus is a new suite of fully open-source Large Language Models (LLMs) that tackles critical issues in the current LLM landscape: data compliance and multilingualism. By training exclusively on openly available data with rigorous filtering and employing novel techniques like the Goldfish Loss, Apertus aims to provide transparent, ethical, and globally accessible LLMs.
What Problem Does This Paper Address?
The proliferation of powerful LLMs has been hampered by two key shortcomings in the open-source ecosystem:
- Data Compliance: Many "open-weight" models lack transparency regarding their training data, often failing to respect content owner rights (e.g.,
robots.txtexclusions) and potentially including copyrighted or personally identifiable information. This raises significant legal and ethical concerns, hindering broader adoption and development. - Multilingual Representation: Existing open models often focus on a limited set of high-resource languages, leaving a significant gap in their applicability for global language environments. This limits their utility for a vast portion of the world's population.
Apertus aims to democratize LLMs by addressing these limitations, setting new standards for data compliance and massively expanding multilingual coverage.
Methods
Apertus employs several innovative techniques and architectural choices:
- Data Compliance:
- Retroactive
robots.txtFiltering: The models are trained exclusively on openly available data, with a strict policy of retroactively respectingrobots.txtexclusions from January 2025. This means data from websites that have opted out of AI crawling is removed, even if collected previously.
- Retroactive
- PII and Toxicity Filtering: Rigorous filtering is applied to remove personally identifiable information (PII) and toxic content.
- Permissive Licensing: All released artifacts, including code, data preparation scripts, and checkpoints, are under permissive licenses to ensure transparency and facilitate extension.
- Memorization Prevention:
- Goldfish Loss: Instead of standard cross-entropy loss, Apertus uses the Goldfish Loss, a technique that selectively masks tokens during pretraining. This method is designed to suppress verbatim recall of training data while preserving downstream task performance.
- Multilingualism:
- Massive Language Coverage: The models are trained on 15 trillion tokens from over 1800 languages, with approximately 40% of the pretraining data dedicated to non-English content.
- Extended Post-Training Data: Post-training data also includes a significant multilingual component, covering 149 languages.
- Architecture:
- Dense Decoder-Only Transformer: Apertus models are based on a dense decoder-only Transformer architecture, similar to Llama.
- xIELU Activation Function: A novel xIELU activation function is used to improve efficiency.
- QK-Norms and RMSNorm: These techniques are employed for improved training stability and efficiency.
- Group-Query Attention (GQA): Used for inference efficiency.
- Long Context Extension: Models are trained with an extended context length of up to 65,536 tokens.
Datasets
- Pretraining Datasets:
- FineWeb-2: A large multilingual web-crawl dataset covering 1811 languages.
- FineWeb-2-HQ: A quality-filtered subset of FineWeb-2 for 20 high-resource languages.
- FineWeb-Edu: A dataset filtered for educational content.
- DCLM-Edu: Educational classifier applied to DCLM dataset.
- StarCoderData & StarCoder Edu: Code datasets for mathematical, coding, and task-solving abilities.
- FineMath: Mathematical data filtered for educational content.
- MegaMath: Open math pretraining dataset.
- EuroParl & Paradocs: Sentence-level parallel data for translation.
- Clean Wikipedia: Multilingual Wikipedia corpus.
- Project Gutenberg: Permissively licensed texts for memorization analysis.
- FM-Probes: Synthetic Gutenberg sequences for memorization studies.
- Synthetic Data Poisoning: Synthetically generated examples for data poisoning research.
- Romansh Data: A Romansh corpus covering various dialects and sources.
- Post-training Datasets: A curated mixture of instruction-following datasets, including:
- OLMO2, Tulu3, WildChat, SciRiff, TableGPT, CoCoNot, OASST1: Foundation instruction data.
- Llama-Nemotron Math, OpenMath GSM8K, Llama-Nemotron Chat/Safety: Mathematical and reasoning data.
- Llama-Nemotron Code, Glaive Function Calling, XLam Function Calling, APIGen: Code and technical data.
- SmolTalk2, EuroBlocks, s1k_42_langs: Multilingual and cultural data.
- Tome dataset: Structured knowledge data.
- Swiss AI Charter: Constitutional alignment examples.
- Romansh Wikipedia Q&A: Low-resource language data.
- New Benchmarks: The paper introduces SwitzerlandQA, a novel benchmark specifically tailored to Switzerland's context, covering geography, history, social life, political life, and insurance. It aims to evaluate LLMs on their understanding of Swiss naturalization exams and civic education materials.
Key Insights and Ideas
- Data Compliance is Achievable and Necessary: Apertus demonstrates that it's possible to build powerful LLMs while rigorously adhering to data compliance principles, including retroactive
robots.txtfiltering. This sets a crucial precedent for ethical LLM development. - Goldfish Loss Effectively Mitigates Memorization: The Goldfish Loss, applied during pretraining, significantly reduces verbatim recall of training data without substantially impacting downstream performance. This is a key step towards building safer and more trustworthy LLMs.
- Massive Multilingualism is Within Reach: By training on 15T tokens from over 1800 languages, Apertus pushes the boundaries of multilingual LLM capabilities, making them more accessible and useful globally.
- Transparency is Paramount: The commitment to releasing all artifacts under permissive licenses fosters trust and enables community-driven auditing, extension, and improvement.
- Trade-offs Between Safety and Utility Exist: The paper acknowledges the inherent tension between ensuring model harmlessness and maintaining its utility. Apertus aims for a balance, recognizing that overly strict safety measures can render models less useful.
Key Results
- State-of-the-Art Performance: Apertus models (8B and 70B scales) achieve state-of-the-art results among fully open models on multilingual benchmarks, rivaling or surpassing open-weight counterparts.
- Improved Training Efficiency: The AdEMAMix optimizer and WSD learning rate schedule contribute to more efficient training.
- Robustness to Memorization: Goldfish Loss effectively suppresses verbatim recall, with Rouge-L scores remaining at baseline levels across various exposure frequencies and prefix lengths.
- Strong Multilingual Capabilities: Apertus shows consistently strong multilingual capabilities across Global, EU, and Swiss evaluation macros.
- Data Compliance Impact: While license filtering and decontamination can lead to a slight drop in performance on some benchmarks, they are deemed necessary for responsible model development.
Limitations and Future Work
- Limitations:
- Language Coverage: While Apertus supports over 1800 languages, performance may still vary, particularly for low-resource languages.
- Safety Trade-offs: The paper acknowledges the inherent trade-off between safety and utility, and that overly strict safety measures can impede model usefulness.
- Jailbreak Resilience: Jailbreak resilience is considered out-of-scope for the initial deployment, relying on production-level guardrails.
- Deterministic Hashing Fragility: Goldfish Loss's deterministic hashing can be fragile to near-duplicates in training data.
- Potential for Improvement: The authors note that further work is needed to improve performance in math, coding, and reasoning tasks, and to enhance the robustness of safety measures.
- Future Work:
- Scaling: Train larger models and longer-context variants while maintaining compliance and transparency.
- Distillation: Distill the 70B model into smaller students for constrained settings without compromising multilingual and safety properties.
- Data-to-Performance Mapping: Systematically study how specific data slices and governance choices affect capabilities, fairness, and memorization.
- Reasoning with Adaptive Compute: Explore test-time variable computation for more efficient reasoning.
- RL with Verifiers: Develop RLVR pipelines that combine preference optimization with explicit verifiers.
- Multimodality: Extend the stack to visual, sonic, and other data modalities.
- Societal Alignment: Incorporate diverse Swiss and multilingual preferences to inform alignment objectives.
- Field Evaluation: Conduct structured studies with domain professionals and the public to assess real-world impact.
Summary updated