Locally Constrained Representations in Reinforcement Learning
Somjit Nath, Rushiv Arora, Samira Ebrahimi Kahou
TL;DR
This paper addresses the challenge that RL-trained representations can overfit to evolving value targets by introducing Locally Constrained Representations (LCR), an auxiliary loss that enforces linear predictability of a state’s latent φ_T from neighboring states’ latents. The method defines a neighborhood window of size K and learns nonnegative weights W to form a linear predictor W φ_nearest(T) that approximates φ_T, integrating this soft constraint with the main RL objective. Empirical results across MiniGrid, MuJoCo, Robosuite, and Atari show improved performance and robustness, especially in continuous control tasks where environment dynamics are well-behaved locally, with ablations illuminating hyperparameter sensitivities. The approach demonstrates that decoupling representation learning from the RL loss via local linearity constraints can yield more stable, generalizable representations and faster learning in diverse environments. Overall, LCR offers a practical, broadly applicable technique to boost RL performance by embedding local dynamics into the representation learning process.
Abstract
The success of Reinforcement Learning (RL) heavily relies on the ability to learn robust representations from the observations of the environment. In most cases, the representations learned purely by the reinforcement learning loss can differ vastly across states depending on how the value functions change. However, the representations learned need not be very specific to the task at hand. Relying only on the RL objective may yield representations that vary greatly across successive time steps. In addition, since the RL loss has a changing target, the representations learned would depend on how good the current values/policies are. Thus, disentangling the representations from the main task would allow them to focus not only on the task-specific features but also the environment dynamics. To this end, we propose locally constrained representations, where an auxiliary loss forces the state representations to be predictable by the representations of the neighboring states. This encourages the representations to be driven not only by the value/policy learning but also by an additional loss that constrains the representations from over-fitting to the value loss. We evaluate the proposed method on several known benchmarks and observe strong performance. Especially in continuous control tasks, our experiments show a significant performance improvement.
