Mechanism design: choose the rules so that honest reports are the best play
机制设计
Model hidden preferences, use the revelation principle, derive Groves and VCG payments, verify truthfulness by brute force on small synthetic environments, and keep VCG's budget, collusion and revenue failures in view.
mechanism-designThe designer knows the goal but not the inputs
Three neighbors must decide whether to build a footbridge. Two would use it; one would lose a view and prefers that nothing is built. A coordinator wants to build exactly when the total benefit exceeds the total harm. The trouble is that each benefit and harm is private. Ask people for numbers and charge nothing, and the two users have every reason to exaggerate; ask the third neighbor, and they will exaggerate the harm. Majority voting ignores intensity; a fixed fee may exclude someone who values the bridge a lot.
Mechanism design turns the question around. Ordinary game theory takes a game as given and asks what self-interested players will do. Mechanism design starts from the outcome the designer wants and asks which rules (which messages players may send, how messages map to an outcome and to payments) make self-interested play produce it, whatever the private preferences turn out to be. Shoham and Leyton-Brown call it “inverse game theory” and also “incentive engineering”: the participants of a distributed protocol are not assumed cooperative and must be motivated to play their part. Mechanism design introduction
This article covers the general framework and the Vickrey–Clarke–Groves (VCG) mechanism, computed exactly on small synthetic examples. Its most famous application, selling items, is treated separately in auction mechanisms, and the solution concepts used here (dominant strategies and equilibria) are introduced in game theory fundamentals and Nash equilibrium.
Implementation, revelation, and payments that internalize externalities
Setting and mechanism. A Bayesian game setting has agents , outcomes , a type space with a common prior , and utilities . A mechanism is a pair : action sets for each agent and a map from action profiles to (possibly random) outcomes. Setting plus mechanism define a game. A social choice function says which outcome the designer wants for each preference profile. The mechanism implements in dominant strategies if every agent has a dominant strategy and the resulting outcome is always ‘s choice; a weaker target is implementation in Bayes–Nash equilibrium, where strategies are best responses only in expectation over the prior. A mechanism with dominant strategies is called strategy-proof. Definitions 10.2.1–10.2.4
The revelation principle. A direct mechanism asks each agent only to report its type. It is truthful (incentive compatible) if reporting the true type is an equilibrium. The revelation principle says that if any mechanism implements in dominant strategies, then a truthful direct mechanism does too: the new mechanism takes the reports, computes the strategies agents would have played in the old mechanism, and simulates it. Any gain from lying to the new mechanism would have been a gain from deviating in the old one. The same argument works for Bayes–Nash implementation. Theorem 10.2.5
The principle restricts the search, not the practice. The book lists the caveats: the new mechanism absorbs the computation of agents’ strategies, which can be hard; agents must reveal their full type, which may be private or too costly to communicate; and even if the original mechanism had a unique equilibrium, the direct one may have extra equilibria. Revelation principle caveats
An impossibility. Without restricting preferences, little can be done: by the Gibbard–Satterthwaite theorem, if there are at least three outcomes, every outcome can be selected for some preference profile, and the rule is dominant-strategy truthful, then it is dictatorial. The result is specific to dominant-strategy implementation. Theorem 10.2.6
Quasilinear preferences. The way out is to allow money and assume each agent’s utility separates into a value for the non-monetary choice minus a payment, (the book’s general form applies a strictly increasing function to the payment, which encodes risk attitude). A choice is efficient if it maximizes the sum of values. Definition 10.3.1
Groves mechanisms. Agents report valuation functions . The mechanism chooses the outcome that maximizes reported welfare and charges each agent an arbitrary amount that does not depend on its own report, minus the reported welfare of everyone else:
Truth-telling is a dominant strategy. Agent ‘s utility is
The last term does not depend on ‘s report. The first two terms are exactly what the mechanism maximizes when , so reporting truthfully makes the mechanism choose the outcome likes best given everyone else’s reports, whatever those reports are. Payments make each agent care about the others’ reported welfare as much as its own; the externality is internalized. Theorem 10.4.2 Green and Laffont showed the converse for unrestricted quasilinear values: any efficient dominant-strategy mechanism must have Groves payments. Theorem 10.4.3
VCG. The Clarke tax sets to the best welfare the others could get without :
Each agent pays the harm its presence does to the others. An agent whose presence does not change the outcome pays nothing; only pivotal agents pay, hence the name pivot mechanism. In a single-item auction the winner’s externality is the second-highest bid, so the Vickrey auction is the special case. Roughgarden rewrites the payment as the agent’s bid minus a rebate equal to the welfare increase it brings; since the rebate is nonnegative (left there as an exercise), truthful agents never pay more than their value for the chosen outcome. VCG payment rule Definition 10.4.5
What VCG does not guarantee by itself. Individual rationality (no truthful agent ends with negative utility) holds under choice-set monotonicity (removing an agent never adds feasible choices) and no negative externalities (an agent values every choice feasible without it at zero or more). Weak budget balance (payments sum to at least zero) holds under the no-single-agent-effect condition, as in one-sided auctions. Among efficient, ex interim individually rational mechanisms in those settings, VCG collects the most revenue. Theorems 10.4.8, 10.4.10 Its drawbacks are well documented: full disclosure of private values; vulnerability to collusion; payments that can be far above the cost of the second-best alternative (“not frugal”); revenue that can fall when bidders are added, which also opens the door to bidding under fake identities; and no way, in general, to hand the collected money back without breaking incentives. Section 10.4.5 Computation is a further cost. Roughgarden’s payment formula needs the welfare maximization solved once with everyone and once without each agent, and in his combinatorial-auction model each bidder has private bundle values and there are outcomes. VCG payment rule; combinatorial auctions
VCG on two synthetic environments, with exhaustive deviation checks
The program enumerates every outcome, so the welfare maximization is exact; values are integers, so payments are exact. Ties are broken by a fixed outcome order. All values are invented for teaching.
Environment 1 is the footbridge: agents 1 and 2 value building at 120 and 70, agent 3 values not building at 160, and building costs nothing extra. The program prints VCG payments, then for each agent searches 61×61 = 3,721 alternative reports (any value from 0 to 300 in steps of 5 for each outcome) for a gain over truth-telling. It then runs a Groves mechanism with , and a coalition in which agents 1 and 2 both overstate by 100.
Environment 2 sells two items, A and B. Bidder 1 wants only A (value 10), bidder 2 only B (10), bidder 3 only the pair (12). There are 16 outcomes, each item going to one of three bidders or unsold. For each bidder the program tries all 16³ = 4,096 reports of its (A, B, AB) values from 0 to 15, then reruns the auction without bidder 2.
"""Exact VCG computations on small synthetic environments (stdlib only)."""
from itertools import product
def best_outcome(outcomes, reports, agents):
"""Welfare-maximizing outcome for `agents`; ties broken by outcome order."""
return max(outcomes, key=lambda o: (sum(reports[i][o] for i in agents), -outcomes.index(o)))
def welfare(o, reports, agents):
return sum(reports[i][o] for i in agents)
def vcg(outcomes, reports, h='clarke'):
"""Groves mechanism. h='clarke' gives VCG; h='zero' sets h_i = 0."""
everyone = list(range(len(reports)))
chosen = best_outcome(outcomes, reports, everyone)
pay = []
for i in everyone:
others = [j for j in everyone if j != i]
others_now = welfare(chosen, reports, others)
if h == 'clarke':
without_i = best_outcome(outcomes, reports, others)
pay.append(welfare(without_i, reports, others) - others_now)
else:
pay.append(-others_now)
return chosen, pay
def utilities(values, chosen, pay):
return [values[i][chosen] - pay[i] for i in range(len(values))]
def best_misreport_gain(outcomes, values, i, grid):
"""Largest utility gain agent i can get from any report on the grid (others truthful)."""
chosen, pay = vcg(outcomes, values)
truthful = values[i][chosen] - pay[i]
best = (0, None)
for vec in grid:
reports = list(values)
reports[i] = dict(zip(outcomes, vec))
c, p = vcg(outcomes, reports)
gain = values[i][c] - p[i] - truthful
if gain > best[0]:
best = (gain, vec)
return best
# 1) Public project: build or not, no construction cost, synthetic values.
proj = ['build', 'skip']
values = [{'build': 120, 'skip': 0}, {'build': 70, 'skip': 0}, {'build': 0, 'skip': 160}]
chosen, pay = vcg(proj, values)
print('Public project, truthful reports')
print(' outcome:', chosen, '| VCG payments:', pay, '| utilities:', utilities(values, chosen, pay),
'| revenue:', sum(pay))
grid = [(b, s) for b in range(0, 301, 5) for s in range(0, 301, 5)]
for i in range(3):
print(f' agent {i + 1}: best gain from any report on a 61x61 grid =',
best_misreport_gain(proj, values, i, grid)[0])
_, zero_pay = vcg(proj, values, h='zero')
print(' Groves with h_i = 0: payments', zero_pay, '| revenue', sum(zero_pay))
collude = [{'build': 220, 'skip': 0}, {'build': 170, 'skip': 0}, values[2]]
c2, p2 = vcg(proj, collude)
print(' agents 1 and 2 both overstate by 100: outcome', c2, '| payments', p2,
'| true utilities', utilities(values, c2, p2))
# 2) Two items A, B; outcome = (owner of A, owner of B); 0 means unsold.
items = list(product(range(4), repeat=2))
bundle = [{'A': 10, 'B': 0, 'AB': 10}, {'A': 0, 'B': 10, 'AB': 10}, {'A': 0, 'B': 0, 'AB': 12}]
def table(bundle_values):
out = []
for k, v in enumerate(bundle_values, start=1):
row = {}
for o in items:
got = ('A' if o[0] == k else '') + ('B' if o[1] == k else '')
row[o] = v.get(got, 0)
out.append(row)
return out
vals = table(bundle)
chosen, pay = vcg(items, vals)
print('Two-item allocation, truthful reports')
print(' owners (A, B):', chosen, '| payments:', pay, '| utilities:', utilities(vals, chosen, pay),
'| revenue:', sum(pay))
grid3 = list(product(range(0, 16), repeat=3))
for i in range(3):
reports = []
for vec in grid3:
rows = table([bundle[j] if j != i else {'A': vec[0], 'B': vec[1], 'AB': vec[2]}
for j in range(3)])
reports.append(tuple(rows[i][o] for o in items))
print(f' bidder {i + 1}: best gain over {len(grid3)} bundle reports =',
best_misreport_gain(items, vals, i, reports)[0])
solo = table([bundle[0], {'A': 0, 'B': 0, 'AB': 0}, bundle[2]])
c3, p3 = vcg(items, solo)
print(' bidder 2 absent (values zeroed): owners', c3, '| payments', p3, '| revenue', sum(p3))
shill = table([bundle[0], {'A': 0, 'B': 10, 'AB': 10}, bundle[2]])
c4, p4 = vcg(items, shill)
print(' bidder 2 absent, bidder 1 adds a fake B-bidder: owners', c4, '| payments', p4,
'| bidder 1 true utility', bundle[0]['A'] - p4[0] - p4[1])
Recorded output:
Public project, truthful reports
outcome: build | VCG payments: [90, 40, 0] | utilities: [30, 30, 0] | revenue: 130
agent 1: best gain from any report on a 61x61 grid = 0
agent 2: best gain from any report on a 61x61 grid = 0
agent 3: best gain from any report on a 61x61 grid = 0
Groves with h_i = 0: payments [-70, -120, -190] | revenue -380
agents 1 and 2 both overstate by 100: outcome build | payments [0, 0, 0] | true utilities [120, 70, 0]
Two-item allocation, truthful reports
owners (A, B): (1, 2) | payments: [2, 2, 0] | utilities: [8, 8, 0] | revenue: 4
bidder 1: best gain over 4096 bundle reports = 0
bidder 2: best gain over 4096 bundle reports = 0
bidder 3: best gain over 4096 bundle reports = 0
bidder 2 absent (values zeroed): owners (3, 3) | payments [0, 0, 10] | revenue 10
bidder 2 absent, bidder 1 adds a fake B-bidder: owners (1, 2) | payments [2, 2, 0] | bidder 1 true utility 6
Footbridge. Total value of building is 190 against 160 for not building, so the bridge is built. Without agent 1 the others would prefer not to build (160 against 70), so agent 1 is pivotal and pays 160 − 70 = 90; agent 2 pays 160 − 120 = 40; agent 3 is not pivotal and pays nothing. Truthful utilities are 30, 30 and 0. No report on the grid improves any agent’s utility. That is a finite check of the dominant-strategy claim for this instance, not a proof; the proof is the Groves argument above.
With the mechanism is still a Groves mechanism, and still truthful, but it pays each agent the others’ welfare: payments of −70, −120 and −190, a deficit of 380. Incentives come from the dependence on one’s own report, and only decides who funds them. When agents 1 and 2 both inflate by 100, neither is pivotal any more, both payments drop to zero, and their true utilities rise to 120 and 70. Each deviation alone was unprofitable; together they gain 130 at the expense of the designer’s revenue. This mirrors the referendum example in the book with different numbers. Collusion example
Two items. VCG gives A to bidder 1 and B to bidder 2 (welfare 20 against 12), and each pays 12 − 10 = 2: without bidder 1, the best the others could do is give the pair to bidder 3. Revenue is 4, although bidder 3 alone was willing to pay 12 for the same two items. Remove bidder 2 and bidder 3 wins both items and pays 10. Adding a bidder cut revenue from 10 to 4, the revenue non-monotonicity the book warns about. The same numbers show the identity problem: in the world without bidder 2, bidder 1 loses to bidder 3 and gets nothing, but if it also enters a fake bidder asking for B at 10, it wins A and pays 2 + 2 = 4 for an item worth 10 to it, a utility of 6 (the last output line). No unilateral misreport on the 4,096-point grid helps any bidder.
The cost is visible in the code: each VCG run solves welfare maximizations over all outcomes, and the deviation checks multiply that by the grid size. With items and bidders, ; exact VCG for large combinatorial problems needs an exact optimizer, and replacing it with a heuristic generally breaks the incentive argument.
Where the guarantees stop
Dominant-strategy truthfulness is a statement about unilateral deviations. It says nothing about coalitions, multiple identities, or repeated interaction in which revealing a value today hurts tomorrow. Quasilinear utility rules out budget constraints and wealth effects; a bidder who cannot pay its value is outside the model. Efficiency is measured in reported willingness to pay, so the mechanism weights people by money.
The positive results also depend on conditions that are easy to violate. The footbridge setting satisfies choice-set monotonicity and has no negative externalities in the book’s sense, and VCG ran a surplus; a shortest-path procurement problem satisfies the same two conditions and VCG pays out more than it collects. Section 10.4.4 In our reading, nothing in these results promises budget balance, individual rationality and efficiency at once; each positive result above holds only under its own conditions.
Our checks are finite grids on two toy environments with integer values. They would catch an implementation error that breaks truthfulness on those grids, but they do not verify the mechanism on other environments, do not test random tie-breaking, and are not evidence about any real allocation problem.
Payments, pivots and failure modes
-
In the footbridge example, agent 2’s value for building rises from 70 to 100. Recompute the outcome and all VCG payments.
Answer: Building is worth 220 against 160, so it is built. Without agent 1: 100 against 160, not built, so agent 1 pays 160 − 100 = 60. Without agent 2: 120 against 160, not built, so agent 2 pays 160 − 120 = 40. Agent 3 is not pivotal and pays 0. Utilities are 60, 60 and 0.
-
Why does adding an arbitrary function to agent ‘s payment not change its incentives, while making the payment depend on in any other way generally does?
Answer: A term that does not depend on ‘s report is a constant from ‘s point of view, so it cannot change which report maximizes utility. Green–Laffont shows that for unrestricted quasilinear values any other dependence of the payment on ‘s own report breaks dominant-strategy truthfulness of an efficient rule.
-
A designer says: “VCG is truthful, so no group of bidders can profit by misreporting.” Refute it with numbers from this article.
Answer: In the footbridge, agents 1 and 2 jointly overstate by 100. The outcome stays “build”, payments fall from 90 and 40 to 0 and 0, and their true utilities rise from 30 and 30 to 120 and 70. Truthfulness in dominant strategies covers only one agent deviating at a time.
-
A city wants to allocate 30 market stalls among 200 vendors with complementary preferences over neighboring stalls, must cover its administrative cost from fees, and worries that large vendors will register shell companies. Is VCG a good default? What would you check first?
Answer: Probably not as a default. Exact VCG needs exact welfare maximization over a huge combinatorial outcome space; it may not raise enough revenue to cover costs; and the two-item example shows that extra identities and complementary bids can cut revenue sharply. First check how much revenue VCG would raise on realistic synthetic value profiles, whether identities can be verified, and whether a simpler mechanism with a reserve price or posted prices meets the city’s actual objective. The incentive guarantees remain a useful benchmark for any alternative.
Where the theory continues
Shoham and Leyton-Brown’s chapter 10 continues with mechanisms beyond efficiency, tractable Groves mechanisms, applications such as task scheduling and multicast cost sharing, two-sided matching, and mechanisms with constraints, and its notes trace the ideas to Hurwicz, Gibbard, Myerson, Vickrey, Clarke and Groves. Chapter 10 and notes Roughgarden’s lecture places VCG in a course on algorithmic mechanism design, where the tension between incentive guarantees, welfare and polynomial running time is the main theme, and introduces combinatorial auctions as the practical setting in which that tension bites. VCG and combinatorial auctions
A useful mechanism-design report states the type space, the solution concept, which conditions (monotonicity, externalities, single-agent effect) hold, what happens to the budget, and how the mechanism behaves under coalitions and multiple identities.
Make a prediction, then check
In VCG, which agents pay a positive amount?
Learning objectives
- Formulate a mechanism design problem with Bayesian game settings, implementation concepts and the revelation principle, including its caveats.
- Derive and compute Groves/VCG payments, check truthfulness, and identify failures in individual rationality, budget balance, collusion and revenue monotonicity.
Prerequisites & connections
Explore related knowledge →References
- Multiagent Systems: Algorithmic, Game-Theoretic, and Logical Foundations — Revision 1.1 PDF, chapter 10 (mechanism design), scoped
Yoav Shoham; Kevin Leyton-Brown · 2010 - CS364A Lecture #7: Multi-Parameter Mechanism Design and the VCG Mechanism — scoped lecture notes
Tim Roughgarden · 2013
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Claude · 2026-12-02 · Independent AI check (Claude subagent, not the author; not a human or expert review). Ran example.py with python3 and diffed against example.stdout.txt (identical); confirmed byte-identical python blocks and quoted numbers. Re-derived by hand the footbridge VCG payments 90/40/0 (utilities 30/30/0, revenue 130), the h_i=0 Groves payments -70/-120/-190 and the 380 deficit, the +100 collusion outcome, the two-item payments 2/2, revenue 4 versus 10 without bidder 2, the shill utility 6, the grid sizes 3,721 and 4,096, and exercise 1 (payments 60/40/0). Checked that the footbridge satisfies choice-set monotonicity and no negative externalities. Re-read in Shoham and Leyton-Brown Revision 1.1 printed pages 273-280 (inverse game theory, incentive engineering, revelation principle caveats, Gibbard-Satterthwaite), 294-300 (Theorems 10.4.8 and 10.4.10 with proofs, revenue-maximality remark, drawbacks 2-5 with Tables 10.1-10.4) and the 10.8 notes on 326-327; re-read Roughgarden Lecture 7 pages 1-4 and glanced at page 5. Did not re-read the Groves proof pages 288-293 line by line. Did not render the MDX.
- VCG payments 90/40/0, the Groves deficit of 380, the collusion and two-item numbers were all re-derived by hand.
- IR, weak budget balance, revenue-maximality and the five drawbacks were checked against the pages; Vickrey, Myerson and others are named only via the book's notes.
- zh and en match section by section.
Source locations checked:
- Multiagent Systems: Algorithmic, Game-Theoretic, and Logical Foundations — Revision 1.1 PDF, chapter 10 (mechanism design), scoped · Printed pages 274–280, 288–300 and 326–327 of the Revision 1.1 PDF. Checked: inverse game theory/incentive engineering wording, Definitions 10.2.1–10.2.4, Theorem 10.2.5 and its proof and caveats (computation, privacy, extra equilibria), Theorem 10.2.6 conditions, Definition 10.3.1, Definition 10.4.1 and proof of Theorem 10.4.2, Theorem 10.4.3, Clarke tax and Definition 10.4.5, pivot interpretation, shortest-path example, Definitions 10.4.6–10.4.7 and Theorem 10.4.8, Theorem 10.4.10 and revenue-maximality remark, drawbacks 1–5 with Tables 10.1–10.4, notes on Hurwicz, Gibbard, Myerson, Vickrey 1961, Groves 1973, Clarke 1971, Green–Laffont 1977. Not read: 281–287, 301–325 (TOC only).
- CS364A Lecture #7: Multi-Parameter Mechanism Design and the VCG Mechanism — scoped lecture notes · Pages 1–4 of the 7-page 2013-10-14 notes. Checked: general multi-parameter model, Theorem 2.1, externality payment (2), DSIC proof via terms (A)/(B), bid-minus-rebate (4) and nonnegativity left as exercise, combinatorial model with 2^m parameters and (n+1)^m outcomes. Not read: pages 5–7.
Related topics