系统梳理大模型优化方法,实现高性能不降精度。
Achieving Peak Performance for Large Language Models: A Systematic Review
- 按训练、推理、服务三类整理优化策略
- 涵盖65篇文献,覆盖2017至2023年研究
- 提供训练与推理优化案例,适合资源受限者
近年来,大语言模型(LLMs)在自然语言处理中取得显著进展。模型需海量参数以达高精度,当参数量进入万亿级时,计算与内存开销急剧上升,使多数研究者难以获取训练或应用资源。优化大模型性能主要依赖两类路径:针对特定任务微调预训练模型以达到顶尖水平,以及在保持相近性能的前提下降低资源消耗或提升训练效率。本文遵循PRISMA声明,对2017年至2023年12月间从5个数据库检索的983篇文献进行系统性回顾,筛选出65篇高质量论文。研究综述了语言建模发展脉络,详细解析常用框架与工具,提出基于训练、推理与系统服务三类的优化分类体系。深入探讨训练优化、硬件加速、可扩展性与可靠性等策略,并进行系统对比。最后通过两个案例展示模型训练优化与推理效率提升的实际路径,为缓解大模型资源瓶颈提供可行方案。
原文摘要 · Abstract (English)
In recent years, large language models (LLMs) have achieved remarkable success in natural language processing (NLP). LLMs require an extreme amount of parameters to attain high performance. As models grow into the trillion-parameter range, computational and memory costs increase significantly. This makes it difficult for many researchers to access the resources needed to train or apply these models. Optimizing LLM performance involves two main approaches: fine-tuning pre-trained models for specific tasks to achieve state-of-the-art performance, and reducing costs or improving training time while maintaining similar performance. This paper presents a systematic literature review (SLR) following the Preferred Reporting Items for Systematic Reviews and Meta-Analyses (PRISMA) statement. We reviewed 65 publications out of 983 from 2017 to December 2023, retrieved from 5 databases. The study presents methods to optimize and accelerate LLMs while achieving cutting-edge results without sacrificing accuracy. We begin with an overview of the development of language modeling, followed by a detailed explanation of commonly used frameworks and libraries, and a taxonomy for improving and speeding up LLMs based on three classes: LLM training, LLM inference, and system serving. We then delve into recent optimization and acceleration strategies such as training optimization, hardware optimization, scalability and reliability, accompanied by the taxonomy and categorization of these strategies. Finally, we provide an in-depth comparison of each class and strategy, with two case studies on optimizing model training and enhancing inference efficiency. These case studies showcase practical approaches to address LLM resource limitations while maintaining performance.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。