[论文解读] DyTox: Transformers for Continual Learning with DYnamic TOken eXpansion
DyTox 提出了一种基于动态 Transformer 的持续学习框架,通过使用任务特定的可学习 token 来专门化解码器输出,而无需扩展主网络参数。通过共享编码器和解码器层,并仅对每个任务动态扩展一个 384d 的 token,该方法在 CIFAR100、ImageNet100 和 ImageNet1000 上实现了最先进性能,同时保持极低的内存和计算开销,参数量少于先前方法,且无需对扩展过程进行超参数调优。
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.
研究动机与目标
- 解决持续学习中的灾难性遗忘问题,且在推理阶段无需任务标识符。
- 设计一种可扩展的持续学习框架,随着任务数量增加,保持低内存和推理时间开销。
- 消除对超参数调优以控制动态架构中网络扩展的需求。
- 在保持任务特定专业化的同时,通过动态 token 扩展实现在任务间的高效参数共享。
- 在 ImageNet1000 等大规模基准上实现最先进性能,且参数量少于竞争的动态方法。
提出的方法
- 该模型使用共享的基于 ViT 的编码器和共享的解码器,通过任务特定的动态 token 扩展来专门化解码器输出。
- 每个任务关联一个可学习的 384d token,用于调制解码器的前向传播,从而实现任务特定的表征学习。
- 编码器和解码器在所有任务间共享,仅将每个任务的参数增长限制为一个 384d 向量。
- 动态 token 扩展通过隐式方式控制,无需调优超参数以管理网络增长。
- 该框架使用一个分类器对所有动态组件的拼接嵌入进行处理,避免了测试阶段对任务标识符的需求。
- 该方法兼容分布式内存设置,并支持全局和分布式内存回放策略。
实验结果
研究问题
- RQ1基于 Transformer 的架构是否能在保持极低内存和计算开销的同时,实现最先进持续学习性能?
- RQ2在共享编码器-解码器框架中,动态 token 扩展是否能有效缓解灾难性遗忘,且无需在测试阶段提供任务标识符?
- RQ3该模型是否能高效扩展至大量任务,且无需对扩展控制进行超参数调优?
- RQ4DyTox 在 ImageNet1000 等大规模基准上的性能与现有动态和静态持续学习基线相比如何?
- RQ5动态 token 机制在多大程度上实现了参数效率并实现了有效的任务专业化?
主要发现
- 在 CIFAR100 上,DyTox 实现了 73.66% 的平均准确率,参数量为 10.73M,优于所有基线方法(包括 WA 和 DER),并超越了此前最先进结果。
- 在 ImageNet100 上,DyTox 达到 77.15% 的 top-1 准确率和 92.04% 的 top-5 准确率,超过 DER 和其他基线方法。
- 在 ImageNet1000 上,DyTox 实现了 71.29% 的 top-1 准确率和 88.59% 的 top-5 准确率,展现出强大的泛化能力和可扩展性。
- DyTox+ 变体进一步提升了性能,在 ImageNet100 上达到 79.22% 的 top-1 准确率和 93.72% 的 top-5 准确率,创下新的最先进结果。
- 尽管仅使用 11.01M 参数,DyTox 在所有基准上均优于 DER(112.27M 参数)及其他动态方法。
- 该模型在分布式内存设置下仍保持强劲性能,DyTox+ 在分布式内存下于 ImageNet1000 上实现 77.15% 的 top-1 准确率,表明其对内存约束具有鲁棒性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。