Yanzhou Li
· 2 previous affiliations
- Current
- PhD student · 2022–2026
- University of Edinburgh2020–2021
- MS student · 2020–2021
Research Overview
Yanzhou Li focuses on the security of large language models, neural code generation, and the robustness of deep learning systems for software engineering. His trajectory spans early work on pre-trained models for program understanding to identifying critical vulnerabilities and biases in code models. Recently, his research emphasizes efficient backdoor attacks via model editing and context filtering techniques for repository-level code completion.
Research Trajectory
Li’s early research investigated the application of large pre-trained models to software engineering tasks, with a particular emphasis on aligning natural language and programming languages. In 2022, he collaborated on the development of CommitBART: A Large Pre-trained Model for GitHub Commits, a model trained on nearly eight million commits to improve code intelligence tasks such as commit message generation. By leveraging a massive dataset of code changes and their corresponding natural language descriptions, this work demonstrated how specialized pre-training could significantly enhance developer productivity tools.
Following this work in program understanding, his focus expanded to the security and robustness of neural code models. He led research into adversarial vulnerabilities, introducing Multi-target Backdoor Attacks for Code Pre-trained Models in 2023. This marked a shift toward understanding how deep learning systems designed for code can be compromised or misled by malicious inputs. Continuing this theme of model reliability, he contributed to an extensive evaluation of dataset quality in software engineering through An Empirical Study on Noisy Label Learning for Program Understanding. This 2024 study examined how incorrect target outputs in training data degrade model performance, aligning with the broader research direction of Learning with Instance Dependent Label Noise.
In parallel, Li investigated the generalization capabilities of neural code models. With collaborators, he authored Unveiling Project-Specific Bias in Neural Code Models, which demonstrated that large language models often rely on project-specific lexical shortcuts rather than ground-truth logic when making predictions. By proposing a metric to quantify token-label relatedness, this work highlighted the challenges models face when evaluated on real-world, out-of-distribution data. This analysis contributed directly to the research area of Cross-Project Generalization in Neural Code Models, emphasizing the need for models that learn robust, structural features rather than superficial patterns.
Li’s security research culminated in a novel approach to compromising large language models. He developed BadEdit: Backdooring Large Language Models by Model Editing, a framework that reframes backdoor injection as a lightweight parameter modification problem. By surgically altering a minimal subset of model weights using as few as 15 data samples, the method achieves high attack success rates in under two minutes without degrading the model's general capabilities. This highly efficient attack vector intersects with several critical security domains, including the research direction of Localized Parameter Editing for Large Language Models and the broader area of Backdoor Attacks via Parameter Efficient Fine Tuning. The findings also have significant implications for understanding the area of Backdoor Vulnerabilities in Large Scale Generative Architectures and the research direction of Persistence and Remediation of Neural Backdoors.
Most recently, Li has returned to improving the practical utility of code generation tools. He introduced Impact-driven Context Filtering For Cross-file Code Completion in 2025. This framework, CODEFILTER, analyzes the actual impact of retrieved code snippets to intelligently filter context for repository-level code completion, thereby increasing accuracy while simultaneously reducing the computational overhead associated with processing large contexts.
Current Directions
The most recent papers in the evidence indicate a dual focus on the security of large language models and the practical robustness of neural code generation. A primary current direction involves investigating the vulnerabilities of generative architectures, particularly how lightweight model editing and parameter-efficient fine-tuning can be exploited to inject persistent backdoors. By demonstrating that models can be compromised with minimal data and computational resources, this work highlights critical security gaps in the deployment of large-scale transformers and challenges existing assumptions about model safety.
Simultaneously, Li is addressing the reliability and efficiency of deep learning systems applied to software engineering. Recent work investigates the limitations of code models when faced with out-of-distribution data, project-specific biases, and noisy training labels. To overcome the practical challenges of repository-level code completion, his current research also explores intelligent context filtering mechanisms. By analyzing the impact of retrieved code snippets, these approaches aim to provide models with highly relevant context, improving both the accuracy and computational efficiency of automated programming tools in complex, real-world development environments.
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