TY - GEN
T1 - Analyzing the Impact of Context Representation and Scope in Code Infilling
AU - Heo, Jinseok
AU - Lee, Eunseok
N1 - Publisher Copyright:
© 2024 IEEE Computer Society. All rights reserved.
PY - 2024/5/23
Y1 - 2024/5/23
N2 - Existing studies solve software engineering tasks using code infilling through LLMC. They utilize context information, which refers to data near the target code of infilling, as input prompts. Although prompts are essential for infilling the target code, current studies use them without analyzing the impact of the representation and scope of context on code infilling. In this study, we analyzed how context representation and scope affect the performance of code infilling. We used XLCost, which contains code, comments, and a function comment for various programming languages. The combination of code and a function comment for context representation yielded the best code infilling performance. Furthermore, we found that the context scope is proportional to performance. Our analysis results can be applied in various tasks that involve code infilling in the future.
AB - Existing studies solve software engineering tasks using code infilling through LLMC. They utilize context information, which refers to data near the target code of infilling, as input prompts. Although prompts are essential for infilling the target code, current studies use them without analyzing the impact of the representation and scope of context on code infilling. In this study, we analyzed how context representation and scope affect the performance of code infilling. We used XLCost, which contains code, comments, and a function comment for various programming languages. The combination of code and a function comment for context representation yielded the best code infilling performance. Furthermore, we found that the context scope is proportional to performance. Our analysis results can be applied in various tasks that involve code infilling in the future.
UR - https://www.scopus.com/pages/publications/85194833955
U2 - 10.1145/3639478.3643107
DO - 10.1145/3639478.3643107
M3 - Conference contribution
AN - SCOPUS:85194833955
T3 - Proceedings - International Conference on Software Engineering
SP - 333
EP - 334
BT - Proceedings - 2024 ACM/IEEE 46th International Conference on Software Engineering
PB - IEEE Computer Society
T2 - 46th International Conference on Software Engineering: Companion, ICSE-Companion 2024
Y2 - 14 April 2024 through 20 April 2024
ER -