SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.02120 · NeurIPS · 2024

Bridge-IF: Learning Inverse Protein Folding with Markov Bridges

Wei Wu, Jieping Ye, Zheng Wang, Yiheng Zhu, Jialu Wu, Jiahuan Yan, Jian Wu, Qiuyi Li, Mingze Yin, Mingyang Li

arXiv · PDF · Open in the Atlas

Code that ran

1 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 0 have no contract verdict; 1 failure of our instrument; 2 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/2411.02120.json · badge: /api/ran/2411.02120.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
violet-sto/Bridge-IF canonical (classifier label)
classifier basis: census
1 ran · 2 no recorded run
FunctionStatusWhere it lives
convert_by_alphabets Ran
ran; our contract draft was wrong, not the code
violet-sto/Bridge-IF/src/tasks/fixedbb/markov_bridge_pifold.py
code served (permissive licence) · get_code("16209eb6622d8435")
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 2, dtype family int, shape (2, 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
import torch.nn as nn

torch.manual_seed(0)

class Alphabet:
    def __init__(self, tokens, unk_idx=0, mask_idx=1):
        self.tokens = tokens
        self.token_to_idx = {tok: idx for idx, tok in enumerate(tokens)}
        self.unk_idx = unk_idx
        self.mask_idx = mask_idx
    
    def get_tok(self, ind):
        if ind < len(self.tokens):
            return self.tokens[ind]
        return self.tokens[self.unk_idx]
    
    def get_idx(self, tok):
        return self.token_to_idx.get(tok, self.unk_idx)

alphabet1 = Alphabet(['a', 'b', 'c', 'd', 'e'], unk_idx=0, mask_idx=1)
alphabet2 = Alphabet(['x', 'y', 'z', 'w', 'v'], unk_idx=0, mask_idx=1)

ids = torch.tensor([[0, 1, 2, 3], [4, 0, 1, 2]], dtype=torch.long)

ARGS = {
    'ids': ids,
    'alphabet1': alphabet1,
    'alphabet2': alphabet2,
    'relpace_unk_to_mask': True
}
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 2, dtype family int, shape (2, 4) — shape (2, 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
make_dataset Not yet run
unverified (harvested, no recorded run)
violet-sto/Bridge-IF/src/datamodules/multichain_datamodule.py
code served (permissive licence) · get_code("58733d13462215cd")
How it ran

no invocation recorded.

new_arange Not yet run
unverified (harvested, no recorded run)
violet-sto/Bridge-IF/src/tasks/fixedbb/markov_bridge_pifold.py
code served (permissive licence) · get_code("5e40de0eec5388cd")
How it ran

no invocation recorded.

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, 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 1 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
new_arange 6 other papers
6 dated earlier
2002.03079 (2020-02)
Blank Language Models
2109.04084 (2021-09)
Thinking Clearly, Talking Fast: Concept-Guided Non-Autoregressive Generation for Open-Domain Dialogue Systems
2208.06073 (2022-08)
Conditional Antibody Design as 3D Equivariant Graph Translation
and 3 more not named here
convert_by_alphabets 1 other paper
1 dated earlier
2208.06073 (2022-08)
Conditional Antibody Design as 3D Equivariant Graph Translation

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

Inverse protein folding is a fundamental task in computational protein design, which aims to design protein sequences that fold into the desired backbone structures. While the development of machine learning algorithms for this task has seen significant success, the prevailing approaches, which predominantly employ a discriminative formulation, frequently encounter the error accumulation issue and often fail to capture the extensive variety of plausible sequences. To fill these gaps, we propose Bridge-IF, a generative diffusion bridge model for inverse folding, which is designed to learn the probabilistic dependency between the distributions of backbone structures and protein sequences. Specifically, we harness an expressive structure encoder to propose a discrete, informative prior derived from structures, and establish a Markov bridge to connect this prior with native sequences. During the inference stage, Bridge-IF progressively refines the prior sequence, culminating in a more plausible design. Moreover, we introduce a reparameterization perspective on Markov bridge models, from which we derive a simplified loss function that facilitates more effective training. We also modulate protein language models (PLMs) with structural conditions to precisely approximate the Markov bridge process, thereby significantly enhancing generation performance while maintaining parameter-efficient training. Extensive experiments on well-established benchmarks demonstrate that Bridge-IF predominantly surpasses existing baselines in sequence recovery and excels in the design of plausible proteins with high foldability. The code is available at https://github.com/violet-sto/Bridge-IF.

For agents

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

get_harvested_code_for_paper("2411.02120")
get_code_for_paper("2411.02120")
have("2411.02120")

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

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

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

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

Connect an agent — have() is free.