<!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>Incremental Training of Deep Convolutional Neural Networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>R. Istrate</string-name>
          <email>ristrate01@qub.ac.uk</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>A. C. I. Malossi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>C. Bekas</string-name>
          <email>bek@zurich.ibm.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>D. Nikolopoulos</string-name>
          <email>d.nikolopoulos@qub.ac.uk</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>IBM Research</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Queen's University of Belfast</institution>
          ,
          <country country="UK">United Kingdom</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Zurich</institution>
          ,
          <country country="CH">Switzerland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>We propose an incremental training method that partitions the original network into sub-networks, which are then gradually incorporated in the running network during the training process. To allow for a smooth dynamic growth of the network, we introduce a look-ahead initialization that outperforms the random initialization. We demonstrate that our incremental approach reaches the reference network baseline accuracy. Additionally, it allows to identify smaller partitions of the original state-of-the-art network, that deliver the same nal accuracy, by using only a fraction of the global number of parameters. This allows for a potential speedup of the training time of several factors. We report training results on CIFAR-10 for ResNet and VGGNet.</p>
      </abstract>
      <kwd-group>
        <kwd>Training algorithm</kwd>
        <kwd>Look-ahead</kwd>
        <kwd>CNNs</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>When dealing with a classi cation task on a new dataset of images, a widely
used strategy is to start by training a few state-of-the-art networks that were
developed for similar datasets. The main disadvantage of this approach is that
only too late in the process we learn whether the network is not well suited for
the dataset. At that moment, the training is stopped, the network is adapted
and the process is restarted from scratch, discarding all the previously collected
information. Thus, in the presence of large, complex datasets, the global
timeto-solution tends to reach the order of several weeks or even months.</p>
      <p>A great deal of research is now focused in optimizing the depth of a neural
network (NN) and most of the proposed methods involve growing the network
by gradually adding one or more layers [1{3]. Although this is a logical step
towards evolving network architectures, to the best of our knowledge there is
no work that compares the accuracy and performance of the networks obtained
by dynamically adapting their structure during training, with the original one
trained from scratch.</p>
      <p>In this paper we present our contribution towards gradually training deep
state-of-the-art convolutional neural networks (CNNs) with no loss in accuracy.
During incremental training we start the learning process with a shallow network.
When the network performance stops improving because of its limited capacity,
we transfer the knowledge of the shallow network to a deeper one and continue
the training. In this way the time and resources spent in training the initial
shallow network are not wasted and the deeper network has a better initialization
point. Additionally, since the incremental training method easily quanti es (by
construction) the value added by each network extension, it is simple to de ne
custom trade-o functions (e.g., time vs accuracy) to stop the network expansion
when desired criteria are met. The long-term goal is to develop a fully-automated
framework that optimizes neural network structures for speci c tasks. However,
this requires knowing what type of changes need to be performed to the network,
which is outside the scope the current work.</p>
      <p>The rest of the paper is organized as follows. Section 2 brie y summaries
related works, Section 3 provides an overview of our methodology, while Section 4
presents the results of our experiments. Finally, concluding remarks and future
works are summarized in Section 5.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related work</title>
      <p>
        There is a clear tendency in the literature towards automatizing the design of
NN. In AdaNet [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] the authors aim to optimize the network architecture and
the internal weights, by balancing the trade-o between model complexity and
empirical risk minimization. Although the claim is that networks discovered
through this approach perform better than those found with a grid search, only
limited results for binary classi ers trained on subsets of CIFAR-10 [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] dataset
are presented.
      </p>
      <p>
        Auto-Net [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] is a framework that automatically tunes feed-forward neural
networks without human intervention. The authors focus only on fully-connected
neural networks in order to keep the number of hyper-parameters at a
manageable level. They tune 63 network and layer dependant hyper-parameters for
networks which are at most 6 layers deep. With this method they generated an
ensemble of 39 models that outperformed all human experts and was the rst
automatically generated model to win an image competition 3.
      </p>
      <p>
        On the same track, a framework for large scale image classi ers [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] makes
use of genetic intuitive mutations to explore unprecedented large search spaces.
The fully automatic evolution culminates with a trained network that reaches
94.6% accuracy on CIFAR-10, 2% lower than manually engineered
state-of-theart networks. However, the prohibitive computational cost of the framework, that
required 4 1020 FLOP for a 12 layer network, makes this approach unfeasible
in practical scenarios with bigger datasets.
      </p>
      <p>Other works [7{9] that discover good combination of hyper-parameters do not
employ neuro-evolution, therefore the discovery requirements in terms of time
and resources are less expensive, but have other drawbacks such as limited search
space, considerable loss in accuracy, limited usability, and need of retraining from
scratch for a considerable amount of time after each network alteration.
3 http://automl.chalearn.org/</p>
      <p>
        Other steps towards incremental training are presented in [
        <xref ref-type="bibr" rid="ref10 ref11">10, 11</xref>
        ], where the
goal is to transfer knowledge from a small network towards a signi cantly larger
network under some architectural constraints. These approaches have a twofold
bene t. First, they explore the design space of current state-of-the-art networks
in order to nd better performers. Second, they avoid information loss when the
network structure has to be slightly modi ed. Although they improve
state-ofthe-art results for the ImageNet classi cation task, it would be interesting to
compare in terms of time/accuracy the networks obtained through transferred
learning with the same networks trained from scratch.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Methodology</title>
      <p>Let us consider a generic CNN N composed of n layers. The incremental training
method proposed in this work begins by partitioning the original network N into
K sub-networks Sk, with k = 1; :::; K and K n. In our current implementation,
the partitioning is done a priori and does not change throughout the training
process, although this will be subject of future studies. A sub-network can be
composed of one or several layers, with the only constraint that at least one
of the layers must contain trainable parameters; in other words, pooling and
dropout cannot constitute a sub-network by themselves. The classi er block at
the end of the network, which might include fully-connected layers or global
pooling layers, is not considered in the K partitions.</p>
      <p>Following the scheme illustrated in Fig. 1, the training process starts with
sub-network S1 attached to the classi er block. To determine when is the optimal
time to add the second sub-network S2 between S1 and the classi er, we compute
every window size (ws) epochs the improvement in the validation accuracy. When
the improvement observed is below a threshold we stop the training and we
increase the network depth by adding the next sub-network. This process, which
is illustrated in Fig. 2, repeats until all K sub-networks are incorporated or until
another custom criteria is met.</p>
      <p>Each time a new sub-network Sk+1 is inserted in the current architecture,
its weights need to be initialized. This step is delicate, as our experiments show
empirically that a non-optimal initialization (e.g., random) might prevent the
network from reaching the same accuracy as the original one, or might slow down
signi cantly the incremental training process (Section 4). To overcome this issue,
we propose a more e cient initialization technique, that we refer to as look-ahead.
Given a current network constituted by k sub-networks, our look-ahead method
consists of training Sk+1 for a few epochs based on the input generated by the
already trained uppermost part of the network. This strategy provides a more
informed starting point for the new sub-network, since it looks ahead towards
more complex features that can be obtained based on the previously learned
ones. We remark that the weights of the original sub-network S1 + S2 + ::: + Sk
are freezed during the look-ahead process that initializes Sk+1; this implies that
no time is spent in back-propagating in that region of the network. Moreover,
the depth of the look-ahead tends to be comparably smaller than the depth
(Step 1)
(Step 2)
(Step 3)
(Step 4)
of the nal network, therefore the training of the look-ahead is not considered
expensive.
In this section, we train several state-of-the-art CNNs to compare the
performance of our incremental training method, with the one of the classical
algorithm. All runs involve single-precision arithmetic and are performed on IBM4
POWER8 Minsky compute nodes, equipped with four Nvidia P100 GPUs.</p>
      <p>
        In all experiments we use the CIFAR-10 dataset. CIFAR-10 is a collection
of 60,000 RGB images of 32x32x3 pixels each, evenly distributed across 10
mutually exclusive classes. On top of it, we also use the simple data augmentation
described in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] and summarized in Table 1, Panel A. Concerning the baseline
networks, we chose ResNet [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] and VGGNet [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]: the former is tailored for
CIFAR-10, while the latter is sized for more complex datasets.
      </p>
      <p>The aim of our experiments is to demonstrate the advantages of the
incremental training method compared to the regular one. Therefore, in our runs
we do not employ all the advanced tricks (e.g., learning rate schedule) needed
to reach the highest state-of-the-art accuracy. The values of the most relevant
hyper-parameters are summarized in Table 1, Panel B. The partitioning of the
networks for the incremental training is mainly based on simplicity. We group
layers with the same number of lters (in the case of convolutions) and the same
number of output nodes (in the case of dense layers). We tested di erent types
of network partitioning observing no major impact in the overall performance.</p>
      <p>In Fig. 3 we show a comparison between the regular and incremental
training methods: for the latter, we plot results using both random and look-ahead
initialization. The validation accuracy ( rst row) shows that the look-ahead
outperforms the random initialization of the sub-networks. This behavior is better
illustrated in the case of ResNet-56 network, in contrast with the behavior of
VGGNet, as the over-parametrized network mitigates the outperformance. On
the second row we estimate the cost per inference of each sub-network in terms
of FLOPs. The plots highlight the bene t of our incremental training, that
performs a much lower amount of calculations for the majority of the training time.
4 IBM, the IBM logo, ibm.com, OpenPOWER are trademarks or registered trademarks of
International Business Machines Corporation in the United States, other countries, or both.
Other product and service names might be trademarks of IBM or other companies.</p>
      <p>Net++
Random
Lookahead</p>
      <p>Baseline
20 40 60 80 100 120 140</p>
      <p>Epochs
Net++
Random
Lookahead</p>
      <p>Baseline
20 40 60 80 100 120 140</p>
      <p>Epochs
Random
Lookahead</p>
      <p>Baseline
20 40 60 80 100 120 140</p>
      <p>Epochs
Random
Lookahead</p>
      <p>Baseline
20 40 60 80 100 120 140</p>
      <p>Epochs
1
2 3 4
Cumulative FLOPs
ResNet-56</p>
      <p>Random
Lookahead
Baseline
5
1e146</p>
      <p>Random
Lookahead</p>
      <p>Baseline
0.40.0 0.2 0.4</p>
      <p>Cum0u.l6ative0F.8LOPs1.0 1.2 1e115.4
VGGNet
0.4 0</p>
      <p>On the third and last row we observe that, while the regular version of the
VGGNet reached 90% accuracy using 1.4 PFLOP, the incremental version needed
0.8 PFLOP and only 40% of the total number of parameters. In both networks
the look-ahead training converged faster.</p>
      <p>On top of these advantages, the incremental training allows to trace the
importance of each sub-network during the training. For instance, in the case
of VGGNet, the last two sub-networks bring a marginal improvement (less than
1% accuracy), while increasing by 16% the inference cost and by 80% the number
of parameters. In Fig. 4 we show that only 5% of the VGGNet paramaters are
enough to reach 85% accuracy, while with 42% we arrive to the baseline accuracy.
Therefore, the incremental training can be of great bene t for applications in
which the last 1-2% of accuracy are not crucial and a slightly lower performance is
within accepted limits. Indeed, it can dynamically determine to stop the network
expansion early, saving a lot of computational resources without compromising
accuracy.</p>
      <p>1.0
We proposed an incremental training method for CNNs. We demonstrated that
our method reaches same or slightly better accuracy than regular training
methods on state-of-the-art networks. This was achieved by using a more informed
initialization of the network extension, which we call the look-ahead. Clear
bene ts of the incremental training are the faster convergence, the intuitive
understanding of the importance of each sub-network in the overall performance,
and the smooth synergy between training and optimal network depth discovery.
In future works, we plan to generalize the present approach to other types of
networks, such as Recurrent Neural Networks and Long Short Term Memory.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Corinna</given-names>
            <surname>Cortes</surname>
          </string-name>
          , Xavi Gonzalvo, Vitaly Kuznetsov, Mehryar Mohri, and
          <string-name>
            <given-names>Scott</given-names>
            <surname>Yang</surname>
          </string-name>
          .
          <article-title>Adanet: Adaptive structural learning of arti cial neural networks</article-title>
          .
          <source>arXiv preprint arXiv:1607.01097</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Jae-Yoon Jung</surname>
            and
            <given-names>James A.</given-names>
          </string-name>
          <string-name>
            <surname>Reggia</surname>
          </string-name>
          .
          <article-title>The automated design of arti cial neural networks using evolutionary computation</article-title>
          .
          <source>In Success in Evolutionary Computation</source>
          , pages
          <volume>19</volume>
          {
          <fpage>41</fpage>
          . Springer,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Dong</given-names>
            <surname>Yu</surname>
          </string-name>
          , Li Deng, Frank Torsten Bernd Seide,
          <string-name>
            <given-names>Gang</given-names>
            <surname>Li</surname>
          </string-name>
          .
          <article-title>Discriminative pretraining of deep neural networks</article-title>
          ,
          <source>May</source>
          <volume>30</volume>
          2013. US Patent App.
          <volume>13</volume>
          /304,
          <fpage>643</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Alex</given-names>
            <surname>Krizhevsky</surname>
          </string-name>
          and
          <article-title>Geo rey Hinton. Learning multiple layers of features from tiny images</article-title>
          .
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Hector</given-names>
            <surname>Mendoza</surname>
          </string-name>
          , Aaron Klein, Matthias Feurer, Jost Tobias Springenberg, and
          <string-name>
            <given-names>Frank</given-names>
            <surname>Hutter</surname>
          </string-name>
          .
          <article-title>Towards automatically-tuned neural networks</article-title>
          .
          <source>In Workshop on Automatic Machine Learning</source>
          , pages
          <volume>58</volume>
          {
          <fpage>65</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Esteban</given-names>
            <surname>Real</surname>
          </string-name>
          , Sherry Moore, Andrew Selle,
          <string-name>
            <given-names>Saurabh</given-names>
            <surname>Saxena</surname>
          </string-name>
          , Yutaka Leon Suematsu, Quoc Le, and
          <string-name>
            <given-names>Alex</given-names>
            <surname>Kurakin</surname>
          </string-name>
          .
          <article-title>Large-scale evolution of image classi ers</article-title>
          .
          <source>arXiv preprint arXiv:1703.01041</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Junqi</given-names>
            <surname>Jin</surname>
          </string-name>
          , Ziang Yan, Kun Fu, Nan Jiang,
          <string-name>
            <given-names>and Changshui</given-names>
            <surname>Zhang</surname>
          </string-name>
          .
          <article-title>Neural network architecture optimization through submodularity and supermodularity</article-title>
          .
          <source>arXiv preprint arXiv:1609.00074</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8. Song Han,
          <string-name>
            <given-names>Huizi</given-names>
            <surname>Mao</surname>
          </string-name>
          , and
          <string-name>
            <surname>William</surname>
          </string-name>
          J Dally.
          <article-title>Deep compression: Compressing deep neural networks with pruning, trained quantization and hu man coding</article-title>
          .
          <source>arXiv preprint arXiv:1510.00149</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Tobias</given-names>
            <surname>Domhan</surname>
          </string-name>
          , Jost Tobias Springenberg, and
          <string-name>
            <given-names>Frank</given-names>
            <surname>Hutter</surname>
          </string-name>
          .
          <article-title>Speeding up automatic hyperparameter optimization of deep neural networks by extrapolation of learning curves</article-title>
          .
          <source>In IJCAI</source>
          , pages
          <volume>3460</volume>
          {
          <fpage>3468</fpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Tianqi</surname>
            <given-names>Chen</given-names>
          </string-name>
          , Ian Goodfellow, and Jonathon Shlens. Net2net:
          <article-title>Accelerating learning via knowledge transfer</article-title>
          .
          <source>arXiv preprint arXiv:1511.05641</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Tao</surname>
            <given-names>Wei</given-names>
          </string-name>
          , Changhu Wang,
          <string-name>
            <surname>Yong Rui</surname>
          </string-name>
          ,
          <article-title>and Chang Wen Chen</article-title>
          .
          <article-title>Network morphism</article-title>
          .
          <source>In International Conference on Machine Learning</source>
          , pages
          <volume>564</volume>
          {
          <fpage>572</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Matthew</surname>
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Zeiler</surname>
            and
            <given-names>Rob</given-names>
          </string-name>
          <string-name>
            <surname>Fergus</surname>
          </string-name>
          .
          <article-title>Visualizing and understanding convolutional networks</article-title>
          .
          <source>In European conference on computer vision</source>
          , pages
          <volume>818</volume>
          {
          <fpage>833</fpage>
          . Springer,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Chen-Yu</surname>
            <given-names>Lee</given-names>
          </string-name>
          , Saining Xie, Patrick Gallagher, Zhengyou Zhang, and
          <string-name>
            <given-names>Zhuowen</given-names>
            <surname>Tu</surname>
          </string-name>
          .
          <article-title>Deeply-supervised nets</article-title>
          .
          <source>In Arti cial Intelligence and Statistics</source>
          , pages
          <volume>562</volume>
          {
          <fpage>570</fpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <source>Tijmen Tieleman and Geo rey Hinton. Lecture 6</source>
          .5
          <article-title>-rmsprop: Divide the gradient by a running average of its recent magnitude</article-title>
          .
          <source>COURSERA: Neural networks for machine learning</source>
          ,
          <volume>4</volume>
          (
          <issue>2</issue>
          ),
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Kaiming</surname>
            <given-names>He</given-names>
          </string-name>
          , Xiangyu Zhang, Shaoqing Ren, and
          <string-name>
            <given-names>Jian</given-names>
            <surname>Sun</surname>
          </string-name>
          .
          <article-title>Delving deep into recti ers: Surpassing human-level performance on imagenet classi cation</article-title>
          .
          <source>In Proceedings of the IEEE international conference on computer vision</source>
          , pages
          <volume>1026</volume>
          {
          <fpage>1034</fpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <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="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Kaiming</surname>
            <given-names>He</given-names>
          </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="ref18">
        <mixed-citation>
          18.
          <string-name>
            <given-names>Barret</given-names>
            <surname>Zoph</surname>
          </string-name>
          and Quoc V Le.
          <article-title>Neural architecture search with reinforcement learning</article-title>
          .
          <source>arXiv preprint arXiv:1611.01578</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>