Shangwen Wang
· 1 previous affiliation
- Assistant Professor · Since 2024
- Current
- PhD student · 2020–2023
- MS student · 2017–2019
- Undergrad student · 2013–2017
Research Overview
Shangwen Wang focuses on automated program repair, software testing, and the intersection of artificial intelligence with software engineering. His trajectory spans empirical assessments of traditional repair systems to the development of novel techniques for code generation and search. Recently, his work addresses the security, fairness, and reliability of large language models applied to software development tasks.
Research Trajectory
Wang’s early research concentrated on the challenges and evaluation of automated program repair (APR) systems. In 2018, he investigated the complexities of multi-location bugs in Multi-Location Program Repair: Roads Ahead, categorizing defects based on repair actions to better understand structural challenges. This work contributed to the broader research areas of Overfitting in Automated Program Repair and Coordinated Multi File Reasoning for Repository Level Code Repair. Continuing this focus on the reliability of APR, he collaborated on a systematic assessment of test-suite-based repair systems in On the efficiency of test suite based program repair: A Systematic Assessment of 16 Automated Repair Systems for Java Programs, which highlighted limitations and biases in existing approaches. He further advanced the evaluation of these systems by examining how effectively they determine patch correctness in Automated Patch Correctness Assessment: How Far are We?.
As his research evolved, Wang increasingly integrated machine learning techniques to automate complex software engineering tasks, particularly focusing on code search and generation. He developed an approach to predict method names prior to their implementation in Pre-implementation Method Name Prediction for Object-oriented Programming, utilizing class names and semantic similarities. Recognizing the complementary nature of generative and retrieval-based methods, he introduced a generative adversarial network framework in Two Birds with One Stone: Boosting Code Generation and Code Search via a Generative Adversarial Network to allow code generators and searchers to mutually improve through feedback. To establish a baseline for the field, he also conducted a comprehensive evaluation of techniques transforming developer intentions into source code in Natural Language to Code: How Far Are We?. He subsequently addressed the limitations of individual code search mechanisms by proposing a data fusion approach, Dancer, in Fusing Code Searchers.
By 2024, Wang began reframing traditional software engineering problems through the lens of modern semantic models. He proposed treating bug finding as a retrieval problem in Fault Localization from the Semantic Code Search Perspective, a study that intersects with the research direction of Language Agnostic Representations for Cross Language Portability. He also expanded his focus to vulnerability repair, introducing TemVUR in There are More Fish in the Sea: Automated Vulnerability Repair via Binary Templates, a tool designed to automatically fix Java vulnerabilities directly at the bytecode level using pattern-driven templates. In parallel, he explored vulnerability detection techniques, contributing to Keep It Simple: Self-Adaptive Code Graph Simplification for Accurate Vulnerability Detection.
Most recently, Wang's trajectory has heavily emphasized the security and integrity of Large Language Models (LLMs) used in software engineering. His group developed a novel attack framework in Smoke and Mirrors: Jailbreaking LLM-based Code Generation via Implicit Malicious Prompts, demonstrating how standard safety filters can be bypassed by hiding malicious intent within routine commit messages. He also investigated the vulnerabilities of Retrieval-Augmented Generation (RAG) systems. He demonstrated the severe impact of injecting vulnerable code into external data sources in Exploring the Security Threats of Knowledge Base Poisoning in Retrieval-Augmented Code Generation, and collaborated on exposing the attack surface of the retriever component itself in Exploring the Security Threats of Retriever Backdoors in Retrieval-Augmented Code Generation.
Alongside security, Wang has investigated the mechanisms and implications of modifying LLM knowledge. He evaluated the state of the art in Model Editing for LLMs4Code: How Far are we? and collaborated on the KETI benchmark in Identifying Knowledge Editing Types in Large Language Models to detect whether and how a model's knowledge has been altered. Expanding his focus on the quality of machine learning software, he addressed algorithmic bias in Fairness Is Not Just Ethical: Performance Trade-Off via Data Correlation Tuning to Mitigate Bias in ML Software, introducing a pre-processing technique to mutate sensitive attributes and break spurious correlations in training data.
Current Directions
Recent work investigates the security vulnerabilities and fairness of Large Language Models deployed for software engineering tasks. A major focus is the robustness of Retrieval-Augmented Code Generation (RACG) systems against adversarial attacks, specifically examining how knowledge base poisoning and retriever backdoors can compromise generated code. Additionally, ongoing research addresses the safety alignment of code-generating LLMs, exploring how implicit prompts can bypass standard filters. Beyond security, current efforts also encompass the broader quality of machine learning software, including techniques for model editing to update knowledge safely and data correlation tuning to mitigate algorithmic bias while preserving predictive performance.
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