Effect-Driven Skill Abstractions for Offline Reinforcement Learning
Authors: Burcu Kilic, David Drexel, Emre Ugur, Justus Piater
Organizations: Department of Computer Engineering, Bogazici University, Türkiye · Department of Computer Science, University of Innsbruck, Austria · Department of Computer Engineering, Middle East Technical University, Türkiye · Digital Science Center, University of Innsbruck, Austria
We seek to learn discrete skill abstractions to facilitate long-horizon, goal-conditioned reinforcement-learning (RL) tasks. Recent approaches have shown success by quantizing actions via clustering or reconstruction. However, these objectives lead to skills that are not directly related to what the current state affords or what the goal requires. Instead, we argue that goal-directed skills should be driven by how they affect the state of the agent. To realize this, we introduce a novel quantization method for action chunks that optimizes next-state predictions conditioned on the current state and action. This objective encourages skills to be distinguished by the future states they lead to, resulting in a vocabulary that spans diverse outcomes reachable from a given state. Our framework can easily be paired with common offline RL methods by replacing their continuous actor head with a discrete one that selects among the learned skills. We can execute these skills in the environment by converting them back to continuous actions using a trained low-level controller. Experiments on benchmark navigation and manipulation tasks largely show substantial and consistent improvements over both the continuous-actor baselines and reconstruction-based discretizations. Our project page can be found at: https://burcukilic.github.io/projects/effect-driven-skill-abstractions/.
Figures & tables
Figure 1: Three-stage training and evaluation overview of our proposed framework. Stage I : Action chunk quantization, optimized for predicting next-state features. Stage II : Learning to execute the skill codes. Stage III : Training a goal-conditioned discrete policy that produces skill codes. During evaluation, the high-level policy πZ produces discrete skill codes that are converted to continuous actions by the trained low-level controller and are executed in the environment.
Figure 2: Learned skills in the humanoidmaze-medium-navigate-v0 environment at five different states (black stars). Left: next-state predictions by the skills discovered at Stage I. Right: sample rollouts of the low-level controller trained at Stage II.
Figure 3: Displacement clusters in the offline dataset colored by skill code produced by the four quantization methods in Stage - I on antmaze-large-navigate (top) and humanoidmaze-medium-navigate (bottom). The baseline methods are Reconstruction-Based Quantization (RBQ), Full-State Prediction (FSP), and Single-Step Action Quantization (SSAQ), as detailed in the text. Each dot represents the displacement entailed by an action chunk at:t+L sampled from the offline dataset and is colored by the corresponding code k . Markers locate the centroids of all action-chunk samples mapped to the same k .
Environment
Ours
FSP
SSAQ
RBQ
antmaze-medium-navigate
72±2
27±3
10±1
21±13
antmaze-large-navigate
46±4
19±2
9±2
15±8
antmaze-giant-navigate
4±1
0±0
0±0
0±0
antmaze-medium-stitch
60±9
20±3
49±7
53±8
antmaze-large-stitch
16±2
10±0
11±3
12±5
antmaze-giant-stitch
0±0
0±0
0±0
0±0
Table 1: Success Rate ( % ) for trained policies that use different Stage I architectures: Ours, Full-State Prediction (FSP), Single-Step Action Quantization (SSAQ), and Reconstruction Based Quantization (RBQ). The runs are taken with GCBC for state-based and GCIQL for pixel-based tasks. The results report the mean and standard deviation of the success rates over 5 seeds. Bold values indicate statistically best or indifferent models (Welch’s t-test, p>0.05).
GCBC
GCIQL
GCIVL
QRL
Environment
Base
D-
Base
D-
Base
D-
Base
D-
pointmaze
medium-navigate
9±6
37±7
53±8
85±4
63±6
89±3
82±5
88±5
large-navigate
29±6
67±11
45±5
67±5
34±5
88±6
86±9
91±2
giant-navigate
1±2
7±6
0±0
78±7
0±0
82±7
68±7
75±1
medium-stitch
23±18
35±12
21±9
56±7
70±14
77±2
80±12
87±2
Table 2: Performance comparison across various environments. The results are reported as the mean and standard deviations of success rates over 8 seeds for state-based OGBench tasks and D4RL Kitchen, 4 seeds for pixel-based OGBench tasks, and the T-block’s maximum coverage of the goal pose in Push-T over 5 seeds. Bold values denote the statistically best or indifferent variant for each high-level policy (Welch’s t-test, p>0.05).
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 4: Environments used in our main experiments. (Top) PointMaze large, AntMaze giant, and HumanoidMaze medium [ 3 ] . (Bottom) Scene, Puzzle 4x4 [ 3 ] , Push-T [ 17 ] , and D4RL Kitchen [ 18 ] .
Environment
FSQ
VQ
pointmaze-medium-navigate
0.90±0.02
0.81±0.05
antmaze-medium-navigate
0.79±0.07
0.61±0.05
humanoidmaze-medium-navigate
0.85±0.01
0.67±0.01
Appendix
Table 3: Normalized Codebook Perplexity for FSQ and VQ (3 seeds)
Environment
Ours
State Conditioned Quantizer
pointmaze-medium-navigate
86±4
32±44
antmaze-medium-navigate
83±2
57±40
humanoidmaze-medium-navigate
39±2
10±17
Appendix
Table 4: Effect of giving state information to the quantizer alongside action chunk on three different maze tasks. We report Success Rate (%) of the trained GCIQL across 5 seeds.
Environment
K
Success Rate (%)
pointmaze-medium-navigate
8
31±15
16
37±8
32
38±13
antmaze-medium-navigate
16
75±1
32
72±2
64
65±5
Appendix
Table 5: Effect of codebook size K on the proposed framework. We report Success Rate (%) of the trained GCBC across 5 seeds. Bold indicates the value of K used in the main experiments.
K=16
K=32
K=64
L=40
35±3
36±5
37±2
L=80
37±3
39±2
40±4
L=120
31±4
35±2
37±4
Appendix
Table 6: Effect of codebook size K and chunk length L on the humanoidmaze-medium-navigate environment. We report Success Rate (%) of the trained GCIQL across 5 seeds. Bold indicates the value of configuration used in the main experiments.
Environment
D-GCIQL
D-QRL
HIQL
OTA
pointmaze-medium-navigate
85±4
88±5
79±5
86±2
pointmaze-large-navigate
67±5
91±2
58±5
85±5
antmaze-medium-navigate
84±3
90±2
96±1
96±1
antmaze-medium-stitch
55±6
69±5
94±1
93±1
humanoidmaze-medium-navigate
38±2
53±3
89±2
94±1
humanoidmaze-large-stitch
7±2
6±2
28±3
57±3
Appendix
Table 7: We report Success Rate (%) of the trained D-GCIQL (Ours), D-QRL (Ours), HIQL, and OTA across 8 seeds in state-based and 4 seeds in pixel-based tasks. Bold values indicate the statistically best or indifferent values (Welch’s t-test, p>0.05).
Figure 5: Learned skills in the pointmaze-large-navigate-v0 (top) and the antmaze-giant-navigate-v0 (bottom) environments at five different states (black stars). Left: next-state predictions by the skills discovered at Stage I. Right: sample rollouts of the low-level controller trained at Stage II.
Figure 6: Example of successful rollouts of the discrete (D-) variants on the Visual Scene (top row) and D4RL Kitchen (bottom row) tasks.
Figure 7: Example of successful rollouts of the discrete (D-) variants on pointmaze, antmaze, and humanoidmaze environments with different dataset types. The colors on the trajectory indicate different skill codes k∈{1,…,K} . Different tasks are the goals defined by the OGBench [ 3 ] benchmark.
A key challenge in scaling up Reinforcement Learning is generalizing learned behaviour. Without the ability to carry forward acquired knowledge an agent is doomed to learn each task from scratch. In this paper we develop a new formalism for transfer by virtue of state abstraction. Based on task-independent, compact observations (outcomes) of the environment, we introduce Outcome-Predictive State Representations (OPSRs), agent-centered and task-independent abstractions that are made up of predictions of outcomes. We show formally and empirically that they have the potential for optimal but limited transfer, then overcome this trade-off by introducing OPSR-based skills, i.e. abstract actions (based on options) that can be reused between tasks as a result of state abstraction. In a series of empirical studies, we learn OPSR-based skills from demonstrations and show how they speed up learning considerably in entirely new and unseen tasks without any pre-processing. We believe that the framework introduced in this work is a promising step towards transfer in RL in general, and towards transfer through combining state and action abstraction specifically.
Ruben Vereecken, Luke Dickens, Alessandra Russo
Computer Science, Imperial College, UK · Information Studies, UCL, UK
Hierarchical Reinforcement Learning (HRL) promises to solve long-horizon Reinforcement Learning (RL) tasks more efficiently than non-hierarchical counterparts by discovering and reusing temporally-extended skills. However, obtaining skills that are actually reusable remains an open challenge. Towards this end, we focus on abstractions that exploit the intuition of local dynamics: local transitions in different global contexts require similar kinds of action sequences. By aligning these contexts with the action sequences they require, we are able to learn which skills to reuse and where to reuse them. In principle, this information should benefit many HRL algorithms, where high-level policies have to reason about the low-level skills they use. The resulting algorithm CARL (Contrastive Action-based Representations for Reusable Local Control) shows both qualitative clustering of meaningful skills in complex humanoid environments and improved downstream performance on the OGBench benchmark when integrated with HIQL.
Sarthak Dayal, Abhinav Peri, Carl Qi +4
Department of Computer Science University of Texas at Austin · UT Austin · OpenAI
Recent studies investigate how to leverage pre-collected datasets to improve the policy performance and sample efficiency of RL. One promising approach to achieve this goal is to employ a two-stage strategy: In the first stage, diverse skills are extracted as a low-level policy from a given dataset, and a high-level policy is trained to solve a specific task in the second stage. Typically, extraction of the low-level policy is performed based on unsupervised learning such as trajectory VAE. However, a limitation of this approach is that the quality of the low-level policy highly depends on the quality of the dataset. To address this issue, we introduce QDOS (Quality-Diversity Offline Skill learning), a unified pipeline for robust offline-to-online learning. Our approach incorporates an Advantage-Weighted Quality-Diversity pretraining objective, which weights the skill extraction and diversity objectives by the estimated advantage of each trajectory segment. This approach allows the model to extract diverse and high-value skills. By providing robust and task-relevant skill representations, QDOS significantly improves the quality of the embedded skill space used by the low-level policy. We further integrate this with a dual dataset reuse strategy, where offline data is used both for skill pretraining and for populating the online replay buffer via pseudo-labeling. Experiments demonstrate that QDOS significantly outperforms strong baselines in structured manipulation tasks and unstructured locomotion tasks, confirming its ability to accelerate exploration and improve final returns in challenging sparse-reward domains.
Tanachai Anakewat, Takayuki Osa, Tatsuya Harada
The University of Tokyo · RIKEN Center for Advanced Intelligence Project