Towards Generating Summaries for Lexically Confusing Code through Code Erosion
Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence. Main Track. Pages 3721-3727.
https://doi.org/10.24963/ijcai.2021/512
Keywords
- Multidisciplinary Topics and Applications: Knowledge-based Software Engineering
- Data Mining: Mining Codebase and Software Repository
Abstract
Code summarization aims to summarize code functionality as high-level nature language descriptions to assist in code comprehension. Recent approaches in this field mainly focus on generating summaries for code with precise identifier names, in which meaningful words can be found indicating code functionality. When faced with lexically confusing code, current approaches are likely to fail since the correlation between code lexical tokens and summaries is scarce. To tackle this problem, we propose a novel summarization framework named VECOS. VECOS introduces an erosion mechanism to conquer the model's reliance on precisely defined lexical information. To facilitate learning the eroded code's functionality, we force the representation of the eroded code to align with the representation of its original counterpart via variational inference. Experimental results show that our approach outperforms the state-of-the-art approaches to generate coherent and reliable summaries for various lexically confusing code.
@inproceedings{ijcai2021p512,
title = {Towards Generating Summaries for Lexically Confusing Code through Code Erosion},
author = {Yan, Fan and Li, Ming},
booktitle = {Proceedings of the Thirtieth International Joint Conference on
Artificial Intelligence, {IJCAI-21}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Prof. Zhi-Hua Zhou},
pages = {3721--3727},
year = {2021},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2021/512},
url = {https://doi.org/10.24963/ijcai.2021/512},
}
TY - CPAPER TI - Towards Generating Summaries for Lexically Confusing Code through Code Erosion AU - Yan, Fan AU - Li, Ming T2 - Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2021 SP - 3721 EP - 3727 DO - 10.24963/ijcai.2021/512 UR - https://doi.org/10.24963/ijcai.2021/512 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: