r/Compilers • u/mttd • Oct 16 '26
Bandedness Propagation Analysis of Tensor Compilers
https://homepages.dcc.ufmg.br/~fernando/publications/papers/SeliayeuCGO27.pdf
5
Upvotes
r/Compilers • u/mttd • Oct 16 '26
3
u/fernando_quintao Oct 16 '26
Hi u/mttd, thank you for sharing our work!
We have an implementation of Bandedness Propagation Analysis available on github. For those interested, this analysis infers which parts of a multi-dimensional tensor are zeros.
BPA propagates sparsity information as null bands of tensors. We also have SPA, which propagates sparsity as null slices of multi-dimensional tensors. Our original implementation was running on TACO. However, recently, Peter Avgerinos implemented SPA on MLIR.
Something interesting about these two static analyses is that they are multi-directional: they propagate dataflow information forwardly and backwardly. SPA also has lateral propagation, e.g., if we have a matrix multiplication like
A = B*C, then we can use info from B to refine that of C, and vice-versa.