Introduction
DNA has four letters, no word boundaries, and information at very different scales, from single bases through short motifs to kilobase-scale regulatory and coding structure. A DNA language model must turn that sequence into backbone tokens, and the choice trades resolution against length. Single-nucleotide tokens [1, 2] keep every base addressable but make the backbone process the full length. Fixed k-mers, overlapping [3] or not [4], and byte-pair encoding [5] shorten the sequence but tie token boundaries to a static vocabulary: position inside a token is lost, and with byte-pair merges a single-base change can re-segment its neighbourhood. Learned tokenizers let the model choose its own segmentation, either through motif-like learned units [6] or through dynamic chunking trained end to end with the backbone [7, 8, 9].
In this task the backbones (a bidirectional Mamba and a Transformer), the pretraining data, the optimiser and the downstream protocols are all fixed. What we design is everything between the nucleotides and the backbone: the vocabulary, any segmentation network, the pretraining objective and the map from backbone states back to per-nucleotide representations. One tokenizer must serve both backbones.
Learned chunking is the natural answer to the resolution/length trade-off, and it is also the
hardest to train. Three difficulties shaped our method. Masking interacts with segmentation. Under
masked-language-model pretraining a chunker sees [MASK] tokens that will never appear downstream;
if boundaries are forced around them and those forced boundaries count toward the compression
target, the router learns the wrong rate on real sequence. A skip connection can solve the
pretext task by itself. Chunked models carry a nucleotide-resolution skip from encoder to decoder;
if the local path can reconstruct a masked base, the backbone is never needed and receives little
training signal. Scale is fragile. With a high fixed learning rate and bfloat16, unnormalised
encoder states can grow until they swamp everything added to them. Several parts of our design
answer these.
Method
Our tokenizer, which we call BioSpan, is a single-stage learned chunker: a short convolutional
encoder at nucleotide resolution, a boundary router, a span pooler that turns each chunk into one
backbone token, the fixed backbone over chunks, one chunk-level attention block, a two-stream
dechunker back to nucleotides, a one-layer bidirectional Mamba decoder, and one nucleotide-level
attention block. It learns no static vocabulary: fit and cpu_encode do nothing.
A mask-safe nucleotide embedding
Each nucleotide is embedded as the sum of a 1-mer embedding and a centred trinucleotide embedding,
, where for
A, C, G, T and for anything else, including [MASK] and N. The trinucleotide index of a
masked position therefore contains a 4 in its own slot, so the context embedding never reveals the
base that is to be predicted. Both tables are initialised at standard deviation , so
their sum matches the starter's 0.02 embedding scale.
class MaskSafeCodonEmbed(nn.Module):
"""Mask-safe 1-mer (16) + centered 3-mer codon/trinucleotide (125) embedding calibrated to std=0.02."""
def __init__(self, d_model: int):
super().__init__()
self.emb1 = nn.Embedding(16, d_model)
self.emb3 = nn.Embedding(125, d_model)
self.reset_parameters()
def reset_parameters(self):
s = 0.02 / math.sqrt(2.0)
nn.init.normal_(self.emb1.weight, std=s)
nn.init.normal_(self.emb3.weight, std=s)
def forward(self, ids: torch.Tensor) -> torch.Tensor:
c = torch.where((ids >= 7) & (ids <= 10), ids - 7, torch.full_like(ids, 4))
pad1 = torch.full((ids.shape[0], 1), 4, dtype=ids.dtype, device=ids.device)
cp = torch.cat([pad1, c, pad1], dim=1)
L = ids.shape[1]
k3 = cp[:, 0:L] * 25 + cp[:, 1 : L + 1] * 5 + cp[:, 2 : L + 2]
return self.emb1(ids) + self.emb3(k3)Two encoder blocks follow. Each applies depthwise convolutions of widths 3, 7 and 15 in parallel to the normalised state, a pointwise mix, and a SwiGLU feed-forward layer, both as residual updates. The encoder is strictly finite-impulse-response: with the trinucleotide embedding, a position sees at most 15 bases to either side, so a base change can only move boundaries nearby.
A bias-free cosine router
Boundaries come from a cosine score between adjacent encoder states. With and ,
and a boundary is placed where , with a straight-through gradient. The score is symmetric in the two members of the pair, and there is no bias term: a shared scalar bias moves every position's probability at once, which is what we found makes the boundary rate oscillate (Section 4). and start near the identity.
class SymRouter(nn.Module):
"""Strand-symmetric bias-free cosine boundary router on S^{d-1}."""
def __init__(self, d: int):
super().__init__()
self.w_q = nn.Linear(d, d, bias=False)
self.w_k = nn.Linear(d, d, bias=False)
self.reset_parameters()
def reset_parameters(self):
with torch.no_grad():
eye = torch.eye(self.w_q.weight.shape[0], dtype=self.w_q.weight.dtype)
self.w_q.weight.copy_(eye + 0.01 * torch.randn_like(self.w_q.weight))
self.w_k.weight.copy_(eye + 0.01 * torch.randn_like(self.w_k.weight))
def forward(self, x: torch.Tensor):
q = F.normalize(self.w_q(x).float(), dim=-1, eps=1e-6)
k = F.normalize(self.w_k(x).float(), dim=-1, eps=1e-6)
sim = 0.5 * ((q[:, 1:] * k[:, :-1]).sum(-1) + (q[:, :-1] * k[:, 1:]).sum(-1))
first = torch.ones((x.shape[0], 1), device=x.device, dtype=torch.float32)
p = torch.cat([first, 0.5 * (1.0 - sim)], dim=1)
return p, _RoundSTE.apply(p)Masked positions get their own chunks, and the rate is enforced only where the router chose
During pretraining we override the router in two ways. Every transition between positions carrying
the [MASK] token and other positions is a forced boundary, and inside a run of [MASK] tokens a
boundary is forced every 5 positions from the run's start, so no chunk mixes [MASK] tokens with
visible bases and no such chunk is longer than 5. The compression target is then applied only to the remaining unforced positions,
through the ratio loss of dynamic chunking [7]. With the fraction of unforced
positions that are boundaries (no gradient), the mean boundary probability over the same
positions, and for a target rate ,
The harness supplies a repeat annotation during pretraining only; when it is present, the targets are stratified: we average the loss with over non-repeat positions and with over repeat positions. Without it, a single target applies. The annotation is never read when representations are computed for downstream use.
def _isolated_mask_boundaries(special: torch.Tensor, b_router: torch.Tensor, max_mask_span: int = 5):
B, L = special.shape
dev = special.device
idx = torch.arange(L, device=dev)[None, :].expand(B, L)
trans = torch.zeros_like(special)
trans[:, 0] = True
if L > 1:
trans[:, 1:] = special[:, 1:] != special[:, :-1]
M_runs = int(trans.long().sum(1).max().clamp(min=1))
run_id = (trans.long().cumsum(1) - 1).clamp(min=0, max=M_runs - 1)
run_starts = torch.zeros((B, M_runs), dtype=torch.long, device=dev)
run_starts.scatter_(1, run_id.masked_fill(~trans, 0), torch.where(trans, idx, torch.zeros_like(idx)))
run_starts[:, 0] = 0
rel_pos = idx - run_starts.gather(1, run_id)
b_on_mask = ((rel_pos % max_mask_span) == 0).to(b_router.dtype)
b = torch.where(special, b_on_mask, b_router)
b = torch.where(trans, torch.ones_like(b), b)
unforced = (~special) & (~trans)
return b, unforced
def _exact_unforced_ratio_loss(b: torch.Tensor, p: torch.Tensor, target: float, unforced_mask: torch.Tensor) -> torch.Tensor:
mask_u = unforced_mask.float()
n = mask_u.sum(1).clamp(min=1.0)
f = (b.detach().float() * mask_u).sum(1) / n
G = (p.float() * mask_u).sum(1) / n
N = 1.0 / target
return ((N / (N - 1.0)) * ((N - 1.0) * f * G + (1.0 - f) * (1.0 - G))).mean()Pooling spans, with physical coordinates
Each chunk becomes one backbone token: the state at its first position, plus a learned projection of the chunk mean, a salience-weighted mean minus the plain mean, and intra-chunk moments of a 64-dimensional projection against four basis functions of the relative position : , , and the codon phase measured from the chunk start . The projection is zero-initialised, so at the start each chunk is represented by its first nucleotide.
We then add a coordinate embedding of each chunk: its span (, clipped linear, reciprocal and square-root forms), the codon phases of its start, end, centre and span and the period-2 phases of its start, end and span, and its centre in base pairs relative to the window's midpoint, encoded as , its square, , , Gaussian bells for , and sinusoids of wavelength 10.5, 21, 42, 147 and 320 base pairs. These coordinates are in base pairs, not in fractions of the window. The embedding is added in proportion to the token's own detached RMS, , so it keeps pace with the content's scale without changing the content's gradient. The same construction, with separate weights, is added again to the backbone's output.
After the backbone, one bidirectional self-attention and SwiGLU block runs over the chunks. Its queries and keys are RMS-normalised per head (initial gain 1.35), and half of each head's dimensions are rotated by rotary embeddings at the chunk's centre in base pairs while the other half are left unrotated. Its parameters train at a quarter of the base learning rate.
A two-stream dechunker
Mapping chunks back to nucleotides is where a chunked model recovers resolution, and we split it into a smooth stream and a detail stream that are normalised separately.
The smooth stream is a confidence-weighted, continuous-time version of the boundary-weighted moving average used in dynamic chunking [7], run in both directions. Write , with clipped to , and let chunk span with normalised state . Forward,
and a nucleotide inside chunk receives
with in the first chunk. The backward pass is the mirror image, using the probabilities after up to and including the next chunk's start, and the stream is . A nucleotide the router was unsure about is drawn toward the neighbouring chunk's smoothed state; one inside a confident chunk keeps its own chunk's state. Both recurrences are computed with a log-depth prefix scan.
s_of_t = seg_starts.gather(1, seg)
e_of_t = seg_ends.gather(1, seg)
mask_f = (seg > 0) & valid
log_alpha = torch.where(mask_f, (cs[:, 1:] - cs.gather(1, s_of_t)).float(), torch.zeros((B, L), device=dev))
alpha = torch.where(mask_f, torch.exp(log_alpha), torch.zeros_like(log_alpha))
mask_A = (m_idx > 0) & valid_m
log_A = torch.where(mask_A, (cs.gather(1, seg_ends) - cs.gather(1, seg_starts)).float(), torch.zeros((B, M), device=dev))
A_seg = torch.where(mask_A, torch.exp(log_A), torch.zeros_like(log_A))
zf = z_in.float()
F_seg = _prefix_ema_fwd((1.0 - A_seg)[:, :, None] * zf, A_seg)
F_prev = torch.cat([torch.zeros((B, 1, D), device=dev, dtype=torch.float32), F_seg[:, :-1]], dim=1)
z_of_t = zf.gather(1, seg[:, :, None].expand(-1, -1, D))
f_t = alpha[:, :, None] * F_prev.gather(1, seg[:, :, None].expand(-1, -1, D)) + (1.0 - alpha)[:, :, None] * z_of_t
mask_b = (seg < (seg_len - 1)[:, None]) & valid
log_beta = torch.where(mask_b, (cs.gather(1, (e_of_t + 1).clamp(max=L)) - cs[:, 1:]).float(), torch.zeros((B, L), device=dev))
beta = torch.where(mask_b, torch.exp(log_beta), torch.zeros_like(log_beta))
mask_B = m_idx < (seg_len - 1)[:, None]
log_B = torch.where(
mask_B,
(cs.gather(1, (seg_ends + 1).clamp(max=L)) - cs.gather(1, (seg_starts + 1).clamp(max=L))).float(),
torch.zeros((B, M), device=dev),
)
B_seg = torch.where(mask_B, torch.exp(log_B), torch.zeros_like(log_B))
R_seg = _prefix_ema_fwd(((1.0 - B_seg)[:, :, None] * zf).flip(1), B_seg.flip(1)).flip(1)
R_next = torch.cat([R_seg[:, 1:], torch.zeros((B, 1, D), device=dev, dtype=torch.float32)], dim=1)
r_t = beta[:, :, None] * R_next.gather(1, seg[:, :, None].expand(-1, -1, D)) + (1.0 - beta)[:, :, None] * z_of_t
ema_out = (0.5 * (f_t + r_t)).to(z_in.dtype)The detail stream restores what a chunk average cannot hold. First, a polynomial and codon-phase basis: from each chunk state we generate six 64-dimensional coefficient vectors and combine them at nucleotide with , , and , then project, RMS-normalise and scale (initial scale 0.55). Second, each nucleotide attends to the chunks , and around its own: the query is built from the smooth stream plus the basis term, keys and values from the chunk states, queries and keys are QK-normalised, and a small network adds a per-head bias computed from the offset to each chunk's centre, its span and the codon phase relative to that chunk's start (output RMS-normalised, initial scale 0.35). The dechunker returns the smooth stream and the detail stream separately, as well as their sum.
Merging, and cutting the shortcut
The dechunked sum, scaled per channel (initial 0.12), is added to the encoder state and passed
through one Caduceus-style bidirectional Mamba layer [2] with tied input and output
projections. During pretraining the encoder skip is removed for every nucleotide whose chunk contains
a [MASK], so the decoder's input at those positions is only what came back through the backbone.
The cut is local: neighbouring positions keep their skip, and the bidirectional decoder and the top
attention layer can still carry nearby encoder information into a masked chunk. The decoder output is then combined with the two dechunker streams, each with its own
normalisation and per-channel scale (initial 0.42 and 0.38):
A last nucleotide-level attention layer reads with QK-normalisation (gain 1.55), half-dimension rotary positions, the centre-position features added to queries and keys, and a per-channel output scale initialised at 0.30, followed by a final RMSNorm. During pretraining its keys and values use the decoder output with its gradient stopped, context, so the gradient that reaches the decoder through this layer comes only through its queries and its residual path, not through the keys and values.
z_s0_raw, ema_out, detail_out = self.dechunk(z, b1, p1)
z_s0_scaled = z_s0_raw * self.dechunk_scale.to(z.dtype)[None, None, :]
if pretrain:
allow_skip = (~_in_marked_segment(is_mask, seg1, M1)).to(h1.dtype)[:, :, None]
d_in = z_s0_scaled + h1 * allow_skip
else:
d_in = z_s0_scaled + h1
hid_d, res_d = _run_mamba_raw(self.dec, d_in)
u_local = rms_norm_fn(
hid_d,
self.norm_local.weight,
self.norm_local.bias,
eps=self.norm_local.eps,
residual=res_d,
prenorm=False,
residual_in_fp32=False,
)
u_ema = self.norm_ema(ema_out)
u_detail = self.norm_detail(detail_out)
ctx_branch = (
self.ema_scale.to(u_local.dtype)[None, None, :] * u_ema
+ self.detail_scale.to(u_local.dtype)[None, None, :] * u_detail
)
v_q = u_local + ctx_branch
v_kv = (u_local.detach() + ctx_branch) if pretrain else v_qPretraining objective
We mask positions in two ways at once: each position seeds a 5-base span with probability 0.016, and
each position is masked on its own with probability 0.070; the first position is always masked. A
masked position becomes [MASK] with probability 0.8, a uniformly random base (A, C, G or T) with
probability 0.1, and is left unchanged otherwise. All prediction losses are taken over masked positions, as
weighted means; when the repeat annotation is present, repeat positions get weight 0.1. The output
head predicts the base, the centred 3-mer and the centred 5-mer from untied classifiers. A second head
reads the chunk states (after the chunk attention block), broadcast to every nucleotide of the chunk,
and predicts the base and the 3-mer from those states plus six intra-chunk position features. A third
classifier, also on the chunk state but with no position input, predicts the distribution
of the 16 dinucleotides in a 129-position window around :
The auxiliary terms ask the backbone's own tokens to carry base identity, local context and regional composition, rather than leaving all of that to the decoder.
mlm_main = ce1 + 0.30 * ce3 + 0.20 * ce5
bb1, bb3, bb_reg = self.aux_bb_head(z_direct[sel], aux_pos[sel])
mlm_bb1 = (F.cross_entropy(bb1.float(), y1, reduction="none") * w_norm).sum()
if bool(v3.any()):
mlm_bb3 = (F.cross_entropy(bb3[v3].float(), y3[v3], reduction="none") * w_norm[v3]).sum()
else:
mlm_bb3 = bb3.float().sum() * 0.0
if bool(rv_sel.any()):
pr = p_reg_sel[rv_sel]
log_qr = F.log_softmax(bb_reg[rv_sel].float(), dim=-1)
kl_reg = ((pr * ((pr.clamp_min(1e-8)).log() - log_qr)).sum(dim=-1) * w_norm[rv_sel]).sum()
else:
kl_reg = bb_reg.float().sum() * 0.0
mlm_bb = mlm_bb1 + 0.30 * mlm_bb3 + 0.50 * kl_reg
stats["mlm"] = ce1.detach()
stats["mlm_bb"] = mlm_bb1.detach()
loss = mlm_main + self.AUX_BB_WEIGHT * mlm_bb + self.RATIO_WEIGHT * rlParameter groups set the router's learning rate to half the base rate, the coordinate modules to 0.4 of it, the dechunk scale to twice it, and all attention parameters to a quarter of it with weight decay 0.1 on their matrices. In the agent's own measurement the submitted tokenizer has 3,690,072 parameters.
Results
| Method | ① | ② | ③ | ④ |
|---|---|---|---|---|
| Benchmark mean score ↑ | Benchmark mean score ↑ | Benchmark mean score ↑ | Benchmark mean score ↑ | |
| Gemini 4 Carbon | 0.653 | 0.501 | 0.639 | 0.505 |
| Single-nucleotide tokens | 0.621 | 0.457 | 0.626 | 0.454 |
| Non-overlapping 6-mers | 0.594 | 0.445 | 0.611 | 0.434 |
| Overlapping 6-mers | 0.598 | 0.474 | 0.635 | 0.468 |
| Byte-pair encoding | 0.564 | 0.437 | 0.567 | 0.429 |
| DNAChunker | 0.629 | 0.466 | 0.624 | 0.457 |
| DNAChunker, camera-ready decoder | 0.628 | 0.465 | 0.629 | 0.462 |
| dnaHNet | 0.606 | 0.443 | 0.599 | 0.412 |
| MxDNA | 0.650 | 0.468 | 0.639 | 0.438 |
| No pretraining | 0.623 | 0.399 | 0.409 | 0.292 |
- ① NT benchmark (revised) · Mamba backbone
- ② BEND · Mamba backbone
- ③ NT benchmark (revised) · Transformer backbone
- ④ BEND · Transformer backbone
BioSpan scores above every baseline on every setting; the margins differ widely. On BEND-Mamba it reaches 0.501 against 0.474 for the strongest baseline, Overlapping 6-mers [3], and on BEND-Transf 0.505 against 0.468 (Overlapping 6-mers [3]). On NT-Mamba the lead is narrow: 0.653 against 0.650 for MxDNA [6]. On NT-Transf we are only marginally ahead of the strongest baseline, 0.639 against 0.639 (MxDNA [6]); the difference is in the fourth decimal place.
Against the single-nucleotide starter, the gain is largest on BEND-Mamba (0.457 for the starter) and BEND-Transf (0.454), smaller on NT-Mamba (0.621) and smallest on NT-Transf (0.626). Two of the other dynamic chunkers do not reliably beat single-nucleotide tokens: DNAChunker scores 0.629, 0.466, 0.624 and 0.457 on NT-Mamba, BEND-Mamba, NT-Transf and BEND-Transf, above the starter on three of them and below it on NT-Transf, and dnaHNet scores 0.606, 0.443, 0.599 and 0.412, below the starter on all four (the dnachunker_v4 variant, by contrast, is above the starter on all four). That gap, between learned segmentation in principle and learned segmentation that trains well, is what our fixes aim at.
On BEND-Mamba and BEND-Transf the strongest baseline is overlapping 6-mers, not a learned method, and these are the two settings where our margin is largest. On NT-Mamba and NT-Transf the strongest baseline is MxDNA, which is itself a learned tokenizer.
How we got here
BioSpan is the sixteenth version of a design that was narrowed mostly by diagnosing failures. We read the baselines' code and the learned-chunking papers, built our own development benchmark of downstream tasks with short pretraining runs on both backbones, and ran the reference tokenizers through it as well. All figures in this section are our development measurements, as recorded in the run's notes; the development composite is our own average over those tasks, not the task's metric.
- The baselines located the problems. Single-nucleotide tokens collapsed on the Transformer backbone in our runs: an effective rank of 27.26 and a cosine of 0.9753 between adjacent positions, against 119.93 and 0.4921 on Mamba. In our reading of the two-stage dnachunker_v4 baseline, its compression loss also counted the boundaries forced around masked positions, which is why our ratio loss sees only unforced positions. Byte-pair encoding performed poorly in our runs.
- Several early components did not survive. Our third to fifth versions tried a replaced-token-detection objective and a salience bottleneck with a margin loss; neither is in the final design. Our sixth version collapsed outright (adjacent cosine near 1). An 11-way single-factor ablation on short runs found that every added module trained cleanly except the multi-scale stem, which alone collapsed the Mamba run to a rank of 1.2: an RMSNorm applied to embeddings of scale 0.02 amplifies them about fifty-fold and feeds an unrescaled residual.
- A router with a learned global bias oscillated. Adding a shared scalar bias to the boundary logit moved every position across the threshold together, and the boundary fraction swung between about 0.17 and 0.44. The bias-free cosine router rotates smoothly instead.
- The Mamba encoder ran away in scale. In both our tenth version and the dnachunker_v4 baseline, encoder and chunk states grew to about within 80 steps, at which point bfloat16 addition erases the backbone's residual updates and anything else added to them. Soft RMS caps placed outside the encoder only starved it. Replacing the Mamba encoder with the finite-impulse-response convolution blocks solved it at the source: in 220-step probes the encoder state stayed in the tens instead of reaching with a Mamba encoder, and boundaries far from a single-base change no longer flipped (0.00 against 0.19). Scaling the coordinate embedding by the detached RMS came from the same analysis: shrinking the chunk tokens themselves weakened their gradients.
- Chunk attention needed QK-normalisation, and the 5-mer embedding table was dropped. Without per-head QK-normalisation and at the full learning rate, chunk attention collapsed (a chunk-state rank of 1.1); the final block has both QK-normalisation and a quarter learning rate. A 3,125-row 5-mer input table memorised small training sets, so the input embedding stops at trinucleotides, and 5-mers survive only as a prediction target. We also replaced window coordinates normalised by the window length with coordinates in base pairs, and we replaced by smooth Gaussian bells after a derivative kink at the window centre showed up as jitter.
- A nucleotide-level attention block, then a scale on it. Linear probes on a frozen checkpoint found signal at single-base resolution that a chunk-level path lost. Our thirteenth version added the top attention layer with half-dimension rotary positions, together with the regional dinucleotide target on the chunk states, and its mean development composite across the two backbones rose to 0.4740 from 0.4577 for the twelfth; the gain belongs to these changes together. The next version changed several things at once (a rank-preserving dechunker, multiplicative context gating, a SwiGLU after the top attention) and fell back to 0.4707. Probes then showed that the top attention, at full strength, perturbed frozen features at the position of a single-base change, which is why its output now carries a small learned scale.
- The two dechunker streams had become redundant. In our fifteenth version (0.4710), the dechunked context and the smooth stream had a cosine of 0.941. In the sixteenth version the dechunker returns a separately normalised smooth stream and detail stream; the cosine between them fell to 0.160 on Mamba and 0.253 on the Transformer, and the mean composite rose to 0.4754, the best we recorded.
- Two single-variable ablations of the final design. Removing the neighbouring-chunk attention from the detail stream lowered the mean composite to 0.4704. Removing the regional dinucleotide KL lowered the Mamba composite from 0.4771 to 0.4698 (we ran this ablation on Mamba only). A repeat of the final design with a second random initialisation on both backbones gave, together with the original runs, a mean composite of 0.4746 ± 0.0008 over the four runs.
What we take from this process is that every learned-chunking failure we hit came from one of three causes: shortcuts (the encoder skip and the masked boundaries), scale (unnormalised encoder state competing with normalised branches) and redundancy (two context streams carrying the same thing). Several components of BioSpan exist to remove one of them.
Limitations
- Two of the four margins are small. On NT-Mamba our lead over MxDNA is narrow, and on NT-Transf it is only in the fourth decimal place. The contribution is clear on BEND-Mamba and BEND-Transf only.
- Much of the machinery is not tokenization in the narrow sense. BioSpan carries a one-layer bidirectional Mamba decoder, a chunk-level attention block and a nucleotide-level attention block of its own, on top of the backbone. The task puts the mapping back to nucleotides in scope, but part of our gain may come from that added capacity rather than from the segmentation. The no-pretraining control shows that capacity and inductive bias alone matter here: it scores 0.623 on NT-Mamba, above the single-nucleotide starter's 0.621, against our 0.653.
- Nucleotide-level attention is quadratic in sequence length. The top attention layer attends over every nucleotide, which will dominate the cost on longer inputs than we tested.
- Most components were never ablated in the final design. Only the neighbouring-chunk attention and the regional KL received single-variable ablations, the second on one backbone only. The remaining choices come from short probes on earlier versions, and the many constants (the masking rates, the loss weights, the ratio targets, the coordinate wavelengths, the 129-base window, the initial scales) are hand-set.
- Our development signal was our own. Design choices were made on a development benchmark we assembled and on short pretraining runs, and were selected on it over sixteen versions, so some selection bias toward that benchmark is likely.
- Part of the objective depends on an annotation. The stratified ratio targets and the down-weighting of repeat positions rely on the repeat annotation the harness supplies during pretraining, and are active only when it is present; without it the method falls back to a single rate and uniform weights.
References
- Eric Nguyen, Michael Poli, Marjan Faizi et al. (2023). HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolution. NeurIPS.
- Yair Schiff, Chia-Hsiang Kao, Aaron Gokaslan et al. (2024). Caduceus: Bi-Directional Equivariant Long-Range DNA Sequence Modeling. ICML.
- Yanrong Ji, Zhihan Zhou, Han Liu et al. (2021). DNABERT: pre-trained Bidirectional Encoder Representations from Transformers model for DNA-language in genome. Bioinformatics.
- Hugo Dalla-Torre, Liam Gonzalez, Javier Mendoza-Revilla et al. (2025). Nucleotide Transformer: building and evaluating robust foundation models for human genomics. Nature Methods.
- Zhihan Zhou, Yanrong Ji, Weijian Li et al. (2024). DNABERT-2: Efficient Foundation Model and Benchmark For Multi-Species Genome. ICLR.
- Lifeng Qiao, Peng Ye, Yuchen Ren et al. (2024). Model Decides How to Tokenize: Adaptive DNA Sequence Tokenization with MxDNA. NeurIPS.
- Sukjun Hwang, Brandon Wang, Albert Gu (2026). Dynamic Chunking for End-to-End Hierarchical Sequence Modeling. ICLR.
- Taewon Kim, Jihwan Shin, Hyomin Kim et al. (2026). DNACHUNKER: Learnable Tokenization for DNA Language Models. ICML.
- Arnav Shah, Junzhe Li, Parsa Idehpour et al. (2026). dnaHNet: A Scalable and Hierarchical Foundation Model for Genomic Sequence Learning. ICML.