Hong Kong University of Science and Technology
Optimizing the inference efficiency of deep neural networks on the graph and the operator level
Abstract
dc:description<p>Deep neural networks (DNNs) have achieved great success in many areas. This great success is mainly achieved by increasingly large and computationally intensive deep learning models. The increased model size makes running DNNs time-consuming, which may cause severe problems. As DNN implementations affect the execution time, we can optimize the DNN implementations to make DNNs run faster. The best implementation of a DNN is affected by its model architecture, input workload, and the hardware to run on, therefore, each DNN should be optimized individually, with the consideration of its runtime information. However, the optimization space of DNN implementations is often huge, making it hard to search for the best implementation. Furthermore, we may need to conduct the optimization process multiple times in practice. Long optimization time can be unaffordable. As a result, the efficiency of optimizing the DNN implementation is also of great importance.</p> <p>In this thesis, we focus on the effectiveness and efficiency of optimizing DNN implementations and propose three techniques. As DNNs are usually interpreted as computation graphs, where each node (except the input/output nodes) corresponds to an operator in the model (e.g., matrix multiplication) and each edge corresponds to the data dependency between the related nodes, our techniques optimize the DNN implementation on the graph and the operator level, respectively. The graph-level optimization method searches for the equivalent computation graph for a DNN by applying transformations to its original computation graph iteratively. The operator-level optimization method searches for the equivalent low-level code for an operator by applying transformations to its naively implemented low-level code. Specifically, our first two techniques optimize the general DNNs on the two levels, respectively, which focus on accelerating the optimization of DNN implementations while maintaining good optimization effectiveness. Then we move to a special scenario, i.e., there being sparsity in DNNs, and propose a method to optimize the sparse operators (i.e., operators with sparse input tensors), which poses unique challenges as we need to consider the sparse formats to store the input tensors that will affect the way of data access and hence the possible operator implementations. Our proposed techniques can be generally applied to different DNNs and can be easily integrated into existing deep learning systems.</p>
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Fang, Jingzhi
- Contributors dc:contributor
-
- Chen, Lei
Rights
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://repository.hkust.edu.hk/ir/Record/1783.1-143319