ESSAM: A Novel Competitive Evolution Strategies Approach to Reinforcement Learning for Memory Efficient LLMs Fine-Tuning
Zhishen Sun, Sizhe Dang, Guang Dai, Haishan Ye
TL;DR
ESSAM tackles the memory bottleneck in RL fine-tuning of LLMs by uniting Evolution Strategies with Sharpness-Aware Maximization in a zero-order, full-parameter framework. Through a two-stage, SAM-informed update and memory-saving procedures, ESSAM steers optimization toward flatter minima while avoiding backpropagation, achieving GSM8K performance comparable to PPO and GRPO while using inference-level GPU memory. Empirical results on Qwen and LLaMA models show ESSAM not only closes the gap with RL methods but also delivers substantial memory reductions (approximately 18x vs PPO and 10x vs GRPO). These findings suggest ESSAM as a practical, resource-efficient approach for math reasoning fine-tuning in settings with constrained compute, with strong potential for open-source deployment.
Abstract
Reinforcement learning (RL) has become a key training step for improving mathematical reasoning in large language models (LLMs), but it often has high GPU memory usage, which makes it hard to use in settings with limited resources. To reduce these issues, we propose Evolution Strategies with Sharpness-Aware Maximization (ESSAM), a full parameter fine-tuning framework that tightly combines the zero-order search in parameter space from Evolution Strategies (ES) with the Sharpness-Aware Maximization (SAM) to improve generalization. We conduct fine-tuning experiments on the mainstream mathematica reasoning task GSM8K. The results show that ESSAM achieves an average accuracy of 78.27\% across all models and its overall performance is comparable to RL methods. It surpasses classic RL algorithm PPO with an accuracy of 77.72\% and is comparable to GRPO with an accuracy of 78.34\%, and even surpassing them on some models. In terms of GPU memory usage, ESSAM reduces the average GPU memory usage by $18\times$ compared to PPO and by $10\times$ compared to GRPO, achieving an extremely low GPU memory usage.
