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

AlphaAdam:用于选择性更新的动态Alpha异步掩码优化

AlphaAdam:Asynchronous Masked Optimization with Dynamic Alpha for Selective Updates

Da Chang, Yu Li, Ganzhao Yuan

AI总结:

本文提出AlphaAdam优化框架,通过层内异步掩码和动态调整更新强度实现LLM参数选择性更新,在GPT-2、RoBERTa和Llama-7B等任务上相比AdamW提升收敛速度与计算效率。

摘要:

在大语言模型(LLMs)的训练中,更高效、更稳定地更新参数一直是一个重要挑战。为了实现高效的参数更新,现有方法通常通过低维分解或逐层选择性更新等方式,达到与全参数更新相当的性能。在本文中,我们提出AlphaAdam,一个从层内参数更新角度出发的LLM优化框架。通过解耦参数更新并动态调整其更新强度,AlphaAdam加速收敛并提升训练稳定性。我们基于历史动量与梯度方向的一致性构建参数掩码,并将其与自适应掩码强度策略相结合,以确保高效优化和理论收敛保证,该方法同样适用于大多数基于动量的优化器。大量实验表明,AlphaAdam在收敛速度和计算效率方面优于AdamW等最先进方法,任务涵盖GPT-2预训练以及微调的RoBERTa和Llama-7B。我们的AlphaAdam通过层内异步掩码自适应更新,实现了面向LLMs的优化器增强框架。我们的代码可在https://github.com/MaeChd/AlphaAdam获取。

英文摘要:

In the training of large language models (LLMs), updating parameters more efficiently and stably has always been an important challenge. To achieve efficient parameter updates, existing methods usually achieve performance comparable to full parameter updates through methods such as low-dimensional decomposition or layer-wise selective updates. In this work, we propose AlphaAdam, an optimization framework for LLM from the perspective of intra-layer parameter updates. By decoupling parameter updates and dynamically adjusting their strength, AlphaAdam accelerates convergence and improves training stability. We construct parameter masks based on the consistency of historical momentum and gradient direction and combine them with an adaptive mask strength strategy to ensure efficient optimization and theoretical convergence guarantees, which is also applicable to most momentum-based optimizers. Extensive experiments show that AlphaAdam outperforms state-of-the-art methods such as AdamW in terms of convergence speed and computational efficiency across tasks, including GPT-2 pre-trained and fine-tuned RoBERTa and Llama-7B. Our AlphaAdam implements an optimizer enhancement framework for LLMs through intra-layer asynchronous masked adaptive updates. Our code is available in this https://github.com/MaeChd/AlphaAdam.

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

↑