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

FreqRISE: Explaining time series using frequency masking

Thea Brüsch, Kristoffer Knutsen Wickstrøm, Mikkel N. Schmidt, Tommy Sonne Alstrøm, Robert Jenssen

TL;DR

This paper introduces FreqRISE, a novel method for explaining time series data by focusing on the frequency and time-frequency domains, rather than just the raw time domain. This approach is crucial for domains where important patterns are better represented by frequencies, and it demonstrates superior performance in localization and faithfulness compared to existing methods, especially in noisy conditions.

What Problem Does This Paper Address?

As time series data becomes increasingly critical in fields like healthcare, finance, and climate, the need for explainable AI (XAI) models is paramount. Current XAI methods, particularly those based on saliency maps, often assume that the important information is localized in the raw input space (e.g., pixels in an image). However, for many time series, the salient features might be more readily apparent in their frequency components. This paper addresses the challenge of explaining time series by proposing methods that can effectively identify and highlight important information within the frequency and time-frequency domains, which are often overlooked by traditional XAI techniques.

Methods

FreqRISE builds upon the masking-based XAI framework, specifically inspired by the RISE (Randomized Input Sampling for Explanation) method. The core innovation lies in applying these masking techniques not to the raw time series, but to its representation in the frequency domain (obtained via Discrete Fourier Transform - DFT) or the time-frequency domain (obtained via Short-Time DFT - STDFT).

Here's a breakdown of the approach:

  • Dual Domain Masking: Instead of masking the time-domain signal directly, FreqRISE first transforms the time series into the frequency or time-frequency domain. Binary masks are then applied to this transformed representation.
  • Inverse Transformation: After masking in the frequency domain, the signal is transformed back to the time domain to evaluate the model's output.
  • Relevance Estimation: Similar to RISE, FreqRISE uses Monte Carlo sampling to estimate the relevance of different frequency components by observing how masking them affects the model's prediction. The relevance is then computed as a weighted average over many sampled masks.
  • Model-Agnostic: A key advantage is that FreqRISE is model-agnostic, meaning it only requires access to the model's inputs and outputs, not its internal workings or gradients. This makes it broadly applicable to various time series models.

Datasets

The paper evaluates FreqRISE on two datasets:

  • Synthetic Dataset: This dataset, previously introduced in [12], is specifically designed to have salient information localized in the frequency domain, making it ideal for testing the method's ability to identify frequency-based features.
  • AudioMNIST: A dataset of spoken digits, used to evaluate FreqRISE on real-world audio data for tasks like digit classification and speaker gender identification.

Key Insights and Ideas

  • Frequency is Key: The paper strongly argues that for many time series, crucial information is not in the raw signal but in its frequency components. This challenges the prevailing assumption in XAI that saliency is always localized in the input space.
  • Robustness to Noise: FreqRISE demonstrates remarkable robustness to noise, maintaining high localization performance even when traditional gradient-based methods (like IG and LRP) falter. This is attributed to its model-agnostic nature and focus on frequency representations.
  • Domain Matters: The effectiveness of FreqRISE can depend on the chosen domain (time, frequency, or time-frequency). For tasks where frequency is the primary differentiator (like gender identification), the frequency domain is most informative. For tasks relying on temporal ordering of features (like digit recognition), the time-frequency domain offers a richer view.
  • Post-processing for Complexity: While FreqRISE can produce high complexity relevance maps, a simple post-processing step (thresholding based on quantiles) can significantly reduce complexity while maintaining good faithfulness, offering a practical way to refine explanations.

Key Results

  • Synthetic Data: FreqRISE achieved perfect localization (100%) on the synthetic dataset, outperforming baselines like IG (52.4%) and LRP (63.8%) in noisy conditions. While its raw complexity was higher, post-processing brought it down significantly.
  • AudioMNIST (Digit Task): FreqRISE showed strong faithfulness in both frequency and time-frequency domains, outperforming baselines in deletion plots.
  • AudioMNIST (Gender Task): FreqRISE demonstrated superior faithfulness in the frequency domain, where the fundamental frequency is known to be discriminative.
  • General Performance: FreqRISE consistently provides good localization and faithfulness across various tasks and datasets, often outperforming or matching strong baselines, especially in challenging noisy scenarios.

Limitations and Future Work

  • Hyperparameter Tuning: Like many XAI methods, FreqRISE requires careful selection of hyperparameters (e.g., mask sampling grid size, number of masks). The paper notes the lack of a principled way to choose these and suggests tuning based on validation metrics.
  • Domain Selection: Determining the "correct" domain (time, frequency, or time-frequency) for explanation is still an open problem. Future work could focus on developing metrics to identify the most informative domain for a given task.
  • Computational Cost: FreqRISE, especially for complex datasets like AudioMNIST, requires a large number of masks (N=10,000) for convergence, increasing computational demands. Investigating convergence monitoring and early stopping is suggested.
  • Post-processing Heuristics: Developing more rigorous heuristics for choosing post-processing thresholds for relevance maps is a promising direction.

Summary updated

BibTeX
@inproceedings{brusch2025freqrise,
  author = {Thea Brüsch and Kristoffer Knutsen Wickstrøm and Mikkel N. Schmidt and Tommy Sonne Alstrøm and Robert Jenssen},
  title = {{FreqRISE: Explaining time series using frequency masking}},
  booktitle = {NLDL},
  year = {2025},
  url = {https://openreview.net/forum?id=OFDz3YPj3B},
}
Figure