arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.10832cs.CVcs.LGstat.ML
收藏

重新审视本地监督学习:端到端培训的替代方案

Revisiting Locally Supervised Learning: an Alternative to End-to-end Training

Tsinghua University(清华大学)

Yulin Wang, Zanlin Ni, Shiji Song, Le Yang, Gao Huang

摘要:

由于需要存储用于反向传播的中间激活,深度网络的端到端(E2 E)训练通常会受到高GPU内存占用的影响。本文旨在通过重新审视局部监督学习来解决这个问题,其中网络被分成梯度隔离的模块并使用局部监督进行训练。我们的实验表明,简单地用E2 E损失训练本地模块往往会在早期层崩溃任务相关的信息,从而损害整个模型的性能。为了避免这个问题,我们提出了一个信息传播(InfoPro)损失,它鼓励本地模块保留尽可能多的有用信息,同时逐步丢弃任务无关的信息。由于InfoPro损失很难以其原始形式计算,我们推导出一个可行的上限作为代理优化目标,产生一个简单但有效的算法。事实上,我们表明,所提出的方法归结为最大限度地减少重建损失和正常的交叉熵/对比项的组合。在五个数据集上的广泛经验结果(即,CIFAR、SVHN、STL-10、ImageNet和Cityscapes)验证了InfoPro能够在与E2 E训练相比内存占用不到40%的情况下实现有竞争力的性能,同时允许在相同的GPU内存限制下使用更高分辨率或更大批量的训练数据。我们的方法还可以异步训练本地模块,以实现潜在的训练加速。代码可在:https://github.com/blackfeather-wang/InfoPro-Pytorch.

英文摘要:

Due to the need to store the intermediate activations for back-propagation, end-to-end (E2E) training of deep networks usually suffers from high GPUs memory footprint. This paper aims to address this problem by revisiting the locally supervised learning, where a network is split into gradient-isolated modules and trained with local supervision. We experimentally show that simply training local modules with E2E loss tends to collapse task-relevant information at early layers, and hence hurts the performance of the full model. To avoid this issue, we propose an information propagation (InfoPro) loss, which encourages local modules to preserve as much useful information as possible, while progressively discard task-irrelevant information. As InfoPro loss is difficult to compute in its original form, we derive a feasible upper bound as a surrogate optimization objective, yielding a simple but effective algorithm. In fact, we show that the proposed method boils down to minimizing the combination of a reconstruction loss and a normal cross-entropy/contrastive term. Extensive empirical results on five datasets (i.e., CIFAR, SVHN, STL-10, ImageNet and Cityscapes) validate that InfoPro is capable of achieving competitive performance with less than 40% memory footprint compared to E2E training, while allowing using training data with higher-resolution or larger batch sizes under the same GPU memory constraint. Our method also enables training local modules asynchronously for potential training acceleration. Code is available at: https://github.com/blackfeather-wang/InfoPro-Pytorch.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑