Behavior Prior Representation learning for Offline Reinforcement Learning

Hongyu Zang, Xin Li, Jie Yu, Chen Liu, Riashat Islam, Remi Tachet des Combes, Romain Laroche

TL;DR

Researchers have found a surprisingly simple way to supercharge Offline Reinforcement Learning: start by teaching the agent to mimic the dataset's actions. By pre-training a state representation using a modified version of Behavior Cloning (BPR), agents can learn much more effectively from fixed datasets, especially when dealing with complex visual inputs or noisy environments.

What Problem Does This Paper Address?

Reinforcement Learning (RL) usually involves an agent learning through trial and error in a live environment. Offline RL, however, is like learning to drive by only watching recorded dashcam footage—the agent cannot interact with the world during training. This is vital for fields like healthcare or autonomous driving where "trial and error" is too dangerous.

Offline RL faces two major hurdles:

  1. The High-Dimensional Curse: Learning directly from raw pixels or complex sensor data is incredibly difficult when you cannot explore the environment to see what matters.
  2. Implicit Under-parameterization: Even with powerful neural networks, the "value functions" (which estimate how good a state is) often collapse into low-rank, simplistic patterns. This prevents the agent from capturing the true complexity of the task.

While many researchers try to solve this with complex "self-supervised" tasks (like predicting the next frame of a video), this paper asks: Can we just use the behavior already present in the data?

Methods: Behavior Prior Representation (BPR)

The authors introduce Behavior Prior Representation (BPR), a simple yet highly effective two-stage approach to representation learning.

Comparison of standard Behavior Cloning and the proposed Behavioral Prior Representation (BPR) method.
  • Stage 1 (Representation Learning): The agent trains an encoder to map observations (like images) into a low-dimensional vector. The goal is simple: use that vector to predict the action that was actually taken in the dataset. Crucially, they normalize both the predicted and actual actions onto a unit sphere (maximizing cosine similarity). This forces the encoder to ignore "noise" and focus on the features that drive behavior.
  • Stage 2 (Policy Training): Once the encoder is trained, it is frozen. A standard Offline RL algorithm (like CQL or TD3+BC) is then trained on top of these fixed features.

By decoupling the "feature learning" from the "value learning," the authors prevent the value network from over-simplifying the world too early.

Key Insights and Ideas

  • The Behavior is the Signal: Even if the dataset was collected by a mediocre agent, the way that agent reacts to the environment contains a massive amount of information about which parts of the state are important.
  • Normalization Matters: Projecting actions onto a unit sphere (the "unit hypersphere") is a key trick. It prevents the model from obsessing over the magnitude of actions and focuses it on the intent or direction of the behavior.
  • Boosting "Effective Dimension": The authors used a metric called "Effective Dimension" to show that BPR prevents the neural network's features from collapsing. By pre-training, the value network is forced to use a richer set of features, leading to better decision-making.
  • Efficiency through Simplicity: Unlike other popular representation methods that require complex transformers or predicting future frames, BPR is significantly faster to train—up to 2.5x faster than the most competitive baselines.

Key Results

The authors put BPR to the test across several rigorous benchmarks, including D4RL (MuJoCo robot simulations), V-D4RL (visual versions), and the DeepMind Control (DMC) Suite.

Learning curves demonstrating that BPR pre-training significantly accelerates and improves the performance of standard offline RL algorithms.
  • State-of-the-Art Performance: When added to existing algorithms like CQL, TD3+BC, or EDAC, BPR consistently improved scores across D4RL tasks.
  • Faster Convergence: As seen in the learning curves, BPR agents often reached peak performance much earlier in the training process compared to agents learning from raw inputs.
  • Visual Robustness: In "Distractor" stress tests (where the background of the simulation is filled with distracting videos), standard agents failed. BPR agents remained stable, proving the encoder had learned to focus only on the robot and its immediate task.
  • Statistically Significant Gains: In a head-to-head comparison of 16 different tasks, BPR's normalized scores (IQM) significantly outperformed other popular methods like Fourier features or Contrastive learning.

Limitations and Future Work

The primary limitation is the "Informativeness" of the Behavior Policy. If the dataset consists of purely random actions (like a robot twitching aimlessly), BPR has no "prior" to learn from. The authors show that in these cases, the method doesn't provide much benefit.

Future work could involve finding ways to combine BPR with other self-supervised tasks to handle those "random data" scenarios. Additionally, while BPR is robust to visual noise, it still struggles when the evaluation environment is drastically different from the training data (extreme distribution shift). Exploring how to make these behavior-based features generalize even further is the next frontier.

Summary updated

BibTeX
@inproceedings{zang2023behavior,
  author = {Hongyu Zang and Xin Li and Jie Yu and Chen Liu and Riashat Islam and Remi Tachet des Combes and Romain Laroche},
  title = {{Behavior Prior Representation learning for Offline Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=hQ4K9Bf4G2B},
}
Figure