# Enformer

**Enformer** 是一种深度学习神经网络，能够直接从 DNA 序列预测基因表达及其他功能性基因组信号。它由 [Google DeepMind](https://www.edgepedia.org/zh/google-deepmind) 与 Calico Life Sciences 合作，于 2021 年推出，由 Žiga Avsec、Vikram Agarwal 等人发表于《Nature Methods》。<sup>[1](https://doi.org/10.1038/s41592-021-01252-x)</sup> 其标志性特征是基于 transformer 的架构，能够整合距离基因最远达 100 kb 的调控元件信息——这一序列上下文比其前身 Basenji2 更长，从而使模型能够刻画远端增强子对基因表达的影响。<sup>[1](https://doi.org/10.1038/s41592-021-01252-x)</sup><sup> • </sup><sup>[2](https://deepmind.google/blog/predicting-gene-expression-with-ai/)</sup>

| 关键事实 | 详情 |
|---|---|
| 发表 | Avsec 等，《Nature Methods》18, 1196–1203（2021 年 10 月）；DeepMind 与 Calico<sup>[1](https://doi.org/10.1038/s41592-021-01252-x)</sup> |
| 输入 | 196,608 个碱基对的独热编码 DNA 序列（A、C、G、T 或 N）<sup>[1](https://doi.org/10.1038/s41592-021-01252-x)</sup> |
| 输出 | 人类 5,313 条、小鼠 1,643 条基因组轨道，每条长度 896，以 128 bp 为分箱覆盖中间 114,688 bp<sup>[1](https://doi.org/10.1038/s41592-021-01252-x)</sup> |
| 架构 | 卷积层之后接 11 层 transformer，含 8 个注意力头、1,536 个通道<sup>[3](https://github.com/google-deepmind/deepmind-research/blob/master/enformer/enformer.py)</sup> |
| 主要提升 | 组织与细胞类型的基因表达预测相关性从 0.81（Basenji2）提升至 0.85<sup>[4](https://trepo.tuni.fi/bitstream/10024/229402/2/MinhasWaseeqAhmad.pdf)</sup> |
| 已知弱点 | 由个人基因组预测跨个体表达的效果很差；相关性集中在零附近<sup>[5](https://www.nature.com/articles/s41588-023-01574-w)</sup> |
| 后继者 | AlphaGenome（2025），输入 1 Mb DNA，并在 Enformer 基础上构建<sup>[6](https://www.nature.com/articles/s41586-025-10014-0)</sup> |

## 背景

基因占人类基因组的不到 2%；其余非编码序列包含关于基因何时、何处表达的调控指令，而与复杂疾病相关的变异主要位于这些非编码区域，很可能通过改变基因表达发挥作用。<sup>[2](https://deepmind.google/blog/predicting-gene-expression-with-ai/)</sup> 因此，仅从序列预测表达成为调控基因组学的核心目标。早期的序列到表达模型，如 Basenji2、ExPecto 和 Xpresso，主要依赖卷积神经网络，且输入窗口短得多：Basenji2 使用约 131 kb 输入，ExPecto 为 40 kb，Xpresso 为 10.5 kb。<sup>[7](https://www.annualreviews.org/doi/pdf/10.1146/annurev-genom-021623-024727)</sup> 由于增强子可以作用于数万碱基对之外的启动子，这种有限的上下文限制了准确性。<sup>[2](https://deepmind.google/blog/predicting-gene-expression-with-ai/)</sup>

## 架构与训练

Enformer 将 196,608 bp 的独热编码序列通过卷积层检测短序列模式，随后通过 transformer 模块利用自注意力在整个序列间交换信息。<sup>[2](https://deepmind.google/blog/predicting-gene-expression-with-ai/)</sup> 公开的 [TensorFlow](https://www.edgepedia.org/zh/tensorflow) 实现使用 1,536 个通道、11 层 transformer 和 8 个注意力头，dropout 率为 0.4。<sup>[3](https://github.com/google-deepmind/deepmind-research/blob/master/enformer/enformer.py)</sup> 模型经训练预测功能性基因组数据，包括由 CAGE（基因表达加帽分析）测得的基因表达、DNA 可及性和组蛋白修饰，并聚合为 128 bp 分箱。<sup>[1](https://doi.org/10.1038/s41592-021-01252-x)</sup><sup> • </sup><sup>[2](https://deepmind.google/blog/predicting-gene-expression-with-ai/)</sup> 人类与小鼠基因组各有独立的预测头。<sup>[1](https://doi.org/10.1038/s41592-021-01252-x)</sup>

transformer 设计正是使长上下文在计算上可行的原因：注意力在整个输入范围内收集信息，而纯卷积模型需要堆叠许多层才能达到相同的感受野。<sup>[2](https://deepmind.google/blog/predicting-gene-expression-with-ai/)</sup>

## 报告的性能

**表达与变异效应。** Enformer 大幅提升了从序列预测基因表达的准确性，这一提升也延续到对天然遗传变异和由大规模并行报告基因实验测得的饱和突变的变异效应预测。<sup>[1](https://doi.org/10.1038/s41592-021-01252-x)</sup> 在一份结果总结中，组织与细胞类型表达预测相关性从 Basenji2 的 0.81 升至 Enformer 的 0.85。<sup>[4](https://trepo.tuni.fi/bitstream/10024/229402/2/MinhasWaseeqAhmad.pdf)</sup> 该模型在变异解读方面的优势包括：对激活性或抑制性突变给出带符号的预测、不依赖核苷酸保守性统计，以及能够对任意合成序列打分。<sup>[8](https://storage.prod.researchhub.com/uploads/papers/2023/10/11/s41592-021-01252-x.pdf)</sup>

**增强子—启动子相互作用。** 作者利用贡献分数识别有影响的输入位置，发现模型会关注距离基因超过 50,000 bp 的增强子，且这些分数与专门为增强子—基因映射开发、以实验数据为输入的方法表现相当。<sup>[2](https://deepmind.google/blog/predicting-gene-expression-with-ai/)</sup> 模型还学到了绝缘子元件，即分隔 DNA 中独立调控区域的元件。<sup>[2](https://deepmind.google/blog/predicting-gene-expression-with-ai/)</sup>

**后续基准测试。** 在 2025 年一项针对推定因果 QTL 分类的 DNA 基础模型基准测试中，训练用于预测基因组轨道的模型相较通用 DNA 语言模型具有明显优势：Enformer 在 eQTL 预测上 AUC 为 0.77，而最佳通用基础模型 Caduceus-Ph 为 0.65。<sup>[9](https://www.nature.com/articles/s41467-025-65823-8)</sup> 一项 2026 年关于复杂性状变异的研究发现，集成 Enformer 分数是区分后验概率高的性状相关调控变异与其他 CRE 变异的最佳方法，分别为 62.6% 与 7.3%。<sup>[10](https://www.nature.com/articles/s41586-026-10121-6.pdf)</sup>

## 已记录的局限

**个人基因组预测。** 2023 年《Nature Genetics》的一项评估在 Geuvadis 联盟 421 个个体的配对全基因组测序与 RNA-seq 数据上测试了 Enformer、Basenji2、ExPecto 和 Xpresso。尽管参考基因组预测与跨基因表达相关性良好（Enformer 的 Spearman 相关系数为 0.57），但所有模型的跨个体相关性分布都集中在接近零处，且模型常常无法预测顺式调控变异的正确效应方向。<sup>[5](https://www.nature.com/articles/s41588-023-01574-w)</sup> 按基因训练的、基于邻近变异剂量的正则化线性回归模型（PrediXcan 方法）即使在限制为与 Enformer 相同的 197 kb 输入上下文时，也能解释多得多的跨个体变异。<sup>[5](https://www.nature.com/articles/s41588-023-01574-w)</sup> 四个模型在遗传效应大小上的一致性高于在方向上的一致性，提示它们能识别调控变异，却误判其符号。<sup>[5](https://www.nature.com/articles/s41588-023-01574-w)</sup>

**远端增强子。** 2023 年《Genome Biology》的一项基准测试将 Enformer 与观察性 RNA-seq 数据及五项扰动实验进行对照。模型很好地捕捉了人类启动子的因果决定因素，但对远端增强子权重不足：在 CRISPRi 敲低筛选中，敲低经验证的增强子后，实测表达降幅的中位数约为 20%，而 Enformer 仅预测约 4%，且预测效应大致与距基因的距离成反比。<sup>[11](https://link.springer.com/article/10.1186/s13059-023-02899-9)</sup> 作者可以移除三分之二的输入序列而对预测影响极小，并推测随着距离增加，真实调控元件与候选调控元件之间不断加剧的类别不平衡导致模型低估远端信号。<sup>[11](https://link.springer.com/article/10.1186/s13059-023-02899-9)</sup> 一个相关局限是，模型只能对其训练数据中存在的细胞类型和实验进行预测，无法泛化到新的类型。<sup>[8](https://storage.prod.researchhub.com/uploads/papers/2023/10/11/s41592-021-01252-x.pdf)</sup>

## 遗产与后继者

Enformer 的代码和对常见遗传变异的初步预测已公开，TensorFlow 实现维护在 DeepMind 研究仓库中。<sup>[2](https://deepmind.google/blog/predicting-gene-expression-with-ai/)</sup><sup> • </sup><sup>[3](https://github.com/google-deepmind/deepmind-research/blob/master/enformer/enformer.py)</sup> 它成为调控基因组学的标准基线，并成为下游系统的组成部分，包括用于个性化表达预测的微调模型，以及将其表示与其他模型结合的混合架构。<sup>[12](https://pubmed.ncbi.nlm.nih.gov/42186093/)</sup><sup> • </sup><sup>[13](https://www.nature.com/articles/s44387-026-00103-4)</sup>

2025 年 6 月，Google DeepMind 推出 AlphaGenome，它在 Enformer 基础上构建，可接收最多 100 万个碱基对的输入，达到碱基对分辨率，预测 5,930 条人类和 1,128 条小鼠基因组轨道。AlphaGenome 在 24 项基因组轨道预测任务中的 22 项、26 项变异效应预测任务中的 25 项上取得最先进性能，且训练单个模型所需的计算预算仅为原始 Enformer 的一半。<sup>[6](https://www.nature.com/articles/s41586-025-10014-0)</sup> AlphaGenome 作者指出，个人基因组预测仍是这一领域模型的已知弱点，包括他们自己的模型。<sup>[6](https://www.nature.com/articles/s41586-025-10014-0)</sup>

## References

1. [Avsec, Ž. et al. (2021). Effective gene expression prediction from sequence by integrating long-range interactions. *Nature Methods* 18, 1196–1203.](https://doi.org/10.1038/s41592-021-01252-x)
2. [Predicting gene expression with AI, Google DeepMind blog (4 October 2021)](https://deepmind.google/blog/predicting-gene-expression-with-ai/)
3. [enformer.py, google-deepmind/deepmind-research, GitHub](https://github.com/google-deepmind/deepmind-research/blob/master/enformer/enformer.py)
4. [Minhas, W. A. (2025). MSc thesis, Tampere University](https://trepo.tuni.fi/bitstream/10024/229402/2/MinhasWaseeqAhmad.pdf)
5. [Huang, C. et al. (2023). Personal transcriptome variation is poorly explained by current genomic deep learning models. *Nature Genetics* 55, 2056–2059.](https://www.nature.com/articles/s41588-023-01574-w)
6. [Avsec, Ž. et al. (2025). Advancing regulatory variant effect prediction with AlphaGenome. *Nature*.](https://www.nature.com/articles/s41586-025-10014-0)
7. [Annual Review of Genomics and Human Genetics (2025), model comparison table](https://www.annualreviews.org/doi/pdf/10.1146/annurev-genom-021623-024727)
8. [Avsec et al. (2021), full paper PDF](https://storage.prod.researchhub.com/uploads/papers/2023/10/11/s41592-021-01252-x.pdf)
9. [Benchmarking DNA foundation models for genomic and genetic tasks. *Nature Communications* (2025).](https://www.nature.com/articles/s41467-025-65823-8)
10. [Functional dissection of complex trait variants at single-nucleotide resolution. *Nature* (2026).](https://www.nature.com/articles/s41586-026-10121-6.pdf)
11. [Karollus, A. et al. (2023). Current sequence-based models capture gene expression determinants in promoters but mostly ignore distal enhancers. *Genome Biology*.](https://link.springer.com/article/10.1186/s13059-023-02899-9)
12. [Fine-tuning sequence-to-expression models on personal genome and transcriptome data (2025), PubMed](https://pubmed.ncbi.nlm.nih.gov/42186093/)
13. [Pre-training genomic language model with variants for better modeling functional genomics. *npj Artificial Intelligence* (2025).](https://www.nature.com/articles/s44387-026-00103-4)

---
*Initially written Oct 15, 2026 · Edited: Oct 25, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Model families and named models

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/enformer

English original: https://www.edgepedia.org/enformer
