atlas

Research map / Architectures and efficiency / Attention and transformers

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

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: State space and recurrent sequence models · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes CARMANIA, a LLaMA-style sliding-window-attention genomic transformer pretrained with next-token loss plus a first-order transition-matrix loss aligning predicted and sequence-specific bigram statistics, evaluated on 40 genomic tasks.

Problem

Capturing long-range dependencies in nucleotide sequences with transformers is hard because full self-attention is quadratic and does not explicitly enforce global transition consistency.

Approach

Augments next-token prediction with a transition-matrix (TM) loss that aligns the model's predicted first-order nucleotide bigram distribution with the empirical bigram statistics of each input sequence, combined with sliding-window attention for efficiency.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add first-order TM loss (ablation)CARMANIA · AMR classification tasksF1 Macro: 0.873 ± 0.130 -> 0.882 ± 0.131Helped
Add first-order TM loss (ablation)CARMANIA · Human Genome–ShortBLEU: 0.73 -> 0.77Helped
Add first-order TM loss (ablation)CARMANIA · 40 downstream benchmarksperformance: 33 of 40 tasksHelped
Add first-order TM loss (ablation)CARMANIA · ENHANCERMCC: Δ = 0.0%No clear effect
Add first-order TM loss (ablation)CARMANIA · H4ACMCC: 40.9% relative improvementHelped
Use second-order rather than first-order TM loss (ablation)CARMANIA · AMR classification tasksF1 Macro: 0.733 -> 0.701; 0.975 -> 0.943; 0.942 -> 0.915Hurt
Use full attention rather than sliding-window attention (ablation)CARMANIA · Human Genome–ShortBLEU: 0.77 -> 0.71Hurt
Increase TM-loss weight β from 0 to 1.0 (ablation)CARMANIA · AMR classification tasksF1 Macro: 0.873 -> 0.882Helped
Increase TM-loss weight β from 1.0 to 5.0 (ablation)CARMANIA · AMR classification tasksF1 Macro: 0.882 -> 0.836Hurt
Use a wide rather than deep Transformer (ablation)CARMANIA · Scorpio-Gene-Taxa Testaccuracy: 63.87 ± 19.16 vs. 71.05 ± 18.07Helped
Use a wide rather than deep Transformer (ablation)CARMANIA · AMRF1 Macro: 85.22 ± 14.66 vs. 88.32 ± 13.12Helped
Increase training sequence length from 10k to 160k (ablation)CARMANIA · GRCh38F1 Macro: 0.765 ± 0.120 -> 0.800 ± 0.138Helped

Surprising findings

Limitations

Experimental setup

Datasets: GRCh38 Basic Genome Dataset Scorpio-Gene-Taxa Genomic Benchmarks Nucleotide Transformer tasks (Dalla-Torre et al.) AMR dataset (MEGARes, CARD) MiBiG BGC dataset

Benchmarks: Genomic Benchmarks Nucleotide Transformer tasks Scorpio-Gene-Taxa AMR classification BGC classification

Metrics: accuracy MCC F1 macro BLEU perplexity Hamming similarity FLOPs

Baselines: HyenaDNA Caduceus-PH Caduceus-PS Nucleotide Transformer DNABERT-2 Enformer MetaBERTa ConvNova CNN Mamba

Builds on: LLaMA FlashAttention-2 RoPE Markov chain view of in-context learning

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy