梯度自由与梯度依赖微调可达到相似精度,但参数更新路径完全不同。
Matching Accuracy, Different Geometry: Evolution Strategies vs GRPO in LLM Post-Training

- 用进化策略替代强化学习微调,无需梯度信息
- 两者任务准确率相近,但参数更新方向几乎正交
- 适合研究模型遗忘与知识保留的差异
进化策略(ES)作为无梯度强化学习微调的可扩展替代方案,其性能与基于梯度的方法是否等价仍不明确。我们在四个任务中对比了ES与组相对策略优化(GRPO),涵盖单任务与连续学习场景。结果表明,当迭代预算受控时,ES在单任务准确率上持平或超越GRPO,且在连续学习中保持竞争力。尽管任务表现相似,二者在参数空间中的更新行为却显著不同:ES产生更大范围的更新并引发更广的离任务KL漂移,而GRPO则进行更小、更局部的调整。令人惊讶的是,两种方法的解在参数空间中线性连通,且无损失障碍,即使其更新方向近乎正交。我们提出了一个解析理论框架,统一解释了这些现象,揭示了ES如何在弱信息方向积累大移动,同时仍能在目标任务上保持足够进展,从而实现与梯度方法相当的下游准确率。结果表明,无梯度与有梯度微调虽达相似精度,但几何结构迥异,对遗忘和知识保存具有重要影响。源代码已公开:https://github.com/Bhoy1/ESvsGRPO。
原文摘要 · Abstract (English)
Evolution Strategies (ES) have emerged as a scalable gradient-free alternative to reinforcement learning based LLM fine-tuning, but it remains unclear whether comparable task performance implies comparable solutions in parameter space. We compare ES and Group Relative Policy Optimization (GRPO) across four tasks in both single-task and sequential continual-learning settings. ES matches or exceeds GRPO in single-task accuracy and remains competitive sequentially when its iteration budget is controlled. Despite this similarity in task performance, the two methods produce markedly different model updates: ES makes much larger changes and induces broader off-task KL drift, whereas GRPO makes smaller, more localized updates. Strikingly, the ES and GRPO solutions are linearly connected with no loss barrier, even though their update directions are nearly orthogonal. We develop an analytical theory of ES that explains all these phenomena within a unified framework, showing how ES can accumulate large off-task movement on weakly informative directions while still making enough progress on the task to match gradient-based RL in downstream accuracy. These results show that gradient-free and gradient-based fine-tuning can reach similarly accurate yet geometrically distinct solutions, with important consequences for forgetting and knowledge preservation. The source code is publicly available: https://github.com/Bhoy1/ESvsGRPO.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。