Introduction
Deep Reinforcement Learning (RL) has achieved remarkable success in complex control tasks, yet it faces a significant "weight" problem. Large neural networks, while capable of high generalization, are computationally expensive, memory-intensive, and slow during inference. This overhead poses a major barrier to deploying RL agents on resource-constrained edge devices. Pruning—the systematic removal of unnecessary parameters—is a well-established solution in supervised learning, but its application in RL has historically been challenging.
In Online RL, the agent continuously interacts with its environment, leading to a non-stationary data distribution. This "moving target" makes it difficult to identify which weights are truly critical, as their importance may shift throughout the training process. Consequently, online pruning methods often struggle to maintain performance beyond 50% sparsity. This paper explores Offline RL, which learns from a fixed, pre-collected dataset. The authors identify this static data nature as a unique opportunity for "single-shot pruning"—identifying and removing redundant weights before the very first gradient update.
Methodology: Pruning at Initialization
The researchers integrated two "pruning at initialization" techniques into standard Offline RL workflows to find "lottery ticket" sub-networks without the need for expensive train-prune-retrain cycles.
1. SNIP (Single-shot Network Pruning)
SNIP measures "connection sensitivity" by evaluating how much the loss function would change if a specific weight were removed. By analyzing a small batch of data from the offline dataset at the start, SNIP identifies weights with the least impact on the initial loss and prunes them.
2. GraSP (Gradient Signal Preservation)
GraSP takes a different approach, arguing that preserving the gradient flow is more critical than preserving the initial loss. It identifies and retains weights essential for signal propagation through the network layers, preventing gradient "bottlenecks" that could otherwise stall the learning process.
The Single-Shot Workflow
The process is remarkably efficient:
- Sample a small batch of data from the fixed offline dataset.
- Calculate importance scores for all weights using either SNIP or GraSP.
- Generate a binary mask to zero out unimportant weights based on the desired sparsity level.
- Conduct standard Offline RL training (e.g., Behavior Cloning or BCQ) using only the remaining sparse architecture.
Experimental Setup
The approach was evaluated using the D4RL Benchmark, focusing on "expert" datasets for three standard MuJoCo continuous control tasks: HalfCheetah-v2, Hopper-v2, and Walker2d-v2. These environments provide a rigorous testing ground for maintaining complex control policies under extreme parameter reduction.
Key Results and Discussion
The core finding of this research is that Offline RL models can be pruned by up to 95% at initialization with negligible loss in performance.
As shown in the performance plots above, across almost all tested environments and algorithms, the models with only 5% of their weights remaining (teal lines) track closely with the unpruned baselines (dotted lines). The only notable exception was BCQ on the Hopper-v2 task, which showed more sensitivity to high sparsity.
The Offline Advantage
The success of single-shot pruning here far exceeds the current state-of-the-art for Online RL. The static nature of the offline data distribution ensures that weight importance scores calculated at initialization remain valid throughout training. This stability allows for much more aggressive pruning than is possible in dynamic online settings.
Structural Insights
Visualization of the resulting sparse networks revealed that both SNIP and GraSP tend to preserve a higher density of weights in the final layers. This suggests that maintaining the "output head" and the integrity of the gradient flow originating from it is vital for successful RL policy learning.
Efficiency Gains
Beyond parameter reduction, the authors demonstrated practical benefits. By utilizing sparse matrix storage (PyTorch’s torch.to_sparse()), they achieved a 4x reduction in memory footprint. Because pruning occurs at initialization, it is a "plug-and-play" enhancement that can be added to existing Offline RL algorithms without altering their underlying objective functions.
Limitations and Future Directions
While promising, the study primarily utilized "expert" datasets. Future work is needed to determine if these high levels of sparsity hold for "medium" or "random" datasets where the signal-to-noise ratio is lower. Additionally, while the dataset is fixed, the policy itself evolves; ensuring the chosen sub-network remains optimal as the policy deviates from the data distribution is an ongoing challenge. Finally, realizing the full potential for inference speedups will require hardware and software kernels specifically optimized for sparse operations.
Summary updated