SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.00598 · ICML · 2025

Fast and Low-Cost Genomic Foundation Models via Outlier Removal

Hu, Zhihan Zhou, Han Liu, Haozheng Luo, Maojiang Su, Chenghao Qiu, Zoe Mehta, Guo Ye, Jerry Yao-Chieh

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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; 8 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/2505.00598.json · badge: /api/ran/2505.00598.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
MAGICS-LAB/GERM canonical (classifier label)
classifier basis not recorded on the link
9 ran · 1 no recorded run
FunctionStatusWhere it lives
generate_kmer_str Ran
ran; our contract draft was wrong, not the code
MAGICS-LAB/GERM/evaluation/validate_nt.py
pointer only (licence: MIT); the stored copy get_code serves, from ht-neko/information-entropy-invariance, is pointer only (licence: NONE) · get_code("12c35a5891d87be1")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ht-neko/information-entropy-invariance, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_alter_of_dna_sequence Ran
ran; our contract draft was wrong, not the code
MAGICS-LAB/GERM/evaluation/validate_nt.py
pointer only (licence: MIT); the stored copy get_code serves, from ht-neko/information-entropy-invariance, is pointer only (licence: NONE) · get_code("e6b562614d5aa421")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ht-neko/information-entropy-invariance, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_human_readable_count Ran
ran; our contract draft was wrong, not the code
MAGICS-LAB/GERM/FT/DNABERT-2-FT/finetune/cnt_para.py
code served (permissive licence) · get_code("e40f7b6dc5c3977a")
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 str. 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

ARGS = {
    "number": 1234567
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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_to_zero Ran
ran; our contract draft was wrong, not the code
MAGICS-LAB/GERM/DNABERT2/flash_attn_triton.py
pointer only (licence: MIT); the stored copy get_code serves, from amazon-science/dualkv-flash-attn-for-rl, is pointer only (licence: NOASSERTION) · get_code("1586b639a5abd0b0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from amazon-science/dualkv-flash-attn-for-rl, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_or_generate_kmer Ran
ran; our contract draft was wrong, not the code
MAGICS-LAB/GERM/FT/DNABERT-2-FT/finetune/train2.py
code served (permissive licence) · get_code("1de20a7e07a6fb60")
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 os
import json
import logging
from typing import List

# Set up logging to avoid warnings cluttering output
logging.basicConfig(level=logging.WARNING)

# Create a temporary directory for testing (we won't actually write files)
import tempfile
temp_dir = tempfile.gettempdir()

# Define sample DNA sequences
sample_sequences = [
    "ATCGATCGATCG",
    "GCTAGCTAGCTA",
]

# Define the arguments dictionary
ARGS = {
    "data_path": os.path.join(temp_dir, "dna_sequences.csv"),
    "texts": sample_sequences,
    "k": 3,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
pad_input Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MAGICS-LAB/GERM/DNABERT2/bert_padding.py
code served (permissive licence) · get_code("b166dc11d0f54137")
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 3, dtype family float, shape (2, 3, 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
from einops import rearrange

torch.manual_seed(0)

# Parameters for pad_input function
batch = 2
seqlen = 3
hidden_dim = 4

# Create total_nnz (total number of non-zero/selected tokens)
# Let's say we select 4 tokens across the batch
total_nnz = 4

# hidden_states: (total_nnz, hidden_dim)
# This represents flattened selected tokens from attention mask
hidden_states = torch.randn(total_nnz, hidden_dim)

# indices: (total_nnz,)
# These map the flattened tokens back to their positions in the padded (batch*seqlen) output
# Valid indices should be in range [0, batch*seqlen)
indices = torch.tensor([0, 2, 3, 5], dtype=torch.long)

ARGS = {
    "hidden_states": hidden_states,
    "indices": indices,
    "batch": batch,
    "seqlen": seqlen,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, 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, 3, 4) — shape (2, 3, 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
to_bytes Ran
ran, honoured the contract we drafted
MAGICS-LAB/GERM/FT/DNABERT-2-FT/finetune/cnt_para.py
code served (permissive licence) · get_code("49d5adb77f62eba3")
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 int, ndim 0, dtype family int, 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
import numpy as np

torch.manual_seed(0)

# The function to_bytes takes a dtype parameter and converts it to bytes
# It calls str() on dtype and extracts the last 2 characters, then divides by 8
# This works with torch dtypes like torch.float32, torch.float64, etc.

dtype_arg = torch.float32

ARGS = {
    "dtype": dtype_arg
}
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 int, ndim 0, dtype family int, 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
unpad_input Ran
ran; our contract draft was wrong, not the code
MAGICS-LAB/GERM/DNABERT2/bert_padding.py
code served (permissive licence) · get_code("ee341a843ab02d5f")
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
from einops import rearrange, repeat

torch.manual_seed(0)

# Create small tensors for testing
batch_size = 2
seq_len = 3
hidden_dim = 4

# Create hidden_states: (batch, seqlen, hidden_dim)
hidden_states = torch.randn(batch_size, seq_len, hidden_dim)

# Create attention_mask: (batch, seqlen)
# Using 1 for valid tokens and 0 for padding
attention_mask = torch.tensor([
    [1, 1, 0],  # batch 0: 2 valid tokens
    [1, 0, 0]   # batch 1: 1 valid token
], dtype=torch.bool)

ARGS = {
    "hidden_states": hidden_states,
    "attention_mask": attention_mask
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, 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
unpad_input_only Ran
ran; our contract draft was wrong, not the code
MAGICS-LAB/GERM/DNABERT2/bert_padding.py
pointer only (licence: MIT); the stored copy get_code serves, from magics-lab/dnabert_s, is pointer only (licence: NONE) · get_code("a41fa8c40b551ec1")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from magics-lab/dnabert_s, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

attach_act_hooks Not yet run
unverified (harvested, no recorded run)
MAGICS-LAB/GERM/evaluation/validate_nt.py
code served (permissive licence) · get_code("0477d55df4c9ce2a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 0 the same month, 5 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
init_to_zero 12 other papers
10 dated earlier, 2 later
2304.11277 (2023-04)
PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallel
2309.06180 (2023-09)
Efficient Memory Management for Large Language Model Serving with PagedAttention
2310.05869 (2023-10)
HyperAttention: Long-context Attention in Near-Linear Time
and 9 more not named here
pad_input 6 other papers
5 dated earlier, 1 later
2108.12409 (2021-08)
Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation
2306.15006 (2023-06)
DNABERT-2: EFFICIENT FOUNDATION MODEL AND BENCHMARK FOR MULTI-SPECIES GENOMES
2311.12570 (2023-11)
BEND: Benchmarking DNA Language Models on biologically meaningful tasks
and 3 more not named here
unpad_input 5 other papers
4 dated earlier, 1 later
2306.15006 (2023-06)
DNABERT-2: EFFICIENT FOUNDATION MODEL AND BENCHMARK FOR MULTI-SPECIES GENOMES
2311.12570 (2023-11)
BEND: Benchmarking DNA Language Models on biologically meaningful tasks
2402.08777 (2024-02)
DNABERT-S: Pioneering Species Differentiation with Species-Aware DNA Embeddings
and 2 more not named here
get_human_readable_count 3 other papers
2 dated earlier, 1 later
2312.15185 (2023-12)
emotion2vec: Self-Supervised Pre-Training for Speech Emotion Representation
2407.05361 (2024-07)
Emilia: An Extensive, Multilingual, and Diverse Speech Dataset for Large-Scale Speech Generation
2604.13073 (2026-04)
OmniTrace: A Unified Framework for Generation-Time Attribution in Omni-Modal LLMs
to_bytes 3 other papers
2 dated earlier, 1 later
2312.15185 (2023-12)
emotion2vec: Self-Supervised Pre-Training for Speech Emotion Representation
2407.05361 (2024-07)
Emilia: An Extensive, Multilingual, and Diverse Speech Dataset for Large-Scale Speech Generation
2604.13073 (2026-04)
OmniTrace: A Unified Framework for Generation-Time Attribution in Omni-Modal LLMs
unpad_input_only 3 other papers
3 dated earlier
2306.15006 (2023-06)
DNABERT-2: EFFICIENT FOUNDATION MODEL AND BENCHMARK FOR MULTI-SPECIES GENOMES
2311.12570 (2023-11)
BEND: Benchmarking DNA Language Models on biologically meaningful tasks
2402.08777 (2024-02)
DNABERT-S: Pioneering Species Differentiation with Species-Aware DNA Embeddings
generate_kmer_str 2 other papers
2 dated earlier
2406.10391 (2024-06)
BEACON: Benchmark for Comprehensive RNA Tasks and Language Models
2501.08570 (2025-01)
Information Entropy Invariance: Enhancing Length Extrapolation in Attention Mechanisms
load_or_generate_kmer 2 other papers
2 dated earlier
2406.10391 (2024-06)
BEACON: Benchmark for Comprehensive RNA Tasks and Language Models
2501.08570 (2025-01)
Information Entropy Invariance: Enhancing Length Extrapolation in Attention Mechanisms
get_alter_of_dna_sequence 1 other paper
1 dated earlier
2501.08570 (2025-01)
Information Entropy Invariance: Enhancing Length Extrapolation in Attention Mechanisms

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

To address the challenge of scarce computational resources in genomic modeling, we introduce GERM, a genomic foundation model with strong compression performance and fast adaptability. GERM improves upon models like DNABERT-2 by eliminating outliers that hinder low-rank adaptation and post-training quantization, enhancing both efficiency and robustness. We replace the vanilla attention layer with an outlier-free mechanism inspired by associative memory models. By removing outliers during both pre-training and fine-tuning, this approach accelerates adaptation, reduces computational costs, and enhances quantization robustness within acceptable loss margins. Additionally, we propose GERM-T, a strategy that employs small-step continual learning within the outlier-free framework, leveraging original checkpoints to avoid retraining from scratch. Empirically, GERM improves fine-tuning performance by 37.98% and quantization by 64.34% over the baseline model. It also reduces average kurtosis by 92.14% and maximum infinity norm by 82.77%. Compared to leading methods, GERM consistently delivers superior performance, offering a practical solution for genomic modeling in resource-constrained settings. Code is available at https://github.com/MAGICS-LAB/GERM.

For agents

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

get_harvested_code_for_paper("2505.00598")
get_code_for_paper("2505.00598")
have("2505.00598")

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

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

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

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

Connect an agent — have() is free.