Shiwei Feng

Apple (United States)
4 previous affiliations
    • Machine Learning Engineer · Since 2026
    • ML Compiler Intern · 2024
    • Doctor of Philosophy - PhD, Computer Science · 2021–2025
    • Undergraduate Research Assistant · 2019
  • 寒武纪2020–2021
    • Deep Learning Compiler Engineer (Full-time) · 2020–2021
    • Undergrad student · 2016–2020
19Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Shiwei Feng focuses on the security, reliability, and diagnostic analysis of autonomous systems and foundation models. His research addresses the intersection of software engineering, robotics, and machine learning, with a particular emphasis on identifying vulnerabilities in multi-modal perception and ensuring the integrity of large language model (LLM) agents. His work frequently employs program analysis and formal methods to diagnose failures in complex cyber-physical systems and to harden autonomous agents against adversarial manipulation.

Research Trajectory

Feng’s early research, beginning around 2020, centered on the security of distributed and multi-modal learning systems. During this period, he investigated vulnerabilities in federated learning environments and the perception pipelines of autonomous vehicles. A significant focus was the The Robustness Accuracy Trade-off in Adversarial Learning, specifically how hardening models against adversarial perturbations affects their standard performance. His work in this phase contributed to the understanding that multi-sensor fusion, while designed for redundancy, can introduce unique vulnerabilities where a single compromised modality can blind an entire perception system.

By 2023, Feng’s focus expanded to include the synergy between large language models and traditional software engineering techniques. He explored how LLMs could be integrated with program analysis to solve complex tasks such as decompilation and variable name recovery. This period marked a shift toward leveraging the semantic capabilities of foundation models to enhance the precision of automated software analysis tools. Simultaneously, he continued to investigate adversarial threats, moving from simple pixel-level perturbations to more sophisticated black-box attacks. This included participation in research on Adversarial Robustness of Continuous Regression Models, which addressed the security of pixel-wise regression models used for depth and motion estimation.

In 2024 and 2025, Feng’s work transitioned toward the diagnostic analysis of autonomous driving systems (ADS) and the safety of LLM-based agents. He developed frameworks for root cause analysis of accidents in cyber-physical systems, addressing the challenges posed by the complex interactions between deep learning models and physical environments. His recent research also tackles the "intent integrity" of LLM agents, focusing on how these systems interpret and execute user commands when interacting with external APIs. This work aligns with emerging concerns regarding Personal Attribute Inference in Large Language Models, as the integration of agents into personal and professional workflows increases the risk of sensitive information leakage or unintended actions.

Throughout his trajectory, Feng has increasingly utilized Gradient Approximation via Random Function Perturbations to probe the boundaries of model robustness. His current directions involve the development of autonomous agents for protocol auditing and the investigation of trajectory-based backdoor attacks in reinforcement learning, where coordinated environmental movements serve as hidden triggers for dangerous maneuvers.

Representative Work

ROCAS: Root Cause Analysis of Autonomous Driving Accidents via Cyber-Physical Co-mutation As the lead author, Feng introduced a formal definition for the root cause analysis problem in autonomous driving systems. ROCAS addresses the limitations of existing cyber-physical system analysis techniques, which often struggle with the high-dimensional input spaces and deep learning components characteristic of modern ADS. The framework employs a co-mutation strategy that considers both the software logic and the physical environment to identify the specific conditions that lead to accidents, providing a systematic method for enhancing ADS reliability.

EffiTune: Diagnosing and Mitigating Training Inefficiency for Parameter Tuner in Robot Navigation System In this first-author paper, Feng addressed the efficiency gap in training parameter tuners for robot navigation. While classical planners are reliable, they require extensive manual tuning; conversely, learning-based methods can be unpredictable. EffiTune provides a diagnostic approach to identify why certain training episodes fail to improve performance, offering a mitigation strategy that balances the stability of classical methods with the adaptability of learning-based systems in cluttered or dynamic environments.

TAI3: Testing Agent Integrity in Interpreting User Intent Feng led the development of TAI3, a stress-testing framework designed to evaluate how LLM agents interpret user intent. The framework utilizes semantic partitioning of API parameters and a strategy memory to generate prompts that induce functional errors. This work is significant for its ability to uncover subtle bugs in how agents translate natural language instructions into technical API calls, ensuring that agents remain faithful to user intentions even when faced with ambiguous or complex requests.

LmPa: Improving Decompilation by Synergy of Large Language Model and Program Analysis As the second author, Feng contributed to a novel decompilation method that combines the global context provided by program analysis with the semantic knowledge of LLMs. The approach addresses the challenge of recovering meaningful variable names from binary executables—a task where LLMs are often limited by input size constraints. By using program analysis to correlate and propagate information across multiple LLM queries, the system achieves higher accuracy in code recovery than either method could achieve in isolation.

Temporal Logic-Based Multi-Vehicle Backdoor Attacks against Offline RL Agents in End-to-end Autonomous Driving In this second-author work, Feng explored a sophisticated category of security threats: trajectory-based backdoor attacks. Unlike traditional attacks that rely on visible triggers like adversarial patches, this method uses the coordinated movement of surrounding vehicles—defined through temporal logic—to trigger malicious behavior in an autonomous vehicle's reinforcement learning agent. This research highlights a critical vulnerability in end-to-end driving models that learn from offline datasets containing subtle, coordinated adversarial patterns.

Fusion is Not Enough: Single-Modal Attacks to Compromise Fusion Models in Autonomous Driving Feng participated in this research which challenged the assumption that multi-sensor fusion (MSF) inherently provides robustness against adversarial attacks. The study demonstrated that a two-stage attack framework using printed adversarial patches on the camera modality could successfully deceive 3D object detection models, even when those models also utilized LiDAR data. This work identified the "weakest link" phenomenon in fusion architectures, where the integration process itself can be exploited to bypass redundant sensor inputs.

Profile updated

See something wrong? Report a mistake