Exploiting Local Dynamics Regularity for Reusable Skills in Offline Hierarchical RL

Sarthak Dayal, Abhinav Peri, Carl Qi, Claas Voelcker, Alexander Levine, Caleb Chuck, Amy ZhangarXiv 2026

TL;DR

The paper introduces CARL (Contrastive Action-based Representations for Reusable Local Control), a method that extracts reusable low-level skills from offline datasets by exploiting the regularity of local dynamics. By contrastively aligning state-goal pairs with the short-horizon action sequences required to bridge them, CARL enables hierarchical reinforcement learning (HRL) agents to seamlessly reuse skills across different global contexts, significantly boosting performance on complex, long-horizon tasks.

What Problem Does This Paper Address?

Hierarchical Reinforcement Learning (HRL) splits complex tasks into a high-level policy (which sets abstract subgoals) and a low-level policy (which executes specific actions to reach those subgoals). While promising in theory, standard HRL suffers from severe training instability because the low-level policy is constantly changing, shifting the dynamics underneath the high-level policy.

To bypass this, modern offline HRL methods decouple the two by training a fixed, goal-conditioned low-level policy. However, this introduces a new flaw: the low-level policy struggles to recognize when a behavior learned in one part of the environment can be reused elsewhere. For instance, a humanoid robot learning to "stand up" in the top-left corner of a maze shouldn't have to relearn the entire motor sequence from scratch just because it is now sitting in the bottom-right corner. Current methods fail to abstract away this global context, leading to poor skill reuse and generalization.

Methods

The authors introduce CARL to bridge this gap. The core idea is grounded in local dynamics: many distinct regions of an environment's state space share identical local physics and transition structures.

Instead of explicitly modeling complex transition dynamics, CARL uses a clever proxy called behavioral similarity. If two different state-goal pairs $(s_1, g_1)$ and $(s_2, g_2)$ can be solved by the exact same $k$-step action sequence, they are behaviorally similar.

CARL learns this similarity using a contrastive learning objective (InfoNCE loss):

  1. It encodes a state-goal pair using an encoder $\phi(s, g)$.
  2. It encodes the corresponding $k$-step action sequence using an encoder $\psi(a_k)$.
  3. The objective maximizes the dot product between matching state-goal pairs and action sequences while minimizing it for mismatched pairs.

This shapes a latent geometry where subgoals requiring similar physical skills cluster tightly together, completely independent of their global coordinates. CARL can be integrated directly into existing subgoal-based offline HRL frameworks (like HIQL or HGCBC) by co-training this representation with the standard RL value and policy losses.

Figure 1: Learning state–goal representations for skill reuse. Humanoid poses left-to-right in each pane reflect progress in time. CARL learns a representation ϕ(s, g) that clusters state–goal pairs if they admit the same kinds of k-step action sequences. CARL clusters “walking backward" and “standing up" behaviors for humanoids situated in globally different parts of the maze.

Datasets

The authors evaluate CARL across two main setups:

  • 5 Rooms Diagnostic Gridworld: A custom toy environment consisting of five identical rooms differing only in their global $(x, y)$ coordinates, designed specifically to test zero-shot skill generalization.
  • OGBench: A standard, comprehensive benchmark for offline goal-conditioned RL. This includes:
  • Locomotion tasks: Navigating mazes using different embodiments (pointmaze, antmaze, humanoidmaze, and antsoccer).
  • Manipulation tasks: Robotic arm control involving object interaction (cube stacking, combinatorial puzzle solving, and a multi-stage scene task).
Figure 2: Examples of environments used to benchmark CARL, including a diagnostic grid world as well as as environments from the OGBench suite.

Key Insights and Ideas

  • Action Sequences as a "Footprint": Rather than trying to compute complex bisimulation metrics over the entire state space, the paper realizes that near-expert data already contains the "footprint" of local dynamics via repeated action sequences.
  • Co-training vs. Pre-training: Simply pre-training the skill representation and freezing it isn't enough. Jointly co-training CARL’s contrastive loss alongside the HRL algorithm's policy and value losses yields massive performance gains. This allows the value function itself to exploit the simplified, skill-reusing latent space.
  • Synergy with Advantage Weighted Regression (AWR): CARL provides a massive boost to algorithms like HIQL (which uses AWR) because CARL discovers where a skill can be reused, while AWR filters out suboptimal actions to discover which skills are optimal for the global task.

Key Results

When integrated with existing HRL baselines, CARL demonstrates state-of-the-art performance improvements on OGBench:

  • HIQL + CARL achieved a 20/22 win rate on state-based tasks and a 13/14 win rate on pixel-based (image) tasks compared to standard HIQL.
  • HGCBC + CARL achieved a perfect 21/21 win rate against standard HGCBC on state-based tasks.
  • Substantial Performance Leaps: On long-horizon tasks, the improvements were stark. For example, HIQL+CARL improved success rates by over 10% on giant mazes, 17% on cube manipulation, 28% on puzzle environments, and 30% on the multi-stage scene task.

Qualitative UMAP visualizations confirmed that CARL successfully groups cardinal directions of motion and complex humanoid behaviors (like walking backward) into clean, disjoint clusters, whereas baseline representation methods produce loose, overlapping blobs.

Limitations and Future Work

  • Fixed Horizon Dependency ($k$): The definition of a skill in CARL relies heavily on a manually tuned, fixed time horizon $k$. The optimal $k$ varies by environment. Future work will focus on automatically discovering local dynamics across multiple, flexible horizons.
  • Dataset Coverage Sensitivity: Because CARL extracts skills directly from data, it is sensitive to dataset quality. If the offline dataset lacks diverse behaviors or has highly sparse coverage, the representation can collapse.
  • High-Level Bottlenecks: While CARL optimizes low-level skill reuse, the high-level policy can still be a bottleneck for planning and exploration. Developing complementary abstract representations for high-level decision-making remains an open challenge.

Summary updated

BibTeX
@misc{dayal2026exploiting,
  author = {Sarthak Dayal and Abhinav Peri and Carl Qi and Claas Voelcker and Alexander Levine and Caleb Chuck and Amy Zhang},
  title = {{Exploiting Local Dynamics Regularity for Reusable Skills in Offline Hierarchical RL}},
  year = {2026},
  eprint = {2605.26371},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.26371},
}
Figure