[Paper Review] Model Based Planning with Energy Based Models
This paper proposes using energy-based models (EBMs) for model-based planning in reinforcement learning, enabling online training and maximum entropy inference over state trajectories. EBMs outperform feed-forward networks in online learning, generalize better to unseen obstacles, and naturally incentivize directed exploration by assigning low energy to unexplored, reachable states.
Model-based planning holds great promise for improving both sample efficiency and generalization in reinforcement learning (RL). We show that energy-based models (EBMs) are a promising class of models to use for model-based planning. EBMs naturally support inference of intermediate states given start and goal state distributions. We provide an online algorithm to train EBMs while interacting with the environment, and show that EBMs allow for significantly better online learning than corresponding feed-forward networks. We further show that EBMs support maximum entropy state inference and are able to generate diverse state space plans. We show that inference purely in state space - without planning actions - allows for better generalization to previously unseen obstacles in the environment and prevents the planner from exploiting the dynamics model by applying uncharacteristic action sequences. Finally, we show that online EBM training naturally leads to intentionally planned state exploration which performs significantly better than random exploration.
Motivation & Objective
- Address poor sample efficiency and generalization in model-free reinforcement learning by adopting model-based planning with learned dynamics.
- Overcome limitations of action-conditional planning, which can exploit model inaccuracies and fail on unseen obstacles.
- Develop an online training framework for EBMs that adapts to changing dynamics and correlated experience in real-world settings.
- Enable intrinsic exploration through EBM training, where unexplored regions are naturally targeted due to fluctuating energy values.
- Demonstrate that planning in state space alone—without action conditioning—leads to better generalization and safer, more diverse trajectories.
Proposed method
- Formulate planning as inference in a graphical model defined by energy-based models, where the energy function encodes the likelihood of state transitions.
- Train EBMs online using both real transitions and planned transitions (before deviation), with a contrastive objective that minimizes energy for real and plausible planned transitions.
- Use Langevin dynamics or similar sampling methods to perform maximum entropy inference over state trajectories, generating diverse plans from start to goal.
- Decouple policy learning from dynamics modeling by conditioning planning solely on start and goal states, avoiding action-space exploitation.
- Leverage the compositional and online learning properties of EBMs to maintain robustness under correlated, non-i.i.d. experience during training.
- Incorporate exploration incentives by allowing EBMs to assign low energy to unexplored but reachable states, guiding the agent toward novel regions.
Experimental results
Research questions
- RQ1Can energy-based models support effective online learning of dynamics in real-world, non-stationary environments with correlated experience?
- RQ2Does planning in state space using EBMs generalize better than action-conditional planning when faced with previously unseen obstacles?
- RQ3Can EBM-based planning naturally generate diverse, high-quality trajectories without explicit reward shaping or exploration bonuses?
- RQ4To what extent does online EBM training lead to more directed and efficient exploration compared to random or intrinsic motivation-based methods?
- RQ5How does the maximum entropy property of EBMs improve robustness and diversity in state-space planning?
Key findings
- EBMs significantly outperform corresponding feed-forward networks in online model learning, showing greater robustness to correlated experience and faster convergence.
- EBM-based planning generalizes better to unseen obstacles: in the particle environment, EBM achieved a reward of -61.94 compared to -81.24 for action-conditional feed-forward networks.
- EBM-based planning generates diverse trajectories—evidenced by broader envelopes of possible paths in multi-step planning and ability to produce clockwise and counter-clockwise paths in the Reacher environment.
- EBMs naturally incentivize exploration: in the maze environment, EBM-guided exploration covered the entire maze in less than 10,000 transitions, while a random policy required over 200,000 transitions to reach maximum spatial occupancy.
- In the Sawyer robot arm task, EBMs reached maximum 3D end-effector occupancy (116 voxels) in significantly fewer transitions than random exploration, demonstrating directed and efficient exploration.
- Energy values in unexplored regions fluctuate during training, causing EBMs to generate plans toward previously unvisited but reachable states, creating a dynamic exploration incentive.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.