Weiran Lin

Menlo Security
3 previous affiliations
7Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Weiran Lin focuses on the intersection of security and machine learning, with a specific emphasis on characterizing and evaluating the vulnerabilities of deep learning models to adversarial manipulation. Lin’s work spans the development of principled optimization methods for evasion attacks, the creation of robust evaluation frameworks for real-world deployment scenarios, and the investigation of security risks inherent in large language models (LLMs) and autonomous systems. By analyzing the gap between theoretical model robustness and the practical constraints of complex, multi-component systems, Lin aims to develop more reliable methods for assessing and defending against malicious exploitation in the real world.

Research Trajectory

Lin’s early research was grounded in the mathematical foundations of adversarial examples, particularly within the domain of computer vision. This period was characterized by an exploration of how Integrating Box Constraints in Image Optimization could improve the efficiency and reliability of white-box evasion attacks. A central challenge addressed in this work was the trade-off between an attack's ability to overfit to a specific source model and its capacity to transfer to unknown models, a problem often mitigated through Momentum Based Gradient Stabilization for Transferable Attacks. During this phase, Lin developed the Constrained Gradient Descent (CGD) framework, which moved beyond standard heuristic-based attacks by treating adversarial perturbation as a constrained optimization problem. This work also investigated the utility of Logit Loss for Effective Adversarial Optimization, demonstrating that raw model outputs provide a more informative signal for optimization than probability distributions.

As the field matured, Lin’s focus shifted toward the limitations of standard robustness metrics. Recognizing that Generalizing Adversarial Robustness Across Distance Metrics is essential for realistic threat assessment, Lin began developing frameworks that account for specific source-to-target class transitions. This led to the conceptualization of "group-based robustness," a metric designed to evaluate model performance in scenarios where attackers have specific categorical goals. This period also saw an increased interest in the societal implications of adversarial defenses, specifically Class Wise Robustness Disparity in Adversarial Training, ensuring that the increased resilience of a model does not come at the cost of disproportionate error rates for specific data subgroups.

Current Directions

Lin’s current research trajectory emphasizes the security of generative AI and the evaluation of "holistic" agents. This includes investigating how large language models can be subtly manipulated through human-inconspicuous prompt perturbations to bias recommendations or responses. This work explores the boundary of Robust Generalization Against Adversarial Perturbations in the context of natural language, where perturbations are defined by semantic synonymy rather than pixel-level distance.

Furthermore, Lin has expanded the scope of adversarial evaluation to include integrated systems like autonomous driving agents. This research moves away from evaluating models in a vacuum and instead analyzes how downstream classical controllers and safety logic interact with adversarial ML predictions. Lin has also participated in large-scale collaborative efforts to benchmark hazardous knowledge in LLMs, contributing to the development of methods for unlearning malicious capabilities in biosecurity and cybersecurity domains.

Representative Work

Constrained Gradient Descent: A Powerful and Principled Evasion Attack Against Neural Networks In this work, Lin introduces Constrained Gradient Descent (CGD), a white-box evasion attack designed to overcome the limitations of existing methods like Auto-PGD. The method integrates distance constraints directly into the optimization process, ensuring that adversarial examples remain within a specified $\ell_p$-norm while maximizing the probability of a target class. By utilizing a "Minimal Difference" loss function, CGD avoids the common failure modes of probability-based losses, finding adversarial examples more reliably and with fewer iterations across various model architectures.

Group-based Robustness: A General Framework for Customized Robustness in the Real World This paper identifies a gap in traditional robustness evaluation: standard metrics often fail to reflect the actual risk in scenarios where an attacker seeks to induce misclassifications between specific sets of classes. Lin proposes "group-based robustness," a formal framework and metric that allows for a more granular assessment of model security. The work demonstrates that models appearing robust under global metrics may still harbor significant vulnerabilities when evaluated against targeted group-to-group attacks, providing a more nuanced tool for practitioners deploying ML in sensitive environments.

Sales Whisperer: A Human-Inconspicuous Attack on LLM Brand Recommendations Lin explores the security risks inherent in third-party prompt optimization services for LLMs. The research demonstrates that subtle synonym replacements in prompts—perturbations that are indistinguishable to human users—can significantly bias LLM responses toward specific brands or concepts. Through a user study and systematic evaluation, the work shows that these "whisperer" attacks can increase the likelihood of a target brand being mentioned by up to 78%, highlighting a new vector for stealthy manipulation in generative AI ecosystems.

Estimating LLM Consistency: A User Baseline vs Surrogate Metrics Addressing the difficulty of measuring whether an LLM provides consistent answers to the same query, Lin establishes a human-rated baseline for LLM consistency. The paper evaluates existing automated metrics and introduces a logit-based ensemble method that aligns more closely with human perception while remaining computationally efficient. This work provides a more reliable foundation for evaluating the reliability of LLMs in production settings where consistent behavior is a prerequisite for trust.

Attacking Autonomous Driving Agents with Adversarial Machine Learning: A Holistic Evaluation with the CARLA Leaderboard As a significant contributor to this study, Lin evaluates adversarial attacks on autonomous driving agents within the CARLA simulator. The research shifts the focus from fooling individual perception models to attacking the "holistic" agent, which includes planning and control logic. The findings reveal that while perception models are easily compromised, the downstream safety rules and classical controllers often act as a buffer, preventing catastrophic failures like crashes in many instances. This work underscores the importance of system-level evaluation in adversarial ML.

Adversarial Training for Raw-Binary Malware Classifiers Lin participated in this research applying adversarial training techniques to the domain of malware detection. The study investigates the challenges of defending raw-binary classifiers against evasion attacks, where perturbations must preserve the functional integrity of the malicious code. The work explores the effectiveness of various adversarial training regimes in improving the robustness of these classifiers, contributing to the broader understanding of how adversarial ML defenses translate to non-image domains.

Profile updated

See something wrong? Report a mistake