arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2008.11830cs.LGcs.AI
收藏

用于实时的系统的神经网络设计

Designing Neural Networks for Real-Time Systems

University of Auckland(奥克兰大学);Technical University of Denmark(丹麦技术大学)

Hammond Pearce, Xin Yang, Partha S. Roop, Marc Katzef, Tórur Biskopstø Strøm

摘要:

人工神经网络(ANN)越来越多地用于安全关键的网络物理系统(CPS)中。它们通常与传统的嵌入式软件位于同一位置,并可能执行咨询或基于控制的角色。验证这些系统的时序和功能正确性非常重要。然而,文献中的大多数方法只考虑保证基于ANN的控制器的功能。这个问题很大程度上源于常见神经网络框架中使用的实现策略--它们的底层源代码通常不适合静态时序分析等形式化技术。因此,安全关键CPS的开发人员必须依赖于非正式的技术,如基于测量的方法来证明正确性,这些技术充其量只能提供弱保证。在这项工作中,我们应对这一挑战。我们提出了一个设计管道,使用流行的深度学习框架Keras训练的神经网络被编译为功能等效的C代码。此C代码仅限于可由现有静态时序分析工具分析的简单结构。因此,如果编译到合适的时间可预测平台,则可以静态地导出所有执行边界。为了证明我们的方法的好处,我们执行了一个经过训练的人工神经网络来驾驶自动驾驶汽车绕着赛道行驶。我们编译的人工神经网络的帕特莫斯时间可预测的控制器,并表明,我们可以得到最坏的情况下执行时间。

英文摘要:

Artificial Neural Networks (ANNs) are increasingly being used within safety-critical Cyber-Physical Systems (CPSs). They are often co-located with traditional embedded software, and may perform advisory or control-based roles. It is important to validate both the timing and functional correctness of these systems. However, most approaches in the literature consider guaranteeing only the functionality of ANN based controllers. This issue stems largely from the implementation strategies used within common neural network frameworks -- their underlying source code is often simply unsuitable for formal techniques such as static timing analysis. As a result, developers of safety-critical CPS must rely on informal techniques such as measurement based approaches to prove correctness, techniques that provide weak guarantees at best. In this work we address this challenge. We propose a design pipeline whereby neural networks trained using the popular deep learning framework Keras are compiled to functionally equivalent C code. This C code is restricted to simple constructs that may be analysed by existing static timing analysis tools. As a result, if compiled to a suitable time-predictable platform all execution bounds may be statically derived. To demonstrate the benefits of our approach we execute an ANN trained to drive an autonomous vehicle around a race track. We compile the ANN to the Patmos time-predictable controller, and show that we can derive worst case execution timings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑