Abstract
Smoothed Online Convex Optimization (SOCO) is a powerful framework for sequential decision-making, yet its practical application is often hindered by feedback delays and the unreliability of machine learning (ML) predictions. We present Robustness-Constrained Learning (RCL), the first framework to provide provable robustness guarantees for SOCO systems facing these challenges. RCL "robustifies" ML predictions by projecting them onto a set of actions constrained by a trusted expert's performance. Our approach incorporates novel "reservation costs" to handle multi-step switching costs and feedback delays. Experimental results on real-world EV charging data show that RCL achieves high average-case efficiency while remaining resilient to adversarial environments, outperforming both pure ML and traditional robust baselines.
Introduction
Many real-world online decision-making tasks, such as battery management for electric vehicle (EV) charging or drone trajectory tracking, are modeled as Smoothed Online Convex Optimization (SOCO). In SOCO, an agent seeks to minimize a combination of "hitting costs" (immediate environment fit) and "switching costs" (penalties for action changes). However, two primary hurdles complicate these problems: feedback delay, where the true cost of an action is revealed only after several steps, and complex switching costs with multi-step memory effects.
While ML models can predict future costs to optimize performance, they are inherently untrusted and can fail under distribution shifts. Conversely, traditional "expert" algorithms are robust but often overly conservative. RCL bridges this gap by providing a "best of both worlds" approach that leverages ML advice within a safety net defined by a trusted expert.
Methods
The Robustness-Constrained Learning (RCL) framework treats an ML model as a source of advice and a traditional online algorithm (e.g., iROBD) as a trusted expert. The core mechanism is a constrained projection: at each step, the ML prediction is projected into a "robustified" action set. This set is defined to ensure the total cost does not exceed $(1+\lambda)$ times the expert's cost, where $\lambda$ is a user-defined trust parameter.
To address delays and multi-step memory, RCL utilizes "reservation costs"—mathematical hedges that account for potential future cost increases resulting from current deviations from the expert's path. Furthermore, the framework employs robustification-aware training. By using implicit differentiation via KKT conditions, the ML model is trained "through" the projection step, learning to produce predictions that naturally satisfy the robustness constraints.
Experimental Evaluation
RCL was evaluated using a real-world case study on battery management for EV charging stations, utilizing data from ElaadNL. The dataset includes transaction records from January to June 2019. The system was tested on its ability to minimize costs over 24-hour cycles.
Key Findings
- Provable Robustness: RCL is mathematically guaranteed to be $(1+\lambda)$-competitive against its expert, regardless of ML prediction quality. This breaks previous "impossibility" results by identifying sufficient conditions (strictly positive switching costs) for finite robustness.
- Performance Trade-offs: The parameter $\lambda$ allows for a flexible trade-off between risk and reward. Smaller $\lambda$ values prioritize robustness, while larger values allow for more aggressive pursuit of ML-driven gains.
- Resilience to Noise: Under out-of-distribution noise, RCL maintained its competitive ratio, whereas pure ML models saw their performance degrade significantly (e.g., competitive ratio increasing from ~3.2 to over 11.6).
- Training Efficacy: Models trained with the robustification step in the loop consistently outperformed those trained obliviously, demonstrating the value of integrating system constraints into the learning process.
Conclusion
RCL provides a robust framework for SOCO that effectively handles feedback delays and complex costs. By identifying conditions under which the "impossibility" of simultaneous consistency and robustness can be overcome, this work opens new avenues for safe ML integration in online systems. Future work will explore relaxing convexity assumptions and incorporating multi-step lookahead predictions to further enhance performance.
Summary updated