Code Transform Model Producing High-Performance Program

This paper introduces a novel transform method to produce the newly generated programs through code transform model called the second generation of Generative Pre-trained Transformer (GPT-2) reasonably, improving the program execution performance significantly. Besides, a theoretical estimation in s...

Full description

Saved in:
Bibliographic Details
Published inComputer modeling in engineering & sciences Vol. 129; no. 1; pp. 253 - 277
Main Authors Rong Chang, Bao, Tsai, Hsiu-Fen, Su, Po-Wen
Format Journal Article
LanguageEnglish
Published Henderson Tech Science Press 2021
Subjects
Online AccessGet full text
ISSN1526-1506
1526-1492
1526-1506
DOI10.32604/cmes.2021.015673

Cover

More Information
Summary:This paper introduces a novel transform method to produce the newly generated programs through code transform model called the second generation of Generative Pre-trained Transformer (GPT-2) reasonably, improving the program execution performance significantly. Besides, a theoretical estimation in statistics has given the minimum number of generated programs as required, which guarantees to find the best one within them. The proposed approach can help the voice assistant machine resolve the problem of inefficient execution of application code. In addition to GPT-2, this study develops the variational Simhash algorithm to check the code similarity between sample program and newly generated program, and conceives the piecewise longest common subsequence algorithm to examine the execution’s conformity from the two programs mentioned above. The code similarity check deducts the redundant generated programs, and the output conformity check finds the best-performing generative program. In addition to texts, the proposed approach can also prove the other media, including images, sounds, and movies. As a result, the newly generated program outperforms the sample program significantly because the number of code lines reduces 27.21%, and the program execution time shortens 24.62%.
Bibliography:ObjectType-Article-1
SourceType-Scholarly Journals-1
ObjectType-Feature-2
content type line 14
ISSN:1526-1506
1526-1492
1526-1506
DOI:10.32604/cmes.2021.015673