Shengwei An
· 3 previous affiliations
- Virginia TechSince 2025
- Assistant Professor · Since 2025
- Current
- Purdue University West Lafayette2017–2025
- PhD student · 2017–2025
- Nanjing University2009–2016
- MS student · 2013–2016
- Undergrad student · 2009–2013
Research Overview
Shengwei An focuses on the security and reliability of artificial intelligence systems, with an emphasis on adversarial machine learning, backdoor detection, and generative AI vulnerabilities. His trajectory spans early work in formal verification and program synthesis to extensive research on identifying and mitigating complex threats in deep neural networks. Currently, his research investigates the safety alignment of large language models and autonomous robotic agents.
Research Trajectory
Shengwei An’s early research concentrated on formal methods and software reliability. His initial work included developing An Event-Based Formal Framework for Dynamic Software Update (2015) and contributing to methodologies for Verifying Distributed Controllers with Local Invariants (2016). Building on this foundation in formal correctness, he later addressed the ambiguity inherent in example-based program synthesis. In Augmented example-based synthesis using relational perturbation properties (2020), he introduced a framework that applies semantic biases to the hypothesis space, ensuring that synthesized programs generalize correctly to unseen inputs rather than merely overfitting to provided examples.
Transitioning into the security of machine learning systems, his focus shifted toward identifying vulnerabilities in deep neural networks. He participated in the development of a novel detection mechanism in Backdoor Scanning for Deep Neural Networks through K-Arm Optimization (2021). This work framed the search for malicious triggers as a multi-arm bandit problem, significantly accelerating the detection process and contributing to the broader research direction of The Quadratic Bottleneck of Pairwise Class Relationships. He subsequently extended backdoor detection to natural language processing, collaborating on Piccolo: Exposing Complex Backdoors in NLP Transformer Models (2022), which utilized optimization techniques to scan for complex word and sentence triggers in differentiable transformations of transformer models.
By 2023, his research expanded to encompass both digital and physical adversarial attacks. He co-developed HARDBEAT, detailed in Hard-label Black-box Universal Adversarial Patch Attack (2023), which demonstrated how universal adversarial patches could be generated using only predicted labels as feedback. In the physical domain, he led the design of ImU: Physical Impersonating Attack for Face Recognition System with Natural Style Changes (2023). This approach embedded multiple images of an attacker into the latent space of StyleGAN to generate consistent, physically realizable makeup changes capable of deceiving face recognition systems.
Concurrently, he began investigating the security of emerging generative AI architectures, particularly diffusion models. Recognizing the vulnerability of these models to backdoor injections, he proposed foundational mitigation strategies in How to remove backdoors in diffusion models? (2023). This research was further formalized in Elijah: Eliminating Backdoors Injected in Diffusion Models via Distribution Shift (2024), which provided a comprehensive framework for detecting and removing triggers across various diffusion model types. His work on generative AI security also explored the robustness of protective measures. In Rethinking the Invisible Protection against Unauthorized Image Usage in Stable Diffusion (2024), he introduced INSIGHT, a method that bypasses invisible noise protections by aligning image features with human visual perception, advancing the study of Adaptive Robustness in Adversarial Machine Learning.
Most recently, his attention has turned to the vulnerabilities of autonomous agents and large language models (LLMs). He contributed to the identification of trajectory-based threats in Temporal Logic-Based Multi-Vehicle Backdoor Attacks against Offline RL Agents in End-to-end Autonomous Driving (2025), a study that aligns with the broader area of Stealthy Backdoors and Sleeper Agents in AI Systems by using the coordinated movement of surrounding vehicles as hidden triggers. In the domain of software security, he collaborated on MGC: A Compiler Framework Exploiting Compositional Blindness in Aligned LLMs for Malware Generation (2025), exploring how aligned language models can be manipulated to produce malicious code. Addressing the physical safety of AI agents, he guided the development of Learning Safe Robot Planning from Unsafe Experiences: An Episodic Memory Approach for LLM-based Agents (2026), which implements a memory architecture to filter harmful instructions and enforce semantic safety constraints in robotic planning. In parallel, An oversaw research on defending generative language architectures against backdoor attacks in Mitigating Backdoors in Masked Diffusion Language Models (2026), introducing UNMASK to detect, localize, and eliminate triggers by leveraging parallel token prediction and token reconstruction in masked diffusion models.
Current Directions
The most recent papers in the evidence indicate a strong focus on the safety and alignment of large language models, particularly when deployed as autonomous agents in physical or software environments. This work investigates how LLM-based systems can be manipulated to generate malicious outputs, such as malware, through compositional vulnerabilities. Concurrently, there is an emphasis on developing robust safety mechanisms for embodied AI. By leveraging episodic memory architectures, this research aims to enable robotic agents to learn from past unsafe experiences, effectively blocking harmful commands and ensuring safe real-world planning and execution.
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