Abstract
Outlier detection is critical for identifying anomalies in diverse datasets, from fraud detection to data cleaning. The Inverse Christoffel Function (ICF) provides a geometric approach to this problem by using data moments to define a "volume" of normal data. However, the original ICF method is computationally infeasible for high-dimensional data due to the exponential growth of the moment matrix. This paper introduces the Kernelized Inverse Christoffel (KIC) function, which utilizes the kernel trick and matrix inversion lemmas to reduce computational complexity from $O(s^3)$ in the feature space to $O(n^3)$ in the sample space. By incorporating Radial Basis Function (RBF) kernels, KIC can effectively model complex, non-linear data distributions. Our results across 15 benchmark datasets show that KIC outperforms traditional methods and successfully scales to high-dimensional problems where the original ICF fails.
Introduction
Outlier detection—the identification of data points that deviate significantly from the norm—is a cornerstone of modern data science, essential for tasks ranging from fraud detection to data preprocessing. A recent promising approach utilizes the Inverse Christoffel Function (ICF), which leverages the "moments" of a data distribution to define its geometric shape. Points with high ICF values are situated outside the primary data volume and are thus classified as outliers.
Despite its theoretical appeal, the original ICF method faces a significant "dimensionality wall." It requires the inversion of a moment matrix whose size grows exponentially with the number of features ($p$). For instance, applying a degree-2 polynomial ICF to the MNIST dataset (784 features) necessitates inverting a dense $308,505 \times 308,505$ matrix, a task that exceeds the memory capacity of most contemporary hardware.
Methodology: The Kernelized Inverse Christoffel (KIC)
To overcome these limitations, we introduce the Kernelized Inverse Christoffel (KIC) function. This approach transforms the computational bottleneck through two primary mathematical innovations:
- The Woodbury Identity and Sample-Space Inversion: Instead of direct ICF calculation, we compute a regularized lower bound. By applying the Woodbury matrix identity, the computational complexity is shifted from the feature space ($s \times s$) to the sample space ($n \times n$). This reduces the complexity from $O(s^3)$ to $O(n^3)$, making the method viable for high-dimensional datasets with a moderate number of samples.
- The Kernel Trick: The reformulated KIC equations depend solely on inner products between data points. This allows for the integration of various kernels, most notably the Radial Basis Function (RBF). Unlike polynomial kernels that produce smooth, broad boundaries, the RBF kernel enables the ICF to "shrink-wrap" around complex, non-linear, and even disconnected data clusters.
Additionally, we demonstrate that this regularized lower bound is mathematically equivalent to the optimal value of a ridge regression problem. This provides an intuitive interpretation: an outlier is a point that cannot be effectively approximated by the regularized subspace spanned by the rest of the data.
Experimental Results
The KIC and its filtered variant (KIC2) were evaluated against traditional methods, including K-Nearest Neighbors (KNN) and Influence (INF), across 15 diverse datasets from the UCI and ODDS repositories.
Performance and Robustness
The kernelized approach demonstrated significant improvements in both accuracy and reliability:
- State-of-the-Art Accuracy: KIC2 achieved the highest average Area Under the Precision-Recall Curve (AUPRC) across the benchmark suite.
- Overcoming Memory Constraints: While the original IC method failed on 6 of the 15 datasets due to
MemoryError, KIC ran successfully on all of them, proving its scalability to high-dimensional inputs like MNIST and Isolet. - Reliability: KIC2-RBF attained the best average rank (4.0) and the lowest Root Mean Square Deviation (RMSD), indicating consistent performance across different data types.
Discussion and Future Work
While KIC successfully addresses the feature-scaling problem, its $O(n^3)$ complexity remains a challenge for extremely large sample sizes (e.g., millions of points). Future research will explore randomized sketching techniques to further improve sample-wise scalability. Furthermore, while heuristics for hyperparameter selection (e.g., kernel width $\sigma$) were provided, automated tuning for unsupervised outlier detection remains an open area of investigation. Finally, developing "robust" variants of the moment matrix could prevent outliers from influencing the very shape they are meant to be excluded from.
Summary updated