Abstract
This paper investigates how the specific topology of sparse neural networks influences performance in Reinforcement Learning (RL). Using the Deep Q-Network (DQN) algorithm on MinAtar environments, we compare five hidden-layer architectures under two conditions: fixed random weights and learned weights. Our results reveal that the effectiveness of a sparse architecture is not universal but depends critically on the training regime. We find that while spatial priors can significantly boost performance with fixed weights, they may become a bottleneck when weights are allowed to learn, suggesting that the "shape" of sparsity and the learning process are deeply intertwined.
Introduction
In deep reinforcement learning, the prevailing trend is to increase model capacity through larger, denser networks. However, sparse networks offer computational efficiency and potential generalization benefits. A fundamental question remains: does the specific "wiring" or topology of these sparse connections matter, or is total parameter count the only relevant metric? This study explores the interaction between network topology and training strategies, specifically examining whether architectures that perform well with fixed, random weights maintain their superiority when weights are trained via backpropagation.
Methods
We utilize the Deep Q-Network (DQN) algorithm as a baseline, evaluating five distinct hidden-layer architectures constrained to approximately 91% sparsity (9% active connections):
- Random: Uniformly random connection assignment.
- Spatial: Local receptive fields mimicking CNNs without weight sharing.
- Predictive: Connections selected based on their utility for predicting future observations.
- $L_1$-Reg: Sparsity learned end-to-end via weight penalization.
- Dense: A fully-connected control layer.
Experiments were conducted on the MinAtar platform, focusing on Breakout and Space-Invaders. These games provide distinct spatial challenges for testing architectural priors. We analyzed two primary scenarios: one where hidden layer weights were fixed at initialization and another where they were fully learned.
Results
Performance with Fixed Weights
When weights are frozen at their random initialization, the choice of topology becomes paramount. In Breakout, the high-capacity Dense network leads, but Predictive and Random architectures achieve comparable performance despite having 10x fewer parameters. In Space-Invaders, the Spatial architecture emerges as the top performer, even surpassing the Dense network. This indicates that a well-designed "hard-coded" structure can compensate for a lack of weight training.
Performance with Learned Weights
The landscape shifts dramatically when weights are allowed to learn. In this regime, the Dense and $L_1$-Reg models consistently achieve the highest returns across both games. Interestingly, the Spatial architecture, which excelled in Space-Invaders with fixed weights, becomes the poorest performer when weights are learned. While learning weights significantly improves performance for Random and Dense architectures, it provides minimal benefit to the Spatial structure, suggesting a certain "rigidity" in local connectivity patterns that may hinder the learning process in these environments.
Discussion and Conclusion
Our findings demonstrate that topology is a "first-class citizen" in sparse RL; the specific arrangement of connections significantly impacts performance independently of parameter count. The observed "Fixed vs. Learned" dependency suggests that architectural search must account for the training regime. Furthermore, the underperformance of the Spatial architecture in the learned weight regime suggests that local connectivity alone, without mechanisms like weight sharing, may not be a universal spatial prior for all image-based RL tasks.
Future work should extend these investigations to higher-resolution environments like the full Arcade Learning Environment (ALE) and explore Dynamic Sparse Training (DST), where the network's topology evolves during the learning process to find optimal task-specific structures.
Summary updated