NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Accelerating permutation testing in voxel-wise analysis through subspace tracking: A new plugin for SnPM

Felipe Gutierrez-Barragan, Vamsi K. Ithapu, Chris Hinrichs, Camille Maumet, Sterling C. Johnson, Thomas E. Nichols, Vikas Singh

TL;DR

This paper introduces RapidPT, a novel algorithm that significantly speeds up permutation testing for neuroimaging data by leveraging the low-rank structure of the permutation testing matrix. RapidPT achieves substantial runtime improvements (up to 1000x faster than naive methods) while maintaining high accuracy, making complex statistical analyses more accessible.

What Problem Does This Paper Address?

Permutation testing is a powerful non-parametric tool for controlling false positives in neuroimaging studies, especially when dealing with complex data structures and family-wise error rates. However, the computational cost of performing millions of permutations on high-dimensional voxel-wise data is a major bottleneck, limiting the feasibility of thorough analyses. Existing methods often struggle with this computational burden, especially for large datasets or when requiring a high number of permutations for precise p-value estimation. This paper aims to bridge this gap by developing a method that drastically reduces the computational cost without sacrificing statistical accuracy.

Methods

The core innovation of RapidPT lies in its approach to the permutation testing matrix, denoted as $T$. Instead of computing all entries of $T$ (which would be computationally prohibitive), RapidPT models $T$ as a low-rank matrix plus a low-variance residual. This structural property is exploited using techniques from Low-Rank Matrix Completion (LRMC) and subspace tracking.

The algorithm proceeds in two main phases:

  1. Training Phase: A small subset of the permutation testing matrix $T$ is computed. This "training set" is used to estimate the low-rank basis ($U$) and the variance ($\sigma$) and mean ($\mu$) of the residual component. This phase is crucial for learning the underlying structure of the data.
  2. Recovery Phase: For the remaining permutations, only a small fraction of the voxel-wise statistics are computed. The full permutation statistics are then reconstructed using the learned low-rank basis and the estimated residual. This significantly reduces the number of computations required per permutation.

RapidPT also incorporates a bias-variance correction mechanism to account for the effects of sub-sampling on the estimation of the maximum null distribution.

Datasets

The paper evaluates RapidPT using a combination of synthetic and real-world datasets:

  • Synthetic Data I: 30 synthetic images with 20,000 voxels, used to demonstrate the impact of hyperparameters.
  • Synthetic Data II: 48 synthetic datasets with 20,000 voxels, varying dataset size ($n$), signal strength, and sparsity.
  • ADNI Dataset: Real brain imaging data (gray matter tissue probability maps from T1-weighted MRI) from the Alzheimer's Disease Neuroimaging Initiative-II (ADNI2). Four datasets of varying sizes (50, 100, 200, and 400 subjects) were constructed from this data.

No new benchmarks were introduced; instead, RapidPT was compared against existing widely-used tools.

Key Insights and Ideas

  • Permutation Matrix Structure: The key insight is that the permutation testing matrix $T$ is not arbitrary but possesses a dominant low-rank structure, which can be exploited. This structure arises from the inherent spatial correlations in neuroimaging data.
  • Low-Rank Matrix Completion for Speed: Applying LRMC techniques allows for the reconstruction of the entire matrix $T$ from a very small fraction of its entries, drastically reducing computational cost.
  • Bias-Variance Trade-off in Sub-sampling: Sub-sampling introduces a bias-variance trade-off in estimating the residual, which can affect the accuracy of the max null distribution. RapidPT addresses this with a specific correction step.
  • Robustness to Hyperparameters: The algorithm demonstrates robustness to hyperparameter choices, with a clear threshold for sub-sampling rate ($\eta$) beyond which accuracy is maintained.

Key Results

  • Speedup: RapidPT achieves significant speedups:
  • Up to 1.5x-38x faster than SnPM on medium-sized datasets (50 ≤ n ≤ 200).
  • 1.5x-30x faster than SnPM on larger datasets (n ≥ 200).
  • 20x-1000x faster than a naive permutation testing implementation (NaivePT).
  • Speedups are particularly pronounced for larger numbers of permutations ($L$).
  • Accuracy: RapidPT recovers the max null distribution with high accuracy. KL-Divergence values between RapidPT and ground truth methods (SnPM/NaivePT) are generally low (< 0.05), indicating good agreement.
  • Thresholds and p-values: The t-thresholds and p-values derived from RapidPT are highly consistent with those from SnPM and NaivePT, especially for low p-value regimes.
  • Resampling Risk: While there are minor differences in the number of rejected null hypotheses, the resampling risk between RapidPT and baselines is generally low, and the identified significant regions largely overlap.
  • SnPM Integration: RapidPT is integrated as a plugin within the SnPM toolbox, allowing users to leverage its speed improvements directly within a familiar workflow.

Limitations and Future Work

  • Dataset Size Impact: While RapidPT offers speedups, the training phase can introduce a considerable overhead for larger datasets, negatively impacting speedup when fewer than 20,000 permutations are performed.
  • Sub-sampling Rate Threshold: While RapidPT is robust, there's a minimum sub-sampling rate required for accurate recovery. This threshold depends on the data dimensions and rank.
  • Future Work: The paper suggests that the implementation is available as a standalone toolbox and a plugin for SnPM, indicating ongoing development and accessibility. The theoretical guarantees and practical implications of the model are further discussed in supplementary material, hinting at deeper theoretical explorations.

Summary updated

BibTeX
@article{gutierrezbarragan2017accelerating,
  author = {Felipe Gutierrez-Barragan and Vamsi K. Ithapu and Chris Hinrichs and Camille Maumet and Sterling C. Johnson and Thomas E. Nichols and Vikas Singh},
  title = {{Accelerating permutation testing in voxel-wise analysis through subspace tracking: A new plugin for SnPM}},
  journal = {NeuroImage},
  year = {2017},
  doi = {10.1016/j.neuroimage.2017.07.025},
}
Figure