Manuscript Offprint
arXiv:2610.29310GSP Autobidding Equilibria with Few Advertisers or Slots
Abstract
In sponsored-shopping auctions, one advertiser may win several positions, and a product that is never displayed may determine the prices of several winners. Under generalized second-price (GSP) pricing without self-pricing, these interactions couple allocation and payment through a single global ranking. We prove that exact autobidding equilibria under budget and return-on-investment (ROI) constraints can be computed in polynomial time whenever either the number n of advertisers or the number K of display slots is fixed. Our algorithms rely on two structural reductions. With few advertisers, the payment polytopes of tied bid layers combine by a Minkowski sum, giving a fixed-dimensional representation of exponentially many rankings. With few slots, budget equilibria admit threshold recovery and an exact submodular description of attainable payments at the display boundary. For ROI, we prove that every group-consecutive equilibrium has a representative with at most nonunit multipliers, preserving the item and price in every displayed slot. In each case, the reduction leads to polynomially many systems of polynomial equations and inequalities in bounded dimension. The algorithms compute exact multipliers and explicit distributions over valid group-consecutive rankings, with support at most ; for ROI with few slots, this improves to .
Keywords: Autobidding, generalized second-price auctions, budget constraints, return on investment, equilibrium computation.
1 Introduction
A product need not be displayed to determine the price of a sponsored position. In a shopping auction, the same advertiser may submit many products and win several positions, while its own products are excluded from setting one another's prices. Under generalized second-price (GSP) pricing without self-pricing, a displayed product pays the highest lower-ranked bid from a different advertiser. That bid may lie far beyond the last display slot. A single undisplayed product can therefore set the prices of several displayed products, as Example 2.1 illustrates. This dependence on the entire ranking is the central obstacle to computing an equilibrium.
Sponsored shopping extends the classical position-auction model of sponsored search [15, 27] to advertisers with entire product catalogs [14]. It connects the ranking problems of web marketplaces [19, 28, 30] with the economic interaction among automated bidders. In the standard multiplier model, an advertiser delegates bidding to an agent that scales all product values by one multiplier, subject to a budget or a return-on-investment (ROI) constraint [1, 2, 4]. Computing the resulting equilibrium requires both a multiplier profile and a distribution over bid-consistent rankings.
Beijing Institute of Technology, huangyiyang@bit.edu.cn
Beijing Institute of Technology, zhengyang@bit.edu.cn
Beijing Institute of Technology, yanyonglei@bit.edu.cn
Renmin University of China, wang.zihe@ruc.edu.cn
Dütting et al. [14] established ROI equilibrium existence and welfare guarantees for sponsored-shopping auctions. Hansen, Li, and Nie [20] subsequently proved existence for budget equilibria (ABE-B) and ROI equilibria (ABE-R), placed exact computation in FIXP, and showed that approximate computation is PPAD-hard in general. These results make the search for tractable structure particularly natural: can a small number of advertisers or display slots make exact equilibrium computation possible in polynomial time?
Exact algorithms for second-price pacing equilibria with few buyers [29] or few goods [21] provide a useful starting point. They partition a low-dimensional parameter space into comparison cells and solve linear feasibility problems within each cell. A sponsored-shopping cell, however, may contain exponentially many tied group orders with different payments. Fixing the number of slots creates another difficulty: arbitrarily many advertisers may tie at the display boundary, so neither the number of ranking choices nor the number of payment coordinates becomes bounded. We overcome these obstacles by identifying the outcome geometry that survives each structural restriction.
Principle I: Layerwise Convexification. With n advertisers, each tied bid layer contains at most n value groups. Although the orders of different layers give exponentially many complete rankings, each layer contributes a payment matrix determined by its own order. The attainable total matrices form a Minkowski sum of local polytopes. In fixed dimension, we can enumerate its vertices and associate a valid ranking with each one. For budgets, we then compress the expected payment vector; for ROI, we include values in the local representation and compress expected surplus. This converts the large family of rankings into a polynomial family of representative outcomes.
Principle II: The Display Boundary. With K display slots, the displayed–undisplayed boundary determines which parts of a large market must remain in the search. For budgets, the Kth highest bid recovers every multiplier except those of at most K - 1 above-threshold advertisers. We characterize the attainable payments of an arbitrarily large threshold tie as a submodular base polytope, then eliminate its payment coordinates by intersecting this polytope with the remaining budget intervals. For ROI, we prove a different structural result: every group-consecutive equilibrium can be transformed into one with at most nonunit multipliers, preserving the item and price in every displayed slot. Two below-threshold price witnesses, or one universal threshold witness, suffice to preserve the relevant tail information. This sparsity reduces the ROI multiplier search to bounded dimension.
The two reductions yield the following theorem. Figure 1 summarizes how the budget and ROI constructions use them.
Theorem 1.1 (Exact Autobidding Equilibria in Structurally Small GSP Markets). For each fixed number n of advertisers or fixed number K of display slots, an exact ABE-B and an exact ABE-R can be computed in polynomial time in the explicit input size. Each algorithm returns exact algebraic multipliers and an explicit probability distribution over valid group-consecutive rankings. The same conclusion holds when the total number M of items is fixed, because .
Table 1 summarizes the four results. Each reduction yields polynomially many candidate systems with boundedly many variables and degree at most two. Standard exact polynomial feasibility then completes the computation.
The support bounds follow from convex-hull compression after the structural reductions have produced a polynomial representation of the attainable outcomes. In the fixed-slot ROI case, multiplier sparsity also reduces the surplus dimension, yielding at most rankings even when the number of advertisers grows.
Table 1: Polynomial-Time Exact Equilibrium Computation. Support bounds count complete group-consecutive rankings in the equilibrium distribution.
| Fixed | Model | Structural Reduction | Time | Support |
|---|---|---|---|---|
| Advertisers | ABE-B | Layerwise payment-matrix convexification | ||
| Advertisers | ABE-R | Augmented payment-value convexification | ||
| Slots | ABE-B | Threshold recovery and a submodular capacity polytope | ||
| Slots | ABE-R | At most nonunit multipliers; surplus compression |
Exact Pacing Algorithms with Few Buyers or Goods. Multiplicative pacing equilibria have been studied in first- and second-price auction markets [8, 9], with general computational hardness for second-price pacing [7]. Yan, Wang, and Liu [29] give an exact algorithm with a fixed number of buyers by partitioning multiplier space into comparison cells and solving linear feasibility problems. Huang et al. [21] handle a fixed number of goods by recovering multipliers from highest-bid coordinates, again obtaining linear feasibility within each cell. These works supply two useful starting ideas: comparison cells and recovery from a small set of bid levels. Our fixed-advertiser result additionally represents the coupled outcomes of all tied layers by a payment-matrix Minkowski sum. Our fixed-slot budget result replaces independent per-good allocations by the capacity polytope of a shared threshold layer. The ROI result uses a separate sparsity theorem to obtain a bounded set of multiplier coordinates. These are the structural steps that make the comparison-cell approach work for a global GSP ranking.
Web Advertising and Marketplace Ranking. The broader literature studies budget allocation and bid optimization in sponsored search [6, 17, 18, 25], budget management and pacing dynamics [3, 24], and auction efficiency with autobidders [11–13]. Balseiro et al. [4] analyze the interaction of budget and return-on-spend pacing, while Li and Tang [22] study the equilibrium properties and computational difficulties of ROI-constrained second-price markets. Marketplace work addresses relevance-constrained revenue optimization, whole-page allocation, product search, and sponsored-listing re-ranking [19, 23, 28, 30, 31]; audits also document how sponsored results affect search quality and seller visibility [10]. Our results address the additional dependence on product ownership and global order in sponsored-shopping equilibrium computation.
2 Preliminaries
The budget and ROI models share the ranking and payment rules below.
2.1 Auction Model
Auction Model and Bids. There are advertisers and display slots. Write . Advertiser owns items. Item has positive rational value per click , with . Let be the item set and its size. Write for ownership, for advertiser 's highest value, and .
Slot has a rational click-through rate (CTR) , where and . Set for .
Advertiser uses one multiplier for all its items. The profile gives bids . In the budget model, it has a positive rational budget and chooses . In the ROI model, , with cap defined below.
Rankings and Payments. A complete ranking orders all items exactly once; is the item ranked kth. It is valid at if
The first K items occupy the corresponding display slots.
Fix a profile and a valid ranking . For , the price per click is
This is the highest lower-ranked bid from another advertiser. Undisplayed items remain eligible to set the price.
For , write and . Advertiser i's value and payment are
since for , undisplayed items yield no value or payment.
Example 2.1 (An Undisplayed Product Sets Two Prices). Let , , and all multipliers be one. Advertiser 1 owns products of values 10 and 8; advertisers 2 and 3 own one product each, of values 7 and 6. Writing each product as item:bid, the ranking is
Both displayed products pay 7 per click, giving : advertiser 1's second product is skipped and advertiser 2's undisplayed product sets both prices. If advertiser 2 lowers its bid to 5, advertiser 3 sets both prices at 6 and , with the displayed products unchanged.
Randomized Allocations. We resolve ties by randomizing over complete rankings. Let be a probability distribution, with the probability of ranking and . It is valid at if every positive-probability ranking is valid at . Randomization thus preserves bid order and reorders only tied items.
Advertiser i's expected value and payment are
Both equilibrium notions use these expected outcomes.
2.2 Autobidding Equilibria
We define budget and ROI autobidding equilibria, denoted ABE-B and ABE-R. Both consist of a multiplier profile and a distribution over complete rankings.
The budget model combines feasibility with maximal pacing: an advertiser scales down its bids only when its budget binds in expectation.
Definition 2.2 (Autobidding Equilibrium Under Budget Constraints). For a GSP auction , a pair with and a probability distribution over complete rankings is an exact ABE-B if:
(a) Bid-Consistent Allocation. Every ranking with positive probability under is valid at .
(b) Budget Feasibility. Every advertiser satisfies .
(c) Maximal Pacing. For every advertiser , implies .
This equilibrium notion follows [20]. Maximal pacing requires unscaled bids when expected payment is below budget. Budget feasibility applies to expected payments under .
The ROI model has no fixed budgets. Following [20], set the ROI target to one and fix the rational cap
Maximal pacing now requires the upper multiplier bound whenever expected value strictly exceeds expected payment.
Definition 2.3 (Autobidding Equilibrium Under ROI Constraints). For a GSP auction , a pair with and a probability distribution over complete rankings is an exact ABE-R if:
(a) Bid-Consistent Allocation. Every ranking with positive probability under is valid at .
(b) ROI Feasibility. Every advertiser satisfies .
(c) Maximal Pacing. For every advertiser , implies .
Let be advertiser 's expected surplus. ROI feasibility requires ; maximal pacing requires when .
Computational Conventions. All numerical inputs are rational. We use standard exact algorithms for hyperplane arrangements and fixed-dimensional polynomial feasibility [5, 16]. Running times are displayed as functions of M, suppressing factors polynomial in the size of the numerical input. Multiplicative constants may depend on the fixed parameter; constants hidden in the displayed exponents are universal.
3 Common Structural Foundations
Both structural reductions use positivity of multipliers and existence of group-consecutive equilibria.
3.1 Multiplier Properties
We begin with the budget model. Positivity excludes a degenerate boundary of multiplier space and, more importantly, prevents distinct values of one advertiser from collapsing into a common zero-bid layer.
Lemma 3.1 (Positive Multipliers in ABE-B). Every exact ABE-B ( ) satisfies for every advertiser .
Proof. In a valid ranking, every lower bid is at most the priced item's bid, so . If , advertiser pays zero in every supported ranking. Since , maximal pacing would require , a contradiction.
Hence, ABE-B multipliers lie in ; ABE-R multipliers are positive by definition.
3.2 Group-Consecutive Rankings
We restrict the search to group orders using an existence theorem for the two equilibrium models.
Group items if and only if they have the same owner and value. Let be the group set. Group has owner , common value , size , and common bid .
Fix an arbitrary internal item order in each group. A ranking is group-consecutive if it orders the groups and expands each group in its fixed internal order. We search only over group orders, without enumerating permutations within a group. The following result ensures that this restriction retains an exact equilibrium.
Corollary 3.2 (Hansen–Li–Nie [20]). Each model admits an exact equilibrium supported only on rankings in which same-advertiser, same-value items form contiguous blocks.
Our definition additionally fixes the internal item order of each group. The next lemma shows that any choice of these internal orders preserves the existence guarantee.
Lemma 3.3 (Existence of group-consecutive equilibria). Every budget instance admits an exact ABE-B, and every ROI instance with the cap defined above admits an exact ABE-R. In either case, the ranking distribution can be supported on group-consecutive rankings with any prescribed internal item orders.
Proof. Take an equilibrium from Corollary 3.2 and reorder each consecutive group according to its prescribed internal order. Since items within a group have the same owner and value, the owner, value, and bid at every rank remain unchanged. Thus, all prices and each advertiser's value and payment are preserved.
Combine the probabilities of identical transformed rankings. Under the same multiplier profile, the resulting distribution preserves all expected values and payments, so every equilibrium condition remains satisfied.
The lemma justifies searching only over group orders. Within each consecutive group, any internal permutation leaves all prices and advertiser outcomes unchanged. We can therefore fix internal orders arbitrarily and ignore them in the search while preserving the equilibrium conditions.
4 A Common Geometric Framework
Figure 1 shows the common structure of the four algorithms. A bounded parameter vector describes the unknown multipliers and, for fixed-slot budgets, a bid threshold. We partition its domain by affine bid comparisons and multiplier bounds. Each relatively open comparison cell fixes all strict orders, ties, and endpoint equalities. Within a cell, the structural reduction gives representative rankings or a polyhedral description of their attainable outcomes. Budget conditions depend on expected payments; ROI conditions depend on expected surplus.
Once this outcome set is represented, Carathéodory's theorem supplies a common support bound.
Lemma 4.1 (Outcome Compression [32]). Fix the parameters and let A be a finite set of valid rankings. If a required statistic lies in the convex hull of vectors , , then a distribution on at most rankings in A realizes the same statistic.
The substantive task is therefore to describe the attainable outcomes in polynomial size and bound . With few advertisers, we obtain representative rankings from vertices of a Minkowski sum. With few slots, threshold capacity or multiplier sparsity provides the dimension bound.

Figure 1: Structural Reductions for Exact Equilibrium Computation. Few advertisers admit a common layerwise representation for budgets and ROI. Few slots lead to distinct threshold and sparsity arguments. Each route yields polynomially many equilibrium systems in bounded dimension.
Solving Candidate Systems. We apply the exact sampling theorem of Basu, Pollack, and Roy [5]. A rational system of polynomial equations and inequalities, including strict inequalities, in variables and of degree at most two admits a feasibility test and, when feasible, an exact algebraic solution in operations. This is polynomial for fixed . In our systems, payments and surplus are expressions in the parameters and ranking probabilities, so the only nonlinear terms are products of a probability and an affine bid. The later analyses establish the required bounds on variables, constraints, and possible supports.
Recovering Weighted Rankings. An algebraic solution determines the multiplier profile. When the candidate system includes weights for representative group orders, the solution also determines these weights. For fixed-slot budgets with a large threshold tie, we recover a feasible payment vector from the algebraic solution and use Proposition 6.6 to express it as a convex combination of group orders; the combination coefficients serve as their probabilities. In either case, expanding the group orders gives complete rankings with precisely the expected payments or surplus specified by the equilibrium system. Combining identical rankings and omitting zero weights preserves the distribution. The constraints of the system then guarantee that the recovered multiplier profile and ranking distribution form an exact equilibrium of the corresponding model.
5 Layerwise Convexification with Few Advertisers
With fixed n, each tied bid layer contains constantly many groups, but the number of valid complete rankings can still be exponential. For example, with two advertisers and H layers containing one group from each, the independent tie orders give rankings. We represent all of them through local convex hulls and an additive payment formula.
5.1 Budget Constraints: Compressing Expected Payments
We begin with budgets, for which preserving the expected payment vector preserves all equilibrium conditions at a fixed multiplier profile.
Theorem 5.1 (Exact ABE-B Computation with Few Advertisers). For every fixed number of advertisers n, there exists a polynomial-time algorithm that computes an exact ABE-B with time complexity .
Algorithm 1 summarizes the construction in three phases: comparison-cell decomposition, layerwise convexification, and equilibrium construction.
Algorithm 1 Exact ABE-B with a Fixed Number of Advertisers
Require: An explicit rational budget instance with fixed n. Ensure: An exact ABE-B with support size at most . 1: if then 2: Set ; let select a value-sorted ranking. 3: return . 4: end if 5: Phase I: Comparison-Cell Decomposition. 6: Group items by owner and value; fix internal item orders. 7: Enumerate comparison cells, including ties and multiplier endpoints. 8: for all cells F do 9: Phase II: Layerwise Convexification. 10: Identify bid layers and the paced advertiser set . 11: Build local payment matrices and their Minkowski sum . 12: Enumerate the vertices of and associate a realizing ranking with each vertex. 13: Phase III: Equilibrium Construction. 14: for all nonempty vertex subsets J with do 15: Form Equation (1) for F and J. 16: Apply exact semialgebraic sampling. 17: if an algebraic solution is found then 18: Expand the associated group orders and assign the sampled weights. 19: Merge identical rankings and remove zero weights. 20: return the resulting exact equilibrium . 21: end if 22: end for 23: end for
For , payments are zero, so multiplier one and a value-sorted ranking give an exact ABE-B. Assume . Lemma 3.1 restricts the search to .
Cell Decomposition. The order of two cross-owner group bids changes only when . We therefore partition multiplier space by the hyperplanes for cross-owner groups , together with the endpoint hyperplanes .
These hyperplanes partition into nonempty relatively open cells of possibly different dimensions [16]. Let be the cell collection. Include equality faces to represent bid ties and multiplier endpoints. Each cell fixes all bid comparisons and endpoint states; multiplier values may vary.
Each cell also determines the paced advertiser set . We consider the equilibrium conditions within each cell.
Constructing Bid Layers. Fix an enumerated cell . Groups share a bid layer if and only if for every . Write the layers as in decreasing bid order.
Value groups depend only on ownership and value, whereas bid layers depend on the cell. Positive multipliers prevent distinct value groups of one advertiser from tying. Thus, each layer contains at most one group per advertiser and admits at most group orders.
Fix a group order in layer . Write if precedes , and define
Here, counts items in earlier layers, counts items before g, and is g's total click-through rate. We suppress the dependence of and on .
Layerwise Payment Representation. Let be layer 's group orders and fix . For a nonlast group , its pricing representative is the next group, which has another owner and the same bid. For the last group, use a fixed rule to choose an other-owner group in the highest lower layer containing one. If none exists, its price is zero. Eligible groups in that layer have equal bids, so their order does not affect the price.
Let be the matrix whose entry is the sum of over groups owned by whose pricing representative is owned by . Each contribution gives payment , so is the layer's payment vector. Its diagonal is zero because pricing excludes the displayed product's owner.
A layer’s payments depend only on its group order and . A complete ranking with layer orders therefore satisfies
Combining Layerwise Payments. A ranking chooses one order per layer. Enumerating all combinations can be exponential in H, even for fixed n. Instead, represent each layer's randomization by
and combine layers by the Minkowski sum
With this construction, only local matrices are needed. By the additive payment formula above, the expected payment matrix of a distribution over complete rankings is determined by its marginal randomization in each layer. The following lemma shows that represents every attainable expected payment vector.
Lemma 5.2 (Expected Payment-Matrix Representation). The polytope is the convex hull of total payment matrices of all group-consecutive rankings valid on :
For fixed , the attainable expected payment vectors are exactly .
Proof. For a distribution over valid group-consecutive rankings, let be order 's marginal probability in layer . The expected total matrix is
Each term in parentheses lies in , so the matrix lies in .
Conversely, write as , with each a convex combination of local matrices. Independently choose each layer's order with these coefficients as probabilities. Concatenating orders and expanding groups gives valid complete rankings with expected matrix . This proves equality. Multiplying by fixed gives the payment-vector claim.
Vertex Enumeration and Representative Rankings. We enumerate the vertices of and associate a realizing ranking with each one. Let be the distinct local matrices in layer , with one corresponding group order for each matrix.
Identify zero-diagonal matrices with vectors in , where . An objective assigns score .
For each layer and distinct , use the hyperplane .
Enumerate full-dimensional arrangement regions and choose a rational objective in each. Local score comparisons are strict and fixed on a region, so each layer has a unique maximizer . Set .
Concatenate associated orders to realize this matrix and remove duplicate total matrices.
Maximizing a linear objective over amounts to maximizing it over each summand. Unique local maximizers sum to the unique maximizer over , hence a vertex. Their associated orders give a realizing ranking. Conversely, every vertex uniquely maximizes all objectives in some nonempty open set. This set contains an objective outside all comparison hyperplanes, so its enumerated region produces that vertex.
The objective arrangement has dimension and at most hyperplanes. Standard fixed-dimensional arrangement enumeration therefore gives all vertices and realizing rankings in polynomial time for fixed n.
The distinct vertices and associated rankings form the candidate list.
Support Compression. At fixed , candidate has payment vector . We can now apply Lemma 4.1 to the representative rankings. This reduces the distribution to at most representative rankings while preserving every advertiser's expected payment and hence all budget equilibrium conditions at the same multipliers.
Lemma 5.3 (Small Candidate Support). At fixed , every distribution over valid group-consecutive rankings can be replaced by at most representative rankings with the same expected advertiser payments. This preserves an ABE-B at the same profile.
Proof. By Lemma 5.2 and vertex enumeration, the expected payment vector lies in . Apply Lemma 4.1 with . Preserving payments at the same multipliers preserves budget feasibility and maximal pacing.
Thus, we only enumerate nonempty with , since every attainable expected payment vector can be preserved on such a support. For , assign probability , with and . We solve these weights and multipliers jointly.
For fixed , there are possible supports, so polynomially bounded makes this enumeration polynomial. Together with Lemma 3.3, the support lemma ensures that one of them realizes an exact ABE-B.
Equilibrium Constraints. Fix a cell F and support J. Advertiser i's expected payment is
Impose the candidate system
Every solution defines an exact ABE-B. The remaining algorithmic point is that the number of unknowns is independent of the catalog size.
Lemma 5.4 (Polynomial-Time Candidate Feasibility). For fixed n, we can decide feasibility of Equation (1) and compute an exact solution whenever one exists, in polynomial time.
Proof of Lemma 5.4. The multipliers and weights give at most variables. There are conditions, all affine except payment terms proportional to , so degree is at most two. Matrix entries are sums of rational value–CTR products. The exact feasibility bound of Section 4 applies.
Correctness and Running Time. Recall that ; let count comparison cells and vertices in cell .
Proof of Theorem 5.1. The representative rankings are valid throughout their cell, and Equation (1) uses their actual expected payments. Every returned algebraic solution thus satisfies bid consistency, budget feasibility, and maximal pacing.
For completeness, take a group-consecutive ABE-B from Lemma 3.3. Its profile lies in an enumerated cell. Lemma 5.3 replaces its distribution by at most representative rankings with the same expected payments. This support is enumerated, so a candidate system is feasible and the algorithm returns an exact ABE-B.
We next bound the running time. The case n = 1 requires only sorting. Assume .
Comparison Cells. The hyperplanes in dimension define cells, including equality faces. Standard arrangement algorithms enumerate them in time [16].
Local Matrices and Vertices. There are at most layers and orders per layer. Their matrices take time to construct for fixed . The objective arrangement has hyperplanes in dimension , so . The vertices and their realizing rankings can be computed in time per cell.
Candidate Supports. Their number per cell is
Candidate Systems. Each has at most variables, conditions, and degree at most two. By the exact feasibility bound in Section 4, each system can be constructed and solved in time.
Combining these bounds gives
since . Constructing at most complete rankings takes additional time for fixed , within this bound.
5.2 ROI Constraints: Compressing Expected Surplus
The comparison-cell decomposition, bid-layer construction, and vertex-enumeration method follow the same framework as ABE-B. For ROI, we augment each local payment matrix with its value vector and compress the resulting surplus vectors.
Theorem 5.5 (Exact ABE-R Computation with Few Advertisers). For every fixed number of advertisers n, there exists a polynomial-time algorithm that computes an exact ABE-R ( ) with time complexity .
The output distribution uses at most group-consecutive rankings.
Algorithm 2 follows the same three-phase structure as Algorithm 1, using pairs of payment matrices and value vectors and surplus constraints in place of payment matrices and budget constraints.
For , set and let select a value-sorted ranking with probability one. Payments are zero, and maximal pacing holds at the cap. Assume .
Cell Decomposition and Augmented Representation. As in ABE-B, compare all cross-owner group bids, now on , and include both endpoint forms and . Include equality faces. A cell fixes all bid comparisons and the set . Advertisers in this set must have zero expected surplus; those at the cap need only have nonnegative expected surplus. Build bid layers and local payment matrices as in ABE-B.
For each , also record value vector with coordinates
Values and payments add over layers, so define
The argument of Lemma 5.2 identifies this polytope with the convex hull of pairs of payment matrices and value vectors for valid group-consecutive rankings on . Its dimension is at most , so the same objective-arrangement construction enumerates its vertices. For each vertex , let be the complete ranking defined by the corresponding layer orders. Then
Algorithm 2 Exact ABE-R with a Fixed Number of Advertisers
Require: An explicit rational ROI instance with fixed n. Ensure: An exact ABE-R with support size at most . 1: Compute the cap A. 2: if then 3: Set ; let select a value-sorted ranking. 4: return . 5: end if 6: Phase I: Comparison-Cell Decomposition. 7: Group items by owner and value; fix internal item orders. 8: Enumerate comparison cells in , including ties and multiplier endpoints. 9: for all cells F do 10: Phase II: Layerwise Convexification. 11: Identify bid layers and the below-cap advertiser set . 12: Build local pairs of payment matrices and value vectors and their Minkowski sum . 13: Enumerate the vertices of and associate a realizing ranking with each vertex. 14: Phase III: Equilibrium Construction. 15: for all nonempty vertex subsets J with do 16: Form Equation (3) for F and J. 17: Apply exact semialgebraic sampling. 18: if an algebraic solution is found then 19: Expand the associated group orders and assign the sampled weights. 20: Merge identical rankings and remove zero weights. 21: return the resulting exact equilibrium . 22: end if 23: end for 24: end for
Surplus Compression and Equilibrium Constraints. Fix . The linear map sends to the attainable expected surplus vectors. Hence, these vectors form the convex hull of , . Lemma 4.1 with gives at most representative rankings. Preserving surplus preserves all ROI conditions at the same multipliers, even when values and payments change separately.
Enumerate every nonempty with . Assign probability to ranking and define expected surplus
ROI feasibility and maximal pacing are precisely the constraints
Every solution defines an exact ABE-R. The feasibility argument of Lemma 5.4 applies here as well: the multipliers and at most weights give at most variables, there are conditions, and the only nonlinear terms are products . Thus, for fixed , the exact feasibility bound in Section 4 decides feasibility of Equation (3) and returns an exact algebraic solution whenever one exists, in polynomial time.
Recovering the Equilibrium. Given an algebraic solution , concatenate each representative ranking's layer orders and apply the common recovery procedure in Section 4. The defining value-payment identities give , so Equation (3) enforces exactly the ROI conditions. At most rankings are expanded, taking operations.
Correctness and Running Time.
Proof of Theorem 5.5. Each representative ranking is valid throughout its cell, and Equation (2) gives its contribution to expected surplus. Every algebraic solution thus satisfies all ABE-R conditions.
For completeness, take a group-consecutive ABE-R from Lemma 3.3. Its profile lies in an enumerated cell, and the pair formed by its expected payment matrix and value vector lies in . At this profile, its surplus vector lies in
Lemma 4.1 uses at most associated rankings. This support is enumerated, so a candidate system is feasible.
For fixed , there are cells. The objective arrangement has hyperplanes in dimension , giving vertices and supports per cell. Each system has at most variables, conditions, and degree at most two; its only nonlinear terms are . The exact-sampling bound used for ABE-B gives operations per system. Thus, the total operation count is
Vertex construction and output fit the same bounds.
6 Boundary Structure with Few Slots
Unlike the fixed-advertiser setting in Section 5, fixing the number K of display slots does not bound the number n of advertisers. Directly reusing the full n-dimensional multiplier-space decomposition would therefore give an exponent depending on n, rather than a polynomial-time bound for unrestricted n. A tied bid layer may still contain arbitrarily many advertisers, and undisplayed items may still determine displayed prices, so restricting attention to the displayed prefix is insufficient.
We therefore work from the display boundary to identify the multiplier coordinates and expected outcomes needed by each constraint model, with the aim of bounding the number of unknowns in terms of K.
6.1 Budget Constraints: Threshold Recovery and Capacity
For budgets, maximal pacing pins down every advertiser that lies completely below the display threshold. Combining this recovery identity with a polyhedral description of a potentially large threshold tie yields the fixed-slot result.
Theorem 6.1 (Exact ABE-B Computation with Few Slots). For every fixed number of display slots K, there exists a polynomial-time algorithm that computes an exact ABE-B ( ) with time complexity .
The key parameter is the Kth highest bid, which determines all but at most K - 1 multipliers. Payments can then be described by a bounded family of rankings or, for a large threshold tie, by a capacity polytope. Algorithm 3 summarizes the construction in three phases: threshold recovery, attainable payments, and equilibrium construction.
Algorithm 3 Exact ABE-B with a Fixed Number of Display Slots
Require: An explicit rational budget instance with fixed K.
Ensure: An exact ABE-B with support size at most .
1: Phase I: Threshold Recovery.
2: Compute value groups and highest values .
3: for all with and threshold pieces I do
4: Parameterize multipliers by and enumerate comparison cells F.
5: for all admissible cells F do
6: Phase II: Attainable Payments.
7: Enumerate valid orders strictly above t and compute the number e of threshold groups, the number r of remaining slots, and the threshold-owner set T.
8: if then
9: Enumerate the bounded family of threshold-layer orders and form Equation (5).
10: else
11: Form the submodular capacity conditions in Equation (6).
12: end if
13: Phase III: Equilibrium Construction.
14: for all candidate supports produced in Phase II do
15: Apply exact semialgebraic sampling.
16: if an algebraic solution is found then
17: Recover the full multiplier profile, decompose threshold payments, and compress the ranking distribution.
18: return the resulting exact equilibrium.
19: end if
20: end for
21: end for
22: end for
Threshold Recovery. Recall that is advertiser 's highest value. Let be the ordered item bids, counting every item, and define . Thus, is the last displayed bid, independent of tie order. Define and . These are precisely the advertisers with a product bidding strictly above . By Lemma 3.1 in Section 3, all equilibrium multipliers are positive. Since item values are positive, .
The threshold becomes algorithmically useful because it determines every multiplier except those of a bounded set of above-threshold advertisers.
Lemma 6.2 (Threshold Recovery). Every exact ABE-B satisfies
Proof. At most K - 1 items bid strictly above t. Each advertiser in S owns one, so .
For , we have and , so . A strict inequality would give and . All its items would bid below and be undisplayed in every valid ranking, giving . Since , maximal pacing would require , a contradiction. Thus, the recovery formula holds.
From Recovery to a Search Space. Enumerate with as candidate sets of advertisers whose highest bids exceed . For each , keep unknown and recover other multipliers by Equation (4). Require and for . Recovered multipliers satisfy outside .
Partition at distinct , keeping open intervals and singleton endpoints. For each piece and pair , impose . Each recovered multiplier then has a fixed affine form, or 1. Both forms agree at . Thus, every group bid is affine in the at most parameters .
We partition this parameter space as in Section 5, using cross-owner bid comparisons, comparisons with the threshold, and multiplier endpoints:
Here range over cross-owner groups, ranges over all groups in the threshold comparisons, and . Constant expressions have fixed signs, whereas nonconstant expressions define the comparison hyperplanes.
Let be the nonempty sign cells, including equality faces. Fix . For and any , define
Membership is constant on because comparisons with have fixed signs. These sets partition . Every valid ranking places before and before .
A fixed determines all group-bid comparisons and hence the valid group orders, with ties free to reorder. Endpoint states follow from F inside S and I outside S, fixing the full paced set . Parameter values remain unknown and are solved jointly with ranking probabilities.
Admissible Threshold Cells. For fixed , define
and set and . Here, counts items in and lists owners in . Positive multipliers allow at most one group per owner in , so . For , let be its unique group's size. A cell is admissible if
These conditions are equivalent to t being the Kth highest bid throughout the cell: fewer than K items bid strictly above t, and at least K bid at least t. We consider only admissible cells.
Candidate Rankings and Payment Representation. Fix an admissible with . All bid comparisons are fixed, so only tied groups may reorder. Enumerate these orders in , preserving strict comparisons. Fix one valid order of for all candidates. Advertisers outside have multiplier one and payment zero.
Remark 6.3 (Ordering Groups Below ). Fix and the orders of and . As with fixed internal item orders, choosing any valid order of preserves displayed outcomes. The only concern is that these items may still set displayed prices. The highest lower-tail bid from another owner may price displayed items in the last group of . Different valid tail orders may change which group supplies this bid, but not the bid itself, and if no eligible group exists, its contribution remains zero.
Compare with to decide whether to enumerate group orders directly. If , at most groups lie in , so we can list valid orders and compute their payments. If , listing all orders of may be too costly. At most of these groups can receive a display slot, so at least one whole group remains undisplayed, with all its items bidding . This group has a different owner from every displayed group in . Payments contributed by this set are therefore times each advertiser's assigned total click-through rate. This lets us describe expected payments without listing all orders of . We first treat .
Suppose . Concatenate each valid order of with each order of , then append the fixed order. This gives at most complete candidates. Only can pay, so payment vectors have at most coordinates. Write candidate 's affine payments as .
At fixed , Lemma 4.1 with uses at most candidates. Enumerate nonempty candidate index sets with , introduce probabilities , and define
For each support J, impose
There are at most variables, and the degree is at most two. Exact feasibility and the ranking construction in Section 4 give an ABE-B. The representative rankings include all below-threshold price setters.
Payments Above t and Support Compression. Fix an admissible with . A direct threshold-order representation may contain rankings, and its payment dimension is unbounded in K. We use a short distribution over above-threshold orders and eliminate threshold payments through capacity constraints.
Recall and . Distinct bid layers have fixed order on , so only equal-bid groups may swap. Let contain the valid group orders of . For , let be advertiser 's payment from items in under .
These functions are affine in . Each displayed item's price is an eligible later bid in or , since has at least two owners. Thus, orders within and do not affect these payments. They vanish outside , as only owns items in .
Only upper-payment coordinates can be nonzero, so Lemma 4.1 gives at most orders. Enumerate nonempty supports with , introduce probabilities , and define
Thus, is advertiser 's expected payment from alone, and is zero for . It depends on and and adds no variables.
Attainable Payments at . Since , at most groups in are displayed, leaving at least one wholly undisplayed. Each displayed item in this set thus has an other-owner item bidding below it and pays per click. Each advertiser's payment from is therefore times its assigned total click-through rate.
Let contain all group orders of . For , place these groups after to fill slots . Let be advertiser 's total click-through rate under this order. With price per click , define the payment vector by
Assigning probability to order gives expected payment
The attainable expected payment vectors form
For , define
Here, counts items in owned by . They occupy at most remaining slots, and ordering their groups first gives the best slots. Thus, is their maximum total click-through rate. For a payment vector , write .
The formula implies that every attainable expected payment vector has nonnegative coordinates. In addition, owners in receive at most total click-through rate at price , so . Items in fill all remaining slots, giving total payment . This defines the capacity region
The subset inequalities express the best exposure that any set of advertisers can receive, so every attainable expected payment vector lies in . To replace distributions over threshold-group orders by these capacity conditions in the equilibrium system, we also need the reverse inclusion. Otherwise, the capacity system could admit a payment vector that no ranking distribution realizes. The next lemma proves , ensuring both that every equilibrium remains represented and that any feasible payment vector later recovered from the capacity conditions can be realized by a distribution over threshold-group orders.
Lemma 6.4 (Capacity Description of Attainable Payments). For every fixed , .
Proof. ( ) Necessity: . In any group order, receives at most total click-through rate and pays at most . Payments are nonnegative and total , so every lies in . Probability-weighted averages preserve these conditions, proving inclusion.
( ) Sufficiency: . For any linear objective , order advertisers so that , and let . This group order gives with
because every group prefix takes the earliest available slots.
For any ,
The coefficient differences are nonnegative. Using and gives
Thus, each linear objective over is maximized by an actual group order's payment vector. A point outside the compact convex set would admit a separating objective, contradicting this bound. Hence, , proving equality.
Example 6.5 illustrates how this description combines with maximal pacing to determine an equilibrium distribution.
Example 6.5 (From Threshold Capacity to an Exact Equilibrium). Let , , and , with group sizes . Every product has value 2, every advertiser has budget 1/2, and set all multipliers to 1/2. Thus all bids equal , , and . In every group order, a whole other-owner group remains undisplayed, so each displayed product pays 1 per click.
The capacity polytope is
Advertiser 1 can fill both slots, whereas each other advertiser can receive at most the first slot's CTR. All remaining subset capacities follow from nonnegativity and the total-payment equality. Since every multiplier is below one, maximal pacing requires , which lies in this polytope. It is realized by choosing the group orders and with probability 1/2 each:
After expanding group 1 into its two products, these are complete valid rankings and all budgets bind. Hence the multipliers and this two-ranking distribution form an exact ABE-B. The capacity description provides the feasible expectation, and group orders realize it.
For a general threshold layer, we next intersect the capacity polytope with the remaining budget intervals, reduce its subset constraints, and recover a short distribution.
Remaining Budget Requirements. We now impose budgets. A payment variable for each advertiser in T would add e variables, unbounded in K. Instead, express budget requirements as intervals and test whether they contain a point of , without keeping payment coordinates as unknowns.
For , let be its expected payment from . Total payment is . Budget feasibility gives , with equality required by maximal pacing for . Define
Advertisers with multiplier below one must pay exactly their remaining budget through . Those with multiplier one may pay any nonnegative amount up to that budget. We must find
For , write and .
Eliminating Payment Variables. The cumulative CTR of the first remaining slots is a nondecreasing concave function of the additive quantity . Hence is submodular. The standard box-intersection criterion for submodular base polytopes [26] gives the following necessary and sufficient conditions for a point in to satisfy the budget intervals:
The second condition bounds each subset's minimum payment by its capacity. Since pays at most , the third requires enough budget outside to cover . Together with valid coordinate bounds, these conditions are necessary and sufficient.
Substitute and into these inequalities. All conditions then depend only on and . The bounds and abbreviate these expressions, so payment coordinates are no longer unknowns.
Reducing Subset Constraints. For with , its items cannot fill all remaining slots, so we include its subset conditions. If , then . The corresponding lower bound follows from , and the complementary upper bound follows from nonnegativity because its right-hand side is zero.
Accordingly, define .
Keep the total lower bound and test other subset inequalities only for . Since , each such subset has at most advertisers. Enumerate subsets of size at most and keep those with , giving
for fixed K. Include the empty set, whose complementary bound gives .
The reduced capacity description is also constructive: any feasible threshold-payment vector can be converted into a short, explicit distribution over threshold-group orders without enumerating all possibilities.
The following proposition formalizes this decomposition and shows that at most threshold-group orders suffice, with polynomially many exact arithmetic operations.
Proposition 6.6 (Constructive Decomposition of Threshold Payments). Fix . Given any , one can compute group orders and nonnegative weights such that
The computation uses a polynomial number of exact arithmetic operations in the explicit description of . In particular, algebraic t and y yield algebraic weights in the standard exact representation.
Proof. Write and represent by its total-payment equality together with the nonnegativity inequalities and the reduced capacity inequalities indexed by
As shown above, the omitted capacity inequalities are implied by nonnegativity and the total-payment equality, so this is the same bounded polytope. Its affine dimension is at most .
We maintain a residual point and a coefficient such that the original vector equals a convex combination of already recorded order vectors plus . Initially, and . Let
be the active inequalities and set . Sort the advertisers in nonincreasing order of and let be the payment vector of the resulting group order. By the greedy argument in Lemma 6.4, maximizes over . The point is also a maximizer, since every feasible satisfies
Since is feasible and maximizes the same objective, equality holds throughout. Each active inequality has nonnegative slack at , so equality of their sum implies for every . Hence lies in the minimal face of containing .
If , record with weight and terminate. Otherwise move from directly away from . Define
The minimizing set is nonempty: if it were empty, the ray would remain feasible for every , contradicting boundedness. Every active inequality has denominator zero because it is also tight at , while every inactive inequality has positive slack. Consequently , and is feasible, preserves all previously active inequalities, and makes at least one additional inequality tight. Thus lies in a proper face of the minimal face containing . Finally,
Record v with weight , replace by , and repeat.
Every nonterminal iteration strictly lowers the dimension of the minimal face containing the residual point. Since the affine dimension is at most , the process records at most order vectors. The maintained convex-combination identity proves the claimed decomposition. Each iteration requires one sort, evaluation of the explicit inequalities, and exact arithmetic. Hence the overall procedure is polynomial-time.
The proposition supplies at most e threshold orders after a feasible expected payment vector is recovered. The nonlinear candidate system itself still contains no threshold-payment coordinates.
Candidate Equilibrium System. For each enumerated support from , impose the reduced conditions on . Advertisers in pay nothing from , so their total payment is . Those outside have multiplier one and payment zero. The system is
Eliminating the threshold-payment coordinates leaves a system whose dimension depends only on K.
Lemma 6.7 (Polynomial-Time Candidate Feasibility). For fixed K, the system in Equation (6) has at most 2K variables and degree at most two. We can decide its feasibility and compute an exact solution whenever one exists, in polynomial time.
Proof of Lemma 6.7. Only and the probabilities are unknown, giving variables. The expressions , , and add none. Each is affine in , and the paced set is fixed, so residual substitution introduces only products of with parameters in . Thus, degree is at most two, while and the other conditions are linear.
There are conditions with rational coefficients from values, CTRs, and recovery ratios. Apply the exact feasibility bound of Section 4.
Constructing the Equilibrium. Fix an admissible with and algebraic solution , where . Define the full profile by Equation (4), evaluate the budget intervals, and choose satisfying
The system in Equation (6) ensures feasibility. Nonnegativity and the total-payment equality imply all omitted capacities. Thus, . With the equilibrium parameters fixed, this is a linear feasibility problem with variables and constraints.
Decomposing Payments into Group Orders. Apply Proposition 6.6 to . It returns at most threshold-group orders and exact weights
The proposition is applied to the capacity polytope alone: the budget intervals constrain the recovered expectation y, not the individual threshold orders in its decomposition.
Constructing and Compressing Complete Rankings. For each and recorded , concatenate them with the fixed valid order, expand groups, and assign probability . This preserves upper payments and , so the residual bounds and Equation (6) ensure an exact ABE-B at .
There are at most rankings. Construct the support of size at most promised by Lemma 4.1 by eliminating linear dependencies among , where is the payment vector of ranking . Merge duplicates and delete zero weights to obtain , preserving multipliers, validity, and expected payments.
Since , payment recovery, the decomposition in Proposition 6.6, ranking expansion, and final compression all take polynomial time for fixed K.
Correctness and Running Time. Let count admissible triples .
Proof of Theorem 6.1. For , each algebraic solution of Equation (5) gives valid rankings and expected payments satisfying budget feasibility and maximal pacing. For , capacity and box-intersection conditions give attainable payments within residual bounds. Reconstruction yields an exact ABE-B and preserves upper payments at the solution. Final compression preserves all expected payments.
For completeness, take a group-consecutive ABE-B from Lemma 3.3. Lemma 6.2 places its parameters in an enumerated admissible . If , a fixed lower-tail order preserves payments, and payment-space compression gives an enumerated support of at most rankings. If , upper-payment compression gives at most orders, while payments satisfy the reduced conditions. Thus, an enumerated candidate system is feasible.
We next bound the running time. Each advertiser owns an item, so .
Advertiser Sets and Threshold Intervals. The number of candidate sets S is
Splitting at distinct gives intervals and singleton endpoints, hence pairs .
Comparison Cells. For each , has dimension and comparison hyperplanes. Including equality faces gives cells per pair, enumerated in operations. Thus,
Testing threshold admissibility takes polynomial time per cell.
Representative Rankings and Supports. For , at most candidates yield supports of size at most . For , at most upper orders yield supports of size at most . Hence, each triple has supports for fixed . Rankings and affine payments take operations to construct.
Candidate Systems. For , systems have at most variables and conditions. For , at most 2K variables remain. Only requires explicit capacity tests, with
Including cell and budget constraints, both cases have condition count
All conditions have degree at most two. Applying the feasibility bound with gives time per system.
Equilibrium Construction. The solution weights give the distribution for . For , the reconstruction above recovers it in polynomially many operations in , hence . Combining distributions and compressing payments gives at most rankings within this bound.
There are admissible triples and constantly many supports per triple for fixed K. Together with equilibrium construction, the total running time is .
6.2 ROI Constraints: Sparse Nonunit Multipliers
An ROI advertiser that is undisplayed at a given multiplier profile has zero value and payment at that profile, so the display threshold alone does not determine its multiplier. We obtain a small set of unknown multipliers by preserving the displayed items and their price witnesses while lowering the remaining multipliers to one.
Theorem 6.8 (Exact ABE-R Computation with Few Slots). For every fixed number of display slots K, there exists a polynomial-time algorithm that computes an exact ABE-R ( ) with time complexity .
Algorithm 4 Exact ABE-R with a Fixed Number of Display Slots
Require: An explicit rational ROI instance with fixed K.
Ensure: An exact ABE-R with at most nonunit multipliers and support size at most .
1: Phase I: Sparse-Multiplier Search. 2: Compute value groups and the cap A. 3: for all with do 4: Set outside S and enumerate comparison cells F in , including ties and multiplier endpoints. 5: for all cells F do 6: Phase II: Candidate Ranking Construction. 7: Enumerate admissible displayed group prefixes and complete their canonical tails. 8: Retain candidates with zero surplus outside S throughout F. 9: Compute their affine surplus functions on S. 10: Enumerate nonempty candidate supports J with . 11: Phase III: Equilibrium Construction. 12: for all candidate supports produced in Phase II do 13: Form Equation (7) for F and J. 14: Apply exact semialgebraic sampling. 15: if an algebraic solution is found then 16: Recover the full multiplier profile and expand the selected group orders into complete rankings. 17: Assign the sampled weights, merge identical rankings, and remove zero weights. 18: return the resulting exact equilibrium . 19: end if 20: end for 21: end for 22: end for
The algorithm returns a profile with at most multipliers different from one and a distribution supported on at most group-consecutive rankings. The structural task is therefore to prove that such a sparse representative always exists. Algorithm 4 summarizes the construction in three phases: sparse-multiplier search, candidate ranking construction, and equilibrium construction.
We observe that the number of advertisers with an above-threshold item is bounded by the number of display slots. For a group-consecutive ABE-R, let be the th highest item bid and the item count strictly above . Let be owners with a group bidding , set and , and define . Each advertiser in owns an above-threshold item, so .
For a displayed owner, the relevant tail price is the largest bid after excluding that owner. The two highest bids from distinct owners suffice for all such exclusions. If a nonunit threshold owner is never displayed, its unchanged bid can instead witness the threshold price for every displayed owner. The next two lemmas formalize these observations.
Lemma 6.9 (Two Below-Threshold Price Witnesses). Fix a multiplier profile and a threshold . For each owner , let , with . There is a set of at most two owners such that, for every owner ,
where the maximum of an empty set is zero. Keeping the bids of owners in W and lowering only bids that were already below t preserves this eligible maximum for every possible displayed owner.
Proof. If for every owner , take , and both maxima are zero. Otherwise, choose an owner with the largest positive and set . If another owner has positive , choose an owner with the second-largest positive and add it to . For owner , the eligible maximum is attained by . For , it is attained by if selected, and is zero otherwise. The final statement follows because a preserved witness attains the original maximum and no modified bid can exceed it.
When more threshold groups exist than remaining slots, one threshold owner can play an even stronger role: it supplies the same bid-t witness to every displayed item.
Lemma 6.10 (Universal Threshold Witness). Consider a group-consecutive exact ABE-R with threshold data as defined above, and suppose . Let . Every owner in is undisplayed in every ranking in the equilibrium support. For any , its threshold group can therefore remain below the displayed prefix and supply an eligible bid-t price witness for every displayed item. If , all threshold owners outside already have multiplier one.
Proof. Fix , so . Membership in implies . Since , at most threshold groups can intersect the first positions, and at least one whole threshold group of another owner remains below every displayed threshold item. All displayed items of therefore belong to its top-value threshold group and pay per click. If their expected total click-through rate were , then
contradicting ROI feasibility. Hence is undisplayed in every supported ranking. An owner is different from every displayed owner and its threshold group can be placed immediately below the displayed prefix, so it supplies an eligible bid- witness. The final statement is immediate from the definition of .
The witness lemmas give an outcome-preserving sparsity result.
Lemma 6.11 (Sparse Nonunit Multipliers). Every group-consecutive exact ABE-R can be transformed into a group-consecutive exact ABE-R with at most multipliers different from one by lowering selected multipliers to one and rearranging undisplayed groups. The transformation preserves the item, value, and price in every displayed slot of every supported ranking. Consequently, every ROI instance admits such a sparse equilibrium.
Proof. Start from any group-consecutive exact ABE-R ( ), whose existence is guaranteed by Lemma 3.3. All threshold objects below refer to this profile. We construct and transform each supported ranking.
Case 1: . Let W be the set from Lemma 6.9 and define
Every owner outside has all bids strictly below , and resetting its multiplier to one can only lower those bids. For a supported ranking , keep the relative order of all groups whose original bid is at least , then append the remaining groups in nonincreasing order of their new bids. The resulting group-consecutive ranking is valid at and has the same first items as .
Fix a displayed item owned by i. If its original price is set by an other-owner group in the preserved at-least-t block, that group and bid are unchanged and all appended bids are below t. Otherwise its price is the highest eligible below-threshold bid, namely , which is preserved by Lemma 6.9. Hence every displayed value and price is unchanged. The number of possibly nonunit multipliers is at most
Case 2: . Use Lemma 6.10. If , choose one owner . Otherwise, introduce no additional witness. Set
omitting when . Any changed owner outside either belongs to and is never displayed, or originally has all bids strictly below and remains below after the reset.
For a supported ranking , preserve the relative order of all above-threshold groups and of the threshold groups intersecting the first positions, expanding each displayed group completely. These displayed threshold groups still bid : their owners lie in or have multiplier one. If , place the group of next and append all remaining groups in nonincreasing new-bid order, including any other groups still bidding . If , preserve the entire remaining threshold layer and sort the lower groups by their new bids. The final statement of Lemma 6.10 ensures that this threshold layer is unchanged. The resulting complete ranking is valid and group-consecutive, with the same first items as .
A displayed price strictly above is determined inside the preserved above-threshold block and is unchanged. Every other displayed price equals : a threshold group remains below the displayed prefix and has an owner different from the displayed owner. When , the owner supplies this witness universally. When , the preserved threshold layer supplies the same witnesses as before. Thus values and prices are again preserved slot by slot, with at most nonunit multipliers.
In either case, let aggregate the probabilities of rankings mapped to the same . Advertisers whose multipliers are unchanged have the same expected values and payments as before. Every advertiser whose multiplier is lowered to one is undisplayed in all transformed rankings and therefore has value and payment zero. Since , its required surplus equality holds. Hence is a group-consecutive exact ABE-R with at most nonunit multipliers and the claimed preservation of displayed outcomes.
From Sparsity to a Search Space. Enumerate with . The set need only contain all nonunit advertisers, and an advertiser in may still receive multiplier one. Leave unknown and set outside . Thus, a group bid is when its owner lies in , and the constant otherwise. Compare cross-owner group bids and include the endpoint forms and for . Handle constant comparisons as in the fixed-slot budget construction and include equality faces.
For each cell , all group-bid comparisons and the set are fixed. Lemma 6.11 guarantees that some enumerated and cell contain an exact equilibrium.
Candidate Rankings and Payment Representation. A group-consecutive ranking reaches slot K within at most K groups. Enumerate distinct-group lists with , nonincreasing bids on F, and
A list is admissible if every omitted group bids at most . Expand its groups in their prescribed internal orders, including the undisplayed remainder of when the boundary falls inside that group. Append the omitted groups in decreasing bid order, resolving ties by a fixed group order. This gives a representative ranking valid throughout .
This gives complete candidates covering every valid group-consecutive displayed prefix. Canonical tail completion preserves displayed values and payments: all tail items follow the displayed items, and their highest eligible other-owner bid is independent of tail order. Tail items remain eligible for pricing when candidate payments are computed. For a fixed complete candidate, each pricing representative is fixed, making values constant and payments affine in .
Zero-Surplus Rankings and Compression. Outside S, every multiplier is one, so a displayed item's price is at most its value. Each such advertiser therefore has nonnegative surplus in every valid ranking. Since , equilibrium requires zero expected surplus, and each ranking with positive probability must give zero surplus outside S.
This condition can be determined throughout the cell. Because displayed CTRs are positive, every displayed item of an advertiser outside S must have its price equal to its bid. The cell fixes whether its other-owner pricing representative has that bid. If no representative exists, the price is zero and the condition fails. Undisplayed advertisers have value and payment zero. Thus, we can restrict the representative family to rankings satisfying the zero-surplus condition before choosing numerical multipliers.
Let be the number of retained rankings. Index them by and write their affine surplus as . Their surplus vanishes outside . Applying Lemma 4.1 to the coordinates on gives support at most . For each nonempty with , define
Equilibrium Constraints. For each selected cell and support, impose
Recovering the Equilibrium. For an algebraic solution , set
Expand the associated complete rankings, including their canonical tails. The zero-surplus condition gives
The candidate system enforces the ROI conditions on , while outside the assigned multiplier is and surplus is zero. As in the fixed-slot ABE-B construction, recovery completes the multiplier profile and expands weighted group orders into complete rankings. Here, the sampled probabilities already determine the distribution, so no separate threshold-payment recovery or decomposition is needed. Recovery takes operations and leaves at most rankings.
Correctness and Running Time
Proof of Theorem 6.8. Each admissible representative is valid throughout its cell with zero surplus outside S. The system in Equation (7) enforces the remaining ROI conditions. Every algebraic solution thus gives an exact ABE-R.
For completeness, take the sparse equilibrium from Lemma 6.11. Its nonunit multipliers lie in an enumerated S and its profile in an enumerated cell. Canonical prefix completions preserve values and payments and satisfy the zero-surplus condition outside S. Compressing surplus on S gives an enumerated support of at most rankings. Thus, a candidate system is feasible.
There are choices of S, at most cells each, and candidates per cell. Supports of at most give at most
candidate systems, using .
Each system has variables, degree at most two, and conditions. The exact feasibility bound of Section 4 costs operations per system and in total. Prefix construction, filtering, and output fit this bound.
Proof of Theorem 1.1. The first structural principle follows from Theorems 5.1 and 5.5, and the second structural principle follows from Theorems 6.1 and 6.8. Every advertiser owns at least one item, so , and the fixed-item case follows from the fixed-advertiser algorithms. Each algorithm computes exact algebraic multipliers and an explicit distribution over valid rankings.
7 Conclusion
Exact budget and ROI autobidding equilibria in GSP sponsored shopping can be computed in polynomial time with either few advertisers or few display slots. Layerwise convexification gives a polynomial representation of ranking-dependent outcomes when the advertiser dimension is fixed. At the display boundary, threshold recovery and capacity elimination handle budgets, while outcome-preserving multiplier sparsity handles ROI. Each construction returns an explicit distribution over complete valid rankings.
A natural next question fixes the number of products per advertiser while allowing both advertisers and slots to grow. Tie layers can then contain many owners, and the display boundary may involve many relevant multipliers. Resolving equilibrium computation in this regime would further explain how catalog size and ownership structure contribute to the complexity of one global ranking.
AI Usage Disclosure
The algorithms and the core ideas underlying this paper were developed independently by the authors without AI assistance. The formulation of the research questions, the development of the algorithmic approaches, and the main mathematical insights originated from the authors' own work.
During the preparation and revision of the manuscript, we used GPT-6.1-SOL to assist with checking mathematical derivations, examining the consistency of definitions and notation, and identifying potential gaps or ambiguities in the presentation of proofs. The model was also used to assist with preparing and refining figures, improving the organization and clarity of the exposition, and drafting and revising the IATEX source.
The authors evaluated the model’s suggestions and independently reviewed and verified the resulting mathematical arguments, figures, and text. The authors take full responsibility for all algorithms, results, proofs, and statements in the paper, as well as for the accuracy and integrity of the final manuscript.
References
[1] Gagan Aggarwal, Ashwinkumar Badanidiyuru, and Aranyak Mehta. Autobidding with constraints. In Ioannis Caragiannis, Vahab Mirrokni, and Evdokia Nikolova, editors, Web and Internet Economics, volume 11920 of Lecture Notes in Computer Science, pages 17–30. Springer, 2019. doi: 10.1007/978-3-030-35389-6_2.
[2] Santiago R. Balseiro, Yuan Deng, Jieming Mao, Vahab S. Mirrokni, and Song Zuo. The landscape of auto-bidding auctions: Value versus utility maximization. In Proceedings of the 22nd ACM Conference on Economics and Computation, pages 132–133. ACM, 2021. doi:10.1145/3465456.3467607.
[3] Santiago R. Balseiro, Anthony Kim, Mohammad Mahdian, and Vahab S. Mirrokni. Budget-management strategies in repeated auctions. Operations Research, 69(3):859–876, 2021. doi:10.1287/opre.2020.2073.
[4] Santiago R. Balseiro, Kshipra Bhawalkar, Zhe Feng, Haihao Lu, Vahab Mirrokni, Balasubramanian Sivan, and Di Wang. A field guide for pacing budget and ROS constraints. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of
Proceedings of Machine Learning Research, pages 2607–2638. PMLR, 2024. URL https://proceedings.mlr.press/v235/balseiro24a.html.
[5] Saugata Basu, Richard Pollack, and Marie-Françoise Roy. Algorithms in Real Algebraic Geometry, volume 10 of Algorithms and Computation in Mathematics. Springer, 2 edition, 2006. doi: 10.1007/3-540-33099-2.
[6] Christian Borgs, Jennifer T. Chayes, Omid Etesami, Nicole Immorlica, Kamal Jain, and Mohammad Mahdian. Dynamics of bid optimization in online advertisement auctions. In Proceedings of the 16th International Conference on World Wide Web, pages 531–540. ACM, 2007. doi: 10.1145/1242572.1242644.
[7] Xi Chen, Christian Kroer, and Rachitesh Kumar. The complexity of pacing for second-price auctions. Mathematics of Operations Research, 49(4):2109–2135, 2024. doi: 10.1287/moor.2022.0009.
[8] Vincent Conitzer, Christian Kroer, Debmalya Panigrahi, Okke Schrijvers, Nicolas E. Stier-Moses, Eric Sodomka, and Christopher A. Wilkens. Pacing equilibrium in first price auction markets. Management Science, 68(12):8515–8535, 2022. doi: 10.1287/mnsc.2022.4310.
[9] Vincent Conitzer, Christian Kroer, Eric Sodomka, and Nicolas E. Stier-Moses. Multiplicative pacing equilibria in auction markets. Operations Research, 70(2):963–989, 2022. doi: 10.1287/opre.2021.2167.
[10] Abhisek Dash, Saptarshi Ghosh, Animesh Mukherjee, Abhijnan Chakraborty, and Krishna P. Gummadi. Sponsored is the new organic: Implications of sponsored results on quality of search results in the amazon marketplace. In Proceedings of the AAAI/ACM Conference on AI, Ethics, and Society, volume 7, pages 316–327, 2024. doi: 10.1609/aies.v7i1.31639.
[11] Yuan Deng, Jieming Mao, Vahab S. Mirrokni, and Song Zuo. Towards efficient auctions in an auto-bidding world. In Proceedings of the Web Conference 2021, pages 3965–3973. ACM, 2021. doi: 10.1145/3442381.3450052.
[12] Yuan Deng, Negin Golrezaei, Patrick Jaillet, Jason Cheuk Nam Liang, and Vahab S. Mirrokni. Individual welfare guarantees in the autobidding world with machine-learned advice. In Proceedings of the ACM Web Conference 2024, pages 267–275. ACM, 2024. doi: 10.1145/3589334.3645660.
[13] Yuan Deng, Mohammad Mahdian, Jieming Mao, Vahab S. Mirrokni, Hanrui Zhang, and Song Zuo. Efficiency of the generalized second-price auction for value maximizers. In Proceedings of the ACM Web Conference 2024, pages 46–56. ACM, 2024. doi: 10.1145/3589334.3645360.
[14] Paul Dütting, Yuhao Li, Renato Paes Leme, Kelly Spendlove, and Yifeng Teng. Autobidding equilibria in sponsored shopping. arXiv:2602.21966, 2026. URL https://arxiv.org/abs/2602.21966v2.
[15] Benjamin Edelman, Michael Ostrovsky, and Michael Schwarz. Internet advertising and the generalized second-price auction: Selling billions of dollars worth of keywords. American Economic Review, 97(1):242–259, 2007. doi: 10.1257/aer.97.1.242.
[16] Herbert Edelsbrunner. Algorithms in Combinatorial Geometry, volume 10 of Monographs in Theoretical Computer Science. An EATCS Series. Springer, 1987. doi: 10.1007/978-3-642-61568-9.
[17] Eyal Even-Dar, Yishay Mansour, Vahab S. Mirrokni, S. Muthukrishnan, and Uri Nadav. Bid optimization for broad match ad auctions. In Proceedings of the 18th International Conference on World Wide Web, pages 231–240. ACM, 2009. doi: 10.1145/1526709.1526741.
[18] Jon Feldman, S. Muthukrishnan, Martin Pál, and Cliff Stein. Budget optimization in search-based advertising auctions. In Proceedings of the 8th ACM Conference on Electronic Commerce, pages 40–49. ACM, 2007. doi: 10.1145/1250910.1250917.
[19] Zhen Ge, Wei Zhou, Jesse Lute, and Adam Ilardi. Relevance constrained re-ranking in sponsored listing recommendations. In Proceedings of the 27th ACM SIGKDD Workshop on Data Mining for Online Advertising, pages 1–7. ACM, 2021.
[20] Kristoffer Arnsfelt Hansen, Yuhao Li, and Xinhao Nie. Complexity of autobidding equilibria in GSP sponsored shopping. arXiv:2610.13716, 2026. URL https://arxiv.org/abs/2610.13716v1. Version 1.
[21] Yiyang Huang, Yonglei Yan, Zihe Wang, and Zhengyang Liu. Pacing equilibria in second-price auctions with few goods. arXiv:2605.09332, 2026. URL https://arxiv.org/abs/2605.09332.
[22] Juncheng Li and Pingzhong Tang. Vulnerabilities of single-round incentive compatibility in auto-bidding: Theory and evidence from ROI-constrained online advertising markets. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, pages 2886–2894. International Joint Conferences on Artificial Intelligence Organization, 2024. doi:10.24963/ijcai.2024/320. URL https://www.ijcai.org/proceedings/2024/320.
[23] Haihao Lu, Luyang Zhang, and Yuting Zhu. The power of linear programming in sponsored listings ranking: Evidence from a large-scale field experiment. arXiv:2403.14862, 2026.
[24] Brendan Lucier, Sarath Pattathil, Aleksandrs Slivkins, and Mengxiao Zhang. Autobidders with budget and ROI constraints: Efficiency, regret, and pacing dynamics. In Proceedings of the Thirty-Seventh Conference on Learning Theory, volume 247 of Proceedings of Machine Learning Research, pages 3642–3643. PMLR, 2024. URL https://proceedings.mlr.press/v247/lucier24a.html.
[25] Aranyak Mehta, Amin Saberi, Umesh V. Vazirani, and Vijay V. Vazirani. AdWords and generalized online matching. Journal of the ACM, 54(5):22:1–22:19, 2007. doi: 10.1145/1284320.1284321.
[26] Alexander Schrijver. Combinatorial Optimization: Polyhedra and Efficiency. Springer, 2003.
[27] Hal R. Varian. Position auctions. International Journal of Industrial Organization, 25(6):1163–1178, 2007. doi: 10.1016/j.ijindorg.2006.10.002.
[28] Liang Wu, Diane Hu, Liangjie Hong, and Huan Liu. Turning clicks into purchases: Revenue optimization for product search in e-commerce. In Proceedings of the 41st International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 365–374. ACM, 2018. doi: 10.1145/3209978.3209993.
[29] Yonglei Yan, Zihe Wang, and Zhengyang Liu. Pacing equilibria in second-price auctions with few buyers. Proceedings of the AAAI Conference on Artificial Intelligence, 40(20):17302–17309, 2026. doi: 10.1609/aaai.v40i20.38782.
[30] Weiru Zhang, Chao Wei, Xiaonan Meng, Yi Hu, and Hao Wang. The whole-page optimization via dynamic ad allocation. In Companion Proceedings of the Web Conference 2018, pages 1407–1411. International World Wide Web Conferences Steering Committee, 2018. doi: 10.1145/3184558.3191584.
[31] Yunzhang Zhu, Gang Wang, Junli Yang, Dakan Wang, Jun Yan, and Zheng Chen. Revenue optimization with relevance constraint in sponsored search. In Proceedings of the Third International Workshop on Data Mining and Audience Intelligence for Advertising, pages 55–60. ACM, 2009. doi: 10.1145/1592748.1592756.
[32] Günter M. Ziegler. Lectures on Polytopes, volume 152 of Graduate Texts in Mathematics. Springer, 1995. doi: 10.1007/978-1-4613-8431-1.