Deep reinforcement learning (RL) policies using ReLU networks partition the state space into piecewise linear regions, but how this internal geometry evolves during training is largely a black box. This paper tracks these linear regions, surprisingly finding that policy complexity (region density) only increases moderately along optimal trajectories. This suggests that RL success relies more on carefully fine-tuning decision boundaries rather than massively increasing local function complexity in frequently visited areas.
The Hidden Geometry of RL Policies
In deep reinforcement learning, we typically evaluate an agent's success by looking at its learning curve—how much reward it accumulates over time. However, we know very little about the actual structure of the state-to-action mapping the neural network learns.
Because standard RL policies use ReLU activation functions, they effectively divide the continuous state space into a mosaic of distinct, piecewise linear regions. In supervised learning, counting the number of these regions is a standard way to measure a network's "expressivity" or complexity. The authors ask: does this apply to RL? Intuitively, one might expect that as an RL agent learns, it packs a high density of tiny, complex linear regions into the parts of the state space it visits most often, allowing for highly fine-grained control. This paper investigates whether that intuition holds true.
Methods: Tracking Activation Patterns
To measure policy complexity, the authors track the "activation pattern" of the network. This is a binary code representing whether each ReLU neuron is active (pre-activation > 0) or inactive (pre-activation < 0) for a given state. A unique binary code corresponds to a unique linear region in the state space.
They count the number of region transitions along specific paths in the state space, normalizing this count by the trajectory length and the total number of neurons. They measure this density along several types of paths:
- Fixed trajectories: The path taken by the final, fully optimized policy. This shows how the network evolves in the specific area of the state space that ultimately matters.
- Current trajectories: The path taken by the policy at its current snapshot during training.
- Random lines and random-action trajectories: To see how the network behaves in unvisited or arbitrary areas of the state space.
The authors trained 18 different Multi-Layer Perceptron (MLP) architectures (varying depths and widths) using Proximal Policy Optimization (PPO) on standard continuous control benchmarks from the OpenAI Gym (e.g., HalfCheetah, Walker, Ant) and a custom 2D toy environment for visualization.
Key Insights and Results
The "Aha!" Moment—Complexity Doesn't Explode: Counter to intuition, the network doesn't shatter the frequently visited state space into millions of tiny regions to achieve fine-grained control. The number of region transitions along fixed, final-policy trajectories increases by only about 50% over the course of training, regardless of the network's width or depth. The complexity of a learned policy comes from shifting boundaries, not multiplying them.
Perspective Matters (Fixed vs. Current):
If you measure density along the current trajectory during training, it actually decreases over time. This happens because as the agent learns, it survives longer (trajectory length increases) much faster than it encounters new linear regions.
Supervised Learning Rules Apply to RL: Just like in image classification, the expressivity (region density) of an RL policy is mostly proportional to the number of neurons. Network depth adds only a minor increase in density. Normalized region density (transitions divided by neurons and trajectory length) is remarkably consistent across all tested network dimensions, staying within a ±30% variance.
Uniform Background Complexity: When measuring density along random infinite lines drawn through the origin of the state space, the density remains roughly constant (close to 1) from initialization all the way through the end of training.
RL vs. Behavior Cloning: When the authors trained policies using Behavior Cloning (BC) on expert data, the region densities evolved differently and were generally lower. This highlights that RL's unique, non-IID, exploratory "learning path" fundamentally shapes the network's internal geometry.
Limitations and Future Work
The study heavily focuses on locomotion tasks, which naturally produce cyclic, repetitive trajectories. Results might differ for highly discrete or non-cyclic tasks, though tests on LunarLander showed similar trends. Additionally, the experiments primarily used PPO (and SAC in the appendix); other RL algorithms might exhibit different region evolution patterns.
The authors suggest several exciting directions for future work, including using these insights to distill large policies into more interpretable, non-parametric models. They also propose using the knowledge of decision regions and their sizes to better understand AI safety and exploration, and exploring potential connections to the "lottery ticket hypothesis" in RL.
Summary updated