计算机科学与探索

• 学术研究 •    下一篇

面向无人机协同定位的机载深度计算编译优化

熊康,刘思聪,王宏涛,高元,郭斌,於志文   

  1. 1.西北工业大学 计算机学院,西安 710072
    2.中国电子科技集团公司,第十五研究所,北京 514089
    3.哈尔滨工程大学,哈尔滨 150009

Compiler Optimization for On-device Deep Learning in UAV Cooperative Localization

XIONG Kang, LIU Sicong, WANG Hontao, GAO Yuan, GUO Bin, YU Zhiwen   

  1. 1. College of Computer Science, Northwestern Polytechnical University, Xi’an 710072, China
    2. China Electronics Technology Group Corporation, Fifteenth Research Institute Beijing 514089, China
    3. Harbin Engineering University, Harbin 150009,China

摘要: 随着无人机技术快速发展,在定位信号缺失的情况下进行无人机定位成了一个研究难题。而近几年图神经网络的出现与发展,为解决这一难题提供了一种新的解决思路。然而在资源受限的无人机端侧部署图神经网络面临着无人机算储资源受限及实时性难以满足等挑战。在此背景下,本文提出面向无人机协同定位的机载深度计算编译优化方法。具体地,我们采用了一种轻量化的时间图卷积神经网络模型,该时间图卷积网络由图卷积网络和门控递归单元组成,将无人机群的空间依赖性和无人机位置变化的时间依赖性同时加以考虑,对无人机群位置进行精确的预测;针对该模型在时间图卷积网络上的冗余特性,提出了基于逆向Cuthill-McKee图重排和基于双深度确定性策略梯度的全局自适应剪枝算法。在保证无人机群坐标精确预测的同时,不仅能提高数据在主存的空间局部性,加速模型的运算速度,而且能够对模型进行自适应的非结构化剪枝,降低模型的存储复杂度。实验结果表明,相对于已有的时间图卷积神经网络模型,编译优化后的轻量化时间图卷积神经网络模型在保留78.8%准确率的同时,模型计算时间降低37.9%,模型的平均剪枝率达到90.3%。

关键词: 时间图卷积网络, 协同定位, 通道剪枝, 图重排算法, 深度确定性策略梯度

Abstract: With the rapid development of UAV technology, it has become a difficult research problem to locate UAV in the absence of positioning signal. In recent years, the emergence and development of graph neural network provides a new way to solve this problem. However, the deployment of image neural networks in resource-constrained UAVs faces challenges such as limited storage resources and difficult real-time performance. Under this background, an airborne depth calculation and compilation optimization method for UAV collaborative positioning is proposed in this paper. Specifically, we use a lightweight time graph convolutional neural network model, which consists of a graph convolutional network and a gated recursive unit. The spatial dependence of UAV swarm and the time dependence of UAV position change are considered at the same time, and the position of UAV swarm is accurately predicted. Aiming at the redundancy of the model in the time-graph convolutional network, a global adaptive pruning algorithm based on inverse Cuthill-McKee graph rearrangement and double-depth deterministic strategy gradient is proposed. While ensuring the accurate prediction of UAV group coordinates, it can not only improve the spatial locality of data in main memory, accelerate the computing speed of the model, but also carry out adaptive unstructured pruning on the model and reduce the storage complexity of the model. The experimental results show that compared with the existing time graph convolutional neural network model, the compiled and optimized lightweight time graph convolutional neural network model retains 78.8% accuracy, while the calculation time of the model is reduced by 37.9%, and the average pruning rate of the model reaches 90.3%.

Key words: temporal graph convolutional network, cooperative localization, channel pruning, graph rearrangement algorithm, deep deterministic policy gradient