SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.13485 · 2025

Curriculum Learning for Biological Sequence Prediction: The Case of De Novo Peptide Sequencing

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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; 3 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/2506.13485.json · badge: /api/ran/2506.13485.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
beam-labs/denovo canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
FunctionStatusWhere it lives
ctc_post_processing Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
beam-labs/denovo/PrimeNovo/denovo/model.py
code served (permissive licence) · get_code("876ac8be586df96a")
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 int; 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

# Construct a simple 1-D list of integers representing sentence indices from CTC output
# The function expects indices where 27 is the blank token to be removed
sentence_index = [1, 1, 2, 2, 3, 27, 3, 27, 27, 4, 4, 5]

ARGS = {
    "sentence_index": sentence_index
}
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 list, ndim 1, dtype family int — 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
listify Ran
ran, honoured the contract we drafted
beam-labs/denovo/ContraNovo/denovo/db_index.py
code served (permissive licence) · get_code("145ed062058f289a")
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 int; 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 listify takes one parameter: obj
# It tries to:
# 1. Assert that obj is not a string
# 2. Call iter(obj) to check if it's iterable
# 3. If either fails, wrap it in a list
# 4. Return list(obj)

# We'll create multiple test cases to show different behaviors

# Test case 1: A non-iterable object (will be wrapped in a list)
non_iterable = 42

# Test case 2: An iterable object (will be converted to list as-is)
iterable_list = [1, 2, 3, 4]

# Test case 3: A tuple (iterable, will be converted to list)
iterable_tuple = (5, 6, 7)

# Test case 4: A string (should NOT be split, should be wrapped in a list)
string_obj = "hello"

# Test case 5: A numpy array (iterable, will be converted to list)
numpy_array = np.array([1, 2, 3])

# Test case 6: A tensor (iterable, will be converted to list)
tensor_obj = torch.tensor([1, 2, 3, 4])

# We need to pick one for ARGS. The function signature only has 'obj' parameter
# Let's use a simple case: a non-iterable integer that will be wrapped
ARGS = {
    "obj": 42
}
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 list, ndim 1, dtype family int — 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
prepare_batch Ran
ran; our contract draft was wrong, not the code
beam-labs/denovo/ContraNovo/denovo/dataloaders.py
code served (permissive licence) · get_code("e21ac907bcfd2287")
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 numpy as np

torch.manual_seed(0)

# Construct a batch of spectra data
# Each spectrum is a tuple of (spectrum_tensor, precursor_mz, precursor_charge, spectrum_id)

# Spectrum 1: 3 peaks (m/z, intensity pairs)
spectrum1 = torch.tensor([
    [100.0, 0.5],
    [200.0, 0.8],
    [300.0, 1.0]
], dtype=torch.float32)

# Spectrum 2: 2 peaks (will be padded to match spectrum1)
spectrum2 = torch.tensor([
    [150.0, 0.6],
    [250.0, 0.9]
], dtype=torch.float32)

# Create batch list with required format
batch = [
    (spectrum1, 500.0, 2, "spectrum_001"),
    (spectrum2, 600.0, 3, "spectrum_002")
]

ARGS = {
    "batch": batch
}
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
remove_repentance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
beam-labs/denovo/PrimeNovo/denovo/model.py
code served (permissive licence) · get_code("a87eb9bcb3fae642")
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 int; 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

# Analyze the function:
# remove_repentance takes a List[int] and returns a List[int]
# It eliminates consecutive repeated integers from the list
# Example: [1, 1, 2, 2, 3] --> [1, 2, 3]

# Create valid test cases for the function
index_list_1 = [1, 1, 2, 2, 3]
index_list_2 = [0, 0, 0, 1, 1, 2]
index_list_3 = [5]
index_list_4 = [1, 2, 3, 4, 5]

ARGS = {
    "index_list": [1, 1, 2, 2, 3]
}
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 list, ndim 1, dtype family int — 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
mass_cal Not yet run
unverified (harvested, no recorded run)
beam-labs/denovo/PrimeNovo/denovo/model.py
code served (permissive licence) · get_code("31a373bc695fdaac")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 4 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
listify 2 other papers
2 dated earlier
2312.11584 (2023-12)
ContraNovo: A Contrastive Learning Approach to Enhance De Novo Peptide Sequencing
2402.11363 (2024-02)
Transformer-based de novo peptide sequencing for data-independent acquisition mass spectrometry

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Peptide sequencing-the process of identifying amino acid sequences from mass spectrometry data-is a fundamental task in proteomics. Non-Autoregressive Transformers (NATs) have proven highly effective for this task, outperforming traditional methods. Unlike autoregressive models, which generate tokens sequentially, NATs predict all positions simultaneously, leveraging bidirectional context through unmasked self-attention. However, existing NAT approaches often rely on Connectionist Temporal Classification (CTC) loss, which presents significant optimization challenges due to CTC's complexity and increases the risk of training failures. To address these issues, we propose an improved non-autoregressive peptide sequencing model that incorporates a structured protein sequence curriculum learning strategy. This approach adjusts protein's learning difficulty based on the model's estimated protein generational capabilities through a sampling process, progressively learning peptide generation from simple to complex sequences. Additionally, we introduce a self-refining inference-time module that iteratively enhances predictions using learned NAT token embeddings, improving sequence accuracy at a fine-grained level. Our curriculum learning strategy reduces NAT training failures frequency by more than 90% based on sampled training over various data distributions. Evaluations on nine benchmark species demonstrate that our approach outperforms all previous methods across multiple metrics and species.

For agents

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

get_harvested_code_for_paper("2506.13485")
get_code_for_paper("2506.13485")
have("2506.13485")

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

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

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

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

Connect an agent — have() is free.