Abstract
In the classic problem of prediction with expert advice, achieving minimax optimal regret when the time horizon is unknown—the "anytime" setting—has remained a significant challenge. This paper provides a definitive solution for the case of two experts. By leveraging a continuous-time framework and the properties of Reflected Brownian Motion, the authors derive an algorithm that achieves the exact minimax anytime regret of $\frac{\gamma}{2}\sqrt{t}$, where $\gamma \approx 1.30693$ is a fundamental constant related to confluent hypergeometric functions. This result settles an open problem and reveals a deep connection between discrete online learning and continuous stochastic processes.
Introduction
The "prediction with expert advice" framework is a cornerstone of online learning. In this setup, an algorithm must aggregate the advice of $n$ experts at each time step $t$. After the algorithm assigns weights to the experts, the costs (or losses) for each expert are revealed, and the algorithm incurs a cost based on its weighting. The objective is to minimize regret: the difference between the algorithm's cumulative cost and the cost of the single best-performing expert in hindsight.
While the optimal strategy for a fixed, known time horizon $T$ is well-established, many real-world applications—such as high-frequency trading or continuous system monitoring—operate in an anytime setting, where the stopping time is unknown. Historically, practitioners have relied on the "doubling trick" or dynamic step sizes for the Multiplicative Weights Update (MWU) algorithm to adapt to unknown horizons. However, these methods are not minimax optimal. This paper addresses this gap by deriving the first minimax optimal anytime algorithm for two experts.
Methodology: From Discrete to Continuous
The authors solve the discrete-time regret problem by first analyzing its continuous-time analogue. This approach involves several sophisticated mathematical steps:
- Reflected Brownian Motion: The authors model the gap between the costs of the two experts as a stochastic process. In the continuous limit, this gap behaves like Reflected Brownian Motion.
-
The Backward Heat Equation: To find the optimal potential function for the algorithm, the authors look for a solution to the partial differential equation (PDE): $$\partial_t u + \frac{1}{2} \partial_{xx} u = 0$$ This equation, known as the backward heat equation, must satisfy specific boundary conditions to ensure the algorithm can handle the worst-case adversary at any time $t$.
-
Confluent Hypergeometric Functions: The solution to this PDE involves the function $M(-1/2, 1/2, x^2/2)$. The fundamental constant $\gamma \approx 1.30693$ is identified as the smallest positive root of this function. This constant represents the "anytime penalty" inherent in the problem.
- Discrete Itô Formula: To bridge the gap back to the original problem, the authors apply a discrete version of Itô's Formula. This allows them to prove that the potential function derived in continuous time provides a rigorous bound on regret in the discrete-time setting.
Key Insights and Results
The Anytime Penalty
A central finding of the paper is that the adversary is significantly more powerful when the time horizon is unknown. The minimax regret for a fixed time $T$ is approximately $0.399\sqrt{T}$. In contrast, the optimal anytime regret is $\frac{\gamma}{2}\sqrt{t} \approx 0.653\sqrt{t}$. This gap quantifies the cost of not knowing the duration of the game.
Algorithm 1
The authors present a concrete algorithm that achieves this optimal bound. Unlike standard MWU, which uses an exponential weighting scheme, this algorithm calculates the probability of choosing an expert based on the current time and the current cumulative loss gap, derived directly from the derivative of the hypergeometric potential function. This "potential-based" design allows the algorithm to anticipate future worst-case scenarios more effectively than traditional methods.
Comparison to Existing Bounds
The derived bound of $\approx 0.653\sqrt{t}$ is a substantial improvement over the standard anytime MWU bound, which is $\sqrt{\ln 2} \approx 0.833\sqrt{t}$. By settling this constant, the authors provide the tightest possible performance guarantee for the two-expert case, resolving questions previously raised in the literature by researchers such as Luo and Schapire.
Discussion and Future Work
While this paper provides a complete solution for $n=2$ experts, several avenues for future research remain:
- Scaling to $n > 2$: The authors conjecture that for $n$ experts, the optimal regret will involve roots of other hypergeometric functions. However, the geometry of the problem becomes significantly more complex as the number of experts increases.
- Adversary Models: This work assumes an "oblivious" adversary. In the anytime setting, a "non-oblivious" (adaptive) adversary can exploit the Law of the Iterated Logarithm to force a regret of $\Omega(\sqrt{t \log \log t})$, suggesting that the minimax value depends heavily on the adversary's capabilities.
- Generalization of the Continuous-to-Discrete Mapping: The authors describe the clean transition from the continuous PDE to the discrete regret bound as a "stroke of luck." Determining the conditions under which this mapping holds for more complex online learning problems remains an open theoretical question.
In conclusion, this work provides a rigorous mathematical foundation for anytime learning, demonstrating that the optimal strategy is deeply rooted in the connection between random walks and the heat equation.
Summary updated