The Enformer architecture is a deep learning model that predicts gene expression and epigenomic profiles directly from raw DNA sequence. It integrates a convolutional neural network (CNN) stem for detecting local regulatory motifs with a Transformer trunk that uses self-attention to capture long-range interactions between distal enhancers and promoters up to 100,000 base pairs apart.
Glossary
Enformer Architecture

What is Enformer Architecture?
A hybrid convolutional-transformer neural network that predicts gene expression and epigenomic tracks directly from DNA sequence by combining local motif detection with long-range self-attention.
Enformer's key innovation is its ability to model long-range dependencies that span tens of thousands of nucleotides, dramatically improving accuracy over previous windowed approaches like Basenji2. By processing extended sequence context, the architecture accurately predicts the functional impact of genetic variants on gene expression, making it a foundational tool for regulatory genomics and variant effect prediction.
Key Features of the Enformer Architecture
The Enformer architecture integrates convolutional layers for local motif detection with transformer self-attention for long-range dependencies, enabling accurate gene expression prediction from 200 kb of DNA sequence.
Hybrid Convolutional-Transformer Design
Enformer combines a convolutional tower for detecting local regulatory motifs with a transformer trunk for capturing long-range interactions. The convolutional layers first compress the 200 kb input sequence into a sequence of 1,536-channel embeddings at 128 bp resolution, reducing spatial dimensions by a factor of 128. These embeddings then feed into 7 transformer layers with 8 attention heads each, allowing the model to integrate signals from distal enhancers up to 100 kb away from target promoters.
Multi-Scale Gradient Flow
Enformer employs skip connections that route gradients from the output heads directly to intermediate convolutional layers, bypassing the transformer trunk. This architectural choice addresses the vanishing gradient problem in deep genomic models and ensures that local motif detectors in the early convolutional layers receive strong training signals. The result is simultaneous learning of both fine-grained sequence patterns (transcription factor binding sites) and global regulatory syntax (enhancer-promoter looping logic).
Multi-Task Prediction Heads
The model outputs predictions for 5,313 human genomic tracks and 1,643 mouse tracks simultaneously, covering:
- CAGE-seq expression data across dozens of tissues
- DNase-seq chromatin accessibility profiles
- ChIP-seq tracks for hundreds of transcription factors
- Histone modification marks (H3K4me3, H3K27ac, etc.) Each track is predicted by a dedicated linear head operating on the final transformer embeddings, enabling shared representation learning across diverse epigenomic assays.
200 kb Receptive Field via Attention
Standard convolutional genomic models like Basenji2 are limited to a 40 kb receptive field, missing many distal regulatory elements. Enformer's transformer layers extend the effective receptive field to 200 kb (100 kb in each direction) through self-attention, which computes pairwise interactions between all 1,536 positions in the compressed sequence. This captures enhancer-gene pairs separated by up to 100 kb, dramatically improving expression prediction for genes regulated by distal elements.
Human-Mouse Cross-Species Training
Enformer is trained jointly on aligned human and mouse genomes, leveraging synteny and evolutionary conservation. The model processes orthologous 200 kb windows from both species, with separate output heads for human and mouse tracks. This multi-species objective acts as a powerful regularizer, forcing the model to learn evolutionarily conserved regulatory grammar that generalizes better than single-species training. The shared trunk learns features that are functionally important enough to be preserved across 90 million years of divergence.
Poisson Regression Loss with Coverage Weighting
Enformer minimizes a Poisson negative log-likelihood loss appropriate for count-based sequencing data, rather than mean squared error. Each track is weighted by its sequencing coverage (total read count), ensuring that high-quality, deeply sequenced experiments contribute more to the gradient than noisy, low-coverage assays. The loss is computed as: loss = mean(coverage * (predicted - target * log(predicted))), which naturally handles the heteroscedastic noise characteristic of genomic count data.
Enformer vs. Basenji2 vs. Expecto
A technical comparison of three deep learning models for gene expression prediction from DNA sequence, highlighting differences in architecture, input length, and resolution.
| Feature | Enformer | Basenji2 | Expecto |
|---|---|---|---|
Core Architecture | Hybrid CNN-Transformer | Dilated CNN | L2-regularized linear model on CNN features |
Input Sequence Length | 200 kb | 131 kb | 200 kb |
Output Resolution | 128 bp bins | 128 bp bins | 200 bp bins |
Long-Range Mechanism | Self-attention | Dilated convolutions | |
Pretraining Objective | Human CAGE prediction | Multi-species CAGE prediction | Pretrained DeepSEA features |
Tissue-Specific Prediction | |||
Prediction Tracks | 5,313 (human) | 4,253 (human) | 2,002 (human) |
Variant Effect Prediction |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Explore the core mechanisms, design principles, and biological motivations behind the Enformer architecture, a hybrid convolutional-transformer model that predicts gene expression and epigenomic tracks directly from DNA sequence.
The Enformer architecture is a deep neural network that predicts gene expression and epigenomic tracks directly from raw DNA sequence by combining convolutional layers for local motif detection with Transformer self-attention for long-range dependency modeling. It processes a 200,000 base-pair input window through a series of convolutional blocks that detect local regulatory motifs, followed by Transformer layers that integrate information across the entire sequence length. The key innovation is the use of factorized attention heads that operate on compressed representations, enabling the model to capture interactions between distal enhancers and promoters up to 100 kilobases apart. Enformer outputs predictions for thousands of genomic tracks simultaneously, including CAGE-seq expression and DNase-seq accessibility, across multiple human and mouse cell types and tissues.
Related Terms
Key concepts and components that define the Enformer architecture's approach to predicting molecular phenotypes from DNA sequence.
Multi-Task Prediction Heads
Enformer simultaneously predicts 5,313 human and 1,643 mouse genomic tracks covering:
- CAGE-seq: Cap Analysis Gene Expression at transcription start sites
- DNase-seq: Chromatin accessibility
- ChIP-seq: Histone modifications (e.g., H3K27ac, H3K4me3)
- Transcription factor binding Each track has a dedicated linear output head operating on the final pooled representations. This multi-task setup forces the shared trunk to learn universal regulatory grammar transferable across assays and species.
200 kb Receptive Field
Enformer's input window spans 196,608 base pairs (200 kb), a deliberate design choice to encompass the typical genomic distance between enhancers and their target promoters. The architecture combines:
- Convolutional stem: Captures local sequence motifs (e.g., TF binding sites)
- Transformer trunk: 7 self-attention layers that integrate information across the full 200 kb
- Pointwise convolution heads: Predict tracks at 128 bp resolution This receptive field is ~1.5x larger than Basenji2, directly improving enhancer-gene expression correlation predictions.
Human-Mouse Joint Training
Enformer is trained jointly on human (GRCh38) and mouse (mm10) genomes, with separate output heads for each species but a shared convolutional-transformer trunk. This cross-species training acts as a powerful regularizer, leveraging evolutionary conservation of regulatory grammar. The shared trunk learns sequence features that generalize across mammals, improving prediction accuracy for both species and enabling zero-shot transfer of regulatory logic between organisms.
Poisson Negative Log-Likelihood Loss
Enformer is trained to minimize the Poisson negative log-likelihood between predicted and observed read counts for each genomic track. This loss function is appropriate for count-based sequencing assays where the variance scales with the mean. The total loss is summed across all tracks and positions, with each track contributing equally regardless of its dynamic range. This statistical framing treats the prediction as the rate parameter of a Poisson distribution, properly modeling the discrete nature of sequencing data.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us