NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Simpler Reductions from Exact Triangle

Timothy M. Chan, Yinzhan Xu

Abstract

In this paper, we provide simpler reductions from Exact Triangle to two important problems in fine-grained complexity: Exact Triangle with Few Zero-Weight $4$-Cycles and All-Edges Sparse Triangle. Exact Triangle instances with few zero-weight $4$-cycles was considered by Jin and Xu [STOC 2023], who used it as an intermediate problem to show $3$SUM hardness of All-Edges Sparse Triangle with few $4$-cycles, which is further used to show $3$SUM hardness of a variety of problems, including $4$-Cycle Enumeration and Offline Approximate Distance Oracle. We provide a simple reduction from Exact Triangle to Exact Triangle with few zero-weight $4$-cycles. Our new reduction not only simplifies previous work but also strengthens conditional lower bounds from the $3$SUM hypothesis to the more robust Exact Triangle hypothesis. Additionally, we provide two alternative proofs for the All-Edges Sparse Triangle problem, one of which is the first deterministic reduction from Exact Triangle or 3SUM to this problem.

Introduction

In the field of fine-grained complexity, researchers establish the computational difficulty of problems by building a web of conditional lower bounds. Rather than proving an absolute lower bound, they show that if a core problem (like 3SUM or APSP) is hard, then a target problem must also be hard.

The Exact Triangle problem—finding three nodes in a weighted graph whose edge weights sum to zero—serves as a critical "super-node" in this web. It is considered hard if either the 3SUM hypothesis or the APSP (All-Pairs Shortest Paths) hypothesis holds. However, many existing reductions from Exact Triangle to other problems, such as All-Edges Sparse Triangle, have historically relied on complex mathematical machinery like additive combinatorics or randomized hashing. This paper simplifies this landscape using elegant algorithmic techniques.

Methodology: Algorithmic "Tricks"

The authors replace heavy theoretical tools with three primary methods to streamline these reductions:

  1. Fredman’s Trick: This algebraic observation ($a + b = a' + b' \iff a - a' = b' - b$) allows the authors to transform a zero-sum triple search into a search for matching values across sets. This can then be solved efficiently using matrix multiplication or Equality Product techniques, bypassing the need for the Balog–Szemerédi–Gowers theorem.
  2. Iterative Weight Halving: For the All-Edges Sparse Triangle problem, the authors introduce a deterministic recursive approach. By repeatedly halving edge weights, they use solutions from "coarser" versions of the problem to prune the search space for the "finer" weighted instances.
  3. Random Partitioning (Bucketing): To manage instances with numerous potential 4-cycles, vertices are randomly partitioned into buckets. This reduces a large, complex problem into manageable sub-instances, allowing for a bound on "zero-weight 4-cycles" without complex combinatorial proofs.

Key Insights and Strengthening the Foundation

A major contribution of this work is the shift from the 3SUM hypothesis to the Exact Triangle hypothesis. Because Exact Triangle is hard if either 3SUM or APSP is hard, lower bounds derived from it are more resilient; for these bounds to be broken, both the 3SUM and APSP hypotheses would have to be proven false.

The web of reductions showing the simplified and new paths established in this paper.

Furthermore, the paper achieves the first deterministic reduction from 3SUM to All-Edges Sparse Triangle. Previous reductions relied on randomized hashing, which introduced a statistical element of "luck." Removing this requirement is a significant theoretical advancement for the robustness of fine-grained complexity.

Key Results

  • Exact Triangle with Few 4-Cycles: Proved to require $n^{3-o(1)}$ time under the Exact Triangle hypothesis, significantly simplifying previous 3SUM-hardness results.
  • All-Edges Sparse Triangle: Confirmed to require $m^{4/3-o(1)}$ time via a simpler, deterministic reduction.
  • All-Nodes Sparse Triangle: Established a new lower bound of $m^{5/4-o(1)}$ time.
  • Sparse Triangle Detection: Under the "Strong Exact Triangle" hypothesis, this problem is shown to require $m^{9/7-o(1)}$ time.

Limitations and Future Work

Despite these simplifications, some challenges remain. A tight lower bound for Sparse Triangle Detection under the standard (non-strong) Exact Triangle hypothesis is still missing. Additionally, while one reduction for All-Edges Sparse Triangle is deterministic, the more efficient second reduction still utilizes hashing to manage weight universe sizes. Fully derandomizing this without sacrificing performance remains an open area for future research.

Summary updated

BibTeX
@inproceedings{chan2024simpler,
  author = {Timothy M. Chan and Yinzhan Xu},
  title = {{Simpler Reductions from Exact Triangle}},
  booktitle = {SOSA},
  year = {2024},
  url = {https://openreview.net/forum?id=Ky6KhXrpec},
}
Figure