SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1812.02690 · 2018

Provably Efficient Maximum Entropy Exploration

arXiv · PDF · Open in the Atlas

Code that ran

9 of 14 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 8 have no contract verdict; 0 failures of our instrument; 5 no recorded run), measured 2026-11-24; 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/1812.02690.json · badge: /api/ran/1812.02690.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
abbyvansoest/maxent_ant canonical (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
abbyvansoest/maxent community (classifier label)
classifier basis not recorded on the link
8 ran · 4 no recorded run
FunctionStatusWhere it lives
discretize_range Ran
ran, honoured the contract we drafted
abbyvansoest/maxent_ant/entropy/ant_utils.py
pointer only (licence: NONE) · get_code("f9a87d42f4aba379")
How it ran

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

discretize_range Ran
ran on a synthesized input
abbyvansoest/maxent/base/base_utils.py
code served (permissive licence) · get_code("8627b1e582b17fad")
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 ndarray, ndim 1, dtype family float, shape (4,) 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.

import numpy as np

ARGS = {
    "lower_bound": 0.0,
    "upper_bound": 10.0,
    "num_bins": 5
}
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 ndarray, ndim 1, dtype family float, shape (4,) — shape (4,) 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
fully_corrective_weights Ran
ran on a synthesized input
abbyvansoest/maxent/utils.py
code served (permissive licence) · get_code("679710e830fe004c")
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 ndarray, ndim 1, dtype family float, shape (3,) 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.

import numpy as np

# Create small distribution arrays for testing
# The function expects a list of distributions that can be reshaped to 1D
# Looking at the code: distributions[idx].reshape(-1) is called
# So each distribution should be array-like and reshapeable

dist1 = np.array([[0.2, 0.3, 0.5],
                   [0.1, 0.4, 0.5]])  # shape (2, 3)

dist2 = np.array([[0.1, 0.2, 0.7],
                   [0.3, 0.3, 0.4]])  # shape (2, 3)

dist3 = np.array([[0.5, 0.3, 0.2],
                   [0.2, 0.2, 0.6]])  # shape (2, 3)

distributions = [dist1, dist2, dist3]

ARGS = {
    'distributions': distributions,
    'eps': 0.001,
    'step': 0.2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cvxpy, numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (3,) — shape (3,) 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
geometric_weights Ran
ran on a synthesized input
abbyvansoest/maxent/utils.py
code served (permissive licence) · get_code("3a04bcab9b7b15a2")
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 ndarray, ndim 1, dtype family float, shape (4,) 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.

import numpy as np

def geometric_weights(distributions, gamma=0.9):
    N = len(distributions)
    weights = [gamma ** (N - i) for i in range(N)]
    weights = proj_unit_simplex(weights)
    return weights

def proj_unit_simplex(y):
    import cvxpy as cvx
    d = len(y)
    a = np.ones(d)
    x = cvx.Variable(d)
    obj = cvx.Minimize(cvx.sum_squares(x - y))
    constr = [x >= 0, a * x == 1]
    prob = cvx.Problem(obj, constr)
    prob.solve()
    return np.array(x.value)

# Create valid arguments for geometric_weights
# distributions parameter: a list of probability distributions
# The function only uses len(distributions), so we can pass any list
distributions_arg = [
    np.array([0.5, 0.3, 0.2]),
    np.array([0.4, 0.4, 0.2]),
    np.array([0.6, 0.2, 0.2]),
    np.array([0.3, 0.5, 0.2])
]

ARGS = {
    "distributions": distributions_arg,
    "gamma": 0.9
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cvxpy, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (4,) 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
get_all_datasets Ran
ran on a synthesized input
abbyvansoest/maxent/plot.py
code served (permissive licence) · get_code("cfce41fe4e302f84")
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 list, ndim 3, 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 os
import tempfile
import json
import pandas as pd

# Create a temporary directory structure with mock experiment data
tmpdir = tempfile.mkdtemp()

# Create first experiment directory
exp1_dir = os.path.join(tmpdir, "exp1")
os.makedirs(exp1_dir)

# Create progress.txt for first experiment
progress_data_1 = pd.DataFrame({
    'Epoch': [1, 2, 3],
    'AverageTestEpRet': [10.0, 20.0, 30.0],
    'Loss': [0.5, 0.3, 0.1]
})
progress_data_1.to_csv(os.path.join(exp1_dir, 'progress.txt'), sep='\t', index=False)

# Create config.json for first experiment
config_1 = {'exp_name': 'experiment_1'}
with open(os.path.join(exp1_dir, 'config.json'), 'w') as f:
    json.dump(config_1, f)

# Create second experiment directory
exp2_dir = os.path.join(tmpdir, "exp2")
os.makedirs(exp2_dir)

# Create progress.txt for second experiment
progress_data_2 = pd.DataFrame({
    'Epoch': [1, 2, 3],
    'AverageEpRet': [15.0, 25.0, 35.0],
    'Loss': [0.6, 0.4, 0.2]
})
progress_data_2.to_csv(os.path.join(exp2_dir, 'progress.txt'), sep='\t', index=False)

# Create config.json for second experiment
config_2 = {'exp_name': 'experiment_2'}
with open(os.path.join(exp2_dir, 'config.json'), 'w') as f:
    json.dump(config_2, f)

# Define arguments for get_all_datasets
ARGS = {
    'all_logdirs': [exp1_dir + '/', exp2_dir + '/'],
    'legend': ['Condition_A', 'Condition_B'],
    'select': None,
    'exclude': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 3, dtype family float — a list 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
get_datasets Ran
ran on a synthesized input
abbyvansoest/maxent/plot.py
code served (permissive licence) · get_code("ece9caed5d8cff07")
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 list. 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 tempfile
import os
import json
import pandas as pd

# Create a temporary directory structure with the expected files
tmpdir = tempfile.mkdtemp()

# Create a subdirectory for an experiment
exp_dir = os.path.join(tmpdir, 'exp1')
os.makedirs(exp_dir)

# Create a config.json file
config_data = {
    'exp_name': 'test_experiment',
    'param1': 'value1'
}
config_path = os.path.join(exp_dir, 'config.json')
with open(config_path, 'w') as f:
    json.dump(config_data, f)

# Create a progress.txt file with tab-separated values
progress_data = {
    'Epoch': [1, 2, 3],
    'AverageTestEpRet': [100.5, 120.3, 135.2],
    'Loss': [0.5, 0.3, 0.1]
}
progress_df = pd.DataFrame(progress_data)
progress_path = os.path.join(exp_dir, 'progress.txt')
progress_df.to_csv(progress_path, sep='\t', index=False)

# Create another experiment directory for testing multiple datasets
exp_dir2 = os.path.join(tmpdir, 'exp2')
os.makedirs(exp_dir2)

config_data2 = {
    'exp_name': 'test_experiment_2',
    'param1': 'value2'
}
config_path2 = os.path.join(exp_dir2, 'config.json')
with open(config_path2, 'w') as f:
    json.dump(config_data2, f)

progress_data2 = {
    'Epoch': [1, 2],
    'AverageEpRet': [95.0, 110.5],
    'Loss': [0.6, 0.4]
}
progress_df2 = pd.DataFrame(progress_data2)
progress_path2 = os.path.join(exp_dir2, 'progress.txt')
progress_df2.to_csv(progress_path2, sep='\t', index=False)

# Define the ARGS dictionary
ARGS = {
    'logdir': tmpdir,
    'condition': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is 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_next_file Ran
ran on a synthesized input
abbyvansoest/maxent/plotting.py
code served (permissive licence) · get_code("d8191ac2854bc916")
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 os
import tempfile

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Ensure the directory path ends with a separator
directory = temp_dir + os.sep

ARGS = {
    'directory': directory,
    'model_time': 'model_v1',
    'ext': '.jpg',
    'dot': '.png'
}
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_state Ran
ran on a synthesized input
abbyvansoest/maxent/ant/ant_soft_actor_critic.py
code served (permissive licence) · get_code("2b35e42973a59560")
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 ndarray, ndim 1, dtype family float, shape (8,) 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.

import numpy as np

class MockEnv:
    def __init__(self):
        self.env = self
    
    def state_vector(self):
        # state_vector returns a vector where:
        # - first 2 elements are "extra" (not in obs)
        # - remaining elements should match obs
        # obs has length len(state) - 2, so state needs len(obs) + 2 elements
        # Let's say obs has 6 elements, so state has 8 elements
        extra = np.array([1.0, 2.0])
        state_core = np.array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6])
        return np.concatenate([extra, state_core])

env = MockEnv()
state = env.env.state_vector()
# obs should be state[2:], which is everything after the first 2 elements
obs = state[2:].copy()

ARGS = {
    "env": env,
    "obs": obs
}
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 ndarray, ndim 1, dtype family float, shape (8,) — shape (8,) 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
proj_unit_simplex Ran
ran on a synthesized input
abbyvansoest/maxent/utils.py
code served (permissive licence) · get_code("25d36450d842d839")
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 ndarray, ndim 1, dtype family float, shape (4,) 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.

import cvxpy as cvx
import numpy as np

# The function proj_unit_simplex takes a single parameter 'y'
# which should be a numpy array or array-like object representing a point
# The function projects this point onto the unit simplex

# Create a small test vector
y = np.array([0.5, 0.2, 0.1, 0.3])

ARGS = {
    "y": y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cvxpy, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (4,) 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
discretize_value Not yet run
unverified (harvested, no recorded run)
abbyvansoest/maxent_ant/entropy/ant_utils.py
pointer only (licence: NONE) · get_code("e3d1de05bef0f98f")
How it ran

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

get_num_states Not yet run
unverified (harvested, no recorded run)
abbyvansoest/maxent/base/base_utils.py
code served (permissive licence) · get_code("01404759df85eaa8")
How it ran

no invocation recorded.

get_vars Not yet run
unverified (harvested, no recorded run)
abbyvansoest/maxent/core.py
code served (permissive licence) · get_code("a2580d7c4a763348")
How it ran

no invocation recorded.

mlp Not yet run
unverified (harvested, no recorded run)
abbyvansoest/maxent/core.py
code served (permissive licence) · get_code("e68b07bcdded00fa")
How it ran

no invocation recorded.

placeholder Not yet run
unverified (harvested, no recorded run)
abbyvansoest/maxent/core.py
code served (permissive licence) · get_code("17b03c462ce92576")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 10 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
mlp 5 other papers
2 dated earlier, 3 later
1801.01290 (2018-01)
Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor
1802.09477 (2018-02)
Addressing Function Approximation Error in Actor-Critic Methods
1910.07224 (2019-10)
Teacher algorithms for curriculum learning of Deep RL in continuously parameterized environments
and 2 more not named here
get_vars 4 other papers
1 dated earlier, 3 later
1802.09477 (2018-02)
Addressing Function Approximation Error in Actor-Critic Methods
1910.07224 (2019-10)
Teacher algorithms for curriculum learning of Deep RL in continuously parameterized environments
2302.00808 (2023-02)
ACPO: A Policy Optimization Algorithm for Average MDPs with Constraints
and 1 more not named here
placeholder 4 other papers
1 dated earlier, 3 later
1802.09477 (2018-02)
Addressing Function Approximation Error in Actor-Critic Methods
1910.07224 (2019-10)
Teacher algorithms for curriculum learning of Deep RL in continuously parameterized environments
2302.00808 (2023-02)
ACPO: A Policy Optimization Algorithm for Average MDPs with Constraints
and 1 more not named here

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

Suppose an agent is in a (possibly unknown) Markov Decision Process in the absence of a reward signal, what might we hope that an agent can efficiently learn to do? This work studies a broad class of objectives that are defined solely as functions of the state-visitation frequencies that are induced by how the agent behaves. For example, one natural, intrinsically defined, objective problem is for the agent to learn a policy which induces a distribution over state space that is as uniform as possible, which can be measured in an entropic sense. We provide an efficient algorithm to optimize such such intrinsically defined objectives, when given access to a black box planning oracle (which is robust to function approximation). Furthermore, when restricted to the tabular setting where we have sample based access to the MDP, our proposed algorithm is provably efficient, both in terms of its sample and computational complexities. Key to our algorithmic methodology is utilizing the conditional gradient method (a.k.a. the Frank-Wolfe algorithm) which utilizes an approximate MDP solver.

For agents

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

get_harvested_code_for_paper("1812.02690")
get_code_for_paper("1812.02690")
have("1812.02690")

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

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

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

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

Connect an agent — have() is free.