Skip to main content
CenXiv.org
This website is in trial operation, support us!
We gratefully acknowledge support from all contributors.
Contribute
Donate
cenxiv logo > cs > arXiv:2505.17257

Help | Advanced Search

Computer Science > Machine Learning

arXiv:2505.17257 (cs)
[Submitted on 22 May 2025 (v1) , last revised 4 Jul 2025 (this version, v3)]

Title: JanusDNA: A Powerful Bi-directional Hybrid DNA Foundation Model

Title: JanusDNA:一种强大的双向混合DNA基础模型

Authors:Qihao Duan, Bingding Huang, Zhenqiao Song, Irina Lehmann, Lei Gu, Roland Eils, Benjamin Wild
Abstract: Large language models (LLMs) have revolutionized natural language processing and are increasingly applied to other sequential data types, including genetic sequences. However, adapting LLMs to genomics presents significant challenges. Capturing complex genomic interactions requires modeling long-range dependencies within DNA sequences, where interactions often span over 10,000 base pairs, even within a single gene, posing substantial computational burdens under conventional model architectures and training paradigms. Moreover, standard LLM training approaches are suboptimal for DNA: autoregressive training, while efficient, supports only unidirectional understanding. However, DNA is inherently bidirectional, e.g., bidirectional promoters regulate transcription in both directions and account for nearly 11% of human gene expression. Masked language models (MLMs) allow bidirectional understanding but are inefficient, as only masked tokens contribute to the loss per step. To address these limitations, we introduce JanusDNA, the first bidirectional DNA foundation model built upon a novel pretraining paradigm that combines the optimization efficiency of autoregressive modeling with the bidirectional comprehension of masked modeling. JanusDNA adopts a hybrid Mamba, Attention and Mixture of Experts (MoE) architecture, combining long-range modeling of Attention with efficient sequential learning of Mamba. MoE layers further scale model capacity via sparse activation while keeping computational cost low. Notably, JanusDNA processes up to 1 million base pairs at single nucleotide resolution on a single 80GB GPU. Extensive experiments and ablations show JanusDNA achieves new SOTA results on three genomic representation benchmarks, outperforming models with 250x more activated parameters. Code: https://github.com/Qihao-Duan/JanusDNA
Abstract: 大型语言模型(LLMs)已经革新了自然语言处理,并被越来越多地应用于其他序列数据类型,包括基因序列。 然而,将LLMs适应基因组学面临重大挑战。 捕捉复杂的基因组相互作用需要对DNA序列中的长距离依赖关系进行建模,其中相互作用通常跨越超过10,000个碱基对,甚至在一个基因内也存在,这在传统模型架构和训练范式下带来了巨大的计算负担。 此外,标准的LLM训练方法对于DNA来说并不理想:自回归训练虽然高效,但仅支持单向理解。 然而, DNA本质上是双向的,例如,双向启动子在两个方向上调控转录,并占人类基因表达的近11%。 掩码语言模型(MLMs)允许双向理解,但效率低下,因为每一步只有被掩码的标记对损失有贡献。 为了解决这些限制,我们引入了JanusDNA,这是第一个基于新颖预训练范式的双向DNA基础模型,该范式结合了自回归建模的优化效率和掩码建模的双向理解能力。 JanusDNA采用了一种混合Mamba、注意力和 专家混合(MoE)架构,将注意力的长距离建模与Mamba的高效序列学习相结合。 MoE层通过稀疏激活进一步扩展模型容量,同时保持计算成本低。 值得注意的是,JanusDNA可以在单个80GB GPU上以单核苷酸分辨率处理多达100万个碱基对。 广泛的实验和消融研究表明 JanusDNA在三个基因组表示基准上取得了新的SOTA结果,优于参数激活量多250倍的模型。 代码:https://github.com/Qihao-Duan/JanusDNA
Subjects: Machine Learning (cs.LG) ; Genomics (q-bio.GN)
Cite as: arXiv:2505.17257 [cs.LG]
  (or arXiv:2505.17257v3 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2505.17257
arXiv-issued DOI via DataCite

Submission history

From: Qihao Duan [view email]
[v1] Thu, 22 May 2025 20:10:55 UTC (6,366 KB)
[v2] Mon, 2 Jun 2025 22:18:29 UTC (4,652 KB)
[v3] Fri, 4 Jul 2025 13:40:34 UTC (4,663 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled
  • View Chinese PDF
  • View PDF
  • HTML (experimental)
  • TeX Source
  • Other Formats
license icon view license
Current browse context:
cs.LG
< prev   |   next >
new | recent | 2025-05
Change to browse by:
cs
q-bio
q-bio.GN

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender (What is IArxiv?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack

京ICP备2025123034号