NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Memory Constrained Dynamic Subnetwork Update for Transfer Learning

Aël Quélennec, Pavlo Mozharovskyi, Van-Tam Nguyen, Enzo TartaglionearXiv 2025 · DOI

Introduction

The "Large Scale Era" of AI has produced models with billions of parameters, but training them remains a massive hurdle for edge computing. While running a model (inference) is relatively cheap, training it (backpropagation) is memory-intensive because the device must store intermediate "activations" and compute gradients for every layer.

For Internet of Things (IoT) devices with only a few hundred kilobytes of RAM, full fine-tuning is impossible. Existing solutions usually involve "static" updates—choosing a tiny subset of the network to train and freezing the rest. However, these static choices often fail to adapt to new data distributions or require expensive offline analysis. The challenge addressed by this research is how to surgically select which parts of a network to update in real-time without exceeding strict memory budgets.

The MeDyate Framework

The authors introduce MeDyate (Memory-constrained Dynamic subnetwork update), which relies on two core innovations: LaRa (Layer Ranking) and Dynamic Channel Sampling.

The MeDyate framework overview, showing the offline layer preselection using LaRa and the online dynamic channel selection process.

LaRa (Layer Ranking)

Most methods rank layer importance based solely on gradient magnitude. LaRa improves this by factoring in the memory cost of each layer. It identifies "efficient" layers that provide the best trade-off between learning potential and memory footprint. This offline preselection ensures that the most impactful layers are prioritized within the hardware's constraints.

Dynamic Channel Sampling

Instead of updating every channel in a selected layer, MeDyate updates a small subset that changes every epoch. This strategy balances two goals:

  • Exploration: In early stages, it assigns high probability to "unseen" channels to ensure the whole parameter space is explored.
  • Exploitation: It uses a probabilistic strategy where channels that showed higher importance (larger gradient norms) in previous epochs are sampled more frequently.
Exploration of the parameter space over training epochs for different selection criteria.

Key Insights and Ideas

  • Memory-Aware Ranking is Key: Simply looking at where gradients are largest isn't enough for edge devices. By normalizing importance by memory cost (LaRa), the authors found they could achieve better performance with fewer active layers.
  • Temporal Stability: The researchers discovered that "channel topology"—which channels are most important for a specific task—stabilizes very quickly during fine-tuning. This allows the algorithm to reliably use past gradients to predict which channels to update next.
  • Dynamic beats Static: Updating different parts of the network over time (dynamic) consistently outperforms picking one small part and sticking with it (static), even when the total memory used per step is identical.
  • Activation Sparsity: By freezing specific input channels, the device can proactively release activation values from memory during the forward pass, leading to significant RAM savings beyond just parameter reduction.

Evaluation and Results

The framework was evaluated across a diverse panel of computer vision (CIFAR, CUB, Flowers, VWW) and NLP (QNLI, RTE, SST2) tasks using architectures like MobileNetV2, MCUNet, BERT, and RoBERTa.

  • Extreme Efficiency: MeDyate enables effective fine-tuning with memory budgets as low as 256kB of RAM.
  • SOTA Performance: On the Food dataset using MobileNetV2, MeDyate reached peak accuracy using only 20 layers, whereas previous state-of-the-art methods required 35 layers to reach a lower accuracy ceiling.
  • Computational Overhead: The authors demonstrate that the extra math required to calculate sampling probabilities is negligible compared to the overall cost of backpropagation, making it a "free" win for efficiency.

Limitations and Future Work

While MeDyate excels on Convolutional Neural Networks (CNNs), it showed mixed results on Vision Transformers (SwinT). The authors suggest this is because transformers have "global receptive fields" that break the local connectivity assumptions MeDyate relies on. Future work will focus on architecture-aware extensions specifically designed for the attention mechanisms found in transformer models and true on-device implementation to validate real-world latency and power consumption.

Summary updated

BibTeX
@misc{quelennec2025memory,
  author = {Aël Quélennec and Pavlo Mozharovskyi and Van-Tam Nguyen and Enzo Tartaglione},
  title = {{Memory Constrained Dynamic Subnetwork Update for Transfer Learning}},
  year = {2025},
  eprint = {2510.20979},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.20979},
}
Figure