Applying Graph Explanation to Operator Fusion

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Mills, Keith G., Qharabagh, Muhammad Fetrat, Qiu, Weichen, Han, Fred X., Salameh, Mohammad, Lu, Wei, Jui, Shangling, Niu, Di
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909446232342528
author Mills, Keith G.
Qharabagh, Muhammad Fetrat
Qiu, Weichen
Han, Fred X.
Salameh, Mohammad
Lu, Wei
Jui, Shangling
Niu, Di
author_facet Mills, Keith G.
Qharabagh, Muhammad Fetrat
Qiu, Weichen
Han, Fred X.
Salameh, Mohammad
Lu, Wei
Jui, Shangling
Niu, Di
contents Layer fusion techniques are critical to improving the inference efficiency of deep neural networks (DNN) for deployment. Fusion aims to lower inference costs by reducing data transactions between an accelerator's on-chip buffer and DRAM. This is accomplished by grouped execution of multiple operations like convolution and activations together into single execution units - fusion groups. However, on-chip buffer capacity limits fusion group size and optimizing fusion on whole DNNs requires partitioning into multiple fusion groups. Finding the optimal groups is a complex problem where the presence of invalid solutions hampers traditional search algorithms and demands robust approaches. In this paper we incorporate Explainable AI, specifically Graph Explanation Techniques (GET), into layer fusion. Given an invalid fusion group, we identify the operations most responsible for group invalidity, then use this knowledge to recursively split the original fusion group via a greedy tree-based algorithm to minimize DRAM access. We pair our scheme with common algorithms and optimize DNNs on two types of layer fusion: Line-Buffer Depth First (LBDF) and Branch Requirement Reduction (BRR). Experiments demonstrate the efficacy of our scheme on several popular and classical convolutional neural networks like ResNets and MobileNets. Our scheme achieves over 20% DRAM Access reduction on EfficientNet-B3.
format Preprint
id arxiv_https___arxiv_org_abs_2501_00636
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Applying Graph Explanation to Operator Fusion
Mills, Keith G.
Qharabagh, Muhammad Fetrat
Qiu, Weichen
Han, Fred X.
Salameh, Mohammad
Lu, Wei
Jui, Shangling
Niu, Di
Machine Learning
Computer Vision and Pattern Recognition
Layer fusion techniques are critical to improving the inference efficiency of deep neural networks (DNN) for deployment. Fusion aims to lower inference costs by reducing data transactions between an accelerator's on-chip buffer and DRAM. This is accomplished by grouped execution of multiple operations like convolution and activations together into single execution units - fusion groups. However, on-chip buffer capacity limits fusion group size and optimizing fusion on whole DNNs requires partitioning into multiple fusion groups. Finding the optimal groups is a complex problem where the presence of invalid solutions hampers traditional search algorithms and demands robust approaches. In this paper we incorporate Explainable AI, specifically Graph Explanation Techniques (GET), into layer fusion. Given an invalid fusion group, we identify the operations most responsible for group invalidity, then use this knowledge to recursively split the original fusion group via a greedy tree-based algorithm to minimize DRAM access. We pair our scheme with common algorithms and optimize DNNs on two types of layer fusion: Line-Buffer Depth First (LBDF) and Branch Requirement Reduction (BRR). Experiments demonstrate the efficacy of our scheme on several popular and classical convolutional neural networks like ResNets and MobileNets. Our scheme achieves over 20% DRAM Access reduction on EfficientNet-B3.
title Applying Graph Explanation to Operator Fusion
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2501.00636