[Paper Review] DyTox: Transformers for Continual Learning with DYnamic TOken eXpansion
DyTox proposes a dynamic transformer-based continual learning framework that uses task-specific learned tokens to specialize decoder outputs without expanding the main network parameters. By sharing encoder and decoder layers and dynamically expanding only a 384d token per task, it achieves state-of-the-art performance on CIFAR100, ImageNet100, and ImageNet1000 with minimal memory and computational overhead, fewer parameters than prior methods, and no hyperparameter tuning for expansion.
Deep network architectures struggle to continually learn new tasks without forgetting the previous tasks. A recent trend indicates that dynamic architectures based on an expansion of the parameters can reduce catastrophic forgetting efficiently in continual learning. However, existing approaches often require a task identifier at test-time, need complex tuning to balance the growing number of parameters, and barely share any information across tasks. As a result, they struggle to scale to a large number of tasks without significant overhead. In this paper, we propose a transformer architecture based on a dedicated encoder/decoder framework. Critically, the encoder and decoder are shared among all tasks. Through a dynamic expansion of special tokens, we specialize each forward of our decoder network on a task distribution. Our strategy scales to a large number of tasks while having negligible memory and time overheads due to strict control of the parameters expansion. Moreover, this efficient strategy doesn't need any hyperparameter tuning to control the network's expansion. Our model reaches excellent results on CIFAR100 and state-of-the-art performances on the large-scale ImageNet100 and ImageNet1000 while having less parameters than concurrent dynamic frameworks.
Motivation & Objective
- To address catastrophic forgetting in continual learning without requiring task identifiers at inference time.
- To design a scalable continual learning framework that maintains low memory and inference time overhead as the number of tasks increases.
- To eliminate the need for hyperparameter tuning to control network expansion in dynamic architectures.
- To enable efficient parameter sharing across tasks while maintaining task-specific specialization through dynamic token expansion.
- To achieve state-of-the-art performance on large-scale benchmarks like ImageNet1000 with fewer parameters than competing dynamic methods.
Proposed method
- The model uses a shared ViT-based encoder and a shared decoder, with task-specific dynamic token expansion to specialize decoder outputs.
- Each task is associated with a learned 384d token that modulates the decoder's forward pass, enabling task-specific representation learning.
- The encoder and decoder are shared across all tasks, minimizing parameter growth to only one 384d vector per task.
- The dynamic token expansion is controlled implicitly, eliminating the need for hyperparameter tuning to manage network growth.
- The framework uses a single classifier on concatenated embeddings from all dynamic components, avoiding the need for task identifiers at test time.
- The method is compatible with distributed memory settings and supports both global and distributed memory rehearsal strategies.
Experimental results
Research questions
- RQ1Can a transformer-based architecture achieve state-of-the-art continual learning performance while maintaining minimal memory and computational overhead?
- RQ2Does dynamic token expansion in a shared encoder-decoder framework reduce catastrophic forgetting without requiring task identifiers at test time?
- RQ3Can the model scale efficiently to a large number of tasks without hyperparameter tuning for expansion control?
- RQ4How does the performance of DyTox compare to existing dynamic and static continual learning baselines on large-scale benchmarks like ImageNet1000?
- RQ5To what extent does the dynamic token mechanism enable parameter efficiency and effective task specialization?
Key findings
- On CIFAR100, DyTox achieves an average accuracy of 73.66% with 10.73M parameters, outperforming all baselines including WA and DER, and surpassing the previous state-of-the-art.
- On ImageNet100, DyTox reaches 77.15% top-1 accuracy and 92.04% top-5 accuracy, exceeding the performance of DER and other baselines.
- On ImageNet1000, DyTox achieves 71.29% top-1 accuracy and 88.59% top-5 accuracy, demonstrating strong generalization and scalability.
- The DyTox+ variant further improves performance, reaching 79.22% top-1 accuracy on ImageNet100 and 93.72% top-5 accuracy, setting new SOTA results.
- Despite using only 11.01M parameters, DyTox outperforms DER (112.27M parameters) and other dynamic methods on all benchmarks.
- The model maintains strong performance under distributed memory settings, with DyTox+ achieving 77.15% top-1 accuracy on ImageNet1000 under distributed memory, showing robustness to memory constraints.
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.