预训练表示中的弥散冗余
Diffused Redundancy in Pre-trained Representations
AI总结:
本研究揭示预训练神经网络表示中存在弥散冗余:随机选取超过阈值的神经元子集即可与完整层性能相当,并探讨了利用该冗余实现高效泛化的潜力与风险。
摘要:
通过在大规模数据集上预训练神经网络学到的表示,正越来越多地被成功用于执行各种下游任务。在本工作中,我们更深入地审视了特征如何编码在这样预训练的表示中。我们发现,在给定层中学到的表示展现出一定程度的弥散冗余,即,该层中任意随机选择的神经元子集,只要其大小超过一个阈值,就与完整层共享很大程度的相似性,并且能在多种下游任务上表现得与整个层相似。例如,在ImageNet1k上预训练的ResNet50的倒数第二层中,随机挑选20%的神经元训练的线性探针,在下游CIFAR10分类任务上,其准确率与在完整神经元层上训练的线性探针相差在5%以内。我们在不同神经架构(包括CNN和Transformer)上进行了实验,这些架构分别在ImageNet1k和ImageNet21k上预训练,并评估了取自VTAB基准的各种下游任务。我们发现,预训练期间使用的损失函数和数据集在很大程度上决定了弥散冗余的程度,而所需的神经元“临界质量”通常取决于下游任务,这表明存在一个任务固有的冗余-性能帕累托前沿。我们的发现揭示了预训练深度神经网络所学表示的本质,并表明对于许多下游任务,整个层可能并非必需。我们研究了利用这种冗余来实现下游任务高效泛化的潜力,同时也提醒注意某些可能的意外后果。我们的代码可在\url{https://github.com/nvedant07/diffused-redundancy}获取。
英文摘要:
Representations learned by pre-training a neural network on a large dataset are increasingly used successfully to perform a variety of downstream tasks. In this work, we take a closer look at how features are encoded in such pre-trained representations. We find that learned representations in a given layer exhibit a degree of diffuse redundancy, ie, any randomly chosen subset of neurons in the layer that is larger than a threshold size shares a large degree of similarity with the full layer and is able to perform similarly as the whole layer on a variety of downstream tasks. For example, a linear probe trained on $20\%$ of randomly picked neurons from the penultimate layer of a ResNet50 pre-trained on ImageNet1k achieves an accuracy within $5\%$ of a linear probe trained on the full layer of neurons for downstream CIFAR10 classification. We conduct experiments on different neural architectures (including CNNs and Transformers) pre-trained on both ImageNet1k and ImageNet21k and evaluate a variety of downstream tasks taken from the VTAB benchmark. We find that the loss and dataset used during pre-training largely govern the degree of diffuse redundancy and the "critical mass" of neurons needed often depends on the downstream task, suggesting that there is a task-inherent redundancy-performance Pareto frontier. Our findings shed light on the nature of representations learned by pre-trained deep neural networks and suggest that entire layers might not be necessary to perform many downstream tasks. We investigate the potential for exploiting this redundancy to achieve efficient generalization for downstream tasks and also draw caution to certain possible unintended consequences. Our code is available at \url{https://github.com/nvedant07/diffused-redundancy}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。