Conformal Symplectic Optimization for Stable Reinforcement Learning

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

Introduction

Reinforcement Learning (RL) is a powerful paradigm for training agents in complex environments, yet it remains notoriously unstable. Unlike supervised learning, RL agents learn through trial and error in stochastic settings, often leading to "nonconvex" optimization landscapes characterized by overfitting, reward overestimation, or catastrophic divergence. While empirical optimizers like ADAM are standard, they often lack a deep theoretical foundation for maintaining stability in these volatile regimes.

Researchers have addressed this by developing Relativistic Adaptive Gradient Descent (RAD). This framework treats neural network training as a physical system governed by the laws of special relativity and conformal symplectic geometry, providing a principled approach to stabilizing RL training.

Conformal Symplectic Optimization

The core innovation of RAD lies in its "physics-first" approach to weight updates, utilizing a framework called Conformal Symplectic Optimization. This method injects physical constraints directly into the optimization code.

The Hamiltonian Viewpoint

The neural network is modeled as a physical system where the loss function represents "potential energy" and the momentum of the weights represents "kinetic energy." By maintaining this physical analogy, the optimization process can be viewed as the evolution of a dynamical system.

Relativistic Speed Limits

In special relativity, the speed of light acts as a universal limit. RAD applies this principle to neural network weights by using a relativistic kinetic energy formulation. This naturally caps the "speed" (magnitude) of parameter updates. Even in the presence of massive gradients—a common cause of RL crashes—the weights are constrained by a predefined limit, preventing the model from jumping into unstable regions of the parameter space.

Symplectic Integration and Energy Decay

Standard discrete optimization steps often lose the physical properties of continuous systems. RAD employs conformal symplectic integrators to ensure that the system's "energy" (the Hamiltonian) decays smoothly. This prevents the chaotic oscillations typical of standard optimizers and ensures a more stable descent toward the global minimum.

Training performance and Hamiltonian decay for DDPG and SAC across various optimizers.

Experimental Evaluation

RAD was evaluated across a diverse set of benchmarks to test its robustness:

  • Classic Control & MuJoCo: Tasks ranging from CartPole to complex robotic locomotion (Ant, HalfCheetah, Walker2d).
  • Atari Games: Discrete control tasks using pixel inputs, including Breakout and Seaquest.
  • IDSim: A high-fidelity autonomous driving simulator requiring navigation through busy urban intersections.

Key Insights

ADAM as a Generalization

A significant finding is that RAD serves as a generalization of ADAM. By setting specific coefficients—namely the "speed of light" and the "symplectic factor"—RAD recovers the standard ADAM update rule. This suggests that ADAM’s empirical success may stem from it being an accidental approximation of a stable physical system.

Energy as a Stability Metric

The paper demonstrates that stable training correlates with a smooth descent in the system's Hamiltonian. As shown in Figure 1, RAD produces significantly smoother energy decay curves compared to ADAM and other baselines, which often exhibit jagged, unstable oscillations that precede training failure.

Results and Performance

RAD consistently outperformed nine baseline optimizers across five different RL algorithms (DQN, PPO, SAC, etc.).

  • Atari Dominance: RAD achieved a 155.1% performance improvement over ADAM in Seaquest and over 80% in Breakout.
  • Robotics: In MuJoCo tasks, RAD reached higher peak rewards faster than baselines. For instance, it showed a 5.4% improvement on the Walker2d task.
  • Autonomous Driving: RAD achieved a 93.2% success rate in complex intersection navigation, outperforming ADAM's 89.5% and providing smoother control with lower acceleration jitter.
Performance comparison of RAD against baseline optimizers on MuJoCo continuous control tasks.

Conclusion

By imposing physical constraints like "speed limits" and preserving symplectic structures, RAD offers a robust alternative to purely empirical optimizers. While it introduces a new hyperparameter—the speed coefficient ($\delta$)—a default value of 1 proved effective across most tasks. Future work will explore "shadow dynamics" to further understand the interaction between these physical properties and other optimization techniques like weight decay, aiming for a truly universal optimizer for stable AI.

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