A Survey of Context Engineering for Large Language Models
Mei, Lingrui, Yao, Jiayu, Ge, Yuyao, Wang, Yiwei, Bi, Baolong, Cai, Yujun, Liu, Jiazhi, Li, Mingyu, Li, Zhong-Zhi, Zhang, Duzhen, Zhou, Chenlin, Mao, Jiayi, Xia, Tianze, Guo, Jiafeng, Liu, Shenghua
–arXiv.org Artificial Intelligence
The performance of Large Language Models (LLMs) is fundamentally determined by the contextual information provided during inference. This survey introduces Context Engineering, a formal discipline that transcends simple prompt design to encompass the systematic optimization of information payloads for LLMs. We present a comprehensive taxonomy decomposing Context Engineering into its foundational components and the sophisticated implementations that integrate them into intelligent systems. We first examine the foundational components: context retrieval and generation, context processing and context management. We then explore how these components are architecturally integrated to create sophisticated system implementations: retrieval-augmented generation (RAG), memory systems and tool-integrated reasoning, and multi-agent systems. Through this systematic analysis of over 1400 research papers, our survey not only establishes a technical roadmap for the field but also reveals a critical research gap: a fundamental asymmetry exists between model capabilities. While current models, augmented by advanced context engineering, demonstrate remarkable proficiency in understanding complex contexts, they exhibit pronounced limitations in generating equally sophisticated, long-form outputs. Addressing this gap is a defining priority for future research. Ultimately, this survey provides a unified framework for both researchers and engineers advancing context-aware AI.
arXiv.org Artificial Intelligence
Jul-22-2025
- Country:
- Asia
- China
- Jiangsu Province > Nanjing (0.04)
- Liaoning Province > Dalian (0.04)
- Shandong Province > Yantai (0.04)
- Tianjin Province > Tianjin (0.04)
- Middle East > Jordan (0.04)
- Myanmar > Tanintharyi Region
- Dawei (0.04)
- China
- Europe
- Italy > Calabria
- Catanzaro Province > Catanzaro (0.04)
- Romania > Sud - Muntenia Development Region
- Giurgiu County > Giurgiu (0.04)
- Italy > Calabria
- North America > United States
- Montana (0.04)
- South America
- Chile > Santiago Metropolitan Region
- Santiago Province > Santiago (0.04)
- Uruguay > Maldonado
- Maldonado (0.04)
- Chile > Santiago Metropolitan Region
- Asia
- Genre:
- Overview (1.00)
- Industry:
- Education (0.92)
- Health & Medicine (1.00)
- Information Technology > Security & Privacy (0.45)
- Technology: