Nikhil Kandpal

University of Toronto
3 previous affiliations
15Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Nikhil Kandpal focuses on the relationship between machine learning model behavior and their underlying training data, with specific emphasis on privacy, security, and memorization in large language models. His trajectory spans early work on adversarial vulnerabilities to extensive analyses of how data duplication and long-tail distributions affect model recall. Currently, his research addresses the legal and economic provenance of training data alongside efficient interpretability methods.

Research Trajectory

The early arc of his research explored vulnerabilities in natural language processing systems, participating in the discovery and analysis of adversarial inputs in Universal Adversarial Triggers for Attacking and Analyzing NLP. This foundational interest in model security soon evolved into a broader investigation of how training data dictates both the capabilities and the privacy risks of large language models.

By 2022, his focus shifted toward the mechanics of data leakage. Contributing to the area of Data Duplication and the Mechanics of Model Memorization, he demonstrated in Deduplicating Training Data Mitigates Privacy Risks in Language Models that models are disproportionately likely to memorize sequences that appear multiple times in their training sets. The work showed that systematically removing these duplicates could reduce data leakage by up to a factor of twenty without degrading overall model performance. He continued to examine the outsized impact of data frequency on model behavior in Large Language Models Struggle to Learn Long-Tail Knowledge. This research established a strong causal link between the number of times a fact appears in a pre-training corpus and a model's ability to recall it, highlighting that simply scaling up model parameters is an inefficient strategy for capturing the long tail of human knowledge.

In parallel with his work on data memorization, he addressed the engineering and security challenges of deploying massive models. He contributed to the research direction of Structured Parameter Versioning for Large Scale Models by developing Git-Theta: A Git Extension for Collaborative Development of Machine Learning Models. This open-source tool treats model checkpoints as structured collections of parameters rather than opaque data blobs, enabling software engineering practices like granular commits and automatic model merging. On the security front, he investigated how the consolidation of trust in a few public language models creates new attack vectors. In Backdoor Attacks for In-Context Learning with Language Models, he analyzed how a model's in-context learning abilities complicate the development of backdoor attacks, as malicious triggers must remain robust across various prompting strategies without degrading general-purpose capabilities.

A major, sustained theme in his recent trajectory focuses on user-level privacy and the risks of fine-tuning models on federated or user-stratified data. Across a series of publications—beginning with early formulations in User Inference Attacks on LLMs and User Inference Attacks on Large Language Models, and culminating in the finalized venues for User Inference Attacks on Large Language Models and User Inference Attacks on Large Language Models—he formalized the threat model of "user inference." This work demonstrated that attackers can successfully determine whether a specific user's data was used to fine-tune a model using only black-box access and a small set of fresh samples that were never seen during training, posing a severe privacy risk for personalized AI services.

Current Directions

Recent work investigates the economics, legal provenance, and interpretability of large language models. He is actively addressing the latency bottlenecks in model interpretability, contributing to areas such as Low-Latency Interpretability for Real-Time Machine Learning and Cross-Scale Attention Alignment for Efficient Inference. This includes AttriBoT: A Bag of Tricks for Efficiently Approximating Leave-One-Out Context Attribution, which combines KV caching, hierarchical pruning, and small proxy models to accelerate context attribution by over 300x, making real-time interpretability feasible for massive models. He has also advanced methodological improvements in this space with Enhancing Training Data Attribution with Representational Optimization.

Concurrently, his research emphasizes the critical role of training data curation and valuation. He explores the financial implications of human labor in dataset creation in Position: The Most Expensive Part of an LLM should be its Training Data, arguing that data production costs can be orders of magnitude higher than training costs. To address the intellectual property and ethical concerns surrounding unlicensed text, he has led efforts to compile massive, openly licensed corpora, culminating in The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Text, which aggregates high-quality data from diverse, openly licensed sources for model pretraining.

Profile updated

See something wrong? Report a mistake