Synergistic eigenanalysis of covariance and Hessian matrices for enhanced binary classification
Agus Hartoyo, Jan Argasiński, Aleksandra Trenk, Kinga Przybylska, Anna Błasiak, Alessandro Crimi
TL;DR
Binary classification benefits from leveraging both data variability and model loss curvature. The authors propose a novel 2D projection formed by the leading eigenvectors of the covariance $S(\boldsymbol{\theta})$ and the Hessian $H_{\boldsymbol{\theta}}$, combined as $\mathbf{U}=[\mathbf{v}_1,\mathbf{v}_1']$ with $\mathbf{X}_{\text{proj}}=\mathbf{X}\mathbf{U}$, to optimize the two LDA criteria: maximize squared between-class distance and minimize within-class variance. They prove two theorems (with sketches) under ideal isotropy conditions showing that maximizing covariance variance increases $d^2$ and maximizing Hessian decreases within-class variance, yielding improved class separability. Empirically, across the Wisconsin Breast Cancer, Heart Disease, Pima diabetes, and neural spike-train datasets, the method outperforms PCA, Hessian-based projections, LDA, KDA, LOL, UMAP, and LLE, while also offering interpretable 2D visualizations of DNN decision boundaries and feature contributions. The work demonstrates that a simple, provably grounded 2D projection can enhance interpretability and classification performance with a computational footprint similar to traditional dimensionality-reduction approaches.
Abstract
Covariance and Hessian matrices have been analyzed separately in the literature for classification problems. However, integrating these matrices has the potential to enhance their combined power in improving classification performance. We present a novel approach that combines the eigenanalysis of a covariance matrix evaluated on a training set with a Hessian matrix evaluated on a deep learning model to achieve optimal class separability in binary classification tasks. Our approach is substantiated by formal proofs that establish its capability to maximize between-class mean distance (the concept of \textit{separation}) and minimize within-class variances (the concept of \textit{compactness}), which together define the two linear discriminant analysis (LDA) criteria, particularly under ideal data conditions such as isotropy around class means and dominant leading eigenvalues. By projecting data into the combined space of the most relevant eigendirections from both matrices, we achieve optimal class separability as per these LDA criteria. Empirical validation across neural and health datasets consistently supports our theoretical framework and demonstrates that our method outperforms established methods. Our method stands out by addressing both separation and compactness criteria, unlike PCA and the Hessian method, which predominantly emphasize one criterion each. This comprehensive approach captures intricate patterns and relationships, enhancing classification performance. Furthermore, through the utilization of both LDA criteria, our method outperforms LDA itself by leveraging higher-dimensional feature spaces, in accordance with Cover's theorem, which favors linear separability in higher dimensions. Additionally, our approach sheds light on complex DNN decision-making, rendering them comprehensible within a 2D space.
