SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.13136 · 2024

Towards Principled, Practical Policy Gradient for Bandits and Tabular MDPs

arXiv · PDF · Open in the Atlas

Code that ran

6 of 11 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 5 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/2405.13136.json · badge: /api/ran/2405.13136.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
sudo-michael/practical-pg canonical (classifier label)
classifier basis: census
6 ran · 5 no recorded run
FunctionStatusWhere it lives
build_chain_mdp Ran
ran; our contract draft was wrong, not the code
sudo-michael/practical-pg/mdp_environments.py
pointer only (licence: NONE) · get_code("47432f5d04d1e996")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sudo-michael/practical-pg 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.

det_pg Ran
ran; our contract draft was wrong, not the code
sudo-michael/practical-pg/updates.py
pointer only (licence: NONE) · get_code("4be751243cc04c3e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sudo-michael/practical-pg 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.

log_data Ran
ran; our contract draft was wrong, not the code
sudo-michael/practical-pg/experiment.py
pointer only (licence: NONE) · get_code("cd267283cf9249ac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sudo-michael/practical-pg 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.

make_bandit Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sudo-michael/practical-pg/bandit_environments.py
pointer only (licence: NONE) · get_code("b9ebac8855f25485")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sudo-michael/practical-pg 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.

rescale_reward Ran
ran, honoured the contract we drafted
sudo-michael/practical-pg/mdp_environments.py
pointer only (licence: NONE) · get_code("4d20d7c5607d3948")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sudo-michael/practical-pg 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.

transformed_armijo_line_search Ran
ran; our contract draft was wrong, not the code
sudo-michael/practical-pg/updates.py
pointer only (licence: NONE) · get_code("4c0dcc542719e620")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sudo-michael/practical-pg 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.

armijo_line_search Not yet run
unverified (harvested, no recorded run)
sudo-michael/practical-pg/updates.py
pointer only (licence: NONE) · get_code("f3e626e7f338f872")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sudo-michael/practical-pg 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.

dpi Not yet run
unverified (harvested, no recorded run)
sudo-michael/practical-pg/mdp_updates.py
pointer only (licence: NONE) · get_code("43a5cdac8501862c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sudo-michael/practical-pg 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_envs Not yet run
unverified (harvested, no recorded run)
sudo-michael/practical-pg/bandit_environments.py
pointer only (licence: NONE) · get_code("695354c9f366e1e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sudo-michael/practical-pg 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.

qpi Not yet run
unverified (harvested, no recorded run)
sudo-michael/practical-pg/mdp_updates.py
pointer only (licence: NONE) · get_code("386e7876862c4a94")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sudo-michael/practical-pg 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.

vpi Not yet run
unverified (harvested, no recorded run)
sudo-michael/practical-pg/mdp_updates.py
pointer only (licence: NONE) · get_code("c1d5051cc6af072f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sudo-michael/practical-pg 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.

Also present in other papers' code

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

We consider (stochastic) softmax policy gradient (PG) methods for bandits and tabular Markov decision processes (MDPs). While the PG objective is non-concave, recent research has used the objective's smoothness and gradient domination properties to achieve convergence to an optimal policy. However, these theoretical results require setting the algorithm parameters according to unknown problem-dependent quantities (e.g. the optimal action or the true reward vector in a bandit problem). To address this issue, we borrow ideas from the optimization literature to design practical, principled PG methods in both the exact and stochastic settings. In the exact setting, we employ an Armijo line-search to set the step-size for softmax PG and demonstrate a linear convergence rate. In the stochastic setting, we utilize exponentially decreasing step-sizes, and characterize the convergence rate of the resulting algorithm. We show that the proposed algorithm offers similar theoretical guarantees as the state-of-the art results, but does not require the knowledge of oracle-like quantities. For the multi-armed bandit setting, our techniques result in a theoretically-principled PG algorithm that does not require explicit exploration, the knowledge of the reward gap, the reward distributions, or the noise. Finally, we empirically compare the proposed methods to PG approaches that require oracle knowledge, and demonstrate competitive performance.

For agents

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

get_harvested_code_for_paper("2405.13136")
get_code_for_paper("2405.13136")
have("2405.13136")

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

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

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

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

Connect an agent — have() is free.