SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2109.05490 · ICLR · 2022

HyAR: Addressing Discrete-Continuous Action Reinforcement Learning via Hybrid Action Representation

Hongyao Tang, Jianye Hao, Zhaopeng Meng, Boyan Li, Yan Zheng, Pengyi Li, Zhen Wang, Li Wang

arXiv · PDF · Open in the Atlas

Code that ran

6 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (6 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/2109.05490.json · badge: /api/ran/2109.05490.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
cycraig/MP-DQN community
Papers with Code archive
6 ran · 3 no recorded run
FunctionStatusWhere it lives
Agent Ran
ran on a synthesized input · constructed an object; no result was computed
cycraig/MP-DQN/agents/pdqn.py
code served (permissive licence) · get_code("cc8c1a2169afb326")
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 an instance of its own class, Agent: the run constructed the object and did not call it, so no result was computed. 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 torch
import numpy as np
from gym import spaces

torch.manual_seed(0)

# Create stand-in space objects that mimic gym.Space behavior
class MockSpace:
    def __init__(self, shape, dtype=np.float32):
        self.shape = shape
        self.dtype = dtype
    
    def sample(self):
        return np.zeros(self.shape, dtype=self.dtype)

# Define observation and action spaces
observation_space = MockSpace(shape=(4,), dtype=np.float32)
action_space = MockSpace(shape=(3,), dtype=np.int64)

ARGS = {
    'observation_space': observation_space,
    'action_space': action_space,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
gym, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Agent — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Agent 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
Memory Ran
ran on a synthesized input · constructed an object; no result was computed
cycraig/MP-DQN/agents/pdqn.py
code served (permissive licence) · get_code("5c0ed95b8ea1a2ee")
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 an instance of its own class, Memory: the run constructed the object and did not call it, so no result was computed. 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 numpy as np

ARGS = {
    'limit': 100,
    'observation_shape': (4,),
    'action_shape': (3,),
    'next_actions': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Memory — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Memory 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
OrnsteinUhlenbeckActionNoise Ran
ran on a synthesized input · constructed an object; no result was computed
cycraig/MP-DQN/agents/pdqn.py
code served (permissive licence) · get_code("c78b71fa01da6fe4")
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 an instance of its own class, OrnsteinUhlenbeckActionNoise: the run constructed the object and did not call it, so no result was computed. 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 numpy as np

ARGS = {
    "action_dim": 4,
    "mu": 0,
    "theta": 0.15,
    "sigma": 0.2,
    "random_machine": np.random
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type OrnsteinUhlenbeckActionNoise — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a OrnsteinUhlenbeckActionNoise 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
ParamActor Ran
ran on a synthesized input · constructed an object; no result was computed
cycraig/MP-DQN/agents/pdqn.py
code served (permissive licence) · get_code("51ae94deb30e2669")
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 an instance of its own class, ParamActor: the run constructed the object and did not call it, so no result was computed. 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Define the arguments dict for ParamActor
ARGS = {
    'state_size': 4,
    'action_size': 2,
    'action_parameter_size': 3,
    'hidden_layers': [8, 6],
    'squashing_function': False,
    'output_layer_init_std': None,
    'init_type': 'kaiming',
    'activation': 'relu',
    'init_std': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ParamActor — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ParamActor 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
QActor Ran
ran on a synthesized input · constructed an object; no result was computed
cycraig/MP-DQN/agents/pdqn.py
code served (permissive licence) · get_code("d7c857e61b5c6f8d")
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 an instance of its own class, QActor: the run constructed the object and did not call it, so no result was computed. 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 torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'state_size': 4,
    'action_size': 3,
    'action_parameter_size': 5,
    'hidden_layers': (100, 64),
    'action_input_layer': 0,
    'output_layer_init_std': 0.01,
    'activation': 'relu',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type QActor — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a QActor 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
RingBuffer Ran
ran on a synthesized input · constructed an object; no result was computed
cycraig/MP-DQN/agents/pdqn.py
code served (permissive licence) · get_code("5731e9a2d6b0a167")
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 an instance of its own class, RingBuffer: the run constructed the object and did not call it, so no result was computed. 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 numpy as np

ARGS = {
    'maxlen': 10,
    'shape': (4, 3),
    'dtype': 'float32'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type RingBuffer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RingBuffer 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
PDQNAgent Not yet run
unverified (harvested, no recorded run)
cycraig/MP-DQN/agents/pdqn.py
code served (permissive licence) · get_code("2cfe91624780b68c")
How it ran

no invocation recorded.

hard_update_target_network Not yet run
unverified (harvested, no recorded run)
cycraig/MP-DQN/agents/pdqn.py
code served (permissive licence) · get_code("5cbb6ae99ea39c16")
How it ran

no invocation recorded.

soft_update_target_network Not yet run
unverified (harvested, no recorded run)
cycraig/MP-DQN/agents/pdqn.py
code served (permissive licence) · get_code("15dd8f092a526ade")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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.

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-22.

Repositories linked to this paper

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

Abstract

Discrete-continuous hybrid action space is a natural setting in many practical problems, such as robot control and game AI. However, most previous Reinforcement Learning (RL) works only demonstrate the success in controlling with either discrete or continuous action space, while seldom take into account the hybrid action space. One naive way to address hybrid action RL is to convert the hybrid action space into a unified homogeneous action space by discretization or continualization, so that conventional RL algorithms can be applied. However, this ignores the underlying structure of hybrid action space and also induces the scalability issue and additional approximation difficulties, thus leading to degenerated results. In this paper, we propose Hybrid Action Representation (HyAR) to learn a compact and decodable latent representation space for the original hybrid action space. HyAR constructs the latent space and embeds the dependence between discrete action and continuous parameter via an embedding table and conditional Variational Auto-Encoder (VAE). To further improve the effectiveness, the action representation is trained to be semantically smooth through unsupervised environmental dynamics prediction. Finally, the agent then learns its policy with conventional DRL algorithms in the learned representation space and interacts with the environment by decoding the hybrid action embeddings to the original action space. We evaluate HyAR in a variety of environments with discrete-continuous action space. The results demonstrate the superiority of HyAR when compared with previous baselines, especially for high-dimensional action spaces.

For agents

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

get_harvested_code_for_paper("2109.05490")
get_code_for_paper("2109.05490")
have("2109.05490")

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

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

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

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

Connect an agent — have() is free.