Source-linked AI summary

New Analysis and Algorithm for Learning with Drifting Distributions

Mehryar Mohri, Andres Munoz Medina

arXiv:1205.4343v2cs.LGstat.ML

TL;DR

Learning with drifting distributions departs from standard PAC settings with fixed training and test distributions. The paper develops discrepancy- and Rademacher-based bounds for drifting PAC and tracking, and extends online-to-batch conversion. It reports tighter bounds than previous L1-based ones, sometimes substantially so, and preliminary experiments on a QP algorithm.

  • Problem

    Standard PAC models assume a fixed distribution, whereas many learning environments have parameters that drift over time.

    Source: §1 · p. 1
  • Method

    The paper derives discrepancy- and Rademacher-based bounds for drifting PAC and tracking, extends online-to-batch conversion, and formulates a bound-minimizing hypothesis-combination algorithm as a QP.

    Source: §1 · p. 2, §5 · p. 10
  • Results

    The bounds are tighter than previous L1-based bounds and in some cases substantially improve on them.

    Source: §1 · p. 2, §7 · pp. 14–15
  • Takeaways & Limitations

    The paper presents discrepancy as a natural measure of distribution divergence for drifting learning and reports preliminary experiments demonstrating benefits of its algorithm.

    Source: §1 · p. 2, §7 · p. 15

    In practice, Y-discrepancy values require labeled samples; unlabeled discrepancy can substitute when labeling is deterministic and in H, or approximately when the labeling function is close to some h in H.

    Source: §6 · p. 13

Abstract

from arXiv · show

We present a new analysis of the problem of learning with drifting distributions in the batch setting using the notion of discrepancy. We prove learning bounds based on the Rademacher complexity of the hypothesis set and the discrepancy of distributions both for a drifting PAC scenario and a tracking scenario. Our bounds are always tighter and in some cases substantially improve upon previous ones based on the $L_1$ distance. We also present a generalization of the standard on-line to batch conversion to the drifting scenario in terms of the discrepancy and arbitrary convex combinations of hypotheses. We introduce a new algorithm exploiting these learning guarantees, which we show can be formulated as a simple QP. Finally, we report the results of preliminary experiments demonstrating the benefits of this algorithm.

1 Introduction

Learning theory often assumes a fixed distribution, although many environments drift over time. This paper analyzes batch learning under drift with discrepancy-based bounds and extends online-to-batch conversion to motivate a QP algorithm.

1 Introduction

  • Many applications, including spam detection and financial prediction, face continuously changing environments rather than fixed distributions.Standard PAC models assume the training and test distributions remain fixed over time.Source: §1 · p. 1
  • Prior batch analyses measured drift using L1 distance, while related work studied changing targets and other drift settings.The paper argues that L1 distance can be large even in favorable learning settings and does not account for the loss function or hypothesis set.Source: §1 · pp. 1–2
  • The paper derives drifting PAC and tracking bounds using discrepancy and Rademacher complexity, reporting bounds tighter than prior L1- and VC-dimension-based bounds.The bounds can lead to a meta-algorithm that selects a convex combination of online hypotheses by minimizing a discrepancy-based bound.Source: §1 · pp. 1–2
  • The paper generalizes online-to-batch conversion to drifting distributions and reports preliminary experiments on a simple QP algorithm.Its guarantees cover convex combinations of hypotheses generated by an online learning algorithm.Source: §1 · p. 2

2 Preliminaries

The paper defines discrepancy as a loss- and hypothesis-aware way to measure distribution shift, then uses it to frame two drifting learning scenarios. It also introduces the complexity and loss notation used in the bounds.

2 Preliminaries

  • The notation defines expected loss for a hypothesis and for a pair of hypotheses, and extends Rademacher complexity to samples drawn from a product of time-varying distributions.When all time-indexed distributions coincide, this complexity agrees with the standard Rademacher complexity.Source: §2 · pp. 2–3
  • Discrepancy measures distribution shift through the largest difference in expected loss over hypotheses, rather than through L1 distance alone.The paper generalizes a domain-adaptation definition to drifting distributions, where the quantity of interest is the loss difference across consecutive distributions.Source: §2 · p. 3
  • The discrepancy is symmetric and satisfies the triangle inequality, but need not be a distance; under stated complexity conditions it can be estimated from finite samples.The finite-sample estimation statement assumes bounded loss and Rademacher complexity for the induced loss-function class in O(1/T); finite pseudo-dimension is given as one case.Source: §2 · p. 4
  • The paper uses Y-discrepancy for its most general guarantees; the alternative discrepancy can be estimated from unlabeled samples.The latter bounds follow straightforwardly from guarantees in terms of Y-discrepancy.Source: §2 · p. 4
  • In drifting PAC, the learner selects a hypothesis for low expected loss on the next environment distribution after training on examples from earlier distributions.The target is the distribution D_T+1 after receiving a sample drawn from the product of the time-indexed distributions.Source: §2 · p. 4
  • In drifting tracking, performance is the algorithm’s expected mistake across a sequence of distributions, compared with the best hypothesis in H under a discrepancy drift constraint.The tracking definition requires the algorithm’s expected mistake to remain within ϵ of the best-in-class loss when consecutive Y-discrepancies are below ∆.Source: §2 · p. 4
  • Earlier tracking analyses used L1 drift bounds and an algorithm similar to empirical risk minimization.The paper also uses a similar algorithm in its theoretical analysis of both drifting scenarios.Source: §2 · p. 4

3 Drifting PAC scenario

The drifting PAC analysis bounds generalization using distribution discrepancies and Rademacher complexity, then applies the guarantees to empirical risk minimization. Restricting ERM to recent examples exposes a trade-off between sample size and accumulated drift.

3 Drifting PAC scenario

  • The generalization bound depends on discrepancies between each training distribution and the next-time distribution, alongside the Rademacher complexity of the loss class.The paper describes this bound as tight with respect to the discrepancy measure used.Source: §3 · pp. 5–6
  • The concentration argument requires independent draws, but does not require all examples to come from the same distribution.This is the stated condition for applying McDiarmid’s inequality.Source: §3 · p. 5
  • The PAC bound for ERM combines a best-in-class hypothesis with the generalization guarantee to bound the returned hypothesis’s performance.The result is stated with probability at least 1 − δ.Source: §3 · p. 6
  • Using only the latest m examples trades off lower complexity from a larger window against a potentially larger average discrepancy as the window grows.The paper motivates this windowed ERM because increasing the sample size can also increase the accumulated drift contribution.Source: §3 · pp. 6–7
  • For windowed ERM with consecutive discrepancy at most ∆, the bound’s discrepancy contribution is at most (m + 1)∆.The proposition considers an algorithm minimizing empirical loss over the last m examples.Source: §3 · p. 7
  • With finite VC dimension, the paper proposes choosing m to minimize the bound using an O(√(d/m)) upper bound on Rademacher complexity.The passage states the complexity bound as O(√(d/m)) and introduces the resulting optimized-window corollary.Source: §3 · pp. 7–8

4 Drifting Tracking scenario

The section gives tracking guarantees using discrepancy and shows that discrepancy can yield substantially more favorable bounds than L1 distance. It also states a general-scenario limit on improving the bounds and illustrates the difference with an example.

4 Drifting Tracking scenario

  • The section presents a simpler proof of ’s agnostic-case bounds and argues discrepancy yields tighter, more informative bounds than L1 distance.Source: §4 · p. 8
  • The tracking guarantee improves on by using discrepancy and Rademacher complexity rather than L1 distance and VC-dimension, and it applies to any loss function.The cited comparison in is for zero-one loss.Source: §4 · p. 9
  • When the target function is in H, Y-discrepancies can be bounded by discrepancies that can be accurately estimated from finite samples.Source: §4 · p. 9
  • For binary classification, the bounds cannot be improved in the general drifting-distribution scenario, despite the analysis using truncated empirical risk minimization.Source: §4 · p. 9
  • As R grows, L1 distance approaches 2 while discrepancy remains 0 for zero-one loss and first-coordinate threshold hypotheses.The example makes the resulting learning bounds as favorable as without drift, while L1-based bounds are uninformative.Source: §4 · p. 10

5 On-line to batch conversion

The section extends online-to-batch conversion to drifting distributions, relating online regret and distribution discrepancy to learning guarantees. It permits arbitrary convex combinations of the online hypotheses and recovers standard conversion behavior in the i.i.d. setting.

5 On-line to batch conversion

  • The analysis frames learning guarantees in terms of an online algorithm’s regret while it processes examples sequentially and produces hypotheses.Source: §5 · p. 10
  • The conversion extends standard online-to-batch results to drifting distributions and convex combinations of hypotheses, with the required regret rate attainable by several regret-minimization algorithms [23, 24].Source: §5 · p. 10
  • For bounded losses convex in their first argument, Theorem 2 gives learning guarantees for any convex combination of online hypotheses, incorporating regret and weighted discrepancy terms.The weights are nonnegative and sum to one; the theorem provides its guarantees with probability at least 1 − δ.Source: §5 · pp. 11–12
  • With equal weights, the guarantee resembles Theorem 1; in the i.i.d. setting, equal weights minimize the bound and yield known online-to-batch guarantees.Source: §5 · p. 12

6 Algorithm

The algorithm chooses weights for a convex combination of online hypotheses by minimizing a discrepancy-based learning bound, yielding a QP. In preliminary experiments, it outperformed uniform averaging and averaging the last 100 hypotheses.

6 Algorithm

  • The algorithm selects a convex combination of online hypotheses by minimizing the learning bound from Theorem 2, formulated as a QP.The objective includes discrepancy between distributions and the hypotheses’ losses, with λ ≥ 0 as a regularization parameter.Source: §6 · p. 13
  • When the labeling function is in H, discrepancy between distributions can replace the label-dependent discrepancy in the bounds and optimization; this holds approximately when the function is close to H.Source: §6 · p. 13
  • Unlabeled samples of size n can estimate discrepancy within O(1/√n) when the Rademacher complexity is O(1/√n).Source: §6 · p. 13
  • With n ≫ T, the estimated discrepancies are within O(1/T) of their exact values with high probability; when distributions follow known cycles, estimation is needed only once per cycle.Source: §6 · p. 13

6.1 Experiments

  • Weighted outperformed Regular and Fixed in the preliminary experiments, although error increased with sample size T.The experiments used synthetic regression data and assumed the discrepancy values were given.Source: Figure 2 · p. 14, §6.1 · p. 14
  • The rising error was attributed to moving Gaussian centers, which increase the maximum squared loss on the test set as the sample grows.The authors note that the analysis does not explain the increase for their algorithm and that performance can vary with the online algorithm used.Source: §6.1 · p. 14

7 Conclusion

The paper analyzes batch learning with drifting distributions and reports tighter learning guarantees than prior L1-based bounds, in some cases substantially. It identifies discrepancy as a suitable measure for distribution divergence in this setting.

  • The paper presents a theoretical analysis of batch learning with drifting distributions.Source: §7 · p. 14
  • The learning guarantees improve on previous L1-based bounds, in some cases substantially, and the proofs are simpler and more concise.Source: §7 · p. 15
  • The authors describe discrepancy as a natural measure of distribution divergence in drifting scenarios and point to further discrepancy-based analysis and algorithm improvements as directions for study.Source: §7 · p. 15
Loading 1205.4343v2…