[Paper Review] Routing Networks with Co-training for Continual Learning
This paper proposes sparse routing networks with co-training for continual learning, leveraging task-specific expert routing to minimize catastrophic forgetting. By routing similar tasks to shared experts and dissimilar tasks to disjoint experts, the method reduces interference and improves performance on MNIST-Permutations and MNIST-Rotations benchmarks with a small episodic memory buffer.
The core challenge with continual learning is catastrophic forgetting, the phenomenon that when neural networks are trained on a sequence of tasks they rapidly forget previously learned tasks. It has been observed that catastrophic forgetting is most severe when tasks are dissimilar to each other. We propose the use of sparse routing networks for continual learning. For each input, these network architectures activate a different path through a network of experts. Routing networks have been shown to learn to route similar tasks to overlapping sets of experts and dissimilar tasks to disjoint sets of experts. In the continual learning context this behaviour is desirable as it minimizes interference between dissimilar tasks while allowing positive transfer between related tasks. In practice, we find it is necessary to develop a new training method for routing networks, which we call co-training which avoids poorly initialized experts when new tasks are presented. When combined with a small episodic memory replay buffer, sparse routing networks with co-training outperform densely connected networks on the MNIST-Permutations and MNIST-Rotations benchmarks.
Motivation & Objective
- To address catastrophic forgetting in continual learning, where neural networks degrade on previously learned tasks when trained sequentially.
- To develop a fixed-capacity architecture that avoids linearly scaling network size with the number of tasks.
- To enable positive transfer between similar tasks while minimizing interference between dissimilar tasks.
- To overcome poor expert initialization in routing networks during continual training, which can lead to suboptimal routing and interference.
- To combine routing networks with episodic memory for improved stability and performance in continual learning.
Proposed method
- Uses a sparse routing network architecture with multiple experts per layer, where each expert is a fully connected feedforward network.
- Employs a routing matrix conditioned on task ID to determine which experts are activated per input, enabling sparse, task-specific routing.
- Introduces co-training: during training on a new task, examples are also passed to unused experts to prevent them from remaining untrained.
- Applies stochastic gradient descent with routing probabilities as masks to update only activated experts, reducing gradient interference.
- Combines the routing network with a small episodic memory replay buffer (size 1,000) to further stabilize learning.
- Uses matrix multiplication of the routing matrix with itself to infer task similarity, visualizing routing patterns as a task embedding.
Experimental results
Research questions
- RQ1Can sparse routing networks reduce catastrophic forgetting in continual learning by routing similar tasks to shared experts?
- RQ2Does co-training effectively prevent poor initialization of unused experts during continual training?
- RQ3How does routing network performance compare to standard shared-bottom architectures on continual learning benchmarks?
- RQ4Can the routing matrix capture meaningful task similarity, such as in MNIST-Rotations with increasing rotation angles?
- RQ5Does combining routing networks with episodic memory improve average accuracy and reduce negative backward transfer?
Key findings
- The routing network with co-training achieved higher average accuracy than the shared-bottom architecture on both MNIST-Permutations and MNIST-Rotations benchmarks.
- The method significantly reduced negative backward transfer, with task accuracy curves remaining flatter over time, indicating less forgetting of early tasks.
- On MNIST-Rotations, the routing matrix showed a block-diagonal structure in the inferred task similarity matrix, confirming that similar tasks (close in rotation) shared experts.
- Tasks with dissimilar rotations (e.g., 0° and 180°) had mostly disjoint expert sets, minimizing interference and supporting the design goal of avoiding negative transfer.
- Despite slightly lower initial sample efficiency, the routing network maintained stable performance across all tasks, outperforming the shared-bottom model in long-term continual learning.
- The routing network’s ability to learn task embeddings via routing probabilities enabled interpretable clustering of task similarity, aligning with expected geometric relationships in MNIST-Rotations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.