SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.14297 · 2026

Policy Optimization in Hybrid Discrete-Continuous Action Spaces via Mixed Gradients

Daniel Russo, Matias Alvo, Yash Kanoria

arXiv · PDF · Open in the Atlas

Code that ran

1 of 26 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 0 failures of our instrument; 25 no recorded run), measured 2026-11-24; 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/2605.14297.json · badge: /api/ran/2605.14297.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
MatiasAlvo/hybrid-rl community
Papers with Code archive
1 ran · 25 no recorded run
FunctionStatusWhere it lives
MyNeuralNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("2b5f0cb9e58fea9c")
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, MyNeuralNetwork: 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 = {
    'args': {
        'inner_layer_activations': {
            'master': 'relu',
            'store': 'relu',
            'warehouse': 'elu',
            'context': 'tanh'
        },
        'output_layer_activation': {
            'master': 'sigmoid',
            'store': None,
            'warehouse': 'softmax',
            'context': None
        },
        'neurons_per_hidden_layer': {
            'master': [8, 6],
            'store': [10],
            'warehouse': [7, 5],
            'context': []
        },
        'output_sizes': {
            'master': 4,
            'store': 3,
            'warehouse': 5,
            'context': 2
        },
        'initial_bias': {
            'master': 0.1,
            'store': None,
            'warehouse': -0.5,
            'context': 0.0
        }
    },
    'device': 'cpu'
}
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 MyNeuralNetwork — 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 MyNeuralNetwork 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
BaseAgent Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("9df36bf4d58db933")
How it ran

no invocation recorded.

BaseStock Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("e25051a202e2ec44")
How it ran

no invocation recorded.

CappedBaseStock Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("4da839a2e6e6abff")
How it ran

no invocation recorded.

DataDrivenNet Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("68af0e0bd6859870")
How it ran

no invocation recorded.

EchelonStock Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("13d44d4d807b947a")
How it ran

no invocation recorded.

FactoredPolicy Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("e8166dd8aba76718")
How it ran

no invocation recorded.

FixedQuantile Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("f221f4892d95c929")
How it ran

no invocation recorded.

HybridAgent Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("a73d73108608601c")
How it ran

no invocation recorded.

HybridPolicy Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("2cce703277aa4466")
How it ran

no invocation recorded.

HybridPolicySS Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("ac7707332f47fb17")
How it ran

no invocation recorded.

JustInTime Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("c55421567b81b20e")
How it ran

no invocation recorded.

NeuralNetworkCreator Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("fb52d780c8c76249")
How it ran

no invocation recorded.

PolicyNetwork Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("2b850180e713db47")
How it ran

no invocation recorded.

QuantileNV Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("57c21b1853b7a433")
How it ran

no invocation recorded.

QuantilePolicy Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("bcaada97eb71844d")
How it ran

no invocation recorded.

ReturnsNV Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("8c2ce03a4eb6bdbb")
How it ran

no invocation recorded.

SeparateNetworkPolicy Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("b1bdd783527ce877")
How it ran

no invocation recorded.

SeparateNetworkPolicyFixedContinuousInput Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("21e25e4d3b8900fb")
How it ran

no invocation recorded.

SymmetryAware Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("49154b3cb4a48781")
How it ran

no invocation recorded.

TransformedNV Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("a50a9ca2a82c78ef")
How it ran

no invocation recorded.

ValueNetwork Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("abdf8d91b905bbb3")
How it ran

no invocation recorded.

VanillaOneStore Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("6cabf1e9552765b5")
How it ran

no invocation recorded.

VanillaOneWarehouse Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("cea00d0af1655414")
How it ran

no invocation recorded.

VanillaSerial Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("20f040a07966b5bd")
How it ran

no invocation recorded.

VanillaTransshipment Not yet run
unverified (harvested, no recorded run)
MatiasAlvo/hybrid-rl/src/algorithms/hybrid/agents/hybrid_agent.py
code served (permissive licence) · get_code("b60b116cf9b5ef84")
How it ran

no invocation recorded.

Also present in other papers' code

Of 26 samples lifted from this paper's linked repositories, 26 carry a function identity and 0 do not. Of the 26 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 26 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-24.

Repositories linked to this paper

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

Abstract

We study reinforcement learning in hybrid discrete-continuous action spaces, such as settings where the discrete component selects a regime (or index) and the continuous component optimizes within it -a structure common in robotics, control, and operations problems. Standard model-free policy gradient methods rely on score-function (SF) estimators and suffer from severe credit-assignment issues in high-dimensional settings, leading to poor gradient quality. On the other hand, differentiable simulation largely sidesteps these issues by backpropagating through a simulator, but the presence of discrete actions or non-smooth dynamics yields biased or uninformative gradients. To address this, we propose Hybrid Policy Optimization (HPO), which backpropagates through the simulator wherever smoothness permits, using a mixed gradient estimator that combines pathwise and SF gradients while maintaining unbiasedness. We also show how problems with action discontinuities can be reformulated in hybrid form, further broadening its applicability. Empirically, HPO substantially outperforms PPO on inventory control and switched linear-quadratic regulator problems, with performance gaps increasing as the continuous action dimension grows. Finally, we characterize the structure of the mixed gradient, showing that its cross term -which captures how continuous actions influence future discrete decisions -becomes negligible near a discrete best response, thereby enabling approximate decentralized updates of the continuous and discrete components and reducing variance near optimality. All resources are available at https://github.com/MatiasAlvo/hybrid-rl.

For agents

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

get_harvested_code_for_paper("2605.14297")
get_code_for_paper("2605.14297")
have("2605.14297")

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

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

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

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

Connect an agent — have() is free.