Abstract
Probabilistic classification is essential for applications requiring uncertainty estimation, yet standard methods like Kernel Logistic Regression (KLR) suffer from high computational costs due to iterative non-linear optimization. This paper introduces the Least-Squares Probabilistic Classifier (LSPC), which replaces the log-likelihood objective with a squared-loss criterion. By fitting a linear kernel model directly to class-posterior probabilities, LSPC yields an analytical solution via a system of linear equations. Experimental results demonstrate that LSPC achieves classification accuracy comparable to KLR while being up to two orders of magnitude faster to train.
Introduction
In machine learning, a fundamental trade-off exists between computational efficiency and the richness of model output. While Support Vector Machines (SVMs) provide efficient hard decision boundaries, they lack inherent probabilistic interpretations. Conversely, Kernel Logistic Regression (KLR) provides well-calibrated class-posterior probabilities but is computationally expensive. KLR's reliance on maximum likelihood estimation necessitates iterative optimization (e.g., Newton's method), creating a bottleneck for large-scale or high-dimensional datasets.
The Least-Squares Probabilistic Classifier (LSPC) addresses this by reformulating the probabilistic classification problem into a least-squares framework. This shift allows for a closed-form solution, significantly accelerating the training process without compromising predictive performance.
Methods
Linear Model and Squared-Loss Objective
LSPC models the class-posterior probability $p(y|x)$ as a linear combination of basis functions, typically Gaussian kernels. Instead of maximizing the log-likelihood, the algorithm minimizes the squared error between the model and the true (though unknown) posterior probability.
Analytical Solution
The quadratic nature of the squared-loss objective leads to an analytical solution. The optimal parameters are found by solving a system of linear equations: $(\hat{H} + \lambda I)\alpha = \hat{h}$. This avoids the need for iterative "searching" for a minimum, which is the primary source of KLR's latency.
Class-wise Decomposition and Localization
A key efficiency gain in LSPC comes from its structural decomposition. By utilizing a "delta kernel" for class labels, the multi-class problem is partitioned into independent sub-problems for each class.
Furthermore, LSPC employs Kernel Localization, placing Gaussian kernels only at training points belonging to the target class. This reduces the number of parameters and further accelerates computation, especially as the number of classes increases.
Key Results and Discussion
The performance of LSPC was evaluated against KLR and probabilistic SVMs (PSVM) across several benchmark datasets, including mnist, usps, satimage, and letter.
- Computational Speed: LSPC demonstrated a massive speedup, consistently training 100 times faster than KLR on the
mnistanduspsdatasets. - Classification Accuracy: Despite the simplified objective, LSPC maintained accuracy levels comparable to KLR and often outperformed PSVM in multi-class settings.
- Numerical Stability: Solving a regularized linear system is inherently more stable than the quasi-Newton methods used in KLR, which can encounter convergence issues on certain data distributions.
Conclusion
LSPC provides a "superfast" alternative for probabilistic classification. By leveraging least-squares posterior fitting and class-wise decomposition, it bridges the gap between the speed of deterministic classifiers and the utility of probabilistic ones. Future work may explore the application of this framework to multi-task learning and the development of specialized kernels for complex label structures.
Summary updated