Modeling Long Range Dependencies in Genomic Sequences

389 concepts268 papers1 proposal

The language of the genome is fundamentally different from human text. When reading a book, the meaning of a word depends primarily on its immediate sentence or paragraph. In contrast, the functional meaning of a DNA sequence is often governed by physical interactions that span vast distances. A genetic element called an enhancer might regulate the expression of a gene located hundreds of thousands or even millions of base pairs away by looping across 3D space to contact a promoter.

Traditional genomic deep learning models are blind to this global architecture. Because they rely on narrow context windows, they are forced to truncate sequences, discarding the distal regulatory elements that dictate cellular behavior. To truly decode the genome, modern architectures must scale their context windows to capture these long-range dependencies.

The Quadratic Wall of Attention

Why can't we simply feed a million-base-pair DNA sequence into a standard Transformer model? The bottleneck lies in the mechanics of self-attention.

In a standard Transformer encoder, every token in a sequence attends to every other token. For a sequence of length $N$, computing this dense pairwise attention matrix requires $O(N^2)$ time and memory.

Standard Attention:  O(N²) Complexity
[Token 1] <---> [Token 2] <---> [Token 3] <---> [Token 4] ... <---> [Token N]
(Every token compares itself to every other token)

When processing short sequences, this quadratic cost is manageable. Early genomic language models, such as those evaluated by Gonzalo Benegas et al. in DNA language models are powerful predictors of genome-wide variant effects, typically operated within restricted context windows of 512 base pairs. Similarly, the foundation models described by Hugo Dalla-Torre et al. in The Nucleotide Transformer: Building and Evaluating Robust Foundation Models for Human Genomics capped their context windows at roughly 12 kilobases.

While these models excel at identifying local features like promoters or splice sites, they hit a computational wall when scaled to megabase-level dependencies. As Adibvafa Fallahpour et al. note in BioReason: Incentivizing Multimodal Biological Reasoning within a DNA-LLM Model, forcing a model to truncate sequences means losing the complex, long-distance interactions that govern disease mechanisms and gene regulation.

Sub-Quadratic Scaling via Implicit Convolutions

To bypass the quadratic wall, researchers have shifted toward architectures that scale sub-quadratically with sequence length, most notably State Space Models (SSMs) and long implicit convolutions.

A prime example of this paradigm shift is HyenaDNA, introduced by Eric Nguyen et al. in HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolution. Instead of computing a dense $O(N^2)$ attention matrix, HyenaDNA utilizes sub-quadratic implicit convolutions that scale at $O(N \log N)$ complexity.

Implicit Convolution: O(N log N) Complexity via FFT
[Input Sequence] ---> [Fast Fourier Transform] ---> [Frequency Domain Multiply] ---> [Inverse FFT]
(Allows a single nucleotide to resolve context across 1 million tokens efficiently)

By leveraging the Fast Fourier Transform (FFT) to perform long convolutions, the model can process context windows up to 1 million tokens at single-nucleotide resolution. This resolution is critical: tokenizing DNA into coarse chunks (like fixed-length k-mers) often destroys precise biological boundaries. Single-nucleotide resolution combined with a megabase context window allows the model to differentiate highly similar biological sequences and capture distinct mutational patterns that only emerge over immense genomic distances.

As synthesized by Gonzalo Benegas et al. in Genomic Language Models: Opportunities and Challenges, moving away from traditional attention mechanisms to architectures like SSMs makes the complex, long-range regulatory logic of the genome computationally accessible for the first time.

Alternative Paradigms: Token Alignment and Latent Bottlenecks

Beyond designing new sub-quadratic operators from scratch, two alternative strategies have emerged to handle long-range genomic context: cross-modal token alignment and latent attention bottlenecks.

Token Alignment with Frozen LLMs

Rather than training a massive genomic model from scratch, Edouardo Honig developed the Genetic sequence Token Alignment (GTA) framework in Long-range gene expression prediction with token alignment of large language model.

GTA repurposes the pre-existing, massive context windows of frozen natural language LLMs (such as Llama 3). By mapping raw DNA sequences into the text model's embedding space, this approach expands the effective genomic context window to 1 million base pairs. This massive expansion captures distal regulatory interactions that are completely missed by shorter-range architectures, yielding a substantial leap in gene expression prediction accuracy.

Latent Bottlenecks

Another approach to mitigating quadratic cost is to decouple the length of the raw input sequence from the computational depth of the network. In Predicting gene and protein expression levels from DNA and protein sequences with Perceiver, Matteo Stefanini et al. adapted the Perceiver architecture for genomic modeling.

Instead of performing self-attention across the entire long DNA sequence, the Perceiver uses a cross-attention mechanism to map the high-dimensional input sequence into a much smaller, fixed-size latent bottleneck layer.

Perceiver Architecture:
[Very Long DNA Input (N)] 
          │
          ▼  (Cross-Attention)
[Small Latent Bottleneck (M)] <───► [Deep Self-Attention Layers (O(M²))]

Because the deep self-attention layers only operate on this compact latent space ($M \ll N$), the computational cost scales linearly with the input sequence length rather than quadratically. This allows the model to distill global, long-range genomic context from thousands of base pairs away without incurring prohibitive computational overhead.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 272 papers
  2. Version 1 · 2026-10-04 · 293 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_long_range_genomic_dependencies_56658051,
  title = {long-range genomic dependencies},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/long-range-genomic-dependencies/rdr_56658051827349d4ada0c26adf35c53a},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 2, frozen text):

@misc{lacuna_long_range_genomic_dependencies_56658051_v2,
  title = {long-range genomic dependencies},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/long-range-genomic-dependencies/rdr_56658051827349d4ada0c26adf35c53a/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-26},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake