Abstract: Machine learning models are effective at identifying outliers in large astronomical datasets, but explaining why an object is anomalous remains a challenge. We present Inverse Multiscale Occlusion (IMO), a feature attribution framework that identifies anomalies across multiple scales by injecting segments of an outlier into a normal baseline. Applied to galaxy spectra from the Dark Energy Survey Instrument (DESI), IMO successfully disentangles small-scale spectral features from large-scale calibration errors, outperforming standard gradient-based attribution methods.
Introduction
In the era of "Big Data" astronomy, instruments like the Dark Energy Survey Instrument (DESI) produce millions of galaxy spectra, necessitating the use of machine learning (ML) for data processing. While ML models are exceptionally good at flagging "outliers"—rare objects that deviate from the training distribution—they are notoriously opaque regarding their reasoning. Standard explainability tools, such as Gradients or Integrated Gradients, often fail on outliers because they push models into "unknown" territory where predictions become unreliable and noisy. Furthermore, astronomical anomalies can occur across vastly different scales, from narrow emission lines to broad instrumental calibration offsets, which most existing tools struggle to capture simultaneously.
The Inverse Multiscale Occlusion (IMO) Framework
To address these challenges, we introduce Inverse Multiscale Occlusion (IMO). Unlike standard occlusion, which attempts to explain an outlier by masking parts of it, IMO flips the script. It begins with a "normal" baseline spectrum and systematically replaces segments of it with corresponding segments from the outlier spectrum.
This "inverse" approach ensures that the model primarily processes data within its training distribution (the "comfort zone"), making its response more stable and interpretable. To ensure a fair comparison, baseline spectra are redshifted to match the outlier before occlusion. The method is "multiscale" because it repeats this process using varying window sizes ($W$). A small window ($W=1$) identifies sharp, narrow features, while a large window ($W=1024$) captures broad, large-scale discrepancies.
Comparative Performance and Multiscale Analysis
The effectiveness of IMO was tested on galaxy spectra from the DESI Early Data Release. We focused on complex cases like "Outlier 4," which contains both a large-scale calibration jump in the blue end and a small-scale double-peaked emission line.
As shown in the comparative analysis, standard methods like Gradients and Integrated Gradients almost entirely miss the large-scale calibration error. Feature Ablation (FA) identifies the jump but fails to characterize the progressive deviation. In contrast, IMO successfully identifies both issues. The multiscale decomposition reveals that the broad calibration issue is most prominent at $W=64$ and $W=256$, while the fine details of the emission lines are captured at $W=1$ and $W=4$.
Conclusion
IMO provides a robust framework for identifying exactly which features make an object an outlier. By maintaining model stability through inverse occlusion and capturing features across scales, it offers a significant improvement over traditional attribution methods for scientific discovery. While computationally more intensive than gradient-based methods, its ability to provide reliable, multiscale interpretations makes it a valuable tool for the next generation of astronomical surveys.
Summary updated