Ryan Grainger
· 4 previous affiliations
- North Carolina State UniversitySince 2015
- Graduate Research Assistant · Since 2020
- PhD student · 2019–2021
- Graduate Teaching Assistant · 2019–2020
- Bachelor's degree, Mechatronics, Robotics, and Automation Engineering · 2015–2019
- Researcher · Since 2024
- Eaton (Ireland)2018–2019
- Electrical Engineer Intern · 2018–2019
- University of North Carolina at Asheville2016–2018
- Undergraduate Teaching Assistant · 2016–2018
Research Overview
Ryan Grainger focuses on the intersection of adversarial robustness, vision transformer architectures, and differentiable optimization within computer vision. His research investigates the structural vulnerabilities of deep neural networks, particularly in Adversarial Robustness for Multi-Label and Ranking Systems, while developing novel attention mechanisms to bridge the semantic gap in visual tokenization. His work frequently employs quadratic programming and differentiable layers to address complex optimization challenges in both attack and defense contexts.
Research Trajectory
Grainger’s research trajectory began with a focus on the Architectural Specificity of Adversarial Latent Space Attacks. In 2023, he contributed to the development of optimization-based attack frameworks that moved beyond simple misclassification toward the manipulation of entire prediction rankings. This period established a core interest in the "geography" of model latent spaces and how specific mathematical shortcuts can be exploited to bypass safety filters or manipulate multi-label outputs. This work also touched upon the The Adversarial Inconsistency of Convex Surrogate Losses, examining how the choice of loss function influences the success of attacks in discrete or high-dimensional output spaces.
In 2024, Grainger’s focus expanded to include fundamental architectural improvements in computer vision. He led research into Vision Transformers (ViTs), specifically addressing the limitations of standard patch-to-patch attention mechanisms. By introducing clustering-based attention, he sought to improve the interpretability and efficiency of ViTs, moving away from the quadratic complexity of traditional self-attention while narrowing the semantic gap between visual and textual tokenization.
By 2025 and 2026, Grainger’s work returned to adversarial robustness with an emphasis on universality and transferability. He investigated Universal Adversarial Perturbations (UAPs) in white-box settings, exploring how targeted attacks can be scaled across different data distributions and model architectures. Concurrently, he applied Safe Control via Differentiable Optimization Layers to geometric problems, specifically differentiable polygon modeling for object instance segmentation. This work reflects a broader interest in integrating constrained optimization directly into deep learning pipelines to handle non-grid-based data representations.
Current Directions
Grainger’s current research is characterized by three primary pillars:
Aggressive Top-K Adversarial Attacks A significant portion of Grainger's recent work involves the development of ordered Top-K targeted attacks. Unlike traditional adversarial research that focuses on flipping a single label, this direction explores the feasibility of forcing a model to output a specific, ordered sequence of classes. This is particularly relevant for ranking systems and recommendation APIs where the relative order of predictions is as critical as the top-1 result.
Efficient Vision Transformer Architectures Grainger continues to refine the internal mechanisms of Vision Transformers. His work on patch-to-cluster attention represents a shift toward more semantically meaningful tokenization. By learning clusters end-to-end, this approach aims to make ViTs more robust and easier to explain, addressing the "black box" nature of standard patch embeddings.
Differentiable Geometric Modeling Applying differentiable optimization to computer vision tasks remains a key area of interest. This includes addressing the alignment problems inherent in boundary-based instance segmentation. By treating the number of vertices in a polygon as a fixed topology and optimizing their positions through differentiable layers, Grainger’s work seeks to provide a viable alternative to traditional bit-mask modeling.
Representative Work
In learning patch-to-cluster attention in vision transformers, Grainger (as first author) proposes PaCa-ViT, an architecture that replaces standard patch-to-patch attention with a mechanism where queries are patches and keys/values are based on learned clusters. This approach addresses the quadratic complexity of ViTs and aims to close the semantic gap between visual patches and textual tokens. The method demonstrates that end-to-end learning of clusters leads to more efficient tokenization and improved performance in visual recognition tasks.
Grainger contributed to the development of QuadAttacK: A Quadratic Programming Approach to Learning Ordered Top-K Adversarial Attacks, which utilizes Quadratic Programming (QP) to manipulate neural network predictions. By optimizing within the feature embedding space, the method successfully forces models to predict specific sequences of up to 20 classes. This work highlights the vulnerability of multi-label systems to sophisticated optimization-based attacks that scale beyond the limitations of previous methods.
In Revisiting and Expanding Targeted Universal Adversarial Perturbations, Grainger participated in an investigation of UAPs across three axes: model, data, and target. The research introduces AllAttacK, a protocol that expands traditional top-1 attack settings to the more aggressive ordered top-K setting. This work demonstrates that universal perturbations can be learned to achieve specific ranking targets, further deepening concerns regarding the white-box vulnerability of deep neural networks.
The study of Learning Universal Adversarial Perturbations for Ordered Top-K Targeted Attacks extends this line of inquiry by focusing on the transferability of these perturbations. Grainger’s work here shows that ordered top-K targeted UAPs can transfer effectively across both seen and unseen images, as well as across different model architectures. This "double-transferability" suggests that the vulnerabilities identified in specific models may be more systemic than previously understood.
Grainger also contributed to Differentiable Polygon Modeling for Object Instance Segmentation, which addresses the challenges of contour-based modeling in the deep learning era. The paper presents a method for differentiable polygon-based segmentation that handles the alignment between predicted and ground-truth vertices. This research provides a framework for instance segmentation that operates on boundaries rather than bit-masks, utilizing a fixed topology to maintain consistency during learning and inference.
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