Algorithmadvanced
Simultaneous ascending auction
Also called SAA, simultaneous multiple round auction.
Sells many items at once in rounds: bidders bid on the items they want at rising prices until a round has no new bid. Near-efficient with substitutes; complements cause exposure.
- Time
- O(n m^2 2^m r) worst
- Space
- O(m 2^m) extra
- Where
- m = the number of items; n = the number of bidders; r = the largest value of a bundle divided by the price increment
- Model
- Word RAM
- Properties
- not comparison baseddeterministiciterative
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Paul Milgrom, Robert Wilson, R. Preston McAfee, 1994
The simultaneous ascending auction (SAA) sells many different items at once. Every item has its own price, all prices start low, and the auction runs in rounds. In each round every bidder may bid on any item at its current price plus an increment, and the highest bidder on an item becomes its standing winner. The auction closes when a round passes with no new bid on any item, and each item goes to its standing winner at its price. When the bidders see items as substitutes and bid straightforwardly, SAA ends close to a Walrasian equilibrium, and its welfare is within of the optimum for items and increment . When some bidder needs several items together, it can be stuck with part of a package it no longer wants. This is the exposure problem. Governments have used SAA to sell radio spectrum licenses since 1994.
In plain words
Many items are for sale at the same time, each with its own price. Prices start at zero. In each round, every buyer looks at the prices and decides which items it would most like to own, then bids a little more on those it does not already hold. Items with new bids get a new leader and a higher price. When a round passes with no new bid anywhere, the auction ends. Because all items close together, a buyer can switch from one item to another as prices change. This works well when items can replace each other. A buyer that needs two items together can be left holding one of them at a price it regrets.
The problem
There are items and bidders. Bidder has a valuation on sets of items, with , monotone, and quasilinear utility. The auction learns about the valuations only through bids, and it must give each item to at most one bidder and set a price for each item. The goal is high welfare for the final holdings , with prices at which each bidder is happy with what it holds. We model the bidders as straightforward: in each round, a bidder asks for a bundle it most prefers at the current prices, which is a demand query, and bids on the items of that bundle that it does not hold.
The algorithm
SAA(v_1, ..., v_n, m, ε)- 1
for each item j: p_j ← 0, holder_j ← NIL - 2
repeat - 3
for each bidder i - 4
H_i ← the items with holder i; q_j ← p_j for j in H_i and q_j ← p_j + ε otherwise - 5
T_i ← a bundle that maximizes v_i(T) - Σ_{j ∈ T} q_j, preferring one that contains H_i - 6
bid on each item of T_i \ H_i - 7
if there was no new bid: stop - 8
for each item j with new bids - 9
holder_j ← the new bidder with the smallest index; p_j ← p_j + ε - 10
return the holdings H_1, ..., H_n and the prices p
A bid cannot be withdrawn. The standing winner of an item keeps it until someone bids more. The code computes line L5 by trying all bundles, which stands for the bidder's own decision.
Example
Two unit-demand bidders. Bidder 1 values item A at 5 and item B at 4 and wants one item. Bidder 2 values A at 3 and B at 4. With : in round 1 both want an item at prices ; bidder 1 bids on A and bidder 2 on B. In round 2 each holds its best item and nobody bids. Bidder 1 gets A at 1 and bidder 2 gets B at 1, the optimal allocation.
The exposure problem. Bidder 1 values the pair at 10 and each single item at 0. Bidder 2 values A at 9 and bidder 3 values B at 3. With :
| rounds | what happens | prices of A, B |
|---|---|---|
| 1 | all bid; bidder 1 leads on both | |
| 2 | bidder 2 takes A, bidder 3 takes B | |
| 3 | bidder 1 takes both back | |
| 4 to 8 | bidder 3 stops at 3; bidders 1 and 2 raise A in turns | |
| 9 | the pair would cost at least , so bidder 1 stops |
Bidder 2 wins A at 8, and bidder 1 is left with B at 3, worth 0 to it alone, so its utility is . The welfare is 9, while giving A to bidder 2 and B to bidder 3 gives 12.
Correctness
The proof is in proofs/correctness.md. It shows these facts.
- Termination. No price exceeds the largest value , every round that does not stop raises the sum of the prices by at least , so there are at most rounds. Unsold items keep the price 0.
- Holdings stay wanted under gross substitutes. If every valuation has gross substitutes, then in each round each bidder demands a bundle that contains what it holds. The proof is an induction on the rounds: the personal prices of held items do not change and the others do not fall.
- Near equilibrium at the end. When no bidder bids, each holds a bundle it demands at its personal prices and has utility at least 0. Summing the demand inequalities gives welfare at least . As this is the Kelso-Crawford process with simultaneous bids.
- The exposure problem. The example shows that with complements a straightforward bidder can end with negative utility and the welfare can be far from the optimum.
Proof: The simultaneous ascending auction stops, and with gross substitutes it ends near a Walrasian equilibrium with welfare at least OPT minus m epsilonfull
We use the pseudocode of the page. There are bidders and a set of items. Bidder has a valuation with , and ; we assume is monotone, so for every bundle . The increment is . In round , bidder holds the set of items with , faces the personal prices for and for , and picks a bundle in its demand set (line L5). It bids on (line L6).
Claim 1 (termination). The auction stops after at most rounds. Every price is at most , and an item that is not sold has price 0.
Proof. The empty bundle gives utility 0, so . All personal prices are at least 0, so each with is at most . A bid on item is made at the personal price , and line L9 sets to this value, so after the bid . Prices never fall, so the sum of the prices is at most at all times. Every round that does not stop has a new bid, and line L9 raises the sum by at least . So there are at most such rounds, and one more round stops the auction. An item that never gets a bid keeps the price 0 and the holder NIL; an item that gets a bid keeps a holder forever, because bids cannot be withdrawn.
Claim 2 (holdings are never wanted less, under gross substitutes). Assume every has gross substitutes: for prices and every there is that contains each item with . Then in every round, each bidder picks .
Proof. By induction on the rounds. In round 1, . Assume that in round bidder picked at the personal prices , and let and be its holdings and personal prices in round .
- . An item that holds after round was either held before, so it is in , or won in round , so it is in .
- , with equality on . Take an item . If and , nobody bid on in round (any new bid would take it from ), so . If and , then bid on at and won, so the new price is and . If , then is the new price of plus . Prices do not fall, and if was lost, its price rose by , so in both cases.
By gross substitutes applied to , some contains every item of whose personal price did not change, and these include . So a demanded bundle that contains exists, and the tie rule of line L5 picks one.
Claim 3 (the end is near a Walrasian equilibrium, under gross substitutes). When the auction stops, each bidder holds a bundle in its demand set at its personal prices, , and its utility is at least 0. The welfare satisfies for every allocation .
Proof. In the last round no bidder bids, so , and by Claim 2 , hence . On the personal prices equal the prices, and is a candidate bundle, so the utility is at least 0. For any allocation , gives
Sum over . The sets hold every sold item, and unsold items have price 0 (Claim 1), so , since the are disjoint and prices are at least 0. Also . So .
As , the outcome tends to a Walrasian equilibrium, and the welfare to the optimum. This is the case of the Kelso-Crawford process with simultaneous bids.
Claim 4 (without gross substitutes, a bidder can lose money). Let bidder 1 value the pair at 10 and each single item at 0, let bidder 2 value at 9, and let bidder 3 value at 3, with . Bidder 1 holds both items at the prices after round 3. Bidder 3 stops bidding at price 3, so bidder 1 keeps at 3, while bidders 1 and 2 raise the price of in turns. At the price 8 held by bidder 2, the pair would cost bidder 1 at least , so it demands the empty set, but it cannot withdraw its bid on . It ends with at price 3 and utility . Bidder 2 wins at 8. The welfare is 9, while the optimum gives to bidder 2 and to bidder 3 for 12. The valuation of bidder 1 has complements, so Claim 2 fails for it: in round 9 its only demanded bundle is , which does not contain .
Complexity
There are at most rounds. Each round asks demand queries; answering one by trying all bundles takes time, and the bookkeeping takes . With , the total is time. For valuations with a fast demand oracle, such as unit-demand or additive ones, the factor is replaced by the cost of the oracle. The number of rounds grows with , so real auctions use increments of a few percent of the price.
Properties
- Price discovery. Bidders see the prices of all items during the auction and can move between substitutes.
- Near-efficient with substitutes. Under gross substitutes and straightforward bidding, welfare is within of the optimum, and the final prices are an approximate competitive equilibrium.
- Not truthful. Straightforward bidding is not an equilibrium in general. A bidder that wants several units can reduce its demand to keep prices low, as in the uniform price auction.
- Exposure. With complements, a bidder that bids for a package risks winning only part of it.
- No package bids. A bidder cannot say that it wants items only together.
Variants and improvements
- Activity rules. Real SAAs require each bidder to bid on enough items in each round to keep its eligibility, so that bidders cannot wait until the end and hide their demand.
- Bid withdrawal. Some versions allow a bidder to withdraw a standing bid for a penalty, which softens the exposure problem.
- Combinatorial clock auction. Clock prices rise on items with excess demand, bidders report bundles, and a final sealed round with package bids decides the allocation and payments. This removes exposure at the cost of solving the winner determination problem.
- Ascending proxy auction. Proxy agents bid on packages for the bidders and end in a core outcome.
- Item-price auctions in theory. With unit-demand bidders the process is close to the Demange-Gale-Sotomayor auction, which raises prices on overdemanded sets of items and ends near the minimum Walrasian prices.
When to use it
Use SAA to sell many related items when the bidders see them mostly as substitutes, value the price information that an open auction gives, and the seller wants a simple format without package bids. When bidders have strong complements, such as licenses that are only useful together, use a format with package bids instead.
Pitfalls
- Straightforward bidding is an assumption. The welfare bound holds for straightforward bidders with gross substitutes, not for strategic bidders.
- Exposure. A bidder that needs a package can lose money; risk-averse bidders then bid less, which also lowers welfare.
- Ties in line L5. The tie rule matters. Preferring a bundle that contains the held items keeps the gross substitutes argument valid; another rule can make bidders drop and retake items.
- Increment size. A large ends quickly but loses up to welfare; a small one takes many rounds.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/simultaneous-ascending-auction/. The authors are listed in prov/427AF8.jsonl.
from fractions import Fraction
from typing import Callable, Sequence, Union
Number = Union[int, Fraction]
Valuation = Callable[[frozenset], Number]
def all_bundles(m: int) -> list[frozenset]:
"""All subsets of range(m), in the order of their bit masks."""
return [frozenset(j for j in range(m) if mask >> j & 1) for mask in range(1 << m)]
def demand(v: Valuation, prices: Sequence[Number], bundles: Sequence[frozenset], held: frozenset) -> frozenset:
"""A bundle that maximizes v(S) - sum of prices over S.
Among the best bundles, prefer one that contains the held items, then the
first in the order of bundles. This is the tie rule of a straightforward
bidder.
"""
best, best_key = None, None
for s in bundles:
key = (v(s) - sum(prices[j] for j in s), held <= s)
if best_key is None or key > best_key:
best, best_key = s, key
return best
def simultaneous_ascending_auction(
valuations: Sequence[Valuation], m: int, epsilon: Number
) -> tuple[list[frozenset], list[Number], int]:
"""Simultaneous ascending auction with straightforward bidders.
There are m items, numbered 0 to m - 1, and valuations[i] maps a
frozenset of items to the value of bidder i, with value 0 for the empty
set. Every price starts at 0. In each round, each bidder i faces the
price p_j for an item j it holds and p_j + epsilon for any other item,
picks a demanded bundle T with the tie rule of demand(), and bids on the
items of T that it does not hold. A bid cannot be withdrawn. For each
item with new bids, the bidder with the smallest index becomes the
standing high bidder, and the price rises by epsilon. The auction stops
after a round with no new bid. Return (bundles held, prices, rounds).
"""
if epsilon <= 0:
raise ValueError("epsilon must be positive")
bundles = all_bundles(m)
prices: list[Number] = [0] * m # @line L1
holder: list[int | None] = [None] * m # @line L1
rounds = 0
while True: # @line L2
rounds += 1
new_bids: list[list[int]] = [[] for _ in range(m)]
for i, v in enumerate(valuations): # @line L3
held = frozenset(j for j in range(m) if holder[j] == i) # @line L4
personal = [prices[j] if j in held else prices[j] + epsilon for j in range(m)] # @line L4
target = demand(v, personal, bundles, held) # @line L5
for j in target - held: # @line L6
new_bids[j].append(i) # @line L6
if not any(new_bids): # @line L7
break # @line L7
for j in range(m): # @line L8
if new_bids[j]: # @line L8
holder[j] = min(new_bids[j]) # @line L9
prices[j] = prices[j] + epsilon # @line L9
held_by = [frozenset(j for j in range(m) if holder[j] == i) for i in range(len(valuations))]
return held_by, prices, rounds # @line L10
test_simultaneous_ascending_auction.py 121 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/simultaneous-ascending-auction/. The authors are listed in prov/427AF8.jsonl.
import itertools
import random
from fractions import Fraction
from simultaneous_ascending_auction import all_bundles, demand, simultaneous_ascending_auction
def table(m, f):
"""Freeze a valuation into a dict so that it is cheap to call."""
values = {s: f(s) for s in all_bundles(m)}
return values.__getitem__
def unit_demand(w):
return lambda s: max((w[j] for j in s), default=0)
def additive(w):
return lambda s: sum(w[j] for j in s)
def oxs(rows):
"""Assign the items of s to distinct slots; each slot holds one item.
These valuations (OXS) satisfy gross substitutes."""
def v(s):
items = sorted(s)
best = 0
for slots in itertools.product(range(len(rows) + 1), repeat=len(items)):
used = [t for t in slots if t < len(rows)]
if len(used) == len(set(used)):
best = max(best, sum(rows[t][j] for t, j in zip(slots, items) if t < len(rows)))
return best
return v
def optimum(valuations, m):
best = 0
for owner in itertools.product(range(len(valuations) + 1), repeat=m):
total = 0
for i, v in enumerate(valuations):
total += v(frozenset(j for j in range(m) if owner[j] == i))
best = max(best, total)
return best
def welfare(valuations, held):
return sum(v(s) for v, s in zip(valuations, held))
def test_unit_demand_example() -> None:
v1, v2 = unit_demand([5, 4]), unit_demand([3, 4])
held, prices, rounds = simultaneous_ascending_auction([v1, v2], 2, 1)
assert held == [frozenset({0}), frozenset({1})]
assert prices == [1, 1] and rounds == 2
def test_exposure_example() -> None:
# Bidder 0 wants items 0 and 1 together (value 10); bidder 1 wants item 0
# (value 9) and bidder 2 wants item 1 (value 3).
v = [lambda s: 10 if s >= {0, 1} else 0, lambda s: 9 if 0 in s else 0, lambda s: 3 if 1 in s else 0]
held, prices, rounds = simultaneous_ascending_auction(v, 2, 1)
assert held == [frozenset({1}), frozenset({0}), frozenset()]
assert prices == [8, 3] and rounds == 9
# Bidder 0 is stuck with item 1 at price 3 and value 0.
assert v[0](held[0]) - prices[1] == -3
assert welfare(v, held) == 9 and optimum(v, 2) == 12
def test_edges() -> None:
assert simultaneous_ascending_auction([], 2, 1) == ([], [0, 0], 1)
assert simultaneous_ascending_auction([additive([3])], 1, 1) == ([frozenset({0})], [1], 2)
assert simultaneous_ascending_auction([additive([0, 0])], 2, 1) == ([frozenset()], [0, 0], 1)
try:
simultaneous_ascending_auction([additive([1])], 1, 0)
except ValueError:
pass
else:
raise AssertionError("epsilon must be positive")
def random_gross_substitutes(rng, m):
kind = rng.randrange(3)
if kind == 0:
return unit_demand([rng.randrange(0, 9) for _ in range(m)])
if kind == 1:
return additive([rng.randrange(0, 9) for _ in range(m)])
return oxs([[rng.randrange(0, 9) for _ in range(m)] for _ in range(2)])
def test_gross_substitutes_end_in_near_equilibrium() -> None:
rng = random.Random(1)
bundles = {m: all_bundles(m) for m in (1, 2, 3)}
for trial in range(120):
m, n = rng.randrange(1, 4), rng.randrange(1, 4)
epsilon = Fraction(1, rng.choice([1, 2, 3]))
valuations = [table(m, random_gross_substitutes(rng, m)) for _ in range(n)]
held, prices, rounds = simultaneous_ascending_auction(valuations, m, epsilon)
top = max(v(frozenset(range(m))) for v in valuations)
assert rounds <= m * top / epsilon + 1
sold = set().union(*held)
assert all(prices[j] == 0 for j in range(m) if j not in sold)
for i, v in enumerate(valuations):
personal = [prices[j] if j in held[i] else prices[j] + epsilon for j in range(m)]
best = demand(v, personal, bundles[m], held[i])
# Each bidder demands exactly what it holds at its personal prices.
assert best == held[i]
assert v(held[i]) - sum(prices[j] for j in held[i]) >= 0
assert welfare(valuations, held) >= optimum(valuations, m) - m * epsilon
def test_small_increment_gets_close_to_optimum() -> None:
rng = random.Random(2)
for _ in range(20):
valuations = [table(2, random_gross_substitutes(rng, 2)) for _ in range(3)]
held, _, _ = simultaneous_ascending_auction(valuations, 2, Fraction(1, 10))
assert welfare(valuations, held) >= optimum(valuations, 2) - Fraction(2, 10)
History
The US Federal Communications Commission received authority to auction spectrum licenses in 1993. Paul Milgrom, Robert Wilson and R. Preston McAfee proposed the simultaneous ascending auction for it, and the first such auction ran in July 1994. The format raised large revenue and was copied by many countries. Milgrom (2000) explained its theory: with substitutes and straightforward bidding it reaches a competitive equilibrium, and with complements it suffers from exposure. The later move to package bidding, such as combinatorial clock auctions, came from these limits.
References
- Paul Milgrom, Putting auction theory to work: the simultaneous ascending auction, Journal of Political Economy 108(2) (2000), 245-272, the rules of the auction, the convergence to a competitive equilibrium with substitutes and straightforward bidding, and the problems with complements
- Peter Cramton, Yoav Shoham and Richard Steinberg (eds.), Combinatorial Auctions, MIT Press, 2006, Chapter 4 (Cramton, Simultaneous ascending auctions)
- Tim Roughgarden, Twenty Lectures on Algorithmic Game Theory, Cambridge University Press, 2016, Lecture 8 (spectrum auctions, the exposure problem and demand reduction)
- Paul Milgrom, Putting Auction Theory to Work, Cambridge University Press, 2004, the chapters on the simultaneous ascending auction and on substitutes
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 427AF8 Edit this page History Report an error Markdown