Introduction
Model-based reinforcement learning (MBRL) offers a promising path toward sample-efficient agent training by leveraging a learned "world model" to plan future actions. However, these models are inevitably imperfect. During trajectory optimization, search algorithms—particularly powerful gradient-based ones like Adam—often exploit these inaccuracies. They discover "adversarial" sequences of actions that the model incorrectly predicts will yield high rewards, but which lead to catastrophic failure in the real environment. This phenomenon restricts the use of efficient optimizers and necessitates more conservative, often less effective, planning strategies.
Proposed Method: DAE Regularization
To address this exploitation, we propose a regularization technique using Denoising Autoencoders (DAEs). The core idea is to ground the trajectory optimizer within the distribution of previously observed state-action pairs, ensuring that the "imagined" plans remain in regions where the dynamics model is reliable.
The framework consists of three primary components:
- Dynamics Model ($f_\theta$): A neural network trained to predict the next state $s_{t+1}$ given the current state $s_t$ and action $a_t$.
- Denoising Autoencoder ($g$): Trained on the agent's historical state-action data. By learning to reconstruct clean inputs from noisy versions, the DAE's reconstruction error serves as a proxy for the gradient of the log-density of the data distribution.
- Regularized Objective: Instead of maximizing only the predicted reward $G$, the agent optimizes a combined objective: $G_{reg} = G + \alpha \cdot \log p(\text{trajectory})$. The DAE penalty discourages the optimizer from selecting "unfamiliar" trajectories that deviate significantly from the training data.
Experimental Evaluation
The approach was evaluated on two distinct benchmarks:
- Industrial Process Control: A simulation of a nonlinear two-phase chemical reactor, requiring strict adherence to safety constraints like pressure limits.
- MuJoCo Physics Suite: A variety of robotics tasks (Cartpole, Reacher, Pusher, Half-cheetah, and Ant) involving high-dimensional state and action spaces.
Key Results and Insights
The inclusion of DAE regularization fundamentally changes the utility of gradient-based optimizers in MBRL.
Enabling Gradient-Based Optimization
Historically, gradient-free methods like the Cross-Entropy Method (CEM) have been preferred to avoid model exploitation. Our results show that with DAE regularization, the Adam optimizer becomes highly effective. In the Half-cheetah task, unregularized Adam caused the agent to "break" the simulator, whereas regularized Adam achieved an average return of ~12,800, surpassing the CEM-based PETS baseline (~11,000).
Industrial Safety and Stability
In the chemical reactor benchmark, unregularized optimization led to highly unstable control signals. As shown in the figure below, the lack of grounding in the data distribution results in extreme oscillations in manipulated variables, which would violate safety constraints in a real-world setting.
In contrast, the regularized version maintained stable control, reaching target production rates faster than traditional human-engineered PI controllers while remaining within safe operational bounds.
Sample Efficiency
The "familiarity filter" provided by the DAE prevents the agent from wasting episodes on unrealistic plans. This led to significantly higher sample efficiency, particularly in complex tasks like Ant, where the agent learned functional locomotion in just a few episodes.
Discussion and Limitations
While DAE regularization provides stability and safety, it introduces a trade-off between exploration and exploitation. By penalizing unfamiliar states, the agent may become overly conservative, potentially plateauing at sub-optimal performance. Future work will explore combining this regularization with intrinsic motivation rewards to encourage safe exploration of novel, high-reward regions of the state space. Additionally, adapting the DAE to non-stationary environments remains an open challenge for long-term deployment.
Summary updated