Randomized approximate class-specific kernel spectral regression analysis for large-scale face verification

Ke Li, Gang WuMachine 2022

Abstract

Face verification is a critical task in modern security and human-computer interaction, often addressed using kernel methods due to their ability to model non-linear data relationships. However, traditional kernel methods face significant scalability issues, requiring $O(n^3)$ computations and $O(n^2)$ memory. This paper presents a revitalized Class-Specific Kernel Spectral Regression (CS-KSR) framework. By correcting mathematical errors in previous implementations and introducing randomized algorithms—including a fixed-rank Nyström method and a Randomized Block Kaczmarz (RBK) solver—the proposed approach achieves up to a 60x speedup on large-scale datasets while simultaneously improving verification accuracy.

Introduction

Class-Specific Kernel Spectral Regression (CS-KSR) is a powerful tool for face verification, yet its application to massive datasets has been historically limited by computational complexity. Previous attempts to scale the method, such as Approximate CS-KSR (ACS-KSR), suffered from mathematical incompleteness in the eigenanalysis step and memory bottlenecks that prevented processing truly large-scale data. This work addresses these limitations through a combination of theoretical correction and randomized numerical linear algebra.

Mathematical Framework and Notations

To ensure clarity in the following methodological discussion, the primary notations used for dimensions, matrix operations, and subspace definitions are summarized below.

Table of Notations used in the CS-KSR framework.

Proposed Methodology

The authors overhaul the ACS-KSR framework through four key innovations:

1. Mathematical Correction of Eigenanalysis

A rigorous correction was applied to the eigenanalysis step of the ACS-KSR framework. The authors identified that standard formulas previously used for subspace learning were flawed, leading to suboptimal performance. The corrected derivation ensures the underlying spectral regression is mathematically sound.

2. Numerical Rank Strategy

A practical strategy was developed to estimate the "numerical rank" of a Gaussian kernel matrix without full construction. Theoretical analysis revealed that the number of data clusters ($s$) serves as an effective proxy for this rank, providing a robust heuristic for parameter selection in randomized algorithms.

3. Fixed-Rank Nyström Method

To handle the kernel regression step efficiently, a modified Nyström method was introduced. This technique utilizes a carefully selected sample of the data to approximate the massive kernel matrix, drastically reducing the computational footprint while maintaining high fidelity to the original data structure.

4. Randomized Block Kaczmarz (RBK) Solver

For datasets exceeding available RAM, the authors adapted the RBK algorithm. This iterative solver processes small "blocks" of data sequentially, allowing the regression problem to be solved without ever storing the full cross-product matrix in memory. This is particularly vital for large-scale applications where $n$ reaches the hundreds of thousands.

Experimental Evaluation

The proposed methods were validated across seven diverse datasets, including face databases (AR, CMU-PIE, Extended YaleB, Facescrub, and YouTube Faces) and general benchmarks (MNIST, CIFAR-100).

Key Results

  • Efficiency: On the YouTube Faces dataset (over 370,000 images), the RBK-based method was 60 times faster than the original ACS-KSR implementation.
  • Accuracy: The mathematical corrections led to superior performance. On the AR database, the Equal Error Rate (EER) was reduced from ~1.03% in the original method to as low as 0.19%.
  • Scalability: The RBK method successfully handled massive datasets that typically cause memory failures in standard workstations.

Conclusion

By combining theoretical rigor with randomized numerical methods, this work demonstrates that kernel-based face verification can be scaled to massive datasets without sacrificing accuracy. The connection between data clusters and kernel rank provides a valuable heuristic for future research in randomized machine learning. Future work may involve integrating these randomized strategies into deep learning pipelines to combine the interpretability of kernel methods with the representational power of neural networks.

Summary updated

BibTeX
@inproceedings{li2022randomized,
  author = {Ke Li and Gang Wu},
  title = {{Randomized approximate class-specific kernel spectral regression analysis for large-scale face verification}},
  booktitle = {Machine},
  year = {2022},
  doi = {10.1007/s10994-022-06140-9},
}
Figure