mlsanityData to 14 Oct 2026

Context-Aware Regularization with Markovian Integration for Attention-Based Nucleotide Analysis

arXiv 2507.09378 ↗First posted 12 Jul 2025q-bio.GN cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Transformers have revolutionized nucleotide sequence analysis, yet capturing long-range dependencies remains challenging. Recent studies show that autoregressive transformers often exhibit Markovian behavior by relying on fixed-length context windows for next-token prediction. However, standard self-attention mechanisms are computationally inefficient for long sequences due to their quadratic complexity and do not explicitly enforce global transition consistency. We introduce CARMANIA (Context-Aware Regularization with Markovian Integration for Attention-Based Nucleotide Analysis), a self-supervised pretraining framework that augments next-token (NT) prediction with a transition-matrix (TM) loss. The TM loss aligns predicted token transitions with empirically derived n-gram statistics from each input sequence, encouraging the model to capture higher-order dependencies beyond local context. This integration enables CARMANIA to learn organism-specific sequence structures that reflect both evolutionary constraints and functional organization. We evaluate CARMANIA across diverse genomic tasks, including regulatory element prediction, functional gene classification, taxonomic inference, antimicrobial resistance detection, and biosynthetic gene cluster classification. CARMANIA outperforms the previous best long-context model by at least 7 percent, matches state-of-the-art on shorter sequences (exceeding prior results on 20 out of 40 tasks while running approximately 2.5 times faster), and shows particularly strong improvements on enhancer and housekeeping gene classification tasks, including up to a 34 percent absolute gain in Matthews correlation coefficient (MCC) for enhancer prediction. The TM loss boosts accuracy in 33 of 40 tasks, especially where local motifs or regulatory patterns drive prediction.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 18 of its 46 references that are in the map. First posted on arXiv 12 Jul 2025.

Builds on

18 of 46 references.

References · 18

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  2. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  3. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  4. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  5. 2023HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolutioncited by 194
  6. 2023DNABERT-2: Efficient Foundation Model and Benchmark For Multi-Species Genomecited by 143
  7. 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 118
  8. 2024Caduceus: Bi-Directional Equivariant Long-Range DNA Sequence Modelingcited by 113
  9. 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 99
  10. 2024Large Language Models as Markov Chainscited by 35
  11. 2024From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformerscited by 34
  12. 2024On Limitation of Transformer for Learning HMMscited by 10
6 more
  1. 2024Revisiting K-mer Profile for Effective and Scalable Genome Representation Learningcited by 6
  2. 2022SNP2Vec: Scalable Self-Supervised Pre-Training for Genome-Wide Association Studycited by 5
  3. 2025Revisiting Convolution Architecture in the Realm of DNA Foundation Modelscited by 3
  4. 2017Retrospective Higher-Order Markov Processes for User Trailscited by 2
  5. 2022ApHMM: Accelerating Profile Hidden Markov Models for Fast and Energy-Efficient Genome Analysiscited by 2
  6. 2024Predicting Anti-microbial Resistance using Large Language Modelscited by 2

Built on by

Not cited yet.