Compact Nonlinear Maps and Circulant Extensions

Felix X. Yu, Sanjiv Kumar, Henry A. Rowley, Shih-Fu ChangarXiv 2015

Introduction

Kernel methods, such as Support Vector Machines (SVMs), have long been a cornerstone of machine learning due to their ability to model complex, nonlinear decision boundaries. However, their computational complexity—typically scaling between $O(N^2)$ and $O(N^3)$ relative to the number of data points $N$—presents a significant bottleneck for large-scale applications. This paper introduces Compact Nonlinear Maps (CNM), a novel framework that jointly optimizes kernel approximation parameters and classifier weights to produce highly efficient, low-dimensional feature representations.

The Scaling Challenge in Kernel Methods

To mitigate the scaling issues of traditional kernel methods, researchers frequently employ Random Fourier Features (RFF). RFF maps input data into a finite-dimensional space where linear classifiers can be applied efficiently. Despite their utility, RFF approaches suffer from two primary limitations:

  1. Data Independence: The mapping is generated from a fixed distribution (e.g., Gaussian) without considering the underlying data distribution, often necessitating high-dimensional maps (thousands of features) to maintain accuracy.
  2. Predefined Kernels: Users must select a specific kernel (like the Radial Basis Function, or RBF) a priori, which may not be optimal for the given task.

Methodology

Compact Nonlinear Maps (CNM)

The proposed CNM approach treats the projection matrix ($\Theta$) as a learnable parameter rather than a random sample. The authors utilize an alternating minimization strategy to optimize the model:

  • Classifier Optimization: With the mapping ($\Theta$) fixed, the linear classifier ($w$) is solved using the Pegasos algorithm, an efficient stochastic gradient descent method for SVMs.
  • Mapping Optimization: With the classifier ($w$) fixed, the mapping ($\Theta$) is updated to further minimize the classification loss.

This joint optimization allows the model to learn a task-specific, shift-invariant kernel that is significantly more compact than standard random approximations.

Circulant Extensions

To address high-dimensional input data ($d$), the authors introduce a circulant structure to the projection matrix. By defining the matrix via a single vector, storage requirements are reduced from $O(d^2)$ to $O(d)$. Furthermore, matrix-vector multiplications are accelerated using the Fast Fourier Transform (FFT), reducing computational complexity from $O(d^2)$ to $O(d \log d)$.

Experimental Evaluation

The authors evaluated CNM across eight diverse UCI machine learning benchmarks, including image recognition (MNIST, CIFAR-10, USPS, LETTER) and general classification tasks (BANANA, FOREST, MAGIC04, IJCNN). These datasets range in size from 1,000 to over 500,000 samples.

Performance comparison of CNM variants against RFFM, RBF, and Linear baselines across eight benchmark datasets. The x-axis represents the log2 of the feature dimensionality.

Key Results

  • Extreme Compactness: On the USPS dataset, CNM achieved 90% accuracy using only 8 dimensions ($2^3$). In contrast, standard RFF required 512 dimensions ($2^9$) to reach the same performance level, representing a 64x improvement in memory efficiency and prediction speed.
  • Superior Accuracy: CNM frequently outperformed full RBF-kernel SVMs. This suggests that by optimizing the mapping for the specific classification objective, the model discovers more effective kernels than standard predefined functions.
  • Computational Efficiency: The circulant extension proved particularly effective for high-dimensional datasets like MNIST and CIFAR, consistently outperforming both standard RFF and randomized circulant maps.

Discussion and Future Work

CNM can be interpreted as a shallow neural network with a single hidden layer and a cosine activation function, providing a theoretical link between kernel methods and deep learning. While the current work focuses on a single nonlinear layer, the authors suggest that extending this framework to deeper architectures could capture even more complex transformations.

One limitation of the current approach is its restriction to shift-invariant kernels due to the Fourier framework. Future research may explore extending learned compact maps to other kernel families, such as polynomial kernels, to further broaden the applicability of this efficient mapping technique.

Summary updated

BibTeX
@misc{yu2015compact,
  author = {Felix X. Yu and Sanjiv Kumar and Henry A. Rowley and Shih-Fu Chang},
  title = {{Compact Nonlinear Maps and Circulant Extensions}},
  year = {2015},
  eprint = {1503.03893},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1503.03893},
}
Figure