Lune

SODA2024顶会

Grammar Boosting: A New Technique for Proving Lower Bounds for Computation over Compressed Data

Rajat De, Dominik Kempa

摘要

Computation over compressed data is a new paradigm in the design of algorithms and data structures, that can reduce the space usage and speed up the computation by orders of magnitude. One of the most frequently employed compression frameworks, capturing many practical compression methods (such as the Lempel-Ziv family, dictionary methods, and others) is grammar compression. In this framework, a string T of length N is represented as a context-free grammar of size n whose language contains only the string T . In this paper, we focus on studying the limitations of these techniques. Previous work focused on proving lower bounds for algorithms and data structures operating over grammars constructed using algorithms that achieve the approximation ratio ρ = O(polylog N ) (since finding the smallest such grammar is NP-hard, every polynomial time grammar compressor can be viewed as an approximation algorithm). Unfortunately, for the majority of grammar compressors, ρ is either unknown or satisfies ρ = ω(polylog N ): In their seminal paper, Charikar et al. [IEEE Trans. Inf. Theory 2005] studied seven popular grammar compression algorithms: RePair, Greedy, LongestMatch, Sequential, Bisection, LZ78, and α-Balanced. Only one of them (α-Balanced) is known to achieve ρ = O(polylog N ).

In this paper, we develop the first technique for proving lower bounds for data structures and algorithms on grammars that is fully general and does not depend on the approximation ratio ρ of the used grammar compressor. Our first set of results concerns compressed data structures. In 2013, Verbin and Yu proved that implementing random access to T using a grammar constructed by an algorithm with ρ = O(polylog N ) requires Ω(log N/ log log N ) time in the worst case. This lower bound applies to any structure using O(n polylog N ) space and matches the existing upper bounds. We prove that this lower bound holds also for RePair, Greedy, LongestMatch, Sequential, and Bisection, while Ω(log log N ) time is required for random access to LZ78. Our lower bounds apply to any structure using O(n polylog N ) space and match the existing upper bounds. Moreover, our technique generalizes to classes of algorithms. Most notably, we tackle the notoriously hard to analyze class of global algorithms (that includes, e.g., the RePair algorithm) and show that the lower bound Ω(log N/ log log N ) applies to the whole class. This makes a significant step forward in a long-standing open problem of analyzing global algorithms; in the words of Charikar et al.: "Because they are so natural and our understanding is so incomplete, global algorithms are one of the most interesting topics related to the smallest grammar problem that deserves further investigation."

Our second set of results concerns compressed computation, i.e., computation that runs in time that depends on the size of the input in compressed form. Recently, Abboud, Backurs, Bringmann, and Künnemann [FOCS 2017 and NeurIPS 2020] proved numerous limitations of compressed computation under popular conjectures (such as SETH, k-Clique, k-OV, and k-SUM). Similarly as above, however, their framework also displays a dependence on ρ. For example, their results imply that, assuming the Combinatorial k-Clique Conjecture, there is no combinatorial algorithm to solve CFG Parsing (for which the best classical algorithm has a time complexity of O(N 3 )) on grammars constructed using Bisection (which satisfies ρ = Θ(N 1/2 )) that runs in O(n 3 • N ) or O(n 3/2 • N 2 ) time. The same is not known, however, for an algorithm running in O(n 5 • N ) or O(n 3 • N 2 ) time. Using our new techniques, we improve these and other conditional lower bounds. For example, for the CFG parsing on Bisection, we rule out an algorithms with runtime O(n c • N 3-ϵ ) for all constants c > 0 and ϵ > 0.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Morphing-based Compression for Data-centric ML Pipelines 引用了 Impossibility Results for Grammar-Compressed Linear Algebra
  • Morphing-based Compression for Data-centric ML Pipelines 引用了 Improving Matrix-vector Multiplication via Lossless Grammar-Compressed Matrices
  • Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings 引用了 Pattern Matching on Grammar-Compressed Strings in Linear Time
  • Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings 引用了 An Upper Bound and Linear-Space Queries on the LZ-End Parsing
  • Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings 引用了 Resolution of the Burrows-Wheeler Transform Conjecture
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper2

  1. Morphing-based Compression for Data-centric ML PipelinesSebastian Baunsgaard, Matthias BoehmVLDB 2026
  2. Optimal Random Access and Conditional Lower Bounds for 2D Compressed StringsRajat De, Dominik KempaSODA 2026

它引用的 Paper8

  1. Resolution of the Burrows-Wheeler Transform ConjectureDominik Kempa, Tomasz KociumakaFOCS 2020 · 32 次引用
  2. Impossibility Results for Grammar-Compressed Linear AlgebraAmir Abboud, Arturs Backurs, Karl Bringmann, Marvin KünnemannNeurIPS 2020 · 19 次引用
  3. Improving Matrix-vector Multiplication via Lossless Grammar-Compressed MatricesPaolo Ferragina, Giovanni Manzini, Travis Gagie, Dominik Köppl 等VLDB 2022 · 17 次引用
  4. An Upper Bound and Linear-Space Queries on the LZ-End ParsingDominik Kempa, Barna SahaSODA 2022 · 12 次引用
  5. Pattern Matching on Grammar-Compressed Strings in Linear TimeMoses Ganardi, Pawel GawrychowskiSODA 2022 · 7 次引用

相关 Paper

  1. How Compression and Approximation Affect Efficiency in String Distance MeasuresArun Ganesh, Tomasz Kociumaka, Andrea Lincoln, Barna SahaSODA 2022 · 7 次引用
  2. Tight Lower Bounds for Central String Queries in Compressed SpaceDominik Kempa, Tomasz KociumakaSODA 2026
  3. Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed SpaceDominik Kempa, Tomasz KociumakaFOCS 2023 · 20 次引用
  4. Locally Consistent Parsing for Text Indexing in Small SpaceOr Birenzwige, Shay Golan, Ely PoratSODA 2020 · 16 次引用
  5. Breaking the 𝒪(n)-Barrier in the Construction of Compressed Suffix Arrays and Suffix TreesDominik Kempa, Tomasz KociumakaSODA 2023 · 10 次引用
黄昏的海面,两侧是细线勾勒的悬崖