<!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>Iterative Model-based Transfer in Deep Reinforcement Learning</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Maastricht University Department of Data Science and Knowledge Engineering Maastricht</institution>
          ,
          <country country="NL">the Netherlands</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In recent years, advances in the eld of Deep Reinforcement Learning (DRL) have enabled arti cial agents to obtain superhuman performance on various tasks, given enough interactions with the environment [7,4,12]. While the state of the art in DRL keeps improving rapidly, most algorithms result in agents that generalize badly, performing well only on the single task they were trained on [9]. Simultaneously, while most existing DRL transfer learning literature considers model-free RL algorithms [15,10,11,9], its counterpart model-based RL, in which agents explicitly model their environment rather than directly predicting stateaction values or policies, has shown great successes, especially in recent years [3,2,8,1,5]. Despite these successes, however, the feasibility of transfer learning with these approaches remains relatively under-explored. As it follows from intuition that representing multiple environments in a single model may help express their similarities and di erences and may therefore bene t transfer learning, this thesis explicitly investigates the feasibility of model-based DRL as a basis for (life-long) transfer learning.</p>
      </abstract>
      <kwd-group>
        <kwd>Transfer Learning</kwd>
        <kwd>Deep Reinforcement Learning</kwd>
        <kwd>Reinforcement Learning</kwd>
        <kwd>Continual Learning</kwd>
        <kwd>Life-long Learning</kwd>
        <kwd>Model-based</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Jelmer L. A. Neeven</p>
      <p>
        This IWM agent is trained sequentially on di erent variations of the Catcher
[
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] environment, each varying the angular direction of the falling fruit, each
time re-training the weights obtained from the previous environment.
Following [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], ve di erent metrics are reported, most importantly the
maximum obtained reward, the cumulative reward over each experiment and the time
to threshold, measuring the average number of steps required for the agent to
reach respectively 75% and 95% of the maximum possible reward. As a baseline
for comparison, a separate IWM agent is trained from scratch on each
environment individually.
      </p>
      <p>As expected, re-training the existing agent models on a new environment
facilitates transfer, since the environment dynamics largely remain similar. In
particular, an average increase in cumulative reward of 136% is observed
relative to training an agent from scratch on each environment, and an average
reduction of 72% is observed for the time to threshold (i.e. a 72% increase in
sample e ciency). No transfer is observed in terms of maximum obtained
reward, as both the agent trained from scratch and the sequentially trained agent
eventually obtain the maximal reward.</p>
      <p>However, if the agent is then again re-trained on a di erent variation of the
environment with both visual di erences and an inverted reward structure (where
the player has to dodge the fruit rather than catching it), no signi cant transfer
is observed at all. Investigations indicate that the necessary re-training of the
VAE e ectively destroys all previous knowledge. To overcome this, an extension
to the algorithm is introduced, Iterative World Models with Persistent
Memory (IWM-PM), which trains the agent not only on the current environment,
but also on its \memories" of all previous environments combined. Experiments
show this extension indeed has the desired e ect, substantially decreasing the
amount of change in VAE encodings after training on a new environment.
Subsequently, signi cant transfer is then observed for this new environment, albeit
negative with a 36% decrease in cumulative reward and 50% increase in time to
threshold, which is not surprising given the inverted reward structure of this new
environment relative to all previous environments.</p>
      <p>Additionally, on the environments with di erent angles, this extension further
increases cumulative reward by 158% and reduces time to threshold by 88% on
average compared to an agent trained from scratch.</p>
      <p>
        In conclusion, because the proposed IWM-PM algorithm can be considered a
combination of several state-of-the-art model-based algorithms [
        <xref ref-type="bibr" rid="ref2 ref3 ref5 ref6">2,3,6,5</xref>
        ], the
conducted experiments show that model-based DRL indeed has strong potential for
transfer learning. While the experiments conducted for this thesis were limited
and additional research is required before any strong conclusions can be drawn,
recent work on model-based DRL gives no reason to believe that these results
cannot be extended to more complex environments. Additionally, model-based
transfer learning approaches may have several preferable properties to prominent
model-free transfer algorithms such as Actor-Mimic and Progressive Neural
Networks [
        <xref ref-type="bibr" rid="ref10 ref11 ref15 ref9">15,10,9,11</xref>
        ].
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Gu</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lillicrap</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sutskever</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Levine</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Continuous deep Q-learning with model-based acceleration</article-title>
          .
          <source>In: International Conference on Machine Learning</source>
          . pp.
          <volume>2829</volume>
          {
          <issue>2838</issue>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Ha</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schmidhuber</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          :
          <article-title>Recurrent world models facilitate policy evolution</article-title>
          .
          <source>In: Advances in Neural Information Processing Systems</source>
          <volume>31</volume>
          , pp.
          <volume>2450</volume>
          {
          <issue>2462</issue>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Hafner</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lillicrap</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fischer</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Villegas</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ha</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Davidson</surname>
          </string-name>
          , J.:
          <article-title>Learning latent dynamics for planning from pixels (</article-title>
          <year>2019</year>
          ), arXiv preprint, http: //arxiv.org/abs/
          <year>1811</year>
          .04551
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Hessel</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Modayil</surname>
            , J., Van Hasselt,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schaul</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ostrovski</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dabney</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horgan</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Piot</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Azar</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Silver</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          : Rainbow:
          <article-title>Combining improvements in deep reinforcement learning</article-title>
          .
          <source>In: Thirty-Second AAAI Conference on Arti cial Intelligence</source>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Kaiser</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Babaeizadeh</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Milos</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Osinski</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Campbell</surname>
            ,
            <given-names>R.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Czechowski</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Erhan</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Finn</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kozakowski</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Levine</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , et al.:
          <article-title>Model-based reinforcement learning for atari (</article-title>
          <year>2019</year>
          ), arXiv preprint, http://arxiv.org/abs/
          <year>1903</year>
          .00374
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Ketz</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kolouri</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pilly</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Continual learning using world models for pseudorehearsal (</article-title>
          <year>2019</year>
          ), arXiv preprint, http://arxiv.org/abs/
          <year>1903</year>
          .02647
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Mnih</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kavukcuoglu</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Silver</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rusu</surname>
            ,
            <given-names>A.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Veness</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bellemare</surname>
            ,
            <given-names>M.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Graves</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Riedmiller</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fidjeland</surname>
            ,
            <given-names>A.K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ostrovski</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          , et al.:
          <article-title>Human-level control through deep reinforcement learning</article-title>
          .
          <source>Nature</source>
          <volume>518</volume>
          (
          <issue>7540</issue>
          ),
          <volume>529</volume>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Nagabandi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kahn</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fearing</surname>
            ,
            <given-names>R.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Levine</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Neural network dynamics for model-based deep reinforcement learning with model-free ne-tuning</article-title>
          .
          <source>In: 2018 IEEE International Conference on Robotics and Automation (ICRA)</source>
          . pp.
          <volume>7559</volume>
          {
          <issue>7566</issue>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Parisotto</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ba</surname>
            ,
            <given-names>J.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Salakhutdinov</surname>
          </string-name>
          , R.:
          <article-title>Actor-mimic: Deep multitask and transfer reinforcement learning (2015), arXiv preprint</article-title>
          , http://arxiv.org/abs/1511. 06342
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Rusu</surname>
            ,
            <given-names>A.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Colmenarejo</surname>
            ,
            <given-names>S.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gulcehre</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Desjardins</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kirkpatrick</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pascanu</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mnih</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kavukcuoglu</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hadsell</surname>
          </string-name>
          , R.:
          <article-title>Policy distillation (</article-title>
          <year>2015</year>
          ), arXiv preprint, http://arxiv.org/abs/1511.06295
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Rusu</surname>
            ,
            <given-names>A.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rabinowitz</surname>
            ,
            <given-names>N.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Desjardins</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Soyer</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kirkpatrick</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kavukcuoglu</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pascanu</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hadsell</surname>
          </string-name>
          , R.:
          <article-title>Progressive neural networks (</article-title>
          <year>2016</year>
          ), arXiv preprint, http://arxiv.org/abs/1606.04671
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Schulman</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wolski</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dhariwal</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Radford</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Klimov</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          :
          <article-title>Proximal policy optimization algorithms (</article-title>
          <year>2017</year>
          ), arXiv preprint, http://arxiv.org/abs/1707. 06347
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Tas</surname>
          </string-name>
          , N.:
          <article-title>Pygame learning environment</article-title>
          . https://github.com/ntasfi/ PyGame-Learning-Environment (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Taylor</surname>
          </string-name>
          , M.E.,
          <string-name>
            <surname>Stone</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Transfer learning for reinforcement learning domains: A survey</article-title>
          .
          <source>Journal of Machine Learning Research</source>
          <volume>10</volume>
          ,
          <volume>1633</volume>
          {
          <fpage>1685</fpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Teh</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bapst</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Czarnecki</surname>
            ,
            <given-names>W.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Quan</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kirkpatrick</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hadsell</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Heess</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pascanu</surname>
          </string-name>
          , R.: Distral:
          <article-title>Robust multitask reinforcement learning</article-title>
          .
          <source>In: Advances in Neural Information Processing Systems</source>
          <volume>30</volume>
          , pp.
          <volume>4496</volume>
          {
          <issue>4506</issue>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>