快速准确的模型缩放
Fast and Accurate Model Scaling
摘要:
在这项工作中,我们分析了卷积神经网络缩放的策略;也就是说,缩放基本卷积网络的过程,以赋予它更大的计算复杂性,从而具有代表性的权力。示例缩放策略可以包括增加模型宽度、深度、分辨率等。虽然存在各种缩放策略,但它们的权衡尚未完全理解。现有的分析通常集中在精度和浮点运算(浮点运算)的相互作用。然而,正如我们所展示的,各种缩放策略对模型参数、激活以及实际运行时间的影响是完全不同的。在我们的实验中,我们展示了令人惊讶的结果,许多缩放策略产生的网络具有相似的精度,但具有广泛的不同属性。这使得我们提出了一个简单的快速复合缩放策略,鼓励主要缩放模型宽度,而缩放深度和分辨率在较小程度上。与目前流行的缩放策略不同,其导致模型激活的$O(s)$增加。通过将触发器缩放因子$s$,所提出的快速复合缩放导致激活的接近$O(\sqrt{s})$的增加,同时实现优异的准确性。这导致在现代存储器有限的硬件(例如,GPU、TPU)。更一般地说,我们希望这项工作提供了一个框架,分析和选择缩放策略下的各种计算约束。
英文摘要:
In this work we analyze strategies for convolutional neural network scaling; that is, the process of scaling a base convolutional network to endow it with greater computational complexity and consequently representational power. Example scaling strategies may include increasing model width, depth, resolution, etc. While various scaling strategies exist, their tradeoffs are not fully understood. Existing analysis typically focuses on the interplay of accuracy and flops (floating point operations). Yet, as we demonstrate, various scaling strategies affect model parameters, activations, and consequently actual runtime quite differently. In our experiments we show the surprising result that numerous scaling strategies yield networks with similar accuracy but with widely varying properties. This leads us to propose a simple fast compound scaling strategy that encourages primarily scaling model width, while scaling depth and resolution to a lesser extent. Unlike currently popular scaling strategies, which result in about $O(s)$ increase in model activation w.r.t. scaling flops by a factor of $s$, the proposed fast compound scaling results in close to $O(\sqrt{s})$ increase in activations, while achieving excellent accuracy. This leads to comparable speedups on modern memory-limited hardware (e.g., GPU, TPU). More generally, we hope this work provides a framework for analyzing and selecting scaling strategies under various computational constraints.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。