Peng Zhang, Jinsong Tang, Heping Zhong, Mingqiang Ning, Yue Fan
{"title":"Pre-rotation only at inference-time: a way to rotation invariance","authors":"Peng Zhang, Jinsong Tang, Heping Zhong, Mingqiang Ning, Yue Fan","doi":"10.1117/12.2644390","DOIUrl":null,"url":null,"abstract":"Weight sharing across different locations makes Convolutional Neural Networks (CNNs) space shift invariant, i.e., the weights learned in one location can be applied to recognize objects in other locations. However, weight sharing mechanism has been lacked in Rotated Pattern Recognition (RPR) tasks, and CNNs have to learn training samples in different orientations by rote. As such rote-learning strategy has greatly increased the difficulty of training, a new solution for RPR tasks, Pre-Rotation Only At Inference time (PROAI), is proposed to provide CNNs with rotation invariance. The core idea of PROAI is to share CNN weights across multiple rotated versions of the test sample. At the training time, a CNN was trained with samples only in one angle; at the inference-time, test samples were pre-rotated at different angles and then fed into the CNN to calculate classification confidences; at the end both the category and the orientation were predicted using the position of the max value of these confidences. By adopting PROAI, the recognition ability learned at one orientation can be generalized to patterns at any other orientation, and both the number of parameters and the training time of CNN in RPR tasks can be greatly reduced. Experiments show that PROAI enables CNNs with less parameters and training time to achieve state-of-the-art classification and orientation performance on both rotated MNIST and rotated Fashion MNIST datasets.","PeriodicalId":314555,"journal":{"name":"International Conference on Digital Image Processing","volume":"53 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-10-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Conference on Digital Image Processing","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1117/12.2644390","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2
Abstract
Weight sharing across different locations makes Convolutional Neural Networks (CNNs) space shift invariant, i.e., the weights learned in one location can be applied to recognize objects in other locations. However, weight sharing mechanism has been lacked in Rotated Pattern Recognition (RPR) tasks, and CNNs have to learn training samples in different orientations by rote. As such rote-learning strategy has greatly increased the difficulty of training, a new solution for RPR tasks, Pre-Rotation Only At Inference time (PROAI), is proposed to provide CNNs with rotation invariance. The core idea of PROAI is to share CNN weights across multiple rotated versions of the test sample. At the training time, a CNN was trained with samples only in one angle; at the inference-time, test samples were pre-rotated at different angles and then fed into the CNN to calculate classification confidences; at the end both the category and the orientation were predicted using the position of the max value of these confidences. By adopting PROAI, the recognition ability learned at one orientation can be generalized to patterns at any other orientation, and both the number of parameters and the training time of CNN in RPR tasks can be greatly reduced. Experiments show that PROAI enables CNNs with less parameters and training time to achieve state-of-the-art classification and orientation performance on both rotated MNIST and rotated Fashion MNIST datasets.
不同位置的权值共享使得卷积神经网络(cnn)具有空间移位不变性,即在一个位置学习到的权值可以应用于识别其他位置的物体。然而,旋转模式识别(RPR)任务缺乏权值共享机制,cnn必须通过死记硬背的方式学习不同方向的训练样本。由于这种死记死背的学习策略大大增加了训练的难度,提出了一种新的RPR任务解决方案,即PROAI (Pre-Rotation Only At Inference time),为cnn提供旋转不变量。PROAI的核心思想是在多个旋转版本的测试样本之间共享CNN权重。在训练时,CNN只在一个角度上训练样本;在推理时,对测试样本进行不同角度的预旋转,然后输入CNN计算分类置信度;最后,使用这些置信度最大值的位置来预测类别和方向。通过采用PROAI,在一个方向上学习到的识别能力可以推广到其他任何方向上的模式,大大减少了CNN在RPR任务中的参数数量和训练时间。实验表明,PROAI使cnn能够以更少的参数和训练时间在旋转MNIST和旋转时尚MNIST数据集上实现最先进的分类和定向性能。