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 条
  • [1] Actor-Critic for Multi-Agent Reinforcement Learning with Self-Attention
    Zhao, Juan
    Zhu, Tong
    Xiao, Shuo
    Gao, Zongqian
    Sun, Hao
    INTERNATIONAL JOURNAL OF PATTERN RECOGNITION AND ARTIFICIAL INTELLIGENCE, 2022, 36 (09)
  • [2] Reinforcement Learning with Self-Attention Networks for Cryptocurrency Trading
    Betancourt, Carlos
    Chen, Wen-Hui
    APPLIED SCIENCES-BASEL, 2021, 11 (16):
  • [3] Position-Aware Communication via Self-Attention for Multi-Agent Reinforcement Learning
    Shih, Tsan-Hua
    Lin, Hsien-, I
    2020 IEEE INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS - TAIWAN (ICCE-TAIWAN), 2020,
  • [4] Adversarial Inverse Reinforcement Learning With Self-Attention Dynamics Model
    Sun, Jiankai
    Yu, Lantao
    Dong, Pinqian
    Lu, Bo
    Zhou, Bolei
    IEEE ROBOTICS AND AUTOMATION LETTERS, 2021, 6 (02) : 1880 - 1886
  • [5] On the Integration of Self-Attention and Convolution
    Pan, Xuran
    Ge, Chunjiang
    Lu, Rui
    Song, Shiji
    Chen, Guanfu
    Huang, Zeyi
    Huang, Gao
    2022 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR 2022), 2022, : 805 - 815
  • [6] Q-SAT: Value Factorization with Self-Attention for Deep Multi-Agent Reinforcement Learning
    Hu, Xunhan
    Zhao, Jian
    Zhao, Youpeng
    Zhou, Wengang
    Li, Houqiang
    2023 INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS, IJCNN, 2023,
  • [7] A Multi-Agent Reinforcement Learning Method Based on Self-Attention Mechanism and Policy Mapping Recombination
    Li J.-C.
    Shi H.-B.
    Hwang K.-S.
    Jisuanji Xuebao/Chinese Journal of Computers, 2022, 45 (09): : 1842 - 1858
  • [8] C-DRX parameters optimization using Multi-Agent Reinforcement Learning with Self-attention
    Song, Juhwan
    Nam, Yujin
    Choi, Minsuk
    Jo, Yonghee
    Lee, Seungyeon
    Lee, Sanghyun
    Kim, Nakyoung
    Lee, Junghwan
    Kim, Seungmo
    Kim, Haksung
    Jang, Seowoo
    IEEE CONFERENCE ON GLOBAL COMMUNICATIONS, GLOBECOM, 2023, : 3355 - 3360
  • [9] Traffic Signal Control with Deep Reinforcement Learning and Self-attention Mechanism
    Zhang X.
    Nie S.
    Li Z.
    Zhang H.
    Jiaotong Yunshu Xitong Gongcheng Yu Xinxi/Journal of Transportation Systems Engineering and Information Technology, 2024, 24 (02): : 96 - 104
  • [10] Attention Transfer Reinforcement Learning for Test Case Prioritization in Continuous Integration
    Su, Qingran
    Li, Xingze
    Ren, Yuming
    Qiu, Ruinan
    Hu, Chunming
    Yin, Yongfeng
    APPLIED SCIENCES-BASEL, 2025, 15 (04):