Online Bidding Algorithms with Strict Return on Spend (ROS) Constraint

Rahul Vaze, Abhishek Sinha · OpenReview

Abstract

Auto-bidding problem under a strict return-on-spend constraint (ROSC) is considered, where an algorithm has to make decisions about how much to bid for an ad slot depending on the revealed value, and the hidden allocation and payment function that describes the probability of winning the ad-slot depending on its bid. The objective of an algorithm is to maximize the expected utility (product of ad value and probability of winning the ad slot) summed across all time slots subject to the total expected payment being less than the total expected utility, called the ROSC. A (surprising) impossibility result is derived that shows that no online algorithm can achieve a sub-linear regret even when the value, allocation and payment function are drawn i.i.d. from an unknown distribution. The problem is non-trivial even when the revealed value remains constant across time slots, and an algorithm with regret guarantee that is optimal up to logarithmic factor is derived.

Introduction

In the world of online advertising, "auto-bidders" must maximize value while ensuring they don't spend more than they earn—a rule known as the Return on Spend (ROS) constraint. Most existing research treats this as a "soft" constraint, allowing algorithms to occasionally overspend as long as they balance the books by the end of the time horizon. This paper asks a tougher question: What happens if the constraint is strict? In many real-world financial settings, an advertiser might not have the budget flexibility to "borrow from the future."

The challenge is that the bidding environment (the probability of winning and the price to pay) is hidden and must be learned on the fly. If an algorithm bids too aggressively early on to learn the market, it risks violating the ROSC immediately. If it bids too conservatively, it loses out on valuable opportunities, leading to high "regret"—the difference in performance compared to an all-knowing offline optimal strategy.

Methods and Algorithmic Approaches

The authors model the problem as an online learning task over $T$ time slots. They analyze two main scenarios: repeated identical auctions (constant value) and a general stochastic setting. To tackle the strict constraint, they introduce two key algorithmic approaches:

  • Algorithm $A_c$ (Conservative Bidding): Designed for the constant-value case, this algorithm uses a "Margin" process. It tracks the "slack" (accumulated surplus value) and uses a scaled version of this slack to cautiously increase bids. This prevents the algorithm from ever dipping into a deficit.
  • Learn-Alg: A two-phase strategy for the general case. In the first half of the time horizon ($T/2$), the algorithm focuses purely on learning the market distribution by bidding the revealed value of the ad. In the second half, it uses the learned parameters to solve a fractional knapsack-style linear program to make optimal bidding decisions.
Bid profiles for algorithms $A_b$ and $A_c$, illustrating the conservative ramp-up of $A_c$ compared to a baseline.

Key Insights: The Impossibility Result

The most striking finding is that under a strict ROSC, no online algorithm can achieve sub-linear regret ($o(T)$) if the ad values vary. In most online learning problems, i.i.d. (independent and identically distributed) inputs allow algorithms to eventually "solve" the environment. Here, the strict constraint acts as a barrier that prevents sufficient exploration.

The authors show that even in the simplest case (constant values), the sum of regret and constraint violation is at least $\Omega(\sqrt{T})$. If you force the violation to be zero, the regret must carry the full burden.

Results and Performance

  • Lower Bound: For any algorithm strictly satisfying ROSC, the regret is $\Omega(T)$ in the general case and $\Omega(\sqrt{T})$ in the constant-value case.
  • Optimal Regret for Constant Values: The proposed algorithm $A_c$ achieves a regret of $O(\sqrt{T} \log T)$ for constant values, which is optimal up to a logarithmic factor.
  • Competitive Guarantee: Since sub-linear regret is impossible for the general case, the authors pivot to the "competitive ratio." The Learn-Alg achieves a competitive ratio of $1/2 - \epsilon$, where $\epsilon$ vanishes as $T$ grows. This shows that while you can't be perfect, you can reliably be at least half as good as the best possible offline strategy.

Limitations and Future Work

The primary limitation is that the $O(\sqrt{T} \log T)$ regret bound for the constant-value case currently relies on "threshold-type" allocation and payment functions. Future research directions include:

  1. Generalizing the regret guarantees for more complex, non-threshold auction structures.
  2. Investigating if the 1/2 competitive ratio can be improved by using more sophisticated "anytime" learning techniques.
  3. Exploring the "middle ground" where very small, controlled violations of the ROSC are permitted to see how quickly the regret drops from linear to sub-linear.

Summary updated

Abstract

Auto-bidding problem under a strict return-on-spend constraint (ROSC) is considered, where an algorithm has to make decisions about how much to bid for an ad slot depending on the revealed value, and the hidden allocation and payment function that describes the probability of winning the ad-slot depending on its bid. The objective of an algorithm is to maximize the expected utility (product of ad value and probability of winning the ad slot) summed across all time slots subject to the total expected payment being less than the total expected utility, called the ROSC. A (surprising) impossibility result is derived that shows that no online algorithm can achieve a sub-linear regret even when the value, allocation and payment function are drawn i.i.d. from an unknown distribution. The problem is non-trivial even when the revealed value remains constant across time slots, and an algorithm with regret guarantee that is optimal up to logarithmic factor is derived.
BibTeX
@inproceedings{vaze2026online,
  author = {Rahul Vaze and Abhishek Sinha},
  title = {{Online Bidding Algorithms with Strict Return on Spend (ROS) Constraint}},
  booktitle = {The Web Conference},
  year = {2026},
  doi = {10.1145/3774904.3792874},
}
Figure