信任方向,搜索步长:面向大语言模型微调的零阶与一阶混合优化方法 Trust the Direction, Search the Step: Zero-and-First-Order Methods for LLM Fine-Tuning 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-01
⬇️ 5 次下载
👁️ 预览文献
💡 AI 中文简介
大模型微调时,步长选不好要么学得慢要么训崩。这篇论文提出ZFO框架,把“往哪走”和“走多远”分开:方向交给可靠的一阶优化器,步长则用零阶方法只沿这个方向做两次函数评估,构建局部模型来选一个考虑曲率的最优步长。理论上证明了这种估计可靠且能收敛,实验显示在多个语言模型和数据集上,它比固定步长的一阶方法优化更快、最终效果更好。
领域机器学习/优化算法,大语言模型高效微调
适合谁读需要一定专业背景(了解梯度下降、微调、零阶优化基本概念)
核心贡献提出ZFO框架,将方向选择与步长解耦,用一阶优化器定方向、零阶评估定步长;给出理论保证,证明共享样本的有限差分曲率估计可靠,且算法收敛到稳定点邻域。
关键数据相比固定步长一阶基线,ZFO在多个语言模型和数据集上频繁提升优化和最终性能;步长选择成本低于完整线搜索,仅需两次额外函数评估。
推荐理由如果你正被大模型微调的步长问题折磨,这篇论文提供了一个轻量又理论扎实的解法,代码已开源,值得一试。
关键词["大语言模型微调", "零阶优化", "一阶优化", "步长选择", "自适应优化", "曲率感知"]

原文摘要

查看英文原文摘要

Step-size selection remains a central challenge in large-scale neural network optimization; conservative steps slow convergence, while aggressive steps can destabilize it. We combine \textbf{Z}ero-and-\textbf{F}irst-\textbf{O}rder optimization~(ZFO) and propose a lightweight framework that decouples direction selection from step-size. ZFO uses a trusted first-order optimizer to determine the direction and performs zeroth-order evaluations only along this one-dimensional subspace to choose how far to move. Using the current {gradient information} and two additional objective function evaluations, ZFO instances construct a local model of the objective function along the proposed direction and select a curvature-aware step within a bounded search interval. This yields an adaptive step-selection mechanism that costs less than a full line search. We provide theoretical guarantees to show that shared-sample evaluations produce reliable finite-difference curvature estimates, that the induced local model selects a near-optimal step along the search interval, and that ZFO converges to a neighborhood of a stationary point. Across the evaluated settings, language models and datasets, ZFO frequently improves optimization and final performance relative to fixed-step first-order baselines, with the magnitude and preferred local model depending on the objective. Our code is publicly available at: https://github.com/nizswan/Zeroth-First-Order-Framework.