Inferensys

Glossary

Enformer

Enformer is a transformer-based deep learning architecture developed by DeepMind that predicts gene expression and epigenetic tracks directly from DNA sequence, dramatically increasing the receptive field to capture distal enhancer-gene interactions up to 100 kilobases away.
Architect reviewing LLM integration architecture on laptop, system diagrams visible, modern technical office setup.
ARCHITECTURE

What is Enformer?

Enformer is a transformer-based deep learning model from DeepMind that predicts gene expression and epigenetic tracks directly from DNA sequence with a 200-kilobase receptive field, capturing distal enhancer-gene interactions.

Enformer is a deep convolutional-transformer hybrid architecture developed by DeepMind that predicts molecular phenotypes—including gene expression, chromatin accessibility, and transcription factor binding—directly from raw 200,000-base-pair DNA sequences. It dramatically extends the receptive field of previous models like Basenji2 from 40 kb to 200 kb by replacing dilated convolutions with a transformer self-attention stack in the bottleneck, enabling the model to integrate information from distal enhancers located up to 100 kilobases away from their target gene promoters.

The architecture processes one-hot encoded DNA through a stem of convolutional and pooling layers to compress the sequence length, followed by multi-head self-attention layers that capture long-range dependencies between genomic elements. Trained on 5,313 epigenomic tracks from the ENCODE and FANTOM consortia, Enformer's predictions of enhancer-gene linking match experimental CRISPR perturbation data more accurately than direct sequence-to-expression models, demonstrating that self-attention mechanisms can learn the complex grammar of 3D genome folding and cis-regulatory logic from sequence alone.

ARCHITECTURAL INNOVATIONS

Key Features of Enformer

Enformer advances genomic deep learning by dramatically expanding the receptive field to capture distal regulatory interactions. Its hybrid architecture combines convolutional layers for local motif detection with transformer blocks for long-range dependency modeling.

01

100 kb Receptive Field

Enformer's most significant innovation is its 200 kb input window, providing a symmetric 100 kb receptive field around the central gene's transcription start site. This is a 5x increase over its predecessor Basenji2, enabling the model to directly capture distal enhancer-gene interactions that occur up to 100 kilobases away. The expanded context window allows Enformer to predict gene expression from DNA sequence alone by integrating regulatory signals from far-flanking enhancers, silencers, and insulators that previous models could not see.

02

Hybrid CNN-Transformer Architecture

Enformer employs a two-stage architecture that leverages the complementary strengths of different neural network paradigms:

  • Convolutional Stem: Seven convolutional layers with progressive downsampling (factor of 128) learn local transcription factor binding motifs and sequence grammar at base-pair resolution
  • Transformer Tower: Eleven transformer blocks with multi-head self-attention operate on the compressed sequence representation, modeling long-range dependencies between distal regulatory elements
  • Pointwise Prediction Head: A final convolutional layer projects the transformer output to predict 5,313 genomic tracks (CAGE, ChIP-seq, DNase-seq) simultaneously at 128 bp resolution

This design separates local pattern detection from global context integration, allowing each component to specialize.

03

Multi-Species and Multi-Tissue Prediction

Enformer is trained on human and mouse genomes jointly, learning cross-species regulatory grammar that improves generalization. The model predicts 5,313 genomic tracks covering:

  • CAGE (Cap Analysis of Gene Expression): Quantitative expression levels at transcription start sites across hundreds of human tissues and cell types
  • ChIP-seq: Transcription factor binding and histone modification profiles
  • DNase-seq: Chromatin accessibility maps

This multi-task setup forces the model to learn a shared internal representation of regulatory logic that generalizes across assays, tissues, and species, enabling zero-shot prediction of epigenetic marks in unseen cell types.

04

Causal Variant Effect Prediction

Enformer enables in-silico mutagenesis across the full 200 kb input window. By systematically introducing single-nucleotide variants and measuring the predicted change in gene expression, the model can:

  • Score non-coding regulatory variants for functional impact
  • Identify distal enhancer mutations that affect gene expression from up to 100 kb away
  • Prioritize expression quantitative trait loci (eQTLs) with mechanistic hypotheses linking variant to target gene

This capability directly addresses the challenge of interpreting genome-wide association study (GWAS) hits, which predominantly fall in non-coding regions. Enformer's predictions correlate strongly with experimentally measured eQTL effect sizes.

05

Basenji2 Evolution and Improvements

Enformer represents a direct architectural evolution from the Basenji2 model with several critical improvements:

  • Receptive field: Expanded from 40 kb to 200 kb input, increasing the effective regulatory range from ~20 kb to 100 kb
  • Downsampling: Increased pooling factor from 128x to 128x but with more transformer layers (11 vs. 0) to process the compressed representation
  • Attention mechanism: Introduced transformer blocks with multi-head self-attention to replace purely convolutional long-range modeling
  • Training data: Trained on ENCODE and FANTOM5 consortium data covering more tissues and assay types

These changes resulted in substantially improved prediction accuracy for distal regulatory interactions while maintaining performance on local promoter prediction.

06

Attention-Based Interpretability

Enformer's transformer layers provide built-in interpretability through attention weight analysis. By examining the self-attention patterns, researchers can:

  • Identify enhancer-gene pairs by visualizing which distal regions the model attends to when predicting expression at a target gene
  • Discover novel regulatory elements that show strong attention coupling with promoters
  • Validate known chromatin looping interactions (e.g., Hi-C contacts) against attention maps
  • Generate contribution scores using gradient-based attribution methods (integrated gradients, DeepLIFT) to highlight specific nucleotides driving predictions

This attention-based interpretability makes Enformer a discovery tool, not just a prediction engine, enabling hypothesis generation about 3D genome organization directly from sequence.

ENFORMER EXPLAINED

Frequently Asked Questions

Clear, technical answers to the most common questions about DeepMind's Enformer architecture and its impact on gene expression prediction.

Enformer is a transformer-based deep learning architecture developed by DeepMind that predicts gene expression and epigenetic tracks directly from DNA sequence. It works by processing a one-hot encoded DNA sequence of 196,608 base pairs through a series of convolutional layers that extract local sequence motifs, followed by multi-head self-attention layers that capture long-range interactions. The key innovation is its dramatically expanded receptive field of approximately 200 kilobases, allowing the model to integrate information from distal enhancers, silencers, and other regulatory elements that influence gene transcription. The architecture outputs predictions for thousands of genomic tracks—including CAGE-seq expression levels and ChIP-seq histone modification profiles—across multiple human and mouse cell types and tissues simultaneously.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.