Paper · 2505.15093 · NeurIPS · 2025
Steering Generative Models with Experimental Data for Protein Fitness Optimization
Yisong Yue, Raul Astudillo, Wenda Chu, Jason Yang, Daniel Khalil, Bruce Wittmann, Frances Arnold
arXiv · PDF · Open in the Atlas
Code that ran
3 of 3 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; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 failures of our instrument; 0 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.
- 3 ran with no instrument failure
0 honoured the contract we drafted, 0 violated it, 3 have no contract verdict
- 0 ran where Syntology's instrument failed
failures of Syntology's instrument, not of the code: 0 where our contract draft was wrong, 0 where the contract check could not run
- 0 have no recorded run
- 0 of those that ran constructed an object rather than computing a result
an executed sample whose run returned an instance of its own class (fixture_out_type equals the entry name): the run built an object and did not compute a result
- 0 are pointer only: the body is not served under this paper's link
"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/2505.15093.json · badge: /api/ran/2505.15093.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.
| Repository | Role | Ran |
|---|
| jsunn-y/SGPO |
canonical (classifier label) classifier basis not recorded on the link |
3 ran · 0 no recorded run |
| Function | Status | Where it lives |
|---|
| sample |
Ran ran on a synthesized input |
jsunn-y/SGPO/baseline_sample.py code served (permissive licence) · get_code("eb34eb6d977fa4bb") How it ranRan 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 Dataset. 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
import numpy as np
torch.manual_seed(0)
# Stand-in config class
class Config:
def __init__(self):
self.model_dim = 64
self.vocab_size = 100
self.max_length = 10
config = Config()
# Minimal algorithm class with inference method
class Algorithm(nn.Module):
def __init__(self, vocab_size=100):
super().__init__()
self.vocab_size = vocab_size
self.linear = nn.Linear(8, vocab_size)
def inference(self, num_samples, detokenize=False):
# Return (model_output, detokenized_text)
dummy_output = torch.randn(num_samples, 8)
model_out = self.linear(dummy_output)
if detokenize:
# Return list of strings
detokenized = [f"sample_{i}" for i in range(num_samples)]
else:
detokenized = None
return model_out, detokenized
algorithm = Algorithm(vocab_size=100)
# Minimal dataset class with update_data method
class Dataset:
def __init__(self):
self.data = []
def update_data(self, detokenized, n_samples, round=0, BO=False, unique_only=False):
# Accept the detokenized samples and store them
if unique_only:
# Filter to unique samples
detokenized = list(set(detokenized))
self.data.extend(detokenized)
return self
dataset = Dataset()
# Parameters for the sample function
n_samples = 8
batch_size = 2
round_num = 0
ARGS = {
"config": config,
"n_samples": n_samples,
"algorithm": algorithm,
"dataset": dataset,
"batch_size": batch_size,
"round": round_num,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset 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
|
| sample |
Ran ran on a synthesized input |
jsunn-y/SGPO/pareto.py code served (permissive licence) · get_code("a1dbeb0873d313a1") How it ranRan 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 MockDataset. 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
import tqdm
torch.manual_seed(0)
class MockAlgorithm(nn.Module):
def __init__(self):
super().__init__()
self.linear = nn.Linear(4, 3)
def inference(self, num_samples, detokenize=False):
# Returns (something, detokenized_output)
# detokenized_output should be something that dataset.update_data can accept
samples = torch.randn(num_samples, 4)
detokenized = ["sample_" + str(i) for i in range(num_samples)]
return samples, detokenized
class MockDataset:
def __init__(self):
self.data = []
def update_data(self, detokenized, n_samples, BO=False, round=0, unique_only=False):
# Accepts detokenized samples and updates internal data
# Returns number of new samples added
self.data.extend(detokenized)
return len(detokenized)
class MockConfig:
def __init__(self):
self.BO = False
self.unique_only = False
config = MockConfig()
n_samples = 8
algorithm = MockAlgorithm()
dataset = MockDataset()
batch_size = 2
round_num = 1
ARGS = {
"config": config,
"n_samples": n_samples,
"algorithm": algorithm,
"dataset": dataset,
"batch_size": batch_size,
"round": round_num,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type MockDataset — a MockDataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockDataset 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
|
| sample |
Ran ran on a synthesized input |
jsunn-y/SGPO/prior_sample.py code served (permissive licence) · get_code("b8fb99914088fabb") How it ranRan 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 DummyDataset. 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
import tqdm
torch.manual_seed(0)
class DummyAlgorithm(nn.Module):
def __init__(self):
super().__init__()
self.linear = nn.Linear(4, 3)
def inference(self, num_samples, detokenize=False):
# Returns (tokenized, detokenized)
tokenized = torch.randn(num_samples, 4)
detokenized = [f"sample_{i}" for i in range(num_samples)]
return tokenized, detokenized
class DummyDataset:
def __init__(self):
self.data = []
def update_data(self, detokenized, n_samples, round=0, unique_only=False, BO=False):
# Stores the detokenized samples
self.data.extend(detokenized)
return self.data
class DummyConfig:
def __init__(self):
self.model_name = "dummy"
self.learning_rate = 0.001
config = DummyConfig()
n_samples = 8
algorithm = DummyAlgorithm()
dataset = DummyDataset()
batch_size = 2
round = 1
ARGS = {
"config": config,
"n_samples": n_samples,
"algorithm": algorithm,
"dataset": dataset,
"batch_size": batch_size,
"round": round,
"unique_only": False,
"BO": False
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type DummyDataset — a DummyDataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DummyDataset 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
|
Also present in other papers' code
Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 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 3 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-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
Protein fitness optimization involves finding a protein sequence that maximizes desired quantitative properties in a combinatorially large design space of possible sequences. Recent advances in steering protein generative models (e.g., diffusion models and language models) with labeled data offer a promising approach. However, most previous studies have optimized surrogate rewards and/or utilized large amounts of labeled data for steering, making it unclear how well existing methods perform and compare to each other in real-world optimization campaigns where fitness is measured through low-throughput wet-lab assays. In this study, we explore fitness optimization using small amounts (hundreds) of labeled sequencefitness pairs and comprehensively evaluate strategies such as classifier guidance and posterior sampling for guiding generation from different discrete diffusion models of protein sequences. We also demonstrate how guidance can be integrated into adaptive sequence selection akin to Thompson sampling in Bayesian optimization, showing that plug-and-play guidance strategies offer advantages over alternatives such as reinforcement learning with protein language models. Overall, we provide practical insights into how to effectively steer modern generative models for next-generation protein fitness optimization.
For agents
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2505.15093")
get_code_for_paper("2505.15093")
have("2505.15093")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2505.15093.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2505.15093)
Connect an agent — have() is free.