paper-with-me

홈 › Papers

Optimizing the Memory Hierarchy by Compositing Automatic Transformations on Computations and Data

2020-11-11 · 53rd Annual IEEE/ACM International Symposium on Microarchitecture (MICRO) 2020 11 · Jie Zhao, Peng Di

Optimizing compilers exploit the memory hierarchy using loop tiling and fusion, but these two transformations usually interfere with each other due to the oversight of transformations on data in memories. We present a novel composition of loop tiling and fusion in this paper. Unlike existing tiling-after-fusion algorithms that only transform computation spaces, our approach first applies rectangular/parallelogram tiling to live-out computation spaces for fitting the memory hierarchy, followed by the computation of the memory footprints required by each tile. The upwards exposed data extracted from the memory footprints are used to determine the tile shapes of intermediate computation spaces, allowing the construction of arbitrary tile shapes. Finally, our technique implements a post-tiling fusion strategy for maximizing data locality without losing tilability or parallelism of live-out computation spaces, thereby enabling storage reduction and reuse, and optimizing the memory hierarchy. We demonstrate that our approach can achieve superior performance on both CPU and GPU architectures over the state of the art by experimenting on 11 benchmarks extracted from numerous domains including neural networks, image processing, sparse matrix computation and linear algebra. Also, the results of the ResNet-50 model on an AI accelerator show that our approach can obtain 16% performance improvement.

📄 PDF Abstract BibTeX

Code (1)

mindspore-ai/akg mindspore

Tasks

CPUGPU

Similar Papers 제목 키워드 기반

AKG: Automatic Kernel Generation for Neural Processing Units using Polyhedral Transformations

2021-06-19 · Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation 2021 6 · Jie Zhao, Bojie Li, Wang Nie, Zhen Geng 외

Existing tensor compilers have proven their effectiveness in deploying deep neural networks on general-purpose hardware like CPU and GPU, but optimizing for neural processing units (NPUs) is still challenging due to the …

Code GenerationCPUGPUManagement+1

Instance Segmentation based Semantic Matting for Compositing Applications

2019-04-10 · Guanqing Hu, James J. Clark

Image compositing is a key step in film making and image editing that aims to segment a foreground object and combine it with a new background. Automatic image compositing can be done easily in a studio using chroma-keyi…

Image MattingInstance SegmentationSemantic Image MattingSemantic Segmentation

HiTIN: Hierarchy-aware Tree Isomorphism Network for Hierarchical Text Classification

2023-05-24 · He Zhu, Chong Zhang, JunJie Huang, Junran Wu 외

Hierarchical text classification (HTC) is a challenging subtask of multi-label classification as the labels form a complex hierarchical structure. Existing dual-encoder methods in HTC achieve weak performance gains with …

Hierarchical Multi-label ClassificationMulti-Label ClassificationMUlTI-LABEL-ClASSIFICATIONMulti-Label Text Classification+2

On the Duality between Gradient Transformations and Adapters

2025-02-19 · Lucas Torroba-Hennigen, Hunter Lang, Han Guo, Yoon Kim

We study memory-efficient optimization of neural networks with linear gradient transformations, where the gradients are linearly mapped to a lower dimensional space than the full parameter space, thus saving memory requi…

Toward Realistic Image Compositing With Adversarial Learning

2019-06-01 · CVPR 2019 6 · Bor-Chun Chen, Andrew Kae

Compositing a realistic image is a challenging task and usually requires considerable human supervision using professional image editing software. In this work we propose a generative adversarial network (GAN) architectu…

Generative Adversarial Network