Leyang Hu

Leyang Hu

Brown University
2 previous affiliations
6Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Leyang Hu focuses on the robustness, optimization, and internal mechanics of large-scale machine learning models, with a particular emphasis on Large Language Models (LLMs) and Vision-Language Models (VLMs). Hu’s work explores how the geometric properties of decision boundaries and the dynamics of internal activations can be leveraged to improve model steering, adversarial defense, and task-specific adaptation. By investigating the misalignment between autoregressive pretraining and downstream perception, Hu develops methods to enhance model performance and security through training-free interventions and advanced textual optimization frameworks.

Research Trajectory

Hu’s research trajectory began with a focus on data-centric robustness in computer vision. In 2022, Hu participated in the development of Robustar: Interactive Toolbox Supporting Precise Data Annotation for Robust Vision Learning, a project that addressed the problem of "spurious features" in training data. This work utilized influence functions and saliency maps to allow human experts to identify and remove misleading pixels, establishing an early interest in how the quality of input data directly shapes the robustness of learned representations.

By 2024, Hu’s focus shifted toward the security and optimization of generative AI. This period was marked by a comprehensive investigation into the vulnerabilities of LLMs and VLMs. As a primary contributor to JailbreakZoo: Survey, Landscapes, and Horizons in Jailbreaking Large Language and Vision-Language Models, Hu helped categorize the emerging field of "jailbreaking"—the deliberate circumvention of ethical and operational boundaries in AI models. This survey provided a taxonomy of attack vectors and defense mechanisms, framing security as a critical bottleneck for the deployment of foundation models.

Parallel to this security work, Hu contributed to the development of new optimization paradigms for LLM-based systems. Moving beyond simple prompt engineering, this research explored "textual gradients"—using natural language feedback to iteratively refine model outputs. Hu participated in the design of frameworks like Revolve: Optimizing AI Systems by Tracking Response Evolution in Textual Optimization, which introduced the concept of tracking response evolution to simulate second-order optimization effects. This line of inquiry continued with HessianGrad: Optimizing AI Systems with Hessian-Aware Textual Gradients, which sought to overcome the limitations of first-order textual feedback by incorporating Hessian-aware information to stabilize convergence in complex reasoning tasks.

In 2025 and 2026, Hu’s work has increasingly focused on the internal mechanics of pretrained models and the development of training-free adaptation methods. This is exemplified by the introduction of Curvature Tuning: Provable Training-free Model Steering From a Single Parameter, where Hu served as the lead author. This research represents a significant pivot toward Rescaling Internal Activations for Efficient Model Adaptation, demonstrating that models can be steered toward specific tasks or made more robust by modulating the curvature of their decision boundaries rather than updating their weights. Most recently, Hu has addressed the fundamental gap between pretraining objectives and downstream utility through the development of the Next Token Perception Score: Analytical Assessment of your LLM Perception Skills, a metric designed to quantify how well autoregressive features transfer to perception-based tasks.

Current Directions

Hu’s current research is organized around three primary themes that seek to bridge the gap between theoretical model properties and practical performance:

Robustness through Decision Boundary Geometry Hu investigates Robustness through Decision Boundary Geometry, moving away from the "cat-and-mouse" game of specific adversarial attacks toward a more fundamental understanding of model stability. This work posits that robustness is a property of how smooth and distant decision boundaries are from data points. By analyzing these geometric properties, Hu develops methods to ensure models remain reliable under diverse noise patterns and distribution shifts.

Efficient Model Adaptation and Steering A major focus of Hu’s recent work is the development of methods for Learning the Shape of Neural Non-Linearities. Rather than treating activation functions as static hyperparameters, Hu explores how making these functions learnable—or steering them via external parameters—can allow for massive gains in efficiency. This approach is central to the concept of "Curvature Tuning," which enables model adaptation without the computational burden of full fine-tuning or even the parameter overhead of methods like LoRA.

Analytical Assessment of LLM Representations Hu continues to refine the analytical tools used to evaluate foundation models. By focusing on the "Next Token Perception Score," Hu aims to provide a more rigorous framework for understanding why models trained on next-token prediction often fail at simple classification or regression tasks. This research seeks to identify the specific subspaces within high-dimensional representations that are most informative for perception, potentially leading to new pretraining objectives that better align with downstream applications.

Representative Work

Curvature Tuning: Provable Training-free Model Steering From a Single Parameter In this first-author work, Hu introduces Curvature Tuning (CT), a method for steering pretrained models by injecting a single hyperparameter into their activation functions. CT operates on the principle that the geometry of a model's decision boundary can be modulated to improve generalization and adversarial robustness without modifying the underlying weights. The research provides theoretical proofs for the effectiveness of this approach and demonstrates that it can outperform more parameter-intensive adaptation methods while maintaining extreme computational efficiency.

Next Token Perception Score: Analytical Assessment of your LLM Perception Skills As a primary contributor to this research, Hu addresses the variability of LLM performance on downstream perception tasks. The paper introduces the Next Token Perception Score (NTPS), a metric that quantifies the alignment between features learned during autoregressive pretraining and the requirements of tasks like sentiment analysis or medical classification. The work demonstrates that autoregressive objectives often capture features that lie outside the optimal subspaces for perception, providing a diagnostic tool for researchers to assess and improve model transferability.

JailbreakZoo: Survey, Landscapes, and Horizons in Jailbreaking Large Language and Vision-Language Models Hu served as a key author on this extensive survey of AI security. The paper categorizes jailbreaking techniques into seven distinct types and evaluates the landscape of defense mechanisms for both LLMs and VLMs. By synthesizing the rapid evolution of these attacks, the work provides a foundational reference for understanding the ethical and operational risks associated with large-scale generative models and highlights the need for more robust alignment strategies.

Revolve: Optimizing AI Systems by Tracking Response Evolution in Textual Optimization In this collaborative work, Hu contributed to the development of REVOLVE, a framework for optimizing LLM-based systems using textual feedback. The system moves beyond first-order "textual gradients" by tracking how model responses evolve over multiple iterations. This approach simulates second-order optimization effects, leading to more stable convergence and improved performance on complex reasoning tasks compared to existing methods like TextGrad.

HessianGrad: Optimizing AI Systems with Hessian-Aware Textual Gradients Building on the themes of textual optimization, Hu participated in the development of HessianGrad. This research addresses the limitations of relying solely on immediate feedback for prompt and system optimization. By incorporating Hessian-aware information into the textual feedback loop, the framework provides a more nuanced adjustment mechanism, particularly in scenarios where the "gradient" of the textual feedback is small or misleading.

Robustar: Interactive Toolbox Supporting Precise Data Annotation for Robust Vision Learning Hu contributed to the creation of Robustar, an open-source toolbox designed to improve the adversarial robustness of vision models through better data annotation. The tool allows users to interactively identify and remove spurious features from training sets. This early work emphasized the importance of human-in-the-loop systems for creating high-quality datasets that lead to better model generalization in real-world scenarios.

Profile updated

See something wrong? Report a mistake