Sequential Nonparametric Regression

Haijie Gu, John D. LaffertyICML 2012

Introduction

In nonparametric regression, the goal is to learn a function $m(x)$ from noisy data without assuming a specific functional form. A "gold standard" approach is kernel smoothing or local polynomial regression, where a critical factor is the bandwidth ($h$). If the bandwidth is too large, the model is biased (too blurry); if it's too small, it overfits (too wiggly).

In a traditional "batch" setting, a single optimal bandwidth is chosen based on the total sample size $n$. However, in an online or sequential setting, data arrives one point at a time. Re-running a batch regression for every new point to update the bandwidth incurs a quadratic computational cost ($O(T^2)$), which is impractical for massive data streams.

This paper introduces a linear-time algorithm for nonparametric regression on sequential data streams. By dynamically shrinking the bandwidth for each new data point and using efficient rank-one updates, the authors achieve the optimal minimax rate of convergence. This matches the statistical performance of expensive batch methods while remaining computationally efficient ($O(T)$ total time).

Methods

The authors propose two main algorithmic contributions to solve the sequential regression problem:

  1. Sequential Local Polynomial Smoothing: Instead of using a single bandwidth for the whole dataset, the algorithm assigns a shrinking bandwidth $h_t$ to each incoming data point $t$. To keep computation linear, they leverage the Woodbury matrix identity. This allows them to update the inverse of the "design matrix" using a rank-one update in $O(d^2)$ time, where $d$ is the polynomial order.
  2. Online Expert Mixing: Because the optimal bandwidth depends on the unknown "smoothness" of the underlying function, the authors run multiple estimators (experts) in parallel, each with different parameters. They use an exponential weighting strategy to combine these experts. Over time, the weights shift toward the most accurate expert, allowing the system to automatically adapt to the data's complexity.

Datasets and Evaluation

The algorithms are evaluated using four synthetic regression functions commonly used in statistical literature, representing different levels of smoothness:

  • $f_1$: A simple exponential decay.
  • $f_2$: A smooth bump.
  • $f_3$: A sharper, more localized bump.
  • $f_4$: Two very sharp peaks.

These functions provide a rigorous test for how well the bandwidth adaptation works.

Comparison of the fitted mean for Batch, CV, and Online methods against the true function.

The authors also use a parameterized set of functions to test the "Expert Mixing" framework's ability to adapt to specific Hölder continuity levels.

Key Insights

  • "Bias Washing Out": A surprising theoretical insight is that even though early data points are processed with "bad" (too large) bandwidths, their influence is asymptotically "washed out" as more data arrives. The denominator in their estimator acts as a consistent density estimate that effectively re-weights early contributions to remove their initial bias.
  • Computational Efficiency via Rank-One Updates: By framing sequential regression as a series of matrix updates, the authors bridge the gap between high-level statistical theory and efficient online optimization.
  • Optimal Convergence: The paper proves that the sequential estimator achieves the minimax optimal rate ($n^{-2d/(2d+1)}$). In other words, no "learning power" is lost by choosing the fast sequential route over the slow batch route.

Key Results

  • Statistical Parity: In simulations, the "Average Loss" of the sequential estimator converges to the same noise floor as the best batch estimator.
  • Linear Complexity: The algorithm maintains a constant update time per point, whereas the batch cross-validation approach becomes prohibitively slow as the sample size increases.
Average loss over time, demonstrating that the online estimator converges similarly to batch methods.
  • Effective Adaptation: The expert mixing framework successfully identifies the "correct" smoothness parameter, consistently achieving the lowest risk for the expert whose assumed smoothness matches the true function.

Limitations and Future Work

  • Global vs. Local Smoothness: The current approach assumes "global" smoothness (one bandwidth strategy for the whole function). Adapting to spatially inhomogeneous functions—where some parts are smooth and others are jagged—is a significant next step.
  • IID Assumption: The analysis assumes data points are independent and identically distributed (iid). Real-world streams often have temporal correlations or "concept drift," which are not addressed here.
  • High Dimensionality: While an extension to additive models for higher-dimensional data is mentioned, the core theory is most robust in lower-dimensional settings where kernel methods typically excel.

Summary updated

BibTeX
@inproceedings{gu2012sequential,
  author = {Haijie Gu and John D. Lafferty},
  title = {{Sequential Nonparametric Regression}},
  booktitle = {International Conference on Machine Learning},
  year = {2012},
  url = {https://openreview.net/forum?id=ZlShO1UutK},
}
Figure