Zhensu Sun
· 2 previous affiliations
- Singapore Management UniversitySince 2023
- PhD student · Since 2023
- Tongji University2018–2021
- MS student · 2018–2021
Research Overview
Zhensu Sun focuses on software engineering and artificial intelligence, specifically targeting the efficiency, security, and reliability of neural code generation systems. His early work investigated data quality and security vulnerabilities in code search and completion models. More recently, he explores dynamic inference, adaptive self-healing, and iterative refinement to build more sustainable large language models for code.
Research Trajectory
Sun's early research examined the foundational data quality and security of neural code models. In 2022, he conducted an empirical study on the noise prevalent in widely used code search datasets, demonstrating how compromised training data degrades model performance in On the Importance of Building High-quality Training Datasets for Neural Code Search. Concurrently, he addressed the ethical and security concerns surrounding the unauthorized use of open-source code for training commercial models. He introduced CoProtector: Protect Open-Source Code against Unauthorized Training Usage with Data Poisoning, a mechanism designed to safeguard copyleft-licensed code from being exploited by large-scale deep learning systems.
Expanding into the architecture and evaluation of code intelligence, Sun and collaborators explored methods to bridge the gap between natural language intentions and source code. He contributed to Two Birds with One Stone: Boosting Code Generation and Code Search via a Generative Adversarial Network (2023), which utilized a GAN framework to allow code generators and searchers to mutually improve through feedback. He also participated in a comprehensive empirical evaluation of these technologies in Natural Language to Code: How Far Are We?. This period of research aligns with his broader interest in the research direction of Cross Language Generalization in Code Intelligence Models, aiming to make automated development tasks more robust across different programming contexts.
A major theme in Sun's trajectory is optimizing the inference and operational efficiency of large language models for code. Recognizing the massive computational costs of modern neural code completion, he developed When Neural Code Completion Models Size up the Situation: Attaining Cheaper and Faster Completion through Dynamic Model Inference (2024). This work demonstrated how allocating minimal computation during inference can maintain performance while significantly reducing environmental impact, contributing to the broader area of Sequential Model Cascading for Cost Efficient Inference. He further mapped the landscape of these models by co-authoring Robustness, Security, Privacy, Explainability, Efficiency, and Usability of Large Language Models for Code, a systematic literature review that defined key non-functional properties and highlighted emerging techniques in the area of Low Rank Adaptation for Efficient Model Customization.
Throughout 2024, Sun also investigated novel applications and vulnerabilities in software systems. He proposed using large language models for adaptive self-healing in LLM as Runtime Error Handler: A Promising Pathway to Adaptive Self-Healing of Software Systems, moving beyond predefined heuristic rules to mitigate unanticipated execution terminations. On the security front, he identified new attack vectors, detailing how malicious actors could exploit user feedback loops in FDI: Attack Neural Code Generation Systems through User Feedback Channel. His work on generation efficiency continued with AI Coders Are among Us: Rethinking Programming Language Grammar towards Efficient Code Generation, and he contributed to data fusion techniques for improving retrieval relevance in Fusing Code Searchers.
In his most recent work, Sun has focused on aligning model reasoning with human developer practices and ensuring the sustainability of code generation. With collaborators, he investigated how to mine and restructure developer discussions from community platforms in Think Like Human Developers: Harnessing Community Knowledge for Structured Code Reasoning (2025), creating models capable of multi-step logical planning without relying on expensive reinforcement learning. To further address computational waste, he introduced Don't Complete It! Preventing Unhelpful Code Completion for Productive and Sustainable Neural Code Completion Systems, a system designed to halt unhelpful generations, which directly supports the research direction of Reducing the Carbon Footprint of Large Scale Machine Learning. Most recently, he contributed to Autoregressive, Yet Revisable: In Decoding Revision for Secure Code Generation (2026), which allows language models to dynamically edit their own code during the generation process. This approach mimics human programming behavior and advances the areas of Securing the Execution of Agent Generated Code and Beyond One-Shot Generation via Iterative Refinement Loops.
Current Directions
The most recent papers in the evidence address the intersection of model reasoning, operational sustainability, and secure code generation. A primary focus is transitioning from rigid, one-shot autoregressive generation to dynamic, revisable decoding processes. By allowing models to iteratively edit and refine their outputs during generation, this work aims to produce significantly more secure code with minimal added computational overhead.
Additionally, current work investigates the environmental and computational sustainability of deploying large language models in integrated development environments. This involves developing mechanisms to predict and prevent unhelpful code completions, thereby saving compute resources and reducing the carbon footprint of machine learning systems. Finally, ongoing research explores how to harness unstructured community knowledge—such as developer discussions on coding platforms—to teach models structured, multi-step logical planning that aligns with human software development life cycles.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake