ref-206bb9b995e39760f7d0bookReinforcement Learning: An Introduction
This selected reading of Sutton and Barto's online first edition explains how decisions can improve through value estimates learned from interaction and through planning with a model. Chapters 1 and 3 establish rewards, policies, state representations, and MDPs; Chapter 4 develops dynamic programming; Chapter 9 joins these ideas in Dyna and examines where planning computation should go. The central connection to world modeling is operational: predicted transitions become simulated experience that improves a policy through value updates. This is a foundational textbook treatment, with illustrative computational studies, rather than a single proposed neural architecture. Missing equation and figure images limit the review to verifiable prose and surviving experimental descriptions.
This is a partial reading. Its claims are limited to the material listed in the coverage record.
The idea
The problem
An agent must choose actions whose consequences unfold over time, learning through trial and error while balancing exploration against exploitation. Immediate reward alone can favor poor long-term decisions. A useful state representation must retain relevant history; knowing a model still leaves the computational problem of choosing good actions. The book separates these issues so that uncertainty about dynamics and limited planning resources can be studied within one decision framework. e-rle-statee-approximation
What this work contributes
The conceptual framework distinguishes the policy that determines behavior, the reward defining the goal, the value predicting long-term reward, and an optional model predicting environmental responses. These are different functions even when one implementation shares machinery. e-elementse-models
Generalized policy iteration organizes control as interacting evaluation and improvement processes. Chapter 9 extends the organizing view: real and simulated experience can update the same value estimates, linking learning, planning, and acting. e-gpie-dynae-planning-summary
Source description summarizes the inspected material. Author claim preserves the authors’ attribution. Reader analysis and Open question are interpretive.
Mechanism & design
- Available state representation, chosen actions, subsequent states, and numerical rewards
- For dynamic programming, a complete MDP model; for basic Dyna-Q, a table learned from observed transitions
- State-value or action-value estimates and an improved policy
- For Dyna-Q, predicted next states and rewards used for planning; real actions selected through the policy
- 01
Specify the decision problem
Define the agent boundary through what the agent controls, then specify states, actions, rewards, and the return objective. Episodic tasks end and reset; continuing tasks need an appropriate long-run objective. The book assumes state preprocessing is already provided, and develops its theory under Markov state signals. e-interfacee-returne-state
- 02
Evaluate and improve a policy
A state value predicts return under a specified policy; an action value first commits to an action and then follows that policy. With known dynamics, policy evaluation updates estimates using expected immediate rewards and successor values. Policy improvement chooses actions that look best under those estimates. Policy iteration alternates these operations; value iteration combines improvement with evaluation truncated to a single sweep. e-valuese-dp
- 03
Turn a model into experience
A distribution model describes possible outcomes and their probabilities; a sample model generates one outcome. Either supports planning. Basic Dyna-Q records the last observed next state and reward for each experienced state-action pair, assuming deterministic dynamics. Search control chooses previously experienced pairs, and model outputs supply additional one-step Q-learning updates. e-modelse-dyna
- 04
Allocate backups where they matter
Prioritized sweeping orders pending updates by their prospective value change and propagates changes to predecessors. Trajectory sampling instead focuses computation on simulated visits under the current policy. Full backups consider all successors; sample backups trade sampling error for cheaper updates. The useful allocation depends on branching, reachable states, and the available computation. e-prioritye-backupse-trajectories
Training & inference
Training
Dyna-Q learns online: each real transition can improve both its model and its action values, while simulated transitions further update those same values. There is no separate pretrained/frozen-module pipeline in this tabular example. Model learning, direct learning, acting, and planning continue throughout interaction. e-dyna
Dyna-Q+ adds an exploration incentive to planning rewards for actions not recently tried in the real environment. This can make the resulting policy test stale predictions. The supplied prose establishes the incentive's purpose and placement, but its mathematical form is an omitted image. e-model-error
Inference
At action time, value-based selection determines what is actually executed. Planning updates can occur between real interactions; simulated actions are queries to the model. With action values, selecting a maximizing action does not itself require predicting successor states. e-optimal-actionse-dyna
Chapter 9 separately describes heuristic search as computation inside action selection: evaluate leaves of a continuation tree, back values toward the current decision, and select an action. Conventional search discards these backed-up values; Dyna retains learning through its shared value estimates. e-searche-dyna
Results in context
Read each value with its evaluation setting and comparison. Rows may use different protocols.
| Task & setting | Metric & value | Comparison | Evidence |
|---|---|---|---|
| Dyna maze learning Example 9.1: deterministic maze with 47 states and four movement actions; discounted episodes from start to goal. Curves average 30 repetitions with matched initial random seeds across algorithms. Several numeric settings are omitted images. | Real environment steps per episode; lower is betterThe prose reports faster improvement with more planning and about 25 episodes for the nonplanning agent to reach its stated near-optimal performance. Exact curve values and the planning budgets associated with the other agents cannot be verified. | Dyna-Q with different amounts of planning versus direct one-step tabular Q-learning; the text says step-size and exploration parameters were optimized for the nonplanning agent. | e-maze |
| Planning with uniform versus on-policy backup allocation Section 9.6 uses one-step full tabular backups in randomly generated undiscounted episodic tasks. The upper comparison averages 200 tasks with 1,000 states, two actions, branching factors 1, 3, and 10, and terminal-transition probability 0.1. The exploration parameter is omitted. | True start-state value of the current greedy policy versus number of full backupsThe text reports faster initial planning with on-policy allocation but slower progress in the long run; no numerical value gap is recoverable from the missing plot. | Cyclic in-place updates over all state-action pairs versus updates along simulated trajectories under the current exploratory policy. | e-trajectories |
Interpreting the results
Evidence concerns interaction efficiency in an illustrative maze. Extra planning adds computation, so this does not establish an equal-compute speedup. The figures were unavailable for visual verification. e-maze
Keeping backup type fixed isolates allocation more closely than a comparison changing update rules. The authors restrict their conclusion to these randomly generated tasks; the model is assumed correct during policy evaluation. e-trajectories
Taxonomy assessment
Catalog at reading time
Catalog updated
- Major category
- Foundational work
- Subcategories
- Theory & planning · Classical world models & model-based RL
- Architecture
- Not applicable
- Prediction paradigm
- Not applicable
- Quadrant
- Not applicable
- Classification status
- Explicit in survey
Supports the recorded classification
The foundational, theory/planning, and classical model-based RL labels fit the reviewed MDP, dynamic-programming, and Dyna material. Architecture, prediction paradigm, and quadrant remain not applicable to this textbook as a whole. Sharing a backup algorithm across real and simulated experience does not establish a single learned model jointly predicting futures and actions, or an inverse-dynamics action extractor. e-elementse-dpe-dynae-planning-summary
These labels preserve the catalog snapshot used for this reading. The assessment audits that snapshot without changing the source classification.
Limits & reproduction
Limitations and open boundaries
State construction is outside the book's main treatment, and its theoretical results assume Markov state signals. Applying these foundations to learned visual or latent representations requires additional justification about retained information. e-state
Incorrect models can produce suboptimal plans. In the shortcut example, an existing successful route does not expose a newly available alternative: repeated planning can reinforce the old behavior. Dyna-Q+ supplies a heuristic response, not a general solution to exploration. e-model-error
The reviewed prioritized-sweeping discussion identifies a discrete-state limitation: function approximation may affect many states, making predecessor identification and processing difficult. This is a limitation stated in the first edition, not a claim about subsequent research. e-priority
What a reproduction would require
Exact replication requires the original maze geometry, goal reward, discount, learning and exploration settings, planning budgets, and update pseudocode, much of which is inaccessible in this extraction. Preserve the reported matched seeds and 30 repetitions. The supplied text does not specify a complete executable environment or hardware/software configuration for this experiment. e-mazee-source-format
Reader-proposed mechanism check: replay an identical recorded maze transition stream through direct updates with and without additional model-based backups, holding initialization and seeds fixed. Measure greedy-policy path length after each real transition and count total backups. Planning should propagate newly discovered goal value before physical revisits; a second comparison at equal total backups would test how much benefit reflects extra computation. This is a controlled diagnostic, not a completed replication. e-dynae-mazee-priority
Reader-proposed exploration check: after recovering the original bonus formula, compare Dyna-Q and Dyna-Q+ with matched interaction and planning budgets in shortcut-opening and unchanged-maze conditions. Record discovery delay, model corrections, and cumulative real reward. Faster shortcut discovery together with extra exploration in the unchanged control would support the proposed mechanism; absence of that pattern would challenge it. e-model-error
Questions to take further
- Which errors in a learned state representation invalidate the model's usefulness for action selection, even when one-step predictions seem accurate?
- When does concentrating backups near the current policy save computation, and when does it preserve ignorance about a better policy?
What was read
- Sections inspected
- Author landing page: title, authors, First Edition designation, publisher/year, and link to the HTML version
- HTML ebook title block and table of contents
- Chapter 1, Introduction: chapter opening and Sections 1.1–1.7, including examples, exercises, history, and bibliographical remarks
- Chapter 3, The Reinforcement Learning Problem: chapter opening and Sections 3.1–3.11, including examples, exercises, and historical remarks
- Chapter 4, Dynamic Programming: chapter opening and Sections 4.1–4.9, including examples, exercises, and historical remarks
- Chapter 9, Planning and Learning: chapter opening and Sections 9.1–9.9, including examples, exercises, and historical remarks
- Bibliography, complete supplied text from Agre through Zhang and Dietterich
- Appendix
- Not present
- Figures inspected
- No figures recorded as inspected
- Tables inspected
- No tables recorded as inspected
Outside this reading
- Only chapters 1, 3, 4, and 9 plus the bibliography are supplied in textPath. Chapters 2, 5, 6, 7, 8, 10, and 11; preface/foreword/notation; and index are omitted from this reading input. All 115 linked HTML nodes are retained separately in sourcePath and the full extracted collection is retained in allTextPath.
- The supplied sections contain 764 non-navigation image tags, including 748 without nonempty alt text. Images without text are explicitly marked IMAGE OMITTED. Their formula, variable, plot, diagram, and algorithm content is not reconstructed; textual alternatives are retained where provided.
- Linked image files, separate footnode.html footnotes, CSS/layout, and links to code/solutions/errata are not downloaded or reviewed. Formula-dependent claims require visual verification before use.
- Online HTML section locations replace printed page numbers. This is partial source readiness and does not establish a completed book reading.
- The author page explicitly identifies First Edition, MIT Press, 1998, names Richard S. Sutton and Andrew G. Barto, and directly links this ebook tree. It is the author-maintained online first edition, not the 2018 second edition; equivalence to a particular 1998 printing or later corrections is not established. The retained chapter sequence (including Chapter 9 Planning and Learning and Chapter 10 Dimensions of Reinforcement Learning) is that of the first edition.
- The primary sha256 fingerprints a local archive containing unmodified downloaded HTML files plus per-file retrieval provenance, not one remote PDF. textSha256 fingerprints the selected-chapter extraction.
- All 27 supplied text chunks were read. Only chapter bodies 1, 3, 4, and 9 plus the bibliography are supplied in the selected reading text. Chapters 2, 5, 6, 7, 8, 10, and 11; preface/foreword/notation; and index are omitted from this reading. All 115 linked HTML nodes are retained separately in the source archive and a full extracted collection is recorded by the acquisition manifest; retention does not mean those other bodies were reviewed.
- The supplied sections contain 764 non-navigation image tags, including 748 without nonempty alt text. Images without text are explicitly marked IMAGE OMITTED. Their formula, variable, plot, diagram, and algorithm content is not reconstructed; textual alternatives are retained where provided. No original figure or table image was inspected, and no displayed equation is reproduced in this report.
- Linked image files, separate footnode.html footnotes, CSS/layout, and links to code/solutions/errata were not downloaded or reviewed. Formula-dependent claims require visual verification before use. Code was not inspected and experiments were not reproduced.
- Online HTML section locations replace printed page numbers. No usable primary PDF is supplied; the archive contains HTML and retrieval provenance. This selected-chapter reading does not establish a completed book reading or support an illustrated edition.
- Identity: the inspected author landing page explicitly names Richard S. Sutton and Andrew G. Barto and identifies First Edition, MIT Press, 1998; it directly links the inspected ebook title block and tree. This is the author-maintained online first edition, not the 2018 second edition. Equivalence to a particular 1998 printing or later corrections is not established. Chapter 9 is Planning and Learning and Chapter 10 is Dimensions of Reinforcement Learning. The HTML footer credits Mark Lee and displays 2005-01-04; this is not treated as a book author credit or a verified scientific revision date.
- The supplied primary SHA-256 fingerprints an archive containing unmodified downloaded HTML files and per-file retrieval provenance, not a remote PDF. The acquisition manifest separately fingerprints the selected-chapter extraction.
- The catalog title and two-author display agree with the primary title blocks. The catalog BibTeX additionally repeats Barto as Andrew Barto; the verified book credits contain only Richard S. Sutton and Andrew G. Barto. No catalog metadata was changed. Author affiliations are not established by the inspected title material.
- Figure captions, surrounding explanations, and surviving table text were read, but missing images prevent verification of graphical arrows, axes, numerical cells, and pseudocode. In particular, the Dyna maze's exact planning budgets, discount, step size, exploration setting, and goal reward are omitted images; the Dyna-Q+ bonus formula and complete trajectory-sampling settings are also unavailable. No uncertainty estimates or missing curve values have been inferred. No appendix was supplied or reviewed.
Evidence & sources
Evidence links resolve to these source locations. Expand an entry to inspect its supporting detail.
e-identityAuthor landing page the-book-1st.html, title/author/edition headings and Html version link; ebook/the-book.html, title block and contents
Both primary title blocks give Reinforcement Learning: An Introduction and Richard S. Sutton and Andrew G. Barto. The landing page explicitly gives First Edition, MIT Press, Cambridge, MA, 1998 and distinguishes a linked second edition. The ebook contents place Planning and Learning in Chapter 9.
Reinforcement Learning: An Introductione-source-formatSupplied primary HTML archive; the-book-1st.html, Html version link; node28.html, Figure 3.1; node96.html, Figures 9.3–9.5; node100.html, Figure 9.14
The supplied archive contains HTML and retrieval provenance, with no PDF or linked scientific image files. The HTML references external images for the interaction diagram, Dyna architecture, algorithm, and results; the selected extraction marks these images omitted. Their captions and surrounding prose survive, but the original graphics cannot be inspected from this artifact.
Reinforcement Learning: An Introductione-rlnode7.html, Section 1.1 Reinforcement Learning
The problem is learning actions that maximize reward through trial and error with delayed consequences; the section explains the exploration/exploitation tradeoff.
Reinforcement Learning: An Introductione-elementsnode9.html, Section 1.3 Elements of Reinforcement Learning
Defines policy, reward function, value function, and optional environment model; a model can predict next state and reward and support planning before actual experience.
Reinforcement Learning: An Introductione-interfacenode28.html, Section 3.1 The Agent-Environment Interface, interaction description and boundary discussion
The agent receives a state representation, selects an action, and subsequently receives reward and a new state. Its boundary describes control rather than physical embodiment or knowledge.
Reinforcement Learning: An Introductione-returnnode30.html, Section 3.3 Returns; node31.html, Section 3.4 Unified Notation for Episodic and Continuing Tasks
The prose defines return from future rewards, distinguishes episodic and continuing interaction, and motivates discounting. Displayed definitions and many symbols are omitted images.
Reinforcement Learning: An Introductione-statenode32.html, Section 3.5 The Markov Property, opening paragraphs and discussion preceding Example 3.5
State preprocessing is assumed given; constructing or learning it is outside the treatment. A Markov state retains relevant past information, and the book's theory assumes Markov signals even though practical representations may violate this.
Reinforcement Learning: An Introductione-valuesnode34.html, Section 3.7 Value Functions, prose around Eqs. (3.8)–(3.10)
State values predict expected return under a policy; action values condition on a first action and then that policy. The Bellman discussion relates values to rewards and successor values; equation images themselves are unavailable.
Reinforcement Learning: An Introductione-optimal-actionsnode35.html, Section 3.8 Optimal Value Functions, paragraphs on choosing a policy from optimal state and action values
The prose contrasts one-step lookahead using state values with selecting a maximizing action directly from action values, which cache the one-step search results.
Reinforcement Learning: An Introductione-approximationnode35.html, Section 3.8, discussion after Figure 3.8; node36.html, Section 3.9 Optimality and Approximation
Exact solution requires adequate model knowledge, computation, and Markov structure. Memory and per-step computation constrain policies, value functions, and models even with known dynamics.
Reinforcement Learning: An Introductione-dpnode40.html, Chapter 4 opening; node41.html, Section 4.1 backup description; node42.html, Section 4.2 policy improvement; node43.html, Section 4.3 opening; node44.html, Section 4.4 opening
DP assumes a complete MDP model. Evaluation uses expected rewards and successor values; improvement constructs a greedy policy. Policy iteration alternates these computations; value iteration truncates evaluation to one sweep while incorporating improvement.
Reinforcement Learning: An Introductione-gpinode46.html, Section 4.6 Generalized Policy Iteration; node48.html, Section 4.8 Summary
GPI allows evaluation and improvement to interact at different granularities. The summary explicitly distinguishes cases with convergence proofs from cases where GPI provides an organizing interpretation without a proof.
Reinforcement Learning: An Introductione-modelsnode95.html, Section 9.1 Models and Planning, definitions and simulated-experience discussion
Models predict responses to state-action inputs. Distribution models describe outcomes and probabilities; sample models generate individual outcomes. Planning uses models to produce or improve a policy through backups on simulated experience.
Reinforcement Learning: An Introductione-dynanode96.html, Section 9.2 Integrating Planning, Acting, and Learning, prose around Figures 9.2–9.4 and final discussion
Dyna-Q combines online acting, direct one-step tabular Q-learning, model learning, and planning. Its deterministic model stores the most recently observed next state and reward. Planning queries previously experienced pairs and applies the same learning method to simulated transitions.
Reinforcement Learning: An Introductione-mazenode96.html, Section 9.2, Example 9.1 Dyna Maze, prose around Figures 9.5–9.6; node103.html, Section 9.9, 9.2–3 attribution
The maze has 47 states and four deterministic movement actions. Results average 30 repetitions with matched initial seeds. Prose reports about 25 episodes to near-optimal performance without planning and faster learning with more planning. Planning budgets and several hyperparameters are omitted images. Section 9.9 attributes the Dyna architecture to Sutton (1990) and bases these results on that work. The Figure 9.5 caption says S to S, while the task prose explicitly defines goal G and reset to S; this report follows the task prose.
Reinforcement Learning: An Introductione-model-errornode97.html, Section 9.3 When the Model Is Wrong, Examples 9.2–9.3 and Dyna-Q+ explanation
Model errors can arise from stochastic sampling, imperfect generalization, or environmental change. The blocking example exposes an obsolete path; the shortcut example can leave a better path undiscovered. Dyna-Q+ rewards simulated transitions involving actions untried for longer in the real environment; the formula is omitted.
Reinforcement Learning: An Introductione-prioritynode98.html, Section 9.4 Prioritized Sweeping, queue/predecessor description and discussion following Example 9.5
A priority queue orders consequential backups by anticipated value change and propagates effects to predecessor pairs. The section notes that function approximation complicates identifying and processing the many affected states.
Reinforcement Learning: An Introductione-backupsnode99.html, Section 9.5 Full vs. Sample Backups, computational comparison around Eqs. (9.1)–(9.2) and Figure 9.13
Full backups consider all possible successors, avoiding sampling error but costing more; sample backups use one successor. The prose emphasizes comparing computational requirements and suggests sample backups for large problems with substantial stochastic branching. The displayed equations and analysis curve are unavailable.
Reinforcement Learning: An Introductione-trajectoriesnode100.html, Section 9.6 Trajectory Sampling, experiment setup and interpretation around Figure 9.14
Both allocations use one-step full tabular backups. Uniform updates cycle through pairs; on-policy updates follow simulated episodes. The upper study averages 200 random tasks with 1,000 states, two actions, branching factors 1, 3, and 10, and termination probability 0.1 per transition. Greedy start-state value is evaluated against backup count. Prose reports an early on-policy advantage and a long-run disadvantage, with conclusions limited by the task generator. The plot and exploration setting are unavailable.
Reinforcement Learning: An Introductione-searchnode101.html, Section 9.7 Heuristic Search, opening paragraphs and final one-step-backup discussion
Heuristic search evaluates continuation-tree leaves, backs up values to the current action choices, selects an action, and conventionally discards backed-up values. It focuses computation on the current state and possible successors.
Reinforcement Learning: An Introductione-planning-summarynode102.html, Section 9.8 Summary
Learning and planning can update the same estimated value function from different sources of experience. The summary contrasts predecessor-focused prioritized sweeping, successor-focused heuristic search, and on-policy trajectory sampling.
Reinforcement Learning: An IntroductionSource record
Reinforcement Learning: An Introduction
HTML · 49,176 extracted words · Accessed 7 Sept 2026
Source URL & fingerprint
http://incompleteideas.net/book/the-book-1st.html
- SHA-256
a5bcd844c8688935576f351a970a9ba49ac3c69be47a32179e5f03f449af7cb7