Sketch In, Sketch Out: Accelerating both Learning and Inference for Structured Prediction with Kernels

Tamim El Ahmad, Luc Brogat-Motte, Pierre Laforgue, Florence d'Alché-Buc
2/20/2023
stat.MLcs.LG

No official code found. Best implementation: tamim-el/sisokr (2 stars, last commit 2024-08-30).

Abstract

Leveraging the kernel trick in both the input and output spaces, surrogate kernel methods are a flexible and theoretically grounded solution to structured output prediction. If they provide state-of-the-art performance on complex data sets of moderate size (e.g., in chemoinformatics), these approaches however fail to scale. We propose to equip surrogate kernel methods with sketching-based approximations, applied to both the input and output feature maps. We prove excess risk bounds on the original structured prediction problem, showing how to attain close-to-optimal rates with a reduced sketch size that depends on the eigendecay of the input/output covariance operators. From a computational perspective, we show that the two approximations have distinct but complementary impacts: sketching the input kernel mostly reduces training time, while sketching the output kernel decreases the inference time. Empirically, our approach is shown to scale, achieving state-of-the-art performance on benchmark data sets where non-sketched methods are intractable.

View on arXivView PDF

Code Implementations(1)

tamim-el/sisokrCommunity100%
20PythonFeb 19, 20242 years ago

Cite this paper

@article{ahmad2023sketch,
  title  = {Sketch In, Sketch Out: Accelerating both Learning and Inference for Structured Prediction with Kernels},
  author = {Tamim El Ahmad and Luc Brogat-Motte and Pierre Laforgue and Florence d'Alché-Buc},
  year   = {2023},
  eprint = {2302.10128},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.10128v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.10128.svg)](https://codeofpaper.com/paper/2302.10128)

Discussion