Adaptive Path-Integral Autoencoders: Representation Learning and Planning for Dynamical Systems

Jung-Su Ha, Young-Jin Park, Hyeok-Joo Chae, Soon-Seo Park, Han-Lim Choi

Introduction

When learning from sequential data, such as video frames of a swinging pendulum or robotic sensor streams, researchers frequently rely on Amortized Variational Inference (AVI). In AVI, an "inference network" (the encoder) learns to map observations to latent states. However, this approach suffers from an amortization gap: the network provides a generalized, "one-size-fits-all" guess for the latent states that is often sub-optimal for any specific sequence.

Furthermore, once a model is learned, using it for motion planning—such as deciding how to move a robot from point A to point B—is computationally brutal in high-dimensional spaces. Presented at NeurIPS 2018, the Adaptive Path-Integral Autoencoder (APIAE) introduces a framework that bridges the gap between stochastic optimal control and variational inference to model complex dynamical systems, effectively closing the inference gap and leveraging the learned model for fast, effective planning.

Methodology: Control-Inference Duality

The core innovation of APIAE is its use of Control-Inference Duality. The authors demonstrate that finding the best hidden state for a sequence is mathematically equivalent to solving a Stochastic Optimal Control (SOC) problem. The architecture relies on several key components:

  • Structured Inference Network: The model uses a backward Recurrent Neural Network (RNN) to process sequences. This design is inspired by the "principle of optimality" in control theory, where the best action at any given time depends on future costs.
  • Path-Integral Refinement: Instead of relying solely on the encoder's initial guess, the model uses an iterative refinement procedure based on Path-Integral (PI) control. It samples multiple trajectories, weights them based on how well they explain the data, and iteratively "nudges" the variational distribution toward the most likely path.
  • End-to-End Differentiability: Crucially, the entire refinement process is differentiable. This allows the model to be trained end-to-end using standard gradient descent, effectively learning how to refine its own predictions.
  • Latent Space Planning: For planning, the model restricts its search to the low-dimensional latent manifold it discovers during training. This makes high-dimensional tasks, such as humanoid robot navigation, computationally tractable.

Experiments and Results

The authors evaluated their model on two primary tasks: a Dynamic Pendulum dataset (16x16 pixel image sequences of an inverted pendulum) and the CMU Human Motion Capture (mocap) dataset (62-dimensional data representing human joint angles and positions during locomotion).

Latent space visualization and sequence predictions for the dynamic pendulum task.

Key Insights

  • Closing the Gap: The "semi-amortized" approach—combining an initial guess with iterative refinement—significantly reduces the sub-optimality inherent in standard Variational Autoencoders (VAEs).
  • Inference as Control: By framing inference as a path-integral control problem, the authors successfully utilize sampling-based methods that are robust to the complex, non-linear dynamics often found in real-world data.
  • The Power of Latent Planning: The model goes beyond simply reconstructing video; it learns a manifold where planning becomes intuitive. For example, in the mocap data, the model discovered that human walking exists on a cylindrical manifold in latent space, where different axes correspond to gait phase and yaw rate.

Performance Gains

In both the pendulum and mocap experiments, APIAE achieved tighter (better) evidence lower bounds (ELBO) compared to baselines like Importance Weighted Autoencoders (IWAE) and Filtering Variational Objectives (FIVO). The refinement process also led to significantly lower reconstruction errors ($1.647 \times 10^6$ for the pendulum vs. $1.665 \times 10^6$ for IWAE). Ultimately, the model successfully planned complex "swing-up" maneuvers for the pendulum and collision-free paths for a 62-DOF humanoid robot—tasks that would be nearly impossible to solve directly in the raw observation space.

Limitations and Future Work

While powerful, the APIAE framework has a few limitations. The refinement steps (sampling $L$ trajectories over $R$ adaptations) inherently increase the computational cost per training iteration compared to a standard VAE. Additionally, the use of feedback gains in the control law requires matrix inversions (Cholesky decomposition), which can be numerically unstable during training; consequently, the authors only used feedback gains during the planning phase. Finally, the authors noted challenges in establishing quantitative prediction metrics for the complex mocap data, highlighting a broader need for better evaluation metrics in human motion modeling.

Summary updated

BibTeX
@inproceedings{ha2018adaptive,
  author = {Jung-Su Ha and Young-Jin Park and Hyeok-Joo Chae and Soon-Seo Park and Han-Lim Choi},
  title = {{Adaptive Path-Integral Autoencoders: Representation Learning and Planning for Dynamical Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=B1W4aPb_bH},
}
Figure