Symmetric Replay Training: Enhancing Sample Efficiency in Deep Reinforcement Learning for Combinatorial Optimization

Hyeonah Kim, Minsu Kim, Sungsoo Ahn, Jinkyoo Park

The Sample Efficiency Bottleneck in Combinatorial Optimization

Combinatorial Optimization (CO) problems—such as finding the shortest delivery route or designing a stable molecule—are notoriously difficult because their solution spaces are massive and discrete. While Deep Reinforcement Learning (DRL) has shown significant promise in solving these challenges, it is typically "sample-hungry," requiring millions of reward evaluations to converge.

In real-world applications like hardware design or drug discovery, calculating a reward isn't just a simple mathematical function call; it often involves running intensive physics simulations or conducting actual wet-lab experiments. This makes reward evaluation the primary bottleneck. The critical question becomes: How can we make DRL more efficient when every reward evaluation is precious, time-consuming, and expensive?

To address this, researchers have proposed Symmetric Replay Training (SRT), a simple yet powerful "add-on" method that significantly boosts the sample efficiency of DRL models by replaying and imitating symmetric versions of high-reward trajectories. SRT allows models to explore the solution space "for free" without requiring additional online interactions.

Methods: The Symmetric Replay Training Loop

SRT is designed as a two-step iterative training loop that can be seamlessly plugged into almost any existing DRL algorithm (like PPO, A2C, or GFlowNets).

Symmetric Replay Training Loop
  1. Step A: Reward-maximizing Training: The model performs standard reinforcement learning, interacting with the environment (or oracle) to find high-reward solutions.
  2. Step B: Symmetric Replay Training: The model takes the high-reward trajectories it just discovered and applies "solution-preserving transformations." For example, in a Traveling Salesman Problem (TSP), starting the route from a different city or reversing the direction results in the exact same total distance (the same reward) but yields a completely different sequence of actions. The model is then trained to maximize the likelihood of these symmetric paths via a simple imitation loss.

By training on these "new" paths that lead to known good results, the model explores under-sampled regions of the action space without ever having to call the expensive reward function again.

Key Insights and Mechanisms

  • Exploration for "Free": The core insight is that symmetries in CO problems are an untapped source of training data. If you know one path is good, you automatically know all its symmetric counterparts are equally good. SRT exploits this to provide the model with a denser training signal.
  • Entropy as a Guide: Theoretical analysis shows that SRT effectively maximizes the entropy of the policy within the symmetric space. This prevents the model from collapsing onto a single "favorite" path and encourages a more robust, generalized understanding of the problem.
  • Mitigating Overfitting: Standard experience replay can lead to overfitting if the model merely memorizes a few high-reward paths. Because SRT transforms these paths into different action sequences, it acts as a form of data augmentation that helps the model generalize better.
  • Generic Add-on: SRT doesn't require changing the underlying architecture of the DRL agent. It’s a "plug-and-play" module that works with both on-policy and off-policy methods.

Key Results

The researchers evaluated SRT across three distinct domains: Synthetic Routing (TSP and CVRP), Hardware Design (Decap Placement Problem), and Molecular Optimization (PMO benchmark). The results show consistent improvements in both final performance and the speed of learning.

Learning curves across various DRL algorithms
  • Massive Gains in Hardware Design: In the chip-package PDN task, adding SRT to an A2C agent resulted in a 30.54% improvement in reward within the same 15K evaluation limit.
  • Superior Molecular Optimization: On the PMO benchmark, SRT improved the performance of the state-of-the-art REINVENT method in 18 out of 23 tasks.
  • Efficiency in Routing: For TSP50, SRT allowed models to achieve lower costs much earlier in the training process. For instance, GFlowNet with SRT achieved a 3.76% cost reduction at a low sample count ($K=100K$).
  • Wall-clock Neutral: While SRT adds a training step, the computational time taken is negligible compared to the massive amount of time saved by avoiding expensive simulations.

Limitations and Future Work

While highly effective, SRT relies on the user identifying the symmetries of the problem (e.g., cyclic shifts in TSP). While many CO problems have well-known symmetries, applying SRT to a completely novel problem requires first identifying these properties.

Additionally, the current method uses simple heuristics (like Top-K selection) to pick which trajectories to replay. Future work could explore more sophisticated ways of selecting "informative" high-reward samples to further boost performance, as well as testing how SRT scales to even larger, industrial-scale combinatorial problems.

Summary updated

BibTeX
@inproceedings{kim2024symmetric,
  author = {Hyeonah Kim and Minsu Kim and Sungsoo Ahn and Jinkyoo Park},
  title = {{Symmetric Replay Training: Enhancing Sample Efficiency in Deep Reinforcement Learning for Combinatorial Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=cmD5E6ami4},
}
Figure