Abstract
Deep reinforcement learning has the potential to address various scientific problems. In this paper, we implement an optics simulation environment for reinforcement learning based controllers. The environment captures the essence of nonconvexity, nonlinearity, and time-dependent noise inherent in optical systems, offering a more realistic setting. Subsequently, we provide the benchmark results of several reinforcement learning algorithms on the proposed simulation environment. The experimental findings demonstrate the superiority of off-policy reinforcement learning approaches over traditional control algorithms in navigating the intricacies of complex optical control environments.
Introduction
In high-energy physics and telecommunications, Optical Pulse Stacking (OPS) is a critical technique used to multiply laser energy by precisely overlapping pulses in time. However, controlling these systems is exceptionally challenging due to their inherent non-linearity and non-convexity. The energy landscape of such systems is filled with local optima, which act as traps for traditional controllers.
Traditionally, engineers rely on Stochastic Parallel Gradient Descent (SPGD). While effective for simple convex setups, SPGD is a local search method that often fails to find the global peak if not initialized nearby. Furthermore, real-world systems suffer from "fast noise" (mechanical vibrations) and "slow noise" (thermal drifts), complicating the control task. This paper introduces the first open-source RL environment designed to benchmark modern algorithms against these challenges.
Methods and Environment Design
The authors developed the OPS Simulator, a scalable environment compatible with the OpenAI Gym API. It simulates the physics of stacking $2^N$ pulses using $N$ control stages involving mirrors and delay lines. The environment includes three difficulty tiers: Easy (near-optimum start), Medium (random starting points), and Hard (random starts plus time-dependent noise).
Three Deep RL algorithms were benchmarked: Proximal Policy Optimization (PPO), Soft Actor-Critic (SAC), and Twin Delayed DDPG (TD3). SAC and TD3 are "off-policy" methods utilizing a replay buffer, whereas PPO is "on-policy."
Key Insights and Results
The primary metric for evaluation is the Final Pulse Energy ($P_N$), normalized to a theoretical maximum of 1.0.
The Replay Buffer Advantage
Off-policy algorithms (SAC and TD3) significantly outperformed the on-policy PPO. The use of a replay buffer allows these agents to learn from a diverse history of experiences, making them more robust against the local optima shown in the energy landscapes.
Performance Benchmarks
In the most challenging 5-stage "Hard" mode, TD3 and SAC achieved normalized energy of $\sim 0.84 - 0.85$, while PPO trailed at $\sim 0.65$. Traditional SPGD struggled significantly, reaching only $\sim 0.51$. As the number of stages increases, the performance of traditional SPGD-PID controllers degrades rapidly, while RL agents maintain high efficiency. Furthermore, agents trained in "Hard" mode showed excellent zero-shot transfer to easier modes, suggesting that environmental instability during training fosters robustness.
Conclusion and Future Work
This work demonstrates that modern off-policy RL algorithms are better suited for complex optical control than traditional gradient-based methods. While the current simulation uses Gaussian noise models, future iterations will explore more complex, non-symmetric noise patterns found in laboratory settings. Additionally, reducing the "sim-to-real" gap by accounting for physical hardware latency remains a key area for future research.
Summary updated