A Survey of Large Language Models

Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, Yifan Du, Chen Yang, Yushuo Chen, Zhipeng Chen, Jinhao Jiang, Ruiyang Ren, Yifan Li, Xinyu Tang, Zikang Liu, Peiyu Liu, Jian-Yun Nie, Ji-Rong Wen

Introduction

The field of Artificial Intelligence has undergone a seismic shift since the release of ChatGPT. This survey serves as a definitive technical framework for the Large Language Model (LLM) era, mapping the evolution from basic statistical models to sophisticated reasoning agents. It addresses the "information explosion" by synthesizing the development secrets of successful LLMs and exploring the fundamental mystery of emergent abilities—capabilities like multi-step logic that appear only after models cross specific scaling thresholds.

The Evolution of Task-Solving Capacity

The progression of language modeling can be categorized into four distinct stages, moving from specialized tools to general-purpose intelligence.

Evolutionary stages of language models from statistical helpers to general-purpose solvers.
  1. Statistical LM: Early n-gram models focused on probability estimation to assist in specific tasks.
  2. Neural LM: Models like Word2vec introduced task-agnostic feature learning through neural context modeling.
  3. Pre-trained LM: The era of BERT and GPT-1/2 brought transferable NLP solvers using pre-training and fine-tuning.
  4. Large Language Model (LLM): Current models like GPT-4 and Claude act as general-purpose solvers, utilizing scaling and prompt-based completion to tackle real-world tasks.

The LLM Lifecycle: From Pre-training to Utilization

The survey categorizes the LLM lifecycle into four major stages:

  • Pre-training: Utilizing massive corpora (e.g., CommonCrawl, RedPajama) and decoder-only Transformer architectures. The "data curriculum"—the mixture and order of these sources—is critical for success.
  • Adaptation Tuning: Refining models through Instruction Tuning and Alignment Tuning (RLHF) to ensure safety and helpfulness, though this often incurs an "alignment tax" on raw performance.
  • Utilization: Leveraging advanced techniques like In-Context Learning (ICL) and Chain-of-Thought (CoT) reasoning. Recent "Long CoT" models (like o1 or DeepSeek-R1) trade inference-time computation for better reasoning.
  • Capacity Evaluation: Moving beyond simple benchmarks to complex "LLM-as-a-judge" paradigms to measure intelligence.

A Taxonomy of Modern Models

The landscape is divided between publicly available research models and proprietary closed-source systems, each with varying technical specifications.

Comprehensive comparison of publicly available and closed-source large language models.

As shown in the technical breakdown above, models vary significantly in parameter count, training data scale (often exceeding 1T tokens), and hardware requirements. While GPT-4 remains a closed-source benchmark, open-source series like LLaMA and DeepSeek have rapidly narrowed the performance gap through efficient techniques like LoRA and 4-bit quantization.

Key Insights and Future Challenges

Research indicates that performance in LLMs does not just improve linearly; certain abilities appear abruptly, resembling a phase transition in physics. This is governed by scaling laws, where the field has shifted from KM scaling to the Chinchilla law, emphasizing that models are often under-trained relative to their data potential. Despite this progress, several "grand challenges" remain:

  • Hallucination: Models still confidently state falsehoods, requiring further research into RAG and fact-checking.
  • Data Scarcity: The industry is approaching the limit of high-quality human text, necessitating a shift toward synthetic data.
  • Evaluation Bias: As models exceed human grading capabilities, the community must address the biases inherent in using LLMs to evaluate other LLMs.

Summary updated

BibTeX
@misc{zhao2023survey,
  author = {Wayne Xin Zhao and Kun Zhou and Junyi Li and Tianyi Tang and Xiaolei Wang and Yupeng Hou and Yingqian Min and Beichen Zhang and Junjie Zhang and Zican Dong and Yifan Du and Chen Yang and Yushuo Chen and Zhipeng Chen and Jinhao Jiang and Ruiyang Ren and Yifan Li and Xinyu Tang and Zikang Liu and Peiyu Liu and Jian-Yun Nie and Ji-Rong Wen},
  title = {{A Survey of Large Language Models}},
  year = {2023},
  eprint = {2303.18223},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.18223},
}
Figure