Conformal Symplectic Optimization for Stable Reinforcement Learning

Yao Lyu, Xiangteng Zhang, Shengbo Eben Li, Jingliang Duan, Letian Tao, Qing Xu, Lei He, Keqiang Li · DOI

Reinforcement Learning (RL) is famously finicky. Between the trial-and-error nature of the mechanism and the non-convex landscapes of neural networks, training often feels like trying to balance a marble on a vibrating plate. While optimizers like Adam have become the industry standard, they are largely empirical. A new paper, "Conformal Symplectic Optimization for Stable Reinforcement Learning," proposes a more principled approach by looking at optimization through the lens of physics—specifically, special relativity and Hamiltonian dynamics.

TL;DR

The authors introduce Relativistic Adaptive Gradient Descent (RAD), an optimizer that treats neural network parameters as particles in a relativistic system. By imposing a physical "speed limit" on parameter updates and using symplectic integrators to preserve the geometry of the optimization path, RAD significantly improves training stability and outperforms Adam by up to 155% in challenging RL tasks.

What Problem Does This Paper Address?

Training deep RL agents is inherently unstable. Unlike supervised learning, where the data distribution is fixed, an RL agent’s data depends on its own evolving policy. This creates a feedback loop that can lead to "gradient explosions," overestimation, and catastrophic divergence.

Current optimizers like Adam use adaptive learning rates to handle noisy gradients, but they lack a theoretical foundation for long-term stability in these highly dynamic environments. The authors argue that we should treat the optimization process as a continuous-time dynamical system. If we can ensure that this system is stable in continuous time and then discretize it without losing that stability, we get a much more robust optimizer.

Methods

The authors propose a framework that maps neural network training to a conformal Hamiltonian system. In physics, these systems represent particles moving in a potential field with some friction (damping).

Key innovations include:

  1. Relativistic Kinetic Energy: Instead of using classical Newtonian physics (where speed can increase infinitely), RAD uses relativistic kinetic energy. This naturally imposes a finite "speed limit" ($c$) on how much a parameter can change in a single step, effectively mitigating the impact of abnormal, massive gradients.
  2. Symplectic Preservation: The authors use conformal symplectic integrators to turn continuous physics equations into discrete update rules. Unlike standard discretization, symplectic methods preserve the "phase area" (the geometric structure of the system) over time, which prevents the optimization from drifting into unstable territory.
  3. Multi-Particle Modeling: RAD treats every single trainable parameter as an independent relativistic particle. This allows for per-parameter adaptivity, similar to how Adam scales updates, but with the added stability of relativistic bounds.
  4. The Symplectic Factor ($\zeta$): RAD introduces a growing factor that controls the transition from an "Adam-like" fast-learning phase to a "symplectic" stable-learning phase.

Datasets

The researchers evaluated RAD across a wide range of standard and complex benchmarks:

  • Classical Control: CartPole-v1.
  • MuJoCo (Continuous Control): Ant-v3, HalfCheetah-v3, Walker2d-v3, Swimmer-v3, Hopper-v3, and Humanoid-v3.
  • Atari Games (Image Input): Breakout-v4, Enduro-v4, Seaquest-v4, and SpaceInvaders-v4.
  • Autonomous Driving: A custom benchmark using the IDSim simulator for navigating busy urban intersections.

Key Insights and Ideas

  • Adam is a Special Case: The authors prove that Adam is essentially a specific, non-symplectic version of RAD. The small constant $\epsilon$ in Adam (usually $10^{-8}$) actually corresponds to the "mass energy" in a relativistic system. RAD’s principled approach suggests that annealing this factor is key to long-term stability.
  • The Hamiltonian as a Stability Metric: By tracking the "Total Energy" (Hamiltonian) of the optimizer, the authors show that RAD produces much smoother, monotonically descending energy curves compared to the oscillating curves of Adam.
  • Symplecticity = Resilience: RAD showed remarkable resilience to observation noise. In tests with noisy data, RAD’s performance degraded by only 3.4%, while other state-of-the-art optimizers like NADAM saw a 10.9% drop.

Key Results

RAD consistently outperformed nine baseline optimizers (including Adam, SGD-M, and Nesterov) across different RL algorithms like SAC, PPO, and DQN.

  • Atari Performance: In Seaquest-v4, RAD achieved a 155.1% improvement in Total Average Return (TAR) over Adam.
  • MuJoCo Stability: In tasks like Walker2d-v3, RAD showed a 5.4% improvement over Adam and was significantly more stable than Nesterov Accelerated Gradient (NAG), which often diverged early.
  • Smooth Convergence: As seen in Figure 1, RAD (blue line) reaches the maximum return faster and maintains a much smoother Hamiltonian decay than its competitors.
Fig. 1: Learning curves of CartPole-v1, wherein the TAR indicates the policy performance and the smoothness of Hamiltonian descending implies the training stability. The solid lines correspond to the mean, the shaded regions correspond to the 95% confidence interval over five runs, and ∆H = H −min H.
  • Real-World Application: In autonomous driving simulations, RAD achieved a 93.2% success rate in urban intersections, outperforming Adam’s 89.5%.

Limitations and Future Work

While RAD shows superior performance, the authors note a few areas for further exploration:

  • Hyperparameter Tuning: While RAD reduces the need for fine-tuning learning rates, it introduces new parameters like the speed coefficient ($\delta$) and the symplectic annealing sequence.
  • Integration: The current version of RAD is a first-order optimizer. Future work could involve integrating techniques from other Adam variants (like weight decay in AdamW) or exploring second-order symplectic integrators to further boost convergence speeds.
  • Generalization: While the focus here was RL, the theoretical convergence proofs suggest RAD could be beneficial for other non-convex stochastic optimization problems in deep learning.

Summary updated

BibTeX
@article{lyu2024conformal,
  author = {Yao Lyu and Xiangteng Zhang and Shengbo Eben Li and Jingliang Duan and Letian Tao and Qing Xu and Lei He and Keqiang Li},
  title = {{Conformal Symplectic Optimization for Stable Reinforcement Learning}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2024},
}
Figure