English

Faster Algorithms for Structured Linear and Kernel Support Vector Machines

Optimization and Control 2025-02-13 v3 Machine Learning Machine Learning

Abstract

Quadratic programming is a ubiquitous prototype in convex programming. Many machine learning problems can be formulated as quadratic programming, including the famous Support Vector Machines (SVMs). Linear and kernel SVMs have been among the most popular models in machine learning over the past three decades, prior to the deep learning era. Generally, a quadratic program has an input size of Θ(n2)\Theta(n^2), where nn is the number of variables. Assuming the Strong Exponential Time Hypothesis (SETH\textsf{SETH}), it is known that no O(n2o(1))O(n^{2-o(1)}) time algorithm exists when the quadratic objective matrix is positive semidefinite (Backurs, Indyk, and Schmidt, NeurIPS'17). However, problems such as SVMs usually admit much smaller input sizes: one is given nn data points, each of dimension dd, and dd is oftentimes much smaller than nn. Furthermore, the SVM program has only O(1)O(1) equality linear constraints. This suggests that faster algorithms are feasible, provided the program exhibits certain structures. In this work, we design the first nearly-linear time algorithm for solving quadratic programs whenever the quadratic objective admits a low-rank factorization, and the number of linear constraints is small. Consequently, we obtain results for SVMs: * For linear SVM when the input data is dd-dimensional, our algorithm runs in time O~(nd(ω+1)/2log(1/ϵ))\widetilde O(nd^{(\omega+1)/2}\log(1/\epsilon)) where ω2.37\omega\approx 2.37 is the fast matrix multiplication exponent; * For Gaussian kernel SVM, when the data dimension d=O(logn)d = {\color{black}O(\log n)} and the squared dataset radius is sub-logarithmic in nn, our algorithm runs in time O(n1+o(1)log(1/ϵ))O(n^{1+o(1)}\log(1/\epsilon)). We also prove that when the squared dataset radius is at least Ω(log2n)\Omega(\log^2 n), then Ω(n2o(1))\Omega(n^{2-o(1)}) time is required. This improves upon the prior best lower bound in both the dimension dd and the squared dataset radius.

Keywords

Cite

@article{arxiv.2307.07735,
  title  = {Faster Algorithms for Structured Linear and Kernel Support Vector Machines},
  author = {Yuzhou Gu and Zhao Song and Lichen Zhang},
  journal= {arXiv preprint arXiv:2307.07735},
  year   = {2025}
}

Comments

ICLR 2025