Towards Generating Summaries for Lexically Confusing Code through Code Erosion
Open accessThe DOI matches its Crossref record; 24 of the 24 references it cites were found in a registry or an index.
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“we refer to prior works focusing on code readability, which propose clear definitions regarding factors contained in code snippets [7, 55, 64], systematically categorize code features into three fundamental dimensions (semantics, format, and implementation details) based on established literature [9, 10, 16, 29, 82], and design mutation operators that comprehensively cover each dimension.”
From What Makes In-Context Examples Effective for Code Generation? (2026) · cites this paper as [82]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017) · arXiv · doi:10.48550/arxiv.1706.03762 · Cited by 120,404
Exploiting Generative AI to Scale up Intelligent Tutoring Systems
Jakubův, J., Chvalovský, K., Goertzel, Z., Kaliszyk, C., Olšák, M., Piotrowski, B., Schulz, S., Suda, M., & Urban, J. (2023) · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · doi:10.4230/lipics.itp.2023.19 · Cited by 76,658
Glove: Global Vectors for Word Representation
Pennington, J., Socher, R., & Manning, C. (2014) · Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.3115/v1/d14-1162 · Cited by 34,071 · cited 1×
“The synonym is chosen by calculating the neighborhoods of word embeddings according to pre-trained GloVe embedding [Pennington et al. , 2014].”
MethodLearning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation
Cho, K., van Merrienboer, B., Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., & Bengio, Y. (2014) · Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.3115/v1/d14-1179 · Cited by 25,545
BLEU: a method for automatic evaluation of machine translation
Papineni, K., Roukos, S., Ward, T., & Zhu, W.-J. (2001) · Proceedings of the 40th Annual Meeting on Association for Computational Linguistics - ACL '02 · doi:10.3115/1073083.1073135 · Cited by 21,344 · cited 1×
“We use average BLEU [ Papineni et al. , 2002 ] and Ribes [ Isozaki et al. , 2010 ] as evaluation metrics to evaluate our approach measuring the correspondence between a generated summary and several output references.”
MethodAuto-Encoding Variational Bayes
Kingma, D. P., & Welling, M. (2013) · arXiv · doi:10.48550/arxiv.1312.6114 · Cited by 20,067
Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks
Tai, K. S., Socher, R., & Manning, C. D. (2015) · Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) · doi:10.3115/v1/p15-1150 · Cited by 3,081 · cited 2×
“We build our encoder based on Tree-LSTM [Tai et al. , 2015], which is a generalization of LSTM to tree-structured network topologies, traversing a single tree from leaf nodes to the root node.”
BackgroundMethodGenerating Sentences from a Continuous Space
Bowman, S. R., Vilnis, L., Vinyals, O., Dai, A., Jozefowicz, R., & Bengio, S. (2016) · Proceedings of The 20th SIGNLL Conference on Computational Natural Language Learning · doi:10.18653/v1/k16-1002 · Cited by 2,061 · cited 2×
“Since variational encoder-decoder framework is tricky with RNN models, (cid:21) kl is used to anneal the KL divergence to balance the value of the two terms [ Bowman et al. , 2015; Bahuleyan et al. , 2018 ] .”
MethodInfluentialSummarizing Source Code using a Neural Attention Model
Iyer, S., Konstas, I., Cheung, A., & Zettlemoyer, L. (2016) · Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/p16-1195 · Cited by 701
A Hierarchical Latent Variable Encoder-Decoder Model for Generating Dialogues
Serban, I., Sordoni, A., Lowe, R., Charlin, L., Pineau, J., Courville, A., & Bengio, Y. (2017) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v31i1.10983 · Cited by 697
Hu, X., Li, G., Xia, X., Lo, D., & Jin, Z. (2018) · Proceedings of the 26th Conference on Program Comprehension · doi:10.1145/3196321.3196334 · Cited by 621 · cited 6×
“(cid:15) SBT [Hu et al. , 2018] For our generative summarization model of VECOS, both the input size and hidden size of LSTM are set as 256.”
MethodResultInfluentialCodeSearchNet Challenge: Evaluating the State of Semantic Code Search
Husain, H., Wu, H.-H., Gazit, T., Allamanis, M., & Brockschmidt, M. (2019) · arXiv · doi:10.48550/arxiv.1909.09436 · Cited by 483 · cited 1×
“For example, for the Java code-summary corpus in [Hu et al. , 2018] and [Husain et al. , 2019], the identifier tokens can be found in the sum-mary directly for more than 65% code-summary pairs.”
MethodOn the Use of Automated Text Summarization Techniques for Summarizing Source Code
Haiduc, S., Aponte, J., Moreno, L., & Marcus, A. (2010) · 2010 17th Working Conference on Reverse Engineering · doi:10.1109/wcre.2010.13 · Cited by 408
Improving automatic source code summarization via deep reinforcement learning
Wan, Y., Zhao, Z., Yang, M., Xu, G., Ying, H., Wu, J., & Yu, P. S. (2018) · Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering · doi:10.1145/3238147.3238206 · Cited by 385
Automatic generation of natural language summaries for Java classes
Moreno, L., Aponte, J., Sridhara, G., Marcus, A., Pollock, L., & Vijay-Shanker, K. (2013) · 2013 21st International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc.2013.6613830 · Cited by 331
Deissenboeck, F., & Pizka, M. (2006) · Software Quality Journal · doi:10.1007/s11219-006-9219-1 · Cited by 315 · cited 2×
“What is worse, identifier names are subject to decay during software evolution [Deissenboeck and Pizka, 2006].”
BackgroundA Neural Model for Generating Natural Language Summaries of Program Subroutines
LeClair, A., Jiang, S., & McMillan, C. (2019) · 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2019.00087 · Cited by 294
Automatic Evaluation of Translation Quality for Distant Language Pairs
Isozaki, H., Hirao, T., Duh, K., Sudoh, K., & Tsukada, H. (2010) · Cited by 286
AutoComment: Mining question and answer sites for automatic comment generation
Wong, E., Yang, J., & Tan, L. (2013) · 2013 28th IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2013.6693113 · Cited by 245
Variational Neural Machine Translation
Zhang, B., Xiong, D., su, J., Duan, H., & Zhang, M. (2016) · Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/d16-1050 · Cited by 208
Variational Attention for Sequence-to-Sequence ModelsPreprint
Bahuleyan, H., Mou, L., Vechtomova, O., & Poupart, P. (2017) · arXiv (Cornell University) · doi:10.48550/arxiv.1712.08207 · Cited by 119 · cited 2×
“On their basis, [Bahuleyan et al. , 2018] take a step forward by modeling attention mechanism via variational inferences to avoid bypassing phenomenon.”
BackgroundMethodContext2Name: A Deep Learning-Based Approach to Infer Natural Variable Names from Usage Contexts
Bavishi, R., Pradel, M., & Sen, K. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1809.05193 · Cited by 42 · cited 1×
“Such obfuscation maintains the program semantics but diminishes code readability to hide business logic and prevent software plagiarism [Bavishi et al. , 2018; Tran et al. , 2019].”
BackgroundCodeAttention: translating source code to comments by exploiting the code constructs
Zheng, W., Zhou, H.-Y., Li, M., & Wu, J. (2018) · Frontiers of Computer Science · doi:10.1007/s11704-018-7457-6 · Cited by 36 · cited 2×
“CodeNN [Iyer et al. , 2016] and CodeAttention [Zheng et al. , 2019] utilize attention LSTM to generate summaries sequentially.”
MethodSelf-citationRecovering Variable Names for Minified Code with Usage Contexts
Tran, H., Tran, N., Nguyen, S., Nguyen, H. A., & Nguyen, T. N. (2019) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2019.00119 · Cited by 22
Cited by
CodeCipher: Learning to Obfuscate Source Code Against LLMsPreprint
Lin, Y., Wan, C., Fang, Y., & Gu, X. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2410.05797 · Cited by 17
“Previous work has shown that LLMs can better handle obfuscated code when they are made aware of the obfuscation upfront (Yan & Li, 2021).”
BackgroundMa, Y.-F., & Li, M. (2022) · Proceedings · doi:10.1109/icdm54844.2022.00040 · Cited by 7
“VECOS [28] employs the abstract syntax tree based encoder-decoder to generate the code summary for the lexical confusing code.”
MethodSelf-citationHow Effectively Do Code Language Models Understand Poor-Readability Code?
Hu, C., Chai, Y., Zhou, H., Meng, F., Zhou, J., & Gu, X. (2024) · Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3691620.3695072 · Cited by 6
“Overall, we employ seven rules for constructing obfuscated code: • Identifier Ordered Erosion (IOE) [7, 16, 40], replace identifiers in the code with ordered symbols such as "v0" and "v1", and modify the replaced identifier in the summary accordingly.”
Readability-Robust Code Summarization via Meta Curriculum LearningPreprint
Zeng, W., Chai, Y., Zhou, H., Meng, F., Zhou, J., & Gu, X. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2601.05485 · Cited by 5
“To introduce controlled complexity, we apply code obfuscation techniques such as variable renaming with non-semantic symbols [9], [27], [28], [32] and insertion of dead code [25], [26], producing datasets with reduced readability (Levels 2 and 3).”
InfluentialGülay, B., & Yılmaz, C. (2025) · IEEE European Symposium on Security and Privacy Workshops (EuroS&PW) · doi:10.1109/eurospw67616.2025.00007 · Cited by 2
“Finally, research by Zhang et al. explored combining static analysis tools with LLMs for vulnerability detection in Java code (Bench-Java dataset) [15].”
Metadata
- Authors
- Yan, F., & Li, M.
- Affiliations
- National Key Laboratory for Novel Software Technology, Nanjing University
- Nanjing University (CN)
- ORCID
- Li, Ming
- Venue
- Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence
- Published
- 2021-08
- Pages
- 3721-3727
- OpenAlex
- W3188431509
- Cited by
- 6
- References
- 24
- Citations by year
- 2026: 1 · 2025: 2 · 2024: 2 · 2022: 1
- FWCI
- 0.62
- Type
- conference paper
- Language
- en
- Open access
- bronze
- doi.org
- Locations
- International Joint Conference on Artificial Intelligence (publishedVersion)
- Funders
- National Natural Science Foundation of China (62076121)
- National Key Research and Development Program of China (2017YFB1001903)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Software › Model-Driven Software Engineering Techniques
- Keywords
- code summarization, variational inference, program comprehension, lexical ambiguity
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.