DNA-LLM2Vec: Architecture-Aware Task-Conditioned Adaptation of Decoder DNA Foundation Models
Yuan LiangiD, Ke Zhai, Yujian GaniD, Siyou Li, Juexi Shao, Grant H. Watson, Massimo PoesioiD
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.
02 /Specification & Classification
Click any tag to browse matching papersReproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Distinguishing word identity and sequence context in DNA language models
Melissa Sanabria, Jonas Hirsch, Anna R. Poetsch·BMC BioinformaticsPeer-reviewed·Sep 13, 2024
- Carbon: Decoding the Language of Life
Loubna Ben Allal, Qiuyi Li, … Leandro von Werra·bioRxiv·May 25, 2026
- Learning Strand-Equivariant Tokenizations of DNA with MirrorDNA
Nirjhor Datta, Swakkhar Shatabda, … M. Sohel Rahman·bioRxiv·Nov 6, 2026
- GENA-LM: A Family of Open-Source Foundational DNA Language Models for Long Sequences
Veniamin Fishman, Yuri Kuratov, … Mikhail Burtsev·Nucleic Acids ResearchPeer-reviewed·Dec 26, 2024
- Back to BERT in 2026: ModernGENA as a Strong, Efficient Baseline for DNA Foundation Models
Alena Aspidova, Yuri Kuratov, … Veniamin Fishman·bioRxiv·Apr 23, 2026
- Benchmarking DNA Foundation Models for Genomic and Genetic Tasks
Haonan Feng, Lang Wu, … Chong Wu·Nature CommunicationsPeer-reviewed·Nov 28, 2025