Fairness-Regularized Online Optimization with Switching Costs

Pengfei Li, Yuelin Han, Adam Wierman, Shaolei Ren

Introduction

In many real-world systems—such as power grids, data centers, and AI resource allocation—decision-makers face a complex "triple threat" of optimization goals. They must simultaneously minimize hitting costs (the immediate expense of an action), manage switching costs (the penalty for changing actions too abruptly, ensuring system "smoothness"), and guarantee long-term fairness (ensuring equitable cumulative impacts across different groups or regions over time).

The fundamental challenge lies in the temporal nature of these metrics. While hitting and switching costs can be calculated step-by-step, fairness is typically a "horizon-wide" metric that can only be accurately judged at the end of an episode. Furthermore, switching costs create a memory effect where current decisions are inextricably linked to past actions, breaking the standard mathematical assumptions relied upon by prior "fair" online algorithms. This paper introduces FairOBD (Fairness-regularized Online Balanced Descent), the first algorithm designed to simultaneously tackle these three conflicting objectives.

The Theoretical Bottleneck

Before designing a solution, the authors establish a critical theoretical baseline: an impossibility proof. They rigorously demonstrate that without constraints, achieving sublinear regret or a finite competitive ratio for long-term fairness is impossible for any online algorithm facing an unconstrained adversary. This settles a long-standing conjecture in the field, proving that perfect long-term fairness cannot be guaranteed against infinitely erratic offline opponents. Consequently, the authors introduce the $(R, \delta)$-benchmark, a more realistic standard that compares the online algorithm to an offline optimal constrained to exhibit somewhat stable behavior over time.

Methodology: FairOBD

To navigate the impossibility result and optimize across all three dimensions, the authors propose FairOBD. The algorithm's architecture relies on two primary innovations:

  1. Decomposing Fairness via Auxiliary Variables: Because an online algorithm cannot see the future to determine end-of-episode fairness, FairOBD introduces an auxiliary variable ($z_t$). This acts as a dynamic "fairness budget" updated in every round. By converting a global fairness requirement into a sequence of local, per-round costs, the algorithm can make equitable decisions in real-time.
  2. Dual Mirror Descent: FairOBD employs mirror descent to update a Lagrangian multiplier ($\kappa_t$). This multiplier functions as a dynamic weight, dictating how much the algorithm should prioritize fairness versus immediate cost savings at any given moment.

To prove the efficacy of FairOBD, the authors developed a novel proof technique utilizing an "intermediate benchmark" to decouple the time-linked switching costs, ultimately proving that FairOBD is asymptotically optimal.

Experimental Evaluation

The researchers evaluated FairOBD using a trace-driven simulation focused on socially responsible AI inference provisioning. The evaluation leveraged three key data sources:

  • Azure Public Dataset: A one-week trace of Large Language Model (LLM) inference requests from May 2024.
  • WattTime: Real-time health-damage rates caused by pollution from electricity generation across different US regions.
  • Public Electricity Data: State-level industrial electricity prices and Power Usage Effectiveness (PUE) values for seven data center locations (AZ, IA, IL, TX, VA, WA, and WY).

Key Results

The study demonstrates significant advancements in both theory and practice:

  • Theoretical Optimality: FairOBD achieves a competitive ratio that matches the best-known results for smoothed online optimization without fairness. This proves that long-term fairness can be integrated without sacrificing the efficiency of the underlying optimization.
  • Empirical Performance: In the data center simulations, FairOBD achieved the lowest total cost among all tested online baselines.
  • Superior Fairness: Compared to standard Online Balanced Descent (which ignores fairness) and Dual Mirror Descent (which ignores switching costs), FairOBD significantly reduced fairness costs while maintaining low switching overhead. It successfully balanced the "triple threat" where baseline algorithms failed in at least one dimension.

Limitations and Future Work

The authors acknowledge several avenues for future research. Currently, the mathematical proofs rely on specific cost function shapes—namely, strongly convex hitting costs and squared $L_2$ norm switching costs. Future work could explore more generalized cost functions. Additionally, the current model assumes zero knowledge of the future; incorporating "untrusted" machine learning predictions about upcoming workloads could further optimize costs. Finally, while the paper provides a robust mathematical framework for fairness, the authors emphasize that the practical definition of "fairness" remains application-specific and requires careful ethical consideration by system deployers.

Summary updated

BibTeX
@inproceedings{li2025fairness,
  author = {Pengfei Li and Yuelin Han and Adam Wierman and Shaolei Ren},
  title = {{Fairness-Regularized Online Optimization with Switching Costs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=wsmP79iuyT},
}
Figure