SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.05349 · AAAI · 2024

Offline Model-Based Optimization via Policy-Guided Gradient Search

Nghia Trong, Aryan Deshwal, Yassine Chemingui, Janardhan Hoang, Rao Doppa

arXiv · PDF · Open in the Atlas

Code that ran

15 of 18 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; 14 failures of our instrument; 3 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/2405.05349.json · badge: /api/ran/2405.05349.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
yassineCh/PGS canonical (classifier label)
classifier basis: census
14 ran · 3 no recorded run
google-research/google-research community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
ForwardModel Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yassineCh/PGS/coms_cleaned/nets.py
pointer only (licence: NONE) · get_code("3a2ee7569ed76374")
How it ran

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

batch_to_torch Ran
ran; our contract draft was wrong, not the code
yassineCh/PGS/replay_buffer.py
pointer only (licence: NONE) · get_code("32231080b4b40efc")
How it ran

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

extend_and_repeat Ran
ran; our contract draft was wrong, not the code
yassineCh/PGS/model.py
pointer only (licence: NONE); the stored copy get_code serves, from zexusun/oilca-neurips23, is pointer only (licence: NONE) · get_code("1e5f5f635bdf773a")
How it ran

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

generate_trajectory Ran
ran; our contract draft was wrong, not the code
yassineCh/PGS/generate_trajectories.py
pointer only (licence: NONE) · get_code("7712cf0435cff046")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yassineCh/PGS 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_grads Ran
ran; our contract draft was wrong, not the code
yassineCh/PGS/generate_trajectories.py
pointer only (licence: NONE) · get_code("753958f65f38b74a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yassineCh/PGS 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_noninit_guided_config Ran
ran; our contract draft was wrong, not the code
google-research/google-research/gradient_based_tuning/guided_parameters.py
code served (permissive licence) · get_code("541df06efd45bb79")
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 dict. 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

torch.manual_seed(0)

ARGS = {
    'guided_hparam_types': ['learning_rate', 'beta1', 'beta2', 'eps', 'weight_decay'],
    'model_opt_type': 'adam',
    'lr_activation_fn': 'exp',
    'activation_floor': 0,
    'guided_opt_type': 'adam',
    'init_dict': None,
    'learning_rate_scalar_override': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
index_batch Ran
ran; our contract draft was wrong, not the code
yassineCh/PGS/replay_buffer.py
pointer only (licence: NONE) · get_code("c8b2fc80a3fc7424")
How it ran

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

link Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yassineCh/PGS/generate_trajectories.py
pointer only (licence: NONE) · get_code("2847ff08c9fa8b2c")
How it ran

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

load_embedded_data Ran
ran; our contract draft was wrong, not the code
yassineCh/PGS/knn_evaluate.py
pointer only (licence: NONE) · get_code("8ce1498bb25b3523")
How it ran

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

multiple_action_q_function Ran
ran; our contract draft was wrong, not the code
yassineCh/PGS/model.py
pointer only (licence: NONE) · get_code("d06ff25d52ad20f5")
How it ran

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

normalize Ran
ran, honoured the contract we drafted
yassineCh/PGS/knn_evaluate.py
pointer only (licence: NONE) · get_code("7e4ca4d4478f4b49")
How it ran

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

parition_batch_train_test Ran
ran; our contract draft was wrong, not the code
yassineCh/PGS/replay_buffer.py
pointer only (licence: NONE) · get_code("3f55f8769dd45c20")
How it ran

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

prepare_dataloaders Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yassineCh/PGS/surrogate.py
pointer only (licence: NONE) · get_code("21c82f7926f182f1")
How it ran

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

split_dataset Ran
ran; our contract draft was wrong, not the code
yassineCh/PGS/surrogate.py
pointer only (licence: NONE) · get_code("45a7574afd665891")
How it ran

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

validate_dnn Ran
ran; our contract draft was wrong, not the code
yassineCh/PGS/surrogate.py
pointer only (licence: NONE) · get_code("7c357874e6b59114")
How it ran

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

build_pipeline Not yet run
unverified (harvested, no recorded run)
yassineCh/PGS/data.py
pointer only (licence: NONE) · get_code("5868f3063af26312")
How it ran

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

create_mlp Not yet run
unverified (harvested, no recorded run)
yassineCh/PGS/embed.py
pointer only (licence: NONE) · get_code("2b3c0c162fb9aa5b")
How it ran

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

load_top_observations Not yet run
unverified (harvested, no recorded run)
yassineCh/PGS/evaluate_policy.py
pointer only (licence: NONE) · get_code("28b0766edda08356")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yassineCh/PGS 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 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 0 later) and 13 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
multiple_action_q_function 4 other papers
4 dated earlier
2006.04779 (2020-06)
Conservative Q-Learning for Offline Reinforcement Learning
2301.12842 (2023-01)
Direct Preference-based Policy Optimization without Reward Modeling
2303.00957 (2023-03)
Preference Transformer: Modeling Human Preferences using Transformers for RL
and 1 more not named here
extend_and_repeat 3 other papers
3 dated earlier
2006.04779 (2020-06)
Conservative Q-Learning for Offline Reinforcement Learning
2207.10050 (2022-07)
Discriminator-Weighted Offline Imitation Learning from Suboptimal Demonstrations
2210.06518 (2022-10)
Semi-Supervised Offline Reinforcement Learning with Action-Free Trajectories
batch_to_torch 2 other papers
2 dated earlier
2006.04779 (2020-06)
Conservative Q-Learning for Offline Reinforcement Learning
2210.06518 (2022-10)
Semi-Supervised Offline Reinforcement Learning with Action-Free Trajectories
index_batch 2 other papers
2 dated earlier
2006.04779 (2020-06)
Conservative Q-Learning for Offline Reinforcement Learning
2210.07484 (2022-10)
Mutual Information Regularized Offline Reinforcement Learning
parition_batch_train_test 2 other papers
2 dated earlier
2006.04779 (2020-06)
Conservative Q-Learning for Offline Reinforcement Learning
2210.07484 (2022-10)
Mutual Information Regularized Offline Reinforcement Learning

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

Offline optimization is an emerging problem in many experimental engineering domains including protein, drug or aircraft design, where online experimentation to collect evaluation data is too expensive or dangerous. To avoid that, one has to optimize an unknown function given only its offline evaluation at a fixed set of inputs. A naive solution to this problem is to learn a surrogate model of the unknown function and optimize this surrogate instead. However, such a naive optimizer is prone to erroneous overestimation of the surrogate (possibly due to over-fitting on a biased sample of function evaluation) on inputs outside the offline dataset. Prior approaches addressing this challenge have primarily focused on learning robust surrogate models. However, their search strategies are derived from the surrogate model rather than the actual offline data. To fill this important gap, we introduce a new learning-to-search perspective for offline optimization by reformulating it as an offline reinforcement learning problem. Our proposed policy-guided gradient search approach explicitly learns the best policy for a given surrogate model created from the offline data. Our empirical results on multiple benchmarks demonstrate that the learned optimization policy can be combined with existing offline surrogates to significantly improve the optimization performance.

For agents

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

get_harvested_code_for_paper("2405.05349")
get_code_for_paper("2405.05349")
have("2405.05349")

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

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

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

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

Connect an agent — have() is free.