Augmented Behavioral Cloning from Observation

Imitation from observation is a computational technique that teaches an agent on how to mimic the behavior of an expert by observing only the sequence of states from the expert demonstrations. Recent approaches learn the inverse dynamics of the environment and an imitation policy by interleaving epochs of both models while changing the demonstration data. However, such approaches often get stuck into sub-optimal solutions that are distant from the expert, limiting their imitation effectiveness. We address this problem with a novel approach that overcomes the problem of reaching bad local minima by exploring: (i) a self-attention mechanism that better captures global features of the states; and (ii) a sampling strategy that regulates the observations that are used for learning. We show empirically that our approach outperforms the state-of-the-art approaches in four different environments by a large margin.

Augmented Behavioral Cloning from Observation (ABCO) combines both an Inverse Dynamics Model (IDM) to infer actions in a self-supervised fashion, and a Policy Model (PM), which is a function that tells the agent what to do in each possible state of the environment. The former considers the problem of learning the agent-specific inverse dynamics, and the latter considers the problem of learning an imitation policy from a set of demonstration trajectories. The image below illustrates the entire pipeline for ABCO.

We model the IDM as a neural network responsible for learning the actions that make the agent transition from state st to st+1. In order to learn these actions without supervision, the agent interacts with the environment using a random policy π, generating pairs of states {(s0,s1)} for the agent with the corresponding actions {ˆa}. While randomly transitioning from states, the model learns the inverse dynamics for the agent by finding parameters θ that best describe the actions that occur for achieving the transitions. At test time, the IDM uses the learned parameters to predict an action ˆa given a state transition (s0,s1).

The PM is responsible for cloning the expert’s behavior. Thus, Based on the expert demonstrations, where each demonstration comprises pairs of subsequent states (s0,s1), ABCO uses the IDM to compute the distribution over actions and predict action ˆa that corresponds to the movement made by the expert to change from state s0 to s1. With the predicted action (self-supervision), the method builds a set of state-action pairs {(s0,ˆa)} corresponding to the action ˆa taken in state s0. Then this is used to learn the imitation policy πϕ that mimics the expert behavior in a supervised fashion. For behavioral cloning, learning an imitation policy πϕ from state-action tuples {(s0,ˆa)} consists of finding parameters ϕ for which πϕ best matches the provided tuples.

The complete paper can be seen here. When citing our work in academic papers, please use this BibTeX entry:

@inproceedings{MonteiroEtAl2020ijcnn,
  author    = {Monteiro, Juarez and 
               Gavenski, Nathan and
               Granada, Roger and 
               Meneguzzi, Felipe and 
               Barros, Rodrigo C},
  title     = {Augmented Behavioral Cloning from Observation},
  booktitle = {Proceedings of the 2020 International Conference on Neural Networks},
  series    = {IJCNN 2020},
  location  = {Glasgow, Scotland},
  pages     = {1--8},
  url       = {https://arxiv.org/abs/2004.13529},
  month     = {July},
  year      = {2020},
  publisher = {IEEE}
}
Written on April 27, 2020