Skip to main content
QUICK REVIEW

[Paper Review] Automated Derivation of Parametric Data Movement Lower Bounds for Affine Programs

Auguste Olivry, Julien Langou|arXiv (Cornell University)|Nov 15, 2019
Parallel Computing and Optimization TechniquesComputer Science34 references31 citations
TL;DR

This paper presents IOLB, the first fully automated tool that derives non-asymptotic, parametric lower bounds on data movement for affine programs by analyzing their computational dependence graphs and scheduling constraints. It enables precise, scalable bounds with scaling constants—improving upon prior manual or asymptotic-only approaches—demonstrated on the PolyBench suite with tighter bounds than previously published for several algorithms.

ABSTRACT

For most relevant computation, the energy and time needed for data movement dominates that for performing arithmetic operations on all computing systems today. Hence it is of critical importance to understand the minimal total data movement achievable during the execution of an algorithm. The achieved total data movement for different schedules of an algorithm can vary widely depending on how efficiently the cache is used, e.g., untiled versus effectively tiled matrix-matrix multiplication. A significant current challenge is that no existing tool is able to meaningfully quantify the potential reduction to the data movement of a computation that can be achieved by more effective use of the cache through operation rescheduling. Asymptotic parametric expressions of data movement lower bounds have previously been manually derived for a limited number of algorithms, often without scaling constants. In this paper, we present the first compile-time approach for deriving non-asymptotic parametric expressions of data movement lower bounds for arbitrary affine computations. The approach has been implemented in a fully automatic tool (IOLB) that can generate these lower bounds for input affine programs. IOLB's use is demonstrated by exercising it on all the benchmarks of the PolyBench suite. The advantages of IOLB are many: (1) IOLB enables us to derive bounds for few dozens of algorithms for which these lower bounds have never been derived. This reflects an increase of productivity by automation. (2) Anyone is able to obtain these lower bounds through IOLB, no expertise is required. (3) For some of the most well-studied algorithms, the lower bounds obtained by \ ool are higher than any previously reported manually derived lower bounds.

Motivation & Objective

  • To address the lack of automated tools that quantify the theoretical minimum data movement achievable via scheduling in affine programs.
  • To close the gap in performance analysis by enabling automatic derivation of non-asymptotic, parametric I/O lower bounds with scaling constants.
  • To provide a scalable, tool-based approach that replaces manual derivation of data movement bounds for complex algorithms.
  • To enable researchers and practitioners to assess how close a given implementation is to the theoretical performance limit in terms of operational intensity.
  • To improve the accuracy of performance modeling by generating tighter bounds than previously reported for well-known kernels like matrix multiplication and stencil computations.

Proposed method

  • The method models data movement using a variant of the Brascamp-Lieb inequality applied to the computational dependence graph (CDAG) of affine programs.
  • It performs a decomposition of the CDAG into subgraphs based on reuse patterns and data access patterns, enabling precise bound computation.
  • The approach uses wavefront-based analysis and 2S-partitioning to model data reuse and minimize redundant data movement across memory levels.
  • It formulates the lower bound as a function of cache size $ S $ and program parameters, including loop bounds and array dimensions.
  • The tool integrates dimension-wise loop parameterization and interference modeling to handle complex reuse patterns such as those in Floyd-Warshall and adi kernels.
  • The algorithm is fully automated and runs at compile time, generating provably valid lower bounds that can be formally verified.

Experimental results

Research questions

  • RQ1Can a fully automated tool derive non-asymptotic, parametric data movement lower bounds for arbitrary affine programs with scaling constants?
  • RQ2How do the automatically derived bounds compare to manually derived bounds in terms of tightness and accuracy?
  • RQ3Can the tool identify cases where previously published bounds are suboptimal or incorrect?
  • RQ4To what extent can the derived bounds predict the performance ceiling of a given algorithm in terms of operational intensity?
  • RQ5Can the method handle complex reuse patterns and loop transformations such as tiling and fission in a scalable and precise manner?

Key findings

  • IOLB automatically derives non-trivial, parametric data movement lower bounds for 30 PolyBench benchmarks in under a second per program on a standard machine.
  • For several well-studied algorithms, including matrix multiplication and stencils, IOLB produces lower bounds that are higher than any previously published manually derived bounds.
  • In 11 cases, the derived lower bound exactly matches the data movement of a manually optimized, communication-avoiding schedule, confirming the bound's tightness and optimality.
  • The tool successfully handles complex reuse patterns such as those in the floyd-warshall and adi kernels, where prior methods failed due to interference and decomposition limitations.
  • IOLB's bounds include scaling constants, enabling direct use in roofline performance modeling to assess whether a code is memory-bandwidth limited.
  • The approach outperforms prior automated methods by supporting dimension decomposition, interference modeling, and wavefront-based analysis—leading to significantly tighter bounds.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.