DNA-LLM2Vec: Architecture-Aware Task-Conditioned Adaptation of Decoder DNA Foundation Models
Y. Liang, K. Zhai, Y. Gan, S. Li, J. Shao, G. H. Watson, M. Poesio
Key points
From the paper's conclusion- DNA-LLM2Vec is a staged decoder-to-encoder framework that opens bidirectional context, repairs the resulting mismatch with masked next-token prediction, and applies contrastive views encoding strand and positional invariance.
- The benefits of conversion are architecture-aware and task-conditioned, with crop-based positional contrastive learning helping most for extended-context families, raising frozen Avg-EPI MCC to 27.5% for DNAGPT and 26.7% for HyenaDNA.
- DNA-LLM2Vec produces frozen bidirectional representations whose most effective adaptation view depends on the task structure and the backbone.
Abstract
Decoder DNA foundation models pretrain with dense next-token prediction and scale to long sequences, but their representations are directional. This is a poor fit for genomic tasks that need sequence context both upstream and downstream of a locus. Bidirectional masked-language-model encoders supply this context, but they pretrain more sparsely and scale less easily to long windows. We introduce DNA-LLM2Vec, a staged decoder-to-encoder framework that opens bidirectional context, repairs the resulting mismatch with masked next-token prediction, and applies contrastive views encoding strand and positional invariance. We instantiate it on two architecturally distinct backbones, DNAGPT and HyenaDNA, and evaluate seven biological task families (grouped from GB, NT, GUE, and GUE+EPI) with frozen linear probing. The benefits of conversion are architecture-aware and task-conditioned rather than uniform. Crop-based positional contrastive learning helps most for the extended-context families (enhancer-promoter interaction and Virus-COVID), raising frozen Avg-EPI MCC to 27.5% for DNAGPT and 26.7% for HyenaDNA, whereas for shorter, local families the results depend on backbone and tokenisation. Beyond classification, bidirectional context and MNTP improve causal-eQTL variant-effect prediction specifically at distance, and a base-pair mutagenesis diagnostic shows that adaptation organises motif-aware contact structure while reverse-complement training imprints strand-consistent geometry, yet neither predicts the best downstream view. DNA-LLM2Vec therefore produces frozen bidirectional representations whose most effective adaptation view depends on the task structure and the backbone. Code and checkpoints are available at https://github.com/semi-nothing/dna-llm2vec.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- DNA-LLM2Vec is a staged decoder-to-encoder framework that opens bidirectional context, repairs the resulting mismatch with masked next-token prediction, and applies contrastive views encoding strand and positional invariance.
- The benefits of conversion are architecture-aware and task-conditioned, with crop-based positional contrastive learning helping most for extended-context families, raising frozen Avg-EPI MCC to 27.5% for DNAGPT and 26.7% for HyenaDNA.
- DNA-LLM2Vec produces frozen bidirectional representations whose most effective adaptation view depends on the task structure and the backbone.
Readers' thoughts
No reader thoughts yet.
Related papers
- Alignment-Aware Genomic Coordinate Encoding for Long-Range DNA ModelingbioRxiv · 2026
- Learning Strand-Equivariant Tokenizations of DNA with MirrorDNAbioRxiv · 2026
- GUANinE v1.1 reveals complementarity of supervised and genomic language models.Bioinformatics (Oxford, England) · 2026
- BarcodeMAE+: Rethinking Masked Pretraining and Global Representations for DNA Barcode Foundation ModelsarXiv · 2026
- RAGenome: Scaling Retrieval-Based Genomic Language Models to Long ContextsarXiv · 2026
- seqLens: Optimizing Language Models for Genomic PredictionsMolecular Biology and Evolution · 2026