Fully Symbolic Analysis of Loop Locality: Using Imaginary Reuse to Infer Real Performance
Yifan Zhu, Yekai Pan, Chen Ding, Yanghui Wu

TL;DR
This paper introduces a fully symbolic theory of loop locality that derives cache performance as polynomials, enabling precise and fast predictions of data movement in scientific kernels and tensor operations.
Contribution
It develops a novel symbolic framework for analyzing loop locality and cache performance, supporting affine loop nests and providing accurate, scalable predictions.
Findings
Achieves 99.6% accuracy in cache miss predictions
Derives locality as polynomials for various input sizes and cache configs
Predicts data movement in less than a millisecond after analysis
Abstract
This paper presents a new theory of locality and its compiler support. The theory is fully symbolic and derives locality as polynomials, and the compiler analysis supports affine loop nests. They derive cache-performance scaling in quadratic and reciprocal expressions and are more general and precise than empirical scaling rules. Evaluated on a benchmark suite of 41 scientific kernels and tensor operations, the compiler requires an average of 41 seconds to derive the locality polynomials. After derivation, predicting the cache miss count for any given input size and cache configuration takes less than a millisecond. Across all tests--with and without loop fusion--the accuracy in the data movement prediction is 99.6\%, compared to simulated set-associative L1 data cache.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques · Cloud Computing and Resource Management · Advanced Database Systems and Queries
