Adaptive Online Value Function Approximation with Wavelets

Michael Beukman, Michael Mitchley, Dean S. Wookey, Steven James, George KonidarisarXiv 2022

Abstract

Using function approximation to represent a value function is necessary for continuous and high-dimensional state spaces. Linear function approximation has desirable theoretical guarantees and often requires less compute and samples than neural networks, but most approaches suffer from an exponential growth in the number of functions as the dimensionality of the state space increases. In this work, we introduce the wavelet basis for reinforcement learning. Wavelets can effectively be used as a fixed basis and additionally provide the ability to adaptively refine the basis set as learning progresses, making it feasible to start with a minimal basis set. This adaptive method can either increase the granularity of the approximation at a point in state space, or add in interactions between different dimensions as necessary. We prove that wavelets are both necessary and sufficient if we wish to construct a function approximator that can be adaptively refined without loss of precision. We further demonstrate that a fixed wavelet basis set performs comparably against the high-performing Fourier basis on Mountain Car and Acrobot, and that the adaptive methods provide a convenient approach to addressing an oversized initial basis set, while demonstrating performance comparable to, or greater than, the fixed wavelet basis.

Introduction

In Reinforcement Learning (RL), agents operating in continuous environments must approximate a value function to determine optimal policies. While deep neural networks have become the standard for high-dimensional tasks, they often require significant data and lack the stability and theoretical convergence guarantees of linear function approximation.

However, linear methods face the "curse of dimensionality." Traditional basis functions, such as polynomials or Fourier series, scale poorly as the state space grows. Furthermore, most fixed bases are global, meaning updates in one region of the state space can inadvertently affect the approximation elsewhere. This paper introduces wavelets as a mathematically grounded alternative that is local, efficient, and capable of growing in complexity only where needed.

Methods: The Wavelet Basis

The authors propose using B-Spline wavelets for value function approximation. Unlike Fourier transforms that utilize infinite sines and cosines, wavelets possess "compact support"—they are non-zero only within a specific local interval. This locality allows an agent to model complex local phenomena without disturbing the global approximation.

Properties of B-spline wavelets: (a) different orders, (b) scaling, (c) translation, and (d) the refinability property.

Refinability and Adaptivity

The core innovation lies in the refinability equation. This property allows a wavelet to be represented as a weighted sum of smaller, higher-resolution copies of itself. The authors prove (Theorem 1) that wavelets are both necessary and sufficient for constructing a basis that can be split into higher-resolution components without losing precision. Based on this, three adaptive algorithms are introduced:

  1. Adaptive Wavelet Refinement (AWR): This algorithm monitors the relevance of functions based on Temporal Difference (TD) error. When a region of the state space exhibits high complexity, AWR "splits" the local wavelet into higher-resolution "children."
  2. Incremental Basis Function Dependency Discovery (IBFDD): This handles dimension interactions. It begins by assuming state variables are independent and incrementally adds cross-product terms (interactions) only when they significantly reduce error.
  3. Multiscale Adaptive Wavelet Basis (MAWB): A hybrid approach combining both splitting (AWR) and combining (IBFDD) to build a custom-tailored basis set online.

Experimental Evaluation

The approach was evaluated on two classic RL control benchmarks: Mountain Car (a 2D momentum task) and Acrobot (a 2-link pendulum task). These environments serve as standard tests for handling continuous state spaces and non-linear dynamics.

Key Results

  • Performance Parity: On both benchmarks, fixed B-Spline wavelets performed comparably to the Fourier basis, which is widely considered the gold standard for linear RL.
  • Efficiency through Adaptivity: The adaptive methods (AWR and MAWB) achieved performance similar to or better than fixed bases. Crucially, they did so without requiring a pre-defined, exponentially large set of functions, starting instead with a minimal model.
  • Local vs. Global Learning: The locality of wavelets allowed agents to learn high-resolution policies for difficult regions (e.g., the hill peak in Mountain Car) while maintaining a simple, low-resolution model for less critical areas.
  • Smoothness: The resulting value functions were found to be smoother and more accurate than those produced by Fourier bases, particularly when the wavelet scale was appropriately tuned.

Discussion and Future Work

While wavelets offer a robust solution to the curse of dimensionality in linear RL, some limitations remain. The current experiments focused on relatively low-dimensional tasks; future work should explore higher-dimensional robotics simulations. Additionally, the adaptive algorithms introduce new hyperparameters, such as splitting and combining tolerances, which currently require manual tuning. Despite these challenges, wavelets provide a unique mathematical framework for building truly adaptive, online function approximators that grow with the complexity of the task.

Summary updated

BibTeX
@misc{beukman2022adaptive,
  author = {Michael Beukman and Michael Mitchley and Dean S. Wookey and Steven James and George Konidaris},
  title = {{Adaptive Online Value Function Approximation with Wavelets}},
  year = {2022},
  eprint = {2204.11842},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.11842},
}
Figure