<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Looking Deeper on Massimo Nocentini</title><link>https://massimo-nocentini.github.io/book/reinforcement-learning/part-3/</link><description>Recent content in Looking Deeper on Massimo Nocentini</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-3/index.xml" rel="self" type="application/rss+xml"/><item><title>Psychology and Neuroscience</title><link>https://massimo-nocentini.github.io/book/reinforcement-learning/part-3/14-mind-and-brain/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/reinforcement-learning/part-3/14-mind-and-brain/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Temporal-difference learning was invented&lt;/span&gt; to solve a computational problem, and only afterwards did it turn out to describe, with uncomfortable precision, what rabbits learn about tones and air puffs and what dopamine neurons in a monkey&amp;rsquo;s midbrain do when juice arrives. Part II ended with actor–critic methods (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-2/13-policy-gradient/"&gt;Chapter&amp;nbsp;13&lt;/a&gt;), in which one TD error trains both a critic and an actor; Part III opens by finding that architecture, and that error, in animals. This chapter condenses Sutton and Barto&amp;rsquo;s two chapters on psychology and neuroscience into one argument.&lt;label for="sn-56c261-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-56c261-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="sutton2018"&gt;Richard S. Sutton and Andrew G. Barto. &lt;cite&gt;Reinforcement Learning: An Introduction&lt;/cite&gt;. Adaptive Computation and Machine Learning. MIT Press, Cambridge, MA, second edition, 2018. ISBN 978-0-262-03924-6. URL &lt;a href="http://incompleteideas.net/book/the-book-2nd.html"&gt;http://incompleteideas.net/book/the-book-2nd.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; Its thread is a single equation, the TD error &lt;span class="eqref"&gt;&lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/06-td/#eq-td-error"&gt;(6.2)&lt;/a&gt;&lt;/span&gt;, read three times: as a theory of &lt;em&gt;classical conditioning&lt;/em&gt; that generalizes the Rescorla–Wagner model, as a theory of the &lt;em&gt;phasic activity of dopamine neurons&lt;/em&gt;, and as the &lt;em&gt;reinforcement signal&lt;/em&gt; of an actor–critic architecture spread over the striatum. Around this thread we place the rest of the correspondences: instrumental conditioning and the law of effect, eligibility traces and delayed reinforcement, cognitive maps and the split between habitual and goal-directed behavior, and a TD model of addiction. Our aim is to derive what the book shows by simulation: blocking, second-order conditioning, the backward migration of the TD error, and the unbounded values of Redish&amp;rsquo;s addiction model all follow from short exact calculations.&lt;/p&gt;</description></item><item><title>Applications and Case Studies</title><link>https://massimo-nocentini.github.io/book/reinforcement-learning/part-3/15-applications/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/reinforcement-learning/part-3/15-applications/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Every case study in this chapter&lt;/span&gt; is assembled from parts we already own. The previous chapter (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-3/14-mind-and-brain/"&gt;Chapter&amp;nbsp;14&lt;/a&gt;) found the TD error at work in animals; here it is at work in machines built to play, wager, schedule and fly. TD-Gammon is semi-gradient TD(&lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt; with a neural network; DQN is semi-gradient Q-learning; AlphaGo Zero is policy iteration in which Monte Carlo tree search performs the improvement step; Watson&amp;rsquo;s wagering is the identity &amp;ldquo;an action value is the expected value of the next state&amp;rdquo;. None of the algorithms is new. What is new is the engineering around them: how the state is presented to the learner, what the reward actually rewards, where the experience comes from (self-play, a simulator, a log of past interactions), and how learned values are combined with search at decision time. Sutton and Barto put it plainly: applications &amp;ldquo;typically require as much art as science&amp;rdquo;.&lt;label for="sn-412270-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-412270-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="sutton2018"&gt;Richard S. Sutton and Andrew G. Barto. &lt;cite&gt;Reinforcement Learning: An Introduction&lt;/cite&gt;. Adaptive Computation and Machine Learning. MIT Press, Cambridge, MA, second edition, 2018. ISBN 978-0-262-03924-6. URL &lt;a href="http://incompleteideas.net/book/the-book-2nd.html"&gt;http://incompleteideas.net/book/the-book-2nd.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; We read each case study with the same five questions in mind: what is the problem, how are states, actions and rewards defined, which algorithm of the earlier chapters is being run, what made it work, and what it taught the field. The chapter closes with a survey of the case studies that came after the book was published.&lt;/p&gt;</description></item><item><title>Frontiers</title><link>https://massimo-nocentini.github.io/book/reinforcement-learning/part-3/16-frontiers/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/reinforcement-learning/part-3/16-frontiers/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Throughout this companion&lt;/span&gt;, from the bandits of Part I to the case studies of the previous chapter (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-3/15-applications/"&gt;Chapter&amp;nbsp;15&lt;/a&gt;), three assumptions have been held fixed: the agent predicts one thing, the sum of future rewards; it acts at one time scale, the time step of the MDP; and it is handed a state with the Markov property. Each was a simplification, and each fails for any agent living in a world as rich as ours. Sutton and Barto&amp;rsquo;s last chapter relaxes them in turn: value functions become predictions of arbitrary signals, actions become temporally extended options, and states become something the agent must construct from observations.&lt;label for="sn-c87ef1-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-c87ef1-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="sutton2018"&gt;Richard S. Sutton and Andrew G. Barto. &lt;cite&gt;Reinforcement Learning: An Introduction&lt;/cite&gt;. Adaptive Computation and Machine Learning. MIT Press, Cambridge, MA, second edition, 2018. ISBN 978-0-262-03924-6. URL &lt;a href="http://incompleteideas.net/book/the-book-2nd.html"&gt;http://incompleteideas.net/book/the-book-2nd.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; It then turns to the one input that was never questioned, the reward signal, and asks how it should be designed. We follow the same path, with proofs where the book only describes (the Bellman equations of option models, the invariance of potential-based shaping) and symbolic checks on small examples, and close with what happened next: distributional and offline reinforcement learning, learned world models, the reward hypothesis debate and the problem of learning continually, before a last look back over the whole companion.&lt;/p&gt;</description></item></channel></rss>