Abstract
Standard neural networks struggle with non-stationary data distributions, often suffering from catastrophic forgetting and a gradual loss of plasticity. We present Utility-based Perturbed Gradient Descent (UPGD), an optimizer designed to maintain a model's ability to learn indefinitely. UPGD estimates the "utility" of each weight—its contribution to minimizing loss—and uses this metric to selectively protect important knowledge while aggressively perturbing less useful weights. Our results on non-stationary benchmarks show that UPGD effectively prevents plasticity decay, significantly outperforming standard optimizers like AdamW and SGD.
Introduction
In real-world continual learning, data is rarely stationary. Neural networks trained in these environments face two major hurdles: catastrophic forgetting, where new information overwrites old knowledge, and decaying plasticity, where the network becomes increasingly resistant to new learning. Current gradient descent methods treat all weights as equally replaceable, failing to preserve the structural integrity of learned features. We propose that an optimizer must be "utility-aware" to succeed in lifelong learning.
Methods: Utility-based Perturbed Gradient Descent (UPGD)
UPGD introduces a mechanism to identify and protect critical weights within a neural network.
Utility Estimation
The utility of a weight is defined as the increase in loss that would occur if that weight were removed. To calculate this efficiently, UPGD employs a second-order Taylor approximation. This is made computationally feasible through HesScale, a method for approximating Hessian diagonals with linear complexity.
The Gated Update Rule
UPGD modifies the standard gradient update with a utility-based "gate." For weights with high utility, updates are suppressed to maintain stability. For weights with low utility, the optimizer applies standard updates supplemented by random noise (perturbation). This perturbation forces the network to continuously search for better feature configurations in its less useful components.
Key Insights
- Conservation of Utility: Theoretical analysis reveals a "conservation law" where utility flows through neurons, suggesting that importance is a distributed property across the network.
- Selective Protection: Experiments indicate that while noise injection is beneficial, the selective protection of high-utility weights is the primary driver in preventing performance degradation over long task sequences.
- Weight-wise Granularity: Protecting individual weights (weight-wise) is generally more effective than protecting entire neurons (feature-wise), likely due to the higher precision of weight-level utility approximations.
Results
We evaluated UPGD against standard baselines on several non-stationary benchmarks, including Input-Permuted MNIST and Output-Permuted EMNIST.
Maintaining Plasticity
On the Input-Permuted MNIST benchmark, standard optimizers like AdamW and SGDW showed a steady decline in accuracy as they lost the ability to adapt to new permutations. UPGD-W maintained high and stable accuracy throughout the experiment, demonstrating sustained plasticity.
Superior Adaptation and Efficiency
In more complex tasks like Output-Permuted EMNIST, UPGD maintained accuracy above 70%, effectively reusing learned features where other methods dropped to 20-30%. Furthermore, UPGD's reliance on HesScale ensures low computational overhead, making it suitable for real-time, online learning applications.
Conclusion
UPGD offers a robust solution for the decaying plasticity problem in continual learning. By combining second-order utility estimation with a gated perturbation strategy, it allows neural networks to retain useful knowledge while remaining adaptable to new information. Future work will focus on scaling these utility-based methods to larger architectures like Transformers.
Summary updated