Pareto-Optimal Learning-Augmented Algorithms for Online Conversion Problems

Bo Sun, Russell Lee, Mohammad H. Hajiesmaili, Adam Wierman, Danny H. K. Tsang

Introduction

Online conversion problems—such as trading USD for Bitcoin over a given timeframe to maximize final wealth—present a classic dilemma: Should a trader sell now at a decent rate, or wait for a potentially higher rate later?

Traditional "competitive analysis" designs algorithms for the worst-case scenario. While these algorithms provide a safe baseline, they often leave money on the table by ignoring helpful predictive information. Conversely, modern machine learning (ML) can forecast future price peaks, but these predictions are inherently "untrusted." If an algorithm blindly follows a flawed prediction, the financial results can be catastrophic.

This paper introduces a unified framework for learning-augmented online conversion algorithms. These systems trade assets by combining real-time price data with machine-learned predictions. The core challenge addressed is designing algorithms that:

  1. Exploit accurate predictions to beat traditional benchmarks (Consistency).
  2. Maintain a worst-case performance guarantee even if the ML model is completely wrong (Robustness).
  3. Optimize the trade-off between these two competing goals.

Methodology: Online Threshold-Based Algorithms

To bridge the gap between risk and reward, the authors propose a unified class of Online Threshold-based Algorithms (OTA). This framework unifies both integral conversion (trading an entire asset at once, known as 1-max-search) and fractional conversion (trading in small increments, known as one-way trading).

The OTA utilizes a "threshold function" $\phi$ to dictate trading decisions. By incorporating a prediction $P$ (the predicted maximum price) directly into this threshold function, the algorithm dynamically adjusts its sensitivity to market movements.

Piece-wise threshold function for one-way trading

For one-way trading, the optimal threshold isn't a simple linear rule. As shown above, it is a sophisticated, piece-wise exponential function that changes behavior based on whether the current price is near the predicted peak or the historical bounds. The authors use a generalized competitive ratio—a vector of ratios over different subsets of possible price outcomes—to stitch together these different threshold pieces, allowing the algorithm to handle various prediction error regimes.

The Pareto Frontier: Consistency vs. Robustness

A central insight of this work is that there is no "free lunch." To achieve better performance when predictions are accurate, an algorithm must accept a slightly worse worst-case guarantee.

Pareto frontier illustrating the trade-off between consistency and robustness

The authors mathematically define exactly where this boundary lies for conversion problems. By introducing a parameter $\lambda$ that represents the "distrust" in the prediction, a user can tune the algorithm to move along this Pareto frontier. A lower $\lambda$ leans aggressive (trusting the ML), while a higher $\lambda$ leans conservative (trusting the worst-case math). Using a specific family of price sequences (called "p-instances"), the authors prove that no deterministic algorithm can achieve a better consistency for a given level of robustness than their proposed OTA.

Experimental Results

The authors evaluated their approach using five years of historical Bitcoin (BTC) prices (2015–2020) from the Gemini exchange, sampled every 5 minutes. To rigorously test robustness, they also introduced synthetic "crash" scenarios where the price drops to the historical minimum at the very last step, punishing algorithms that wait too long for a predicted peak.

Key findings include:

  • Theoretical Optimality: The paper provides the first proof of Pareto-optimality for learning-augmented online conversion problems.
  • Superior Performance: In numerical experiments, the learning-augmented OTA significantly outperformed standard worst-case algorithms.
  • Crash Stability: Even when predictions were raw and highly inaccurate, the OTA remained stable. While a "blind" follower of predictions would see its performance tank during a market crash, the OTA's robustness guarantee kept its losses strictly bounded.
  • Regret Minimization: When using an online learning layer to dynamically pick the best robustness parameter $\lambda$ over time, the algorithm's "regret" (the gap between its performance and the best possible static strategy) stabilized quickly.

Limitations and Future Work

While this paper establishes a strong theoretical foundation, it primarily focuses on the two extremes: perfect predictions versus worst-case errors. A more fine-grained analysis for intermediate error levels remains a promising next step. Additionally, the current model assumes infinite market capacity at the current rate. Integrating real-world constraints, such as liquidity limits or inventory caps, into the Pareto-optimal proof will be critical for practical deployment. Finally, while the authors demonstrate how to select the robustness parameter $\lambda$ empirically using online learning, deriving strict theoretical bounds for that specific selection process is left for future research.

Summary updated

BibTeX
@inproceedings{sun2021pareto,
  author = {Bo Sun and Russell Lee and Mohammad H. Hajiesmaili and Adam Wierman and Danny H. K. Tsang},
  title = {{Pareto-Optimal Learning-Augmented Algorithms for Online Conversion Problems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=drqlIlDU6G},
}
Figure