Study of Training Dynamics for Memory-Constrained Fine-Tuning
Aël Quélennec, Nour Hezbri, Pavlo Mozharovskyi, Van-Tam Nguyen, Enzo Tartaglione
TL;DR
This work tackles memory-efficient fine-tuning of large models by introducing TraDy, a dynamic channel sampling scheme that updates a task-relevant subnetwork within a strict memory budget. Grounded in heavy-tailed gradient theory, TraDy uses a Reweighted Gradient Norm to identify memory-efficient update opportunities and exploits architecture-driven layer importance to fix a subset of layers while dynamically resampling channels within them. Empirical results across CNNs and Transformer models demonstrate high sparsity in activations and weights, substantial FLOP reductions, and improved or competitive accuracy compared to static approaches, validating both the theoretical and practical viability of memory-constrained on-device learning. The approach holds promise for scalable on-device adaptation of large models, with potential extensions to broader architectures and optimization-theoretic analyses.
Abstract
Memory-efficient training of deep neural networks has become increasingly important as models grow larger while deployment environments impose strict resource constraints. We propose TraDy, a novel transfer learning scheme leveraging two key insights: layer importance for updates is architecture-dependent and determinable a priori, while dynamic stochastic channel selection provides superior gradient approximation compared to static approaches. We introduce a dynamic channel selection approach that stochastically resamples channels between epochs within preselected layers. Extensive experiments demonstrate TraDy achieves state-of-the-art performance across various downstream tasks and architectures while maintaining strict memory constraints, achieving up to 99% activation sparsity, 95% weight derivative sparsity, and 97% reduction in FLOPs for weight derivative computation.
