Predictive Coding for Locally-Linear Control

Rui Shu, Tung Nguyen, Yinlam Chow, Tuan Pham, Khoat Than, Mohammad Ghavamzadeh, Stefano Ermon, Hung H. Bui

Introduction

Controlling complex systems directly from high-dimensional raw inputs, such as pixel data from a camera feed, remains a significant challenge in robotics and reinforcement learning. Researchers have recently developed PC3 (Predictive Coding-Consistency-Curvature), a novel framework designed to tackle this issue. By replacing traditional, resource-heavy image decoders with an information-theoretic "predictive coding" approach, PC3 learns efficient latent representations that are easier to control and significantly faster to train than previous state-of-the-art methods.

The Problem with Decoders

Imagine programming a robot to balance a pole using only a raw video feed. This presents two massive hurdles: the "curse of dimensionality" (processing thousands of pixels per frame) and unknown system dynamics (understanding how motor torques affect those pixels).

The standard solution is the Learning Controllable Embedding (LCE) framework. LCE compresses high-dimensional pixels into a compact "latent space," learns the physics within that space, and plans movements accordingly. However, to ensure this compressed space accurately reflects the real world, almost all existing methods rely on a decoder—a large neural network tasked with reconstructing the next frame of video from the latent state.

Relying on decoders creates three major bottlenecks:

  1. Computational Waste: Decoders require massive parameter counts but are typically discarded once the robot actually begins planning and moving.
  2. Modeling Difficulty: Predicting the exact color of every pixel in a high-definition image is a vastly more complex task than simply learning the underlying dynamics of the system.
  3. Inaccuracy: If the decoder's reconstruction is even slightly off, the robot's "internal map" of the world becomes warped, leading to suboptimal or failed control strategies.

The PC3 Framework: Methods and Architecture

To overcome these limitations, the authors introduce PC3 (Predictive Coding, Consistency, and Curvature). The core innovation of PC3 is shifting the objective from reconstruction to prediction directly within the latent space.

Comparison of Next-Observation Prediction and Predictive Coding architectures.

The framework is built on four key pillars:

  • Predictive Coding: Instead of decoding a latent state back into an image, PC3 utilizes Contrastive Predictive Coding (CPC). The model learns to distinguish the "correct" next latent state from a batch of "wrong" (random) ones. This maximizes the mutual information between the current state and the future state, ensuring the representation captures meaningful dynamics without ever rendering a single pixel.
  • Consistency: The authors theoretically prove that CPC alone is insufficient; a model might learn a "cheating" representation that minimizes the contrastive loss but fails to capture real-world physics. To fix this, they introduce a consistency loss that forces the internal dynamics model to accurately predict how the latent state evolves over time.
  • Curvature: To facilitate easy control, the authors penalize high curvature in the latent dynamics. This ensures the "physics" of the latent space remain "flat" and smooth enough for fast, locally-linear controllers (like iterative Linear Quadratic Regulators, or iLQR) to function effectively.
  • Noise Injection: The researchers discovered that adding a small amount of Gaussian noise during training prevents the latent space from collapsing into a single point—a common failure mode in decoder-free architectures.

Key Results and Performance

The PC3 model was rigorously evaluated on four classic control benchmarks rendered as high-dimensional images: a Planar System, an Inverted Pendulum (both Balance and Swing-Up tasks), a Cartpole, and a complex 3-Link Manipulator.

PC3 demonstrated significant improvements over state-of-the-art baselines like PCC and SOLAR:

  • Superior Control Performance: On the challenging "Swing Up" task, PC3 achieved a 58.4% success rate, easily surpassing the previous best (SOLAR at 37.7%). On the highly complex "3-Link" robotic arm, PC3 reached a 42.4% success rate, while baseline methods struggled to break 15%.
  • Training Efficiency: By ditching the decoder, PC3 is vastly more parameter-efficient. It trained 1.85x faster than PCC and an impressive 52.8x faster than SOLAR.
  • Interpretability: Visualizations of the latent space revealed that PC3 learns much smoother, more intuitive "maps" of the environment compared to decoder-based methods, which frequently get distracted by irrelevant pixel-level details.

Limitations and Future Directions

While highly effective, PC3 has a few limitations. The framework is specifically tailored for locally-linear controllers. While powerful for many tasks, these controllers may struggle with systems exhibiting highly discontinuous physics, such as hard collisions. Additionally, the noise variance used to stabilize the latent space is currently a fixed hyperparameter; automating this tuning process could make the model more robust across diverse environments.

Ultimately, the paper proves that explicit next-observation prediction (decoding) is merely a proxy for minimizing predictive suboptimality. By addressing this directly, PC3 paves the way for more efficient control. Future work may extend these principles to more complex "latent overshooting" techniques or non-linear controllers.

Summary updated

BibTeX
@inproceedings{shu2020predictive,
  author = {Rui Shu and Tung Nguyen and Yinlam Chow and Tuan Pham and Khoat Than and Mohammad Ghavamzadeh and Stefano Ermon and Hung H. Bui},
  title = {{Predictive Coding for Locally-Linear Control}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=_SK9HDefTp1},
}
Figure