Long-range gene expression prediction with token alignment of large language model

Edouardo Honig, Huixin Zhan, Ying Nian Wu, Zijun Frank Zhang

Abstract

Gene expression is a cellular process that plays a fundamental role in human phenotypical variations and diseases. Despite advances of deep learning models for gene expression prediction, recent benchmarks have revealed their inability to learn distal regulatory grammar. Here, we address this challenge by leveraging a pretrained large language model to enhance gene expression prediction. We introduce Genetic sequence Token Alignment (GTA), which aligns genetic sequence features with natural language tokens, allowing for symbolic reasoning of genomic sequence features via the frozen language model. This cross-modal adaptation learns the regulatory grammar and allows us to further incorporate gene-specific human annotations as prompts, enabling in-context learning that is not possible with existing models. Trained on lymphoblastoid cells, GTA was evaluated on cells from the Geuvadis consortium and outperforms state-of-the-art models such as Enformer, achieving a Spearman correlation of 0.65, a 10% improvement. Additionally, GTA offers improved interpretation of long-range interactions through the identification of the most meaningful sections of the input genetic context. GTA represents a powerful and novel cross-modal approach to gene expression prediction by utilizing a pretrained language model, in a paradigm shift from conventional gene expression models trained only on sequence data.

Introduction

Predicting gene expression levels from DNA sequences is a "holy grail" of genomics. While researchers have made significant progress understanding proximal regulatory elements immediately surrounding a gene, expression is also heavily influenced by distal elements—such as enhancers—located hundreds of thousands of base pairs away.

Existing deep learning models struggle with two primary limitations:

  1. Context Length: Most models have a limited "vision," missing crucial far-away distal elements.
  2. Regulatory Grammar: DNA possesses a complex "grammar" governing how disparate sequence parts interact, which is difficult for models to learn from scratch.
Comparison of genetic context length across various gene expression prediction models.

We introduce Genetic sequence Token Alignment (GTA), a framework that repurposes frozen Large Language Models (LLMs) like Llama3 to address these challenges. By expanding the genomic context window to 1 million base pairs—five times larger than previous state-of-the-art models—GTA captures long-range interactions that shorter-range models simply cannot see.

Methods

The GTA framework treats genomic data as a "language" that a frozen LLM can interpret. Instead of training a genomic model from scratch, GTA leverages the sophisticated symbolic reasoning and grammar-processing capabilities inherent in pretrained LLMs.

Architecture Overview

The model pipeline involves several sophisticated stages:

  • Feature Extraction: Raw DNA is processed using Sei, a pretrained model that converts 4,096-base pair chunks into 33 "regulatory activity" features (e.g., identifying enhancers or promoters).
  • Token Alignment: This core innovation creates "text prototypes"—mathematical representations that map genomic features into the LLM’s existing embedding space. This allows the LLM to "read" genomic features as if they were words.
  • Frozen Backbone: GTA utilizes Llama3-8B as its reasoning engine. The backbone remains "frozen" (weights are unchanged) during training, which reduces computational costs and preserves the model's linguistic reasoning skills.
  • In-Context Learning: By using an LLM, GTA can incorporate natural language "prompts." The model is fed actual text descriptions of genes (e.g., from the NCBI database) alongside genomic data, allowing it to use human-curated knowledge to inform predictions.
The GTA architecture overview, showing the flow from genome sequence to gene expression prediction via a frozen LLM.

Results and Discussion

GTA was trained on lymphoblastoid cells (GM12878) and evaluated using data from the Geuvadis consortium, encompassing gene expression measurements from 421 individuals.

Superior Accuracy and Long-Range Success

GTA achieved a Spearman correlation of 0.65, outperforming the previous industry standard, Enformer (0.58), by approximately 10%. Performance peaked at the 1,000 kb context level, validating that the extended "vision" provided by the LLM backbone is crucial for accurate prediction of distal interactions.

Biological Interpretability

By analyzing the model's "attention," researchers found that GTA naturally focused on biologically significant areas, such as the Transcription Start Site (TSS) and cell-specific enhancers, without explicit instruction. Furthermore, "semantic anchoring"—using actual names of genomic features to find relevant tokens in the LLM's vocabulary—performed significantly better than random initialization. This suggests the LLM’s internal knowledge of those words helps it process the underlying genomic logic.

Limitations and Future Work

While GTA represents a significant advancement, it remains dependent on the quality of features provided by the Sei model. Additionally, as Llama3 is a "causal" (decoder-only) model, it processes information unidirectionally, whereas DNA regulation is often bidirectional. Future research may explore non-causal or bidirectional architectures and expand testing to a wider variety of tissue types.

Summary updated

BibTeX
@inproceedings{honig2025long,
  author = {Edouardo Honig and Huixin Zhan and Ying Nian Wu and Zijun Frank Zhang},
  title = {{Long-range gene expression prediction with token alignment of large language model}},
  booktitle = {AI4NA @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=9vGR0p0gIa},
}
Figure