Online Isotonic Regression.

Wojciech Kotlowski, Wouter M. Koolen, Alan MalekarXiv 2016

Abstract

We consider the online version of the isotonic regression problem. Given a set of linearly ordered points (e.g., on the real line), the learner must predict labels sequentially at adversarially chosen positions and is evaluated by her total squared loss compared against the best isotonic (non-decreasing) function in hindsight. We survey several standard online learning algorithms and show that none of them achieve the optimal regret exponent; in fact, most of them (including Online Gradient Descent, Follow the Leader and Exponential Weights) incur linear regret. We then prove that the Exponential Weights algorithm played over a covering net of isotonic functions has a regret bounded by $O\big(T^{1/3} \log^{2/3}(T)\big)$ and present a matching $\Omega(T^{1/3})$ lower bound on regret. We provide a computationally efficient version of this algorithm. We also analyze the noise-free case, in which the revealed labels are isotonic, and show that the bound can be improved to $O(\log T)$ or even to $O(1)$ (when the labels are revealed in isotonic order). Finally, we extend the analysis beyond squared loss and give bounds for entropic loss and absolute loss.

Introduction

Isotonic regression is a cornerstone of non-parametric statistics, used to fit data under monotonicity constraints—the assumption that as an input $x$ increases, the output $y$ cannot decrease. This is essential in applications like dose-response modeling in medicine or learning utility functions in economics. While the batch setting (where all data is available simultaneously) is well-understood, the online setting presents a significant challenge. In this adversarial scenario, data points arrive sequentially, and the learner must make predictions without knowing future values, aiming to minimize regret relative to the best monotonic function in hindsight.

The Failure of Standard Algorithms

A primary contribution of this work is demonstrating that the "workhorse" algorithms of online convex optimization fail in the isotonic setting. Because isotonic regression is non-parametric, the number of parameters (the function values at each point) grows linearly with the number of time steps $T$. This high dimensionality allows an adversary to exploit standard algorithms.

As shown in the table below, common algorithms like Online Gradient Descent (OGD), Follow the Leader (FTL), and standard Exponential Weights (EW) over continuous space suffer from linear (or even super-linear) regret. This means they fail to learn effectively, performing no better than a baseline that ignores the data.

Comparison of regret bounds for standard online learning algorithms applied to isotonic regression. Most standard approaches result in linear (or worse) regret.

Even the Exponentiated Gradient (EG) algorithm, while achieving sublinear regret of $O(\sqrt{T \log T})$, remains suboptimal compared to the rates achievable in the batch setting.

Achieving Optimal Regret via Discretization

To overcome these failures, we propose a novel approach using Discretized Exponential Weights. The key insight is that discretization acts as a form of regularization. Instead of considering the infinite space of all isotonic functions, we restrict the learner to a "covering net"—a finite set of functions where values are restricted to a discrete grid (multiples of $1/K$).

By carefully tuning the resolution $K$ of this grid to approximately $T^{1/3}$, we balance the approximation error of the grid against the learning complexity of the finite set. This strategy yields an optimal regret bound of $O(T^{1/3} \log^{2/3} T)$, which matches the $\Omega(T^{1/3})$ lower bound and aligns with the $T^{-2/3}$ convergence rate of statistical risk in batch isotonic regression.

Computational Efficiency and Extensions

A naive implementation of Exponential Weights over all possible discrete monotonic functions would be computationally intractable, as the number of such functions is exponential in $T$. We derive a dynamic programming solution that reduces the per-step complexity to $O(TK)$, making the total algorithm run in $O(T^{4/3})$ time.

Furthermore, we explore several variations of the problem:

  • Noise-Free Case: If the adversary provides labels that are themselves monotonic, regret drops to $O(\log T)$, or even $O(1)$ if points are revealed in increasing order.
  • Loss Functions: The analysis extends beyond squared loss to include entropic and absolute loss.
  • Fixed Design: We demonstrate that knowing the set of $x$-coordinates in advance is a mathematical necessity; without this "fixed-design" knowledge, an adversary can always force linear regret.

Conclusion and Future Work

This research establishes that while standard online learning tools struggle with the high dimensionality of non-parametric constraints, discretization provides a path to optimality. Future work remains in extending these efficient dynamic programming techniques to partial orders (multi-dimensional inputs), where the current computational tricks do not directly apply.

Summary updated

BibTeX
@misc{kotlowski2016online,
  author = {Wojciech Kotlowski and Wouter M. Koolen and Alan Malek},
  title = {{Online Isotonic Regression.}},
  year = {2016},
  eprint = {1603.04190},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1603.04190},
}
Figure