Efficient Online Proportional Sampling with Applications to Smoothed Online Learning

Amirmahdi Mirfakhar, Maria-Florina Balcan, Hedyeh BeyhaghiarXiv 2026

TL;DR

This paper introduces a novel hierarchical data structure that enables efficient online proportional sampling in high-dimensional spaces where the reward landscape is fractured by a growing number of discontinuities. By deferring updates via a "lazy insertion" mechanism and using a parametric vector encoding for rewards, the authors bypass the exponential combinatorial explosion ($O(t^d)$ subregions) typical of these settings. Under a $\sigma$-smoothed adversary, they prove sublinear per-round time complexity and apply their framework to achieve the first computationally efficient no-regret online learning algorithms for piecewise-structured environments.

What Problem Does This Paper Address?

Sequential decision-making often involves environments with piecewise-continuous feedback—settings like dynamic pricing, contract design, or hyperparameter tuning, where a small change in parameters can trigger an abrupt jump in performance or agent behavior. To optimize choices over time (e.g., using exponential weights), a learner needs to sample actions proportionally to their cumulative rewards.

However, as new boundaries (hyperplanes) accumulate over $t$ rounds in a $d$-dimensional domain, they slice the space into up to $O(t^d)$ distinct subregions. Naively tracking these regions and sampling from them becomes computationally impossible very quickly. Prior work either ignored this computational bottleneck or assumed access to an unrealistic sampling oracle. This paper tackles the challenge of performing exact proportional sampling in real-time without explicitly maintaining this exponentially growing partition.

Methods

The authors design a multi-layered, hierarchical interval-tree data structure (a "tree-of-trees") with one layer per coordinate dimension. To make it scalable, they introduce two core techniques:

  1. Lazy Insertion: Instead of immediately propagating every newly introduced hyperplane boundary down to all affected subregions, the data structure defers these insertions. It records reward contributions at higher levels of the tree hierarchy and resolves them only when needed during the sampling phase.
  2. Parametric Vector Encoding: To allow deferred rewards to scale down accurately to subregions in $O(1)$ time, the authors replace scalar rewards with vectors representing the monomial components of the reward function. Because integrals of multivariate polynomials decompose into independent monomial terms, these vectors can be scaled using closed-form geometric factors without re-integrating from scratch.

Additionally, they apply Smoothed Analysis to bound the tree depth, analyzing how slight environmental noise ($\sigma$-smoothness) naturally keeps the tree balanced without requiring expensive, explicit rebalancing operations.

Datasets

Not discussed in the paper. The paper is purely theoretical and focuses on algorithmic design, data structure complexity, and mathematical proofs.

Key Insights and Ideas

  • Implicit Representation Beats Explicit Enumeration: You don't need to explicitly construct every tiny subregion to sample from the whole space accurately. Separating the geometric representation from the reward parameters allows the data structure to keep the exponential complexity implicit.
  • Smoothness Defeats Adversarial Cascades: In a fully adversarial setting, a malicious environment can force worst-case tree imbalances. However, adding a tiny amount of random noise ($\sigma$-smoothing) to the adversary's choices guarantees that the expected tree depth remains tightly bounded, eliminating the need for dynamic tree rebalancing.
  • Connection to the Longest Increasing Subsequence (LIS): The authors uncover a surprising connection between hierarchical interval-tree depth under smoothed adversaries and the classic LIS problem, solving the expected length of an LIS under a smoothed adversary as a technical byproduct.

Key Results

  • Tree Depth Bounds: The authors prove a tight $O(\sqrt{\sigma T})$ expected depth under a $\sigma$-smoothed adaptive adversary, which drops to $O(\log T)$ under a random-order oblivious adversary.
  • Time Complexity Reduction: Per-round operation time (including sampling) is reduced from $O(t^d)$ to $O(d \cdot t^{\frac{d+1}{2}})$ for adaptive smoothed adversaries, and a highly efficient $O(d \log^{d+1} t)$ for random-order adversaries.
  • Efficient Online Learning: The framework provides the first computationally efficient implementations of the Weighted Majority algorithm (full-information) and EXP3 (bandit feedback) for piecewise-structured rewards, achieving provable sublinear regret (e.g., $O(T^{2/3})$ for the bandit setting).

Limitations and Future Work

  • Reward Function Scope: The exact vector-scaling mechanism relies heavily on the additivity of polynomial integrals. When moving to exponential weights ($\zeta(x) = \exp(\eta x)$), this additivity breaks down. Consequently, the authors had to restrict their online learning applications to piecewise-constant (for full-information) and piecewise-linear (for bandit feedback) settings. Extending efficient exact sampling to higher-degree polynomials under exponential weighting remains an open challenge.
  • Hyperplane Orientations: The technical operations in this work focus primarily on axis-parallel hyperplanes. Generalizing the lazy insertion mechanism to arbitrary hyperplane directions without losing efficiency is a clear direction for future research.

Summary updated

BibTeX
@misc{mirfakhar2026efficient,
  author = {Amirmahdi Mirfakhar and Maria-Florina Balcan and Hedyeh Beyhaghi},
  title = {{Efficient Online Proportional Sampling with Applications to Smoothed Online Learning}},
  year = {2026},
  eprint = {2607.10963},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.10963},
}
Figure