基于渐进重参数化调度的柔性归纳偏差
Towards Flexible Inductive Bias via Progressive Reparameterization Scheduling
摘要:
在最近的计算机视觉中有两种事实标准架构:卷积神经网络(CNN)和视觉Transformer(ViTs)。卷积的强归纳偏差有助于模型有效地学习样本,但当有足够的数据可用时,这种强偏差也限制了CNN的上限。相反,对于小数据,ViT不如CNN,但对于足够的数据,ViT更胜一筹。最近的方法试图结合这两种架构的优势。然而,我们发现这些方法忽略了最佳归纳偏差也会根据目标数据规模的变化而变化,通过比较不同模型在不同比例下对样本ImageNet子集的准确性。此外,通过傅立叶分析特征图,模型的响应模式根据信号频率的变化,我们观察哪种归纳偏差是有利的每个数据尺度。模型中包含的类似卷积的感应偏差越多,所需的数据规模就越小,其中ViT类模型的性能优于ResNet。为了得到一个在数据尺度上具有灵活的归纳偏差的模型,我们证明了重新参数化可以在卷积和自注意之间插入归纳偏差。通过调整模型停留在卷积中的历元数,我们证明了从卷积到自注意的重新参数化在CNN和ViTs之间插入了傅立叶分析模式。根据这些发现,我们提出了渐进式重新参数化调度(PRS),其中重新参数化调整了每层所需的卷积或自我注意类归纳偏差。对于小规模数据集,我们的PRS在后期层线性更快地执行从卷积到自我注意的重新参数化。PRS在小规模数据集上的表现优于先前的研究,例如,CIFAR-100。
英文摘要:
There are two de facto standard architectures in recent computer vision: Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs). Strong inductive biases of convolutions help the model learn sample effectively, but such strong biases also limit the upper bound of CNNs when sufficient data are available. On the contrary, ViT is inferior to CNNs for small data but superior for sufficient data. Recent approaches attempt to combine the strengths of these two architectures. However, we show these approaches overlook that the optimal inductive bias also changes according to the target data scale changes by comparing various models' accuracy on subsets of sampled ImageNet at different ratios. In addition, through Fourier analysis of feature maps, the model's response patterns according to signal frequency changes, we observe which inductive bias is advantageous for each data scale. The more convolution-like inductive bias is included in the model, the smaller the data scale is required where the ViT-like model outperforms the ResNet performance. To obtain a model with flexible inductive bias on the data scale, we show reparameterization can interpolate inductive bias between convolution and self-attention. By adjusting the number of epochs the model stays in the convolution, we show that reparameterization from convolution to self-attention interpolates the Fourier analysis pattern between CNNs and ViTs. Adapting these findings, we propose Progressive Reparameterization Scheduling (PRS), in which reparameterization adjusts the required amount of convolution-like or self-attention-like inductive bias per layer. For small-scale datasets, our PRS performs reparameterization from convolution to self-attention linearly faster at the late stage layer. PRS outperformed previous studies on the small-scale dataset, e.g., CIFAR-100.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。