Algorithm Search⌘K

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
Properties
not comparison baseddeterministiciterative
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 mϵm\epsilon of the optimum for mm items and increment ϵ\epsilon. 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 mm items and nn bidders. Bidder ii has a valuation viv_i on sets of items, with vi(∅)=0v_i(\emptyset) = 0, 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 ∑ivi(Hi)\sum_i v_i(H_i) for the final holdings HiH_i, 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

  1. SAA(v_1, ..., v_n, m, ε)
  2. 1for each item j: p_j ← 0, holder_j ← NIL
  3. 2repeat
  4. 3for each bidder i
  5. 4H_i ← the items with holder i; q_j ← p_j for j in H_i and q_j ← p_j + ε otherwise
  6. 5T_i ← a bundle that maximizes v_i(T) - Σ_{j ∈ T} q_j, preferring one that contains H_i
  7. 6bid on each item of T_i \ H_i
  8. 7if there was no new bid: stop
  9. 8for each item j with new bids
  10. 9holder_j ← the new bidder with the smallest index; p_j ← p_j + ε
  11. 10return 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 2m2^m 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 ϵ=1\epsilon = 1: in round 1 both want an item at prices (1,1)(1, 1); 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 {A,B}\{A, B\} at 10 and each single item at 0. Bidder 2 values A at 9 and bidder 3 values B at 3. With ϵ=1\epsilon = 1:

rounds what happens prices of A, B
1 all bid; bidder 1 leads on both 1,11, 1
2 bidder 2 takes A, bidder 3 takes B 2,22, 2
3 bidder 1 takes both back 3,33, 3
4 to 8 bidder 3 stops at 3; bidders 1 and 2 raise A in turns 8,38, 3
9 the pair would cost at least 12>1012 > 10, so bidder 1 stops 8,38, 3

Bidder 2 wins A at 8, and bidder 1 is left with B at 3, worth 0 to it alone, so its utility is −3-3. 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 VV, every round that does not stop raises the sum of the prices by at least ϵ\epsilon, so there are at most mV/ϵ+1mV/\epsilon + 1 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 OPT−mϵ\mathrm{OPT} - m\epsilon. As ϵ→0\epsilon \to 0 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 nn bidders and a set MM of mm items. Bidder ii has a valuation viv_i with vi(∅)=0v_i(\emptyset) = 0, and V=max⁡ivi(M)V = \max_i v_i(M); we assume viv_i is monotone, so vi(S)≤Vv_i(S) \le V for every bundle SS. The increment is ϵ>0\epsilon > 0. In round rr, bidder ii holds the set HiH_i of items jj with hj=ih_j = i, faces the personal prices qji=pjq^i_j = p_j for j∈Hij \in H_i and qji=pj+ϵq^i_j = p_j + \epsilon for j∉Hij \notin H_i, and picks a bundle TiT_i in its demand set Di(qi)=arg⁡max⁡S(vi(S)−∑j∈Sqji)D_i(q^i) = \arg\max_S \big(v_i(S) - \sum_{j \in S} q^i_j\big) (line L5). It bids on Ti∖HiT_i \setminus H_i (line L6).

Claim 1 (termination). The auction stops after at most mV/ϵ+1mV/\epsilon + 1 rounds. Every price is at most VV, and an item that is not sold has price 0.

Proof. The empty bundle gives utility 0, so vi(Ti)−∑j∈Tiqji≥0v_i(T_i) - \sum_{j \in T_i} q^i_j \ge 0. All personal prices are at least 0, so each qjiq^i_j with j∈Tij \in T_i is at most vi(Ti)≤Vv_i(T_i) \le V. A bid on item jj is made at the personal price pj+ϵp_j + \epsilon, and line L9 sets pjp_j to this value, so after the bid pj≤Vp_j \le V. Prices never fall, so the sum of the prices is at most mVmV at all times. Every round that does not stop has a new bid, and line L9 raises the sum by at least ϵ\epsilon. So there are at most mV/ϵmV/\epsilon 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. □\square

Claim 2 (holdings are never wanted less, under gross substitutes). Assume every viv_i has gross substitutes: for prices q≤q′q \le q' and every S∈Di(q)S \in D_i(q) there is S′∈Di(q′)S' \in D_i(q') that contains each item j∈Sj \in S with qj=qj′q_j = q'_j. Then in every round, each bidder picks Ti⊇HiT_i \supseteq H_i.

Proof. By induction on the rounds. In round 1, Hi=∅H_i = \emptyset. Assume that in round rr bidder ii picked T⊇HT \supseteq H at the personal prices qq, and let H′H' and q′q' be its holdings and personal prices in round r+1r + 1.

  • H′⊆TH' \subseteq T. An item that ii holds after round rr was either held before, so it is in H⊆TH \subseteq T, or won in round rr, so it is in T∖HT \setminus H.
  • q′≥qq' \ge q, with equality on H′H'. Take an item jj. If j∈H′j \in H' and j∈Hj \in H, nobody bid on jj in round rr (any new bid would take it from ii), so qj′=pj=qjq'_j = p_j = q_j. If j∈H′j \in H' and j∉Hj \notin H, then ii bid on jj at qj=pj+ϵq_j = p_j + \epsilon and won, so the new price is qjq_j and qj′=qjq'_j = q_j. If j∉H′j \notin H', then qj′q'_j is the new price of jj plus ϵ\epsilon. Prices do not fall, and if j∈Hj \in H was lost, its price rose by ϵ\epsilon, so qj′≥qjq'_j \ge q_j in both cases.

By gross substitutes applied to T∈Di(q)T \in D_i(q), some S′∈Di(q′)S' \in D_i(q') contains every item of TT whose personal price did not change, and these include H′H'. So a demanded bundle that contains H′H' exists, and the tie rule of line L5 picks one. □\square

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, Hi∈Di(qi)H_i \in D_i(q^i), and its utility vi(Hi)−∑j∈Hipjv_i(H_i) - \sum_{j \in H_i} p_j is at least 0. The welfare satisfies ∑ivi(Hi)≥∑ivi(Oi)−mϵ\sum_i v_i(H_i) \ge \sum_i v_i(O_i) - m\epsilon for every allocation (O1,…,On)(O_1, \ldots, O_n).

Proof. In the last round no bidder bids, so Ti∖Hi=∅T_i \setminus H_i = \emptyset, and by Claim 2 Ti⊇HiT_i \supseteq H_i, hence Hi=Ti∈Di(qi)H_i = T_i \in D_i(q^i). On HiH_i the personal prices equal the prices, and ∅\emptyset is a candidate bundle, so the utility is at least 0. For any allocation OO, Hi∈Di(qi)H_i \in D_i(q^i) gives

vi(Hi)−∑j∈Hipj≥vi(Oi)−∑j∈Oiqji≥vi(Oi)−∑j∈Oipj−ϵ∣Oi∣.v_i(H_i) - \sum_{j \in H_i} p_j \ge v_i(O_i) - \sum_{j \in O_i} q^i_j \ge v_i(O_i) - \sum_{j \in O_i} p_j - \epsilon |O_i|.

Sum over ii. The sets HiH_i hold every sold item, and unsold items have price 0 (Claim 1), so ∑i∑j∈Hipj=∑j∈Mpj≥∑i∑j∈Oipj\sum_i \sum_{j \in H_i} p_j = \sum_{j \in M} p_j \ge \sum_i \sum_{j \in O_i} p_j, since the OiO_i are disjoint and prices are at least 0. Also ∑i∣Oi∣≤m\sum_i |O_i| \le m. So ∑ivi(Hi)≥∑ivi(Oi)−mϵ\sum_i v_i(H_i) \ge \sum_i v_i(O_i) - m\epsilon. □\square

As ϵ→0\epsilon \to 0, 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 {A,B}\{A, B\} at 10 and each single item at 0, let bidder 2 value AA at 9, and let bidder 3 value BB at 3, with ϵ=1\epsilon = 1. Bidder 1 holds both items at the prices (3,3)(3, 3) after round 3. Bidder 3 stops bidding at price 3, so bidder 1 keeps BB at 3, while bidders 1 and 2 raise the price of AA in turns. At the price 8 held by bidder 2, the pair would cost bidder 1 at least 9+3=12>109 + 3 = 12 > 10, so it demands the empty set, but it cannot withdraw its bid on BB. It ends with BB at price 3 and utility −3-3. Bidder 2 wins AA at 8. The welfare is 9, while the optimum gives AA to bidder 2 and BB 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 ∅\emptyset, which does not contain H1={B}H_1 = \{B\}. □\square

Complexity

There are at most mV/ϵ+1mV/\epsilon + 1 rounds. Each round asks nn demand queries; answering one by trying all 2m2^m bundles takes O(m2m)O(m 2^m) time, and the bookkeeping takes O(nm)O(nm). With r=V/ϵr = V/\epsilon, the total is O(nm22mr)O(n m^2 2^m r) time. For valuations with a fast demand oracle, such as unit-demand or additive ones, the 2m2^m factor is replaced by the cost of the oracle. The number of rounds grows with 1/ϵ1/\epsilon, 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 mϵm\epsilon 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 ϵ\epsilon ends quickly but loses up to mϵm\epsilon 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.

simultaneous_ascending_auction.pyI0RawGitHub
# 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

  1. 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
  2. Peter Cramton, Yoav Shoham and Richard Steinberg (eds.), Combinatorial Auctions, MIT Press, 2006, Chapter 4 (Cramton, Simultaneous ascending auctions)
  3. Tim Roughgarden, Twenty Lectures on Algorithmic Game Theory, Cambridge University Press, 2016, Lecture 8 (spectrum auctions, the exposure problem and demand reduction)
  4. 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.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a scene preset for the example