Machine Learning PapersLandmark papers
← All papers
RESEARCH PAPER / 2023

LLaMA: Open and Efficient Foundation Language Models

Hugo Touvron, Thibaut Lavril, Gautier Izacard ...Full author list in the original paper.

Facebook Research · landmark

Affiliations: Facebook Research

Abstract

We introduce LLaMA, a collection of foundation language models ranging from 7B to 65B parameters. We train our models on trillions of tokens, and show that it is possible to train state-of-the-art models using publicly available datasets exclusively, without resorting to proprietary and inaccessible datasets. In particular, LLaMA-13B outperforms GPT-3 (175B) on most benchmarks, and LLaMA-65B is competitive with the best models, Chinchilla-70B and PaLM-540B. We release all our models to the research community.

The following analysis is generated by AI and may contain errors. It is separate from the authors’ abstract and is not peer review.

Research summary

The paper introduces LLaMA, a series of competitive foundation language models trained exclusively on publicly available datasets, demonstrating significant performance improvements while addressing accessibility and sustainability in AI. The comprehensive methodology and rigorous evaluation make it a noteworthy contribution to the field of natural language processing.

Methodology

The methodology is robust, utilizing a mixture of publicly available datasets to train models that range from 7B to 65B parameters. The authors leverage existing scaling laws while innovating on the architecture with techniques like pre-normalization and SwiGLU activation functions. They also emphasize efficient training through optimizations that reduce memory usage and runtime, demonstrating a clear understanding of the trade-offs in model size and performance. The approach is well-justified and builds on established work while introducing practical improvements.

Results & evaluation

The experimental evaluation is comprehensive, comparing the performance of LLaMA models against several state-of-the-art models across multiple benchmarks. The results show that LLaMA-13B outperforms GPT-3 and that LLaMA-65B is competitive with larger models like Chinchilla and PaLM. The paper includes detailed performance metrics across various tasks, demonstrating the effectiveness of their models in zero-shot and few-shot settings.

Reproducibility

The authors provide sufficient details about the training process, architecture, and datasets used, which enhances reproducibility. They also share their models and code on GitHub, further facilitating replication of their results by the research community.

Limitations

While the paper highlights the use of publicly available datasets, it does not address potential biases or limitations inherent in these datasets. Additionally, the models' performance on certain benchmarks, such as MMLU, suggests that they may not be as competitive as others trained on larger, more diverse datasets. The paper also acknowledges the environmental impact of training large models, which could be a concern for sustainability.

Broader impact

The release of LLaMA models aims to democratize access to powerful language models, enabling researchers and practitioners to build upon their work without the barriers posed by proprietary datasets. This could lead to advancements in various applications of NLP, including but not limited to chatbots, content generation, and educational tools. The focus on reducing the carbon footprint of training large models also aligns with growing concerns about sustainability in AI research. The paper introduces LLaMA, a series of competitive foundation language models trained exclusively on publicly available datasets, demonstrating significant performance improvements while addressing accessibility and sustainability in AI. The comprehensive methodology and rigorous evaluation make it a noteworthy contribution to the field of natural language processing.

Curator note

Touvron et al.; Meta; open-weights foundation; sparked open-source LLM movement

Related later work

Author of this paper? Send a correction.