Abstract
The 3SUM problem is a fundamental bottleneck in fine-grained complexity, serving as the basis for hardness proofs for numerous computational problems. However, many of these reductions have historically relied on randomization, leaving a gap in our understanding of deterministic complexity. This paper introduces a new toolkit for derandomizing 3SUM-hardness proofs, including a deterministic additive hashing method based on the Fast Fourier Transform (FFT) and a refined self-reduction technique. We show that flagship problems such as Set Disjointness and Triangle Listing are hard for deterministic algorithms, and we resolve the long-standing open question of deterministic universe reduction for 3SUM.
Introduction
In fine-grained complexity, the 3SUM problem—determining if a set of $n$ integers contains three that sum to zero—is a central pillar. It is widely conjectured that 3SUM requires $\Omega(n^{2-o(1)})$ time. This conjecture is used to establish lower bounds for a vast array of problems in computational geometry, graph theory, and dynamic data structures via reductions.
A significant limitation of existing literature is the reliance on randomized reductions. Many proofs use random hashing to map large integers into a smaller range, simplifying the combinatorial structure of the problem. Consequently, these lower bounds only strictly apply to randomized algorithms. If a deterministic algorithm could exploit the structure of the input to avoid "bad" hash collisions, the conjectured hardness might not hold. This paper addresses this gap by providing deterministic alternatives to these randomized tools.
The Derandomization Toolkit
The authors propose two primary technical innovations to eliminate the need for randomness in 3SUM reductions:
1. Deterministic Additive Hashing via FFT
The core challenge in derandomizing 3SUM reductions is finding a "good" hash function deterministically. A good hash function must minimize both collisions (two numbers mapping to the same value) and, more importantly, "false positives" (three numbers that do not sum to zero but whose hashes do).
The authors utilize the Fast Fourier Transform (FFT) to solve this. While counting 3SUM solutions is generally difficult, if the numbers are hashed into a small range $R$, the number of triples summing to a target can be computed in $O(R \log R)$ time using FFT. This efficiency allows the algorithm to "test" candidate hash functions and use the method of conditional expectations to deterministically select one that minimizes false positives.
2. Refined Deterministic Self-Reduction
The paper improves upon existing self-reduction techniques, which break a large 3SUM instance into multiple smaller ones. Their refined approach ensures a significant reduction in the "universe" (the range of the integers), which is a prerequisite for applying the FFT-based hashing tool. This result, formalized as Theorem 1.2, proves that 3SUM over an arbitrary range $[U]$ can be reduced to 3SUM over $[n^3]$ deterministically with only polylogarithmic overhead.
The Landscape of 3SUM-Hardness
By applying these tools, the authors provide a comprehensive map of the 3SUM-hardness landscape. They categorize reductions into those that were already deterministic, those newly derandomized by their work, and those that remain randomized.
The figure above illustrates the breadth of the impact. The authors successfully derandomized reductions for:
- Set Intersection and Set Disjointness: Fundamental problems in database theory.
- Triangle Listing: A core problem in graph analysis.
- 3-Linear Degeneracy Testing: A generalization of 3SUM.
Key Insights and Results
The primary insight is that for the vast majority of 3SUM-hard problems, randomness was a mathematical convenience rather than a fundamental requirement. By using FFT as a "counting tool" for hash functions, the authors bridged the gap between randomized and deterministic lower bounds.
One of the most significant theoretical contributions is the Deterministic Universe Reduction. For years, it was unclear if one could always assume 3SUM instances involved small integers (e.g., $O(n^3)$) in a deterministic setting. This paper confirms that this assumption is valid, simplifying the landscape for future researchers.
Limitations and Future Work
Despite the broad success of this toolkit, a "dark blue" region of the landscape remains stubbornly randomized (see the bottom right of Figure 1). These problems, such as Listing 4-Cycles and 4-Linear Degeneracy Testing, rely on reductions involving "short cycle removal." These reductions are built upon the Balog-Szemerédi-Gowers (BSG) theorem from additive combinatorics.
Currently, there is no known deterministic algorithmic version of the BSG theorem that maintains the necessary efficiency. Derandomizing this specific component remains the "final frontier" for achieving a fully deterministic theory of 3SUM-hardness. Additionally, the current universe reduction introduces a $\log^c U$ factor; future work may aim to optimize this overhead further.
Summary updated