Niki Hasrati
I am an ML PhD student at Carnegie Mellon's School of Computer Science, where I am very lucky to be advised by Professor Andrej Risteski.
I study how structure shapes what language models can learn, how efficiently they reason, and where their safeguards fail. My work combines computational learning theory with empirical research on model safety.
Previously, I received my master's and bachelor's degrees in CS at the University of Waterloo, where I was fortunate to be advised by Professor Shai Ben-David.
nhasrati@andrew.cmu.edu  ◇ 
CV
Research Papers
Understanding Model Misspecification in Low-Rank Distributions: Tolerant Testing and Agnostic Learning
Niki Hasrati and Andrej Risteski
Under Submission, 2026
Towards a Theory of Generalized Chain-of-Thought
Surbhi Goel, Niki Hasrati, and Andrej Risteskiαβ
Working Manuscript, 2026
αβ Alphabetical order.
Towards Understanding the Transferability of Adversarial Suffixes in Large Language Models
Sarah Ball*, Niki Hasrati*, Alexander Robey, Avi Schwarzschild, Frauke Kreuter, J Zico Kolter, and Andrej Risteski
Transactions on Machine Learning Research (TMLR), 2026
* Equal contribution.
[ paper ]
On Computable Online Learning
Niki Hasrati and Shai Ben-David
34th International Conference on Algorithmic Learning Theory (ALT), 2023
ALT 2023 Best Paper Award
[ arXiv  ◇  paper  ◇  news article ]
|
Research Experience
Carnegie Mellon University
PhD Research, Aug 2023–Present · Advisor: Professor Andrej Risteski
- Studied model misspecification in sequence distributions motivated by large language models, developing algorithms and proving limits for testing and learning when structural assumptions hold only approximately.
- Studied the robustness of large language model safeguards by identifying empirical predictors of when adversarial prompts transfer across models.
University of Pennsylvania
Summer Research Intern, May–July 2026 · Hosted by Professor Surbhi Goel
- Developed a theoretical framework for structured reasoning in large language models, spanning chain-of-thought and tree-of-thought, and analyzed when different reasoning structures can reduce the number of model calls.
University of Waterloo
Master's Thesis Research, June 2021–April 2023 · Advisor: Professor Shai Ben-David
- Used computability theory to show that the Littlestone dimension, the classical measure of learnability from examples presented one at a time, no longer determines the best guarantee on prediction mistakes when the learner must be implementable as a computer program.
|
|