NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An investigation of time reversal symmetry in reinforcement learning

Brett Barkley, Amy Zhang, David Fridovich-Keil

Abstract

One of the fundamental challenges associated with reinforcement learning (RL) is that collecting sufficient data can be both time-consuming and expensive. In this paper, we formalize a concept of time reversal symmetry in a Markov decision process (MDP), which builds upon the established structure of dynamically reversible Markov chains (DRMCs) and time-reversibility in classical physics. Specifically, we investigate the utility of this concept in reducing the sample complexity of reinforcement learning. We observe that utilizing the structure of time reversal in an MDP allows every environment transition experienced by an agent to be transformed into a feasible reverse-time transition, effectively doubling the number of experiences in the environment. To test the usefulness of this newly synthesized data, we develop a novel approach called time symmetric data augmentation (TSDA) and investigate its application in both proprioceptive and pixel-based state within the realm of off-policy, model-free RL. Empirical evaluations showcase how these synthetic transitions can enhance the sample efficiency of RL agents in time reversible scenarios without friction or contact. We also test this method in more realistic environments where these assumptions are not globally satisfied. We find that TSDA can significantly degrade sample efficiency and policy performance, but can also improve sample efficiency under the right conditions. Ultimately we conclude that time symmetry shows promise in enhancing the sample efficiency of reinforcement learning and provide guidance when the environment and reward structures are of an appropriate form for TSDA to be employed effectively.

Introduction

Reinforcement learning (RL) is notoriously data-hungry. In real-world applications, collecting millions of interactions with an environment is often prohibitively expensive, slow, or dangerous. To mitigate this, researchers frequently employ data augmentation—generating synthetic experiences to supplement real-world data. While geometric symmetries (e.g., horizontal flips in image-based tasks) are commonly exploited, temporal symmetries remain largely underutilized.

This paper investigates Time Symmetric Data Augmentation (TSDA), a method that leverages the fundamental physics of time-reversal symmetry to double the available training data. In classical physics, many dynamical systems are time-reversible: if a sequence of states is physically valid, its time-reversed counterpart (with negated velocities) is often also valid. We formalize this "backward-in-time" logic for Markov Decision Processes (MDPs) to accelerate agent learning.

Time Symmetric Data Augmentation (TSDA)

The core of our approach is the Dynamically Action Reversible MDP (DARMDP) framework. TSDA operates through several key steps:

  1. Conjugate States: For any state defined by position and velocity, we define a "conjugate" state where the position is identical but the velocity (momentum) is negated.
  2. Synthetic Transitions: If an agent transitions from state $A$ to state $B$ via action $u$, TSDA generates a synthetic "reverse" transition from the conjugate of $B$ back to the conjugate of $A$.
  3. Data Doubling: Every real transition experienced by the agent is paired with its synthetic reverse and stored in the replay buffer.
  4. Pixel-Based Adaptation: For agents learning from raw images, time reversal is implemented by simply reversing the frame order in a sequence, allowing the network to learn balance and dynamics without explicit velocity vectors.
Trajectory visualization and performance for a simulated manipulator task.

Empirical Evaluation and Key Results

We evaluated TSDA across standard benchmarks (DeepMind Control Suite, OpenAI Gym) and custom N-link manipulators. Our results demonstrate that TSDA significantly enhances sample efficiency in environments that respect time-reversal symmetry.

  • Sample Efficiency Gains: In perfectly conservative systems, TSDA effectively doubles training data, leading to faster convergence. For instance, in a 3-link manipulator task with high torque authority, TSDA required ~62% fewer samples and achieved a 12% higher final return.
  • Pixel-Based Robustness: In pixel-based Cartpole tasks, TSDA solved the environment with 50% fewer steps than standard Soft Actor-Critic (SAC). Interestingly, the "pixel blindness" to fine-grained friction allowed the agent to benefit from synthetic data even when the underlying physics weren't perfectly symmetric.
  • Reward-Induced Symmetry: In Lunar Lander, despite the presence of ground impacts, TSDA improved efficiency by ~27%. This is because the reward structure penalizes crashes, forcing the agent to operate primarily in the "smooth," symmetric regions of the state space.
Performance comparison of SAC vs. SAC+TSDA across (a) Cartpole, (b) 2-link manipulator, and (c) 3-link manipulator.

Limitations and Failure Modes

TSDA is not a universal solution. Its effectiveness depends on the environment's "crunchiness"—the prevalence of high-impact collisions or significant friction. In the Walker "run" task, frequent foot-to-ground collisions break time symmetry so severely that synthetic data becomes "physical nonsense," causing the agent to fail completely. Additionally, TSDA currently requires a priori knowledge of the reward function to label synthetic transitions.

Conclusion

Time symmetry shows significant promise for enhancing RL sample efficiency, particularly in smooth or aerial robotics. Future work will focus on learned symmetry detection, enabling agents to autonomously determine when a transition is reversible, thereby avoiding the pitfalls of asymmetric environments.

Summary updated

BibTeX
@inproceedings{barkley2024investigation,
  author = {Brett Barkley and Amy Zhang and David Fridovich-Keil},
  title = {{An investigation of time reversal symmetry in reinforcement learning}},
  booktitle = {L4DC},
  year = {2024},
  url = {https://openreview.net/forum?id=l5YVjeWsDB},
}
Figure