SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.07272 · 2025

GENERator: A Long-Context Generative Genomic Foundation Model

arXiv · PDF · Open in the Atlas

Code that ran

5 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 5 have no contract verdict; 0 failures of our instrument; 3 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/2502.07272.json · badge: /api/ran/2502.07272.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
generteam/generator canonical (classifier label)
classifier basis not recorded on the link
5 ran · 3 no recorded run
FunctionStatusWhere it lives
calculate_accuracy Ran
ran on a synthesized input
generteam/generator/src/tasks/downstream/sequence_recovery.py
code served (permissive licence) · get_code("bd38aef5ac2339e7")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Build arguments for calculate_accuracy
predictions = [
    "abcdefghijklmnopqrstuvwxyz01234",
    "xbcdefghijklmnopqrstuvwxyz01234"
]

labels = [
    "abcdefghijklmnopqrstuvwxyz01234",
    "abcdefghijklmnopqrstuvwxyz01234"
]

seq_length = 30

ARGS = {
    "predictions": predictions,
    "labels": labels,
    "seq_length": seq_length
}
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 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
get_training_args Ran
ran on a synthesized input
generteam/generator/src/tasks/downstream/fine_tuning.py
code served (permissive licence) · get_code("e4c309376f141755")
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 TrainingArguments. 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 tempfile
from pathlib import Path

# Create a small stand-in class for args
class Args:
    def __init__(self):
        self.output_dir = tempfile.mkdtemp()
        self.epochs = 2
        self.batch_size = 4
        self.gradient_accumulation = 2
        self.save_steps = 100
        self.save_total_limit = 2
        self.logging_steps = 50
        self.report_to = ["tensorboard"]
        self.bf16 = False
        self.run_name = "test_run"
        self.warm_up = 100
        self.lr = 5e-5
        self.distributed_type = "no"
        self.fsdp_config = None
        self.ds_config = None

ARGS = {
    "args": Args()
}
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 TrainingArguments — a TrainingArguments output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TrainingArguments 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
load_and_prepare_data Ran
ran on a synthesized input
generteam/generator/src/tasks/downstream/variant_effect_prediction.py
code served (permissive licence) · get_code("5a3497d4b2c9e9af")
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
import tempfile
import os

# Create temporary parquet files with minimal valid data
temp_dir = tempfile.mkdtemp()

# Create hg38 reference genome data
# Need columns: 'ID' and 'Sequence'
hg38_data = {
    'ID': ['chr1', 'chr2', 'chr3'],
    'Sequence': [
        'N' * 100 + 'ATCGATCGATCGATCGATCGATCGATCGATCGATCGATCGATCGATCGATCGATCG',
        'ATCGATCGATCGATCGATCGATCGATCGATCGATCGATCGATCGATCGATCGATCGATCG',
        'GCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCT'
    ]
}
hg38_df = pd.DataFrame(hg38_data)
hg38_path = os.path.join(temp_dir, 'hg38.parquet')
hg38_df.to_parquet(hg38_path, index=False)

# Create ClinVar variants data
# Need columns: 'chrom' and 'pos'
clinvar_data = {
    'chrom': ['1', '2', '3'],
    'pos': [50, 60, 70],
    'variant_id': ['var1', 'var2', 'var3']
}
clinvar_df = pd.DataFrame(clinvar_data)
clinvar_path = os.path.join(temp_dir, 'clinvar.parquet')
clinvar_df.to_parquet(clinvar_path, index=False)

ARGS = {
    'hg38_path': hg38_path,
    'clinvar_path': clinvar_path,
    'context_length': 30
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, tqdm — 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
resolve_precision Ran
ran on a synthesized input
generteam/generator/src/tasks/downstream/fine_tuning.py
code served (permissive licence) · get_code("f888f5737ed04936")
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 dtype. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 logging

torch.manual_seed(0)

# Create a simple args object with bf16 attribute
class Args:
    def __init__(self, bf16=False):
        self.bf16 = bf16

# Test case 1: bf16=False (standard case)
ARGS = {
    'args': Args(bf16=False)
}
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 dtype — a dtype output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dtype 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
should_use_wandb Ran
ran on a synthesized input
generteam/generator/src/tasks/downstream/fine_tuning.py
code served (permissive licence) · get_code("1a68c98f205238b5")
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 bool, ndim 0, dtype family float, shape () 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

# Analyze the function: should_use_wandb(report_to)
# The function checks if 'wandb' is in a set of targets
# It handles report_to as either:
# 1. A list/tuple - converts each element to lowercase string
# 2. A string with comma-separated values - splits and strips

# Test case 1: report_to as a list containing 'wandb'
ARGS = {
    'report_to': ['wandb', 'tensorboard']
}
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 bool, ndim 0, dtype family float, shape () — shape () 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
compute_logits_parallel Not yet run
unverified (harvested, no recorded run)
generteam/generator/src/tasks/downstream/variant_effect_prediction.py
code served (permissive licence) · get_code("c15e3fbc70c0a517")
How it ran

no invocation recorded.

compute_logits_shard Not yet run
unverified (harvested, no recorded run)
generteam/generator/src/tasks/downstream/variant_effect_prediction.py
code served (permissive licence) · get_code("628b4145daeb0431")
How it ran

no invocation recorded.

process_data_shard Not yet run
unverified (harvested, no recorded run)
generteam/generator/src/tasks/downstream/sequence_recovery.py
code served (permissive licence) · get_code("5d3c1f73af6af134")
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, 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 8 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

The rapid advancement of DNA sequencing has produced vast genomic datasets, yet interpreting and engineering genomic function remain fundamental challenges. Recent large language models have opened new avenues for genomic analysis, but existing approaches are often limited by restricted training scope, constrained generative capability, or prohibitive computational cost. We introduce GENErator, a generative genomic foundation model for long-context DNA modeling, with a context length of 98k nucleotides, pre-trained on 386 billion nucleotides of eukaryotic DNA. Without task-specific fine-tuning, GENERator exhibits strong intrinsic capabilities: unsupervised embedding analyses reveal phylogenetically coherent structure, and sequence recovery benchmarks demonstrate generative accuracy comparable to or exceeding state-of-the-art models with substantially improved computational efficiency. In a zero-shot setting, GENERator achieves competitive variant effect prediction performance relative to alignment-based methods, while remaining fully alignment-free and broadly applicable across species. With task-specific fine-tuning, the model attains leading performance on established genomic benchmarks. We further demonstrate practical generative applications. GENERator can generate protein-coding DNA sequences that translate into structurally plausible proteins and, through a prompt-guided design framework, design cis-regulatory elements with targeted activity profiles, including synthetic super-enhancers validated by high-throughput UMI-STARR-seq assays. Together, these results establish GENERator as an efficient and biologically grounded framework for genomic interpretation and programmable sequence design. Code and supplementary resources are available at https://github.com/GenerTeam/GENERator.

For agents

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

get_harvested_code_for_paper("2502.07272")
get_code_for_paper("2502.07272")
have("2502.07272")

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

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

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

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

Connect an agent — have() is free.