Skip to main content
QUICK REVIEW

[Paper Review] Low-Precision Random Fourier Features for Memory-Constrained Kernel Approximation

Jian Zhang, Avner May|arXiv (Cornell University)|Oct 31, 2018
Face and Expression RecognitionComputer Science4 citations
TL;DR

This paper proposes low-precision random Fourier features (LP-RFFs) to enable high-rank kernel approximations under strict memory constraints. By quantizing RFFs to low-precision fixed-point representations, LP-RFFs achieve comparable generalization performance to full-precision RFFs and the Nyström method while reducing memory usage by 3x–10x and 50x–460x, respectively, with theoretical guarantees on approximation quality under a refined error metric.

ABSTRACT

We investigate how to train kernel approximation methods that generalize well under a memory budget. Building on recent theoretical work, we define a measure of kernel approximation error which we find to be more predictive of the empirical generalization performance of kernel approximation methods than conventional metrics. An important consequence of this definition is that a kernel approximation matrix must be high rank to attain close approximation. Because storing a high-rank approximation is memory intensive, we propose using a low-precision quantization of random Fourier features (LP-RFFs) to build a high-rank approximation under a memory budget. Theoretically, we show quantization has a negligible effect on generalization performance in important settings. Empirically, we demonstrate across four benchmark datasets that LP-RFFs can match the performance of full-precision RFFs and the Nyström method, with 3x-10x and 50x-460x less memory, respectively.

Motivation & Objective

  • To address the memory bottleneck in kernel approximation methods, which require large numbers of features for good generalization.
  • To identify a more predictive measure of kernel approximation error than conventional norms like Frobenius or spectral error.
  • To design a memory-efficient method that maintains high generalization performance under fixed memory budgets.
  • To demonstrate that low-precision quantization of random Fourier features can achieve high-rank approximations without sacrificing performance.

Proposed method

  • Introduce a refined error metric, the $(\Delta_1, \Delta_2)$-spectral approximation, which better predicts generalization than traditional norms.
  • Propose low-precision random Fourier features (LP-RFFs) that store each feature in a low-bit fixed-point format to increase feature count within a memory budget.
  • Theoretically show that quantization has negligible impact on generalization when noise is much smaller than the regularization parameter.
  • Use the LM-HALP training algorithm to perform low-precision model training, enabling fast low-precision matrix operations and reduced memory for model parameters.
  • Apply double sampling to reduce gradient bias, though initial experiments show no significant performance gain.

Experimental results

Research questions

  • RQ1Why do standard kernel approximation error metrics like Frobenius and spectral norms fail to predict generalization performance in practice?
  • RQ2Can low-precision quantization of random Fourier features maintain generalization performance while significantly reducing memory usage?
  • RQ3How does the $(\Delta_1, \Delta_2)$-spectral approximation metric better explain the relative performance of Nyström and RFFs than conventional metrics?
  • RQ4What is the impact of low-precision model training on the final model accuracy when combined with LP-RFFs?

Key findings

  • On the TIMIT dataset, 50,000 standard RFFs achieve the same heldout accuracy as 20,000 Nyström features but with 10x less memory, despite Nyström having 1.7x smaller Frobenius error and 17x smaller spectral error.
  • LP-RFFs match the performance of full-precision RFFs and the Nyström method across four benchmark datasets (TIMIT, YearPred, CovType, Census) while using 3x–10x less memory than full-precision RFFs.
  • LP-RFFs reduce memory usage by 50x–460x compared to the Nyström method, demonstrating significant efficiency gains under memory constraints.
  • With 8-bit LP-RFFs and 8-bit LM-HALP training, models achieve performance comparable to full-precision training when the number of features is at least 10,000.
  • Double sampling did not yield noticeable performance improvements in initial experiments on the YearPred dataset with Gaussian kernels.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.