Aya 23: Open Weight Releases to Further Multilingual Progress

Viraat Aryabumi, John Dang, Dwarak Talupuru, Saurabh Dash, David Cairuz, Hangyu Lin, Bharat Venkitesh, Madeline Smith, Jon Ander Campos, Yi Chern Tan, Kelly Marchisio, Max Bartolo, Sebastian Ruder, Acyr Locatelli, Julia Kreutzer, Nick Frosst, Aidan N. Gomez, Phil Blunsom, Marzieh Fadaee, Ahmet Üstün, Sara HookerarXiv 2024

TL;DR

Cohere For AI has released Aya 23, a family of multilingual language models that significantly advance the state-of-the-art in 23 languages. By focusing on depth over breadth and leveraging a high-quality pre-trained model, Aya 23 outperforms existing models on a wide range of tasks, making powerful multilingual AI more accessible.

What Problem Does This Paper Address?

The field of large language models (LLMs) has historically been heavily English-centric, leading to poor performance in many other languages. This creates a "digital divide" and limits the equitable development and application of AI technologies globally. Existing multilingual models often struggle with the "curse of multilinguality," where broad language coverage comes at the cost of performance on any single language. The authors aim to address this by developing models that offer both strong performance and broad language coverage, specifically targeting languages spoken by a significant portion of the world's population.

Methods

The Aya 23 models are built upon Cohere's Command R+ pre-trained models, which are then instruction-tuned using the Aya multilingual instruction-style collection. A key aspect of Aya 23 is its focus on "depth vs. breadth," meaning it allocates more capacity to a curated set of 23 languages rather than attempting to cover a much larger number. This approach aims to alleviate the curse of multilinguality. The models utilize a standard decoder-only Transformer architecture with several optimizations, including parallel attention and FFN layers for training efficiency, SwiGLU activation, removal of biases from dense layers for stability, and rotary positional embeddings (ROPE) for better long-context extrapolation. For instruction tuning, they employ a data mixture including multilingual templates, human annotations, translated data, and synthetically generated data.

Datasets

Training Data: * Aya collection: A large multilingual instruction-style dataset. * Command R+ pre-trained model: The base model used for Aya 23. * xP3x dataset: Used for instruction tuning. * Data Provenance collection: Used for instruction tuning. * ShareGPT-Command: Used for generating synthetic data. * Dolly-15k: Used for generating synthetic data.

Evaluation Datasets: * Discriminative Tasks: XWinograd, XCOPA, XStoryCloze, and Multilingual MMLU. * Generative Tasks: FLORES-200 (for translation) and XLSum (for summarization). * Mathematical Reasoning: Multilingual Grade School Math (MGSM). * Preference Evaluation: Dolly-human-edited and Dolly-machine-translated test sets. * Safety, Toxicity & Bias: Multilingual AdvBench.

Key Insights and Ideas

  • Depth over Breadth: Focusing model capacity on a curated set of 23 languages, rather than a much larger set, leads to significant performance gains, mitigating the "curse of multilinguality."
  • High-Quality Pre-training is Crucial: The Aya 23 models, built on strong pre-trained models like Command R+, show substantial improvements over older models like Aya 101, highlighting the impact of the base model.
  • Open Weights Drive Progress: Releasing the weights of Aya 23 models is a commitment to democratizing access to advanced multilingual AI, empowering researchers and practitioners.
  • Balancing Model Size and Usability: While larger models (35B) achieve top performance, the 8B model offers a strong balance of multilingual capability and usability on consumer hardware.

Key Results

  • Discriminative Tasks: Aya-23-35B outperforms all baselines with an average score of 70.8%, surpassing Mixtral-8x7B. Aya-23-8B achieves the best score for its size class (67.6%), outperforming Gemma-1.1-7B-it.
  • Multilingual MMLU: Aya-23-35B outperforms Mixtral-8x7B on average (58.2% vs 57.1%), showing particular strength in non-European languages.
  • Mathematical Reasoning (MGSM): Aya-23 models outperform baselines. Aya-23-8B shows a 4.5x performance increase over Aya-101-13B. Aya-23-35B outperforms Mixtral-8x7B (53.7% vs 50.2%).
  • Generative Tasks (Translation & Summarization): Aya-23-8B achieves a higher spBleu score in translation than Aya-101-13B. Aya-23-35B significantly outperforms Mixtral-8x7B in both translation and summarization.
  • LLM-as-a-judge Evaluation: Aya-23 models show superior win rates against baseline models, particularly in non-European languages.
  • Human Evaluation: Aya 23 models consistently outperform Aya-101-13B, with Aya-23-8B winning 50.8% of the time on average and Aya-23-35B achieving 57.6%.
  • Safety, Toxicity & Bias: Aya 23 models show a lower rate of harmful responses compared to Aya-101-13B, with the 35B model further reducing harmfulness, especially in Arabic and Italian.

Limitations and Future Work

  • Limited Language Coverage: While Aya 23 covers 23 languages, this is still a small fraction of the world's ~7,000 languages, many of which are underrepresented online.
  • Pre-training Bias: The pre-training data underrepresents languages from Asia and Africa, a limitation the authors aim to address in future work.
  • Future Work: The authors plan to expand coverage to more languages, improve data collection and representation, and address cultural and linguistic nuances to ensure more equitable and effective language technologies. They also acknowledge that the models have not undergone targeted safety alignment beyond incidental learning from synthetic data.

Summary updated

BibTeX
@misc{aryabumi2024aya,
  author = {Viraat Aryabumi and John Dang and Dwarak Talupuru and Saurabh Dash and David Cairuz and Hangyu Lin and Bharat Venkitesh and Madeline Smith and Jon Ander Campos and Yi Chern Tan and Kelly Marchisio and Max Bartolo and Sebastian Ruder and Acyr Locatelli and Julia Kreutzer and Nick Frosst and Aidan N. Gomez and Phil Blunsom and Marzieh Fadaee and Ahmet Üstün and Sara Hooker},
  title = {{Aya 23: Open Weight Releases to Further Multilingual Progress}},
  year = {2024},
  eprint = {2405.15032},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.15032},
}
Figure