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

Leonard Tang

Haize Labs · Stanford University
7 previous affiliations
16Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Leonard Tang focuses on the security, robustness, and evaluation of large-scale machine learning models, with a particular emphasis on identifying vulnerabilities in high-capability language and vision systems. His work investigates the mechanisms by which neural networks process complex information—ranging from mathematical reasoning and legal contract review to offensive humor detection—and how these same mechanisms can be exploited through adversarial attacks. Currently, his research explores the "scaling paradox" in artificial intelligence, examining why increased model capability and reasoning depth often correlate with heightened susceptibility to sophisticated jailbreaking techniques and security breaches.

Research Trajectory

The evolution of Tang’s research reflects a transition from applying Transformer-based models to specialized reasoning tasks toward a fundamental critique of model safety and perception. In 2021, his work centered on the capabilities of early foundation models, specifically exploring how program synthesis could be leveraged to solve complex technical problems. This period was characterized by an interest in the intersection of natural language and formal logic, using models like OpenAI’s Codex to bridge the gap between human-authored word problems and executable code.

By 2022, Tang’s focus expanded into the domain of content moderation and nuanced linguistic understanding. He addressed the challenge of detecting humor subtypes and offensive content, moving beyond binary classification to capture the subtleties of "adult" or "naughty" humor. This work signaled an early interest in the alignment of models with human social norms and the difficulties of automated moderation in subjective domains. During this time, he also participated in broader efforts to improve computer vision safety, contributing to research on data augmentation techniques designed to balance out-of-distribution robustness with anomaly detection.

In 2023, Tang’s research took a more critical turn toward model security and the human-machine perception gap. He investigated the vulnerabilities of the knowledge distillation process, demonstrating how malicious "Trojans" could be embedded in student models without affecting the performance of the teacher model. Simultaneously, he challenged the assumption that neural network vision aligns with human visual theories, using degraded geometric forms to highlight fundamental discrepancies in how machines perceive structure. This period also saw significant contributions to legal NLP, where he co-led the development of large-scale benchmarks for understanding complex merger agreements, emphasizing the limitations of modern Transformers in high-stakes, expert-level reasoning.

From 2024 to 2025, Tang’s work has increasingly focused on the The Scaling Paradox of Adversarial Robustness. As models have grown more capable in reasoning and instruction-following, Tang has demonstrated that these very strengths can be turned into security liabilities. His most recent research introduces "bijection learning" as a method for bypassing safety filters, revealing that frontier models are more vulnerable to certain classes of attacks precisely because they are better at learning and executing complex, abstract encodings.

Current Directions

Tang’s current research program is defined by three primary pillars: the inverse relationship between model intelligence and security, the efficiency of long-context processing, and the safety of internal reasoning traces.

A central theme in his recent work is The Inverse Scaling of Model Capability and Security. This research suggests that as Large Language Models (LLMs) gain reasoning depth, they do not necessarily become more robust against deception. Instead, their enhanced ability to follow complex instructions allows them to be manipulated by sophisticated, multi-layered prompts that weaker models would simply fail to process. This work challenges the prevailing industry assumption that safety alignment naturally scales with general intelligence.

Tang is also investigating Efficient Processing of Massive Context Windows in Language Models. As models are increasingly used as agents capable of processing entire codebases or legal archives, the computational "tax" of quadratic scaling in Transformers has become a critical bottleneck. His work in this area seeks to optimize how models manage "working memory" without sacrificing the precision required for long-range dependency tasks.

Furthermore, he is exploring Safety Alignment for the Internal Reasoning Trace. With the advent of Large Reasoning Models (LRMs) that utilize extended "Chain-of-Thought" (CoT) processes, a new attack surface has emerged. Tang’s research examines how these internal monologues can be monitored or constrained to prevent models from "reasoning" their way around safety guardrails before producing a final, seemingly benign output. This interest extends to broader questions of Visual Interpretability for Medical Image Analysis, where he applies similar principles of transparency and consistency to ensure that high-stakes clinical models are not relying on spurious correlations.

Representative Work

In Solving Probability and Statistics Problems by Program Synthesis, Tang (as first author) demonstrated that university-level mathematics questions could be solved by transforming them into probabilistic programming tasks. By using Codex to generate code that simulates probabilistic dependencies, the research showed that models could overcome the limitations of direct text-to-answer reasoning. This work highlighted the importance of prompt engineering and the potential for LLMs to serve as engines for formal computational logic.

Tang addressed the nuances of automated content moderation in The Naughtyformer: A Transformer Understands Offensive Humor. As first author, he introduced a novel dataset of humor subtypes and developed a fine-tuned Transformer architecture capable of distinguishing between innocent jokes and more offensive, adult-oriented humor. The project demonstrated that specialized training could significantly improve a model's ability to detect offensiveness compared to general-purpose state-of-the-art methods, providing a tool for more granular digital safety.

In the security domain, Learning the Wrong Lessons: Inserting Trojans During Knowledge Distillation explores a critical vulnerability in the machine learning supply chain. Tang (first author) showed that it is possible to exploit the unlabelled data used during distillation to embed Trojan triggers in a student model. Crucially, the attack was designed to be stealthy, leaving the teacher model’s performance unaffected while significantly degrading the student model’s accuracy upon activation of the trigger. This research emphasized the risks inherent in resource-optimized model deployment.

Tang’s investigation into the fundamental nature of machine perception is detailed in Degraded Polygons Raise Fundamental Questions of Neural Network Perception. As first author, he revisited classic theories of human vision to test whether neural networks share the same structural recognition capabilities as humans. By testing models on the classification of regular polygons under varying degrees of degradation, the study revealed that deep learning models suffer in settings that humans handle with ease, suggesting that current vision architectures lack the robust "recognition-by-components" logic found in biological systems.

In the field of expert-level NLP, Tang served as the second author for MAUD: An Expert-Annotated Legal NLP Dataset for Merger Agreement Understanding. This work introduced a large-scale benchmark consisting of over 47,000 expert annotations on merger agreements. The project revealed a significant performance gap: while modern Transformers outperformed random baselines, they struggled with the nuanced reading comprehension and logical "deal point" analysis required for high-stakes legal review, highlighting a major frontier for model development.

Most recently, Tang served as the senior author for Endless Jailbreaks with Bijection Learning, which introduced a black-box attack method using in-context learning. The research demonstrated that LLMs could be taught custom, randomly generated ciphers to bypass safety filters. The study’s most significant finding was a scaling vulnerability: more capable models, such as Claude 3.5 Sonnet and GPT-4o, were more susceptible to these attacks than weaker models because of their superior ability to learn and apply complex encodings. This work provides empirical evidence for the inverse relationship between model capability and safety.

Profile updated

See something wrong? Report a mistake