A Self-attention Agent of Reinforcement Learning in Continuous Integration Testing

被引:0
|
作者
Liu, Bangfu [1 ]
Li, Zheng [1 ]
Zhao, Ruilian [1 ]
Shang, Ying [1 ]
机构
[1] Beijing Univ Chem Technol, Coll Informat Sci & Technol, Beijing, Peoples R China
基金
中国国家自然科学基金;
关键词
Continuous Integration Testing; Test Case Prioritization; Reinforcement Learning; Self-attention Mechanism;
D O I
10.1109/COMPSAC57700.2023.00118
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Test case prioritization based on reinforcement learning has been seen as a promising way to achieve continuous integration testing. Agent and reward function are two crucial components of reinforcement learning. During the process of reinforcement learning in continuous integration test case prioritization, the agent decides on the execution order of test cases (actions) for the next integration testing (environment) based on the corresponding test case features (states), aiming to detect errors early by maximizing the reward. Furthermore, having more test case features allows the agent to perceive the environment better, but it also increases computation consumption and brings convergence problems to learning. In this paper, we first propose a multi-feature environment perception for continuous integration test case prioritization. It introduces multiple features based on test case history execution information to solve the agent's limitation in obtaining environmental information. Additionally, we propose a self-attention agent network structure, which captures relationships between multiple features to prevent the convergence problem of reinforcement learning. An extensive experimental and analytical study was conducted with 15 existing reward functions on 14 industrial data sets. The results show that (1) the proposed multiple features can help the agent to perceive environmental information more comprehensively, and (2) the proposed self-attention agent can process environmental information better to achieve more effective test case prioritization in continuous integration testing.
引用
收藏
页码:886 / 891
页数:6
相关论文
共 50 条
  • [21] Continuous Self-Attention Models with Neural ODE Networks
    Zhang, Jing
    Zhang, Peng
    Kong, Baiwen
    Wei, Junqiu
    Jiang, Xin
    THIRTY-FIFTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, THIRTY-THIRD CONFERENCE ON INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE AND THE ELEVENTH SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2021, 35 : 14393 - 14401
  • [22] Compressed Self-Attention for Deep Metric Learning
    Chen, Ziye
    Gong, Mingming
    Xu, Yanwu
    Wang, Chaohui
    Zhang, Kun
    Du, Bo
    THIRTY-FOURTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, THE THIRTY-SECOND INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE AND THE TENTH AAAI SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2020, 34 : 3561 - 3568
  • [23] LEARNING HIERARCHICAL SELF-ATTENTION FOR VIDEO SUMMARIZATION
    Liu, Yen-Ting
    Li, Yu-Jhe
    Yang, Fu-En
    Chen, Shang-Fu
    Wang, Yu-Chiang Frank
    2019 IEEE INTERNATIONAL CONFERENCE ON IMAGE PROCESSING (ICIP), 2019, : 3377 - 3381
  • [24] Historical Information Stability based Reward for Reinforcement Learning in Continuous Integration Testing
    Cao, Tiange
    Li, Zheng
    Zhao, Ruilian
    Yang, Yang
    2021 IEEE 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS 2021), 2021, : 231 - 242
  • [25] Focus on New Test Cases in Continuous Integration Testing based on Reinforcement Learning
    Chen, Fanliang
    Li, Zheng
    Shang, Ying
    Yang, Yang
    2022 IEEE 22ND INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY, QRS, 2022, : 830 - 841
  • [26] Adaptive Reward Computation in Reinforcement Learning-Based Continuous Integration Testing
    Yang, Yang
    Pan, Chaoyue
    Li, Zheng
    Zhao, Ruilian
    IEEE ACCESS, 2021, 9 : 36674 - 36688
  • [27] Dynamic Time Window based Reward for Reinforcement Learning in Continuous Integration Testing
    Pan, Chaoyue
    Yang, Yang
    Li, Zheng
    Guo, Junxia
    THE 12TH ASIA-PACIFIC SYMPOSIUM ON INTERNETWARE, INTERNETWARE 2020, 2021, : 189 - 198
  • [28] Cost-Aware Dynamic Cloud Workflow Scheduling Using Self-attention and Evolutionary Reinforcement Learning
    Shen, Ya
    Chen, Gang
    Ma, Hui
    Zhang, Mengjie
    SERVICE-ORIENTED COMPUTING, ICSOC 2024, PT II, 2025, 15405 : 3 - 18
  • [29] Self-attention based deep direct recurrent reinforcement learning with hybrid loss for trading signal generation
    Kwak, Dongkyu
    Choi, Sungyoon
    Chang, Woojin
    INFORMATION SCIENCES, 2023, 623 : 592 - 606
  • [30] CONTINUOUS-TIME SELF-ATTENTION IN NEURAL DIFFERENTIAL EQUATION
    Chien, Jen-Tzung
    Chen, Yi-Hsiang
    2021 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING (ICASSP 2021), 2021, : 3290 - 3294