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

EA4LLM:一种基于进化算法的大语言模型无梯度优化方法

EA4LLM: A Gradient-Free Approach to Large Language Model Optimization via Evolutionary Algorithms

Shanghai Institute of Artifical Intelligence Education, East China Normal University, Shanghai, China(上海人工智能教育研究院,东华大学,上海,中国);School of Computer Science and Technology, East China Normal University, Shanghai, China(计算机科学与技术学院,东华大学,上海,中国);Shanghai Innovation Institute, Shanghai, China(上海创新研究院,上海,中国)

WenTao Liu, Siyu Song, Hao Hao, Aimin Zhou

AI总结:

针对大语言模型依赖梯度优化带来的硬件与可微性限制,本文提出无梯度的进化算法EA4LLM,首次在0.5B至32B规模上验证全参数预训练优化,挑战梯度唯一假设并降低训练成本。

摘要:

近年来,大语言模型(LLM)取得了显著进展,其模型优化主要依赖基于梯度的优化器(如Adam)。然而,这些基于梯度的方法对硬件提出了严格要求,需要高并发、高内存的GPU。此外,它们要求所有神经网络操作必须是可微分的,从而将许多有前景的不可微架构排除在实际应用之外。为解决这些局限性,我们提出了EA4LLM,一种用于优化大语言模型的进化算法,并首次实证验证了从预训练阶段开始、模型规模从0.5B到32B的全参数优化。我们进行了大量实验,并就进化算法如何有效优化神经网络提供了关键见解。我们的工作挑战了基于梯度的优化是训练神经网络的唯一可行方法这一普遍假设。同时,它还具有显著降低训练大语言模型计算成本的潜力,从而使计算资源有限的团队也能参与深度学习研究。

英文摘要:

In recent years, large language models (LLMs) have made remarkable progress, with model optimization primarily relying on gradient-based optimizers such as Adam. However, these gradient-based methods impose stringent hardware requirements, demanding high-concurrency, high-memory GPUs. Moreover, they require all neural network operations to be differentiable, thereby excluding many promising non-differentiable architectures from practical use. To address these limitations, we propose EA4LLM, an evolutionary algorithm for optimizing LLMs, and, for the first time, empirically verify full-parameter optimization from the pretraining stage across model sizes ranging from 0.5B to 32B. We conduct extensive experiments and provide key insights into how evolutionary algorithms can effectively optimize neural networks. Our work challenges the prevailing assumption that gradient-based optimization is the only viable approach for training neural networks. It also holds significant potential to reduce the computational cost of training large language models, thereby enabling groups with limited computational resources to participate in deep learning research.

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

↑