RNM-TD3: N:M Semi-structured Sparse Reinforcement Learning From Scratch
Organizations: Deggendorf Institute of Technology, Dieter-Görlitz-Platz 1, Deggendorf, Germany · Department of Engineering Technology, Technical University of Denmark, Ballerup, Denmark
Abstract
Sparsity is a well-studied technique for compressing deep neural networks (DNNs) without compromising performance. In deep reinforcement learning (DRL), neural networks with up to 5% of their original weights can still be trained with minimal performance loss compared to their dense counterparts. However, most existing methods rely on unstructured fine-grained sparsity, which limits hardware acceleration opportunities due to irregular computation patterns. Structured coarse-grained sparsity enables hardware acceleration, yet typically degrades performance and increases pruning complexity. In this work, we present, to the best of our knowledge, the first study on N:M structured sparsity in RL, which balances compression, performance, and hardware efficiency. Our framework enforces row-wise N:M sparsity throughout training for all networks in off-policy RL (TD3), maintaining compatibility with accelerators that support N:M sparse matrix operations. Experiments on continuous-control benchmarks show that RNM-TD3, our N:M sparse agent, outperforms its dense counterpart at 50%-75% sparsity (e.g., 2:4 and 1:4), achieving up to a 14% increase in performance at 2:4 sparsity on the Ant environment. RNM-TD3 remains competitive even at 87.5% sparsity (1:8), while enabling potential training speedups.
Figures & tables
| Environment | TS(%) | RNM-TD3(best) | SSN-N:M (best) | DS-TD3 | RLx2 | |||
| Act.(%) | Crit.(%) | Act.(%) | Crit.(%) | Act.(%) | Crit.(%) | Act./Crit.(%) | ||
| Ant-v5 | 50 | |||||||
| 48.92 | 49.86 | 48.92 | 49.86 | 48.24 | 49.94 | 50 | ||
| 75 | ||||||||
| 73.37 | 74.79 | 73.37 | 74.79 | 72.84 | 74.64 | 75 | ||
| Env. | Spar. | N:M Adj. | Standard K. |
|---|---|---|---|
| Ant | (2:4) | ||
| (1:4) | |||
| (1:8) | |||
| HC | (2:4) | ||
| MA period | Avg. Std. | Act. SAD | Crit. SAD |
|---|---|---|---|
| 10 | 7895 816 | 6 | 6 |
| 50 | 8251 570 | 17 | 21 |
| 100 | 8298 895 | 26 | 36 |
| 1000 | 8057 1120 | 128 | 185 |
| 2000 | 8286 1139 | 216 | 307 |
| 4000 | 9036 534 | 346 | 495 |
Structured Sparsity
Structured sparsity organizes zeros into meaningful groups, blocks, channels, or patterns to simplify models and computation.
See all 59 papers