Source-linked AI summary

On the Generalization Ability of Online Learning Algorithms for Pairwise Loss Functions

Purushottam Kar, Bharath K Sriperumbudur, Prateek Jain, Harish C Karnick

arXiv:1305.2505v1cs.LGstat.ML

TL;DR

Online learning with pairwise losses faces a generalization-analysis challenge because training pairs are coupled, and earlier bounds were not tight. The paper uses a decoupling technique based on Rademacher complexities; its bounds are tighter than Wang et al. (2012)'s, with dimension-independent bounds for L2-regularized formulations. It also analyzes finite-buffer methods and presents a memory-efficient algorithm with all-pairs regret guarantees.

  • Problem

    Pairwise training samples are coupled, so standard generalization analysis does not directly apply, while prior online bounds were not tight and depended strongly on input dimension.

    Source: §1 · pp. 1–2
  • Method

    The paper decouples higher-order online-learning analysis through Symmetrization of Expectations, reducing excess-risk estimates to Rademacher complexities.

    Source: §1 · p. 2
  • Results

    The bounds are tighter than Wang et al. (2012)'s and are dimension-independent for L2-regularized formulations, while the paper also establishes sharp conversion bounds and fast rates for strongly convex losses.

    Source: §3.1 · p. 4, §9 · p. 8
  • Takeaways & Limitations

    A memory-efficient finite-buffer algorithm provides all-pairs regret bounds and performs competitively on AUC maximization tasks.

    Source: §1 · p. 2, §9 · p. 8

    Whether constant-size buffers can support sublinear regret remains a future-work question; scalability for higher-order losses is also identified as a challenge.

    Source: §9 · p. 8

Abstract

from arXiv · show

In this paper, we study the generalization properties of online learning based stochastic methods for supervised learning problems where the loss function is dependent on more than one training sample (e.g., metric learning, ranking). We present a generic decoupling technique that enables us to provide Rademacher complexity-based generalization error bounds. Our bounds are in general tighter than those obtained by Wang et al (COLT 2012) for the same problem. Using our decoupling technique, we are further able to obtain fast convergence rates for strongly convex pairwise loss functions. We are also able to analyze a class of memory efficient online learning algorithms for pairwise learning problems that use only a bounded subset of past training samples to update the hypothesis at each step. Finally, in order to complement our generalization bounds, we propose a novel memory efficient online learning algorithm for higher order learning problems with bounded regret guarantees.

1. Introduction

Pairwise and higher-order losses couple training samples, limiting standard generalization analysis; existing online bounds were not tight and depended strongly on input dimension. The paper introduces decoupling and Rademacher-complexity methods for sharper bounds, including finite-buffer analysis, fast rates for strongly convex losses, and a memory-efficient algorithm with all-pairs regret guarantees.

1. Introduction

  • Pairwise training pairs are not i.i.d., and Wang et al. (2012)'s online bounds were not tight and depended strongly on input dimension.Standard generalization analysis therefore does not directly apply to these coupled samples.Source: §1 · pp. 1–2
  • Symmetrization of Expectations decouples excess-risk analysis into Rademacher complexities, yielding bounds tighter than Wang et al. (2012)'s.For several learning scenarios, these bounds have no input-dimensionality dependence.Source: §1 · p. 2
  • The generalization analysis also covers algorithms whose regret is measured using finite-buffer penalties, including oblivious FIFO and reservoir-sampling updates.The buffer is updated at each step; the guarantees apply to any stream-oblivious buffer update policy.Source: §1 · p. 2
  • The analysis obtains fast convergence rates when pairwise loss functions are strongly convex.The paper describes this as extending a two-stage proof result from first-order to pairwise learning.Source: §1 · p. 2
  • The proposed memory-efficient algorithm uses finite buffers yet provides high-confidence regret bounds against all-pairs penalties.The paper reports competitive AUC-maximization performance compared with Zhao et al. (2011); it also says their claimed all-pairs regret bound has a subtle proof mistake.Source: §1 · p. 2

2. Problem Setup

The setup models online pairwise learning from an i.i.d. stream and seeks an ensemble with small expected risk. It also considers finite-buffer updates to avoid retaining all past samples.

2. Problem Setup

  • The paper focuses on pairwise problems, while noting that its techniques can be extended to higher-order problems.The initial model uses a bivariate hypothesis and a loss depending on two examples.Source: §2 · pp. 2–3
  • The algorithm receives i.i.d. examples sequentially and incurs pairwise loss between each new example and previously seen examples.The goal is an ensemble whose expected risk is within a small tolerance of the population-risk minimum.Source: §2 · p. 3
  • Finite buffers address the impractical need to store every past point by restricting updates to examples currently in a bounded buffer.The buffer has capacity s, and the stated model assumes stream-oblivious updates such as FIFO or reservoir sampling.Source: §2 · p. 3

3. Online to Batch Conversion Bounds for Bounded Loss Functions

The section gives online-to-batch generalization bounds for bounded pairwise losses, using Rademacher complexities despite the coupling between training pairs. It reports standard-rate guarantees that can improve on prior bounds, including in dimensional dependence and ensemble coverage.

3. Online to Batch Conversion Bounds for Bounded Loss Functions

  • Pairwise sample overlap prevents the usual martingale argument and standard symmetrization from directly producing Rademacher averages.The losses share head and tail examples across rounds, so the relevant penalty terms are not a martingale.Source: §3 · p. 3
  • Symmetrization of Expectations decouples the analysis so standard symmetrization can yield Rademacher complexities.The proof bounds excess risk through Rademacher averages rather than covering numbers.Source: §3 · pp. 3–4
  • The excess-risk bound decreases at the standard 1/√n rate, up to a √log n factor, and can be significantly tighter than covering-number bounds.The section presents an online-to-batch conversion from the algorithm's all-pairs regret bound.Source: §3 · p. 4

3.1. Discussion on the nature of our bounds

  • For L2 regularization, the bound is dimension-independent, unlike Wang et al. (2012), whose bound depends linearly on d; sparse L1 or trace-norm cases depend on √log d.The discussion also reports tighter bounds in general and a stronger confidence bound than Wang et al. (2012).Source: §3.1 · p. 4
  • Unlike Wang et al. (2012), this proof gives guarantees for the entire ensemble rather than excluding a constant fraction to avoid vacuous bounds.The technique also extends to fast convergence for strongly convex losses and to algorithms using finite buffers.Source: §3.1 · pp. 4–5

4. Fast Convergence Rates for Strongly Convex Loss Functions

For strongly convex pairwise losses, the paper extends its online-to-batch analysis to obtain fast convergence guarantees. The analysis reduces the pairwise problem to a first-order problem and a martingale convergence problem.

4. Fast Convergence Rates for Strongly Convex Loss Functions

  • The pairwise analysis reduces to a first-order problem and a martingale convergence problem.The proof applies a first-order strongly convex bound and uses Bernstein-style inequalities to control the resulting martingale difference sequence.Source: §4 · p. 5
  • The section establishes fast online-to-batch convergence guarantees for bounded, Lipschitz, strongly convex pairwise losses when the algorithm has a regret bound.The result is stated for an ensemble of hypotheses generated by the online algorithm.Source: §4 · p. 5
  • The dimensionality factor is 1 for non-sparse formulations and log d for sparse formulations, matching the first-order result of Kakade & Tewari (2008) up to a logarithmic factor.The effective dependence enters through C_d^2.Source: §4 · p. 5

5. Analyzing Online Learning Algorithms that use Finite Buffers

The section analyzes online learners whose pairwise updates use a finite buffer, under stream-oblivious buffer policies. It gives generalization guarantees from finite-buffer regret and handles the randomness of buffer construction explicitly.

5. Analyzing Online Learning Algorithms that use Finite Buffers

  • Each update incurs loss only on pairs between the newly observed example and examples in the current buffer.The buffer has capacity s and is updated under a stream-oblivious policy.Source: §5 · p. 5
  • With logarithmic finite-buffer regret, the bound guarantees excess error of Õ(1/s).The result applies to algorithms such as Follow-the-leader with logarithmic regret.Source: §5 · p. 6
  • The guarantees require only s = ˜ω(1), whereas a naive unbounded-buffer analysis would require s = ω(√n) for nontrivial guarantees.The analysis addresses randomized buffer policies as well as the finite buffer's effect on excess risk.Source: §5 · p. 6
  • The proof conditions on buffer-update randomness before analyzing conditional excess risk, then averages over that randomness.This step relies on the buffer policy being stream-oblivious.Source: §5 · p. 6
  • The result requires regret bounds for finite-buffer penalties, not for all-pairs penalties, and therefore covers OAMseq and OAMgra with reservoir sampling.The paper says this analysis explains those algorithms' reported empirical performance and covers randomized reservoir sampling where Wang et al. (2013) do not.Source: §5 · p. 6

!6. Applications

The section applies pairwise-function Rademacher complexities to several learning settings, including AUC maximization, metric learning, and multiple kernel learning. It describes regularization choices and resulting complexity bounds, including dimension independence in a stated setting.

!6. Applications

  • The complexity analysis targets composition classes formed by applying Lipschitz pairwise losses to hypothesis classes.The section uses contraction inequalities to reduce the calculation to the hypothesis-class Rademacher complexity.Source: §6 · p. 6
  • For AUC maximization, L2-regularized classifiers yield dimension-independent Rademacher complexities, including for bounded-kernel classes.The section also gives a bound for L1 regularization.Source: §6 · p. 7
  • For metric learning, the matrix hypothesis space can use mixed-norm and Schatten-norm regularization, including trace-norm regularization.Source: §6 · p. 7
  • For multiple kernel learning, the analyzed hypotheses are nonnegative combinations of base kernels, with L1-simplex and L2-sphere regularization classes.The section states Rademacher complexity bounds for these classes.Source: §6 · p. 7

7. OLP : Online Learning with Pairwise Loss Functions

The section introduces RS-x, a finite-buffer update policy, and combines it with OLP, a GIGA variant, to obtain high-probability all-pairs regret bounds. It also addresses why prior finite-buffer reasoning does not directly establish the needed regret property.

7. OLP : Online Learning with Pairwise Loss Functions

  • The RS buffer’s uniform-sample property does not justify the claimed expected-loss equality for a hypothesis learned from that same buffer.The section instead establishes a weaker high-probability claim for the buffer-based loss.Source: §7 · p. 7
  • RS-x supplies s i.i.d. samples from the preceding stream at each time step, enabling OLP to use a finite buffer for pairwise learning.After repopulation, each buffer point is independently replaced by the new point with probability 1/t.Source: §7 · pp. 7–8
  • Combining RS-x with OLP, a GIGA variant, yields a high-probability all-pairs regret guarantee.The stated theorem assumes an s-sized buffer; the supplied theorem passage does not include the bound's expression.Source: §7 · pp. 7–8
  • The section identifies sublinear regret at constant buffer size, or a regret lower bound for finite-buffer algorithms, as open problems.Source: §7 · p. 8

8. Experimental Evaluation

The experiments compare OLP using RS-x with OAMgra using RS on AUC maximization benchmarks. OLP performs competitively and sometimes has slightly better performance at small buffer sizes.

8. Experimental Evaluation

  • The experiments aim to assess whether OLP, which has high-confidence regret bounds, performs competitively against OAMgra in practice.The paper notes that OAMgra has generalization guarantees despite lacking an all-pairs regret bound.Source: §8 · p. 8
  • OLP performs competitively with OAMgra and is slightly better in some small-buffer cases.The comparison uses 18 benchmark datasets; the figure shows four datasets across five random training/test splits.Source: §8 · p. 8
  • The evaluation uses 60% of available data, capped at 20,000 points, to train both algorithms.The reported figure covers four datasets, with results on other datasets placed in the appendix.Source: §8 · p. 8

9. Conclusion

The conclusion reports sharp online-to-batch bounds for pairwise learning, extensions to finite-buffer regret bounds, and a new memory-efficient algorithm with all-pairs regret guarantees. The proof appendix explains how decoupling permits symmetrization in the bounded-loss analysis.

9. Conclusion

  • The conclusion presents a memory-efficient online algorithm with all-pairs regret bounds that also performs well empirically.Source: §9 · p. 8
  • For all-pairs regret algorithms, the paper reports sharp online-to-batch conversion bounds, with bounded and strongly convex cases closely matching first-order counterparts.Source: §9 · p. 8
  • The analysis extends to finite-buffer regret bounds and is used to explain existing algorithms’ good empirical performance.Source: §9 · p. 8

A. Proof of Lemma 1

  • In the proof of Lemma 1, decoupling the head variable from the tail variables allows symmetrization of true and ghost samples.The proof also uses bounded loss to apply Azuma-Hoeffding to a martingale difference sequence.Source: A. Proof of Lemma 1 · p. 10

B. Proof of Theorem 4

The proof sections develop generalization bounds for online and finite-buffer learning algorithms using excess-risk comparisons, buffer-aware concentration, and Rademacher complexity, covering margin and bivariate losses including AUC prediction. They also analyze faster convergence for finite-buffer algorithms with strongly convex losses.

B. Proof of Theorem 4

  • Under Lipschitzness, bounded features, and strong convexity, the Theorem 4 proof uses a high-probability multiplicative comparison between population and empirical excess risk.The comparison is M(f) ≤ (1 + ϵ) M̂(f), with probability at least 1 − δ.Source: B. Proof of Theorem 4 · pp. 10–11

C. Proof of Theorem 5

  • For bounded, Lipschitz, strongly convex losses, Theorem 5 converts an online algorithm’s regret bound into a high-probability excess-risk bound for its hypothesis ensemble.The proof applies Theorem 4 at each step, sums the bounds, and controls a martingale difference sequence with a Bernstein-type inequality.Source: C. Proof of Theorem 5 · pp. 11–12

D. Generalization Bounds for Finite Buffer Algorithms

  • The finite-buffer section gives online-to-batch conversion bounds for algorithms with finite-buffer regret guarantees, where each update uses at most s past samples.Buffer updates are assumed stream-oblivious; randomized policies use auxiliary randomness independent of the arriving data point.Source: D. Generalization Bounds for Finite… · p. 13

D.1. Examples of Stream Oblivious Policies

  • The stream-oblivious policy examples include FIFO, reservoir sampling, RS-x, and RS-x2, which differ in how incoming points replace buffer contents.FIFO evicts the oldest point; reservoir sampling admits an incoming point with probability s/t, while RS-x and RS-x2 use randomized replacement schemes.Source: §D.1 · p. 13

D.2. Finite Buffer Algorithms with Bounded Loss Functions

  • For bounded losses, the proof establishes high-probability bounds and combines them with bounded-buffer regret to obtain the first part of Theorem 6.Rather than applying McDiarmid’s inequality to all t − 1 observations, it conditions on the stream-oblivious buffer indices and concentrates over the s samples in the buffer; symmetrization follows the buffer’s matching.Source: §D.2 · pp. 14–15

D.3. Finite Buffer Algorithms with Strongly Convex Loss Functions

  • The strongly convex finite-buffer subsection begins a proof of faster convergence bounds for algorithms with finite-buffer regret guarantees.The supplied passage introduces the quantity to be bounded but does not state the resulting bound.Source: §D.3 · p. 15
  • The finite-buffer proof applies Theorem 4 to an expected pairwise loss that preserves Lipschitzness and strong convexity, then combines conditional bounds across steps with regret.The simplification assumes s < n/log n; the passage notes this is optional and that for s = Ω(n), the infinite-buffer result from Theorem 5 can be used.Source: §D.3 · p. 16

E. Proof of Theorem 7

  • For margin-loss composition classes, the proof centers the loss at zero and uses contraction on empirical Rademacher averages, with Lipschitz constant scaled by the label-pair bound Y.The loss uses Y(y1,y2) = y1 − y2 or y1y2, and the contraction step applies to functions ψi(x) = φ̃(ai x).Source: E. Proof of Theorem 7 · pp. 17–18

F. Applications

  • Because the cited strongly convex Rademacher bound applies to univariate classes, the applications proof reduces order and conditions on one input to bound bivariate classes.It represents each predictor as linear on a modified domain, then bounds the resulting univariate classes and averages those bounds.Source: F. Applications · p. 18

F.1. AUC maximization for Linear Prediction

  • Linear AUC prediction rewrites hw(x, x′) as w⊤(x − x′), enabling norm-based regularization; kernelized AUC uses differences of feature maps in the RKHS.For kernelized AUC, the passage assumes a bounded kernel; the AUC loss uses hinge or exponential loss.Source: §F.1 · pp. 18–19

F.2. Linear Similarity and Mahalanobis Metric learning

The applications derive Rademacher-average bounds for linear similarity and metric learning and two-stage multiple-kernel learning. For regret analysis, the paper proposes a sampling algorithm whose buffer contains i.i.d. samples.

F.2. Linear Similarity and Mahalanobis Metric learning

  • Applications include Mahalanobis metric learning and linear-kernel learning, with kernel-target alignment and S-Goodness as proposed loss settings.Source: §F.2 · p. 19
  • For linear similarity and Mahalanobis metric learning, the analysis covers mixed matrix norms and Schatten norms, including the trace norm, and derives Rademacher-average bounds.The bounds are summarized in Table 2.Source: §F.2 · p. 19

F.3. Two-stage Multiple kernel learning

  • For two-stage multiple-kernel learning, L1 regularization has a √log p kernel-count dependence similar to Cortes et al. (2010a), while L2 has a worse √p dependence.Cortes et al. (2010a) consider single-stage joint kernel and classifier learning, unlike this paper’s two-stage process.Source: Table 3 · p. 20, §F.3 · p. 20

G. Regret Bounds for Reservoir Sampling Algorithms

  • Reservoir sampling produces a buffer that is not i.i.d. from the preceding stream; the proposed alternative gives i.i.d. buffer samples so existing techniques can yield regret bounds.Source: G. Regret Bounds for Reservoir… · p. 20

H. Analysis of the RS-x Algorithm

The RS-x analysis establishes the buffer’s sampling properties, uses them to support high-confidence conversion from finite-buffer to all-pairs regret, and presents an equivalent update implementation with lower randomness use.

H. Analysis of the RS-x Algorithm

  • After the repopulation step, RS-x maintains a buffer of s independent samples from the preceding stream for every t ≥ s+2.Each buffer location is uniform over the preceding stream, and the locations are independent.Source: H. Analysis of the RS-x Algorithm · p. 21

I. Proof of Theorem 8

  • The proof of Theorem 8 converts finite-buffer regret to all-pairs regret with high confidence for OLP using an RS-x buffer.The finite-buffer OLP regret bound assumes a Lipschitz loss and a compact hypothesis space with finite diameter.Source: §I · pp. 22–23

J. Implementing the RS-x Algorithm

  • RS-x2 replaces RS-x’s normal update with a binomial draw and random replacement of locations, while preserving the buffer’s joint distribution.The stated equivalence means learning algorithms cannot distinguish the two update mechanisms, so the regret guarantees continue to hold.Source: J. Implementing the RS-x Algorithm · pp. 23–24
  • RS-x2 uses O(log s) random bits per update, matching Vitter’s RS up to a constant, whereas RS-x uses O(s) bits.The binomial replacement count is O(1) in expectation and with high probability when t > s.Source: J. Implementing the RS-x Algorithm · pp. 23–24

K. Additional Experimental Results

The experiments compare OLP with OAMgra on AUC maximization tasks; OLP is competitive and usually has a slight advantage with small buffers.

K. Additional Experimental Results

  • OLP using RS-x2 is compared with OAMgra using RS across 14 benchmark datasets on AUC maximization tasks.The comparison concerns the algorithms’ buffer policies as well as their AUC performance.Source: K. Additional Experimental Results · p. 24, Figure 3 · p. 25
  • OLP performs competitively with OAMgra and has a slight advantage in most small-buffer situations.The passage reports this as a trend across the experiments.Source: K. Additional Experimental Results · p. 24
  • Figure 3 presents the comparison between OAMgra using RS and OLP using RS-x on AUC maximization tasks.The figure caption identifies the task and policies being compared.Source: Figure 3 · p. 25
Loading 1305.2505v1…