Offline Policy Learning via Skill-step Abstraction for Long-horizon Goal-Conditioned Tasks

Donghoon Kim, Minjong Yoo, Honguk Woo

TL;DR

This paper introduces GLvSA (Goal-conditioned Learning via Skill-step Abstraction), a novel framework for training robots offline to achieve long-horizon goals, even when the target goals shift significantly from the training data. By iteratively generating "imaginary" trajectories in a skill-aligned latent space and using a modular policy hierarchy, GLvSA achieves state-of-the-art zero-shot generalization and highly efficient few-shot online adaptation.

What Problem Does This Paper Address?

Goal-Conditioned Reinforcement Learning (GCRL) aims to train agents to achieve arbitrary target states (goals). However, when tasks require long sequences of actions (long-horizon goals), rewards become incredibly sparse, making standard RL algorithms fail.

While skill-based RL mitigates this by extracting reusable behavioral patterns (skills) from offline datasets, it suffers from a major flaw: goal distribution shift. Because these skills are learned via imitation from a fixed dataset, the agent struggles to adapt when evaluated on new, unseen goals that lie outside the training distribution. This paper tackles how to build an offline GCRL agent that can flexibly generalize and adapt to novel long-horizon goals without requiring extensive online interaction.

Methods

The authors propose the GLvSA framework, which splits the problem into an offline training phase and an online adaptation phase.

Figure 1: GLvSA framework

1. Iterative Skill-Step Model Learning

Instead of just imitating the dataset, GLvSA learns a world model in a latent space aligned with temporally abstracted skills (sequences of actions over a horizon $H$).

  • Skill Acquisition: A VAE-based encoder-decoder maps sub-trajectories to skill embeddings ($z$).
  • Model Refinement & Rollouts: The framework learns both flat dynamics (predicting the next state embedding per timestep) and skill-step dynamics (predicting the state embedding $H$ steps ahead).
  • Model-guided Rollouts: To expand goal coverage, the system samples branching states from the dataset and uses the latent dynamics to dream up new imaginary trajectories. These are decoded back into raw states and actions and added back to the dataset, iteratively bridging disconnected trajectories.

2. Modular GC Policy Hierarchy

The high-level policy is decomposed into two distinct components:

  1. A skill-step goal generator ($f_\psi$), which predicts a near-term subgoal embedding ($h_{t+H}$) given the current state and the final long-horizon goal.
  2. An inverse skill-step dynamics module ($\mathcal{P}^{-1}_\theta$), which infers the required skill ($z$) to reach that subgoal.

A key innovation here is the cyclic consistency sanity check: a loss term ensuring that the subgoal generated by $f_\psi$ actually matches the state reached by executing the inferred skill through the dynamics model.

3. Parameter-Efficient Online Adaptation

When deployed in an environment with shifted goal distributions, the agent freezes the low-level skills and inverse dynamics. Only the lightweight skill-step goal generator ($f_\psi$) is fine-tuned via online RL, preventing catastrophic forgetting and drastically speeding up adaptation.

Datasets

The framework was evaluated using standard long-horizon benchmarks from the D4RL suite:

  • Maze Navigation (maze): The agent must navigate a complex maze to reach target coordinates.
  • Franka Kitchen Simulation (kitchen): A robotic arm manipulates multiple kitchen objects (e.g., opening a microwave, turning on a burner) to reach a desired multi-object configuration.

Both environments were tested under four levels of goal distribution shifts: None, Small, Medium, and Large.

Key Insights and Ideas

  • Bridging the Gaps via Latent Imagination: Standard offline skill learning is bounded by the exact trajectories in the dataset. By performing rollouts in a skill-aligned latent space, GLvSA effectively "stitches" distinct behaviors together, expanding the agent's known goal space without real-world risk.
  • Modularity Equals Efficiency: Splitting the policy into a goal generator and an inverse dynamics component means the agent doesn't need to re-learn how to execute actions when goals change; it only needs to re-learn where to aim next.
  • The Power of Cyclic Sanity Checks: Forcing the high-level policy to only generate subgoals that the low-level dynamics can actually execute prevents the agent from hallucinating unachievable paths.

Key Results

GLvSA significantly outperformed state-of-the-art baselines like GCSL, WGCSL, and SkiMo+GCSL in both zero-shot and few-shot settings.

Zero-Shot Performance

When evaluated immediately without any online fine-tuning under a Large goal distribution shift, GLvSA achieved massive performance gains:

Zero-shot evaluation performance table
  • Maze (Large Shift): GLvSA scored 66.7, compared to the best baseline (SkiMo+GCSL) at 32.5.
  • Kitchen (Large Shift): GLvSA scored 72.2, while SkiMo+GCSL scored 41.7.

This strong zero-shot capability is directly tied to the expanding goal coverage achieved during the iterative training phase:

Figure 4: Goal coverage expansion (visualized in T-SNE)

Few-Shot Adaptation

When allowed a small number of online interaction episodes (shots) to adapt to the Large shift:

  • With just 10 shots, GLvSA reached 74.1 in the Maze and 78.4 in the Kitchen, outperforming the most competitive baseline by margins of over 58 points.

Limitations and Future Work

The primary limitation acknowledged by the authors is the assumption that environment dynamics remain consistent between the offline dataset and the online adaptation phase (i.e., only the goal distribution shifts, not the physics or layout of the world).

As a next step, the authors plan to extend the skill-step model to handle more complex scenarios where both environment dynamics shifts (e.g., changed friction, broken joints) and goal distribution shifts occur concurrently.

Summary updated

BibTeX
@inproceedings{kim2024offline,
  author = {Donghoon Kim and Minjong Yoo and Honguk Woo},
  title = {{Offline Policy Learning via Skill-step Abstraction for Long-horizon Goal-Conditioned Tasks}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
}
Figure