SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.23518 · ICML · 2026

Chamaileon: Cross-Context Binder Design with Contextualized Modeling and Mixed Sampling

Min Zhang, Yan Zhang, Mingxuan Liu, Shizhuo Cheng, Yunhong Lu, Hengyuan Cao, Weicheng Huang, Chenxi Cai

arXiv · PDF · Open in the Atlas

Code that ran

8 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, 1 violated it and 0 have no contract verdict; 6 failures of our instrument; 3 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/2607.23518.json · badge: /api/ran/2607.23518.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
caohengyuan/Chamaileon canonical (classifier label)
classifier basis: census
8 ran · 3 no recorded run
FunctionStatusWhere it lives
apc Ran
ran, violated the contract we drafted
caohengyuan/Chamaileon/colabdesign/esm_msa/modules.py
code served (permissive licence) · get_code("0fd18e1ed4aedea2")
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, 4, 3, 2) 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 a small 4D tensor suitable for contact prediction
# Shape: (batch=2, height=4, width=3, channels=2)
# The function performs operations on the last two dimensions (-1, -2)
x = torch.randn(2, 4, 3, 2)

ARGS = {
    "x": x
}
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, 4, 3, 2) — shape (2, 4, 3, 2) 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
featurize Ran
ran; our contract draft was wrong, not the code
caohengyuan/Chamaileon/ProteinMPNN/training/model_utils.py
code served (permissive licence) · get_code("c2b57f862d5703b7")
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. 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 numpy as np
import torch
import random

torch.manual_seed(0)
random.seed(0)

# Construct a minimal batch with required structure
def create_sample_batch_item(seq_length=5, chain_id='A'):
    """Create a single batch item with all required fields"""
    seq = 'ACDEF'[:seq_length]
    
    # Create coordinate arrays for each atom type
    coords = {}
    for atom in ['N', 'CA', 'C', 'O']:
        coords[f'{atom}_chain_{chain_id}'] = np.random.randn(seq_length, 3).astype(np.float32)
    
    item = {
        'seq': seq,
        f'seq_chain_{chain_id}': seq,
        f'coords_chain_{chain_id}': coords,
        'masked_list': [chain_id],
        'visible_list': [],
        'num_of_chains': 1,
    }
    return item

# Create batch with 2 samples
batch = [
    create_sample_batch_item(seq_length=5, chain_id='A'),
    create_sample_batch_item(seq_length=4, chain_id='B'),
]

device = 'cpu'

ARGS = {
    'batch': batch,
    'device': device,
}
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 — a tuple 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_plddt Ran
ran, honoured the contract we drafted
caohengyuan/Chamaileon/colabdesign/af/loss.py
code served (permissive licence) · get_code("55c12f4b0dd687d6")
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 ArrayImpl, ndim 2, dtype family float, shape (2, 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 jax
import jax.numpy as jnp

# Create a small valid outputs dict with the structure expected by get_plddt
# The function expects outputs['predicted_lddt']['logits']
# logits shape: (batch_size, num_residues, num_bins)
# We'll use batch_size=2, num_residues=3, num_bins=4

batch_size = 2
num_residues = 3
num_bins = 4

# Create random logits
logits = jnp.array([
    [[1.0, 2.0, 0.5, 1.5], [0.8, 1.2, 2.0, 0.3], [1.5, 0.5, 1.0, 2.0]],
    [[0.5, 1.5, 2.0, 0.8], [2.0, 0.5, 1.0, 1.2], [0.3, 1.8, 0.7, 1.5]]
])

outputs = {
    'predicted_lddt': {
        'logits': logits
    }
}

ARGS = {
    'outputs': outputs
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (2, 3) — shape (2, 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
loss_nll Ran
ran; our contract draft was wrong, not the code
caohengyuan/Chamaileon/ProteinMPNN/training/model_utils.py
code served (permissive licence) · get_code("fe5ca31f1198b1d4")
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. 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

torch.manual_seed(0)

# S: target class indices, shape (batch, seq_len)
S = torch.randint(0, 4, (2, 3))

# log_probs: log probabilities, shape (batch, seq_len, num_classes)
log_probs = torch.randn(2, 3, 4).log_softmax(dim=-1)

# mask: binary mask for valid positions, shape (batch, seq_len)
mask = torch.ones(2, 3)

ARGS = {
    'S': S,
    'log_probs': log_probs,
    'mask': mask
}
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 tuple — a tuple 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
loss_smoothed Ran
ran; our contract draft was wrong, not the code
caohengyuan/Chamaileon/ProteinMPNN/training/model_utils.py
code served (permissive licence) · get_code("5ddd6c881d3a7b70")
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. 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.functional as F

torch.manual_seed(0)

# S: token indices, shape (batch_size, seq_len)
# Values must be in range [0, 20] since one_hot uses 21 classes
S = torch.randint(0, 21, (2, 4))

# log_probs: log probabilities, shape (batch_size, seq_len, num_classes)
# Should match the 21 classes from one_hot
log_probs = torch.randn(2, 4, 21)

# mask: binary mask, shape (batch_size, seq_len)
mask = torch.ones(2, 4)

# weight: smoothing weight parameter
weight = 0.1

ARGS = {
    "S": S,
    "log_probs": log_probs,
    "mask": mask,
    "weight": weight,
}
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 tuple — a tuple 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
parse_PDB Ran
ran; our contract draft was wrong, not the code
caohengyuan/Chamaileon/ProteinMPNN/protein_mpnn_utils.py
code served (permissive licence) · get_code("cef35149a8e05f7d")
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 1, 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 tempfile
import os
import numpy as np

# Create a minimal valid PDB file
pdb_content = """ATOM      1  N   ALA A   1       0.000   0.000   0.000  1.00  0.00           N
ATOM      2  CA  ALA A   1       1.458   0.000   0.000  1.00  0.00           C
ATOM      3  C   ALA A   1       2.009   1.390   0.000  1.00  0.00           C
ATOM      4  O   ALA A   1       1.380   2.240   0.626  1.00  0.00           O
ATOM      5  N   GLY A   2       3.209   1.610  -0.625  1.00  0.00           N
ATOM      6  CA  GLY A   2       3.870   2.900  -0.670  1.00  0.00           C
ATOM      7  C   GLY A   2       5.280   2.900  -0.119  1.00  0.00           C
ATOM      8  O   GLY A   2       5.840   1.810   0.059  1.00  0.00           O
END
"""

# Write to a temporary file
with tempfile.NamedTemporaryFile(mode='w', suffix='.pdb', delete=False) as f:
    f.write(pdb_content)
    pdb_path = f.name

try:
    ARGS = {
        'path_to_pdb': pdb_path,
        'input_chain_list': None,
        'ca_only': False,
    }
finally:
    pass
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 list, ndim 1, 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
parse_PDB_biounits Ran
ran; our contract draft was wrong, not the code
caohengyuan/Chamaileon/ProteinMPNN/protein_mpnn_utils.py
code served (permissive licence) · get_code("e68c5be0ba38ac9b")
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. 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 numpy as np
import tempfile
import os

# Create a minimal valid PDB file
pdb_content = """ATOM      1  N   ALA A   1      10.000  20.000  30.000  1.00  0.00           N
ATOM      2  CA  ALA A   1      11.000  21.000  31.000  1.00  0.00           C
ATOM      3  C   ALA A   1      12.000  22.000  32.000  1.00  0.00           C
ATOM      4  N   ARG A   2      13.000  23.000  33.000  1.00  0.00           N
ATOM      5  CA  ARG A   2      14.000  24.000  34.000  1.00  0.00           C
ATOM      6  C   ARG A   2      15.000  25.000  35.000  1.00  0.00           C
ATOM      7  N   VAL A   3      16.000  26.000  36.000  1.00  0.00           N
ATOM      8  CA  VAL A   3      17.000  27.000  37.000  1.00  0.00           C
ATOM      9  C   VAL A   3      18.000  28.000  38.000  1.00  0.00           C
END
"""

# Create a temporary PDB file
temp_pdb = tempfile.NamedTemporaryFile(mode='w', suffix='.pdb', delete=False)
temp_pdb.write(pdb_content)
temp_pdb.close()
pdb_filepath = temp_pdb.name

try:
    ARGS = {
        'x': pdb_filepath,
        'atoms': ['N', 'CA', 'C'],
        'chain': None
    }
finally:
    # Clean up after defining ARGS
    pass
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 tuple — a tuple 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
soft_seq Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
caohengyuan/Chamaileon/colabdesign/shared/model.py
code served (permissive licence) · get_code("e1bf5b34a9812327")
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 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 jax
import jax.numpy as jnp

# Set seed for reproducibility
jax.config.update('jax_platform_name', 'cpu')

# Create small test tensors
key = jax.random.PRNGKey(0)

# x: shape (3, 2, 4) - batch of 3, sequence length 2, feature dim 4
x = jnp.ones((3, 2, 4))

# bias: shape (4,) - can be added to logits which have last dim 4
bias = jnp.array([0.1, 0.2, 0.3, 0.4])

# opt: dictionary with required keys 'alpha', 'temp', 'soft', 'hard'
opt = {
    'alpha': 1.0,
    'temp': 0.5,
    'soft': 0.7,
    'hard': 0.3
}

ARGS = {
    'x': x,
    'bias': bias,
    'opt': opt,
    'key': key,
    'num_seq': None,
    'shuffle_first': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — 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
get_pae Not yet run
unverified (harvested, no recorded run)
caohengyuan/Chamaileon/colabdesign/af/loss.py
code served (permissive licence) · get_code("07fd89774e6cd63a")
How it ran

no invocation recorded.

symmetrize Not yet run
unverified (harvested, no recorded run)
caohengyuan/Chamaileon/colabdesign/esm_msa/modules.py
code served (permissive licence) · get_code("33dd253d7169953c")
How it ran

no invocation recorded.

tied_featurize Not yet run
unverified (harvested, no recorded run)
caohengyuan/Chamaileon/ProteinMPNN/protein_mpnn_utils.py
code served (permissive licence) · get_code("eb4c06bdb443e54e")
How it ran

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, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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
parse_PDB 4 other papers
4 dated earlier
2401.06151 (2024-01)
Towards Joint Sequence-Structure Generation of Nucleic Acid and Protein Complexes with SE(3)-Discrete Diffusion
2406.03141 (2024-06)
Floating Anchor Diffusion Model for Multi-motif Scaffolding
2411.10618 (2024-11)
D-Flow: Multi-modality Flow Matching for D-peptide Design
and 1 more not named here
parse_PDB_biounits 4 other papers
4 dated earlier
2401.06151 (2024-01)
Towards Joint Sequence-Structure Generation of Nucleic Acid and Protein Complexes with SE(3)-Discrete Diffusion
2406.03141 (2024-06)
Floating Anchor Diffusion Model for Multi-motif Scaffolding
2411.10618 (2024-11)
D-Flow: Multi-modality Flow Matching for D-peptide Design
and 1 more not named here
featurize 2 other papers
2 dated earlier
2406.03141 (2024-06)
Floating Anchor Diffusion Model for Multi-motif Scaffolding
2411.10618 (2024-11)
D-Flow: Multi-modality Flow Matching for D-peptide Design
loss_nll 2 other papers
2 dated earlier
2406.03141 (2024-06)
Floating Anchor Diffusion Model for Multi-motif Scaffolding
2411.10618 (2024-11)
D-Flow: Multi-modality Flow Matching for D-peptide Design
loss_smoothed 2 other papers
2 dated earlier
2406.03141 (2024-06)
Floating Anchor Diffusion Model for Multi-motif Scaffolding
2411.10618 (2024-11)
D-Flow: Multi-modality Flow Matching for D-peptide Design
tied_featurize 2 other papers
2 dated earlier
2406.03141 (2024-06)
Floating Anchor Diffusion Model for Multi-motif Scaffolding
2411.10618 (2024-11)
D-Flow: Multi-modality Flow Matching for D-peptide Design

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

The rapid evolution of generative models has unlocked new potentials in protein binder design, a pivotal task in structural biology, by facilitating end-to-end generation via joint sequence-structure modeling or hallucination. However, existing approaches are predominantly implemented under a single-target, single-state assumption, limiting their ability to model multi-target or multistate interactions required for advanced functionoriented protein design. Here, we introduce Chamaileon, which unifies multi-target and multi-state binder design by formulating the problem as cross-context binding landscape modeling. The framework is underpinned by a training paradigm termed In-Context Complex Co-Design (I3CD) for context-aware sequence-structure comodeling. During inference, we employ Mixtureof-Paths Sampling (MoPS), a scalable strategy that optimizes a single sequence across contexts while alleviating the scarcity of highquality multi-conformational paired data. Extensive evaluation on our newly constructed benchmark, CROSS, demonstrates that Chamaileon effectively generates sequences adaptable to diverse conformational landscapes and multitarget requirements. The code is available on https://github.com/caohengyuan/Chamaileon.

For agents

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

get_harvested_code_for_paper("2607.23518")
get_code_for_paper("2607.23518")
have("2607.23518")

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

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

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

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

Connect an agent — have() is free.