Abstract
Linear discrepancy is a fundamental measure in combinatorial discrepancy theory, characterizing the worst-case error when rounding a continuous vector to a binary one under a linear transformation. While previously known to be NP-hard, its precise location within the polynomial hierarchy remained an open question. This paper establishes that computing the linear discrepancy of a matrix is Π2-hard to approximate within a factor of $9/8$. By showing Π2-completeness, the work places linear discrepancy alongside a select group of natural optimization problems, such as the covering radius of a lattice, that reside strictly above NP.
1. Introduction
Linear discrepancy serves as a critical metric for the quality of discrete approximations. Given a matrix $\mathbf{A} \in \mathbb{R}^{m \times n}$ and a vector $\mathbf{w} \in [0,1]^n$, the goal is to find a binary vector $\mathbf{x} \in \{0,1\}^n$ that minimizes the $L_\infty$ norm of the difference $\mathbf{A}(\mathbf{w} - \mathbf{x})$. The linear discrepancy of $\mathbf{A}$, denoted $lindisc(\mathbf{A})$, is defined as the maximum such minimum over all possible input vectors $\mathbf{w}$:
$$lindisc(\mathbf{A}) := \max_{\mathbf{w} \in [0,1]^n} \min_{\mathbf{x} \in \{0,1\}^n} \|\mathbf{A}(\mathbf{w} - \mathbf{x})\|_\infty$$
This problem is not merely a theoretical abstraction; it is a vital component in approximation algorithms for combinatorial problems, most notably bin packing. Despite its importance, the computational complexity of linear discrepancy has been difficult to pin down. While it was known to be in the complexity class Π2 and NP-hard, this paper provides the first proof that it is truly Π2-hard, even to approximate within a constant factor.
2. Complexity and the Polynomial Hierarchy
The complexity class Π2 represents the second level of the polynomial hierarchy, characterized by "for all, there exists" ($\forall \exists$) statements. The definition of linear discrepancy—a maximization (acting as a universal quantifier) followed by a minimization (acting as an existential quantifier)—naturally aligns with this structure.
Prior to this work, researchers established NP-hardness, but the gap between NP and Π2 is significant. Proving Π2-hardness suggests that linear discrepancy is fundamentally more difficult than standard NP-hard problems, sharing a complexity profile with problems like the covering radius of a lattice or certain types of game-theoretic equilibria. This result strengthens the previous NP-hardness result by Li and Nikolov (2020) and answers an open question they posed regarding the problem's true complexity.
3. The Reduction: Gadgets and NAE∀∃3SAT
To prove Π2-hardness, the author performs a reduction from NAE∀∃3SAT (Not-All-Equal ∀∃ 3-Satisfiability). In this problem, one must determine if for every assignment of a set of universal variables $V_A$, there exists an assignment of existential variables $V_E$ such that every clause in a given formula contains at least one true and one false literal.
3.1 The Gadget Matrix
The core of the reduction is a $3 \times 3$ gadget matrix $\mathbf{G}$:
$$\mathbf{G} = \begin{bmatrix} 1 & 1 & -1 \\ 1 & -1 & 1 \\ -1 & 1 & 1 \end{bmatrix}$$
This gadget is designed to enforce consistency across variables. In the reduction, the "adversary" (the $\max_{\mathbf{w}}$ player) attempts to choose a vector $\mathbf{w}$ that maximizes the discrepancy. The gadget is structured such that if $\mathbf{w}$ deviates from the intended variable assignments, the discrepancy naturally increases, effectively forcing the adversary to pick values that correspond to valid truth assignments in the logic formula. The author first proves a simpler NP-hardness result as a "warm-up" before extending the construction with additional rows and columns to handle the universal quantifier required for Π2-hardness.
3.2 Completeness and Soundness
The construction ensures two conditions:
- Completeness: If the NAE∀∃3SAT instance is true, then for any $\mathbf{w}$ chosen by the adversary, there exists a rounding $\mathbf{x}$ such that the discrepancy is small.
- Soundness: If the NAE∀∃3SAT instance is false, the adversary can choose a $\mathbf{w}$ such that for every possible rounding $\mathbf{x}$, the discrepancy is at least $9/8$ times larger than in the completeness case.
4. Key Results and Implications
The primary result of the paper is the following theorem:
Theorem 1. It is Π2-hard to approximate the linear discrepancy of a matrix within a factor of $9/8 - \epsilon$ for any $\epsilon > 0$.
Combined with the known inclusion of the problem in Π2, this result confirms that linear discrepancy is Π2-complete. This settles an open question regarding the problem's exact complexity and highlights the inherent difficulty of finding optimal roundings in high-dimensional spaces.
5. Discussion and Future Directions
While the paper establishes a lower bound for approximation ($9/8$), a significant gap remains between this result and the best known upper bound. Currently, the most efficient polynomial-time algorithms only provide an approximation ratio of $O(2^n)$, which is exponential.
This leaves several open questions for the community:
- Tightening the Bound: Can we prove Π2-hardness for larger constant factors, or even super-constant factors (e.g., factors of 10 or 100)?
- Algorithmic Barriers: Is there a structural reason, similar to those found in lattice problems (like the class AM), that might prevent linear discrepancy from being hard to approximate within very large factors?
- Complexity Transitions: Does the problem remain Π2-hard for specific classes of matrices, or does it collapse to NP-hardness under certain constraints?
Summary updated