TExcelTAD
Home › Approximation Algorithms › The Unique Games Conjecture

The Unique Games Conjecture

For vertex cover the best algorithm achieves 2 and the best NP-hardness result is 2\sqrt{2}; for max-cut, Goemans-Williamson achieves 0.8780.878 and NP-hardness stops at 1617≈0.941\frac{16}{17} \approx 0.941 (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 kk is a graph G=(V,E)G = (V, E) with, for every edge e=(u,v)e = (u, v), a permutation πe\pi_e of {1,…,k}\{1, \ldots, k\}. A labelling L:V→{1,…,k}L : V \to \{1, \ldots, k\} satisfies edge ee if L(v)=πe(L(u))L(v) = \pi_e(L(u)). 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 xu−xv≡cuv(modk)x_u - x_v \equiv c_{uv} \pmod k, one per edge.

Unique Games Conjecture (Khot, 2002). For every ε,δ>0\varepsilon, \delta > 0 there is a k=k(ε,δ)k = k(\varepsilon, \delta) such that, given a unique game with alphabet size kk, it is NP-hard to distinguish

  • value at least 1−ε1 - \varepsilon, from
  • value at most δ\delta.

Why "almost satisfiable"

If a unique game is fully satisfiable, a satisfying labelling is easy to find: in each connected component, try all kk 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 O(k(∣V∣+∣E∣))O(k(\lvert V \rvert + \lvert E \rvert)) 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.

python · try it yourself
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 δ\delta fraction, is what the conjecture says is hard for large kk.

In C++

The propagation algorithm for xv−xu≡c(modk)x_v - x_u \equiv c \pmod k constraints.

cpp · try it yourself
#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 (2−ε)(2 - \varepsilon)-approximation for any ε>0\varepsilon > 0 (Khot and Regev, 2008). The matching and LP rounding algorithms of this course would be optimal.
  • Max-cut: no (αGW+ε)(\alpha_{GW} + \varepsilon)-approximation, where αGW=min⁡0<θ≤πθ/π(1−cos⁡θ)/2≈0.87857\alpha_{GW} = \min_{0 < \theta \le \pi} \frac{\theta/\pi}{(1 - \cos\theta)/2} \approx 0.87857 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 (2−ε)(2 - \varepsilon) 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), kk-uniform hypergraph vertex cover (k−εk - \varepsilon), and many more.

The program computes the Goemans-Williamson constant from its definition by a fine grid search.

python · try it yourself
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 12−ε\frac{1}{2} - \varepsilon instead of 1−ε1 - \varepsilon, sometimes summarized as "the UGC is half true". It already gives the unconditional NP-hardness of vertex cover within 2−ε\sqrt{2} - \varepsilon.
  • Evidence against, or at least limits: Arora, Barak and Steurer (2010) gave an algorithm for unique games running in time exp⁡(npoly(ε))\exp(n^{\text{poly}(\varepsilon)}), 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 ε→0\varepsilon \to 0. 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 1−ε1 - \varepsilon rather than fully satisfiable ones?

  1. Because fully satisfiable games do not exist
  2. A fully satisfiable unique game is solved in polynomial time by propagating labels from one vertex per component
  3. Because kk must be large
  4. For technical convenience only

What does the UGC imply for vertex cover?

  1. A PTAS exists
  2. No (2−ε)(2 - \varepsilon)-approximation is possible unless P = NP, if the UGC holds (Khot and Regev, 2008)
  3. Vertex cover is in P
  4. The best ratio is 2\sqrt{2}, unconditionally

What is αGW\alpha_{GW} and why does it matter for the UGC?

  1. The integrality gap of the vertex cover LP
  2. About 0.878, the Goemans-Williamson ratio for max-cut; under the UGC no polynomial algorithm beats it by any ε\varepsilon
  3. The best known hardness of MAX-3SAT
  4. The value of every unique game

Which statement about the status of the UGC is correct?

  1. It was proved in 2018
  2. It is open; the 2-to-2 theorem proves a weaker version with completeness about 12\frac{1}{2}, and subexponential algorithms for unique games exist
  3. It was refuted by a polynomial algorithm
  4. It is equivalent to P ≠\ne NP