# Neural Networks beyond explainability: Selective inference for sequence motifs

arXiv: https://arxiv.org/abs/2212.12542 · HTML: https://mlsanity.com/paper/2212.12542/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 10 of its 49 references that are in the map.
- First posted on arXiv 23 Dec 2022.

## Builds on (most cited first, 10 of 10)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [Theoretical insights into the optimization landscape of over-parameterized shallow neural networks](https://mlsanity.com/paper/1707.04926/) (2017)
- [Explainable Deep Learning: A Field Guide for the Uninitiated](https://mlsanity.com/paper/2004.14545/) (2020)
- [Exact post-selection inference, with application to the lasso](https://mlsanity.com/paper/1311.6238/) (2013)
- [Post Selection Inference with Kernels](https://mlsanity.com/paper/1610.03725/) (2016)
- [Selective inference in regression models with groups of variables](https://mlsanity.com/paper/1511.01478/) (2015)
- [Technical Note on Transcription Factor Motif Discovery from Importance Scores (TF-MoDISco) version 0.5.6.5](https://mlsanity.com/paper/1811.00416/) (2018)
- [Sparse regression and marginal testing using cluster prototypes](https://mlsanity.com/paper/1503.00334/) (2015)
- [A general framework for estimation and inference from clusters of features](https://mlsanity.com/paper/1511.07839/) (2015)
- [Convolutional Motif Kernel Networks](https://mlsanity.com/paper/2111.02272/) (2021)

## Abstract (arXiv)

Over the past decade, neural networks have been successful at making predictions from biological sequences, especially in the context of regulatory genomics. As in other fields of deep learning, tools have been devised to extract features such as sequence motifs that can explain the predictions made by a trained network. Here we intend to go beyond explainable machine learning and introduce SEISM, a selective inference procedure to test the association between these extracted features and the predicted phenotype. In particular, we discuss how training a one-layer convolutional network is formally equivalent to selecting motifs maximizing some association score. We adapt existing sampling-based selective inference procedures by quantizing this selection over an infinite set to a large but finite grid. Finally, we show that sampling under a specific choice of parameters is sufficient to characterize the composite null hypothesis typically used for selective inference-a result that goes well beyond our particular framework. We illustrate the behavior of our method in terms of calibration, power and speed and discuss its power/speed trade-off with a simpler data-split strategy. SEISM paves the way to an easier analysis of neural networks used in regulatory genomics, and to more powerful methods for genome wide association studies (GWAS).
