Efficient quantile tracking using an oracle

Hugo Lewi Hammer, Anis Yazidi, Michael A. Riegler, Håvard Rue

Abstract

In the era of big data, streaming information often exhibits "concept drift," where underlying distributions change unexpectedly. Traditional quantile tracking methods often struggle with these shifts, either reacting too slowly or becoming overly volatile. This paper introduces two adaptive strategies—the Oracle and HIL (High, Intermediate, Low) approaches—that leverage Expected Quantile Loss (EQL) to dynamically tune update step sizes. We demonstrate that these methods provide robust, near-optimal tracking across diverse synthetic and real-world data streams, including social media activity and financial markets.

Introduction

Data stream mining requires algorithms that can adapt to non-stationary environments. Quantile tracking, which involves estimating specific percentiles (like the median or the 90th percentile) in real-time, is particularly vulnerable to concept drift. A critical parameter in these algorithms is the step size ($\lambda$): a small $\lambda$ ensures stability but lacks agility, while a large $\lambda$ tracks changes quickly but introduces significant noise. Finding the optimal $\lambda$ automatically and efficiently is the central challenge addressed in this work.

Methodology

The proposed solutions utilize the Expected Quantile Loss (EQL) as a real-time diagnostic tool. EQL serves as a compass, indicating whether a tracking algorithm's current step size is effectively minimizing error.

The Oracle Approach

The Oracle approach represents a high-performance benchmark. It operates by running multiple quantile estimators in parallel, each initialized with a different fixed step size ($\lambda^*$). At each time step $t$, the system calculates the EQL for every estimator and selects the estimate from the one that minimizes this loss.

The Oracle approach selects the best performing estimator from a parallel set based on minimized Expected Quantile Loss (EQL).

While computationally intensive due to the parallel processing, the Oracle approach provides tracking performance that is nearly identical to a theoretical model with perfect knowledge of the drift.

The HIL (High, Intermediate, Low) Approach

To address the computational overhead of the Oracle, the HIL approach offers a lightweight "detect-and-adapt" alternative. Instead of a large bank of estimators, HIL maintains only three: one using the current step size $\lambda$, one with a slightly higher value, and one with a slightly lower value. Periodically, the algorithm evaluates which of the three performed best according to the EQL and shifts the global $\lambda$ in that direction. This method is significantly more memory-efficient while maintaining high accuracy.

Experimental Evaluation

The researchers evaluated these methods against several benchmarks using both synthetic and real-world datasets:

  • Synthetic Streams: Data with oscillating dynamics to simulate controlled concept drift.
  • Twitter Event Detection: Tracking tweet frequency during the 2011 Oslo terrorist attack to detect sudden spikes in activity.
  • Activity Monitoring (WISDM): Accelerometer data where users transition between different physical activities.
  • Stock Trading: High-volatility daily trading volumes of Tesla, Inc. (TSLA).

Key Results

The Oracle approach achieved a Mean Squared Error (MSE) nearly indistinguishable from optimal theoretical models. In the Twitter dataset, it successfully identified the massive activity spike following the Oslo bombing by rapidly increasing its step size. The HIL approach proved to be a robust middle ground, offering a significant accuracy improvement over fixed-parameter models with minimal computational cost.

Conclusion

By using EQL as a real-time feedback mechanism, the Oracle and HIL approaches bypass the traditional "detect-then-adapt" cycle, allowing for continuous and instantaneous adaptation to concept drift. Future work will explore scaling these methods to high-dimensional data and applying them to complex domains like mental health monitoring, where behavioral shifts are frequent and unpredictable.

Summary updated

BibTeX
@article{hammer2023efficient,
  author = {Hugo Lewi Hammer and Anis Yazidi and Michael A. Riegler and Håvard Rue},
  title = {{Efficient quantile tracking using an oracle}},
  journal = {Applied Intelligence},
  year = {2023},
  doi = {10.1007/s10489-022-03489-1},
}
Figure