Quantized Evolution Strategies: High-precision Fine-tuning of Quantized LLMs at Low-precision Cost
Yinggan Xu, Risto Miikkulainen, Xin Qiu
TL;DR
This work tackles the barrier to fine-tuning quantized LLMs by introducing Quantized Evolution Strategies (QES), a backpropagation-free framework that optimizes discrete weights directly in quantized space. QES combines accumulated error feedback, inspired by Delta-Sigma modulation, with a Stateless Seed Replay mechanism to preserve high-precision gradient signals while keeping memory usage at inference-like levels. Empirical results on a Countdown arithmetic reasoning task show that QES substantially surpasses zeroth-order baselines like QuZO across INT4, INT8, and W8A8 formats, achieving performance close to memory-intensive full-residual approaches. The approach promises scalable, hardware-friendly fine-tuning of large models by enabling full-parameter optimization within quantized spaces on commodity hardware.
Abstract
Post-Training Quantization (PTQ) is essential for deploying Large Language Models (LLMs) on memory-constrained devices, yet it renders models static and difficult to fine-tune. Standard fine-tuning paradigms, including Reinforcement Learning (RL), fundamentally rely on backpropagation and high-precision weights to compute gradients. Thus they cannot be used on quantized models, where the parameter space is discrete and non-differentiable. While Evolution Strategies (ES) offer a backpropagation-free alternative, optimization of the quantized parameters can still fail due to vanishing or inaccurate gradient. This paper introduces Quantized Evolution Strategies (QES), an optimization paradigm that performs full-parameter fine-tuning directly in the quantized space. QES is based on two innovations: (1) it integrates accumulated error feedback to preserve high-precision gradient signals, and (2) it utilizes a stateless seed replay to reduce memory usage to low-precision inference levels. QES significantly outperforms the state-of-the-art zeroth-order fine-tuning method on arithmetic reasoning tasks, making direct fine-tuning for quantized models possible. It therefore opens up the possibility for scaling up LLMs entirely in the quantized space. The source code is available at https://github.com/dibbla/Quantized-Evolution-Strategies .
