Introduction
As privacy regulations like GDPR become more stringent, the demand for local AI training on edge devices—such as smartphones, robots, and IoT sensors—has surged. While mobile hardware has evolved to handle efficient inference, on-device training (ODT) remains a significant challenge. This survey explores the "memory wall," a critical bottleneck where the high RAM requirements of deep learning training exceed the limited resources of mobile hardware.
The Anatomy of the Memory Wall
The primary reason training is more resource-intensive than inference lies in the mechanics of backpropagation. During inference, a model only needs to store current layer activations to compute the next. In contrast, training requires maintaining model weights, gradients, and intermediate "activations" for every layer to calculate updates during the backward pass.
Mathematically, the gradient of a layer's input depends on both the output gradient and the original input of that layer. This dependency necessitates storing the entire forward pass state until the backward pass is complete, leading to "Activation Dominance." For instance, in a DC-Transformer model, activations can consume ~2.9GB of RAM, while weights occupy only ~155MB.
Solution Taxonomy
The survey categorizes existing strategies to overcome the memory wall into three main pillars:
1. Hardware-Enabled Strategies
These focus on maximizing existing hardware utility. Specialized libraries like TFLite, MNN, and CoreML attempt to offload training tasks to mobile GPUs or NPUs. Advanced techniques like PilotFish and Swan implement "resource harvesting," scavenging idle GPU cycles or using CPU-DSP co-scheduling to manage peak memory pressure.
2. Model-Based Trade-offs
Researchers often sacrifice some model precision for memory efficiency:
- Quantization: Reducing weight and activation precision (e.g., from FP32 to INT8) significantly shrinks the memory footprint.
- Sparsity & Pruning: By removing redundant parameters or using sparse kernels, systems can skip computations on zero-valued neurons, saving both memory and power.
3. Process-Based Trade-offs
These methods optimize the training workflow itself:
- Gradient Checkpointing: This technique discards intermediate activations and recomputes them during the backward pass. It trades increased computation time for a drastically reduced memory footprint.
- Microbatching: By breaking training data into smaller subsets, the peak memory required for a single iteration is lowered, preventing Out-Of-Memory (OOM) errors.
Key Insights and Results
The survey reveals a staggering "Processor Gap." While a server-grade NVIDIA A100 GPU can achieve ~25,403 Queries Per Second (QPS) on MobileBERT, a flagship mobile chip like the Snapdragon 8 Gen 2 manages only ~198 QPS—a 128x difference. Furthermore, training overhead can be 5x to 100x greater than inference overhead, depending on the model architecture and batch size.
Even the frameworks themselves pose a challenge; libraries like MNN can consume up to 400MB of RAM just for initialization, further tightening the memory budget on devices typically capped at 4–12GB of RAM.
Future Directions
To truly break the memory wall, the authors suggest several research frontiers:
- Heterogeneous ODT: Developing models that dynamically resize or decompose (e.g., Fedepth) to fit the specific memory "budget" of diverse devices in a federated learning network.
- Mobile GPU Backpropagation: Current mobile engines often struggle to offload the backward pass to the GPU. Improving NPU/GPU utilization for training is essential.
- Balancing Accuracy and Efficiency: Finding the "sweet spot" where aggressive quantization or recomputation does not lead to unacceptable accuracy loss or excessive battery drain remains an open problem.
Summary updated