Random Feature Mapping with Signed Circulant Matrix Projection

Chang Feng, Qinghua Hu, Shizhong Liao

Introduction

Kernel methods, such as Support Vector Machines (SVMs), are cornerstone techniques for non-linear classification. However, they face a significant scalability challenge known as the "curse of support": the computational complexity grows quadratically or cubically with the number of training samples. Random Feature Mapping, specifically Random Kitchen Sinks (RKS), addresses this by projecting data into a low-dimensional space where linear methods can be applied. While effective, RKS becomes a bottleneck for high-dimensional data due to the memory and time costs of unstructured matrix-vector multiplication.

Signed Circulant Random Features (SCRF)

This paper introduces Signed Circulant Random Feature mapping (SCRF), a method designed to provide the statistical benefits of RKS with significantly lower computational overhead. SCRF replaces the standard unstructured Gaussian matrix with a structured Signed Circulant Random Matrix (CRM).

A circulant matrix is defined by its first column, where each subsequent row is a cyclic shift of the previous one. This structure allows for two major optimizations:

  1. Memory Efficiency: Only the first column needs to be stored.
  2. Speed: Projections can be computed in the frequency domain using the Fast Fourier Transform (FFT), reducing complexity from $O(dD)$ to $O(D \log d)$.

To prevent high correlation between rows—a common issue with structured matrices—the authors introduce a "signed" trick, multiplying rows by random Rademacher variables ($\pm 1$). This ensures the estimate remains unbiased and maintains low variance.

Approximation Quality

A critical theoretical contribution of this work is proving that SCRF achieves the same statistical accuracy and low variance as the traditional RKS method. Unlike previous structured approaches like "Fastfood," which often introduced higher variance, SCRF remains stable.

Kernel approximation quality and relative error across different methods.

As shown in the figures above, the kernel estimates for SCRF (labeled CRF in the scatter plots) are tightly clustered around the true kernel values, mirroring the performance of RKS. Furthermore, the relative kernel approximation error decreases at a rate comparable to RKS as the number of random features increases.

Computational Performance and Scalability

The practical advantages of SCRF are most evident in high-dimensional settings. By leveraging FFT, the method achieves quasilinear scaling.

Computation time comparison as data dimensionality increases.

In empirical tests, SCRF demonstrated a 40.1x speedup over standard RKS on a 4096-dimensional dataset. As seen in the computation time plot, while RKS complexity grows rapidly with data dimensionality, the time required for SCRF remains nearly flat. Additionally, SCRF offers a 1358x improvement in memory usage for high-dimensional tasks, requiring only $3D$ parameters compared to the $5D$ required by Fastfood.

Conclusion

SCRF provides a robust solution for scaling non-linear kernel methods to large, high-dimensional datasets. By combining the theoretical stability of RKS with the computational efficiency of circulant matrices and FFT, it allows for fast training and prediction without sacrificing accuracy. Across various benchmarks, including MNIST and CIFAR-10, SCRF consistently matched the performance of slower, more memory-intensive methods while offering superior scalability.

Summary updated

BibTeX
@inproceedings{feng2015random,
  author = {Chang Feng and Qinghua Hu and Shizhong Liao},
  title = {{Random Feature Mapping with Signed Circulant Matrix Projection}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2015},
}
Figure