Concepts / Approximate Solution Methods in Reinforcement Learning

Approximate Solution Methods in Reinforcement Learning

A tabular method stores value-function estimates directly in arrays or tables.

  • Programming

Choosing a Solution Representation

A reinforcement learning problem can be approached in different ways depending on how large its state and action spaces are and what the method can represent. When the possible states and actions form a small collection, a tabular method can store a value estimate for each relevant case. When the problem is much larger, an approximate method can provide a general solution without storing every case explicitly. Evolutionary methods take a different route: they search over policies by comparing the rewards produced by complete agent behaviors.

The first design question is not simply which method is popular. Ask whether the problem is small enough for explicit value entries, too large for a practical table, or better approached by comparing whole-policy behavior.

Small Spaces and Explicit Tables

A tabular method stores value-function estimates directly in an array or table. Each entry corresponds to a relevant state, or to a state and action combination. This representation is practical when the collection of possible states and actions is small enough that all the required entries can be stored explicitly.

lookuplookuplookupState Aindex 0Stored valuevalue for State AState Bindex 1Stored valuevalue for State BState Cindex 2Stored valuevalue for State C
How does each state map to a stored value in a tabular value function?

The table is useful because the problem is small, not because a table removes the need to solve the reinforcement learning problem. The method still has to determine useful value estimates and use them to identify a policy. The table simply provides a direct place to represent the estimates.

supportsmotivatesSmall state andaction spacescomplete collection issmallExplicit value tableentries can be storedMuch larger problemmany cases to representApproximate solutiongeneralized estimates
How does the number of possible states and actions affect whether all value entries can be stored explicitly?

A Small Table in Practice

Representing a Toy Problem

Imagine a toy reinforcement learning problem with a handful of states and actions.

Assess the collection: The states and actions form a small enough collection that the relevant value estimates can be represented explicitly.

Reserve entries: A tabular method reserves table entries for the relevant values associated with states or state-action combinations.

Solve through the representation: As the method solves the problem, the entries provide a direct representation of the value function.

Derive the policy: When the tabular approach applies successfully, it can identify the optimal value function and the optimal policy.

The small problem can be represented explicitly, and the intended tabular outcome is an exactly optimal value function and policy.

This example illustrates the reasoning chain: first assess the size of the state and action spaces, then ask whether the value estimates can be represented explicitly, and finally decide whether a tabular route is appropriate. The fact that entries can be stored does not by itself guarantee that the problem has already been solved.

Exact and Approximate Results

ApproachRepresentationProblem scalePossible result
Tabular methodValue-function estimates stored directly in arrays or tablesSmall state and action spacesCan often identify the exactly optimal value function and policy
Approximate methodA solution that handles a much larger problem without relying on a complete small tableMuch larger problemsAn approximate solution

A tabular method is appropriate when the value function can be represented explicitly because the state and action spaces are small. Under those conditions, it can often produce an exactly optimal value function and policy. Approximate methods are intended for much larger problems. They make the problem manageable by providing approximate solutions rather than an exactly optimal result in every represented case.

can determinecan determineprovidesTabular methodsmall spacesOptimal valuefunctionexactApproximate solutionnot guaranteed exactlyoptimalOptimal policyexactApproximate methodmuch larger problems
What changes when a method moves from an explicitly represented small problem to a much larger problem?

Evolutionary Policy Search

Evolutionary methods use policy search and reward comparison rather than value-function estimation. A collection of agents uses different policies to interact with the environment. Each candidate is judged by the behavior it produces over its lifetime, and candidates that obtain more reward are favored for the next stage of the search.

each policy actsproducessupportsfavorscontinues searchCandidate policiesdifferent policiesInteract withenvironmentduring each lifetimeLifetime rewardresult of behaviorCompare candidatesmore reward is favoredNext search stagestronger candidates
How are multiple agents evaluated, compared, and selected across successive generations?

The process is analogous to biological evolution in one specific sense: an individual agent can display successful behavior without learning during its own lifetime, while the broader search favors candidates associated with better results. In reinforcement learning, the object being searched is a policy or a set of policies.

Whole-Behavior Evaluation

estimatescomparesValue-functionmethodstate or state-actionValue estimateone caseEvolutionary methodcomplete policyLifetime rewardwhole behavior
How does scoring an agent's complete episode differ from estimating the value of one state or state-action pair?

The important unit of evaluation in an evolutionary method is the agent's lifetime behavior, not an isolated estimate attached to one state or one action. A value function estimates the value of a state or action. An evolutionary method instead asks how well an entire policy performed over its interaction period. Because of this difference, evolutionary search can compare whole policies without constructing a value function.

Comparing Two Candidate Policies

Two non-learning agents use different policies during their interaction periods.

Run both policies: Each agent follows its policy while interacting with the environment. Neither agent improves through learning during its individual lifetime.

Measure complete behavior: After each interaction period ends, the method evaluates the reward obtained by that complete behavior.

Compare results: The candidates are compared according to the reward associated with their lifetime behavior.

Favor the stronger candidate: The candidate associated with more reward is favored as a basis for further search, while the weaker candidate is not favored for the next stage.

The method selects between policies using complete-behavior reward comparison, without requiring a separate value estimate for every state or action.

When Evolutionary Search Fits

  • The policy space is small or searchable.
  • The policy space can be organized so that good policies are common or easy to find.
  • Substantial time is available for searching.
  • The learning agent cannot accurately sense the state of its environment.

These conditions make it more plausible that repeated comparison and selection will encounter useful policies. Limited environmental sensing is especially relevant because methods that depend on accurate environmental sensing may face difficulty, while evolutionary evaluation can still compare the behavior produced by different policies according to the rewards they obtain.

SituationPlausible directionWhat is represented or evaluated
Small state and action spacesTabular methodValue estimates stored directly in a table
Much larger problemApproximate methodAn approximate solution
Small or searchable policy spaceEvolutionary methodComplete policy behavior and its reward
Poor environmental sensingEvolutionary method may be effectiveBehavior is compared by obtained reward without requiring a constructed value function

Mistakes in Method Selection

  • Assuming that a table is appropriate for every reinforcement learning problem.

    Tabular methods depend on being able to store the relevant value estimates explicitly.

    Fix: Assess the size of the state and action spaces before selecting a table.

  • Treating an approximate solution as exactly optimal.

    Approximate methods provide approximate solutions.

    Fix: Reserve the term exact for a solution that is precisely optimal, and identify larger-problem results as approximate when appropriate.

  • Assuming every reinforcement learning method must estimate a value function.

    Evolutionary methods use policy search and reward comparison rather than value-function estimation.

    Fix: Track the complete behavior of each candidate policy and compare the rewards obtained.

  • Evaluating an evolutionary candidate from one isolated state or action.

    The evolutionary evaluation unit is the agent's lifetime behavior over its interaction period.

    Fix: Evaluate the reward associated with the complete behavior produced by the policy.

Check Your Reasoning

MEDIUM

Consider three reinforcement learning problems. The first has a small collection of states and actions. The second is much larger. The third has a small policy space but poor environmental sensing. For each problem, choose the most plausible direction among a tabular method, an approximate method, and an evolutionary method. State whether the method stores value estimates or evaluates complete policy behavior.

Hints
  • For the first problem, ask whether value estimates can be stored directly.
  • For the second problem, ask whether an explicit table remains practical and whether an approximate solution is more appropriate.
  • For the third problem, focus on policy search, complete behavior, reward comparison, and limited sensing.

What do you think happens?

A method compares several agents only after each has completed its interaction period. Does it need a value estimate for every state and action in order to select the stronger candidates?

  • Yes, because reward comparison requires a complete value table
  • No, because it can compare the reward from each agent's complete behavior
  • Yes, because policies cannot be evaluated directly
Reveal answer

Answer: No, because it can compare the reward from each agent's complete behavior.

Evolutionary methods evaluate lifetime behavior and favor candidates associated with more reward. They use policy search and reward comparison rather than value-function estimation.

Key Takeaways

  1. Tabular methods store value-function estimates directly in arrays or tables, so they are suitable when state and action spaces are small enough to represent explicitly. When this representation applies, the method can often identify the exactly optimal value function and policy. Approximate methods address much larger problems but provide approximate solutions. Evolutionary methods use a different evaluation unit: they compare complete policy behaviors by the rewards obtained over agent lifetimes, then favor stronger candidates for further search.

Key Takeaways

  • Small state and action spaces make it practical to store value-function estimates explicitly in a table.
  • Tabular methods can often produce an exactly optimal value function and policy when their representation is applicable.
  • Approximate methods handle much larger problems but provide approximate solutions.
  • Evolutionary methods search over policies by comparing rewards from complete agent behavior rather than estimating values for individual states or actions.
  • Evolutionary methods may be effective when policy search is manageable, useful policies are easy to find, search time is available, or environmental sensing is limited.