Skip to main content
QUICK REVIEW

[Paper Review] Temporally-Biased Sampling for Online Model Management

Brian Hentschel, Peter J. Haas|arXiv (Cornell University)|Jan 29, 2018
Data Stream Mining TechniquesComputer Science23 references3 citations
TL;DR

This paper proposes temporally-biased sampling (T-TBS and R-TBS) for online model management, where data items are sampled with exponentially decaying inclusion probabilities over time to prioritize recent data while retaining older data for robustness. The R-TBS algorithm uniquely ensures both controlled decay rates and bounded sample size even under variable data arrival rates, outperforming sliding windows in adaptability and stability across diverse data streams.

ABSTRACT

To maintain the accuracy of supervised learning models in the presence of evolving data streams, we provide temporally-biased sampling schemes that weight recent data most heavily, with inclusion probabilities for a given data item decaying exponentially over time. We then periodically retrain the models on the current sample. This approach speeds up the training process relative to training on all of the data. Moreover, time-biasing lets the models adapt to recent changes in the data while -- unlike in a sliding-window approach -- still keeping some old data to ensure robustness in the face of temporary fluctuations and periodicities in the data values. In addition, the sampling-based approach allows existing analytic algorithms for static data to be applied to dynamic streaming data essentially without change. We provide and analyze both a simple sampling scheme (T-TBS) that probabilistically maintains a target sample size and a novel reservoir-based scheme (R-TBS) that is the first to provide both complete control over the decay rate and a guaranteed upper bound on the sample size, while maximizing both expected sample size and sample-size stability. The latter scheme rests on the notion of a "fractional sample" and, unlike T-TBS, allows for data arrival rates that are unknown and time varying. R-TBS and T-TBS are of independent interest, extending the known set of unequal-probability sampling schemes. We discuss distributed implementation strategies; experiments in Spark illuminate the performance and scalability of the algorithms, and show that our approach can increase machine learning robustness in the face of evolving data.

Motivation & Objective

  • To address the challenge of maintaining model accuracy in the face of evolving data streams without re-engineering learning algorithms.
  • To design sampling schemes that prioritize recent data while preserving older data to resist noise and periodic fluctuations.
  • To provide a sampling method that enables periodic retraining of static ML models on streaming data with minimal computational cost.
  • To develop a reservoir-based algorithm (R-TBS) that ensures exponential decay in inclusion probabilities with guaranteed upper bounds on sample size, even under variable data arrival rates.
  • To support distributed deployment and scalability of time-biased sampling for real-world streaming workloads.

Proposed method

  • T-TBS uses probabilistic sampling to maintain a target sample size, where each data item’s inclusion probability decays exponentially over time based on its arrival timestamp.
  • R-TBS introduces the concept of a 'fractional sample' to allow dynamic sample size adjustment, enabling control over both decay rate and maximum sample size.
  • The algorithms ensure that the ratio of inclusion probabilities for items from different timestamps decays exponentially as per Pr[i ∈ St]/Pr[j ∈ St] = e^−λ(t′′−t′), satisfying a key interpretability criterion.
  • R-TBS is the first reservoir-based scheme to achieve optimal expected sample size and minimal sample-size variance under bounded sample size constraints.
  • The approach supports batch arrivals and enables distributed implementation via techniques adapted from streaming algorithms.
  • Theoretical analysis proves R-TBS maximizes expected sample size and minimizes variance among all bounded-size sampling schemes with exponential decay.

Experimental results

Research questions

  • RQ1Can a sampling-based approach maintain model accuracy in evolving data streams while reducing retraining costs compared to full-data retraining?
  • RQ2How can inclusion probabilities be controlled to ensure recent data is prioritized while preserving older data for robustness?
  • RQ3Can a reservoir-based sampling algorithm maintain exponential decay in inclusion probabilities while guaranteeing a bounded sample size under variable data arrival rates?
  • RQ4How does the performance of time-biased sampling compare to sliding-window approaches in handling concept drift and periodic patterns?
  • RQ5What are the scalability and distribution characteristics of time-biased sampling in distributed streaming systems?

Key findings

  • R-TBS achieves optimal expected sample size and minimizes sample-size variance among all bounded-size sampling schemes with exponential decay.
  • R-TBS successfully handles data arrival rates that are unknown and time-varying, avoiding sample overflows and underflows inherent in simpler schemes.
  • Experiments in Spark show that time-biased sampling improves model robustness in the presence of abnormal events and periodic data patterns, outperforming sliding-window approaches.
  • The approach enables existing static ML algorithms to be used in dynamic streaming settings with minimal modification, preserving model accuracy over time.
  • R-TBS does not require precise parameter tuning and performs well across a range of decay rates (λ), unlike sliding windows which suffer from all-or-nothing inclusion.
  • The R-TBS algorithm correctly handles underflows by shrinking the sample when data arrival slows, preventing over-representation of older items.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.