Generalized vec trick for fast learning of pairwise kernel models

Markus Viljanen, Antti Airola, Tapio Pahikkala
9/2/2020
cs.LGstat.ML
survey

Official code: aatapa/RLScore (68 stars, Python, last commit 2026-02-18).

Abstract

Pairwise learning corresponds to the supervised learning setting where the goal is to make predictions for pairs of objects. Prominent applications include predicting drug-target or protein-protein interactions, or customer-product preferences.

Show full abstract

In this work, we present a comprehensive review of pairwise kernels, that have been proposed for incorporating prior knowledge about the relationship between the objects. Specifically, we consider the standard, symmetric and anti-symmetric Kronecker product kernels, metric-learning, Cartesian, ranking, as well as linear, polynomial and Gaussian kernels. Recently, a O(nm + nq) time generalized vec trick algorithm, where n, m, and q denote the number of pairs, drugs and targets, was introduced for training kernel methods with the Kronecker product kernel. This was a significant improvement over previous O(n^2) training methods, since in most real-world applications m,q << n. In this work we show how all the reviewed kernels can be expressed as sums of Kronecker products, allowing the use of generalized vec trick for speeding up their computation. In the experiments, we demonstrate how the introduced approach allows scaling pairwise kernels to much larger data sets than previously feasible, and provide an extensive comparison of the kernels on a number of biological interaction prediction tasks.

View on arXivView PDF

Code Implementations(1)

aatapa/RLScoreOfficial100%
6829Python, CythonSep 17, 20129 months agoNOASSERTION

Similar Papers

Cite this paper

@article{viljanen2020generalized,
  title  = {Generalized vec trick for fast learning of pairwise kernel models},
  author = {Markus Viljanen and Antti Airola and Tapio Pahikkala},
  year   = {2020},
  eprint = {2009.01054},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.01054}
}

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/2009.01054.svg)](https://codeofpaper.com/paper/2009.01054)

Discussion