<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>A Deep Analysis of Grouped Convolution Schemes for Improving Deep Learning Performance</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jianhao Gong</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hengyi Li</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Qi Li</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lin Meng</string-name>
          <email>menglin@fc.gritsumei.ac.jp</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dept.of Electronic and Computer Engineering, Ritsumeikan University</institution>
          ,
          <addr-line>Kusatsu, Shiga</addr-line>
          ,
          <country country="JP">Japan</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>With the widespread utilization of deep learning, reducing the model parameters and the inference time for applying various hardware environments becomes an important issue. This paper aims to improve deep learning performance by reducing model parameters and inference time through a deep analysis of the grouped convolution. The technique is equipped on VGG model which is one of the major deep learning architecture and extended to new deep learning models. The experimental results show that the inference time is reduced to 55% only with slight accuracy deterioration.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>Works</title>
      <p>
        Grouped convolution is rst applied in AlexNet[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]to distribute the model into two GPUs in
2012 for the lack of memory of GTX580. Later, there has been a lot of research about grouped
convolution.
      </p>
      <p>
        ResNeXt [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]makes further e orts using grouped convolution to implement a set of
transformations and certi cating e ectiveness of the model. A large number of researchers apply
grouped convolution to design computation-e cient DNNs[
        <xref ref-type="bibr" rid="ref9">9</xref>
        ][
        <xref ref-type="bibr" rid="ref10">10</xref>
        ][
        <xref ref-type="bibr" rid="ref11">11</xref>
        ][
        <xref ref-type="bibr" rid="ref12">12</xref>
        ][
        <xref ref-type="bibr" rid="ref13">13</xref>
        ][
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. On the basis
of grouped convolution, some researchers have also proposed depthwise convolution[
        <xref ref-type="bibr" rid="ref9">9</xref>
        ][
        <xref ref-type="bibr" rid="ref11">11</xref>
        ][
        <xref ref-type="bibr" rid="ref15">15</xref>
        ].
Depthwise convolution is a more extreme case of grouped convolution, which refers to a grouped
convolution scheme with the number of groups equal to the quantity of input feature maps.
In addition, researchers in Condensenet[
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] proposed a learnable grouped convolution to
automatically select the input channel of each group , which is far more e cient than modern
convolutional networks such as Shu eNet.
3
3.1
      </p>
    </sec>
    <sec id="sec-3">
      <title>Preliminary</title>
      <sec id="sec-3-1">
        <title>Research objective</title>
        <p>
          VGGBN architecture is taken to make the research, which improves VGG architecture by
introducing Batch Normalization [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ] operation. The details of the network are shown in
Table 1, and for simplicity, the experiments are taken on VGG13BN. VGG architecture is
proposed by the Visual Geometry Group of Oxford University[
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. An improvement of VGG
model compared with AlexNet is to use several smaller convolution kernels to replace the larger
convolution kernels in AlexNet. To be speci c, in VGG, three 3 3 convolution kernels are
used to replace 7 7 convolution kernel, two 3 3 convolution kernels are used to replace 5 5
convolution kernel. VGG architecture reveals that the depth of CNN neural network which has
several stacked kernel lters with small size is a signi cant factor for the network performance.
For the reason that a given receptive eld, using a stacked small convolution kernel is better
than using a large convolution kernel. And in terms of multiple nonlinear layers with more
depth of the network, it ensures the network with the ability of learning complex patterns. As
for Batch Normalization[
          <xref ref-type="bibr" rid="ref17">17</xref>
          ], the method is proposed by Sergey Io e and Christian Szegedy
mainly to improve training speed and prevent over tting.
3.2
        </p>
      </sec>
      <sec id="sec-3-2">
        <title>Dataset</title>
        <p>
          In this paper, Dataset of Kuzushiji is taken to make the study. Kuzushiji is a dataset that
consists of over 65000 labeled high-resolution images of ancient Asian characters, which are
classi ed into 1120 categories. In the experiments, we divide the dataset into a training set, a
validation set and a testing set in a ratio of about 16:4:5, of which there are 41770 pieces of
data in the training set, 10586 pieces of data in the validation set and 13,439 pieces of data in
the testing set. And the inputs are uni ed as RGB channels and reshaped with the centered
[224 224] to maintain the size for the network.
layer name
conv-1
conv-2
conv-3
conv-4
conv-5
The grouped convolution means a group of convolutions for the layer, with multiple groups
of kernels and corresponding multiple groups of output channels. The method was originally
proposed by AlexNet[
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] to distribute the model on two GPUs for the lack of graphics card
memory. And then, the model MobileNets[
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] proves that grouped convolution can reduce the
parameters of the neural network.
        </p>
        <p>The diagram of grouped convolution is shown in Fig.2. The gure a shows the original
convolution with eight output channels. And the right gure b convolution exhibits the grouped
convolution with four groups of eight output channels.
3.4</p>
      </sec>
      <sec id="sec-3-3">
        <title>Training Algorithm</title>
        <p>
          SGD is taken as the optimization algorithms for training phase in the experiments. The
stochastic gradient descent (SGD)[
          <xref ref-type="bibr" rid="ref18">18</xref>
          ] has become one of the most commonly used training algorithms
for deep neural networks. Although SGD is simple, it performs well in a variety of applications
and has a strong theoretical foundation.
4
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Research Proposal</title>
      <p>In terms of grouped convolution, to make a thorough analysis of the method, We take di erent
kinds of schemes shown as follows to make experiments.</p>
      <p>• Scheme A: convolutional layers of conv-3 that with the output channels of 256 are grouped
into 64 groups.
• Scheme B: convolutional layers of conv-4 and conv-5 that with the output channel of 512
are grouped into 64 groups.
• Scheme C: convolutional layers of conv-3, conv-4 and conv-5 with the output channel of
256 and 512 respectively are grouped into 64 groups.
• Scheme D: convolutional layers of conv-2, conv-3, conv-4 and conv-5 with the output
channel of 128, 256 and 512 respectively are grouped into 64 groups.
• Scheme E: convolutional layers of conv-2, conv-3, conv-4 and conv-5 with the output
channel of 128, 256 and 512 respectively are grouped into 32 groups.
5
5.1</p>
    </sec>
    <sec id="sec-5">
      <title>Experiment</title>
      <sec id="sec-5-1">
        <title>Experimental Results</title>
        <p>In the process of training, we set the batch size to be 20 and take the epoch of 25. The
experimental results are shown in the following gures, and the baseline corresponds to the
original model.</p>
        <p>Fig.3-Fig.8 show the accuracy curve and loss curve of training and validation during the
training process. The training loss for the baseline is 0.064, and the values for grouped
convolutions vary from 0.062 to 0.086. The validation loss of the baseline is 1.139, and the values for
grouped convolutions vary from 1.199 to 1.4. It can be seen that the grouped convolution has
little impact on the training loss and validation loss compared with the baseline. In terms of the
training accuracy, the grouped convolutions have little change compared with the baseline. As
for the validation accuracy, the grouped convolutions have a little more decrease. Such as the
validation accuracy and test accuracy for scheme E decreases by 4.04% and 2.49% respectively
compared with the baseline. Fig.9 shows the test accuracy of the baseline and the grouped
convolution network. The test accuracy follows the same laws as the validation accuracy. However,
the decrease is still within the acceptable range.</p>
        <p>Fig.10 shows the Macs and the inference time for processing one input of the model. As
can be seen, with acceptable loss of accuracy, the two indexes the models which adopt grouped
convolution have a signi cant decrease compared with that of the original network. For example,
the Macs of scheme E decreased by about 80% compared with the baseline. The inference time
of scheme E is decreased by 54.73%.
5.2</p>
      </sec>
      <sec id="sec-5-2">
        <title>Loss and accuracy</title>
        <p>As can be seen from Fig.3-Fig.8, the grouped convolution has little impact on the performance
of the model. Even for scheme D, the test accuracy decreases only by 3.03% compared with
the baseline.</p>
        <p>train_accuracy</p>
        <p>val_accuracy
0 0
5
10</p>
        <p>Epoch
15
20
25
0</p>
        <p>5</p>
        <p>In this section, we take the multiply-accumulate operations (Macs) and the inference time
to make the evaluation. According to Fig.10, it can be seen that the multiply-accumulate
operations(Macs) of the models which adopt grouped convolution are lower than that of the
original network. For example, the Macs of scheme E decreased by about 80% compared with
the baseline. The inference time of scheme E is also signi cantly decreased by 54.73%. From the
above data, the more layers that convolved with groups the model has, the faster its training
speed is, and the lower the amount of parameters and Macs is.</p>
        <p>100
80
%
/
Baseline Scheme A Scheme B Scheme C Scheme D Scheme E
12
11
10
9
8
/csG76
a
M5
4
3
2
1
0
300
250
The paper makes an in-depth study on the grouped convolution and proves its e ectiveness.
The grouped convolution makes the input layer into groups and convolves them separately. By
this way, the method can greatly reduce the Macs by up to 80% and decrease the inference
time by up to 50% for neural network with a little impact on the accuracy. According to the
research, conclusions can be drawn that the more grouped convolution makes more decrease on
the Macs and the inference time of the model, however, along with relatively more loss on the
accuracy. In practice, we need to weigh these factors to make the best scheme. In the follow-up
research, we plan to make further study on more datasets such as ImageNet and CIFAR100
to analysis the di erence among various datasets. And combining the shu e operation with
the grouped convolution to make further improvements for neural networks by exploiting the
potential of the cooperation, with expectations to achieve a more simpli ed neural network
with high accuracy.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Alex</given-names>
            <surname>Krizhevsky</surname>
          </string-name>
          , Ilya Sutskever, and
          <string-name>
            <surname>Geo</surname>
            rey
            <given-names>E</given-names>
          </string-name>
          <string-name>
            <surname>Hinton</surname>
          </string-name>
          .
          <article-title>Imagenet classi cation with deep convolutional neural networks</article-title>
          .
          <source>Advances in neural information processing systems</source>
          ,
          <volume>25</volume>
          :
          <fpage>1097</fpage>
          {
          <fpage>1105</fpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Kaiming</given-names>
            <surname>He</surname>
          </string-name>
          , Xiangyu Zhang, Shaoqing Ren, and
          <string-name>
            <given-names>Jian</given-names>
            <surname>Sun</surname>
          </string-name>
          .
          <article-title>Deep residual learning for image recognition</article-title>
          .
          <source>In Proceedings of the IEEE conference on computer vision and pattern recognition</source>
          , pages
          <volume>770</volume>
          {
          <fpage>778</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Christian</given-names>
            <surname>Szegedy</surname>
          </string-name>
          , Vincent Vanhoucke, Sergey Io e, Jon Shlens, and
          <string-name>
            <given-names>Zbigniew</given-names>
            <surname>Wojna</surname>
          </string-name>
          .
          <article-title>Rethinking the inception architecture for computer vision</article-title>
          .
          <source>In Proceedings of the IEEE conference on computer vision and pattern recognition</source>
          , pages
          <volume>2818</volume>
          {
          <fpage>2826</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Lyu</given-names>
            <surname>Bing</surname>
          </string-name>
          , Hiroyuki Tomiyama, and
          <string-name>
            <given-names>Lin</given-names>
            <surname>Meng</surname>
          </string-name>
          .
          <article-title>Frame detection and text line segmentation for early japanese books understanding</article-title>
          .
          <source>In Proceedings of the 9th International Conference on Pattern Recognition Applications and Methods - ICPRAM</source>
          ,, pages
          <fpage>600</fpage>
          {
          <fpage>606</fpage>
          . INSTICC, SciTePress,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Lin</surname>
            <given-names>Meng</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bing Lyu</surname>
            , Zhiyu Zhang,
            <given-names>C.V.</given-names>
          </string-name>
          <string-name>
            <surname>Aravinda</surname>
            , Naoto Kamitoku, and
            <given-names>Katsuhiro</given-names>
          </string-name>
          <string-name>
            <surname>Yamazaki</surname>
          </string-name>
          .
          <article-title>Oracle bone inscription detector based on ssd</article-title>
          .
          <source>ICIAP2019</source>
          , pages
          <fpage>126</fpage>
          {
          <fpage>136</fpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Hengyi</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Zhichen</given-names>
            <surname>Wang</surname>
          </string-name>
          , Xuebin Yue, Wenwen Wang,
          <string-name>
            <surname>Hiroyuki Tomiyama</surname>
            , and
            <given-names>Lin</given-names>
          </string-name>
          <string-name>
            <surname>Meng</surname>
          </string-name>
          .
          <article-title>A comprehensive analysis of low-impact computations in deep learning workloads</article-title>
          .
          <source>In in Proceedings of the Great Lakes Symposium on VLSI 2021 (the 31st GLSVLSI)</source>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Karen</given-names>
            <surname>Simonyan</surname>
          </string-name>
          and
          <string-name>
            <given-names>Andrew</given-names>
            <surname>Zisserman</surname>
          </string-name>
          .
          <article-title>Very deep convolutional networks for large-scale image recognition</article-title>
          .
          <source>arXiv preprint arXiv:1409.1556</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Saining</given-names>
            <surname>Xie</surname>
          </string-name>
          , Ross Girshick, Piotr Dollar, Zhuowen Tu, and
          <string-name>
            <given-names>Kaiming</given-names>
            <surname>He</surname>
          </string-name>
          .
          <article-title>Aggregated residual transformations for deep neural networks</article-title>
          .
          <source>In Proceedings of the IEEE conference on computer vision and pattern recognition</source>
          , pages
          <volume>1492</volume>
          {
          <fpage>1500</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Andrew</surname>
            <given-names>G Howard</given-names>
          </string-name>
          ,
          <article-title>Menglong Zhu</article-title>
          , Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and
          <string-name>
            <given-names>Hartwig</given-names>
            <surname>Adam</surname>
          </string-name>
          .
          <article-title>Mobilenets: E cient convolutional neural networks for mobile vision applications</article-title>
          .
          <source>arXiv preprint arXiv:1704.04861</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Ningning</surname>
            <given-names>Ma</given-names>
          </string-name>
          , Xiangyu Zhang,
          <string-name>
            <surname>Hai-Tao Zheng</surname>
            , and
            <given-names>Jian</given-names>
          </string-name>
          <string-name>
            <surname>Sun</surname>
          </string-name>
          .
          <article-title>Shu enet v2: Practical guidelines for e cient cnn architecture design</article-title>
          .
          <source>In Proceedings of the European conference on computer vision (ECCV)</source>
          , pages
          <fpage>116</fpage>
          {
          <fpage>131</fpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>Mark</given-names>
            <surname>Sandler</surname>
          </string-name>
          , Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and
          <string-name>
            <surname>Liang-Chieh Chen</surname>
          </string-name>
          . Mobilenetv2:
          <article-title>Inverted residuals and linear bottlenecks</article-title>
          .
          <source>In Proceedings of the IEEE conference on computer vision and pattern recognition</source>
          , pages
          <volume>4510</volume>
          {
          <fpage>4520</fpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Ke</surname>
            <given-names>Sun</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Mingjie</given-names>
            <surname>Li</surname>
          </string-name>
          , Dong Liu, and
          <string-name>
            <given-names>Jingdong</given-names>
            <surname>Wang</surname>
          </string-name>
          .
          <article-title>Igcv3: Interleaved low-rank group convolutions for e cient deep neural networks</article-title>
          .
          <source>arXiv preprint arXiv:1806.00178</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Ting</surname>
            <given-names>Zhang</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guo-Jun</surname>
            <given-names>Qi</given-names>
          </string-name>
          , Bin Xiao, and
          <string-name>
            <given-names>Jingdong</given-names>
            <surname>Wang</surname>
          </string-name>
          .
          <article-title>Interleaved group convolutions</article-title>
          .
          <source>In Proceedings of the IEEE international conference on computer vision</source>
          , pages
          <volume>4373</volume>
          {
          <fpage>4382</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Xiangyu</surname>
            <given-names>Zhang</given-names>
          </string-name>
          , Xinyu Zhou,
          <string-name>
            <given-names>Mengxiao</given-names>
            <surname>Lin</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Jian</given-names>
            <surname>Sun</surname>
          </string-name>
          .
          <article-title>Shu enet: An extremely e cient convolutional neural network for mobile devices</article-title>
          .
          <source>In Proceedings of the IEEE conference on computer vision and pattern recognition</source>
          , pages
          <volume>6848</volume>
          {
          <fpage>6856</fpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>Francois</given-names>
            <surname>Chollet</surname>
          </string-name>
          . Xception:
          <article-title>Deep learning with depthwise separable convolutions</article-title>
          .
          <source>In Proceedings of the IEEE conference on computer vision and pattern recognition</source>
          , pages
          <volume>1251</volume>
          {
          <fpage>1258</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <surname>Gao</surname>
            <given-names>Huang</given-names>
          </string-name>
          , Shichen Liu, Laurens Van der Maaten, and
          <string-name>
            <surname>Kilian Q Weinberger. Condensenet</surname>
          </string-name>
          :
          <article-title>An e cient densenet using learned group convolutions</article-title>
          .
          <source>In Proceedings of the IEEE conference on computer vision and pattern recognition</source>
          , pages
          <volume>2752</volume>
          {
          <fpage>2761</fpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <surname>Sergey</surname>
            <given-names>Io e and Christian</given-names>
          </string-name>
          <string-name>
            <surname>Szegedy</surname>
          </string-name>
          .
          <article-title>Batch normalization: Accelerating deep network training by reducing internal covariate shift</article-title>
          .
          <source>In International conference on machine learning</source>
          , pages
          <volume>448</volume>
          {
          <fpage>456</fpage>
          .
          <string-name>
            <surname>PMLR</surname>
          </string-name>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>Herbert</given-names>
            <surname>Robbins</surname>
          </string-name>
          and
          <string-name>
            <given-names>Sutton</given-names>
            <surname>Monro</surname>
          </string-name>
          .
          <article-title>A stochastic approximation method</article-title>
          .
          <source>The annals of mathematical statistics</source>
          , pages
          <volume>400</volume>
          {
          <fpage>407</fpage>
          ,
          <year>1951</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>