Lune

STOC2024Top-tier venue

Shaving Logs via Large Sieve Inequality: Faster Algorithms for Sparse Convolution and More

Ce Jin, Yinzhan Xu

Abstract

In sparse convolution-type problems, a common technique is to hash the input integers modulo a random prime p ∈ [Q/2, Q] for some parameter Q, which reduces the range of the input integers while preserving their additive structure. However, this hash family suffers from two drawbacks, which led to bottlenecks in many state-of-the-art algorithms: (1) The collision probability of two elements from [N ] is O( log N Q ) rather than O( 1 Q );

(2) It is difficult to derandomize the choice of p; known derandomization techniques lead to super-logarithmic overhead [Chan, Lewenstein STOC'15].

In this paper, we partially overcome these drawbacks in certain scenarios, via novel applications of the large sieve inequality from analytic number theory. Consequently, we obtain the following improved algorithms for various problems (in the standard word RAM model): • Sparse Nonnegative Convolution: We obtain an O(t log t)-time Las Vegas algorithm that computes the convolution A ⋆ B of two nonnegative integer vectors A, B, where t is the output sparsity A ⋆ B 0 . Moreover, our algorithm terminates in O(t log t) time with 1 -1/poly(t) probability. This simultaneously improves the O(t log t log log t)-time Las Vegas algorithm [Bringmann, Fischer, Nakos SODA'22] and the Monte Carlo O(t log t)time algorithm with failure probability 2 - √ log t [Bringmann, Fischer, Nakos STOC'21].

• Text-to-Pattern Hamming Distances: Given a length-m pattern P and a length-n text T , we obtain a deterministic O(n √ m log log m)-time algorithm that exactly computes the Hamming distance between P and every length-m substring of T . This improves the previous O(n √ m(log m log log m) 1/4 )-time deterministic algorithm [Chan, Jin, Vassilevska Williams, Xu FOCS'23] and nearly matches their O(n √ m)-time Las Vegas algorithm.

• Sparse General Convolution: For sparse convolution with possibly negative input, all previous approaches required Ω(t log 2 t) time, where t is the maximum of input and output sparsity, and an important question left open by [Bringmann, Fischer, Nakos STOC'21] is whether this can be improved. We make partial progress towards solving this question by giving a Monte Carlo O(t log t) time algorithm in the restricted case where the length N of the input vectors satisfies N ≤ t 1.99 .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

No credit card required.

Lineage

  • Sumsets, 3SUM, Subset Sum: Now for Real! cites Top-k-convolution and the quest for near-linear output-sensitive subset sum
  • Beating Bellman's Algorithm for Subset Sum cites Top-k-convolution and the quest for near-linear output-sensitive subset sum
  • Beating Bellman's Algorithm for Subset Sum cites Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive Combinatorics
  • A Fine-Grained Perspective on Approximating Subset Sum and Partition cites Top-k-convolution and the quest for near-linear output-sensitive subset sum
  • Fast Low-Space Algorithms for Subset Sum cites A Fine-Grained Perspective on Approximating Subset Sum and Partition
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papersTop 5 of 7 by citations

  1. DPconv: Super-Polynomially Faster Join OrderingMihail Stoian, Andreas KipfSIGMOD 2025 · 5 citations
  2. Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic TimeXiao Mao, Aviad RubinsteinSTOC 2026 · 4 citations
  3. Beating Bellman's Algorithm for Subset SumKarl Bringmann, Nick Fischer, Vasileios NakosSODA 2025 · 2 citations
  4. Sumsets, 3SUM, Subset Sum: Now for Real!Nick FischerSODA 2025 · 1 citation
  5. All-Pairs Shortest Paths with Few Weights per NodeAmir Abboud, Nick Fischer, Ce Jin, Virginia Vassilevska Williams et al.STOC 2025

Builds onTop 5 of 13 by citations

  1. Top-k-convolution and the quest for near-linear output-sensitive subset sumKarl Bringmann, Vasileios NakosSTOC 2020 · 18 citations
  2. A Fine-Grained Perspective on Approximating Subset Sum and PartitionKarl Bringmann, Vasileios NakosSODA 2021 · 14 citations
  3. Fast Multivariate Multipoint Evaluation Over All Finite FieldsVishwas Bhargava, Sumanta Ghosh, Zeyu Guo, Mrinal Kumar et al.FOCS 2022 · 13 citations
  4. Stronger 3-SUM Lower Bounds for Approximate Distance Oracles via Additive CombinatoricsAmir Abboud, Karl Bringmann, Nick FischerSTOC 2023 · 10 citations
  5. Fast Low-Space Algorithms for Subset SumCe Jin, Nikhil Vyas, Ryan WilliamsSODA 2021 · 10 citations

Related papers

  1. Sparse nonnegative convolution is equivalent to dense nonnegative convolutionKarl Bringmann, Nick Fischer, Vasileios NakosSTOC 2021
  2. Deterministic and Las Vegas Algorithms for Sparse Nonnegative ConvolutionKarl Bringmann, Nick Fischer, Vasileios NakosSODA 2022 · 8 citations
  3. Faster Algorithms for Text-to-Pattern Hamming DistancesTimothy M. Chan, Ce Jin, Virginia Vassilevska Williams, Yinzhan XuFOCS 2023 · 3 citations
  4. Deterministic Sparse Pattern Matching via the Baur-Strassen TheoremNick FischerSODA 2024 · 2 citations
  5. Pseudorandom Hashing for Space-bounded Computation with Applications in StreamingPraneeth Kacham, Rasmus Pagh, Mikkel Thorup, David P. WoodruffFOCS 2023
Dusk over the sea between two cliffs drawn in fine vertical lines