Readability-Robust Code Summarization via Meta Curriculum Learning
Wenhao Zeng, Yitian Chai, Hao Zhou, Fandong Meng, Jie Zhou, Xiaodong Gu

TL;DR
This paper evaluates the robustness of state-of-the-art code summarization models on poor-readability code and introduces RoFTCodeSum, a novel fine-tuning method that improves robustness and performance through curriculum and meta-learning.
Contribution
It presents RoFTCodeSum, a new fine-tuning approach combining curriculum and meta-learning to enhance code summarization robustness against poorly readable code.
Findings
State-of-the-art models drop in performance on poor-readability code.
Prompt engineering offers limited improvements.
RoFTCodeSum improves robustness and accuracy on obfuscated code.
Abstract
Code summarization has emerged as a fundamental technique in the field of program comprehension. While code language models have shown significant advancements, the current models and benchmarks are confined to high-readability code, which contains sufficient semantic cues such as function and variable names. In the real world, however, code is often poorly structured or obfuscated, significantly degrading model performance. In this paper, we first empirically evaluate the robustness of state-of-the-art language models on poor-readability code for the task of code summarization, focusing on (1) their effectiveness, (2) the impact of prompt engineering, and (3) the robustness of different variants. Experimental results reveal that state-of-the-art models-including GPT-4o and DeepSeek-V3 experience a substantial performance drop when faced with poorly readable code, and that prompt…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Topic Modeling · Advanced Malware Detection Techniques
