Algorithm Search⌘K

Problemcore

Maximum Nash welfare allocation

Also called MNW, Nash social welfare maximization.

Find an allocation of goods that maximizes the product of the agents' utilities. It is APX-hard for indivisible goods.

Time
O(n^m (n + m)) worst
Where
m = the number of goods; n = the number of agents

A maximum Nash welfare (MNW) allocation gives indivisible goods to agents so that the product of their utilities is as large as possible. This page treats MNW as an optimization problem: its definition, its hardness and the algorithms that solve it exactly or approximately. The separate page on the unreasonable fairness of MNW states and proves the theorem that every MNW allocation is EF1 and Pareto optimal for additive valuations, which is the main reason to solve this problem. The objective comes from the Nash bargaining solution; for divisible goods it is the Eisenberg-Gale program, which is solved in polynomial time, but for indivisible goods the problem is NP-hard and APX-hard.

In plain words

Each agent says how much it likes each item. We want to split the items so that the result is both efficient and fair. Adding up the happiness of all agents is efficient but can give everything to one enthusiastic agent. Taking only the least happy agent into account is fair but ignores everyone else. Multiplying the happiness values is a middle road: a split in which one agent gets nothing scores zero, and a small gain for a poor agent counts as much as a large gain for a rich one. The product also ignores the units that each agent uses, so an agent cannot gain by stating bigger numbers on every item. The cost is that finding the best split is hard when items cannot be divided.

Definition

Input. Agents N={1,…,n}N = \{1, \dots, n\}, goods MM with ∣M∣=m|M| = m, and for each agent an additive valuation given by values vi(g)≥0v_i(g) \ge 0.

Output. An allocation A=(A1,…,An)A = (A_1, \dots, A_n) of all goods that maximizes the Nash welfare

NW(A)=(∏i=1nvi(Ai))1/n.\mathrm{NW}(A) = \Big( \prod_{i=1}^{n} v_i(A_i) \Big)^{1/n}.

The nn-th root does not change the maximizer; it makes the value scale like a single utility.

Zero welfare. If every allocation gives some agent the value 0, the product is 0 for all allocations and the plain rule says nothing. The rule of Caragiannis et al. (Definition 3.1) then first finds a largest set SS of agents that can get positive values at the same time, and among the allocations that give every agent in SS a positive value it maximizes ∏i∈Svi(Ai)\prod_{i \in S} v_i(A_i). For additive valuations, a set SS can be served this way exactly when the bipartite graph between agents and goods with an edge for each positive value has a matching that covers SS, so a largest SS comes from a maximum bipartite matching.

Scale invariance. Replacing viv_i by civic_i v_i with ci>0c_i > 0 multiplies the product by ∏ici\prod_i c_i and so keeps the same maximizers. The utilitarian rule, which maximizes ∑ivi(Ai)\sum_i v_i(A_i), does not have this property.

Variants

  • Weighted Nash welfare. Maximize ∏ivi(Ai)wi\prod_i v_i(A_i)^{w_i} for agent weights wi>0w_i > 0; equal weights give MNW.
  • Divisible goods. If goods can be split, maximizing ∑ilog⁡vi(xi)\sum_i \log v_i(x_i) is the Eisenberg-Gale convex program. Its optimum is the competitive equilibrium of a Fisher market in which every agent has the same budget, and the DPSV algorithm computes it for linear values.
  • Other valuation classes. The same objective is studied for budget-additive, submodular and general monotone valuations; the hardness results below already hold for additive ones.

Examples

  • Sum against product. Agent 1 values goods aa and bb at 2 each and agent 2 at 1 each. The utilitarian rule gives both goods to agent 1, for a sum of 4; agent 2 has 0 and values agent 1's bundle at 1 even after removing a good, so this is not EF1. MNW gives one good to each agent, with product 2⋅1=22 \cdot 1 = 2, and nobody envies anybody.
  • Three agents and six goods. The agents value goods a,…,fa, \dots, f at (8,7,4,3,2,1)(8, 7, 4, 3, 2, 1), (8,2,6,5,1,3)(8, 2, 6, 5, 1, 3) and (6,7,5,1,4,2)(6, 7, 5, 1, 4, 2). The unique MNW allocation is {a}\{a\}, {c,d,f}\{c, d, f\}, {b,e}\{b, e\}, with values 8, 14 and 11 and product 1232. The round-robin allocation {a,d}\{a, d\}, {c,f}\{c, f\}, {b,e}\{b, e\} has product 11⋅9⋅11=108911 \cdot 9 \cdot 11 = 1089. In the MNW allocation agent 1 values {b,e}\{b, e\} at 9, more than its own 8, so MNW is not envy-free here; without bb the bundle is worth 2, so the envy is within EF1.
  • Zero welfare. Add a fourth agent that values every good at 0. Every allocation then has product 0. The rule gives agents 1 to 3 the allocation above and the fourth agent nothing.

Known algorithms

  • Exhaustive search. Try all nmn^m allocations and evaluate each in O(n+m)O(n + m) time. This is the bound in the front matter.
  • Mixed integer programs. For integer values, a continuous variable WiW_i stands for log⁡vi(Ai)\log v_i(A_i) and is bounded from above by linear constraints whose tightest bound at every integer point xx is log⁡x\log x; this is exact because log⁡\log is concave. The result is a mixed integer linear program with nmn m binary variables and nn continuous ones. Caragiannis et al. (Section 5) use it on Spliddit, where values are integers that sum to 1000 for each agent, and report that it solves every Spliddit instance in under 3 seconds (measurement).
  • Approximation. Cole and Gkatzelis (2015) gave the first constant-factor algorithm, with factor about 2.892.89, by rounding a market equilibrium with spending limits (theorem). Barman, Krishnamurthy and Vaish (2018) reach e1/e≈1.45e^{1/e} \approx 1.45 (theorem, Theorem 3) with the price-rise method of the Barman-Krishnamurthy-Vaish algorithm: its EF1 and Pareto optimal output is also an approximate MNW allocation.

Bounds

  • NP-hard for two agents. See the reduction below. For a fixed nn the problem is only weakly NP-hard: a dynamic program that stores, for each list of values of agents 1 to n−1n - 1, the best value of agent nn runs in time polynomial in mm and the largest value.
  • Strongly NP-hard. When nn is part of the input, a reduction from exact cover by 3-sets shows strong NP-hardness (theorem, Nguyen, Roos and Rothe 2013, as cited by Caragiannis et al.), so no pseudo-polynomial algorithm exists unless P = NP.
  • APX-hard. Lee (2017) proved that MNW has no polynomial-time approximation scheme unless P = NP (theorem). Garg, Hoefer and Mehlhorn (2018) raised the hardness factor to 8/7≈1.069\sqrt{8/7} \approx 1.069 for additive valuations (theorem).
  • Fairness of the optimum. Every MNW allocation is EF1 and Pareto optimal for additive valuations, and gives every agent at least 2/(1+4n−3)2/(1 + \sqrt{4n - 3}) of its maximin share, which is tight. Both results are on the unreasonable fairness page.

Reductions

From PARTITION. Given positive integers a1,…,ama_1, \dots, a_m with sum 2T2T, make two agents with the same values v1(gk)=v2(gk)=akv_1(g_k) = v_2(g_k) = a_k. If the two bundles have values xx and 2T−x2T - x, the product is x(2T−x)≤T2x(2T - x) \le T^2, with equality exactly when x=Tx = T. So the maximum product is T2T^2 if and only if the numbers can be split into two halves of equal sum, and MNW with two agents is NP-hard.

To convex programming. Dropping integrality gives the Eisenberg-Gale program, whose optimum bounds the MNW value from above. The approximation algorithms above round such a market solution.

Applications

  • Spliddit. The website Spliddit uses MNW in its tool for dividing goods, such as items of an estate, because the result is EF1 and Pareto optimal (Caragiannis et al.).
  • Bandwidth and resource sharing. The same objective, under the name proportional fairness, is used to share divisible network capacity.

References

  1. Ioannis Caragiannis, David Kurokawa, Herve Moulin, Ariel D. Procaccia, Nisarg Shah and Junxing Wang, The unreasonable fairness of maximum Nash welfare, ACM Transactions on Economics and Computation 7(3) (2019), article 12 (conference version EC 2016), Definition 3.1 (the MNW rule with the case of zero welfare), Section 1.1 (Spliddit) and Section 5 (the mixed integer program)
  2. Trung Thanh Nguyen, Magnus Roos and Joerg Rothe, A survey of approximability and inapproximability results for social welfare optimization in multiagent resource allocation, Annals of Mathematics and Artificial Intelligence (2013), the strong NP-hardness of maximizing Nash welfare
  3. Euiwoong Lee, APX-hardness of maximizing Nash social welfare with indivisible items, Information Processing Letters 122 (2017), 17-20, the APX-hardness of MNW for additive valuations
  4. Jugal Garg, Martin Hoefer and Kurt Mehlhorn, Approximating the Nash social welfare with budget-additive valuations, Proceedings of the 29th ACM-SIAM Symposium on Discrete Algorithms (SODA 2018), the hardness factor sqrt(8/7) for additive valuations
  5. Richard Cole and Vasilis Gkatzelis, Approximating the Nash social welfare with indivisible items, Proceedings of the 47th ACM Symposium on Theory of Computing (STOC 2015), the first constant-factor approximation algorithm
  6. Siddharth Barman, Sanath Kumar Krishnamurthy and Rohit Vaish, Finding fair and efficient allocations, Proceedings of the 19th ACM Conference on Economics and Computation (EC 2018), 557-574 (arXiv:1707.04731), Theorem 3 (approximation factor about 1.45)

Where this leads

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 proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a known algorithm
  • a contract.yaml