[论文解读] Improving Online Continual Learning Performance and Stability with Temporal Ensembles
本文提出通过模型权重的指数移动平均(EMA)实现轻量级时间集成,以提升在线持续学习中的性能与稳定性。通过在不改变训练过程的前提下,对不同训练阶段的模型进行集成,EMA 将准确率最高提升 9.3%,显著缩小了在 Split-CIFAR100 和 Split-MiniImageNet 等基准上的稳定性差距与任务新近性偏差。
Neural networks are very effective when trained on large datasets for a large number of iterations. However, when they are trained on non-stationary streams of data and in an online fashion, their performance is reduced (1) by the online setup, which limits the availability of data, (2) due to catastrophic forgetting because of the non-stationary nature of the data. Furthermore, several recent works (Caccia et al., 2022; Lange et al., 2023) arXiv:2205.13452 showed that replay methods used in continual learning suffer from the stability gap, encountered when evaluating the model continually (rather than only on task boundaries). In this article, we study the effect of model ensembling as a way to improve performance and stability in online continual learning. We notice that naively ensembling models coming from a variety of training tasks increases the performance in online continual learning considerably. Starting from this observation, and drawing inspirations from semi-supervised learning ensembling methods, we use a lightweight temporal ensemble that computes the exponential moving average of the weights (EMA) at test time, and show that it can drastically increase the performance and stability when used in combination with several methods from the literature.
研究动机与目标
- 解决由于数据非平稳性和灾难性遗忘导致的在线持续学习中性能下降与不稳定性问题。
- 探究模型集成(尤其是时间集成)是否能够缓解持续评估过程中观察到的稳定性差距。
- 缓解类别增量学习中的常见问题——任务新近性偏差,即模型更倾向于近期任务。
- 开发一种内存高效的集成方法,在不增加训练复杂度的前提下保持高性能。
- 证明 EMA 集成带来的增益不仅来自持续学习技术本身,还体现在在线 i.i.d. 设置中的性能提升。
提出的方法
- 在推理阶段应用模型权重的指数移动平均(EMA),通过调节动量超参数以匹配分布漂移速度,形成时间集成。
- 将 EMA 作为测试时模型使用,而非最终训练模型,结合训练轨迹上多个检查点的预测结果。
- 在不修改其训练过程的前提下,将 EMA 与现有基于回放的持续学习方法(如 RAR、iCaRL)集成。
- 通过调节 EMA 动量以匹配分布漂移速率,使模型能更好地适应流式数据中的概念漂移。
- 使用持续评估协议评估性能,测量如 WC-Acc 和 RAG(相对准确率差距)等稳定性指标。
- 将 EMA 性能与单模型基线及 i.i.d. 设置进行对比,以区分集成带来的增益与持续学习机制的贡献。
实验结果
研究问题
- RQ1通过 EMA 实现的时间集成是否能显著提升在线持续学习中的性能与稳定性?
- RQ2EMA 集成是否能减少持续评估过程中(尤其是在新任务开始时)观察到的稳定性差距?
- RQ3在类别增量学习设置中,EMA 在多大程度上缓解了任务新近性偏差?
- RQ4EMA 带来的性能增益是源于泛化能力的提升,还是特定于持续学习动态?
- RQ5一种轻量级、内存高效的基于 EMA 的集成方法,是否能在不改变训练流程的前提下,超越标准单模型推理?
主要发现
- 当与 RAR 结合时,EMA 集成在 Split-MiniImageNet 上将最终准确率最高提升 9.3%,显著缩小了与 i.i.d. 基线的性能差距。
- 稳定性差距(定义为新任务开始时的性能下降)被大幅降低,WC-Acc(最差情况准确率)和 RAG(相对准确率差距)指标均显示一致改进。
- 任务新近性偏差明显减少:EMA 模型在各任务上的准确率曲线更加平滑,Split-CIFAR100 上 RAR 与 i.i.d._w/tr 之间的性能差距从 4.7% 降低至 1.8%。
- EMA 在多种方法和数据集上均表现出一致的性能提升,其在持续学习中的增益高于 i.i.d. 设置,仅在 Split-CIFAR10 上增益相当。
- EMA 的增益并非仅源于持续学习机制,因为在 i.i.d. 设置中也观察到类似提升;然而,由于模型间功能多样性,这些增益在持续学习中被进一步放大。
- EMA 通过降低预测方差,减少小批量训练和任务切换带来的波动,从而实现更好的稳定性,这一结论通过单任务切换动态的详细分析得到验证。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。