Litcius/Paper detail

NNLQP: A Multi-Platform Neural Network Latency Query and Prediction System with An Evolving Database

Liang Liu, Mingzhu Shen, Ruihao Gong, Fengwei Yu, Hailong Yang

202217 citationsDOI

Abstract

Deep neural networks (DNNs) are widely used in various applications. The accurate and latency feedback is essential for model design and deployment. In this work, we attempt to alleviate the cost of model latency acquisition from two aspects: latency query and latency prediction. To ease the difficulty of acquiring model latency on multi-platform, our latency query system can automatically convert DNN model into the corresponding executable format, and measure latency on the target hardware. Powered by this, latency queries can be fulfilled with a simple interface calling. For the efficient utilization of previous latency knowledge, we employ a MySQL database to store numerous models and the corresponding latencies. In our system, the efficiency of latency query can be boosted by 1.8 ×. For latency prediction, we first represent neural networks with the unified GNN-based graph embedding. With the help of the evolving database, our model-based latency predictor achieves better performance, which realizes 12.31% accuracy improvement compared with existing methods. Our codes are open-sourced at https://github.com/ModelTC/NNLQP.

Topics & Concepts

Computer scienceLatency (audio)ExecutableArtificial neural networkSoftware deploymentEmbeddingDistributed computingArtificial intelligenceOperating systemTelecommunicationsAdvanced Neural Network ApplicationsAdvanced Graph Neural NetworksGraph Theory and Algorithms