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

CNN混合深度

CNN Mixture-of-Depths

Robert Bosch GmbH(罗伯特·博世有限公司);University of Stuttgart(斯图加特大学)

Rinor Cakaj, Jens Mehnert, Bin Yang

摘要:

我们介绍了用于卷积神经网络(CNN)的混合深度(MoD),这是一种新方法,通过基于通道与当前预测的相关性选择性地处理通道来提高CNN的计算效率。该方法通过动态选择特征图中的关键通道来优化计算资源,以便在卷积块(Conv-Blocks)内进行集中处理,同时跳过不太相关的通道。与需要动态计算图的条件计算方法不同,CNN MoD使用具有固定张量大小的静态计算图,这提高了硬件效率。它加快了训练和推理过程,而不需要定制的CUDA内核,独特的损失函数或微调。CNN MoD可以通过减少推理时间、GMAC和参数来匹配传统CNN的性能,或者在保持相似的推理时间、GMAC和参数的同时超过它们的性能。例如,在ImageNet上,ResNet 86-MoD的性能比标准ResNet 50高出0.45%,CPU加速比为6%,GPU加速比为5%。此外,ResNet 75-MoD实现了与ResNet 50相同的性能,CPU加速比为25%,GPU加速比为15%。

英文摘要:

We introduce Mixture-of-Depths (MoD) for Convolutional Neural Networks (CNNs), a novel approach that enhances the computational efficiency of CNNs by selectively processing channels based on their relevance to the current prediction. This method optimizes computational resources by dynamically selecting key channels in feature maps for focused processing within the convolutional blocks (Conv-Blocks), while skipping less relevant channels. Unlike conditional computation methods that require dynamic computation graphs, CNN MoD uses a static computation graph with fixed tensor sizes which improve hardware efficiency. It speeds up the training and inference processes without the need for customized CUDA kernels, unique loss functions, or finetuning. CNN MoD either matches the performance of traditional CNNs with reduced inference times, GMACs, and parameters, or exceeds their performance while maintaining similar inference times, GMACs, and parameters. For example, on ImageNet, ResNet86-MoD exceeds the performance of the standard ResNet50 by 0.45% with a 6% speedup on CPU and 5% on GPU. Moreover, ResNet75-MoD achieves the same performance as ResNet50 with a 25% speedup on CPU and 15% on GPU.

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

↑