To Transformers and Beyond: Large Language Models for the Genome

Micaela E. Consens, Cameron Dufault, Michael Wainberg, Duncan Forster, Mehran Karimzadeh, Hani Goodarzi, Fabian J. Theis, Alan Moses, Bo Wang · DOI · OpenReview

Introduction

The human genome is a massive, high-dimensional "instruction manual" where the meaning of a single DNA base can depend on another base located hundreds of thousands of positions away. Traditional deep learning tools, primarily Convolutional Neural Networks (CNNs), are excellent at identifying local patterns (motifs) but suffer from a "limited field of vision." This review maps the transition of genomic modeling from local-focused CNNs to global Large Language Models (LLMs), highlighting how transformer architectures and newer subquadratic layers, like Hyena, are decoding the "grammar" of DNA and single-cell data to predict everything from gene expression to 3D chromatin structure.

Architectural Evolution

The evolution of genomic deep learning can be categorized into three main architectural waves:

  1. Traditional Models: CNNs for local motif detection and RNNs for sequential memory.
  2. Transformer-Hybrids: Models like Enformer and Borzoi that use CNNs to "summarize" local DNA regions and then apply Transformer blocks to model long-range interactions between those regions.
  3. Genomic LLMs: Models pre-trained on massive genomic corpora (like the 30-million cell Genecorpus-30M) to capture the global structure of genomic sequences.
The end-to-end pipeline of Genome LLMs, from diverse data sources to downstream biological tasks.

Learning the Language of Life

Just as NLP models learn the rules of English, genomic LLMs learn the "grammar" of life—how promoters, enhancers, and genes interact—without needing explicit labels during pre-training. This is achieved through specific pretext tasks:

  • Masked Language Modeling (MLM): Hiding parts of a sequence and asking the model to fill in the blanks (e.g., DNABERT, Nucleotide Transformer).
  • Autoregressive Modeling (ALM): Predicting the next "token" in a sequence (e.g., HyenaDNA, scGPT).
Visualizing Masked Language Modelling (MLM) and Autoregressive Language Modelling (ALM) pretext tasks used in genomic pre-training.

A standout technical discussion is the Hyena layer, which replaces the computationally expensive "attention" mechanism of Transformers with subquadratic long convolutions and gating. This allows for context windows of up to 1 million nucleotides, essential for modeling distal regulators.

Data and Tokenization Strategy

The review surveys a wide array of data sources used to train these "Genomic Giants," including reference genomes (Human T2T), functional benchmarks (ENCODE), and single-cell corpora (CELLxGENE). How these models "read" DNA is critical; the shift from overlapping k-mers to Byte Pair Encoding (BPE) has allowed models to process longer sequences more efficiently by merging frequent nucleotide patterns into single tokens.

In the realm of single-cell data, models like scGPT treat a cell as a "sentence" and genes as "words." This allows the model to understand gene-gene relationships and perform "zero-shot" predictions on how a cell might react to a specific drug or genetic perturbation.

Results and Scaling Laws

The Nucleotide Transformer (2.5B parameters) demonstrated that increasing model size and training on diverse species significantly improves the model's ability to capture functional biological relevance. While performance is reaching state-of-the-art levels—HyenaDNA achieved top-tier results on GenomicBenchmarks while using 500x the context length of previous models—the compute requirements are massive, often measured in "PFS-Days" (petaflop/s-days).

Limitations and Future Frontiers

Despite their power, several hurdles remain. Interpretability is a major hurdle; while we can see where a model is looking via attention maps, we don't always know why it made a specific biological prediction. Furthermore, most current models are "cell-type agnostic," struggling to predict how the same DNA sequence behaves differently in a heart cell versus a brain cell.

As models become more powerful at predicting traits from DNA, the risk of re-identifying individuals from "anonymized" genomic data increases, necessitating better privacy-preserving techniques. Looking forward, the authors suggest that the next step beyond Transformers might be Diffusion Models, which could be used to generate entirely new, functional synthetic DNA sequences for synthetic biology.

Summary updated

BibTeX
@misc{consens2023transformers,
  author = {Micaela E. Consens and Cameron Dufault and Michael Wainberg and Duncan Forster and Mehran Karimzadeh and Hani Goodarzi and Fabian J. Theis and Alan Moses and Bo Wang},
  title = {{To Transformers and Beyond: Large Language Models for the Genome}},
  year = {2023},
  eprint = {2311.07621},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.07621},
}
Figure