Introduction
The demand for on-device training is growing rapidly, driven by the need for enhanced data privacy and real-time personalization in edge devices like smartphones and IoT sensors. However, the computational intensity of training deep learning models remains a significant barrier. While techniques like pruning and quantization have successfully reduced the cost of model inference, reducing the overhead of the training process itself is a more complex challenge.
This paper introduces SCoTTi (Save Computation at Training Time), an adaptive framework designed to identify and "freeze" neurons that have already converged during training. By dynamically stopping updates for redundant components, SCoTTi significantly reduces the computational burden—measured in Floating Point Operations (FLOPs)—without sacrificing model performance.
The SCoTTi Framework
SCoTTi builds on the intuition that not all neurons in a network learn at the same rate. Some reach an equilibrium early in the training process, after which further updates provide diminishing returns or may even lead to overfitting. The framework employs three core mechanisms to manage this process:
1. Neuron Velocity
To determine when a neuron has finished learning, SCoTTi measures "Neuron Velocity." This metric calculates the cosine similarity of a neuron's output between successive training epochs. When the output stabilizes and the velocity drops, it indicates that the neuron has reached a state of equilibrium and no longer requires gradient updates.
2. The Learnable Threshold (ε)
Traditional methods for freezing neurons often rely on a fixed, hand-tuned threshold to decide when a component is "stable enough." SCoTTi replaces this manual tuning with a learnable threshold (ε). By treating the threshold as a parameter that the model optimizes itself via gradient descent, the framework adapts to different architectures and datasets automatically.
3. Differentiable Optimization
Because the act of "switching off" a neuron is a non-differentiable operation, SCoTTi utilizes a Straight-Through Estimator (STE). This allows gradients to flow through the thresholding function during the backward pass. The framework integrates with an "ultimate optimizer" approach, where hyperparameters like the learning rate and the freezing threshold are updated dynamically, removing the need for exhaustive grid searches.
Experimental Results
The researchers evaluated SCoTTi across a variety of benchmarks, including CIFAR-10, CIFAR-100, Tiny ImageNet, and domain-specific datasets like Clipart and Painting. The results demonstrate that SCoTTi consistently reduces training FLOPs while often improving final accuracy.
- MobileNet-v2 on Tiny ImageNet: SCoTTi achieved a massive 86.44% reduction in backward-pass FLOPs. Remarkably, accuracy increased from a baseline of 55.69% to 60.68%.
- Swin-Transformer on CIFAR-10: The framework saved 58.76% of FLOPs while maintaining a slight accuracy lead (91.77% vs. 91.59%).
- ResNet-56 on CIFAR-100: SCoTTi saved 58.97% of FLOPs and improved accuracy by nearly 2%.
These results suggest that freezing converged neurons acts as a form of regularization. By preventing the model from over-optimizing on noise in the later stages of training, SCoTTi helps the network generalize better to unseen data.
Discussion and Future Work
SCoTTi represents a significant step toward making on-device training feasible for resource-constrained hardware. By automating the identification of converged neurons, it removes the burden of manual hyperparameter tuning and provides a scalable path for efficient learning.
Future research will focus on expanding SCoTTi beyond computer vision to domains such as Natural Language Processing (NLP) and audio processing. Additionally, the authors aim to move from theoretical FLOP savings to physical hardware implementation, measuring actual battery life and latency improvements on microcontrollers and mobile devices in real-world federated learning environments.
Summary updated