Abstract
Policies produced by deep reinforcement learning are typically characterised by their learning curves, but they remain poorly understood in many other respects. ReLU-based policies result in a partitioning of the input space into piecewise linear regions. We seek to understand how observed region counts and their densities evolve during deep reinforcement learning using empirical results that span a range of continuous control tasks and policy network dimensions. Intuitively, we may expect that during training, the region density increases in the areas that are frequently visited by the policy, thereby affording fine-grained control. We use recent theoretical and empirical results for the linear regions induced by neural networks in supervised learning settings for grounding and comparison of our results. Empirically, we find that the region density increases only moderately throughout training, as measured along fixed trajectories coming from the final policy. However, the trajectories themselves also increase in length during training, and thus the region densities decrease as seen from the perspective of the current trajectory. Our findings suggest that the complexity of deep reinforcement learning policies does not principally emerge from a significant growth in the complexity of functions observed on-and-around trajectories of the policy.
Introduction
Deep Reinforcement Learning (RL) is often treated as a "black box." While we can track an agent's progress through learning curves (reward over time), we have a poor understanding of the actual state-to-action mapping the neural network creates. For networks using ReLU (Rectified Linear Unit) activations, the input space is partitioned into a collection of convex polytopes called linear regions. Within each region, the network behaves as a simple linear (affine) function. In supervised learning, researchers have studied how the number and density of these regions relate to a network's "expressivity"—its ability to represent complex functions. This paper investigates whether these findings hold for RL and if networks "sharpen" control by increasing region density in frequently visited areas.
Methodology
The researchers trained agents using PPO (Proximal Policy Optimization) and SAC (Soft Actor-Critic) on standard continuous control benchmarks from the OpenAI Gym (e.g., HalfCheetah, Walker, Ant, and Swimmer). To analyze the policy's geometric structure, they developed a method to exactly count the linear regions encountered along an agent's trajectory.
They used the activation pattern—a binary code representing whether each neuron in the network is "on" or "off"—to uniquely identify each region. Key metrics included:
- Transition Count ($R_T$): The number of times the agent crosses a boundary into a new linear region.
- Trajectory Length ($L$): The distance traveled in the state space.
- Region Density ($\rho$): Transitions divided by trajectory length and neuron count.
Analysis compared Fixed Trajectories (paths from the final policy) against Current Trajectories (paths from the policy at its current training stage).
Key Results and the "Perspective Paradox"
Contrary to the intuition that networks pack thousands of regions around optimal paths for fine-grained control, the density along fixed trajectories only increases by about 50% throughout training. The complexity of the final policy does not stem from a massive increase in local function "wiggliness."
This leads to a Perspective Paradox: while the absolute number of regions increases, the observed density along current trajectories actually decreases during training. This occurs because the agent learns to explore much further (trajectory length $L$ grows) faster than the network adds new region boundaries. Additionally, the study confirmed that region density scales linearly with the number of neurons (width) rather than exponentially with depth, aligning with supervised learning theory.
Conclusion and Future Work
The findings suggest that RL policy complexity does not emerge from a significant growth in function complexity along trajectories. Instead, the evolution of the policy is characterized by a relatively stable geometric structure relative to the expanding range of the agent's movement. Future work may explore how these insights can be used to "distill" complex neural policies into more interpretable, non-parametric controllers or investigate the unique learning path dependencies of RL compared to supervised behavior cloning.
Summary updated