A mechanistically interpretable neural network for regulatory genomics

Alex M Tseng, Gökcen Eraslan, Tommaso Biancalani, Gabriele Scalia · Submission to ICLR 2025 · Rejected

Here is a blog-style summary of the paper.

TL;DR

Deep neural networks excel at predicting genomic function, but deciphering why they make a prediction typically requires fragile, computationally heavy post-hoc tools. The authors introduce ARGMINN, an intrinsically interpretable architecture that directly learns non-redundant DNA motifs in its first layer and models their complex spatial rules via an explicit memory-stream attention mechanism. ARGMINN matches the expressivity of first-order logic over motifs, outperforms standard pipelines in motif discovery and instance calling, and enables rational, transparent design of novel regulatory sequences.

What Problem Does This Paper Address?

Transcription factors (TFs) govern gene expression by binding short DNA patterns called motifs. The regulatory function of a sequence depends on these motifs and their syntax—their spacing, orientation, ordering, and combinations.

While sequence-to-function deep neural networks (DNNs) accurately predict protein binding and chromatin accessibility from raw DNA, extracting biological understanding from them remains a major hurdle:

  1. Distributed representations: Standard convolutional layers distribute motif features across multiple filters and deeper layers, meaning individual filters rarely represent distinct, clean motifs.
  2. Fragile post-hoc attribution: Popular post-hoc pipelines (e.g., DeepLIFT/Integrated Gradients followed by TF-MoDISco clustering) are noisy, computationally demanding (often taking 10× longer than training), and prone to spurious attributions.
  3. Limited expressivity of prior interpretable models: Newer glass-box models, such as ExplaiNN, score motifs independently and sum them linearly, leaving them mathematically unable to model cooperative or conditional syntax (e.g., multi-part binding sites).

Methods

ARGMINN trains end-to-end using two modular, biologically grounded components:

  • Module 1: Motif Scanners with Filter-Overlap Regularization: A single 1D convolutional layer with ReLU activation acts as a bank of motif scanners. To prevent different filters from redundantly learning the same pattern or splitting motifs across filters, the authors introduce a novel filter-overlap loss ($\mathcal{L}_o$) combined with an $L_1$ penalty on weights. This loss penalizes multiple filters if they simultaneously activate while having non-zero weights over overlapping sequence windows. As a result, each filter is pushed to learn one distinct, non-redundant motif.
  • Module 2: Syntax Builder via Memory-Stream Attention: Instead of quadratic self-attention, ARGMINN uses a modified multi-head attention mechanism. Successive layers update an explicit memory stream vector ($m_l$). Each layer projects a single query vector from $m_{l-1}$ to attend over the original first-layer motif activations concatenated with sinusoidal positional encodings ($A \parallel P$). Because keys and values are always derived directly from the original tokens, attention scores can be traced back in a single forward pass to identify exact motif instances and their spatial relationships.

$$\mathcal{L}(S, A, W) = \mathcal{L}_{\text{pred}}(f(S), y) + \lambda_o \mathcal{L}_o(A, W) + \lambda_l \|W\|_1$$

Input DNA ──> [ Motif Scanners + Overlap Loss ] ──> Motif Activations (A)
                                                               │
Positional Encodings (P) ──────────────────────────────────────┴──> Concatenate (A || P)
                                                                         │
Memory Stream (m₀=1) ──> [ Query q₁ ] ──x── [ Keys/Values from (A || P) ] ──> m₁ ──> ... ──> Prediction

Datasets

  • Synthetic Datasets: Simulated 500 bp DNA sequences generated by embedding motifs from the JASPAR database into random backgrounds to evaluate specific syntactic arrangements (SPI1, TAL/GATA, E2F6/MAX, JUND/TEAD, REST, and SPI1/CTCF).
  • Experimental Genomic Benchmarks (ENCODE): 500 bp peak sequences from ChIP-seq (CTCF, FOXA2, REST) and DNase-seq accessibility across cell lines (HepG2, HL-60, K562, GM12878).
  • Validation Datasets: Independent transcription factor footprints (Vierstra et al., 2020) for ground-truth binding verification, and known causal DNase-sensitivity quantitative trait loci (dsQTLs) in GM12878.

Key Insights and Ideas

  • Provably expressive yet readable: The authors prove theoretically (Theorem 1) that any motif configuration expressible in first-order logic with positional variables can be recognized by ARGMINN. Conversely, models relying on linear combination (like ExplaiNN) provably fail on non-linear motif interactions (Corollary 1.1).
  • Instance calling in a single forward pass: Rather than performing secondary scanning with external tools like FIMO, thresholding ARGMINN’s attention scores ($>0.9$) points directly to the active motif instances governing a prediction.
  • Rational, interpretable sequence design: Because ARGMINN’s decisions reflect explicit motif pairings and distance distributions, researchers can sample these rules to generate entirely synthetic sequences from scratch with known biological justification.

Key Results

  • Motif Discovery: ARGMINN captured ground-truth and biologically relevant motifs with far higher fidelity than standard CNNs, ExplaiNN, or MoDISco, while discovering zero extraneous motifs across all synthetic datasets and significantly fewer false-positive motifs on experimental data.
  • Syntax Expressivity: On a synthetic REST dataset requiring specific orientation and 10 bp spacing between two half-sites, ARGMINN reached 90.9% test accuracy, whereas ExplaiNN plateaued at 73.4%.
  • Motif Instance Calling: Top-$k$ instances identified directly by ARGMINN achieved superior recall and precision compared to running FIMO scans on MoDISco motifs.
  • Variant Prioritization: ARGMINN better distinguished causal dsQTLs from correlated non-causal variants in GM12878, as causal mutations directly disrupted its recognized motif instances.
  • Generative Sequence Design: Synthetic sequences designed by sampling ARGMINN’s learned grammar were confirmed to have high chromatin accessibility using independent oracle models, including Borzoi ($p = 1.78 \times 10^{-32}$ over shuffled backgrounds), performing comparably to natural regulatory DNA ($p = 0.75$).

Limitations and Future Work

  • Competitive, but not superior, raw accuracy on real data: On noisy experimental datasets, ARGMINN performs competitively with standard black-box CNNs (e.g., auROC of 0.848 vs. 0.850 on CTCF), but does not exceed them, as unconstrained CNNs exploit non-motif dataset artifacts (such as broad GC shifts).
  • Computational overhead during training: Calculating the pairwise filter-overlap regularization adds training time (15 minutes vs. 6 minutes for a standard CNN on SPI1).
  • Context window scale: Evaluated primarily on 500 bp inputs; expanding the architecture to process tens or hundreds of kilobases remains open for future research.

Summary updated

BibTeX
@inproceedings{tseng2024mechanistically,
  author = {Alex M Tseng and Gökcen Eraslan and Tommaso Biancalani and Gabriele Scalia},
  title = {{A mechanistically interpretable neural network for regulatory genomics}},
  booktitle = {MLGenX @ ICLR},
  year = {2024},
  url = {https://openreview.net/forum?id=O3cxFYGEvw},
}
Figure