Function Approximation for Continuous State Spaces
Polynomial basis functions provide a family of candidate functions for approximation.
From Samples to a State-Space Function
A learning problem may provide function values only at some samples, while the desired result is a function defined between those samples or even beyond them. Reinforcement learning faces a closely related challenge when its state space is continuous and has multiple dimensions: the learning system needs a way to approximate a function across that space. Polynomial basis functions are relevant because they provide one family of candidate functions for this approximation task.
A Candidate Family in Action
Think of approximation as choosing a candidate function that can stand in for the function the learning system wants to represent. A polynomial family supplies several possible candidate shapes. The important introductory question is not whether you can memorize every polynomial family. It is whether a polynomial family is an appropriate approximation tool for the problem at hand.
A Small Approximation Scenario
Imagine that a learning problem reveals values for a few states, but the state space contains many continuous, multi-dimensional possibilities. How could a polynomial family help?
Identify the information available: The system has values at some samples rather than a complete description of the function over every state.
Identify the missing result: The system needs a function that can provide values between the samples or beyond them.
Choose a candidate family: A polynomial family can serve as one family of candidate functions for constructing an approximation.
Relate the choice to reinforcement learning: The same general challenge appears when reinforcement learning must approximate a function over a continuous state space with multiple dimensions.
Polynomial basis functions do not replace the overall approximation task. They provide one family of candidate functions that may be used within that task.
Interpolation, Regression, and Reinforcement Learning
Interpolation and regression provide a useful way to understand the structure of reinforcement-learning function approximation. In the interpolation and regression setting, function values are available at some samples, and the goal is to define a function between those samples or even beyond them. In reinforcement learning, the corresponding challenge appears over a continuous, multi-dimensional state space: the system must approximate a function across states using limited or sampled information. The transfer is useful because the underlying challenge is related in both settings: a function must be defined from incomplete or sampled information.
| Idea | Role in the shared structure |
|---|---|
| Sampled function values | The available information is limited to some samples. |
| Interpolation | A function is defined between known samples. |
| Regression | A function may be defined between samples or beyond them. |
| Reinforcement-learning approximation | A function is approximated over a continuous state space with multiple dimensions. |
The source of the connection is the shared need to define a function from limited or sampled information.
Basis Functions Versus Approximation
Function approximation is the broader task: define an approximate function when the desired function is known only through limited or sampled information. Polynomial basis functions belong to the toolset for carrying out that task. They provide a family of candidate functions, but naming a family is not the same as completing the approximation. Keeping these roles separate prevents a common misunderstanding: polynomial basis functions are a possible representation choice, while function approximation is the overall problem being solved.
Choosing the Right Mental Model
A learning problem provides values at some samples and needs a function for a continuous state space with multiple dimensions. Explain, in your own words, why function approximation is needed and where a polynomial family could fit.
Hints
- Start with the difference between sampled information and a function defined across a space.
- Mention the connection to interpolation and regression.
- Separate the overall approximation task from the choice of polynomial basis functions.
Treating polynomial basis functions as the same thing as function approximation.
A polynomial family is one family of candidate functions, while function approximation is the broader task of defining an approximate function from limited or sampled information.
Fix:
Describe the polynomial family as a possible tool within the larger approximation process.Missing the connection to interpolation and regression.
The relevance of polynomial families to reinforcement learning comes from this shared approximation structure.
Fix:
Begin with the sampled-information setting, then connect it to approximation over continuous, multi-dimensional state spaces.Assuming that continuous, multi-dimensional state spaces do not change the problem.
The challenge is to approximate a function over the space when information is limited or sampled.
Fix:
Emphasize the need for a function that extends across the state space rather than only recording the observed samples.Focusing on memorizing polynomial families instead of recognizing when a family is appropriate.
The central introductory skill is identifying when a polynomial family is an appropriate approximation tool.
Fix:
First identify the approximation problem and its sampled information; only then consider a candidate family.
Key Takeaways
- Polynomial basis functions provide one family of candidate functions for approximation.
- Interpolation and regression involve defining a function from values available at some samples, between those samples or even beyond them.
- Reinforcement learning encounters a related challenge when it approximates a function over a continuous, multi-dimensional state space.
- Function approximation is the broader task; selecting a polynomial family is one possible tool within that task.
- The key introductory skill is recognizing when a polynomial family is an appropriate approximation tool rather than memorizing every family.
Key Takeaways
- Polynomial basis functions are candidate functions used within the broader task of function approximation.
- The connection to interpolation and regression comes from the shared need to define a function from limited or sampled information.
- Continuous, multi-dimensional state spaces make approximation important because the learning system must represent a function across the space.
- The main introductory skill is deciding when a polynomial family is an appropriate approximation tool.