The Unique Games Conjecture
For vertex cover the best algorithm achieves 2 and the best NP-hardness result is ; for max-cut, Goemans-Williamson achieves and NP-hardness stops at (Tight Thresholds: MAX-3SAT, Clique and Set Cover). In 2002 Khot proposed a conjecture about one specific constraint satisfaction problem, the Unique Games Conjecture (UGC), and showed with coauthors that it would close these gaps exactly at the values the known algorithms achieve. The conjecture is still open. This lesson states it precisely, explains why its "almost satisfiable" form is essential, and lists its consequences, each of which is conditional: "assuming the UGC, ... is NP-hard".
Unique games
A unique game with alphabet size is a graph with, for every edge , a permutation of . A labelling satisfies edge if . The value of the game is the largest fraction of edges a labelling can satisfy. "Unique" refers to the fact that the label of one endpoint determines the only good label of the other. A typical example is a system of equations , one per edge.
Unique Games Conjecture (Khot, 2002). For every there is a such that, given a unique game with alphabet size , it is NP-hard to distinguish
- value at least , from
- value at most .
Why "almost satisfiable"
If a unique game is fully satisfiable, a satisfying labelling is easy to find: in each connected component, try all labels for one vertex and propagate along the edges, since every edge forces the label of its other endpoint; any contradiction rules out that starting label. That takes time. So the conjecture must, and does, speak of games that are only nearly satisfiable, where propagation breaks down because a few corrupted edges send the labels in the wrong direction.
import random
from itertools import product
def propagate(n, k, edges):
"""edges: (u, v, c) meaning L(v) = L(u) + c mod k. Returns a satisfying labelling or None."""
adj = {v: [] for v in range(n)}
for u, v, c in edges:
adj[u].append((v, c))
adj[v].append((u, -c))
label = {}
for root in range(n):
if root in label:
continue
for start in range(k): # try every label for the root of this component
trial, stack, ok = {root: start}, [root], True
while stack and ok:
u = stack.pop()
for v, c in adj[u]:
want = (trial[u] + c) % k
if v not in trial:
trial[v] = want
stack.append(v)
elif trial[v] != want:
ok = False
break
if ok:
label.update(trial)
break
else:
return None
return label
def value(n, k, edges):
return max(sum((L[u] + c) % k == L[v] for u, v, c in edges) for L in product(range(k), repeat=n)) / len(edges)
rng = random.Random(6)
n, k = 7, 3
hidden = [rng.randrange(k) for _ in range(n)]
edges = [(u, v, (hidden[v] - hidden[u]) % k) for u in range(n) for v in range(u + 1, n) if rng.random() < 0.6]
print(f"{len(edges)} edges, satisfiable game: propagation finds a labelling: {propagate(n, k, edges) is not None}")
noisy = list(edges)
for i in rng.sample(range(len(noisy)), 2): # corrupt two constraints
u, v, c = noisy[i]
noisy[i] = (u, v, (c + 1) % k)
print(f"two corrupted edges: propagation finds a labelling: {propagate(n, k, noisy) is not None}, "
f"but the value is still {value(n, k, noisy):.3f}")10 edges, satisfiable game: propagation finds a labelling: True
two corrupted edges: propagation finds a labelling: False, but the value is still 0.800
Two corrupted constraints out of ten are enough to make propagation fail, although a labelling satisfying 8 of the 10 edges still exists. Finding one, or even a labelling satisfying a fraction, is what the conjecture says is hard for large .
In C++
The propagation algorithm for constraints.
#include <cstdio>
#include <vector>
struct Edge { int u, v, c; };
bool solve(int n, int k, const std::vector<Edge>& E, std::vector<int>& L) {
std::vector<std::vector<std::pair<int, int>>> adj(n);
for (auto& e : E) { adj[e.u].push_back({e.v, e.c}); adj[e.v].push_back({e.u, (k - e.c) % k}); }
L.assign(n, -1);
for (int root = 0; root < n; root++) {
if (L[root] >= 0) continue;
bool found = false;
for (int start = 0; start < k && !found; start++) {
std::vector<int> T = L, stack = {root};
T[root] = start;
bool ok = true;
while (!stack.empty() && ok) {
int u = stack.back(); stack.pop_back();
for (auto [v, c] : adj[u]) {
int want = (T[u] + c) % k;
if (T[v] < 0) { T[v] = want; stack.push_back(v); }
else if (T[v] != want) { ok = false; break; }
}
}
if (ok) { L = T; found = true; }
}
if (!found) return false;
}
return true;
}
int main() {
int n = 6, k = 5;
std::vector<Edge> E = {{0, 1, 2}, {1, 2, 4}, {2, 0, 4}, {2, 3, 1}, {3, 4, 3}, {4, 5, 2}, {5, 3, 0}};
std::vector<int> L;
if (solve(n, k, E, L)) {
std::printf("labels:");
for (int x : L) std::printf(" %d", x);
std::printf("\n");
} else std::printf("no satisfying labelling\n");
E[6].c = 1; // corrupt one constraint of the second triangle
std::printf("after corrupting one edge: %s\n", solve(n, k, E, L) ? "satisfiable" : "no satisfying labelling");
}labels: 0 2 1 2 0 2
after corrupting one edge: no satisfying labelling
Consequences
Each statement below is a theorem of the form "if the UGC holds, then ... is NP-hard"; none is known unconditionally.
- Vertex cover: no -approximation for any (Khot and Regev, 2008). The matching and LP rounding algorithms of this course would be optimal.
- Max-cut: no -approximation, where is the Goemans-Williamson constant (Khot, Kindler, Mossel and O'Donnell, 2007, using the "Majority is Stablest" theorem of Mossel, O'Donnell and Oleszkiewicz, 2010). The SDP algorithm of Goemans-Williamson Hyperplane Rounding would be exactly optimal.
- Every constraint satisfaction problem: Raghavendra (2008) showed that for each CSP, a canonical SDP relaxation with a suitable rounding achieves the best ratio possible in polynomial time, assuming the UGC: the integrality gap of that SDP is the approximability threshold.
- Scheduling with precedence constraints: no for makespan on identical machines (Svensson, 2011, under a variant of the UGC), matching Graham's list scheduling (Makespan Scheduling and Graham's List Scheduling).
- Others: multiway cut, sparsest cut (any constant), -uniform hypergraph vertex cover (), and many more.
The program computes the Goemans-Williamson constant from its definition by a fine grid search.
from math import cos, pi
best_ratio, best_theta = min(((t / pi) / ((1 - cos(t)) / 2), t) for t in (i * pi / 200000 for i in range(1, 200001)))
print(f"alpha_GW = {best_ratio:.5f}, attained near theta = {best_theta:.4f} rad = {best_theta * 180 / pi:.2f} degrees")alpha_GW = 0.87857, attained near theta = 2.3311 rad = 133.56 degrees
Status of the conjecture
- Evidence for: the 2-to-2 Games Theorem (Khot, Minzer and Safra, 2018, with Dinur and Kindler) proves the UGC's hardness with completeness instead of , sometimes summarized as "the UGC is half true". It already gives the unconditional NP-hardness of vertex cover within .
- Evidence against, or at least limits: Arora, Barak and Steurer (2010) gave an algorithm for unique games running in time , subexponential, so unique games are easier than SAT is believed to be; if the UGC holds, the reductions proving it must blow up the instance size by a polynomial whose degree grows as . On many natural families of instances (expanders, random games), unique games are easy.
- No consensus exists on whether the conjecture is true. Results proved under it are therefore best read as: "beating this ratio would require refuting the UGC", which is still strong evidence that the simple algorithms are the right ones.
Test yourself
Why does the Unique Games Conjecture talk about games of value at least rather than fully satisfiable ones?
- Because fully satisfiable games do not exist
- A fully satisfiable unique game is solved in polynomial time by propagating labels from one vertex per component
- Because must be large
- For technical convenience only
What does the UGC imply for vertex cover?
- A PTAS exists
- No -approximation is possible unless P = NP, if the UGC holds (Khot and Regev, 2008)
- Vertex cover is in P
- The best ratio is , unconditionally
What is and why does it matter for the UGC?
- The integrality gap of the vertex cover LP
- About 0.878, the Goemans-Williamson ratio for max-cut; under the UGC no polynomial algorithm beats it by any
- The best known hardness of MAX-3SAT
- The value of every unique game
Which statement about the status of the UGC is correct?
- It was proved in 2018
- It is open; the 2-to-2 theorem proves a weaker version with completeness about , and subexponential algorithms for unique games exist
- It was refuted by a polynomial algorithm
- It is equivalent to P NP