Accelerating in-silico saturation mutagenesis using compressed sensing

Jacob Schreiber, Surag Nair, Akshay Balsubramani, Anshul KundajebioRxiv 2021

TL;DR

This paper introduces Yuzu, a novel method that significantly accelerates in-silico saturation mutagenesis (ISM) for analyzing biological sequences. By leveraging compressed sensing principles, Yuzu reduces the computational cost of ISM from being linear in sequence length to a constant number of operations, enabling faster model interpretation.

What Problem Does This Paper Address?

Interpreting complex machine learning models, especially in genomics, is crucial for understanding biological mechanisms. In-silico saturation mutagenesis (ISM) is a popular technique for this, where each position in a biological sequence is systematically mutated to observe the impact on the model's output. However, this approach is computationally expensive, requiring a number of forward passes through the model proportional to the sequence length. This becomes a bottleneck, particularly for long sequences or when exploring many hypotheses interactively. Existing methods like fastISM offer some improvements but still face limitations, especially with small batch sizes.

Methods

Yuzu tackles the computational bottleneck of ISM by applying compressed sensing. The core idea is that for models with limited receptive fields (like convolutional neural networks), the differences in model outputs between a reference sequence and its mutated versions (called "deltas") are sparse. Instead of running each mutated sequence through the entire model, Yuzu compresses these sparse deltas into a smaller set of "probes." These probes are then processed by the model's convolutional layers. The outputs are then "decoded" back to reconstruct the deltas. This process requires only a constant number of forward passes, regardless of sequence length, as the number of probes depends on the receptive field, not the sequence length. For non-convolutional layers, Yuzu either reconstructs deltas directly or, once the receptive field covers the entire input, reverts to standard ISM.

Datasets

Not explicitly discussed in the paper. The authors evaluate their method on six pre-defined models commonly used in genomics, including a single convolution, a toy network, DeepSEA, Basset, FactorizedBasset, and a small BPNet.

Key Insights and Ideas

  • Compressed Sensing for Model Interpretation: The paper demonstrates a novel application of compressed sensing beyond its typical use in signal acquisition, applying it to accelerate a crucial model interpretation technique.
  • Sparsity of Mutational Deltas: The key insight is that the differences in model outputs caused by single mutations in convolutional layers are sparse, which is the property exploited by compressed sensing.
  • Constant Forward Passes: Yuzu's ability to achieve a constant number of forward passes, independent of sequence length, is a significant theoretical and practical advancement over traditional ISM.
  • Speedup Increases with Complexity: The benefits of Yuzu are more pronounced with more complex convolutions (more filters, larger kernel widths) and longer sequences, suggesting its relevance in real-world genomics applications.

Key Results

  • Yuzu can reduce the time spent in convolution operations by several orders of magnitude.
  • Overall, Yuzu speeds up ISM on common genomics architectures by over an order of magnitude.
  • The speedup increases with the complexity of the convolution operation and the length of the sequence.
  • Yuzu significantly outperforms fastISM in interactive settings (small batch sizes).
  • At large batch sizes, Yuzu is comparable to or outperforms fastISM.
  • The accuracy of Yuzu's attributions is near-perfect with modest values of the compression parameter ($\alpha > 1$).

Limitations and Future Work

  • Single Mutations: The current work focuses on single mutations. The authors suggest extending Yuzu to handle multiple mutations simultaneously, which would be invaluable for more comprehensive analyses.
  • Model Architectures: While Yuzu is primarily designed for models with limited receptive fields like convolutions, its application to other architectures like transformers with sparse attention maps is mentioned as a future direction.
  • Precomputation Cost: While not included in the core timing evaluations, there is an initial precomputation cost associated with Yuzu.
  • Parameter Tuning: The paper notes that a parameter ($\alpha$) related to the compression level needs to be tuned, though it can be found through a scan of a random sequence.

Summary updated

Abstract

Abstract In-silico saturation mutagenesis (ISM) is a popular approach in computational genomics for calculating feature attributions on biological sequences that proceeds by systematically perturbing each position in a sequence and recording the difference in model output. However, this method can be slow because systematically perturbing each position requires performing a number of forward passes proportional to the length of the sequence being examined. In this work, we propose a modification of ISM that leverages the principles of compressed sensing to require only a constant number of forward passes, regardless of sequence length, when applied to models that contain operations with a limited receptive field, such as convolutions. Our method, named Yuzu, can reduce the time that ISM spends in convolution operations by several orders of magnitude and, consequently, Yuzu can speed up ISM on several commonly used architectures in genomics by over an order of magnitude. Notably, we found that Yuzu provides speedups that increase with the complexity of the convolution operation and the length of the sequence being analyzed, suggesting that Yuzu provides large benefits in realistic settings. We have made this tool available at https://github.com/kundajelab/yuzu .
BibTeX
@misc{schreiber2021accelerating,
  author = {Jacob Schreiber and Surag Nair and Akshay Balsubramani and Anshul Kundaje},
  title = {{Accelerating in-silico saturation mutagenesis using compressed sensing}},
  year = {2021},
  doi = {10.1101/2021.11.08.467498},
  howpublished = {bioRxiv},
}

Loading related content...

Figure