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

一种增强型变换器用于DNA序列分类

A Boltzmann-machine-enhanced Transformer For DNA Sequence Classification

Tsinghua University(清华大学);University of California, Berkeley(加州大学伯克利分校)

Zhixuan Cao, Yishu Xu, Xuang WU

AI总结:

本文提出了一种结合玻尔兹曼机和变换器的模型,用于DNA序列分类,通过引入结构化的二进制门控变量和能量函数约束,提升对潜在相互作用和高阶依赖的建模能力。

摘要:

DNA序列分类需要高预测精度和揭示潜在位点相互作用、组合调控及类似上位效应的高阶依赖。尽管标准变换器具有强大的全局建模能力,但其softmax注意力连续、密集且约束弱,更适合信息路由而非显式结构发现。本文提出了一种增强型变换器,基于多头注意力,引入结构化的二进制门控变量表示潜在查询-键连接,并通过玻尔兹曼式能量函数约束。查询-键相似性定义局部偏置项,可学习的成对交互捕捉边之间的协同与竞争,潜在隐藏单元建模高阶组合依赖。由于精确后验推断在离散门控图上不可行,我们使用均场变分推断估计边激活概率,并结合Gumbel-Softmax逐步将连续概率压缩为近离散门,同时保持端到端可微性。训练过程中,我们联合优化分类和能量损失,鼓励模型在准确预测的同时倾向低能、稳定和可解释的结构。进一步从能量函数和变分自由能推导到均场固定点方程、Gumbel-Softmax松弛和最终联合目标。所提框架为整合玻尔兹曼机、可微离散优化和变换器用于生物序列结构学习提供了统一视角。

英文摘要:

DNA sequence classification requires not only high predictive accuracy but also the ability to uncover latent site interactions, combinatorial regulation, and epistasis-like higher-order dependencies. Although the standard Transformer provides strong global modeling capacity, its softmax attention is continuous, dense, and weakly constrained, making it better suited for information routing than explicit structure discovery. In this paper, we propose a Boltzmann-machine-enhanced Transformer for DNA sequence classification. Built on multi-head attention, the model introduces structured binary gating variables to represent latent query-key connections and constrains them with a Boltzmann-style energy function. Query-key similarity defines local bias terms, learnable pairwise interactions capture synergy and competition between edges, and latent hidden units model higher-order combinatorial dependencies. Since exact posterior inference over discrete gating graphs is intractable, we use mean-field variational inference to estimate edge activation probabilities and combine it with Gumbel-Softmax to progressively compress continuous probabilities into near-discrete gates while preserving end-to-end differentiability. During training, we jointly optimize classification and energy losses, encouraging the model to achieve accurate prediction while favoring low-energy, stable, and interpretable structures. We further derive the framework from the energy function and variational free energy to the mean-field fixed-point equations, Gumbel-Softmax relaxation, and the final joint objective. The proposed framework provides a unified view of integrating Boltzmann machines, differentiable discrete optimization, and Transformers for structured learning on biological sequences.

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

↑