Abstract
Parallel Continual Learning (PCL) represents a realistic scenario where multiple tasks arrive and are trained upon simultaneously. This parallelism introduces inter-task training conflicts that standard serial continual learning methods are ill-equipped to handle. We present Asymmetric Gradient Distance (AGD), a novel metric that captures the directional and magnitude-based interference between gradients. We further propose Maximum Discrepancy Optimization (MaxDO), which utilizes AGD to find update directions that minimize worst-case task interference. Our experiments across several benchmarks show that MaxDO consistently outperforms existing multi-task and continual learning baselines in both task-incremental and class-incremental settings.
Introduction
Continual Learning (CL) research has traditionally focused on serial task sequences. However, in many real-world applications, such as large-scale IoT networks, data streams for different tasks arrive in parallel. This Parallel Continual Learning (PCL) setting introduces a "training conflict" problem: the model must simultaneously process gradients from multiple tasks. If these gradients are contradictory, they can lead to mutual interference, hindering the learning of new tasks and accelerating the forgetting of old ones.
Existing approaches often use symmetric metrics like Euclidean distance to balance these gradients. We argue that gradient interference is inherently asymmetric. A task with a large gradient norm can dominate the update, potentially "overwriting" the progress of a task with a smaller gradient norm, even if the latter is near convergence.
Methodology
Asymmetric Gradient Distance (AGD)
To address the limitations of symmetric metrics, we introduce Asymmetric Gradient Distance (AGD). AGD measures the influence of one gradient $g_A$ on another task $B$ by considering both their relative directions and the ratio of their magnitudes.
As shown in the figure above, AGD provides a nuanced view of interference. Crucially, it includes a "tolerance" mechanism for tasks with small gradients. When a task is near a local minimum, AGD ensures that updates from other tasks do not aggressively disrupt its weights, maintaining stability without sacrificing the plasticity needed for new tasks.
Maximum Discrepancy Optimization (MaxDO)
Building on AGD, we propose Maximum Discrepancy Optimization (MaxDO). MaxDO formulates the update process as a multi-objective optimization problem. It seeks a weight matrix that minimizes the maximum AGD across all active tasks while ensuring that the update direction does not negatively impact any individual task's performance. This is achieved by combining Stochastic Gradient Descent (SGD) for off-diagonal weight entries with the Multiple Gradient Descent Algorithm (MGDA) for diagonal entries, resulting in a balanced update that minimizes global discrepancy.
Experimental Results
We evaluated MaxDO on three parallelized benchmarks: PS-EMNIST, PS-CIFAR-100, and PS-ImageNet-TINY.
- Accuracy Improvements: On PS-CIFAR-100, MaxDO achieved an average accuracy of 50.2%, outperforming the best Multi-Task Learning (MTL) baseline (48.9%) and standard Experience Replay (47.3%).
- Class-Incremental Learning: In the more difficult class-incremental setting on PS-EMNIST, MaxDO reached 53.1% accuracy, demonstrating its robustness in scenarios where task boundaries are not explicitly known during inference.
- Stability-Plasticity Balance: Our results indicate that by accounting for gradient asymmetry, MaxDO effectively preserves knowledge from earlier tasks while allowing the model to adapt to new data streams.
Conclusion
The introduction of Asymmetric Gradient Distance provides a more accurate way to model task interference in parallel learning environments. By optimizing for the maximum discrepancy, MaxDO offers a robust framework for Parallel Continual Learning. Future research will explore the application of these methods to federated learning environments, where parallel data streams are distributed across multiple edge devices.
Summary updated