Sample-Efficient Policy Learning based on Completely Behavior Cloning

Qiming Zou, Ling Wang, Yu Li, Jie Liu

TL;DR

This paper introduces PLCBC, a novel method for initializing reinforcement learning policies by directly cloning an existing Model Predictive Control (MPC) controller. By transforming the MPC into a piecewise affine function and then a neural network, PLCBC provides a safe, high-reward starting point for learning, significantly improving sample efficiency and avoiding dangerous initial behaviors.

What Problem Does This Paper Address?

Reinforcement learning (RL) agents often struggle to learn effective policies from scratch. This is due to two main issues: first, they require vast amounts of data, making them "sample inefficient," and second, partially trained policies can exhibit erratic and potentially dangerous behaviors, especially in real-world applications like robotics or autonomous driving. Existing imitation learning methods can be sample efficient but often rely on human experts or can suffer from compounding errors. The paper aims to bridge this gap by providing a robust, safe, and sample-efficient initialization strategy for RL policies.

Methods

The core of the proposed method, Policy Learning based on Completely Behavior Cloning (PLCBC), lies in its initialization strategy. It leverages Model Predictive Control (MPC), a well-established optimal control technique. The process involves:

  1. Transforming MPC to Piecewise Affine (PWA) Function: Using multi-parametric programming, the implicit control law of an MPC controller is converted into an explicit piecewise affine (PWA) function. This function defines a set of linear control laws over different regions of the state space.
  2. Neural Network Representation: This PWA function is then encoded into a neural network architecture. This architecture consists of two main parts:
  3. Location Network: This network takes the current state as input and outputs a "one-hot encoding" that identifies which region of the state space the current state belongs to. This is achieved by directly coding the weights and biases based on the linear inequalities defining the PWA regions.
  4. Policy Network: This network is composed of multiple subnetworks, each corresponding to a specific region identified by the location network. Each subnetwork implements the linear control law for its respective region.
  5. Initialization: The weights and biases of this combined neural network are directly derived from the MPC controller. This means the network is initialized to perfectly mimic the MPC's behavior without any training, making it "training-free" for the initialization phase.
  6. Reinforcement Learning Fine-tuning: After this initialization, a standard reinforcement learning algorithm (specifically, a modified DDPG) is used to fine-tune the policy. The key advantage here is that the agent starts learning from a high-reward region, avoiding dangerous initial actions and converging much faster.

Datasets

Not discussed in the paper. The experiments are conducted on simulated environments: inverted pendulum, quadcopter navigation, and a toy urban traffic network.

Key Insights and Ideas

  • MPC as a "Computational Expert": The paper effectively treats an MPC controller as a high-quality "computational expert" that can provide a safe and optimal starting point for RL.
  • Direct Cloning, No Training-Free Initialization: The ability to directly translate an MPC's PWA function into a neural network without any initial training is a significant contribution. This bypasses the need for extensive data collection for initialization.
  • Safety and Stability: By initializing with a proven optimal controller like MPC, PLCBC inherently provides a safer starting policy, preventing the agent from taking dangerous actions during early learning stages.
  • Avoiding Poor Local Optima: Starting in a high-reward region significantly reduces the likelihood of the RL agent getting stuck in suboptimal solutions.
  • Sample Efficiency: The initialization allows the agent to learn from a much better starting point, drastically reducing the number of samples required for convergence compared to learning from scratch.

Key Results

  • Faster Convergence: PLCBC consistently shows faster convergence in terms of episodes compared to DDPG and DPPO across various domains.
  • Higher Cumulative Rewards: PLCBC achieves higher cumulative rewards, indicating better overall performance. For instance, in the pendulum domain, it reaches a higher reward plateau faster than other methods.
  • Robustness to Model Mismatch: Experiments with modified quadcopter dynamics (simulating model error) show that PLCBC, while initially performing worse, can still improve and adapt, demonstrating a degree of robustness.
  • Improved Traffic Flow: In the urban traffic network simulation, PLCBC learned to balance traffic burden more effectively than a standard MPC controller, leading to better overall flow.

Limitations and Future Work

  • Network Size: The paper acknowledges that the number of parameters in the PLCBC network is proportional to the number of regions ($N_p$) in the PWA function. For highly non-linear dynamics requiring many regions, this can lead to a large network.
  • Multi-layer Networks: The current PLCBC architecture uses a shallow network (2 hidden layers). The authors suggest that using multi-layer neural networks could potentially express region structures more efficiently with fewer neurons.
  • Efficient RL Algorithm Integration: The paper notes that traditional RL algorithms often learn from random actions, which might not be optimal when starting with a well-initialized policy. Developing more efficient RL algorithms that better leverage this initialization is a promising future direction.
  • Complex Dynamics: PLCBC might perform poorly if the underlying dynamics are too complex, requiring highly non-linear policy networks. The authors suggest a potential solution by adding a non-linear residual term to the policy network, initialized to zero and then fine-tuned.

Summary updated

BibTeX
@inproceedings{zou2019sample,
  author = {Qiming Zou and Ling Wang and Yu Li and Jie Liu},
  title = {{Sample-Efficient Policy Learning based on Completely Behavior Cloning}},
  booktitle = {SMC},
  year = {2019},
  doi = {10.1109/smc.2019.8914085},
}
Figure