Abstract: In machine learning practice it is often useful to identify relevant input features. Isolating key input elements, ranked according their respective degree of relevance, can help to elaborate on the process of decision making. Here, we propose a novel method to estimate the relative importance of the input components for a Deep Neural Network. This is achieved by leveraging on a spectral re-parametrization of the optimization process. Eigenvalues associated to input nodes provide in fact a robust proxy to gauge the relevance of the supplied entry features. Notably, the spectral features ranking is performed automatically, as a byproduct of the network training, with no additional processing to be carried out. Moreover, by leveraging on the regularization of the eigenvalues, it is possible to enforce solutions making use of a minimum subset of the input components, increasing the explainability of the model and providing sparse input representations. The technique is compared to the most common methods in the literature and is successfully challenged against both synthetic and real data.
Introduction: The Black Box Problem
In deep learning, models are frequently treated as "black boxes." While they achieve high predictive accuracy, understanding the underlying logic of a specific decision remains a significant challenge. Existing explainability methods, such as SHAP (SHapley Additive exPlanations), LIME, or Integrated Gradients, are typically "post-hoc"—meaning they are applied after a model has already been trained.
These traditional methods face two major hurdles. First is the computational cost: finding "global" importance (determining which features matter for the entire dataset rather than a single instance) requires running these algorithms thousands of times and averaging the results. Second is passive observation: these methods describe what a model is using, but they do not allow researchers to constrain the model during training to prioritize a minimal subset of features. This paper introduces a way to bake feature selection and global relevance directly into the architecture's DNA.
Methodology: Spectral Re-parametrization
The core innovation of this approach is spectral re-parametrization. In a standard neural network, weights ($W$) are treated as independent variables. In this framework, the linear transformation between layers is represented as a square matrix ($A$) that undergoes spectral decomposition: $A = \Phi \Lambda \Phi^{-1}$.
The "secret sauce" lies in the eigenvalues ($\lambda_i$) associated with the input nodes. In this framework, the weight of a connection from an input node $i$ is directly proportional to its eigenvalue $\lambda_i$. This acts as a "Volume Knob": each input node receives its own eigenvalue which the network adjusts during training. If a feature is redundant or useless, the network can simply tune its eigenvalue to zero. Furthermore, by applying $L_1$ or $L_2$ penalties to these eigenvalues, the researchers can force the model to be "sparse," solving tasks using the smallest possible subset of inputs.
Experimental Setup and Datasets
The approach was validated across four distinct scenarios to test its robustness:
- Independent Gaussian Dataset: A synthetic test where 20 features have varying degrees of overlap between two classes, allowing for a clear ground-truth comparison of feature importance.
- Correlated Gaussian Dataset: A complex synthetic test where information is hidden in the relationship between pairs of features.
- MNIST: The classic handwritten digit dataset. The authors tested both a simplified "0 vs 1" task and full 10-digit classification.
- MILES Stellar Library: A real-world astrophysical dataset containing 985 stellar spectra used to predict "metallicity" (the abundance of heavy elements in a star).
Key Insights and Results
Unlike post-hoc tools, the spectral method provides a relevance ranking the moment training ends. The magnitude of the optimized eigenvalue serves as the relevance score. On synthetic data, these scores showed a near-perfect correlation ($\rho \approx 0.98$) with the theoretical ground truth importance of the features.
The method also enables extreme sparsity. For MNIST "0 vs 1" classification, the model maintained >99% accuracy using only 20 pixels out of 784. In the stellar metallicity task, it required only 0.7% of the available spectral lines to match the performance of a standard dense network. Notably, the model automatically "discovered" well-known absorption lines (like Calcium H & K) that astronomers have used for decades, validating that the model learns physically meaningful features.
Finally, the speed advantage is significant. In the stellar spectra task, calculating global relevance with the spectral method took roughly 0.003 seconds, compared to 0.34 seconds for Saliency Maps and 0.58 seconds for Integrated Gradients—a speedup of two orders of magnitude.
Limitations and Future Work
While powerful, the method is not a "plug-and-play" wrapper; it requires the network to be built using this specific spectral parametrization. Additionally, because the method provides a global metric, it might overlook features that are only important for rare, specific edge cases. Future research will focus on extending this spectral approach to more complex structures like Transformers or Convolutional Neural Networks (CNNs).
Summary updated