Title of article :
Applying Code Transform Model to Newly Generated Program for Improving Execution Performance
Author/Authors :
Chang, Bao Rong Department of Computer Science and Information Engineering - National University of Kaohsiung, Kaohsiung, Taiwan , Tsai, Hsiu-Fen Department of Fragrance and Cosmetic Science - Kaohsiung Medical University, Kaohsiung, Taiwan , Su, Po-Wen Department of Computer Science and Information Engineering - National University of Kaohsiung, Kaohsiung, Taiwan
Abstract :
The existing programs inside the voice assistant machine prompt human-machine interaction in response to a request from a user. However, the crucial problem is that the machine often may not give a proper answer to the user or cannot work out the existing program execution efficiently. Therefore, this study proposes a novel transform method to replace the existing programs (called sample programs in this paper) inside the machine with newly generated programs through code transform model GPT-2 that can reasonably solve the problem mentioned above. In essence, this paper introduces a theoretical estimation in statistics to infer at least a number of generated programs as required so as to guarantee that the best one can be found within them. In addition, the proposed approach not only imitates a voice assistant system with filtering redundant keywords or adding new keywords to complete keyword retrieval in semantic database but also checks code similarity and verifies the conformity of the executive outputs between sample programs and newly generated programs. According to code checking and program output verification, the processes can expedite transform operations efficiently by removing the redundant generated programs and finding the best-performing generated program. As a result, the newly generated programs outperform the sample programs because the proposed approach reduces the number of code lines by 32.71% and lowers the program execution time by 24.34%, which is of great significance.
Keywords :
Improving Execution Performance , Applying Code , Transform Model , Newly Generated Program
Journal title :
Scientific Programming