RFN: A Random-Feature Based Newton Method for Empirical Risk Minimization in Reproducing Kernel Hilbert Spaces

Ting-Jui Chang, Shahin Shahrampour

TL;DR

This paper introduces RFN, a novel second-order optimization method for large-scale machine learning problems in Reproducing Kernel Hilbert Spaces (RKHS). RFN uses random features to efficiently approximate the Hessian matrix, enabling faster convergence than first-order methods while overcoming the limitations of standard sub-sampling techniques in RKHS.

What Problem Does This Paper Address?

In many machine learning tasks, we aim to minimize a loss function over a potentially infinite-dimensional function space, specifically a Reproducing Kernel Hilbert Space (RKHS). This often translates to a large-scale optimization problem where the objective function involves a sum over many data points and a regularization term defined by the RKHS norm. While efficient second-order optimization methods like Newton's method can achieve rapid convergence, their computational cost, particularly the inversion of the Hessian matrix, becomes prohibitive for large datasets. Existing methods for approximating the Hessian using sub-sampling or sketching often struggle with the specific structure of RKHS problems, where the kernel matrix (Gram matrix) is not readily available in a low-rank form. This paper addresses the challenge of efficiently applying second-order optimization to RKHS problems by proposing a method that leverages kernel approximation.

Methods

The core of the proposed method, Random-Feature based Newton (RFN), lies in approximating the Hessian matrix using random features. The Hessian in RKHS optimization has a specific structure involving the Gram matrix ($K$) and a diagonal matrix ($D(w)$) derived from the loss function's second derivative. Standard sub-sampling techniques are difficult to apply here because $K$ is generally dense. RFN tackles this by approximating the kernel function itself using random Fourier features, which allows for a low-rank approximation of the Gram matrix ($K \approx ZZ^T + \mu I$). This approximation is then substituted into the Hessian formula, resulting in an approximated Hessian ($\hat{H}(w)$) that can be inverted much more efficiently. The paper provides theoretical analysis showing that with a sufficient number of random features, the approximated Hessian is close to the true Hessian in spectral norm. This theoretical foundation supports the convergence guarantees of RFN.

Datasets

The paper evaluates RFN on three real-world datasets:

  • Covertype: A dataset for forest cover type classification.
  • Cardio: A dataset related to cardiovascular disease.
  • Rice: A dataset for rice type classification.

For these datasets, the authors randomly sample $n=3000$ data points for training and use a ratio of $m/n = 10\%$ for the number of random features ($m$) and sub-sampled data points ($I$) in their experiments.

Key Insights and Ideas

  • Kernel Approximation as a Solution: The paper highlights that for RKHS optimization, approximating the kernel function itself (via random features) is a more effective strategy than directly sub-sampling the Hessian matrix. This is because the kernel's structure is the bottleneck for standard sub-sampling.
  • Bridging Theory and Practice: RFN successfully bridges the gap between the theoretical appeal of Newton's method (fast convergence) and the practical need for computational efficiency in large-scale settings.
  • Guaranteed Convergence: The theoretical analysis provides strong guarantees for RFN, showing both local superlinear and global linear convergence with high probability, contingent on the number of random features used.
  • Lower Bound for Random Features: The paper derives a theoretical lower bound on the number of random features required to ensure the approximated Hessian is sufficiently close to the true Hessian, offering guidance for practical implementation.

Key Results

  • Theoretical Guarantees: RFN is proven to achieve local superlinear convergence and global linear convergence with high probability.
  • Computational Efficiency: The paper demonstrates that RFN significantly reduces the per-iteration time complexity compared to the exact Newton method, from $O(n^3)$ to $O(m^2n + m^3)$, where $m$ is the number of random features.
  • Competitive Performance: Numerical experiments show that RFN achieves iteration complexity comparable to the original Newton method and outperforms other benchmark algorithms like L-BFGS, SSNCG, and GD in terms of loss versus run-time. Specifically, RFN is shown to outperform nearly all other methods in relative empirical risk vs. time cost plots.

Limitations and Future Work

  • Hyperparameter Sensitivity: The performance of RFN can be influenced by hyperparameter choices, such as the bandwidth of the Gaussian kernel ($\sigma$), the regularization parameters ($\lambda, \mu$), and the number of random features ($m$). The paper notes that a smaller $\sigma$ might require more random features.
  • Future Directions: The authors suggest several promising avenues for future research, including:
  • Developing distributed and decentralized variants of RFN.
  • Investigating data-dependent sampling schemes for random features.

Summary updated

BibTeX
@article{chang2022rfn,
  author = {Ting-Jui Chang and Shahin Shahrampour},
  title = {{RFN: A Random-Feature Based Newton Method for Empirical Risk Minimization in Reproducing Kernel Hilbert Spaces}},
  journal = {IEEE Trans. Signal Process.},
  year = {2022},
  url = {https://openreview.net/forum?id=eCdc5s245R},
}
Figure