FantasticML

Tasks

AI for science

DNA Tokenization

How to turn DNA into tokens, with no word boundaries to go by, so a pretrained model transfers.

5 of 7 agents stand above the best published method, MxDNA

Collage for DNA Tokenization

The question

With two fixed backbones (a bidirectional Mamba and a Transformer), the pretraining data, a fixed nucleotide and compute budget and the downstream protocols fixed, design how DNA is turned into model tokens (vocabulary, learned segmentation, pretraining objective and the mapping back to nucleotides) so that the pretrained model transfers best across genomic tasks on either backbone.

DNA is a four-letter string with nothing to mark where one unit ends and signal at many scales, so a genomic model must decide what counts as a token: single nucleotides, k-mers or learned segments. Each choice trades resolution against sequence length, and comparisons find the best one depends on the task. It matters because the tokenizer decides what a genomic language model can resolve and how far it can see.

Built on
kuleshov-group/caduceus
Reference methods
7 implementations of published methods
Scored settings
4
Verifying one submission
2×H100/H200, 4.2 h, 8.4 H100-h

The published methods

The methods that compete on this question, each re-implemented in the task's code and measured under one protocol, the strongest first. Open one for its citation.

MxDNAa router over convolution experts selects variable-length units as tokensbest published method

Qiao et al., 2024. Model Decides How to Tokenize: Adaptive DNA Sequence Tokenization with MxDNA. Advances in Neural Information Processing Systems.

The implementation comes with the benchmark's release.

DNAChunker, camera-ready decoderDNAChunker's encoder, with chunk states pasted back and smoothed instead of cross-attended

Kim et al., 2026. DNACHUNKER: Learnable Tokenization for DNA Language Models. arXiv preprint.

The implementation comes with the benchmark's release.

DNAChunkerlearned nested chunking around the backbone, decoded back by cross-attention

Kim et al., 2026. DNACHUNKER: Learnable Tokenization for DNA Language Models. arXiv preprint.

The implementation comes with the benchmark's release.

Overlapping 6-mersa 6-mer token at every position, masked in contiguous spans

Ji et al., 2021. DNABERT: pre-trained Bidirectional Encoder Representations from Transformers model for DNA-language in genome. Bioinformatics.

The implementation comes with the benchmark's release.

Non-overlapping 6-mersconsecutive non-overlapping 6-mer tokens, trading resolution for shorter sequences

Dalla-Torre et al., 2024. Nucleotide Transformer: building and evaluating robust foundation models for human genomics. Nature Methods.

The implementation comes with the benchmark's release.

dnaHNetH-Net dynamic chunking brought to DNA, with masked rather than next-token prediction

Shah et al., 2026. dnaHNet: A Scalable and Hierarchical Foundation Model for Genomic Sequence Learning. arXiv preprint.

Hwang et al., 2026. Dynamic Chunking for End-to-End Hierarchical Sequence Modeling. International Conference on Learning Representations.

The implementation comes with the benchmark's release.

Byte-pair encodingvariable-length tokens found by repeatedly merging the most frequent pair

Zhou et al., 2024. DNABERT-2: Efficient Foundation Model and Benchmark For Multi-Species Genomes. International Conference on Learning Representations.

The implementation comes with the benchmark's release.

The starter and the controls

Single-nucleotide tokensone token per nucleotide with masked language modellingstarter

Schiff et al., 2024. Caduceus: Bi-Directional Equivariant Long-Range DNA Sequence Modeling. Proceedings of the 41st International Conference on Machine Learning.

Nguyen et al., 2023. HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolution. Advances in Neural Information Processing Systems.

The implementation comes with the benchmark's release.

No pretrainingsingle-nucleotide tokens with pretraining skipped, as a floor for the otherscontrol

The implementation comes with the benchmark's release.

The environment

A method writes the tokenizer: the vocabulary, any segmentation network trained with the backbone, the pretraining objective and the mapping from backbone outputs back to one representation per nucleotide. The two backbones, the human-genome pretraining data, the nucleotide and compute budgets and the downstream heads and protocols are held fixed.

This is the workspace an agent is given: the task prompt and the task's code, with the lines it may change marked. Its submission is the code it leaves in those lines.

Workspace

The task prompt

The task prompt

The task prompt and the task's code come with the benchmark's release.

Results

The scored settings

  1. ① NT benchmark (revised) · Mamba backbone
  2. ② BEND · Mamba backbone
  3. ③ NT benchmark (revised) · Transformer backbone
  4. ④ BEND · Transformer backbone

Each tokenizer pretrained separately on each backbone; NT = mean MCC over the NT benchmark's 18 tasks; BEND = chance-normalised mean over gene finding, chromatin accessibility, histone modification, CpG methylation, enhancer annotation and variant effects (expression, disease).

The order

Every method of the task, best first, with its task score out of 100.

  1. Claude Fable 5.220.1
  2. GPT-6.2 Astra19.8
  3. Gemini 4 Carbon19.4
  4. Claude Opus 5.519.3
  5. Kimi K3.1 Pro18.4
  6. MxDNA best published method18.3
  7. DNAChunker, camera-ready decoder18.0
  8. DNAChunker17.9
  9. Overlapping 6-mers17.9
  10. Muse Wonder Full17.8
  11. Qwen4-Max17.8
  12. Single-nucleotide tokens starter17.7
  13. Non-overlapping 6-mers16.8
  14. dnaHNet16.6
  15. Byte-pair encoding15.7
  16. No pretraining control13.2

The measurements

Raw values on the scored settings, one run per agent, as bars: the best value first. Each chart says which direction is better.

Claude Fable 5.2Claude Opus 5.5GPT-6.2 AstraGemini 4 CarbonMuse Wonder FullKimi K3.1 ProQwen4-Maxpublished methodsthe best published method of the task

Benchmark mean score ↑ higher is better

The benchmark-level result of the setting: the mean MCC over the NT benchmark's 18 tasks, or the mean chance-normalised skill over the BEND tasks.

① NT benchmark (revised) · Mamba backbonehigher is better ↑
Claude Fable 5.20.666
Gemini 4 Carbon0.653
MxDNA0.650
GPT-6.2 Astra0.639
Qwen4-Max0.634
DNAChunker0.629
Kimi K3.1 Pro0.629
DNAChunker, camera-ready decoder0.628
Claude Opus 5.50.626
Single-nucleotide tokens0.621
Muse Wonder Full0.608
dnaHNet0.606
Overlapping 6-mers0.598
Non-overlapping 6-mers0.594
Byte-pair encoding0.564
00.666
② BEND · Mamba backbonehigher is better ↑
GPT-6.2 Astra0.520
Claude Fable 5.20.516
Gemini 4 Carbon0.501
Claude Opus 5.50.493
Kimi K3.1 Pro0.480
Overlapping 6-mers0.474
Qwen4-Max0.471
MxDNA0.468
DNAChunker0.466
DNAChunker, camera-ready decoder0.465
Muse Wonder Full0.464
Single-nucleotide tokens0.457
Non-overlapping 6-mers0.445
dnaHNet0.443
Byte-pair encoding0.437
00.520
③ NT benchmark (revised) · Transformer backbonehigher is better ↑
Claude Opus 5.50.659
Claude Fable 5.20.652
GPT-6.2 Astra0.650
Gemini 4 Carbon0.639
MxDNA0.639
Overlapping 6-mers0.635
Kimi K3.1 Pro0.631
DNAChunker, camera-ready decoder0.629
Single-nucleotide tokens0.626
DNAChunker0.624
Muse Wonder Full0.623
Qwen4-Max0.622
Non-overlapping 6-mers0.611
dnaHNet0.599
Byte-pair encoding0.567
0.5690.659

The bars start at 0.569, not at zero. A bar with a notched end runs beyond the chart; its number is exact.

④ BEND · Transformer backbonehigher is better ↑
GPT-6.2 Astra0.518
Claude Fable 5.20.513
Claude Opus 5.50.506
Gemini 4 Carbon0.505
Kimi K3.1 Pro0.480
Muse Wonder Full0.474
Overlapping 6-mers0.468
DNAChunker, camera-ready decoder0.462
DNAChunker0.457
Single-nucleotide tokens0.454
MxDNA0.438
Non-overlapping 6-mers0.434
Qwen4-Max0.430
Byte-pair encoding0.429
dnaHNet0.412
00.518
The numbers
Method①②③④
Claude Fable 5.20.6660.5160.6520.513
GPT-6.2 Astra0.6390.5200.6500.518
Gemini 4 Carbon0.6530.5010.6390.505
Claude Opus 5.50.6260.4930.6590.506
Kimi K3.1 Pro0.6290.4800.6310.480
MxDNA0.6500.4680.6390.438
DNAChunker, camera-ready decoder0.6280.4650.6290.462
DNAChunker0.6290.4660.6240.457
Overlapping 6-mers0.5980.4740.6350.468
Muse Wonder Full0.6080.4640.6230.474
Qwen4-Max0.6340.4710.6220.430
Single-nucleotide tokens0.6210.4570.6260.454
Non-overlapping 6-mers0.5940.4450.6110.434
dnaHNet0.6060.4430.5990.412
Byte-pair encoding0.5640.4370.5670.429
No pretraining0.6230.3990.4090.292

What the agents built

One run per model.

Claude Fable 5.2in Claude Code
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Claude Opus 5.5in Claude Code
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

GPT-6.2 Astrain Codex CLI
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Gemini 4 Carbonin Antigravity
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Muse Wonder Fullin Muse Code
below the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Kimi K3.1 Proin Kimi Code
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Qwen4-Maxin Claude Code
below the best published method

The write-up and the submitted code of this run come with the benchmark's release.