Deepprune: Learning Efficient and Interpretable Convolutional Networks Through Weight Pruning for Predicting DNA-Protein Binding

Xiao Luo, Weilai Chi, Minghua Deng

Abstract: Convolutional neural network (CNN) based methods have outperformed conventional machine learning methods in predicting the binding preference of DNA-protein binding. Although studies in the past have shown that more convolutional kernels help to achieve better performance, visualization of the model can be obscured by the use of many kernels, resulting in overfitting and reduced interpretation because the number of motifs in true models is limited. Therefore, we aim to arrive at high performance, but with limited kernel numbers, in CNN-based models for motif inference. We herein present Deepprune, a novel deep learning framework, which prunes the weights in the dense layer and fine-tunes iteratively. These two steps enable the training of CNN-based models with limited kernel numbers, allowing easy interpretation of the learned model. We demonstrate that Deepprune significantly improves motif inference performance for the simulated datasets. Furthermore, we show that Deepprune outperforms the baseline with limited kernel numbers when inferring DNA-binding sites from ChIP-seq data.

Introduction

Predicting where proteins bind to DNA is a cornerstone of genomics, essential for understanding gene regulation and disease. While Convolutional Neural Networks (CNNs) have become the gold standard for this task—outperforming traditional statistical methods—they come with a significant catch: the "black box" problem.

To achieve high accuracy, researchers often use CNNs with a large number of convolutional kernels. However, biological reality is usually simpler; a protein might only recognize a few specific "motifs" (short DNA sequences). Large models often overfit, creating "auxiliary kernels" that capture noise rather than biology. This makes it incredibly difficult to visualize the model and figure out which DNA patterns the protein actually cares about. The authors sought a way to maintain the high performance of large networks while forcing the model to be as simple and interpretable as a traditional Position Weight Matrix (PWM).

Methodology

The authors introduce Deepprune, which adds a "mask layer" between the global max pooling layer and the final dense layer of a standard CNN. The workflow follows an iterative "train-prune-fine-tune" cycle:

  1. Start Big: They begin with an over-parameterized network (e.g., 256 kernels).
  2. Iterative Pruning: They prune half of the weights in the dense layer at each step. Because each weight in the dense layer corresponds to a specific convolutional kernel, pruning a weight effectively "masks" or deletes that kernel's contribution to the final prediction.
  3. Fine-tuning: After pruning, the model is fine-tuned to regain any lost performance.
  4. Criteria: They tested three pruning strategies: weight-based (smallest absolute magnitude), score-based (least difference in activation between positive and negative samples), and a hybrid approach.
The Deepprune architecture featuring the mask layer and iterative pruning process.

Ultimately, the weight-based approach was selected as the default for its balance of simplicity and performance.

Datasets

The model was evaluated on two main types of data:

  • Simulated Datasets: Five datasets where known motifs from the TRANSFAC database were embedded into random DNA sequences. These provided a "ground truth" to see if Deepprune could actually recover the correct motifs.
  • Real-world ChIP-seq Data: 690 datasets from the ENCODE project, covering a vast array of DNA-binding proteins. This is the standard benchmark for evaluating DNA-protein binding models in a biological context.

Key Insights and Ideas

  • The Utility of Redundancy: Starting with a large, over-parameterized network provides stronger "optimization power" to find a good solution initially, which can then be distilled down through pruning.
  • Auxiliary Kernels as Noise: Most kernels in a standard large CNN act as "auxiliary" components that help during training but produce noise at the end. Deepprune successfully identifies and eliminates these, leaving only the "motif detectors."
  • Robustness to Initialization: Deepprune was found to be much more robust to different random initializations (seeds) than standard baseline CNNs.
  • Interpretability via Sparsity: By forcing the model to use only a few kernels (e.g., 4 or 8), the resulting "sequence logos" were significantly clearer and matched known biological motifs much more closely than the baseline.

Key Results

Deepprune demonstrated superior performance across both simulated and real-world datasets. On 690 real-world datasets, Deepprune (with only 4 kernels) outperformed the baseline CNN on 77.1% of the datasets. The improvement in AUC (Area Under the Curve) was highly significant, with a p-value of $1.02 \times 10^{-58}$.

Comparison of AUC and statistical significance between baseline and Deepprune across different kernel numbers.

Furthermore, using the Tomtom algorithm to compare recovered motifs to known databases, Deepprune achieved much lower E-values (indicating higher similarity) than the baseline. For example, on one dataset, Deepprune hit an E-value of $1.35 \times 10^{-23}$ compared to the baseline's $1.64 \times 10^{-2}$.

Limitations and Future Work

The authors acknowledge that their current architecture is quite simple—it lacks hidden layers between the kernels and the output. This means the model might struggle to capture complex "motif interactions" (epistasis). Future work could involve applying pruning to more complex architectures, such as those including Recurrent Neural Networks (RNNs) or Attention mechanisms, and exploring the Lottery Ticket Hypothesis further.

Summary updated

BibTeX
@inproceedings{luo2019deepprune,
  author = {Xiao Luo and Weilai Chi and Minghua Deng},
  title = {{Deepprune: Learning Efficient and Interpretable Convolutional Networks Through Weight Pruning for Predicting DNA-Protein Binding}},
  booktitle = {Frontiers in Genetics},
  year = {2019},
  doi = {10.3389/fgene.2019.01145},
}
Figure