Bridging Control-Centric and Data-Centric Optimization

Tal Ben-Nun, Berke Ates, Alexandru Calotoiu, Torsten Hoefler · DOI · OpenReview

Introduction

Modern high-performance computing is increasingly limited by data movement rather than raw computational throughput. However, most production compilers, such as GCC or LLVM, are "control-centric," focusing on the sequence of instructions and local dataflow. While effective for instruction-level efficiency, these compilers often struggle with global data movement across an entire application.

Conversely, "data-centric" frameworks like DaCe excel at minimizing memory overhead but frequently miss standard compiler optimizations or require manual intervention. DCIR (Data-Centric Intermediate Representation) addresses this "either-or" dilemma by creating a unified pipeline that allows both optimization styles to work in tandem, bridging the gap between the MLIR ecosystem and data-centric frameworks.

The DCIR Pipeline

DCIR connects the Multi-Level Intermediate Representation (MLIR) framework with the DaCe framework through several key technical contributions. Central to this is the sdfg dialect, a new MLIR dialect that mirrors DaCe’s "Stateful DataFlow multiGraph" (SDFG) structure.

The DCIR pipeline bridges control-centric and data-centric optimizations by connecting MLIR with the DaCe framework.

A critical innovation in this pipeline is Symbolic Lifting. While standard MLIR often uses "unknown" markers for array dimensions, DCIR lifts these into symbolic expressions (e.g., representing a size as N or 2*N). This allows the compiler to mathematically reason about memory overlaps and bounds, enabling advanced data-centric passes such as:

  • Scalar to Symbol Promotion: Converting program variables into symbolic constants for better analysis.
  • Extended Dead Code Elimination: Removing entire unused arrays or redundant memory copies that standard compilers overlook.
  • Memory-Reducing Loop Fusion: Greedily merging loops to maximize cache locality and reduce memory footprint.

Performance Evaluation

The authors evaluated DCIR using standard numerical kernels (Polybench/C), deep learning operators (Mish activation), and real-world scientific applications (MILC).

Runtime comparison showing DCIR's significant performance advantage over traditional compilers in specific optimization scenarios.

As illustrated in the performance results, DCIR is "strictly more powerful" than the standard MLIR pipeline. It retains all the control-flow benefits of MLIR while adding a layer of data-movement intelligence. Key results include:

  • Polybench/C: A 1.59x geomean speedup over the standard MLIR pipeline.
  • Deep Learning: DCIR outperformed JIT-compiled PyTorch by 2.33x for the Mish activation function.
  • Scientific Computing: In the MILC (Lattice QCD) case study, DCIR achieved a 7x speedup by automatically eliminating two large, unnecessary array allocations.

Conclusion and Future Work

The success of DCIR demonstrates that symbolic reasoning is the "aha moment" for global optimization; by representing symbolic data sizes, the compiler can realize when massive intermediate arrays are unnecessary and delete them entirely.

While the current prototype relies on the Polygeist frontend—which still faces stability challenges with complex benchmarks—the results prove that bridging control-centric and data-centric views is a viable path for the next generation of high-performance compilers. Future work will explore bidirectional translation and more aggressive, profile-guided heuristics for data-centric transformations.

Summary updated

BibTeX
@inproceedings{bennun2023bridging,
  author = {Tal Ben-Nun and Berke Ates and Alexandru Calotoiu and Torsten Hoefler},
  title = {{Bridging Control-Centric and Data-Centric Optimization}},
  booktitle = {CGO},
  year = {2023},
  doi = {10.1145/3579990.3580018},
}
Figure