A Tensor Algebra Compiler for Sparse Differentiation.

Amir Shaikhha,Mathieu Huot, Shideh Hashemian

IEEE/ACM International Symposium on Code Generation and Optimization(2024)

引用 0|浏览0
暂无评分
摘要
Sparse tensors are prevalent in many data-intensive applications. However, existing automatic differentiation (AD) frameworks are tailored towards dense tensors, which makes it a challenge to efficiently compute gradients through sparse tensor operations. This is due to irregular sparsity patterns that can result in substantial memory and computational overheads. We propose a novel framework that enables the efficient AD of sparse tensors. The key aspects of our work include a compilation pipeline leveraging two intermediate DSLs with AD-agnostic domain-specific optimizations followed by efficient C++ code generation. We showcase the effectiveness of our framework in terms of performance and scalability through extensive experimentation, outperforming state-of-the-art alternatives across a variety of synthetic and real-world datasets.
更多
查看译文
关键词
Sparse Tensor Algebra,Automatic Differentiation,Semi-Ring Dictionaries
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要