A Comparison of Transformer and AR-SI Oracle for Control-CPS Software Fault Localization

Shiyu Zhang, Wenxia Liu, Qixin Wang, Lei Bu, Yu Pei

Research output: Chapter in book / Conference proceedingConference article published in proceeding or bookAcademic researchpeer-review

Abstract

Control-CPSs are usually safety or mission critical, hence they demand thorough debugging. As nowadays control-CPSs reaching millions of lines of source code, traditional human-flesh debugging is no longer sufficient. We need automated software fault localization (SFL) to assist the debugging. In automated SFL, automatically generated test cases are fed to the control-CPS (or the simulator of the control-CPS), to generate thousands of cyber-subsystem code traces and physical-subsystem trajectories. Next, another automated program, aka oracle, is needed to label the correctness of these physical-subsystem trajectories (and hence cyber-subsystem code traces), even without knowing if there is a bug in the cyber-subsystem. Control-CPS oracle design is a known hard problem. To our best knowledge, AR-SI oracle (denoted as AO in the following) is the most widely adopted control-CPS oracle so far. On the other hand, recently, transformer emerges as a major game changer in the domain of time series prediction. As AO is also time series prediction based, people naturally wonder if transformers can also be used as control-CPS oracles; and if so, can it outperform AO. In this paper, we answer this question by comparing AO with an intuitive design of transformer control-CPS oracle (simplified as TO in the following). Our comparison results show that in terms of SFL accuracy and latency, the TO does not significantly outperform the AO; in terms of false positive rate, the AO performs significantly better; and in terms of false negative rate, the TO performs significantly better.

Original languageEnglish
Title of host publicationProceedings - 2023 IEEE 29th International Conference on Embedded and Real-Time Computing Systems and Applications, RTCSA 2023
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages95-100
Number of pages6
ISBN (Electronic)9798350337860
DOIs
Publication statusPublished - Aug 2023
Event29th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications, RTCSA 2023 - Niigata, Japan
Duration: 30 Aug 20231 Sept 2023

Publication series

NameProceedings - 2023 IEEE 29th International Conference on Embedded and Real-Time Computing Systems and Applications, RTCSA 2023

Conference

Conference29th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications, RTCSA 2023
Country/TerritoryJapan
CityNiigata
Period30/08/231/09/23

Keywords

  • control-CPS
  • Oracle
  • Software Fault Localization
  • transformer

ASJC Scopus subject areas

  • Computer Networks and Communications
  • Computer Science Applications
  • Hardware and Architecture
  • Software

Fingerprint

Dive into the research topics of 'A Comparison of Transformer and AR-SI Oracle for Control-CPS Software Fault Localization'. Together they form a unique fingerprint.

Cite this