arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2507.09378q-bio.GNcs.AI
收藏

基于注意力机制核酸分析的马尔可夫整合上下文感知正则化

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

Drexel University(德雷塞尔大学);Dataminr

Mohammadsaleh Refahi, Mahdi Abavisani, Bahrad A. Sokhansanj, James R. Brown, Gail Rosen

AI总结:

针对核酸序列长程依赖捕获难题,提出自监督预训练框架 CARMANIA,通过转移矩阵损失对齐 n-gram 统计增强下一 token 预测,在多类基因组任务上显著超越现有模型。

摘要:

Transformers 彻底改变了核酸序列分析,但捕获长程依赖仍具挑战。近期研究表明,自回归 Transformers 通过依赖固定长度的上下文窗口进行下一 token 预测,常表现出马尔可夫行为。然而,标准自注意力机制因二次复杂度在处理长序列时计算效率低下,且未显式强制全局转移一致性。我们提出了 CARMANIA(基于注意力机制核酸分析的马尔可夫整合上下文感知正则化),这是一种自监督预训练框架,通过引入转移矩阵(TM)损失增强下一 token(NT)预测。TM 损失将预测的 token 转移与从输入序列中经验推导的 n-gram 统计对齐,促使模型捕获超越局部上下文的高阶依赖。该整合使 CARMANIA 能学习反映进化约束与功能组织的生物体特异性序列结构。我们在多种基因组任务上评估 CARMANIA,包括调控元件预测、功能基因分类、分类学推断、抗菌素耐药性检测及生物合成基因簇分类。CARMANIA 超越此前最佳长上下文模型至少 7%,在较短序列上匹敌 SOTA(在 40 项任务中 20 项超越先前结果,且运行速度约快 2.5 倍),并在增强子和管家基因分类任务上提升显著,增强子预测的 Matthews 相关系数(MCC)绝对增益高达 34%。TM 损失在 40 项任务中的 33 项提升了准确率,尤其在局部基序或调控模式驱动预测时效果突出。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑