Predictive-State Decoders: Encoding the Future into Recurrent Networks

Arun Venkatraman, Nicholas Rhinehart, Wen Sun, Lerrel Pinto, Martial Hebert, Byron Boots, Kris M. Kitani, James Andrew Bagnell

Introduction

Recurrent Neural Networks (RNNs) are foundational tools for modeling sequential data, from robot trajectories to natural language. Their power lies in their internal state—a mathematical memory that summarizes past observations. However, RNNs often struggle to learn meaningful internal representations because their training signals can be indirect and diluted over long sequences.

This paper introduces Predictive-State Decoders (PSDs), a simple yet highly effective regularizer that forces RNNs to predict future observations. By adding this self-supervised objective, PSDs lead to faster convergence and superior performance across diverse domains, including probabilistic filtering, imitation learning, and reinforcement learning.

The Challenge with RNN Internal States

Standard RNN training relies on backpropagation through a "target task" loss, such as maximizing a reinforcement learning reward or minimizing a final classification error. This signal is often sparse and indirect. Consequently, the RNN might fail to capture the underlying physics or "latent state" of the system it is trying to model.

The authors identify two main hurdles in learning these representations:

  1. Non-convexity: The optimization landscape for recurrent networks is notoriously complex and difficult to navigate.
  2. Lack of Ground Truth: We rarely have access to the "true" underlying state of a system (e.g., the exact velocity and friction of a robot joint from a single blurry image). Without this ground truth, the network has no direct target to supervise its internal memory.

Methodology: Predictive-State Decoders

To overcome these challenges, the authors propose combining RNNs with insights from Predictive-State Representations (PSRs). In PSR literature, a system's state is defined entirely by its ability to predict future observations.

RNN architecture augmented with a Predictive-State Decoder (PSD) regularizer.

The PSD approach modifies the standard RNN architecture via a straightforward regularization technique:

  • The Architecture: A standard RNN (like an LSTM or GRU) is augmented with a small "decoder" module ($F$) attached to its internal hidden state ($h_t$).
  • The Objective: During training, this decoder is tasked with predicting a window of future observations ($x_{t+1}, x_{t+2}, \dots, x_{t+k}$).
  • The Loss Function: The total loss becomes the standard task loss ($\mathcal{L}$) plus a weighted "predictive-state loss" ($\mathcal{R}$). The final objective is $\mathcal{L} + \lambda\mathcal{R}$.

This acts as a form of multi-task learning. Even if the primary goal is to win a game or control a robot, the network is simultaneously learning to "understand" the environment by predicting what happens next. Because future observations are already present in the sequential training data, this dense supervision is essentially "free."

Experimental Domains

The authors evaluated PSDs across three distinct sequential modeling domains:

  1. Probabilistic Filtering: Predicting the next state in physical systems, including a Pendulum, a Helicopter (using noisy LQR data), and a Hopper (OpenAI simulation).
  2. Imitation Learning (IL): Teaching a model to mimic an expert in partially observable versions of CartPole and Acrobot from the OpenAI Gym.
  3. Reinforcement Learning (RL): Training agents in complex MuJoCo environments, including Swimmer, HalfCheetah, Hopper, and Walker2d.

Key Results and Insights

The addition of PSDs consistently outperformed baseline RNNs (LSTMs and GRUs) across all tested domains.

Observation loss over iterations for probabilistic filtering tasks.
  • Faster Convergence: In filtering tasks, models equipped with PSDs reached lower error rates in significantly fewer iterations compared to standard baselines.
  • Imitation Learning: On the CartPole task, PSDs achieved a 73% relative improvement over a baseline LSTM and a 42% improvement over a GRU.
  • Reinforcement Learning: Using the TRPO algorithm, the authors observed statistically significant gains in mean average returns. For instance, the PSD-augmented model achieved a 15.4% improvement on the Walker2d environment.
  • Robustness: PSDs generally reduced the variance in performance across different random seeds, leading to much more stable training dynamics.

The most profound insight from these results is that the future acts as a powerful proxy for state. You do not need to know the true latent variables to learn a good representation; if a network can accurately predict the future, its internal state must implicitly contain all necessary information about the present.

Limitations and Future Work

While highly effective, the PSD method does introduce new considerations:

  • Hyperparameter Tuning: The method requires tuning two new hyperparameters: $k$ (how far into the future to predict) and $\lambda$ (the weight of the prediction loss). While many settings yield improvements, peak performance is sensitive to these choices.
  • Featurization: The experiments largely used "identity" features (predicting raw observations). For highly complex visual environments (like raw pixels in Atari games), more sophisticated feature functions ($\phi$) might be required to make the prediction task computationally tractable.
  • Computational Cost: Calculating future statistics and running the decoder adds a slight computational burden during the training phase, though inference time remains completely unaffected since the decoder is discarded after training.

Summary updated

BibTeX
@inproceedings{venkatraman2017predictive,
  author = {Arun Venkatraman and Nicholas Rhinehart and Wen Sun and Lerrel Pinto and Martial Hebert and Byron Boots and Kris M. Kitani and James Andrew Bagnell},
  title = {{Predictive-State Decoders: Encoding the Future into Recurrent Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=SyWcmDZdbS},
}
Figure