Approximate Solution Methods in Reinforcement Learning
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.
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.
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.
A Small Table in Practice
Representing a Toy Problem
Imagine a toy reinforcement learning problem with a handful of states and actions.
- 1Assess the collection
The states and actions form a small enough collection that the relevant value estimates can be represented explicitly.
- 2Reserve entries
A tabular method reserves table entries for the relevant values associated with states or state-action combinations.
- 3Solve through the representation
As the method solves the problem, the entries provide a direct representation of the value function.
- 4Derive 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
| Approach | Representation | Problem scale | Possible result |
|---|---|---|---|
| Tabular method | Value-function estimates stored directly in arrays or tables | Small state and action spaces | Can often identify the exactly optimal value function and policy |
| Approximate method | A solution that handles a much larger problem without relying on a complete small table | Much larger problems | An approximate solution |
The central contrast is the size of the problem and whether the solution is exact or approximate.
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.
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.
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
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.
- 1Run both policies
Each agent follows its policy while interacting with the environment. Neither agent improves through learning during its individual lifetime.
- 2Measure complete behavior
After each interaction period ends, the method evaluates the reward obtained by that complete behavior.
- 3Compare results
The candidates are compared according to the reward associated with their lifetime behavior.
- 4Favor 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.
| Situation | Plausible direction | What is represented or evaluated |
|---|---|---|
| Small state and action spaces | Tabular method | Value estimates stored directly in a table |
| Much larger problem | Approximate method | An approximate solution |
| Small or searchable policy space | Evolutionary method | Complete policy behavior and its reward |
| Poor environmental sensing | Evolutionary method may be effective | Behavior is compared by obtained reward without requiring a constructed value function |
The appropriate direction depends on the problem representation and the unit used for evaluation.
Mistakes in Method Selection
Common mistake Assuming that a table is appropriate for every reinforcement learning problem.
What it looks likeChoosing a tabular representation without first asking whether the state and action spaces are small enough.
Why it failsTabular methods depend on being able to store the relevant value estimates explicitly.
Do this insteadAssess the size of the state and action spaces before selecting a table.
Common mistake Treating an approximate solution as exactly optimal.
What it looks likeDescribing a method intended for much larger problems as if it had determined the precisely optimal value function and policy.
Why it failsApproximate methods provide approximate solutions.
Do this insteadReserve the term exact for a solution that is precisely optimal, and identify larger-problem results as approximate when appropriate.
Common mistake Assuming every reinforcement learning method must estimate a value function.
What it looks likeLooking for a value entry for every state and action when analyzing an evolutionary method.
Why it failsEvolutionary methods use policy search and reward comparison rather than value-function estimation.
Do this insteadTrack the complete behavior of each candidate policy and compare the rewards obtained.
Common mistake Evaluating an evolutionary candidate from one isolated state or action.
What it looks likeCalling a single state value the candidate's evolutionary score.
Why it failsThe evolutionary evaluation unit is the agent's lifetime behavior over its interaction period.
Do this insteadEvaluate the reward associated with the complete behavior produced by the policy.
Check Your Reasoning
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?
Reveal 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
- 1Tabular 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.
At a glance
- 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.