Training deep neural networks traditionally relies on end-to-end (E2E) backpropagation. While highly effective, E2E is notoriously memory-intensive. Because it requires storing the entire model and all intermediate activations (the "computational graph") to calculate gradients, training massive models on edge devices or processing high-resolution images is often impossible on standard hardware.
Transport Regularized Greedy Learning (TRGL) is a novel framework designed to tackle this bottleneck. By allowing networks to be trained module-by-module rather than all at once, TRGL drastically reduces memory footprints. Crucially, it introduces a regularization term inspired by optimal transport to overcome the "stagnation problem" inherent in standard greedy learning, achieving accuracy comparable to—and sometimes better than—standard backpropagation while using up to 60% less memory.
The Stagnation Problem in Greedy Learning
Greedy module-wise training is the natural alternative to E2E backpropagation. In this paradigm, you split the network into chunks (modules) and train them sequentially or in parallel using local loss functions.
However, this approach usually hits a wall known as the stagnation problem. Early layers tend to overfit the training data so aggressively that they discard broader, task-relevant information needed by deeper layers. Consequently, adding more depth eventually stops improving test accuracy, and can even degrade it.
The Solution: Transport Regularized Greedy Learning (TRGL)
To solve the stagnation problem, the authors introduce TRGL. The core idea is to add a specific regularization term to the local loss of each module, preventing early layers from collapsing the data representation.
- The "Minimal Movement" Principle: Instead of solely minimizing the classification error, TRGL penalizes the "kinetic energy" of a module. In simple terms, it forces the module to change its input as little as possible while still making progress on the task.
- Theoretical Grounding: The authors link this approach to the Minimizing Movement Scheme (MMS), a concept used in physics and mathematics to study gradient flows in distribution space. They prove that each trained module acts as a "proximal step" in Wasserstein space (a method of measuring distances between probability distributions). Module-wise training, when regularized correctly, is not just a heuristic hack but a mathematically sound discretization of a gradient flow.
- Implementation: For networks with residual connections (like ResNets or Transformers), implementing TRGL is elegantly simple: the framework penalizes the squared norm of the residual branch. This encourages the module to behave like an identity map unless a transformation is strictly necessary to reduce the loss.
By penalizing "movement," TRGL preserves the underlying geometry of the data. This mathematical stability translates to better generalization on unseen test data and ensures that vital information survives into the deepest parts of the network.
Experimental Results
The researchers evaluated TRGL across a wide range of standard computer vision benchmarks, including CIFAR-10/100, TinyImageNet, ImageNet, and STL10, using architectures like VGG, ResNets, and Swin Transformers.
TRGL consistently outperformed previous greedy training methods and frequently matched or exceeded E2E performance:
- Memory Savings: On TinyImageNet, TRGL used 10% to 21% less memory than E2E. In other configurations, memory savings reached up to 60%.
- Accuracy Boost: TRGL demonstrated significant accuracy improvements over baseline greedy methods. For instance, on ResNet-50, TRGL achieved 60.30% accuracy, comfortably beating the vanilla greedy baseline (58.43%) and even standard E2E training (58.10%).
- Solving Stagnation: While vanilla greedy training accuracy usually plateaus or drops off after a certain depth, TRGL's accuracy continues to climb as more modules are added, effectively curing the stagnation problem.
Furthermore, TRGL excels in "decoupled" settings where modules are trained in parallel. This allows for significantly faster training speeds without the massive memory overhead associated with global backpropagation.
Limitations and Future Work
While TRGL shows massive improvements in parallel and "multi-lap" settings, the authors note that the gains in strictly sequential training (training module 1 completely, freezing it, then training module 2, etc.) can sometimes be more modest. Additionally, finding the optimal regularization weight requires some hyperparameter tuning, though the authors provide a "method of multipliers" to help automate this process.
Currently, the work focuses on the $W_2$ (Euclidean) Wasserstein distance. Exploring other distances ($W_p$) might yield even better results for specific types of data. Ultimately, TRGL represents a significant step toward the democratization of AI, paving the way for training state-of-the-art, deep models on consumer-grade hardware and low-power edge devices.
Summary updated