How to Rigorously Evaluate an AI-Assisted Breakthrough of the 3SUM Conjecture

    This article provides a systematic framework for evaluating claims that artificial intelligence has helped achieve a theoretical breakthrough in computational complexity, specifically regarding the 3SUM conjecture and related problems such as all-pairs shortest paths and triangle detection. It clarifies what the 3SUM conjecture actually asserts, distinguishes between genuine subquadratic improvements and logarithmic speedups, explains the role of computational models and reduction directions, and outlines concrete steps for independently verifying candidate algorithms—including correctness proofs, end-to-end complexity analysis, and parameter coverage. It also stresses separating theoretical significance from engineering practicality.

    一、Start by Clarifying the Question: Confirmed Breakthrough or Unverified Claim?

    When faced with reports that an AI system has simultaneously broken multiple classic complexity conjectures, the most important first step is not to applaud or dismiss, but to distinguish between facts, speculation, and evaluation in the original material.

    The source material claims that an AI system, while assisting in the study of cryptographic constructions, discovered an acceleration method for a specific graph problem, and that this led to exponential improvements for 3SUM and all-pairs shortest paths problems. However, the material does not provide a complete proof that can be independently verified within the article, and parts of the narrative refer to future time points. Therefore, the discovery process, resource consumption, researcher confirmations, and specific complexity exponents cannot be written as established facts.

    A more robust subject of discussion is: If an AI-assisted approach produced a candidate algorithm claiming to break the 3SUM conjecture, how should one judge whether it is valid, and what would it mean if it were?

    One common phrasing also needs correction. The 3SUM conjecture is not a statement about whether an answer exists for a particular input. Thus, a “counterexample” is not typically a set of three numbers; it is an algorithm that works within a specific computational model, applies to all legal inputs, and achieves better worst-case complexity. A more accurate phrasing is “an algorithm that potentially refutes the conjecture.”

    二、What the 3SUM Conjecture Actually Claims

    1. The Problem Itself Is Not Hard to Describe

    The canonical form of 3SUM is: given a set or sequence of n numbers, determine whether there exist three distinct positions such that:

    aᵢ + aⱼ + aₖ = 0

    The most direct method enumerates all triples, requiring O(n³) time. A classic improvement is to sort first, then fix one element and use a two-pointer scan to find the other two elements, reducing the total time to O(n²).

    The core logic can be written as pseudocode:

    1. Sort the input
    2. For each fixed position i:
    3. left = i + 1
    4. right = n - 1
    5. While left < right:
    6. s = a[i] + a[left] + a[right]
    7. If s == 0: return True
    8. If s < 0: move left to the right
    9. If s > 0: move right to the left
    10. Return False

    After fixing the first position, the two pointers collectively move only a linear number of steps. The outer loop times the inner scan yields the quadratic time bound.

    2. “Below Quadratic” Is Not Necessarily “Truly Subquadratic”

    Fine-grained complexity is concerned not merely with shaving off a logarithmic factor, but with whether the exponent of the input size can be reduced by a fixed positive amount.

    A truly subquadratic algorithm generally requires time complexity of the form:

    T(n) = O(n^(2 − ε))

    where ε is a fixed constant independent of n.

    By contrast, O(n² / log n) is faster than O(n²) but does not qualify as truly subquadratic on that basis alone. Logarithmic improvements and exponential improvements carry different significance in the framework of conditional lower bounds.

    Therefore, when one sees phrasing like “first break of quadratic complexity,” a necessary follow-up question is: which quadratic bound is being broken? Is there a fixed exponential improvement? Does the complexity include all preprocessing and data-conversion overhead?

    3. The Conjecture Depends on the Computational Model

    3SUM is not a single conjecture that exists independently of the model. Real-number inputs, bounded-bit integer inputs, randomized versus deterministic algorithms, and restricted numerical ranges can all correspond to different problem variants.

    For example, if integers come from a small value range, techniques such as frequency counting and convolution can accelerate computation. But such algorithms depend on the value range, and this does not automatically mean the general 3SUM conjecture is refuted.

    Similarly, an improvement in a certain decision-tree model cannot be treated as an equivalent time improvement in a standard machine model without further analysis. Before judging a breakthrough, one must confirm that both sides are discussing the same variant.

    三、Why All-Pairs Shortest Paths and Triangle Problems Appear Together

    The all-pairs shortest paths (APSP) problem requires computing the shortest path between every pair of vertices in a graph. In the common setting of edge-weighted graphs, the classic general-purpose method has cubic time complexity. The relevant conjecture asks whether a truly subcubic algorithm—O(n^(3−δ)) for a fixed positive δ—can be achieved under specific weight ranges and computational models.

    The triangle problem requires further distinctions:

    • Plain triangle detection: determine whether a graph contains three pairwise-connected vertices.
    • Exact weighted triangle: determine whether there exists a triangle whose three edge weights sum to exactly a specified value.
    • Negative-weight triangle: determine whether there exists a triangle whose total edge weight is negative.
    • Restricted triangle problems: additional constraints on sparsity, asymmetric partition sizes, or special weight structures.

    These problem names are similar, but their algorithmic difficulty and known relationships cannot be conflated.

    There are indeed important fine-grained reductions connecting 3SUM, APSP, and some weighted triangle problems. However, “all involve triangles” does not mean they can be unconditionally substituted for one another, nor does a special triangle algorithm necessarily refute two conjectures at once.

    The Direction of Reduction Determines the Direction of the Conclusion

    Suppose problem A can be efficiently reduced to problem B. Then a fast algorithm for B may yield a fast algorithm for A. However, one must still account for the cost of conversion and any change in problem size.

    If an instance of A of size n is transformed into an instance of B of size N = nᶜ, and B has time complexity O(N^α), then the solving phase alone costs O(n^(cα)), in addition to the time for constructing the instance and mapping the answer back.

    When the reduction generates multiple instances, includes randomized sampling, or introduces weight-range parameters, the analysis becomes considerably more complex. Therefore, one cannot simply observe an exponent drop in some intermediate problem and immediately declare the original conjecture invalid.

    四、Why Dead-Code Elimination Might Be Relevant to a Theoretical Breakthrough

    Dead-code elimination is a general optimization concept: if a computation cannot affect the final output, it can be removed.

    In ordinary programs, this might mean removing a variable that is never read. In algebraic circuits, it might mean tracing backward from specified output nodes and keeping only the computation nodes that actually contribute to those outputs.

    However, “easy to describe in principle” and “no technical substance” are not necessarily related. The difficulty in a theoretical algorithm is often not the act of deleting computations, but proving the following facts:

    1. The deleted computations indeed do not affect the correct answer for any legal input.
    2. The remaining portion can be constructed efficiently using a uniform method.
    3. The size of the remaining computation is provably smaller in the worst case.
    4. The cost of obtaining dependency information does not offset the work saved.
    5. The algorithm does not implicitly rely on expensive operations that are difficult to implement.

    Do Not Mistake Partial Outputs for Small Computation

    Matrix multiplication is a canonical example. If only some elements of the product matrix are needed, intuitively it seems possible to skip the others. However, fast algebraic algorithms tend to construct many shared intermediate quantities: an apparently unneeded output branch may share a large number of operations with the target outputs.

    Therefore, running time cannot be estimated simply from “the fraction of output elements required.” What must be analyzed is the size of the dependency subgraph for the target outputs, and whether that dependency structure continues to provide an advantage as the problem size grows.

    If a pruning method saves a fixed fraction of the exponent within a certain parameter regime, it may have theoretical significance. If it only reduces constant factors, it cannot support a claim of breaking a complexity conjecture.

    五、Moving from Average Case to Worst Case Requires Additional Proof

    The source material contains a common narrative: the researchers originally intended to test a certain cryptographic security assumption, then discovered a solving algorithm, and subsequently extended it to the worst case.

    This research path is logically possible, but every step is an independent proof task.

    Average-case algorithms typically depend on input distributions. For example, when edge weights are approximately independent, values are uniformly distributed, or local structures are not highly concentrated, a certain pruning strategy may be highly effective. But worst-case inputs can deliberately violate these conditions.

    Therefore, moving from an average-case result to a worst-case result requires answering at least the following questions:

    • Does the algorithm depend on a particular input distribution?
    • Is there a transformation that works for arbitrary inputs?
    • How much does the problem size inflate after the transformation?
    • Does randomization change the error probability or the running-time guarantee?
    • Is there an extreme input that causes the algorithm to regress to its original complexity?

    For cryptography, one must further distinguish between “an improved algorithm for a related problem” and “a concrete cryptographic construction is now insecure.” The practical impact depends on security parameters, instance distributions, attack cost, and reduction losses. One cannot draw a conclusion from an asymptotic exponent change alone.

    六、How to Review a Candidate Algorithm Produced by AI

    AI can assist in discovering formulas, exploring parameter spaces, generating proof sketches, and searching for edge cases, but the generation process itself is not evidence of correctness. Professional review should center on auditable mathematical objects.

    1. Fix the Problem Definition and Computational Model

    First, specify the input range, output requirements, numerical representation, permitted basic operations, and whether the algorithm is deterministic or randomized. In particular, prevent complex operations on large integers or arbitrary-precision reals from being implicitly treated as unit-cost.

    2. Perform Independent Correctness Checks

    The correctness proof should cover all legal inputs, not just random experiments. For 3SUM, at a minimum, check duplicate elements, the distinct-position constraint, all-zero inputs, unsatisfiable inputs, and extreme numeric ranges.

    Experiments can help reveal errors, but they cannot replace a proof for an infinite family of inputs.

    3. Recalculate End-to-End Complexity

    Total cost should include:

    preprocessing + instance transformation + core computation + verification + answer reconstruction

    If a supposedly fast core relies on expensive precomputation, it must be stated whether the precomputation can be reused, whether it is amortized over multiple runs, and whether it depends on the input content.

    4. Audit All Parameter Regimes

    Algorithms for sparse graphs and asymmetric partition graphs often have multiple size parameters. An improvement in one parameter range may not cover all instances generated by the reduction.

    A complete proof must show how parameters are chosen, how boundary regimes are handled, and which branch determines the final worst-case time.

    5. Establish Mutually Independent Verification Paths

    Use small-scale exhaustive comparison, targeted boundary tests, independent proof rewriting, and—where feasible—formal verification. The key is not to let the same generation system repeatedly confirm its own answer, but to have different methods cross-check against different failure modes.

    七、Theoretical Significance and Engineering Value Should Be Discussed Separately

    Even if an algorithm reduces the exponent by only a small fixed constant, its proof of correctness could have a significant impact on fine-grained complexity. The reason is that the relevant conjectures exclude any fixed-magnitude exponent improvement, not merely speedups that are visible to the naked eye.

    However, a theoretical breakthrough does not immediately translate into an engineering advantage. Real running time depends on:

    • Hidden constants and additional logarithmic factors;
    • Data structure maintenance and memory-access costs;
    • Numerical precision requirements;
    • The input size required for the algorithm to enter its advantageous regime;
    • Parallelization and actual data distributions.

    Therefore, it is possible to hold two non-contradictory judgments about the same result: it may have major theoretical significance, yet be unsuitable in the short term for replacing mature implementations in production systems.

    Conversely, one should not dismiss a contribution simply because the method can be summarized in one simple sentence. Discovering a key structure, establishing a correct reduction, and completing a rigorous proof are often far more difficult than executing the final algorithm.

    八、How to Form a Responsible Conclusion

    When evaluating AI-assisted algorithmic research, the most reliable standard is not whether the narrative is impressive, nor how much text was generated, but whether a set of independently checkable artifacts has been left behind: a precise problem definition, a complete algorithm, a correctness proof covering all inputs, and a complexity analysis encompassing every phase.

    For material that has not yet undergone independent verification, use wording such as “candidate algorithm,” “claimed time bound,” and “reduction conditions requiring confirmation.” For results that have been verified, state precisely which version of the problem was broken, rather than expanding a local advance into the collapse of an entire complexity framework.

    The potential value of artificial intelligence lies in expanding the searchable algorithm space, helping to discover overlooked structures, and reducing the cost of certain verification and derivation tasks. But regardless of who proposes a candidate, the standards of mathematical proof do not change.

    What truly deserves attention is not whether a machine “defeated a field with a simple method,” but whether a new approach can withstand open, independent, and reproducible scrutiny—and which precisely defined complexity boundaries it ultimately changes.