Pages and contents
Pages
- Non-Generative World Model Research
- Literature Review
- Literature Notes
- Attention
- Memory
- Planning
- Reviews
- Reinforcement Learning
- World Model Papers
- Biological
- World Models
- Representation
- Partial Homomorphisms
- DeepMDP
- Temporal Abstraction
- Unsupervised Causal Abstractions
- Approximate Equivariance
- OPAL
- Object Learning
- Training
- Template
- Important Concepts
- Models
- Resources
OPAL
Field | Value | |
|---|---|---|
| ⋮⋮ | Authors | Ajay, Kumar et. al. |
| ⋮⋮ | Year | 2021 |
| ⋮⋮ | Link / arXiv | https://arxiv.org/pdf/2010.13611 |
| ⋮⋮ | Code | |
| ⋮⋮ | My relevance (1-5) | 4 |
| ⋮⋮ | Tags | #rl #abstraction |
Our main insight is that, when presented with offline data composed of a variety of behaviors, an effective way to leverage this data is to extract a continuous space of recurring and temporally extended primitive behaviors before using these primitives for downstream task learning. Primitives extracted in this way serve two purposes: they delineate the behaviors that are supported by the data from those that are not, making them useful for avoiding distributional shift in offline RL; and they provide a degree of temporal abstraction, which reduces the effective horizon yielding better learning in theory, and improved offline RL in practice.
[image: 2026-08-11_14-40-01.png]
Method
Let a trajectory be
The idea is approximately where many similar trajectories can potentially be represented by similar values of . The learned primitive can then be executed through a policy . conditions a policy that chooses actions depending on the current state.
The paper optimizes
subject to
Encoder
The encoder sees the entire trajectory and outputs a distribution over latent primitive . Conceptually, it maps trajectories to what abstract behavior was being performed. For example, many different trajectories might encode to latent representations corresponding approximately to
Primitive Policy / Decoder
Given the current state and primitive , the decoder predicts which action should occur. The term
is the negative log-likelihood of the action actually observed in the dataset. Therefore
asks: If is supposed to summarize this trajectory, can plus the current state reproduce the actions that generated it? Minimizing this forces to retain information about the behavioral structure of the trajectory.
Primitive Prior
The prior only sees the initial state . It tries to predict which primitives are reasonable from that state
This is important because during downstream RL we do not know the future trajectory yet, so we cannot use Instead, the agent can sample or choose primitives from
KL Constraint
The KL constraint is
Without it, the encoder could encode arbitrary details of the entire trajectory into . That would reconstruct the actions well, but would not necessarily produce a reusable primitive. Instead, OPAL forces
The encoder knows the entire trajectory, while the prior only knows its starting state. Therefore is pressured to capture information that is both: 1. useful for reproducing the behavior, and 2. reasonably predictable/applicable from the initial state. This acts as an information bottleneck.
Overview
The complete process is and then At the same time, must approximately agree with the trajectory encoder. So the model is trying to discover a latent variable that is able to represent many behaviors under matching conditions. For example, many trajectories such as move hand left, open hand, close fingers, move hand right might potentially share an abstraction like “pick up object.” Importantly, does not need to specify the exact movements. The primitive policy determines the appropriate low-level action given the current situation.
This is similar to a conditional VAE. The reconstruction term asks if contains enough information to reproduce a behavior while the KL constraint asks if can represent a compressed primitive from where the behavior began. Together they encourage behavioral abstractions rather than simply memorizing every trajectory.