[论文解读] The Effectiveness of Memory Replay in Large Scale Continual Learning
本文提出压缩激活重放(Compressed Activation Replay, CAR),一种内存高效的改进方法,通过重放压缩的中间层激活特征来缓解特征分布漂移,从而在大规模持续学习中增强原始经验重放(experience replay)的效果。CAR在Taskonomy基准以及Split-CIFAR/miniImageNet上实现了最先进性能,且内存开销极低,显著减少了遗忘现象并提升了泛化能力。
We study continual learning in the large scale setting where tasks in the input sequence are not limited to classification, and the outputs can be of high dimension. Among multiple state-of-the-art methods, we found vanilla experience replay (ER) still very competitive in terms of both performance and scalability, despite its simplicity. However, a degraded performance is observed for ER with small memory. A further visualization of the feature space reveals that the intermediate representation undergoes a distributional drift. While existing methods usually replay only the input-output pairs, we hypothesize that their regularization effect is inadequate for complex deep models and diverse tasks with small replay buffer size. Following this observation, we propose to replay the activation of the intermediate layers in addition to the input-output pairs. Considering that saving raw activation maps can dramatically increase memory and compute cost, we propose the Compressed Activation Replay technique, where compressed representations of layer activation are saved to the replay buffer. We show that this approach can achieve superior regularization effect while adding negligible memory overhead to replay method. Experiments on both the large-scale Taskonomy benchmark with a diverse set of tasks and standard common datasets (Split-CIFAR and Split-miniImageNet) demonstrate the effectiveness of the proposed method.
研究动机与目标
- 评估在标准分类任务之外的多样化、高维任务中,内存重放技术在大规模持续学习中的有效性。
- 探究为何在小内存缓冲区下,原始经验重放方法在大规模设置中表现优异,但在小容量时性能下降。
- 解决持续学习过程中中间特征表示的分布漂移问题。
- 开发一种可扩展、内存高效的改进方法,通过重放压缩的激活图来增强正则化效果。
- 在如Taskonomy等大规模基准以及Split-CIFAR和Split-miniImageNet等标准数据集上,展示最先进性能。
提出的方法
- 提出压缩激活重放(CAR),在重放缓冲区中同时存储并重放中间层激活的压缩表示与输入-输出对。
- 通过在空间和通道维度上应用平均池化操作来压缩激活图,最大限度减少内存与计算开销。
- 在训练过程中引入激活匹配损失,使当前样本与重放样本的压缩特征对齐,以稳定表示学习。
- 采用多损失优化目标,结合任务损失、输入-输出对的重放损失,以及压缩特征的激活匹配损失。
- 应用空间池化、通道池化以及空间+通道池化等压缩技术,评估性能与内存成本之间的权衡。
- 使用标准指标如准确率(↑)和遗忘率(↓),并引入针对多样化、高维任务量身定制的新评估协议。
实验结果
研究问题
- RQ1现有持续学习方法,尤其是经验重放方法,在标准分类任务之外的大规模、多样化任务设置中表现如何?
- RQ2为何在内存容量受限时,原始经验重放方法性能显著下降,尽管其在大规模场景中表现出良好的可扩展性与简洁性?
- RQ3中间特征表示的分布漂移在多大程度上导致了深度神经网络中的灾难性遗忘?
- RQ4重放压缩的中间激活特征是否能显著提升泛化能力并减少遗忘?
- RQ5在激活重放中,哪种压缩策略能在性能、内存成本与计算效率之间实现最佳权衡?
主要发现
- 在大规模Taskonomy基准上,原始经验重放方法优于多种最先进方法,表明其在多样化、高维任务中具备强大的基线性能。
- 当内存缓冲区较小时,原始经验重放方法因中间特征表示的分布漂移而出现显著性能下降,t-SNE可视化结果清晰展示了该现象。
- 压缩激活重放(CAR)在Taskonomy上实现了最先进结果,相比原始重放方法,最终准确率最高提升6.1%,遗忘率降低40%。
- 在m=85的Split-CIFAR上,CAR达到62.4%的准确率与0.06的遗忘率,优于HAL(60.4%与0.10)和ER(56.2%与0.13)。
- 在m=85的Split-miniImageNet上,CAR达到54.2%的准确率与0.06的遗忘率,在小内存设置下显著优于所有基线方法。
- 空间+通道池化压缩策略在m=64时仅带来540万字节的内存开销,同时保持与完整激活重放几乎相同的性能表现。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。