NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions
Ali Shafahi

Ali Shafahi

Apple (United States)
2 previous affiliations
19Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Ali Shafahi focuses on the security, robustness, and reliability of machine learning systems, with a primary emphasis on adversarial machine learning and data poisoning. His work spans the theoretical foundations of model vulnerability, the development of efficient defense mechanisms, and the empirical auditing of industrial-scale systems. By investigating The Geometric Inevitability of Adversarial Examples, Shafahi has contributed to a fundamental understanding of why high-dimensional classifiers remain susceptible to small perturbations. His research trajectory has evolved from establishing these theoretical bounds to designing practical, low-overhead methods for hardening models against both evasion and poisoning attacks.

Research Trajectory

The early stages of Shafahi’s research, beginning around 2018, were characterized by an investigation into the fundamental limits of adversarial robustness. During this period, he addressed the persistent failure of empirical defenses by applying high-dimensional geometry to prove that adversarial examples are not merely architectural flaws but may be an inescapable consequence of the geometry of data manifolds. This work suggested that for many complex datasets, any classifier with a non-zero error rate would inevitably possess adversarial examples within a small radius of most inputs.

Parallel to this theoretical work, Shafahi explored the threat of Stealthy Backdoor Attacks via Feature Space Collisions. This research moved beyond traditional "label-flipping" poisoning to "clean-label" attacks, where an adversary injects correctly labeled but carefully crafted samples into a training set to control a model's behavior on specific target instances at test time. This demonstrated that neural networks could be compromised even when the training data appears legitimate to human auditors.

By 2019 and 2020, Shafahi’s focus shifted toward the dual challenges of computational efficiency and practical application. Recognizing that standard adversarial training was too computationally expensive for large-scale deployment, he investigated alternative regularization techniques and "low-cost" training regimes. This included work on Transferable Adversarial Attacks via Feature Representation Distortion, which explored how perturbations designed for one model could effectively fool others, and the development of universal adversarial training methods. During this time, he also extended adversarial principles to non-vision domains, specifically auditing industrial copyright detection systems to reveal vulnerabilities in audio fingerprinting algorithms.

In the subsequent years, Shafahi’s work has increasingly addressed the nuances of model training and generalization. This includes investigating The Gap Between Certified Stability and Semantic Correctness and developing methods to mitigate "robust overfitting"—a phenomenon where a model's adversarial robustness on training data fails to generalize to test data. His more recent contributions involve refining the training loop through adaptive hyperparameters and exploring the security and utility of generative models, such as Stable Diffusion, in the context of visual in-context learning.

Current Directions

Shafahi’s recent work continues to refine the trade-offs between model performance and robustness. A significant area of current interest is the optimization of the training process itself to prevent the degradation of robustness over time. This involves the development of adaptive weight decay mechanisms that dynamically balance classification accuracy with regularization, as well as self-paced augmentation strategies that adjust the intensity of data transformations based on individual sample statistics. These methods aim to provide the benefits of advanced data augmentation and regularization without the manual tuning typically required.

Furthermore, Shafahi has begun to explore the emerging capabilities of large-scale generative models. His participation in research regarding visual in-context learning suggests a shift toward understanding how pre-trained diffusion models can be repurposed for task-specific adaptation without explicit weight updates. This direction aligns with broader trends in machine learning toward leveraging the latent knowledge of foundation models for diverse downstream applications.

Representative Work

Are adversarial examples inevitable? In this work, Shafahi and his collaborators provide a theoretical analysis of adversarial vulnerability using isoperimetric inequalities. They demonstrate that for certain classes of high-dimensional problems, adversarial examples are a mathematical certainty rather than a symptom of poor training. By establishing fundamental bounds on the susceptibility of classifiers, the paper provides a rigorous framework for understanding why absolute robustness remains elusive in complex domains.

Poison Frogs! Targeted Clean-Label Poisoning Attacks on Neural Networks As the lead author of this study, Shafahi introduced a class of data poisoning attacks that do not require the attacker to change the labels of training samples. The attack functions by creating "collisions" in the feature space of a neural network, where a poisoned training instance (labeled correctly) is placed near a target test instance in the deep layers of the model. This allows an adversary to manipulate the model's prediction on a specific target without affecting its overall accuracy on other data, highlighting a significant security risk in pipelines that use third-party data.

Adversarial attacks on Copyright Detection Systems This research applies adversarial machine learning to the domain of digital rights management. Shafahi demonstrated that industrial-scale copyright filters, such as those used by major streaming platforms, are vulnerable to adversarial perturbations. By re-implementing audio fingerprinting algorithms as differentiable networks, he created "adversarial music" that remains perceptually unchanged to human listeners but is rendered invisible to automated detection systems. This work underscored the practical implications of adversarial examples in real-world regulatory and commercial systems.

Universal Adversarial Training Addressing the computational burden of defending against Universal Adversarial Perturbations (UAPs)—single noise patterns that can fool a model across all inputs—this paper proposes an efficient optimization-based attack and a corresponding training regime. Shafahi and his co-authors developed a method that hardens models against UAPs with minimal computational overhead compared to standard training, making robust models more accessible for large-scale applications.

Improving Robustness with Adaptive Weight Decay In this second-author paper, Shafahi contributed to the development of Adaptive Weight Decay (AWD), a modification to the standard training loop that automatically tunes the weight decay hyperparameter at each iteration. The method is designed to combat "robust overfitting," a common issue in adversarial training where the model's defense capabilities plateau or decline during training. AWD provides a significant improvement in test-time robustness by dynamically balancing classification updates with regularization.

STABLE DIFFUSION MODELS ARE SECRETLY GOOD AT VISUAL IN-CONTEXT LEARNING Shafahi participated in this research exploring the latent capabilities of off-the-shelf diffusion models. The study demonstrates that by re-computing self-attention layers, Stable Diffusion models can perform visual in-context learning—adapting to new tasks based on a few example prompts—without the need for specialized training or additional data. This work represents a move toward understanding the broader utility and adaptability of generative foundation models.

Profile updated

See something wrong? Report a mistake