[Paper Review] Fine-Grained Hardness for Edit Distance to a Fixed Sequence
This paper establishes tight connections between the hardness of shaving logarithmic factors in fundamental string and geometric problems—such as Longest Common Subsequence (LCS), regular expression matching, and Fréchet distance—and the complexity of Formula-SAT. By designing a nearly optimal reduction from Formula-SAT on size-s formulas over n variables to LCS on sequences of length N = 2^{n/2} · s^{1+o(1)}, the authors show that an O(n² / log^{7+ε} n) algorithm for LCS would imply a breakthrough Formula-SAT algorithm, thereby proving that shaving seven additional log factors is as hard as solving Formula-SAT faster than exhaustive search.
A noticeable fraction of Algorithms papers in the last few decades improve the running time of well-known algorithms for fundamental problems by logarithmic factors. For example, the {O}(n^2) dynamic programming solution to the Longest Common Subsequence problem (LCS) was improved to O(n^2/log^{2}n) in several ways and using a variety of ingenious tricks. This line of research, also known as the art of shaving log factors, lacks a tool for proving negative results. Specifically, how can we show that it is unlikely that LCS can be solved in time O(n^2/log^3n)? Perhaps the only approach for such results was suggested in a recent paper of Abboud, Hansen, Vassilevska W. and Williams (STOC'16). The authors blame the hardness of shaving logs on the hardness of solving satisfiability on boolean formulas (Formula-SAT) faster than exhaustive search. They show that an O(n^2/log^{1000} n) algorithm for LCS would imply a major advance in circuit lower bounds. Whether this approach can lead to tighter barriers was unclear. In this paper, we push this approach to its limit and, in particular, prove that a well-known barrier from complexity theory stands in the way for shaving five additional log factors for fundamental combinatorial problems. For LCS, regular expression pattern matching, as well as the Fréchet distance problem from Computational Geometry, we show that an O(n^2/log^{7+epsilon}{n}) runtime would imply new Formula-SAT algorithms. Our main result is a reduction from SAT on formulas of size s over n variables to LCS on sequences of length N=2^{n/2} * s^{1+o(1)}. Our reduction is essentially as efficient as possible, and it greatly improves the previously known reduction for LCS with N=2^{n/2} * s^c, for some c >= 100.
Motivation & Objective
- To close the gap in understanding why logarithmic improvements in fundamental algorithms (e.g., LCS) are so difficult to achieve.
- To establish that shaving seven additional log factors for LCS, regular expression matching, and Fréchet distance is as hard as solving Formula-SAT faster than exhaustive search.
- To develop a nearly optimal reduction from Formula-SAT to LCS that captures the limits of current log-shaving techniques.
- To provide a formal barrier result showing that existing approaches cannot rule out O(n² / log³ n) algorithms for LCS unless Formula-SAT can be solved faster.
- To demonstrate that the hardness of log-shaving is fundamentally tied to the hardness of Formula-SAT, not weaker conjectures like 3SUM or APSP.
Proposed method
- Designs a novel, nearly optimal reduction from Formula-SAT on formulas of size s over n variables to LCS on sequences of length N = 2^{n/2} · s^{1+o(1)}.
- Uses a recursive construction of curves in the plane to simulate boolean formulas, with Fréchet distance used as a proxy for formula evaluation.
- Employs AND and OR gate constructions via geometric curve embeddings, where distance ≤1 corresponds to true evaluation.
- Introduces a key trick using auxiliary comparisons [ℓ ≤ ℓ] and [−ℓ ≤ −ℓ] to enforce structural consistency and prevent cross-gate matching.
- Applies a robust Word-RAM model with operations on words of size Θ(log n), ensuring the reduction remains efficient under standard computational assumptions.
- Leverages the correctness of AND and OR gate constructions to ensure that the Fréchet distance between the final curves is ≤1 if and only if the formula evaluates to true.
Experimental results
Research questions
- RQ1Can we prove that an O(n² / log^{7+ε} n) algorithm for LCS would imply a significant improvement in Formula-SAT runtime?
- RQ2Is the hardness of shaving log factors in LCS fundamentally tied to the hardness of solving Formula-SAT faster than exhaustive search?
- RQ3Can we establish a tight barrier that rules out O(n² / log³ n) algorithms for LCS under plausible complexity assumptions?
- RQ4What is the optimal trade-off between the size of the Formula-SAT instance and the length of the LCS instance in such reductions?
- RQ5Does the use of geometric curve constructions (via Fréchet distance) provide a more robust framework for proving log-factor hardness barriers?
Key findings
- An O(n² / log^{7+ε} n) algorithm for LCS would imply a non-trivial improvement in Formula-SAT runtime, specifically faster than exhaustive search by a polynomial factor.
- The reduction from Formula-SAT to LCS achieves nearly optimal efficiency, with the LCS instance length N = 2^{n/2} · s^{1+o(1)}, improving upon prior constructions with N = 2^{n/2} · s^c for c ≥ 100.
- The paper proves that shaving seven additional log factors for LCS, regular expression matching, and Fréchet distance is as hard as solving Formula-SAT faster than exhaustive search.
- The reduction is robust under the Word-RAM model with standard operations, and remains efficient even when word operations take (log n)^{1+o(1)} time.
- The construction ensures that Fréchet distance ≤1 between the final curves holds if and only if the input boolean formula evaluates to true, establishing correctness of the simulation.
- The authors show that existing conjectures like 3SUM or APSP are insufficient to rule out log-factor improvements, as superlogarithmic improvements are already known for them, unlike Formula-SAT.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.