arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.12682cs.CLcs.AI
收藏

Mini-GPTs:通过上下文剪枝实现高效大型语言模型

Mini-GPTs: Efficient Large Language Models through Contextual Pruning

Massachusetts Institute of Technology(麻省理工学院)

Tim Valicenti, Justice Vidal, Ritik Patnaik

AI总结:

本文提出基于上下文剪枝的Mini-GPTs方法,在保留核心功能的同时大幅减小模型规模,并在多个领域数据集上验证了其高效性,为开发资源高效的领域特定LLMs提供了实用方案。

摘要:

在人工智能研究中,大型语言模型(LLMs)的优化仍然是一个重大挑战,对于推动该领域的实际应用和可持续性至关重要。本文基于麻省理工学院宋汉教授实验室的基础工作,提出了一种通过上下文剪枝开发Mini-GPTs的新方法。我们的方法策略性地剪枝传统LLMs(如Phi-1.5)的计算架构,专注于保留核心功能,同时大幅减小模型规模。我们在多样且复杂的数据集上应用该技术,包括美国法律、医疗问答、天际线对话、英台翻译和经济学文章。结果强调了上下文剪枝的效率和有效性,不仅作为理论概念,而且作为开发特定领域、资源高效型LLMs的实用工具。上下文剪枝是构建特定领域LLMs的一种有前景的方法,这项研究是未来在更多硬件计算、精细化微调和量化方面发展的基石。

英文摘要:

In AI research, the optimization of Large Language Models (LLMs) remains a significant challenge, crucial for advancing the field's practical applications and sustainability. Building upon the foundational work of Professor Song Han's lab at MIT, this paper introduces a novel approach in developing Mini-GPTs via contextual pruning. Our methodology strategically prunes the computational architecture of traditional LLMs, like Phi-1.5, focusing on retaining core functionalities while drastically reducing model sizes. We employ the technique across diverse and complex datasets, including US law, Medical Q&A, Skyrim dialogue, English-Taiwanese translation, and Economics articles. The results underscore the efficiency and effectiveness of contextual pruning, not merely as a theoretical concept but as a practical tool in developing domain-specific, resource-efficient LLMs. Contextual pruning is a promising method for building domain-specific LLMs, and this research is a building block towards future development with more hardware compute, refined fine-tuning, and quantization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑