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

受自然启发的大语言模型基于种群的进化

Nature-Inspired Population-Based Evolution of Large Language Models

Northeastern University(东北大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)

Yiqun Zhang, Peng Ye, Xiaocui Yang, Shi Feng, Shufei Zhang, Lei Bai, Wanli Ouyang, Shuyue Hu

AI总结:

本文提出受自然启发的LLM种群进化框架,通过交叉、变异、选择和继承操作,在无梯度下快速适应新任务,准确率最高提升54.8%,并支持多任务同时进化与零样本泛化。

摘要:

进化是地球上生命生存和增长背后的引擎,通过基于种群的繁殖过程运作。受此原理启发,本文正式定义了一个新兴问题——大语言模型(LLMs)的基于种群的进化——并引入了一个新颖的框架。从一组父代 LLMs 开始,我们的框架使种群通过四个关键操作进行进化:(i) 交叉,合并不同父代的权重以创建子代 LLMs;(ii) 变异,引入对模型权重的小幅随机变化以促进多样性;(iii) 选择,优先考虑高性能模型;以及 (iv) 继承,将学习到的经验从父代转移到子代 LLMs。每个新任务仅需 200 个样本,LLM 种群即可快速进化以适应当前任务,且无需任何梯度。在 12 个数据集上的实验表明,我们的框架始终优于现有的多 LLM 合并和适应方法,与初始种群中的最佳 LLM 相比,准确率最高提升 54.8%。此外,我们的框架允许 LLMs 同时跨多个新任务进行进化,在多达 40 个 LLMs 的种群中有效扩展,甚至能对未见的保留任务实现零样本泛化。我们已在 GitHub 上开源代码,并在 HuggingFace 上发布了从 gemma-2-2b-it 微调的 10 个父代 LLMs 的权重,仅需一块具有 24GB 内存的 4090 GPU 即可复现我们提出的框架,且无任何性能下降。

英文摘要:

Evolution, the engine behind the survival and growth of life on Earth, operates through the population-based process of reproduction. Inspired by this principle, this paper formally defines a newly emerging problem -- the population-based evolution of large language models (LLMs) -- and introduces a novel framework. Starting with a population of parent LLMs, our framework enables the population to evolve through four key operations: (i) crossover, merging the weights of different parents to create offspring LLMs, (ii) mutation, introducing small, random changes to model weights to foster diversity, (iii) selection, prioritizing high-performing models, and (iv) succession, transferring the learned experience from parent to offspring LLMs. With only 200 samples per new task, the LLM population evolves rapidly to adapt to the task at hand, without any gradients. Experiments on 12 datasets show that our framework consistently outperforms existing multi-LLM merging and adaptation methods, achieving accuracy gains of up to 54.8% over the best LLM in the initial population. Moreover, our framework allows for the evolution of LLMs across multiple new tasks simultaneously, scaling effectively with populations of up to 40 LLMs, and even zero-shot generalization to unseen held-out tasks. We have open-sourced the code on GitHub and released the weights of 10 parent LLMs, fine-tuned from gemma-2-2b-it, on HuggingFace$, enabling reproduction of our proposed framework using just a single 4090 GPU with 24GB memory, without any performance degradation.

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

↑