[Paper Review] Pebbles, Graphs, and a Pinch of Combinatorics: Towards Tight I/O Lower Bounds for Statically Analyzable Programs
This paper introduces a novel combinatorial method for deriving tight I/O lower bounds in statically analyzable programs using the Simple Overlap Access Program (SOAP) model and Symbolic Directed Graphs (SDG). By modeling data access patterns and dependencies via red-blue pebbling and parametric CDAGs, it achieves precise bounds that improve upon prior work—up to 14× for stencils and 2× for Cholesky decomposition—enabling optimal tiling and scheduling for communication-avoiding code generation.
Determining I/O lower bounds is a crucial step in obtaining communication-efficient parallel algorithms, both across the memory hierarchy and between processors. Current approaches either study specific algorithms individually, disallow programmatic motifs such as recomputation, or produce asymptotic bounds that exclude important constants. We propose a novel approach for obtaining precise I/O lower bounds on a general class of programs, which we call Simple Overlap Access Programs (SOAP). SOAP analysis covers a wide variety of algorithms, from ubiquitous computational kernels to full scientific computing applications. Using the red-blue pebble game and combinatorial methods, we are able to bound the I/O of the SOAP-induced Computational Directed Acyclic Graph (CDAG), taking into account multiple statements, input/output reuse, and optimal tiling. To deal with programs that are outside of our representation (e.g., non-injective access functions), we describe methods to approximate them with SOAP. To demonstrate our method, we analyze 38 different applications, including kernels from the Polybench benchmark suite, deep learning operators, and -- for the first time -- applications in unstructured physics simulations, numerical weather prediction stencil compositions, and full deep neural networks. We derive tight I/O bounds for several linear algebra kernels, such as Cholesky decomposition, improving the existing reported bounds by a factor of two. For stencil applications, we improve the existing bounds by a factor of up to 14. We implement our method as an open-source tool, which can derive lower bounds directly from provided C code.
Motivation & Objective
- To close the gap in I/O lower bound analysis for complex, multi-statement scientific programs by developing a method that captures reuse, recomputation, and complex data dependencies.
- To extend beyond the polyhedral model by enabling analysis of non-affine and non-injective data access patterns through SOAP projections.
- To derive precise, non-asymptotic I/O lower bounds that inform optimal tiling and loop fusion for communication-avoiding parallel code generation.
- To demonstrate the method on 38 diverse applications, including deep learning models and unstructured physics simulations, where prior bounds were either absent or loose.
- To provide an open-source tool that automatically derives symbolic I/O bounds from C and Python code.
Proposed method
- Proposes the Simple Overlap Access Program (SOAP) class, defined by injective data access functions with constant-offset overlaps, enabling precise vertex counting in parametric CDAGs.
- Introduces the Symbolic Directed Graph (SDG) to model inter-statement data flow, capturing input/output reuse and enabling analysis of multi-statement programs.
- Uses the red-blue pebble game as a foundation, relaxing it to a graph partitioning problem via X-partitioning to enable scalable analysis.
- Applies combinatorial techniques to upper-bound the size of optimal X-partitions, which correspond to optimal tiling configurations.
- Constructs SOAP projections for non-SOAP programs with non-injective or complex access functions, under defined assumptions, to extend applicability.
- Automates the analysis pipeline: from C/Python code to SDG construction, symbolic bound derivation, and optimal tiling recommendations.
Experimental results
Research questions
- RQ1Can we derive tight, non-asymptotic I/O lower bounds for a broad class of scientific programs that include reuse, recomputation, and complex data access patterns?
- RQ2How can we extend beyond the polyhedral model to analyze programs with non-affine or non-injective data access functions?
- RQ3To what extent can combinatorial methods improve upon existing projection-based bounds (e.g., HBL or Loomis-Whitney) in terms of constant factors?
- RQ4Can we derive I/O lower bounds for full deep neural networks and complex scientific workloads like numerical weather prediction, where prior bounds were absent?
- RQ5Can the derived bounds be used to guide compiler optimizations such as tiling and loop fusion for communication-avoiding execution?
Key findings
- The method improves the known I/O lower bound for Cholesky decomposition by a factor of two, achieving a tighter bound than prior approaches.
- For stencil applications such as FDTD2D and heat3d, the method improves existing bounds by up to a factor of 14, significantly tightening the theoretical communication floor.
- The method establishes the first known I/O lower bounds for full deep neural networks, including LeNet-5 and BERT Encoder, as well as core components of the Transformer architecture.
- The method derives new lower bounds for unstructured physics simulations, including vertical advection and horizontal diffusion in the COSMO weather model.
- The core method improves upon IOLB, a prior state-of-the-art tool, by up to a factor of 6√6 (fdtd2d) without application-specific tuning, using a single general framework.
- The open-source implementation generates symbolic I/O bounds and optimal tiling parameters directly from C code, enabling direct use in compiler pipelines.
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.