错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Accurate Latency Prediction of Deep Learning Model Inference Under Dynamic Runtime Resource

  • Haihong She,
  • Yigui Luo,
  • Zhaohong Xiang,
  • Weiming Liang,
  • Yin Xie

摘要

Accurate prediction of inference time can effectively accelerate model design and deployment in neural architecture search (NAS) algorithms, and provide hints for process scheduling in intelligent systems. Most of current latency prediction methods assume that all hardware resources are dominated by a single inference task. Due to the neglect of inter-process resource contention, these methods will fail in multi-tasking parallel scenarios. As an attempt to fill this gap, a hardware-aware prediction method based on double feature embedding (HADE) for deep learning model inference time is proposed. In HADE, operator-wise switchable Multilayer Perceptron and GNN-based graph embedding are used to encode node features, which are generated by unified nodes vectorization. Then, relying on the Resource Aware Latency (RAL) formula based on processor modeling techniques, the model inference time under dynamic runtime resource can be predicted. The experiments show that the accuracy of standard inference time prediction can reach 96.4%, and of resource dependent inference time can reach 79.7%.