Skip to main content
QUICK REVIEW

[论文解读] SparCL: Sparse Continual Learning on the Edge

Zifeng Wang, Zheng Zhan|arXiv (Cornell University)|Sep 20, 2022
Domain Adaptation and Few-Shot LearningComputer Science被引用 18
一句话总结

SparCL 通过整合权重稀疏性、数据效率和梯度稀疏性,提出了一种新颖的框架,以实现边缘设备上高效持续学习。其核心由三个组件构成:任务感知动态掩码(TDM)、动态数据移除(DDR)和动态梯度掩码(DGM)。该方法在保持性能的同时,将训练 FLOPs 最多降低 23 倍,准确率最高提升 1.7%,并在移动设备上实现了实际可行性:在 0.95 稀疏度下,训练速度提升 3.1 倍,内存占用减少 51%。

ABSTRACT

Existing work in continual learning (CL) focuses on mitigating catastrophic forgetting, i.e., model performance deterioration on past tasks when learning a new task. However, the training efficiency of a CL system is under-investigated, which limits the real-world application of CL systems under resource-limited scenarios. In this work, we propose a novel framework called Sparse Continual Learning(SparCL), which is the first study that leverages sparsity to enable cost-effective continual learning on edge devices. SparCL achieves both training acceleration and accuracy preservation through the synergy of three aspects: weight sparsity, data efficiency, and gradient sparsity. Specifically, we propose task-aware dynamic masking (TDM) to learn a sparse network throughout the entire CL process, dynamic data removal (DDR) to remove less informative training data, and dynamic gradient masking (DGM) to sparsify the gradient updates. Each of them not only improves efficiency, but also further mitigates catastrophic forgetting. SparCL consistently improves the training efficiency of existing state-of-the-art (SOTA) CL methods by at most 23X less training FLOPs, and, surprisingly, further improves the SOTA accuracy by at most 1.7%. SparCL also outperforms competitive baselines obtained from adapting SOTA sparse training methods to the CL setting in both efficiency and accuracy. We also evaluate the effectiveness of SparCL on a real mobile phone, further indicating the practical potential of our method.

研究动机与目标

  • 为解决持续学习(CL)系统在资源受限的边缘设备上训练效率不足的问题。
  • 在显著提升训练速度并减少内存占用的同时,缓解灾难性遗忘问题。
  • 通过统一框架将稀疏性整合到 CL 中,同时提升效率与准确率。
  • 在真实移动硬件上评估该框架,以证明其实际可部署性。
  • 在效率与准确率方面均超越现有 CL 方法及 CL 适配的稀疏训练基线。

提出的方法

  • 任务感知动态掩码(TDM)通过仅保留当前和历史任务的重要权重,动态维持稀疏网络,并在任务切换期间进行特殊处理。
  • 动态数据移除(DDR)逐步从训练中移除‘易学习’样本,平衡当前数据与缓存数据,仅保留具有信息量的样本。
  • 动态梯度掩码(DGM)通过仅选择部分权重进行优化,对梯度更新进行稀疏化,从而降低计算与内存消耗。
  • 三个组件——TDM、DDR 和 DGM——协同作用,实现权重稀疏性、数据效率和梯度稀疏性的同步达成。
  • 该框架与现有基于回放的 CL 方法兼容,可应用于 Split CIFAR10 和 Split Tiny-ImageNet 等标准基准。
  • 设备端评估使用三星 Galaxy S20,采用基于 CPU 的训练方式,并使用 CSR 存储格式实现压缩模型的部署。

实验结果

研究问题

  • RQ1能否联合利用权重、数据和梯度的稀疏性,在不损失准确率的前提下加速持续学习?
  • RQ2动态数据移除对持续学习中的模型性能与训练效率有何影响?
  • RQ3动态梯度掩码在多大程度上可提升训练速度与内存效率,同时保留先前任务的知识?
  • RQ4稀疏持续学习框架是否能在真实边缘设备部署中超越标准 SOTA CL 方法及 CL 适配的稀疏训练基线?
  • RQ5为最大化准确率与效率,数据移除比例与截止时机的最佳平衡点是什么?

主要发现

  • SparCL 在不同稀疏度下,相比 SOTA 的 DER++ 方法,将训练 FLOPs 最多降低 23 倍。
  • 在 Split Tiny-ImageNet 上,该框架将 SOTA 准确率最高提升 1.7%,表明稀疏性可增强泛化能力。
  • 在三星 Galaxy S20 智能手机上,SparCL 在 0.95 稀疏度下实现约 3.1 倍的训练加速,并将内存占用减少 51%。
  • DDR 在逐步移除最多 30% 数据时,始终比一次性数据移除表现更优,且准确率更高。
  • DGM 在不同稀疏度下均提升了训练效率与模型准确率,当梯度稀疏度比例 q 处于合适范围时表现最优。
  • 消融实验表明,TDM、DDR 和 DGM 三个组件在提升效率与准确率方面均具有独立贡献,并产生协同增益。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。