Abstract
This paper introduces the Fourier basis as a robust, fixed linear function approximator for continuous-state reinforcement learning (RL). By utilizing the cosine terms of the Fourier series to create a "half-even" approximation and scaling learning rates inversely with frequency, the method achieves performance competitive with complex learned bases like Proto-Value Functions (PVFs) and outperforms standard fixed bases such as RBFs and polynomials. The Fourier basis offers global generalization and computational simplicity, making it an effective "out-of-the-box" solution for RL tasks without requiring prior environment sampling.
Introduction
In reinforcement learning, agents operating in continuous state spaces cannot store values in a simple table; they must rely on function approximation. Linear function approximation represents the value function as a weighted sum of features, or basis functions. The choice of these functions is critical: Radial Basis Functions (RBFs) often generalize too locally, leading to slow initial learning, while polynomial bases can be unstable. While learned bases like Proto-Value Functions (PVFs) capture environment topology, they require expensive pre-computation and massive data collection. This work proposes the Fourier basis as a mathematically simple, fixed alternative that rivals the performance of learned bases.
Methods
The authors adapt the classic Fourier series for RL by addressing two primary challenges: the non-periodicity of value functions and the stability of gradient descent updates.
Half-Even Approximation
Because RL value functions are rarely periodic, a standard Fourier series (using both sine and cosine terms) can create sharp discontinuities at the boundaries of the state space. To mitigate this, the authors scale state variables to a $[0, 1]$ range and use only the cosine terms. This creates a "half-even" extension that mirrors the function, ensuring continuity at the boundaries.
Frequency-Scaled Learning Rates
A key practical contribution is the derivation of frequency-dependent learning rates. If all Fourier terms use the same learning rate, the system learns poorly. The authors scale the learning rate for each basis function inversely proportional to its frequency. This allows the agent to rapidly learn the general "macro-shape" of the value function through low-frequency terms while slowly refining details with high-frequency terms.
Experimental Evaluation
The Fourier basis was evaluated against RBFs, polynomials, and PVFs across three standard benchmarks:
- Swing-Up Acrobot: In this 4D continuous control task, the Fourier basis (orders 3, 5, and 7) outperformed all baselines, learning faster and converging to a superior final policy.
- Discontinuous Room: This 2D navigation task features a wall that creates a sharp discontinuity in the value function. Despite being designed to favor PVFs, the Fourier basis achieved higher returns more quickly.
- Mountain Car: Low-order Fourier bases outperformed RBFs and PVFs, demonstrating efficient global generalization in a classic physics task.
Discussion and Conclusion
The Fourier basis demonstrates that global generalization can significantly speed up learning compared to local methods like RBFs. While the basis can suffer from the "Gibbs phenomenon"—oscillations near sharp discontinuities—experimental results show that a slightly noisy value function is often sufficient to drive an agent toward an optimal policy. By avoiding the computational overhead of manifold-learning techniques, the Fourier basis serves as a powerful, general-purpose tool for continuous RL. Future work includes pairing the basis with automated feature selection to manage the curse of dimensionality in higher-dimensional state spaces.
Summary updated