Randomized Pairwise Learning with Adaptive Sampling: A PAC-Bayes Analysis

Sijia Zhou, Yunwen Lei, Ata KabánarXiv 2025 · DOI

Abstract

This paper establishes a new theoretical framework for pairwise learning algorithms using data-adaptive sampling. By integrating PAC-Bayes theory with algorithmic stability, the authors derive optimal generalization bounds of $O(1/\sqrt{n})$ for stochastic gradient methods, bridging the gap between practical adaptive sampling strategies and rigorous statistical guarantees.

Introduction

Modern machine learning increasingly relies on "smart" sampling strategies to improve efficiency in complex tasks such as ranking, metric learning, and AUC maximization. These tasks are fundamentally pairwise, meaning the loss function depends on pairs of data points rather than individual instances. While practitioners often use adaptive sampling (e.g., importance sampling or hard-negative mining) to focus on informative pairs, theoretical understanding of these methods has lagged. Traditional analysis struggles with the statistical dependencies inherent in pairwise data and the data-dependent nature of adaptive sampling.

This paper provides the first rigorous generalization guarantees for pairwise learning algorithms that utilize data-adaptive sampling. By blending PAC-Bayes theory with algorithmic stability, the authors prove that these optimizers can achieve optimal generalization rates even when the sampling distribution evolves based on the training data.

The Challenge of Pairwise Learning

Most standard machine learning theory assumes "pointwise" learning, where each data point is treated as an independent and identically distributed (i.i.d.) sample. Pairwise learning is mathematically more complex because data points are reused across multiple pairs, creating intricate statistical dependencies.

Furthermore, modern adaptive sampling introduces a "bias" by design. When an algorithm chooses training pairs based on their current difficulty or relevance, the resulting sampling distribution is no longer uniform or independent of the dataset. Existing theoretical tools like standard stability analysis (which assumes uniform sampling) or standard PAC-Bayes (which assumes independent data) are insufficient to handle this combination.

Methodological Framework

The authors introduce a hybrid framework that combines several advanced theoretical tools to address these challenges:

  1. PAC-Bayes for Sampling Indices: Instead of the traditional approach of placing a prior over model weights, the authors place a prior over the sampling indices. This allows them to treat the selection of training pairs as a "posterior" distribution that can adapt to the data without violating generalization principles.
  2. Algorithmic Stability: The framework leverages "Uniform Stability," measuring how much a model's output changes if a single training example is replaced.
  3. Sub-exponential Stability: To control the variance introduced by adaptive sampling, the authors introduce a condition to manage the "tail behavior" of the algorithm's stability. This ensures that random sampling choices do not lead to extreme, unstable model updates.
  4. U-statistics: To manage the dependencies between pairs, the authors employ $U$-statistic decomposition. This technique effectively breaks down the dependent pairwise risk into a sum of independent blocks, making it amenable to standard concentration inequalities.

Theoretical Results

A significant contribution of this work is the derivation of concrete generalization bounds for two major algorithm classes: Pairwise Stochastic Gradient Descent (SGD) and Pairwise Stochastic Gradient Descent Ascent (SGDA), the latter of which is frequently used in adversarial training and minimax problems.

Summary of convergence rates and parameter settings for SGD and SGDA under different smoothness assumptions.

The analysis reveals a critical trade-off between computational efficiency and the smoothness of the loss function. While both smooth and non-smooth problems can achieve the optimal generalization rate of $\tilde{O}(1/\sqrt{n})$, non-smooth problems require a significantly higher number of iterations ($T = \Theta(n^2)$ compared to $T = \Theta(n)$) and much smaller step sizes to maintain stability.

One of the most impactful insights is that the PAC-Bayes framework allows for generalization bounds that hold uniformly for any sampling scheme. This removes the need for the cumbersome mathematical "correction factors" typically required to keep gradients unbiased during non-uniform sampling.

Discussion and Future Work

While this paper provides a robust foundation for understanding adaptive sampling in pairwise learning, it focuses primarily on convex and convex-concave settings. Extending these guarantees to the non-convex landscapes typical of deep neural networks remains a significant open challenge. Additionally, the proofs assume a bounded loss function, which may not apply to all real-world scenarios.

Future research may explore specific adaptive sampling distributions to determine which are most efficient for particular tasks, as this paper proves the bounds hold for any adaptive strategy without prescribing an optimal one. Nevertheless, this work marks a major step forward in aligning machine learning theory with the sophisticated sampling techniques used in modern practice.

Summary updated

BibTeX
@misc{zhou2025randomized,
  author = {Sijia Zhou and Yunwen Lei and Ata Kabán},
  title = {{Randomized Pairwise Learning with Adaptive Sampling: A PAC-Bayes Analysis}},
  year = {2025},
  eprint = {2504.02957},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.02957},
}
Figure