Spectral-graph Based Classifications: Linear Regression for Classification and Normalized Radial Basis Function Network

Zhenfang Hu, Gang Pan, Zhaohui WuarXiv 2017

Abstract

Spectral graph theory has traditionally been the domain of unsupervised learning, providing the mathematical foundation for clustering and manifold learning. This paper bridges the gap between spectral theory and supervised classification by demonstrating that Linear Regression for Classification (LRC) and Normalized Radial Basis Function Networks (nRBFN) are fundamentally spectral classifiers. By introducing the concept of "spectral risk," the authors provide a theoretical framework to quantify overfitting and propose a deterministic basis selection strategy, Soft KNN (SKNN), that allows nRBFNs to match Support Vector Machine (SVM) performance with significantly reduced tuning complexity.

1. Introduction

In modern machine learning, spectral graph theory is a powerful tool for uncovering the intrinsic geometry of data. Algorithms such as spectral clustering and Laplacian eigenmaps leverage the eigenvectors of the graph Laplacian to find low-dimensional representations. However, supervised learning has largely remained separate, treating classification as a function-fitting problem without explicitly incorporating the graph structure of the input space.

This research addresses two primary objectives: establishing a theoretical link between the data's manifold geometry and supervised classification, and improving the practical utility of Radial Basis Function (RBF) networks. While RBF networks are universal approximators, their performance is often hindered by the difficulty of selecting basis functions and tuning hyperparameters.

2. Theoretical Foundations: Spectral Classification

The authors demonstrate that LRC and nRBFN can be viewed as "spectral classifiers." These models essentially approximate class labels by projecting them onto the eigenspace of the data's similarity graph.

2.1 The Ideal Graph Condition

A central theoretical contribution is the definition of the "Ideal Graph Condition." This state occurs when classes are perfectly separated within the data's manifold. Under this condition, the authors prove that these classifiers achieve zero fitting error and minimal risk of overfitting. This provides a benchmark for understanding how well a classifier can perform based on the underlying structure of the data.

3. Quantifying Overfitting via Spectral Risk

To address the challenge of overfitting, the paper introduces "spectral risk." This metric quantifies how much a model's weights deviate from the "principal subspace"—the stable, informative components of the data—and bleed into the "minor subspace," which typically contains noise.

The authors show that $\ell_2$-norm regularization (weight decay) serves a specific spectral purpose: it suppresses the influence of the minor subspace. This theoretical insight explains why regularization is effective in these models and provides a principled way to balance fitting accuracy with model stability. A notable finding is that the spectral risk of an nRBFN is bounded by the number of classes (lower bound) and the number of basis functions (upper bound), offering a theoretical "sandwich" for understanding model complexity.

4. Practical Implementation: nRBFN and SKNN

Building on the spectral framework, the authors propose a deterministic strategy for basis selection in nRBFNs called Soft KNN (SKNN). Unlike traditional methods that rely on random selection or K-means clustering, SKNN identifies "boundary points"—samples where the model's confidence is lowest. These points serve as the foundation for the network, analogous to the support vectors in an SVM.

This approach makes the nRBFN more computationally efficient and less reliant on the "black art" of parameter tuning. Because the model is tied to the spectral properties of the data, its parameters (such as the regularization weight $\lambda$) are more stable and require fewer cross-validation iterations to optimize compared to SVMs.

5. Experimental Evaluation

The proposed methods were evaluated across 14 benchmark datasets, including UCI classics (Iris, Wine), bioinformatics data (Colon, Leukemia), face recognition (YaleB, AR), and text categorization (TDT2).

5.1 Performance and Efficiency

The nRBFN consistently achieved test errors comparable to or better than SVMs. A standout result was observed on the YaleB face dataset, where the nRBFN achieved a 1.2% error rate, significantly outperforming the SVM's 3.2%.

Beyond accuracy, the nRBFN demonstrated superior efficiency in model selection. While SVMs often require hundreds of runs to tune $C$ and $\gamma$ parameters, the nRBFN typically reached its optimal state in approximately a dozen runs. The SKNN strategy also proved effective in maintaining a compact basis, ensuring the model remained robust even with high-dimensional data.

6. Conclusion and Future Work

This research provides a rigorous theoretical bridge between spectral graph theory and supervised learning. By framing classification as a spectral projection and introducing spectral risk, the authors offer new tools for understanding and preventing overfitting.

While the results are promising, the authors note that future work should address the scalability of graph construction for massive datasets and explore "online" basis learning. Nonetheless, the spectral-graph approach represents a significant step toward more interpretable and easily tunable supervised classifiers.

Summary updated

Abstract

Spectral graph theory has been widely applied in unsupervised and semi-supervised learning. In this paper, we find for the first time, to our knowledge, that it also plays a concrete role in supervised classification. It turns out that two classifiers are inherently related to the theory: linear regression for classification (LRC) and normalized radial basis function network (nRBFN), corresponding to linear and nonlinear kernel respectively. The spectral graph theory provides us with a new insight into a fundamental aspect of classification: the tradeoff between fitting error and overfitting risk. With the theory, ideal working conditions for LRC and nRBFN are presented, which ensure not only zero fitting error but also low overfitting risk. For quantitative analysis, two concepts, the fitting error and the spectral risk (indicating overfitting), have been defined. Their bounds for nRBFN and LRC are derived. A special result shows that the spectral risk of nRBFN is lower bounded by the number of classes and upper bounded by the size of radial basis. When the conditions are not met exactly, the classifiers will pursue the minimum fitting error, running into the risk of overfitting. It turns out that $\ell_2$-norm regularization can be applied to control overfitting. Its effect is explored under the spectral context. It is found that the two terms in the $\ell_2$-regularized objective are one-one correspondent to the fitting error and the spectral risk, revealing a tradeoff between the two quantities. Concerning practical performance, we devise a basis selection strategy to address the main problem hindering the applications of (n)RBFN. With the strategy, nRBFN is easy to implement yet flexible. Experiments on 14 benchmark data sets show the performance of nRBFN is comparable to that of SVM, whereas the parameter tuning of nRBFN is much easier, leading to reduction of model selection time.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
TDT2nRBFN (SVM-matched basis size)test error0.9%-0.8 vs baselinesplit: test · basis-size=matched-to-SVM
Source quote
L1084: TDT2 │ 70.3 │ 1.7 │ \tb{0.9} │ 77.2 │ \tb{16.5}
20 Newsgroups · 20newsnRBFN (SVM-matched basis size)test error14.3%-0.8 vs baselinesplit: test · basis-size=matched-to-SVM
Source quote
L1085: 20news │ 79.5 │ 15.1 │ \tb{14.3} │ 263.1 │ \tb{82.3}
20 Newsgroups · 20newsnRBFN (SVM-matched basis size)time cost82.3 s-180.8 vs baselinesplit: test · basis-size=matched-to-SVM · time-scope=training-and-testing; excludes-cross-validation
Source quote
L1085: 20news │ 79.5 │ 15.1 │ \tb{14.3} │ 263.1 │ \tb{82.3}
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
TDT2SVM baselinetest error1.7%split: test
Source quote
L1084: TDT2 │ 70.3 │ 1.7 │ \tb{0.9} │ 77.2 │ \tb{16.5}
20 Newsgroups · 20newsSVM baselinetest error15.1%split: test
Source quote
L1085: 20news │ 79.5 │ 15.1 │ \tb{14.3} │ 263.1 │ \tb{82.3}
20 Newsgroups · 20newsSVM baselinetime cost263.1 ssplit: test · time-scope=training-and-testing; excludes-cross-validation
Source quote
L1085: 20news │ 79.5 │ 15.1 │ \tb{14.3} │ 263.1 │ \tb{82.3}
BibTeX
@misc{hu2017spectral,
  author = {Zhenfang Hu and Gang Pan and Zhaohui Wu},
  title = {{Spectral-graph Based Classifications: Linear Regression for Classification and Normalized Radial Basis Function Network}},
  year = {2017},
  eprint = {1705.06922},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.06922},
}
Figure