SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.11949 · NeurIPS · 2023

HIQL: Offline Goal-Conditioned RL with Latent States as Actions

Sergey Levine, Benjamin Eysenbach, Dibya Ghosh, Seohong Park

arXiv · PDF · Open in the Atlas

Code that ran

8 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 2 failures of our instrument; 9 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2307.11949.json · badge: /api/ran/2307.11949.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
seohongpark/hiql canonical (classifier label)
classifier basis: census
7 ran · 9 no recorded run
seohongpark/HIQL canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_high_actor_loss Ran
ran; our contract draft was wrong, not the code
seohongpark/hiql/src/agents/hiql.py
code served (permissive licence) · get_code("6ce42ee5c0d1becc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax
import jax.numpy as jnp
import numpy as np
from typing import NamedTuple

class MockDistribution:
    def __init__(self, mean, scale):
        self.mean = mean
        self.scale_diag = scale
    
    def log_prob(self, x):
        # Simple Gaussian log_prob approximation
        return -0.5 * jnp.sum((x - self.mean) ** 2) / jnp.mean(self.scale_diag ** 2)
    
    def mode(self):
        return self.mean


class MockNetwork:
    def __call__(self, observations=None, high_goals=None, high_targets=None, 
                 targets=None, bases=None, state_rep_grad=False, goal_rep_grad=False, 
                 method=None, params=None):
        if method == 'value':
            # Return two value estimates
            v1 = jnp.ones((2, 1)) * 0.5
            v2 = jnp.ones((2, 1)) * 0.6
            return v1, v2
        elif method == 'high_actor':
            # Return a distribution-like object
            mean = jnp.zeros((2, 4))
            scale = jnp.ones((2, 4)) * 0.1
            return MockDistribution(mean, scale)
        elif method == 'value_goal_encoder':
            # Return encoded goal representation
            return jnp.zeros((2, 4))
        return jnp.zeros((2, 4))


class MockAgent:
    def __init__(self):
        self.network = MockNetwork()
        self.config = {
            'high_temperature': 1.0,
            'use_rep': False
        }


# Create the agent
agent = MockAgent()

# Create batch with required keys
batch = {
    'observations': jnp.ones((2, 4)) * 0.1,
    'high_goals': jnp.ones((2, 4)) * 0.2,
    'high_targets': jnp.ones((2, 4)) * 0.3,
}

# Create network_params (can be empty or minimal)
network_params = {}

ARGS = {
    'agent': agent,
    'batch': batch,
    'network_params': network_params
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
expectile_loss Ran
ran, violated the contract we drafted
seohongpark/hiql/src/agents/hiql.py
pointer only (licence: MIT); the stored copy get_code serves, from kvfrans/fre, is pointer only (licence: NONE) · get_code("33d24c59c871db71")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kvfrans/fre, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_meta Ran
ran; our contract draft was wrong, not the code
seohongpark/hiql/calvin/setup_local.py
code served (permissive licence) · get_code("bfa59d92ee267142")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

# The function find_meta takes two parameters:
# 1. _meta: a string containing metadata
# 2. string: a string to search for in the metadata

# Based on the function body:
# - _meta is searched using re.search with a regex pattern
# - string is used to construct a regex pattern like '^{string}\\s*=\\s*"(.*)"'
# - The function expects to find a line matching the pattern '__version__ = "1.0.0"' format

# Create a valid _meta string that contains version information
_meta_content = '''
"""CALVIN Agent module"""
__version__ = "1.0.0"
__author__ = "Test Author"
'''

# Create a search string
search_string = "__version__"

ARGS = {
    "_meta": _meta_content,
    "string": search_string
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_canvas_image Ran
ran, honoured the contract we drafted
seohongpark/hiql/src/d4rl_ant.py
pointer only (licence: MIT); the stored copy get_code serves, from seohongpark/HILP, is pointer only (licence: NONE) · get_code("2d17f9689108389d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from seohongpark/HILP, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_normalization Ran
ran, honoured the contract we drafted
seohongpark/hiql/src/d4rl_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from seohongpark/HILP, is pointer only (licence: NONE) · get_code("e60bfdd0574ddc5f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from seohongpark/HILP, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_multi_gpu_training Ran
ran, violated the contract we drafted
seohongpark/HIQL/calvin/calvin_models/calvin_agent/training.py
code served (permissive licence) · get_code("5bc947886e7f988c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from omegaconf import OmegaConf, ListConfig

# Test case 1: int > 1 (multi-GPU)
gpus_int_multi = 4

# Test case 2: int == -1 (all GPUs)
gpus_int_all = -1

# Test case 3: int == 1 (single GPU)
gpus_int_single = 1

# Test case 4: string with length > 1 (multi-GPU)
gpus_str_multi = "0,1,2"

# Test case 5: string with length == 1 (single GPU)
gpus_str_single = "0"

# Test case 6: ListConfig with length > 1 (multi-GPU)
gpus_listconfig_multi = OmegaConf.create([0, 1, 2])

# Test case 7: ListConfig with length == 1 (single GPU)
gpus_listconfig_single = OmegaConf.create([0])

# We'll use one of these for the ARGS dict
ARGS = {
    "gpus": gpus_int_multi
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
omegaconf — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
most_squarelike Ran
ran, honoured the contract we drafted
seohongpark/hiql/src/viz_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from seohongpark/HILP, is pointer only (licence: NONE) · get_code("fd2c92d2074f0195")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from seohongpark/HILP, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

valid_goal_sampler Ran
ran, honoured the contract we drafted
seohongpark/hiql/src/d4rl_ant.py
pointer only (licence: MIT); the stored copy get_code serves, from seohongpark/HILP, is pointer only (licence: NONE) · get_code("a5514c312d961e08")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from seohongpark/HILP, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_actor_loss Not yet run
unverified (harvested, no recorded run)
seohongpark/hiql/src/agents/hiql.py
code served (permissive licence) · get_code("77ee8e1bcb496897")
How it ran

no invocation recorded.

ensemblize Not yet run
unverified (harvested, no recorded run)
seohongpark/hiql/jaxrl_m/networks.py
pointer only (licence: MIT); the stored copy get_code serves, from seohongpark/HILP, is pointer only (licence: NONE) · get_code("7f174e0d2fe49c08")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from seohongpark/HILP, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

interp2d Not yet run
unverified (harvested, no recorded run)
seohongpark/hiql/src/utils.py
code served (permissive licence) · get_code("aa92173113012077")
How it ran

no invocation recorded.

make_visual Not yet run
unverified (harvested, no recorded run)
seohongpark/hiql/src/viz_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from seohongpark/HILP, is pointer only (licence: NONE) · get_code("9e273495210cbc4c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from seohongpark/HILP, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

make_visual_no_image Not yet run
unverified (harvested, no recorded run)
seohongpark/hiql/src/viz_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from seohongpark/HILP, is pointer only (licence: NONE) · get_code("8bc4244b8915e237")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from seohongpark/HILP, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

prepare_video Not yet run
unverified (harvested, no recorded run)
seohongpark/hiql/src/utils.py
code served (permissive licence) · get_code("593372873bfa1f9c")
How it ran

no invocation recorded.

save_video Not yet run
unverified (harvested, no recorded run)
seohongpark/hiql/src/utils.py
code served (permissive licence) · get_code("2d208c5ae7bb63f6")
How it ran

no invocation recorded.

visualize_gcvalues Not yet run
unverified (harvested, no recorded run)
seohongpark/hiql/src/roomworld_utils.py
code served (permissive licence) · get_code("7bc5beaaf5ef3e71")
How it ran

no invocation recorded.

visualize_trajectories Not yet run
unverified (harvested, no recorded run)
seohongpark/hiql/src/roomworld_utils.py
code served (permissive licence) · get_code("220888da8c3ceab5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 10 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 10 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
ensemblize 6 other papers
6 later · 2 only as an assembly brick
2402.15567 (2024-02)
Foundation Policies with Hilbert Representations
2402.17135 (2024-02)
Unsupervised Zero-Shot Reinforcement Learning via Functional Reward Encodings
2406.09329 (2024-06)
Is Value Learning Really the Main Bottleneck in Offline RL?
and 3 more not named here
get_canvas_image 4 other papers
1 dated earlier, 3 later
2304.04782 (2023-04)
Reinforcement Learning from Passive Data via Latent Intentions
2402.15567 (2024-02)
Foundation Policies with Hilbert Representations
2402.17135 (2024-02)
Unsupervised Zero-Shot Reinforcement Learning via Functional Reward Encodings
and 1 more not named here
get_normalization 3 other papers
1 dated earlier, 2 later
2304.04782 (2023-04)
Reinforcement Learning from Passive Data via Latent Intentions
2402.15567 (2024-02)
Foundation Policies with Hilbert Representations
2510.15382 (2025-10)
Towards Robust Zero-Shot Reinforcement Learning
valid_goal_sampler 3 other papers
1 dated earlier, 2 later
2304.04782 (2023-04)
Reinforcement Learning from Passive Data via Latent Intentions
2402.15567 (2024-02)
Foundation Policies with Hilbert Representations
2510.15382 (2025-10)
Towards Robust Zero-Shot Reinforcement Learning
is_multi_gpu_training 2 other papers
1 dated earlier, 1 later
2210.01911 (2022-10)
Grounding Language with Visual Affordances over Unstructured Data
2407.05996 (2024-07)
Multimodal Diffusion Transformer: Learning Versatile Behavior from Multimodal Goals
make_visual 2 other papers
2 later
2402.15567 (2024-02)
Foundation Policies with Hilbert Representations
2510.15382 (2025-10)
Towards Robust Zero-Shot Reinforcement Learning
make_visual_no_image 2 other papers
2 later
2402.15567 (2024-02)
Foundation Policies with Hilbert Representations
2510.15382 (2025-10)
Towards Robust Zero-Shot Reinforcement Learning
most_squarelike 2 other papers
2 later
2402.15567 (2024-02)
Foundation Policies with Hilbert Representations
2510.15382 (2025-10)
Towards Robust Zero-Shot Reinforcement Learning
save_video 2 other papers
2 later
2402.15567 (2024-02)
Foundation Policies with Hilbert Representations
2510.15382 (2025-10)
Towards Robust Zero-Shot Reinforcement Learning
expectile_loss 1 other paper
1 later
2402.17135 (2024-02)
Unsupervised Zero-Shot Reinforcement Learning via Functional Reward Encodings

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Unsupervised pre-training has recently become the bedrock for computer vision and natural language processing. In reinforcement learning (RL), goal-conditioned RL can potentially provide an analogous self-supervised approach for making use of large quantities of unlabeled (reward-free) data. However, building effective algorithms for goal-conditioned RL that can learn directly from diverse offline data is challenging, because it is hard to accurately estimate the exact value function for faraway goals. Nonetheless, goal-reaching problems exhibit structure, such that reaching distant goals entails first passing through closer subgoals. This structure can be very useful, as assessing the quality of actions for nearby goals is typically easier than for more distant goals. Based on this idea, we propose a hierarchical algorithm for goal-conditioned RL from offline data. Using one action-free value function, we learn two policies that allow us to exploit this structure: a high-level policy that treats states as actions and predicts (a latent representation of) a subgoal and a low-level policy that predicts the action for reaching this subgoal. Through analysis and didactic examples, we show how this hierarchical decomposition makes our method robust to noise in the estimated value function. We then apply our method to offline goal-reaching benchmarks, showing that our method can solve long-horizon tasks that stymie prior methods, can scale to high-dimensional image observations, and can readily make use of action-free data. Our code is available at https://seohong.me/projects/hiql/ Our method draws on concepts from offline RL [54,55],44,79], hierarchical RL [6,62,77,85,86,96], and action-free RL [7,12,34,80,88,105], providing a way to effectively train general-purpose goal-conditioned policies from previously collected offline data. Prior work on goal-conditioned RL has introduced algorithms based on a variety of techniques, such as hindsight relabeling [4

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2307.11949")
get_code_for_paper("2307.11949")
have("2307.11949")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2307.11949.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2307.11949.svg)](https://syntology.ai/paper/2307.11949)

Connect an agent — have() is free.