arXiv:2609.07432cs.LGSep 2026

Manuscript Offprint

arXiv:2609.07432

Revisiting Thinning Methods for Kernel Learning Problems

Blanca Cano-Camarero, Yago R. Aguado-Carrillo-de-Albornoz, Ángela Fernández-Pascual, José R. Dorronsoro

Abstract

Kernel methods are widely used because of their strong theoretical guarantees and empirical performance. However, their high computational cost limits their applicability to large-scale datasets. To address this shortcoming, several approaches use Maximum Mean Discrepancy to construct representative subsets that preserve the properties of the full dataset in a Reproducing Kernel Hilbert Space. We introduce Backward Kernel Herding, an algorithm that addresses this problem by iteratively removing points from the dataset, achieving results comparable to current state-of-the-art approaches while accelerating the subsampling process in realistic scenarios where the reduced size is less than half of the dataset. Moreover, we overcome a limitation of Kernel Thinning by proposing an extension that enables the construction of subsets of arbitrary size rather than restricting to successive halvings. Finally, we conduct an extensive experimental comparison focusing on the most relevant kernel learning procedures: Gaussian Processes and Kernel Support Vector Machines. The results show that Backward Kernel Herding consistently achieves competitive performance with the most favorable training-time efficiency, while the proposed Flexible Kernel Thinning frequently achieves the best predictive performance. These gains become especially pronounced for moderate compression ratios, highlighting the benefits of incorporating supervised information into the thinning process. In terms of memory consumption, Flexible Kernel Thinning is also competitive, whereas Backward Kernel Herding remains an alternative when computational efficiency is the primary objective. Overall, no single method dominates across all scenarios, underscoring the importance of selecting the reduction strategy according to the desired trade-off between predictive performance, training cost, and memory requirements.

Keywords: Data subsampling · Kernel Thinning · Kernel Herding · Kernel approximation · Supervised Kernel

1 Introduction

Kernel methods, such as Kernel Support Vector Machines (KSVMs) and Gaussian Processes (GPs) [1], are well known for their strong theoretical guarantees and empirical performance. However, a major limitation of these approaches lies in their computational complexity, which typically scales at least quadratically with the number of data points, in particular O(n2)\mathcal{O}(n^2) in memory and up to O(n3)\mathcal{O}(n^3) in time for training and inference. This makes them impractical for large-scale problems.

*Email: blanca.cano@uam.es (ORCID: 0009-0001-6330-4824) †Email: yago.aguado@uam.es (ORCID: 0009-0005-9755-0213) ‡Email: a.fernandez@uam.es (ORCID: 0000-0002-6602-3753) §Email: jose.dorronsoro@uam.es (ORCID: 0000-0002-5271-0616)

Recent research has focused on solving this problem by constructing smaller, representative subsets of the data that preserve the properties of the full dataset in the Reproducing Kernel Hilbert Space (RKHS), typically via the Maximum Mean Discrepancy (MMD) [2]. One of the earliest approaches in this direction is Kernel Herding [3], which iteratively selects samples to approximate a target distribution. Its theoretical properties were later refined and connected to conditional gradient methods by [4], establishing convergence rates and providing a deeper understanding of its behavior. One limitation of this method is that it starts from an empty set and iteratively adds new elements from the dataset to construct the reduced representation. In practice, having a subset with less than half of the original size may severely deteriorate predictive performance. In the complementary setting, where we want to retain the majority of the dataset, this constructive approach may also require more iterations than a strategy based on directly discarding data points rather than building the subset from scratch. To mitigate these limitations, in this work we propose exploring the reverse strategy: instead of progressively constructing a subset of retained instances, we iteratively identify and discard data points, thereby directly optimizing the set of examples to be removed.

Other approaches, such as Kernel Thinning [5, 6], do not directly minimize the MMD of the selected subset, but instead aim to construct subsets whose empirical distributions have low discrepancy with respect to each other. In spite of being a state-of-the-art technique, Kernel Thinning faces a limitation with respect to Kernel Herding, since it only allows for the construction of subsets of size n2t\frac{n}{2t} for some tt. We propose a modification of the algorithm so that it allows the construction of subsets of arbitrary size.

Additionally, an application that is often overlooked or unclear in the literature is the supervised extension of these methods, which we address in the first part of this paper. Finally, to enrich the family of methods to solve the problem we have described, we propose a novel algorithm based on backward propagation, which we call Backward Kernel Herding. This approach starts with the whole dataset and iteratively removes points until a desired size is reached and solving the main problem of Kernel Herding.

The main contributions of this work can be summarized as follows:

  • We introduce Backward Kernel Herding, the first backward propagation framework for kernel-based subset selection, which starts from the full dataset and iteratively removes elements, in contrast to classical forward construction methods.

  • We extend backward subset selection techniques to supervised learning settings for kernel methods such as KSVMs and GPs.

  • We extend the current Kernel Thinning method to render it more flexible in terms of coreset size, while retaining convergence guarantees and computational cost.

  • We explain the relevance of supervised dataset selection for kernels and how to apply it.

  • We provide a comprehensive empirical comparison between our method, i.e. Backward Kernel Herding, Kernel Herding, and Kernel Thinning, addressing the lack of standardized evaluations for Kernel Thinning.

The paper is structured as follows. Section 2 reviews the state of the art in kernel subsampling: Kernel Herding and Kernel Thinning. It also tackles the use of these techniques for supervised problems. Then, Section 3 introduces the novelties of this paper: a modification of Kernel Thinning that increases its flexibility, and the Backward Kernel Herding algorithm. Finally, in Section 4 we present the results of the experimental comparison between the methods, which shows that our proposal is competitive with the rest of the state-of-the-art techniques.

Algorithm 1: Discrete Kernel Herding

Input: MCMC sample pool D={y1,…,yn}\mathcal{D}=\{y_1,\ldots,y_n\}, kernel function k(⋅,⋅)k(\cdot,\cdot), target size TT

Output: Sequence of super-samples S=(x1,…,xT)S=(x_1,\ldots,x_T)

// Precompute empirical kernel mean embedding

1 for x∈Dx\in\mathcal{D} do

2 μD(x)←1n∑i=1nk(x,yi);\quad \mu_{\mathcal{D}}(x)\leftarrow\frac{1}{n}\sum_{i=1}^{n} k(x,y_i);

3 end

4 S←()S\leftarrow();

// Initialize empty sequence

5 for t=0,1,…,T−1t=0,1,\ldots,T-1 do

6 //Select the next super-sample that minimizes MMD greedily\quad // \text{Select the next super-sample that minimizes MMD greedily}

xt+1←arg⁡max⁡x∈D[μD∖S(x)−1t+1(∑j=1tk(x,xj))];x_{t+1}\leftarrow\arg\max_{x\in\mathcal{D}} \left[\mu_{\mathcal{D}\setminus S}(x)-\frac{1}{t+1}\left(\sum_{j=1}^{t} k(x,x_j)\right)\right];

7 Append xt+1 to S;\quad \text{Append } x_{t+1} \text{ to } S;

8 end

9 return SS