Abstract
Deep reinforcement learning (RL) models frequently encounter challenges such as catastrophic interference and high sensitivity to hyperparameters. These issues often stem from the broad, global generalization inherent in standard neural network architectures. This paper investigates how preprocessing continuous inputs into high-dimensional, sparse representations—specifically through discretization and tile coding—can "break" this harmful generalization. Our findings indicate that this simple architectural modification significantly accelerates learning, reduces interference, and enhances robustness to learning rate selection across various classic control tasks.
Introduction: The Challenge of Global Generalization
Neural Networks (NNs) are a cornerstone of modern Reinforcement Learning, yet they remain notoriously difficult to stabilize. Standard training often requires a complex array of auxiliary techniques, such as Experience Replay, Target Networks, and specialized optimizers like Adam, to prevent catastrophic interference. This phenomenon occurs when new learning updates inadvertently overwrite previously acquired knowledge, leading to unstable policies.
The authors hypothesize that the root cause of this instability in classic control tasks is the global generalization of neural networks. When raw continuous inputs (e.g., position and velocity) are fed into a network, activation functions like ReLUs respond to vast regions of the state space. In RL, where value functions often contain sharp discontinuities, this broad response means that an update in one state can corrupt the learned values of distant, unrelated states.
Methodology: Breaking Generalization
To mitigate overly broad generalization, the study proposes mapping low-dimensional continuous inputs into a high-dimensional, sparse space before they reach the neural network. Two primary preprocessing techniques were evaluated:
- Discretization (D-NN): Each input dimension is independently partitioned into bins (e.g., 20 bins per dimension), and the resulting state is represented as a concatenated one-hot vector.
- Tile Coding (TC-NN): The state space is covered by multiple overlapping grids (tilings). A state is represented by a concatenated one-hot vector indicating the specific tiles it occupies.
These methods were tested across five different NN architectures, ranging from a basic feed-forward network using Stochastic Gradient Descent (SGD) to modern configurations incorporating Adam, Experience Replay (ER), and Target Networks (TN).
Experimental Setup
The effectiveness of these representations was assessed using standard OpenAI Gym environments:
- Mountain Car (Prediction): Estimating value functions for a fixed policy.
- Mountain Car (Control): An episodic task requiring an underpowered car to reach a goal by building momentum.
- Acrobot (Control): A 4-dimensional task involving the control of a two-link pendulum.
Analysis of Generalization
A key insight of this work is the quantifiable difference in how networks represent state space. Heatmaps of hidden layer activations reveal that raw continuous inputs lead to global activation patterns. In contrast, tile-coded inputs allow ReLU units to respond locally.
By mapping small regions of the state space to extreme points of a hypercube, the network can isolate updates. This reduction in "pairwise interference"—a metric measuring the orthogonality of gradient updates for different states—directly contributes to more stable learning.
Performance and Robustness
The empirical results demonstrate that breaking generalization leads to substantial improvements in both learning speed and final performance.
Across nearly all tested architectures and environments, D-NN and TC-NN outperformed standard raw-input networks. Notably, a simple vanilla NN using tile coding often matched or exceeded the performance of more complex architectures (utilizing ER and Target Networks) that relied on raw inputs. Furthermore, these sparse representations exhibited significantly higher robustness to hyperparameter choices; while raw inputs required precise learning rates to function, D-NN and TC-NN maintained high performance across a wide range of step-sizes.
Conclusion and Future Work
This research highlights that simple input preprocessing can be as effective as complex algorithmic additions in stabilizing RL training. By forcing neural networks to generalize locally rather than globally, we can significantly reduce catastrophic interference.
While highly effective for low-dimensional tasks (2–4 dimensions), the scaling of discretization and tile coding remains a challenge for high-dimensional spaces like pixel-based inputs. Future research should focus on developing scalable sparse representation schemes and exploring dynamic architectures that can adaptively isolate interference as learning progresses.
Summary updated