Online Search with Predictions: Pareto-optimal Algorithm and its Applications in Energy Markets

Russell Lee, Bo Sun, Mohammad Hajiesmaili, John C. S. Lui

TL;DR

This paper introduces a learning-augmented framework for the classic online $k$-search problem, specifically tailored for volatile energy markets. By integrating machine learning predictions, the authors develop algorithms that achieve a Pareto-optimal trade-off between "consistency" (performance with perfect predictions) and "robustness" (guaranteed performance when predictions fail), outperforming traditional benchmarks in real-world energy trading and storage scenarios.

What Problem Does This Paper Address?

In volatile markets, like the electricity grid, participants must decide when to buy or sell energy without knowing future prices. This is the online $k$-search problem: how do you sell $k$ units for the maximum revenue (or buy for the minimum cost) over a fixed time horizon?

Traditionally, researchers use competitive analysis to design algorithms that minimize the "competitive ratio"—the gap between the algorithm's performance and the best possible outcome in hindsight. While these algorithms provide safety nets for the worst-case scenario, they are often overly pessimistic and ignore helpful (though imperfect) forecasts. Conversely, purely ML-based strategies can perform brilliantly when forecasts are right but can lead to catastrophic losses when they are wrong. This paper seeks the "best of both worlds": an algorithm that leverages predictions for better average performance while maintaining a rigorous safety floor.

Methods

The authors build upon Online Threshold-based Algorithms (OTA). In a standard OTA, you set $k$ price thresholds; you trade a unit whenever the current price crosses a threshold.

The core innovation is a learning-augmented OTA that redesigns these thresholds based on a prediction $P$ of the maximum (or minimum) price. They define two key metrics:

  1. Consistency ($\eta$): The competitive ratio when the prediction is perfectly accurate.
  2. Robustness ($\gamma$): The competitive ratio in the absolute worst-case scenario, regardless of prediction error.

The researchers mathematically derive the Pareto-optimal boundary—a theoretical limit where you cannot improve consistency without sacrificing robustness. They then design a piecewise threshold function that "prioritizes" trading around the predicted price $P$ to achieve high consistency, while carefully spacing out other thresholds to ensure robustness.

Furthermore, they extend this to Online Search with Inventory Dynamics (OSID). This models energy storage (batteries), where you can buy energy when it's cheap, store it, and use it later to meet demand. They show that this complex temporal problem can be "spatially decoupled" into multiple virtual online search problems running in parallel.

Datasets

The authors evaluated their algorithms using a mix of real-world traces:

  • Electricity Prices: Day-ahead prices from several US Independent System Operators (ISOs): CAISO, NYISO, ERCOT, and ISO-NE.
  • Energy Demand: Server cluster demand traces from Akamai data centers.
  • Renewable Supply: Wind and solar output data from the National Renewable Energy Laboratory (NREL).
  • Financial Data: A 5-year history of Bitcoin (BTC) prices from the Gemini Exchange to test the algorithm in a general financial context.

Key Insights and Ideas

  • The Pareto Frontier is the Gold Standard: Most prior work focused on just finding any bounded consistency and robustness. This paper proves exactly what the best possible trade-off looks like for $k$-search, showing that as $k$ (the number of units) increases, the flexibility to hedge risks improves.
Theoretical Pareto-optimal boundaries for k-max and k-min search.
  • Unbalanced Thresholds are Better: While traditional robust algorithms use "balanced" thresholds to hedge against all price intervals equally, learning-augmented algorithms use "unbalanced" thresholds that cluster around the predicted price.
  • Spatial Decoupling of Inventory: One of the most elegant insights is that managing a battery to meet varying demand can be treated as starting a new "virtual" search problem for every unit of demand that arises. This allows the simple $k$-search logic to solve complex inventory management problems.

Key Results

The proposed algorithms consistently outperformed both purely robust "worst-case" algorithms and simple "baseline" learning-augmented strategies.

  • Theoretical Superiority: As shown in Figure 2, the authors' "optimal" (opt) curves sit significantly below the "baseline" (base) curves, meaning they achieve better consistency for the same level of robustness.
Comparison of the proposed Pareto-optimal trade-offs vs. a standard baseline approach.
  • Empirical Gains: In energy market simulations (CAISO), the algorithm improved performance by up to 8.4% over the year-average compared to non-predictive benchmarks.
  • Robustness in Action: Even when predictions were intentionally made "almost incorrect" (errors up to half the price range), the algorithm still outperformed the standard worst-case optimized algorithm.

Limitations and Future Work

  • Inventory Costs: While the paper introduces an "inventory-cost-aware" version of the algorithm to handle battery degradation and conversion losses, the theoretical analysis (proving Pareto-optimality) for this specific cost-aware setting is left for future work.
  • Prediction Quality: The algorithm assumes a single point prediction $P$. Future iterations could potentially incorporate probabilistic forecasts or confidence intervals directly into the threshold design.
  • Multi-way Trading: The current model focuses on one-way trading (buying to meet demand or selling generated energy). Extending this to full "arbitrage" (buying low to sell high repeatedly) with predictions is a natural next step.

Summary updated

BibTeX
@inproceedings{lee2024online,
  author = {Russell Lee and Bo Sun and Mohammad Hajiesmaili and John C. S. Lui},
  title = {{Online Search with Predictions: Pareto-optimal Algorithm and its Applications in Energy Markets}},
  booktitle = {e-Energy},
  year = {2024},
  doi = {10.1145/3632775.3639590},
}
Figure