On-Device Fine-Tuning via Backprop-Free Zeroth-Order Optimization
Prabodh Katti, Sangwoo Park, Bipin Rajendran, Osvaldo Simeone
TL;DR
On-device fine-tuning under fixed on-chip memory budgets is challenging with BP due to activation and optimizer state storage. The paper advocates memory-efficient zeroth-order optimization (MeZO), which estimates gradients through forward evaluations and avoids storing activations. The authors provide a theoretical memory-analysis showing that MeZO can accommodate substantially larger models for long context windows and validate these results with edge-device experiments where MeZO attains higher accuracy given sufficient wall-clock time. This work suggests MeZO as a practical route for agentive edge AI and continual learning, though further work is needed to tailor it to neuromorphic and highly sparse architectures.
Abstract
On-device fine-tuning is a critical capability for edge AI systems, which must support adaptation to different agentic tasks under stringent memory constraints. Conventional backpropagation (BP)-based training requires storing layer activations and optimizer states, a demand that can be only partially alleviated through checkpointing. In edge deployments in which the model weights must reside entirely in device memory, this overhead severely limits the maximum model size that can be deployed. Memory-efficient zeroth-order optimization (MeZO) alleviates this bottleneck by estimating gradients using forward evaluations alone, eliminating the need for storing intermediate activations or optimizer states. This enables significantly larger models to fit within on-chip memory, albeit at the cost of potentially longer fine-tuning wall-clock time. This paper first provides a theoretical estimate of the relative model sizes that can be accommodated under BP and MeZO training. We then numerically validate the analysis, demonstrating that MeZO exhibits accuracy advantages under on-device memory constraints, provided sufficient wall-clock time is available for fine-tuning.
