NatGen: generative pre-training by “naturalizing” source code
The DOI matches its Crossref record; 58 of the 58 references it cites were found in a registry or an index.
Abstract
Pre-trained Generative Language models (e.g., PLBART, CodeT5, SPT-Code) for source code yielded strong results on several tasks in the past few years, including code generation and translation. These models have adopted varying pre-training objectives to learn statistics of code construction from very large-scale corpora in a self-supervised fashion; the success of pre-trained models largely hinges on these pre-training objectives. This paper proposes a new pre-training objective, “Naturalizing” of source code, exploiting code’s bimodal, dual-channel (formal & natural channels) nature. Unlike natural language, code’s bimodal, dual-channel nature allows us to generate semantically equivalent code at scale. We introduce six classes of semantic preserving transformations to introduce unnatural forms of code, and then force our model to produce more natural original programs written by developers. Learning to generate equivalent, but more natural code, at scale, over large corpora of open-source code, without explicit manual supervision, helps the model learn to both ingest & generate code. We fine-tune our model in three generative Software Engineering tasks: code generation, code translation, and code refinement with limited human-curated labeled data and achieve state-of-the-art performance rivaling CodeT5. We show that our pre-trained model is especially competitive at zero-shot and few-shot learning, and better at learning code properties (e.g., syntax, data flow)
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 [10]
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
Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., & Liu, P. J. (2019) · arXiv · doi:10.48550/arxiv.1910.10683 · Cited by 31,859
Language Models are Few-Shot Learners
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020) · arXiv · doi:10.48550/arxiv.2005.14165 · Cited by 23,372
Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., & Zettlemoyer, L. (2020) · Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/2020.acl-main.703 · Cited by 8,821
Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., & Zettlemoyer, L. (2019) · arXiv · doi:10.48550/arxiv.1910.13461 · Cited by 8,816 · cited 2×
“Denoising pre-training [3, 38, 39] is a wellestablished pre-training strategy for encoder-decoder models: the encoder is presented with a noised-up input, and the decoder is asked to generate the original, noise-free input.”
MethodOvercoming catastrophic forgetting in neural networks
Kirkpatrick, J., Pascanu, R., Rabinowitz, N., Veness, J., Desjardins, G., Rusu, A. A., Milan, K., Quan, J., Ramalho, T., Grabska-Barwinska, A., et al. (2017) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.1611835114 · Cited by 7,899 · cited 1×
“Nevertheless, when we further train a pre-trained model on different tasks, it is subject to łcatastrophic forgettingž [37] of the knowledge learned in the base model.”
BackgroundRefactoring: Improving the Design of Existing Code
Fowler, M. (2002) · Lecture Notes in Computer Science · doi:10.1007/3-540-45672-4_31 · Cited by 5,591
CodeBERT: A Pre-Trained Model for Programming and Natural Languages
Feng, Z., Guo, D., Tang, D., Duan, N., Feng, X., Gong, M., Shou, L., Qin, B., Liu, T., Jiang, D., et al. (2020) · Findings of the Association for Computational Linguistics: EMNLP 2020 · doi:10.18653/v1/2020.findings-emnlp.139 · Cited by 2,824
Zero-Shot Learning—A Comprehensive Evaluation of the Good, the Bad and the Ugly
Xian, Y., Lampert, C. H., Schiele, B., & Akata, Z. (2019) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2018.2857768 · Cited by 1,678 · cited 1×
“First, we consider zeroshot [56, 66] evaluation.”
Wang, Y., Wang, W., Joty, S., & Hoi, S. C. H. (2021) · Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2021.emnlp-main.685 · Cited by 1,495 · cited 8×
“As mentioned in Section 4, we startNatGen’s pre-training from CodeT5-base model [64].”
BackgroundMethodResultInfluentialWang, Y., Wang, W., Joty, S., & Hoi, S. C. H. (2021) · arXiv · doi:10.48550/arxiv.2109.00859 · Cited by 1,495 · cited 8×
“As mentioned in Section 4, we startNatGen’s pre-training from CodeT5-base model [64].”
BackgroundMethodResultInfluential
Research works printed but not linked: 15
- [5] Wasi Uddin Ahmad, Saikat Chakraborty, Baishakhi Ray, and Kai-Wei Chang. 2021. Unified Pre-training for Program Understanding and Generation. In 2021 Annual Conference of the North American Chapter of the Association for Computational Linguistics (NAACL) . -
- [4] Wasi Uddin Ahmad, Saikat Chakraborty, Baishakhi Ray, and Kai-Wei Chang. 2020. A Transformer-based Approach for Source Code Summarization. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (ACL) . -
- [15] Casey Casalnuovo, Kevin Lee, Hulin Wang, Prem Devanbu, and Emily Morgan. 2020. Do programmers prefer predictable expressions in code? Cognitive science 44, 12 (2020), e12921. -
- [16] Casey Casalnuovo, E Morgan, and P Devanbu. 2020. Does surprisal predict code comprehension difficulty. In Proceedings of the 42nd Annual Meeting of the Cognitive Science Society . Cognitive Science Society Toronto, Canada. -
- [19] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. 2021. Evaluating Large Language Models Trained on Code. arXiv:2107.03374 [cs.LG] - · arXiv
- [20] Kevin Clark, Minh-Thang Luong, Quoc V. Le, and Christopher D. Manning. 2020. ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators. In International Conference on Learning Representations . https://openreview.net/ pdf?id=r1xMH1BtvB -
- [21] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. [n.d.]. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) . -
- [23] Dumitru Erhan, Aaron Courville, Yoshua Bengio, and Pascal Vincent. 2010. Why does unsupervised pre-training help deep learning?. In Proceedings of the thirteenth international conference on artificial intelligence and statistics . JMLR Workshop and Conference Proceedings, 201-208. -
- [28] David Gros, Hariharan Sezhiyan, Prem Devanbu, and Zhou Yu. 2020. Code to Comment 'Translation': Data, Metrics, Baselining & Evaluation. In 2020 35th IEEE/ACM International Conference on Automated Software Engineering (ASE) . IEEE, 746-757. -
- [29] Daya Guo, Shuo Ren, Shuai Lu, Zhangyin Feng, Duyu Tang, Shujie Liu, Long Zhou, Nan Duan, Jian Yin, Daxin Jiang, et al. 2021. GraphCodeBERT: Pre-training Code Representations with Data Flow. In International Conference on Learning Representations . -
- [42] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv preprint arXiv:1907.11692 (2019). https://arxiv.org/abs/1907.11692 - · arXiv
- [50] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. OpenAI blog 1, 8 (2019), 9. -
- [56] Bernardino Romera-Paredes and Philip Torr. 2015. An embarrassingly simple approach to zero-shot learning. In International conference on machine learning . PMLR, 2152-2161. -
- [62] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. 2017. Attention is All you Need. In Advances in Neural Information Processing Systems 30 . 5998-6008. -
- [64] Yaqing Wang, Quanming Yao, James T Kwok, and Lionel M Ni. 2020. Generalizing from a few examples: A survey on few-shot learning. ACM computing surveys (csur) 53, 3 (2020), 1-34. -
Cited by
Items 101–182 of 182
You Don’t Have to Say Where to Edit! jLED—Joint Learning to Localize and Edit Source Code
Pian, W., Li, Y., Tian, H., Sun, T., Song, Y., Tang, X., Habib, A., Klein, J., & Bissyandé, T. F. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3712187 · Cited by 9
On the Generalizability of Deep Learning-based Code Completion Across Programming Language Versions
Ciniselli, M., Martin-Lopez, A., & Bavota, G. (2024) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1145/3643916.3644411 · Cited by 10
Assessing and Improving Syntactic Adversarial Robustness of Pre-Trained Models for Code TranslationPreprint
Yang, G., Zhou, Y., Zhang, X., Chen, X., Han, T., & Chen, T. (2023) · SSRN Electronic Journal · doi:10.2139/ssrn.4623115 · Cited by 9
Exploring the Potential of Pre-Trained Language Models of Code for Automated Program Repair
Hao, S., Shi, X., & Liu, H. (2024) · Electronics · doi:10.3390/electronics13071200 · Cited by 10
Neural Methods for Programming: A Comprehensive Survey and Future Directions
Gebreslassie, M. G., Lee, S., Ji, S., Ko, S., & Im, H. (2025) · Applied Sciences · doi:10.3390/app152212150 · Cited by 8
Yao, K., Oliva, G. A., Hassan, A. E., Asaduzzaman, M., Malton, A. J., & Walenstein, A. (2023) · Journal of Systems and Software · doi:10.1016/j.jss.2023.111651 · Cited by 8
The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generation
Manh, D. N., Hai, N. L., Dau, A. T. V., Nguyen, A. M., Nghiem, K., Guo, J., & Bui, N. D. Q. (2023) · Workshop for NLP Open Source Software (NLP-OSS) · doi:10.18653/v1/2023.nlposs-1.25 · Cited by 9
EXVul: Toward Effective and Explainable Vulnerability Detection for IoT Devices
Cao, S., Sun, X., Liu, W., Wu, D., Zhang, J., Li, Y., Luan, T. H., & Gao, L. (2024) · IEEE Internet of Things Journal · doi:10.1109/jiot.2024.3381641 · Cited by 8
“Following [29], once an injection location is found, an applicable augmentation operator ∈ { φ 1 , φ 2 , . . . , φ 6 } (shown in Table I) will be randomly selected and applied to get the transformed node.”
HierarchyNet: Learning to Summarize Source Code with Heterogeneous RepresentationsPreprint
Nguyen, M. H., Bui, N. D. Q., Hy, T. S., Tran-Thanh, L., & Nguyen, T. N. (2022) · arXiv (Cornell University) · doi:10.48550/arxiv.2205.15479 · Cited by 8
“…et al., 2020a; Wang et al., 2021b; Guo et al., 2020; Ahmad et al., 2021; Bui et al., 2021a; Elnaggar et al., 2021; Peng et al., 2021a; Kanade et al., 2020; Chakraborty et al., 2022; Ahmed and Devanbu, 2022; Niu et al., 2022), applying similar pretraining strategies as used for natural languages.”
MethodSpotting Code Mutation for Predictive Mutation Testing
Zhao, Y., Chen, Y., Sun, Z., Liang, Q., Wang, G., & Hao, D. (2024) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3691620.3695491 · Cited by 7
Trad, F. S., & Chehab, A. (2025) · International Conference on Data Science and Machine Learning Applications (CDMA) · doi:10.1109/cdma61895.2025.00034 · Cited by 7
“Their ability to comprehend and generate code positions them well for identifying complex vulnerabilities that traditional methods might miss. Specialized models like CodeGen [10], CodeBERT [11], and NatGen [12] have emerged in this field, each with unique strengths and limitations.”
Qi, W., Cao, J., Poddar, D., Li, S., & Wang, X. (2025) · Lecture notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering · doi:10.1007/978-3-031-94458-1_9 · Cited by 7
Trans-Compiler-Based Conversion from Cross-Platform Applications to Native Applications
Mahmoud, A. T., Radwan, M.-B. A., Soliman, A. M., Yousef, A. H., Zayed, H. H., & Medhat, W. (2024) · Annals of Emerging Technologies in Computing · doi:10.33166/aetic.2024.04.001 · Cited by 7
LLMs in the Heart of Differential Testing: A Case Study on a Medical Rule Engine
Isaku, E., Laaber, C., Sartaj, H., Ali, S., Schwitalla, T., & Nygård, J. F. (2025) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst62969.2025.10989025 · Cited by 7
“We follow previous works [1, 6, 17] and use EM to check if the completion (LLM test generation) matches exactly the expected output.”
Towards Tracing Code Provenance with Code WatermarkingPreprint
Li, W., Yang, B., Sun, Y., Chen, S., Song, Z., Xiang, L., Wang, X., & Zhou, C. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2305.12461 · Cited by 7
“Source code is one of a kind, which has distinctive features from natural languages: it involves two channels of information — formal and natural [19], [20].”
Genetic Auto-prompt Learning for Pre-trained Code Intelligence Language ModelsPreprint
Feng, C., Sun, Y., Li, K., Zhou, P., Lv, J., & Lu, A. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2403.13588 · Cited by 8
“CodeBLEU is a widely used metric in the code intelligence community for evaluating generated code contents [5], [34], [47].”
MethodHow 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
“To gain a more in-depth comparison between semantic and syntactic perturbations, we summarize the decrease of BLEU scores in Table 5.”
InfluentialThe New Compiler Stack: A Survey on the Synergy of LLMs and Compilers
Zhang, S.-M., Zhao, J.-C., Yu, Q.-C., Xia, C.-W., Wang, Z., Feng, X.-B., & Cui, H.-M. (2026) · CCF Transactions on High Performance Computing · doi:10.1007/s42514-025-00270-x · Cited by 4
“Besides pure performance optimization, there are work like NatGen (Chakraborty et al. 2022) which introduces a novel task of “code naturalization” to transform unnatural code into natural one that fits programming paradigms, where it pretrained a LM to naturalize code well in Java and Python.”
HEJ-Robust: A Robustness Benchmark for LLM-Based Automated Program Repair
Rabbi, F., & Yang, J. (2026) · ACM International Conference on AI-Powered Software (AIware) · doi:10.1145/3805760.3814929 · Cited by 6
Automated Code Editing with Search-Generate-Modify
Liu, C., Cetin, P., Patodia, Y., Ray, B., Chakraborty, S., & Ding, Y. (2024) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3639478.3643124 · Cited by 6
Self-citationGraphCodeBERT-Augmented Graph Attention Networks for Code Vulnerability Detection
Rangapuram, D. S., & Ratha, N. (2025) · IEEE Conference on Artificial Intelligence (CAI) · doi:10.1109/cai64502.2025.00161 · Cited by 5
LLMs for Microservice Generation: Capabilities, Challenges, and Advancements
Spista, R., Crispo, B., Giorgini, P., Marchetto, A., & Riccardi, G. (2025) · IEEE International Conference on Industry 4.0, Artificial Intelligence, and Communications Technology (IAICT) · doi:10.1109/iaict65714.2025.11100313 · Cited by 5
Calico: Automated Knowledge Calibration and Diagnosis for Elevating AI Mastery in Code Tasks
Qiu, Y., Hu, J., Zhang, Q., & Yin, H. (2024) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3650212.3680399 · Cited by 5
Boosting Large Language Models for System Software Retargeting: A Preliminary Study
Zhong, M., Lv, F., Wang, L., Qiu, L., Geng, H., Cui, H., & Feng, X. (2025) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner64311.2025.00037 · Cited by 5
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).”
CodeTF: One-stop Transformer Library for State-of-the-art Code LLMs
Bui, N. D. Q., Le, H., Wang, Y., Li, J., Gotmare, A. D., & Hoi, S. C. H. (2023) · arXiv · doi:10.48550/arxiv.2306.00029 · Cited by 4
“The success of large language models (LLMs) like BERT [39] and GPT [40] in natural language processing (NLP) has inspired researchers to adapt NLP language models for code [6, 4, 41, 42, 35, 36, 43, 44, 45, 46].”
Li, Y., Gu, S., & Geng, M. (2025) · Symmetry · doi:10.3390/sym17081325 · Cited by 4
On the Effectiveness of Training Data Optimization for LLM-based Code Generation: An Empirical Study
Kuang, S., Tian, Z., Xiao, T., Wang, D., & Chen, J. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3844732 · Cited by 4
“Existing empirical studies and surveys typically focus on individual optimization techniques, such as data selection [1] or data augmentation [19, 108], without providing a comprehensive comparison across multiple techniques.”
Fine-Tuning Code Language Models to Detect Cross-Language Bugs
Li, Z., Li, Y., Huang, B., Liang, P., Mo, R., Liu, H., & Ma, Y. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3811920 · Cited by 4
“We evaluate the performance of CodeLMs using several classification metrics, including accuracy (Equation 1), precision (Equation 2), recall (Equation 3), F1 score (Equation 4), and AUC (Area Under Curve, Equation 5).”
CAREER: Context-Aware API Recognition with Data Augmentation for API Knowledge Extraction
Zhang, Z., Mao, X., Wang, S., Yang, K., & Lu, Y. (2024) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1145/3643916.3644431 · Cited by 4
Towards Diverse Program Transformations for Program Simplification
Wang, H., Xing, Z., Sun, C. P., Wang, Z., & Tan, S. H. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3715730 · Cited by 4
Programmable Distributions of Semantics-Preserving Variants for Evaluating Code AgentsPreprint
Mahmud, H. N., Gupta, S., Chaudhary, I., Enis, N., Mangal, R., Singh, G., & Păsăreanu, C. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2608.18389 · Cited by 5
An Empirical Study on the Relationship between Defects and Source Code’s Unnaturalness
Jiang, Y., Liu, H., Liu, J., Zhang, Y., Ji, W., Zhong, H., & Zhang, L. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3718083 · Cited by 3
CodeMark : Contextual and Natural Watermarking for Tracing Code Snippet Provenance
Li, W., Yang, B., Sun, Y., Chen, S., Chen, Y., & Xiang, L. (2025) · IEEE Transactions on Dependable and Secure Computing · doi:10.1109/tdsc.2025.3594599 · Cited by 3
How Robustly Do LLMs Understand Execution Semantics?
Spieß, C. K., Dévanbu, P., & Barr, E. T. (2026) · ACM International Conference on AI-Powered Software (AIware) · doi:10.1145/3805760.3814919 · Cited by 4
HierarchyNet: Learning to Summarize Source Code with Heterogeneous Representations
Nguyen, M. H., Bui, N. D. Q., Hy, T. S., Thanh, L. T., & Nguyen, T. N. (2024) · Findings of the Association for Computational Linguistics: EACL · doi:10.18653/v1/2024.findings-eacl.156 · Cited by 3
“…et al., 2020a; Wang et al., 2021b; Guo et al., 2020; Ahmad et al., 2021; Bui et al., 2021a; Elnaggar et al., 2021; Peng et al., 2021a; Kanade et al., 2020; Chakraborty et al., 2022; Ahmed and Devanbu, 2022; Niu et al., 2022), applying similar pretraining strategies as used for natural languages.”
MethodCan ChatGPT Repair Non-Order-Dependent Flaky Tests?
Chen, Y., & Jabbarvand, R. (2024) · doi:10.1145/3643656.3643900 · Cited by 3
A Stealthy Backdoor Attack for Code ModelsPreprint
qu, Y., Huang, S., Chen, X., Ju, X., Li, L., Wang, X., Yao, Y., & Xiao, Z. (2024) · Research Square · doi:10.21203/rs.3.rs-3969016/v1 · Cited by 3
CLASP: Training-Free LLM-Assisted Source Code Watermarking via Semantic-Preserving TransformationsPreprint
Xu, R., Chen, J., Liu, W., Yin, Z., Kong, C., & Zhang, X. (2025) · arXiv · doi:10.48550/arxiv.2510.11251 · Cited by 3
“Early methods such as RopGen [20] and NatGen [4] rely on semantics-preserving transformations, while later methods introduce learned or hybrid designs.”
Modeling Source Code For Developers
Jesse, K. (2023) · eScholarship (California Digital Library) · Cited by 9
Reflexa: Uncovering How LLM-Supported Reflection Scaffolding Reshapes Creativity in Creative CodingPreprint
Wang, A., Li, Z., Luo, L., Tong, X., & Hui, P. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2601.17769 · Cited by 3
PatchBench: Evaluating AI Agents for Vulnerability Patching
Shen, C., Li, J., Mahajan, A., Tian, J. S., Kwon, Y., & Chen, Y. (2026) · arXiv
“For each diff hunk in the developer patch, we first apply all five semantic-preserving transformations of N AT G EN [7], namely variable renaming, loop transformation, block swapping, operand swapping, and the insertion of confusing code elements, to its changed lines and to its enclosing entity.”
HMPT: a human–machine cooperative program translation method
Zhang, X., Yu, Z., Liu, J., Hui, W., Wang, L., & Guo, B. (2023) · Automated Software Engineering · doi:10.1007/s10515-023-00395-9 · Cited by 2
Aruna, A., Surya, E. P., Prasetyo, A. R., Marcelliantika, A., & Wijaya, G. A. (2024) · VISA Journal of Vision and Ideas · doi:10.47467/visa.v4i3.3940 · Cited by 2
“Penggunaan AI dalam konteks wisata edukasi tidak hanya menawarkan pendekatan baru dalam penyampaian materi pembelajaran, tetapi juga berpotensi meningkatkan minat belajar anak-anak melalui pengalaman visual yang menyenangkan dan imersif (Chakraborty et al., 2022).”
BackgroundMojica-Hanke, A. I., Palacio, D. N., Poshyvanyk, D., Linares‐Vásquez, M., & Herbold, S. (2026) · Empirical Software Engineering · doi:10.1007/s10664-026-10926-z · Cited by 2
“SE research has followed the same trajectory, with ML appearing in studies of code completion (Kim et al. 2021), software testing (Bertolino et al. 2020), vul - nerability detection (Kakkar et al. 2021), and code representation/embedding (Chakraborty et al. 2022), among many others.”
AutoReqGen: A Pipeline Approach for Automated Requirements Generation from Source Code
Xu, R., Li, G., & Sheng, V. S. (2025) · Communications in computer and information science · doi:10.1007/978-981-95-0011-6_37 · Cited by 2
Hidden Backdoor Attack against Neural Code Search Models
Chen, Y., Sun, W., Fang, C., Zhang, Q., Chen, Z., & Zhang, X. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3774421 · Cited by 2
“For code transformation, we focus on code syntactic changes that are semantically invariant, so we utilize four different natural transformation methods from NatGen [9], including Variable Renaming , OperandSwap , For-WhileSwitch , and DeadcodeInsertion .”
VarGAN: Adversarial Learning of Variable Semantic Representations
Lin, Y., Wan, C., Bai, S., & Gu, X. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3391730 · Cited by 2
Daneshvar, S. S. (2025) · Mspace (University of Manitoba) · Cited by 2
Yang, G., Zhou, Y., Chen, X., & Zhang, X. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2406.06902 · Cited by 2
“…并评估了 K 个样本中任意一个样本能够通过单元测 试集的比率.另一方面, Liang 等人 [11] UniXcoder [19] 是一种基于 Transformer [30] 的代码 预训练语言模型,它在多项编程任务中表现出色.该 模型使用 CodeSearchNet 数据集 [31] [33] 中常见 的四种规则进行操作,具体规则见表 1 . 本文以 CodeSearchNet 数据集 [31] 作为表征学习的 数据集,具体来说,我们提取其中的 Java 代码和 Python 语言构造的 HumanEval 数据集 [20] 和包含了 Java 语言的 HumanEval-X…”
Auto-SPT: Automating Semantic Preserving Transformations for CodePreprint
Hooda, A., Christodorescu, M., Ren, C., Wilson, A. C., Fawaz, K., & Jha, S. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2512.06042 · Cited by 2
Lass, B. T., Isaac, S., Ja'afaru, A. B., Idris, H., & Abba, R. I. (2025) · Science World Journal · doi:10.4314/swj.v19i4.13 · Cited by 1
T 3: Multi-level Tree-based Automatic Program Repair with Large Language Models
Liu, Q., Bu, X., Yan, Z., & Li, R. (2025) · International Joint Conference on Neural Networks (IJCNN) · doi:10.1109/ijcnn64981.2025.11228000 · Cited by 1
“The experimental results are presented in Table I. Specifically, the data for S-C and S-C+BM25 are sourced from [31], while the data for NatGen are obtained from [33].”
Robust vulnerability detection with limited data via training-efficient adversarial reprogramming
Tian, Z., Zhang, C., Hui, Y., Sun, J., Chen, Y., & Chen, L. (2026) · Automated Software Engineering · doi:10.1007/s10515-026-00590-4 · Cited by 1
“VulGen (Nong et al. 2023b ) combines pattern mining and DL-based localization for injection-based vulnerability generation.”
Automated Test Case Generation Using Transformers and Domain Adaptation
Hashtroudi, S. (2023) · doi:10.11575/prism/dspace/40985 · Cited by 1
Enhancing software testing automation through large language models
Iznaga, Y. S. (2025) · Portuguese National Funding Agency for Science, Research and Technology (RCAAP Project by FCT) · Cited by 1
LLMAID: Identifying AI Capabilities in Android Apps with LLMsPreprint
Liu, P., Zhuo, T. Y., Deng, J., James, T., Pan, S.-D., Xu, S., Xing, Z.-C., Lu, Q.-H., Du, X.-N., & Zhang, H.-Y. (2025) · arXiv.org · doi:10.48550/arxiv.2511.19059 · Cited by 1
“• We conduct the first analysis to uncover prevalent AI domains and tasks within Android apps.”
SemRep: Generative Code Representation Learning with Code TransformationsPreprint
Li, W., Song, J., Stoica, B. A., Dhoot, A., Ryan, G., Fu, S., & Pei, K. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2603.13640 · Cited by 1
“Following ReCode (Wang et al., 2023), we adopt three main types of perturbations: NLAugmenter (Dhole et al., 2023) for docstring, NatGen (Chakraborty et al., 2022) for code syntax, and code format.”
ConceptCoder: Improve Code Reasoning via Concept LearningPreprint
Rahman, M. M., Tong, H., & Le, W. (2026) · arXiv · doi:10.48550/arxiv.2603.23470 · Cited by 1
“For robustness, we followed the literature (Rahman et al., 2024) and performed semantic-persevering code transformations for test data, using the NatGen (Chakraborty et al., 2022) tool.”
What Makes In-Context Examples Effective for Code Generation?
Li, D., Chen, S., Cao, J., & Cheung, S.-C. (2026) · Proceedings of the ACM on Software Engineering · doi:10.1145/3832275 · Cited by 3
White-box structure analysis of pre-trained language models of code for effective attacking
Liu, C., Ren, X., & Xue, Y. (2025) · Information and Software Technology · doi:10.1016/j.infsof.2025.107730
Multi-Dimensional Analysis of LLM Models with Synthetic Data on Early Marriage Prevention
Imaaduddin, M. Y., Wijaya, R., & Kosala, G. (2025) · IEEE International Conference on Artificial Intelligence for Learning and Optimization (ICoAILO) · doi:10.1109/icoailo66760.2025.11155930
“Afterwards, the model is adapted for specific tasks through fine-tuning with labeled datasets, as well as being able to integrate additional learning objectives to improve generalization and convergence [13] [14].”
Evaluating and Improving GPT-Based Expansion of Abbreviations
Jiang, Y., Li, C., Zhao, Z., Fan, F., Zhang, L., & Liu, H. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3623625
“To effectively utilize the vast amount of unlabeled training data [32], [33], LLMs are typically pre-trained using self-supervised learning objectives [34], [35], [36].”
LEARNING PROGRAM EMBEDDING FROM UNLABELED SOURCE CODE
Ahmed, T. (2023) · eScholarship (California Digital Library)
Self-citationHierarchyNet : learning to summarize source code with heterogeneous representations
Nguyen, M. H., Bui, N. D. Q., Hy, T. S., Tran-Thanh, L., & Nguyen, T. N. (2024) · Warwick Research Archive Portal (University of Warwick)
Decomposition then watermarking: Enhancing code traceability with dual-channel code watermarking
Lin, H., Li, Z., Ji, R., Pan, M., Zhang, T., Wu, N., & Li, X. (2025) · Automated Software Engineering · doi:10.1007/s10515-025-00561-1 · Cited by 1
“This is inspired by the observation (Chakraborty et al. 2022; Casalnuovo et al. 2020) that code inherently consists of two channels: the formal channel, which conveys operational semantics to interpreters and compilers, and the natural channel, which supports human comprehension and communication.”
Representation Learning of Software Source Code
PIAN, W. (2025) · Open Repository and Bibliography (University of Luxembourg)
AI-Assisted Code Generation: Semantic and Structural Evaluation on CodeForces C++ Problems
Mulyadi, H. B., Retnani, W. E. Y., & Anggraini, R. N. E. (2025) · Computing, Communications and IoT Applications (ComComAp) · doi:10.1109/comcomap68359.2025.11353176
“Recent studies highlight inconsistencies in evaluation benchmarks, with some models excelling in semantic fidelity but faltering on structural complexity, and vice versa [11].”
Narrowing the Complexity Gap in the Evaluation of Large Language ModelsPreprint
Chen, Y., Liu, S., & Jabbarvand, R. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2602.18928
Optimizing and fortifying AI software through the lens of artifact synthesis
Shi, J. (2026) · Singapore Management University Institutional Knowledge (InK) (Singapore Management University)
It turns out that ML-based Vulnerability Detection is not solved at all
Norton, J. (2026) · Otago University Research Archive (University of Otago) · doi:10.82348/our-archive.00295
Memorization Diagnostics for Code LLMs Should be Scale-AwarePreprint
Rajput, P. K., Bonkoungou, A. A., Djiré, A. E., Tang, X., Song, Y., Olatunji, I. E., Diallo, E.-H., Klein, J., & Bissyandé, T. F. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2608.12771
“…strategy in the literature for probing this question is to apply semantics-preserving perturbations to the prompt, such as renaming variables [6, 7], paraphrasing docstrings [8, 9], and inserting dead code [6, 7], then reading the resulting pass@ k drop as evidence bearing on memorization…”
InfluentialInvariant Pretraining for Robust Code Representations
He, Y., Xu, Y., Gonzalo, C. C. G., Wang, Z., & Chen, H. (2026) · ACM SIGPLAN International Workshop on Language Models and Programming Languages (LMPL) · doi:10.1145/3843750.3843840
An Extensive Empirical Study on Code Translation TechniquePreprint
Fan, R., Jiang, J., Wang, X., Fu, J., Li, F., & Shen, J. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2608.20776
LLM Firewall: Private LLM Program Repair Using Hybrid Intent Inference
Akyol, G., Latifoğlu, İ., Kaya, A., & Tüzün, E. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-36590-3_25
SEW: Style-Encoded Watermarking of LLM-Generated CodePreprint
Lim, S., Jin, H., & Han, Y.-S. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2609.39414
Alkhanova, A. (2026) · Eurasian Journal of Applied Engineering and Technology (EJAET) · doi:10.32523/3136-3385-2026-156-3-222-233
“Chakraborty et al. introduced NatGen, which departs from conventional denoising objectives by focusing on the naturalness of code [14].”
InfluentialMathematical models of software components for infocommunication service providers
Vitkovskyi, D. O., & Shymkovych, V. (2026) · PROBLEMS IN PROGRAMMING · doi:10.15407/pp2026.03.053
SCRBench: Beyond Equivalence Checking for Semantic Change Reasoning in CodePreprint
Saghatchian, O., Mahzoun, A., Etemadi, K., & Kheradpisheh, S. R. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2610.41562
“NatGen uses variable renaming, dead-code insertion, operand swapping, and for-to-while conversion (Chakraborty et al., 2022), and RV and DCI_V2 follow its VAR_i naming and always-false guards.”
Metadata
- Authors
- Chakraborty, S., Ahmed, T., Ding, Y., Devanbu, P. T., & Ray, B.
- Affiliations
- Columbia University (US)
- University of California, Davis (US)
- University of California at Davis, USA
- Venue
- Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering
- Publisher
- ACM
- Published
- 2022-11-07
- Pages
- 18-30
- OpenAlex
- W4308731473
- Semantic Scholar
- 45263786d07f5751f7494fdeee3c8764836d02c4
- Cited by
- 105
- References
- 37
- Citations by year
- 2026: 8 · 2025: 35 · 2024: 37 · 2023: 23 · 2022: 2
- FWCI
- 21.68
- Type
- conference paper
- Language
- en
- Open access
- closed
- Locations
- ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) (publishedVersion)
- Funders
- National Science Foundation (CCF-2107405, SHF-1845893, SHF-1414172, SHF-2107592, IIS-2221943)
- IBM (Faculty Award)
- UC Davis College of Engineering (Dean?s Distinguished Fellowship)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Computer Science Applications › Teaching and Learning Programming
- Keywords
- generative pre-training, semantics-preserving transformations, code generation, program translation, program refinement, zero-shot learning, few-shot learning
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.