arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.05216cs.CVcs.LG
收藏

AttentionLite:有效的视觉自注意模型

AttentionLite: Towards Efficient Self-Attention Models for Vision

Intel Labs(英特尔实验室)

Souvik Kundu, Sairam Sundaresan

摘要:

我们提出了一种新的框架,用于产生一类参数和计算效率高的模型,称为AttentionLite适合资源受限的应用程序。先前的工作主要集中在通过知识蒸馏或修剪来优化模型。除了融合这两种机制之外,我们的联合优化框架还利用了自我注意力的最新进展来替代卷积。我们可以同时从计算繁重的教师中提取知识,同时在单次训练中修剪学生模型,从而大大减少训练和微调时间。我们在CIFAR-10、CIFAR-100和Tiny-ImageNet数据集上评估了我们提出的方法的优点。我们的AttentionLite模型不仅在准确性上显著优于未优化的模型,而且我们发现,在某些情况下,它们的表现几乎与计算量大的教师一样好,而只消耗了一小部分参数和FLOP。具体地说,AttentionLite模型可以实现高达30倍的参数效率和2倍的计算效率,与他们的老师相比没有显着的准确性下降。

英文摘要:

We propose a novel framework for producing a class of parameter and compute efficient models called AttentionLitesuitable for resource-constrained applications. Prior work has primarily focused on optimizing models either via knowledge distillation or pruning. In addition to fusing these two mechanisms, our joint optimization framework also leverages recent advances in self-attention as a substitute for convolutions. We can simultaneously distill knowledge from a compute-heavy teacher while also pruning the student model in a single pass of training thereby reducing training and fine-tuning times considerably. We evaluate the merits of our proposed approach on the CIFAR-10, CIFAR-100, and Tiny-ImageNet datasets. Not only do our AttentionLite models significantly outperform their unoptimized counterparts in accuracy, we find that in some cases, that they perform almost as well as their compute-heavy teachers while consuming only a fraction of the parameters and FLOPs. Concretely, AttentionLite models can achieve upto30x parameter efficiency and 2x computation efficiency with no significant accuracy drop compared to their teacher.

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

↑