A compositional approach using Keras for neural networks in real-time systems

Real-time systems are designed using model-driven approaches, where a complex system is represented as a set of interacting components. Such a compositional approach facilitates design of simpler components, which are easier to validate and integrate with the overall system. In contrast to such syst...

Full description

Saved in:
Bibliographic Details
Published in2020 Design, Automation & Test in Europe Conference & Exhibition (DATE) pp. 1109 - 1114
Main Authors Yang, Xin, Roop, Partha, Pearce, Hammond, Ro, Jin Woo
Format Conference Proceeding
LanguageEnglish
Published EDAA 01.03.2020
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:Real-time systems are designed using model-driven approaches, where a complex system is represented as a set of interacting components. Such a compositional approach facilitates design of simpler components, which are easier to validate and integrate with the overall system. In contrast to such systems, data-driven systems like neural networks are designed as monolithic black-boxes to capture the non-linear relationship from inputs to outputs. Increasingly, such systems are being used in safety-critical real-time systems. Here, a compositional approach would be ideal. However, to the best of our knowledge, such a compositional approach is lacking while designing data-driven components based on neural networks.This paper formalises this problem by developing the concept of Composed Neural Networks (CpNNs) by extending the well known Keras python framework. CpNNs formalise the synchronous composition of several interacting neural networks in Keras. Further, using the developed semantics, we enable modular compilation from a given CpNN to C code. The generated code is suitable for the Worst-Case Execution Time (WCET) analysis. Using several benchmarks we demonstrate the superiority of the developed approach over a recently proposed approach using Esterel, as well as the popular Python package Tensorflow Lite. For the given benchmarks, our approach is superior to Esterel with an average WCET reduction of 64.06%, and superior to Tensorflow Lite with an average measured WCET reduction of 62.08%.
ISSN:1558-1101
DOI:10.23919/DATE48585.2020.9116371