SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.10189 · 2026

ProteinOPD: Towards Effective and Efficient Preference Alignment for Protein Design

Jia Li, Yu Li, Zihao Jiang, Ziqi Gao, He Cao, Zijing Liu, Chenyi Zi, Yulin Zhang, Zhipeng Zhou

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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 0 have no contract verdict; 6 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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.10189.json · badge: /api/ran/2605.10189.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
ibmm-unibe-ch/TemBERTure canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
add_alignment_column Ran
ran; our contract draft was wrong, not the code
ibmm-unibe-ch/TemBERTure/dev/analysis/aa_pairs_conserved.py
code served (permissive licence) · get_code("7b7cc182bae4c17a")
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 DataFrame. 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 pandas as pd
import numpy as np

# Create a small DataFrame with amino acid data
df = pd.DataFrame({
    'aa': ['M', 'G', 'A', 'L', 'V'],
    'att_score': [0.1, 0.2, 0.3, 0.4, 0.5],
    'conserv_masks': [True, False, True, False, True],
    'att_outliers': [0, 1, 0, 1, 0]
})

# Create a pattern with amino acids and gaps
pattern = "MG-AL-V"

ARGS = {
    'df': df,
    'pattern': pattern
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
format_attention Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ibmm-unibe-ch/TemBERTure/dev/analysis/attention_utils.py
code served (permissive licence) · get_code("2359339c84809cd0")
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 Tensor, ndim 4, dtype family float, shape (2, 2, 4, 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 torch

torch.manual_seed(0)

# Create attention tensors with shape (batch_size, num_heads, seq_len, seq_len)
# We need 4D tensors as verified by the function
batch_size = 1
num_heads = 2
seq_len = 4
num_layers = 3

attention = []
for layer_idx in range(num_layers):
    # Shape: (batch=1, heads=2, seq_len=4, seq_len=4)
    layer_tensor = torch.randn(batch_size, num_heads, seq_len, seq_len)
    attention.append(layer_tensor)

ARGS = {
    "attention": attention,
    "layers": [0, 2],  # Select specific layer indices
    "heads": [0, 1]    # Select specific head indices
}
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 Tensor, ndim 4, dtype family float, shape (2, 2, 4, 4) — shape (2, 2, 4, 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_subnet_constructor Ran
ran; our contract draft was wrong, not the code
ibmm-unibe-ch/TemBERTure/dev/training/modeling.py
code served (permissive licence) · get_code("eff9264e5a767aeb")
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 function. 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
from torch import nn
from transformers.activations import get_activation

torch.manual_seed(0)

class Activation_Function_Class(nn.Module):
    """
    Implementation of various activation function.
    """

    def __init__(self, hidden_act):
        super().__init__()
        if hidden_act.lower() == 'leakyrelu':
            self.f = torch.nn.LeakyReLU()
        else:
            self.f = get_activation(hidden_act.lower())

    def forward(self, x):
        return self.f(x)

def get_subnet_constructor(non_linearity, reduction_factor):

    def subnet(dims_in, dims_out):
        return nn.Sequential(nn.Linear(dims_in, int(dims_in // reduction_factor)), Activation_Function_Class(non_linearity), nn.Linear(int(dims_in // reduction_factor), dims_out))
    return subnet

ARGS = {
    "non_linearity": "gelu",
    "reduction_factor": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
init_shared_parameters Ran
ran; our contract draft was wrong, not the code
ibmm-unibe-ch/TemBERTure/dev/training/modeling.py
code served (permissive licence) · get_code("6665af37f075e0f5")
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 ParameterDict. 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
from torch import nn

torch.manual_seed(0)

# Create a minimal config dict with all required keys
config = {
    'factorized_phm_W': True,
    'hypercomplex_nonlinearity': True,
    'phm_dim': 2,
    'phm_init_range': 0.01,
    'shared_W_phm': True,
    'reduction_factor': 2,
    'phm_rank': 3,
    'shared_phm_rule': True,
    'factorized_phm_rule': True,
    'learn_phm': True,
    'phm_c_init': 'normal',
}

in_features = 8
device = 'cpu'

ARGS = {
    'config': config,
    'in_features': in_features,
    'device': device,
}
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 ParameterDict — a ParameterDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ParameterDict output the recorded ndim 1 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
kronecker_product Ran
ran; our contract draft was wrong, not the code
ibmm-unibe-ch/TemBERTure/dev/training/modeling.py
code served (permissive licence) · get_code("54fa343f001c7cff")
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 Tensor, ndim 3, dtype family float, shape (2, 15, 24) 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 torch

torch.manual_seed(0)

# Create two tensors with batch dimensions and different matrix sizes
# a: shape (2, 3, 4) - batch size 2, matrix 3x4
# b: shape (2, 5, 6) - batch size 2, matrix 5x6
a = torch.randn(2, 3, 4)
b = torch.randn(2, 5, 6)

ARGS = {
    "a": a,
    "b": b,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 15, 24) — shape (2, 15, 24) 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
masking Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ibmm-unibe-ch/TemBERTure/dev/analysis/aa_pairs_conserved.py
code served (permissive licence) · get_code("7536bf0057fc28f5")
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 tuple, ndim 2, 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 torch
import numpy as np

torch.manual_seed(0)

# The function takes two iterables: conservation_masking and alignment_sequence
# It zips them together, filters out pairs where alignment_sequence == '-'
# Returns a tuple of (sequence list, masks list)

# conservation_masking: iterable of mask values
# alignment_sequence: iterable of sequence characters

conservation_masking = [0.5, 0.8, 0.3, 0.9, 0.2]
alignment_sequence = ['A', 'C', '-', 'G', 'T']

ARGS = {
    'conservation_masking': conservation_masking,
    'alignment_sequence': alignment_sequence
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple 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
combine_images Not yet run
unverified (harvested, no recorded run)
ibmm-unibe-ch/TemBERTure/dev/analysis/combine_images.py
code served (permissive licence) · get_code("c86a95c957859f8f")
How it ran

no invocation recorded.

fisher_exact_test_on_df Not yet run
unverified (harvested, no recorded run)
ibmm-unibe-ch/TemBERTure/dev/analysis/aa_pairs_conserved.py
code served (permissive licence) · get_code("ff177f6e2f7f52a8")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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
kronecker_product 5 other papers
5 dated earlier
2106.04647 (2021-06)
Efficient Low-Rank Hypercomplex Adapter Layers
2301.12132 (2023-01)
AutoPEFT: Automatic Configuration Search for Parameter-Efficient Fine-Tuning
2305.17682 (2023-05)
One Network, Many Masks: Towards More Parameter-Efficient Transfer Learning
and 2 more not named here
get_subnet_constructor 1 other paper
1 dated earlier
2310.20150 (2023-10)
Unlearn What You Want to Forget: Efficient Unlearning for LLMs

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

Designing proteins with desired functions or properties represents a core goal in synthetic biology and drug discovery. Recent advances in protein language models (PLMs) have enabled the generation of highly designable protein sequences, while preference alignment provides a promising way to steer designs toward desired functions and properties. Nevertheless, they often trigger catastrophic forgetting of pretrained knowledge, degrading basic designability and failing to balance multiple competing objectives. To address these issues, we draw inspiration from On-Policy Distillation (OPD), an advanced post-training method renowned for mitigating catastrophic forgetting through its mode-seeking nature. In this work, we propose ProteinOPD, a multi-objective preference alignment framework that can effectively balance multiple preference objectives while maintaining the inherent designability of PLMs. ProteinOPD adapts a pretrained PLM into preference-specific teachers and distills their knowledge into a shared student via token-level OPD on the student's own trajectories. During this process, the student is aligned to a unique normalized geometric consensus of weighted teachers while ensuring bounded optimization under conflicts. This bridges the gap for OPD in multi-objective/teacher alignment. Extensive experiments show that ProteinOPD achieves substantial gains on target preference objectives without compromising the designability, with an 8× training speedup over RL-based alignment competitors.

For agents

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

get_harvested_code_for_paper("2605.10189")
get_code_for_paper("2605.10189")
have("2605.10189")

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

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

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

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

Connect an agent — have() is free.