Optimal Exploration for Model-Based RL in Nonlinear Systems

Kevin Jamieson, Guanya Shi, Andrew Wagenmaker

Introduction

In model-based reinforcement learning (RL), the standard paradigm involves a two-stage pipeline: first, exploring the environment to build a model of the dynamics (System Identification), and second, computing an optimal controller based on that model. Traditionally, research has focused on "uniform" exploration, where the agent attempts to learn all aspects of the system dynamics with equal precision.

However, this approach is often inefficient. For a specific task—such as landing a drone or navigating a car—certain system parameters are significantly more critical than others. In nonlinear systems, this inefficiency is magnified because specific dynamics may only activate in narrow regions of the state space. If an exploration strategy does not specifically target the parameters that influence controller performance, the agent wastes significant time and resources collecting irrelevant data. This paper addresses how to formally define which parameters "matter" and how to plan trajectories that specifically excite those parameters in nonlinear settings.

Methodology: Task-Driven Exploration

The authors focus on a class of nonlinear systems where the transition dynamics are defined as a linear function of a known nonlinear feature map:

$$x_{h+1} = A_\star \phi(x_h, u_h) + w_h$$

To solve the problem of targeted exploration, the paper introduces two primary components:

The Model-Task Hessian

The "secret sauce" of this approach is the Model-Task Hessian ($H(A_\star)$). This metric translates estimation errors in the system parameters ($A_\star$) into the resulting suboptimality (excess cost) of the final controller. By quantifying this relationship, the Hessian tells the agent exactly how much weight to assign to the uncertainty of each parameter, allowing the agent to prioritize learning the dynamics that have the greatest impact on the task objective.

DynamicOED

To implement this prioritization, the authors developed DynamicOED (Dynamic Optimal Experiment Design). This is a novel reduction that transforms the challenge of finding an exploration policy into an optimal experiment design problem. Using a regret-minimization oracle, DynamicOED identifies trajectories that minimize parameter uncertainty in the specific directions identified by the Hessian. Unlike linear systems, where random noise (Gaussian wiggling) often suffices for exploration, nonlinear systems require this type of "intentional planning" to reach the specific states necessary to trigger and learn critical behaviors.

Experimental Evaluation

The proposed algorithm was evaluated across three simulated nonlinear robotic environments:

  1. 1D Motivating Example: A system designed to demonstrate how random exploration fails to reach a "goal" state where a critical parameter is hidden.
  2. 3D Drone System: A simplified 3D double integrator with an affine gravity term.
  3. 2D Car System: A highly nonlinear, underactuated system representing car kinematics.

Key Results

  • Efficiency Gains: In both the drone and car simulations, the Task-Driven Exploration method reached target performance levels approximately 2x faster than uniform or random noise exploration methods.
  • Targeted Learning: In the 1D example, the algorithm successfully ignored nine irrelevant parameters to focus entirely on the single parameter governing the goal state. In contrast, uniform methods stalled by attempting to learn the entire system model.
  • Instance Optimality: The authors provide a theoretical lower bound proving that their approach learns at a rate that is nearly as fast as theoretically possible for any specific system instance. This marks it as the first statistically optimal algorithm for this class of nonlinear systems.

Insights and Future Directions

The core insight of this research is that not all model errors are equal. By weighting model error by task sensitivity, agents can achieve much higher sample efficiency. Furthermore, the work highlights that nonlinear exploration requires intent; without task-aware planning, critical behaviors might never be observed.

Despite these successes, some limitations remain. The current framework relies on a computational oracle for regret minimization, which can be computationally expensive (NP-hard in some cases). Additionally, the framework assumes the nonlinear feature map $\phi(x, u)$ is known. Future work could involve combining this task-driven approach with representation learning to discover features and optimal exploration strategies simultaneously, or expanding the framework to cover broader classes of black-box nonlinear models.

Summary updated

BibTeX
@inproceedings{jamieson2023optimal,
  author = {Kevin Jamieson and Guanya Shi and Andrew Wagenmaker},
  title = {{Optimal Exploration for Model-Based RL in Nonlinear Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=pJQu0zpKCS},
}
Figure