Research Overview
Zichao Wei focuses on software security, adversarial machine learning for code, and secure code generation. His trajectory spans from analyzing vulnerabilities and adversarial attacks against pre-trained programming models to investigating the evolution of security patches. Most recently, his work addresses the dynamic refinement of large language models to produce functionally correct and secure code during the generation process.
Research Trajectory
Wei's research trajectory begins with investigations into the robustness and security of machine learning models applied to software engineering tasks. In 2023, he contributed to An Extensive Study on Adversarial Attack against Pre-trained Models of Code, which evaluated how susceptible pre-trained programming models are to adversarial perturbations. This early work established a foundational interest in the intersection of machine learning and software security, highlighting the vulnerabilities inherent in deploying artificial intelligence for code processing.
Continuing this focus on software security, Wei participated in empirical research examining how developers address and maintain secure systems. In 2024, he collaborated on Unveiling the Characteristics and Impact of Security Patch Evolution, a study that analyzed the lifecycle of security patches to understand their characteristics and long-term impact on software ecosystems. The following year, he returned to the domain of adversarial machine learning with Statement-Level Adversarial Attack on Vulnerability Detection Models via Out-of-Distribution Features. This 2025 work demonstrated how vulnerability detection models could be compromised by introducing out-of-distribution features at the statement level, further underscoring the fragility of automated security tools when faced with targeted adversarial inputs.
By 2026, Wei's focus expanded from identifying vulnerabilities in existing models to proactively designing more secure generative systems. He was a key contributor to Autoregressive, Yet Revisable: In Decoding Revision for Secure Code Generation. This research addresses the limitations of standard large language model (LLM) code generation, which typically operates as a rigid, one-way process. To overcome this, the work introduced "Stream of Revision," a novel methodology that enables LLMs to dynamically edit and refine their own outputs during the generation process, akin to how human programmers iteratively revise their code. This approach significantly enhances the security of the generated code with minimal additional computational cost. This work actively advances the research direction of Multi-turn Iterative Code Generation and Refinement and addresses challenges within the broader area of The Security Blind Spot of Functionally Correct Code.
Current Directions
The most recent papers in the evidence indicate a strong focus on improving the reliability and security of large language models used for software development. Wei's current directions center on developing dynamic, iterative generation mechanisms that allow models to self-correct and revise code on the fly. Rather than treating code generation as a static, autoregressive sequence, this approach seeks to mimic the human programming process, where continuous refinement is necessary to prevent vulnerabilities. A major ongoing theme in this work is bridging the gap between functional correctness and actual software security, ensuring that AI-generated code is not only executable but also robust against exploitation.
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