Nicholas Bai
Computer Science @ Caltech
Hi! I'm an undergraduate at Caltech studying computer science. I'm interested in building machine learning systems and in understanding why they work.
My research spans interpretability, generative modeling, and machine learning for scientific inverse problems. Currently, I am a researcher in Anima Anandkumar's AI + Science Lab, designing diffusion-based sampling methods for Bayesian inverse PDE problems.
I am inspired by methods that make powerful AI models more reliable, interpretable, and applicable in real-world settings.

Recent News
- Award
Named a Carl F. Braun SURF Fellow for summer research on Bayesian inverse problems.
- Update
Attending ICML 2026 in Seoul, Korea. See you there!
- Update
Attending Y Combinator Startup School in San Francisco, CA.
- Publication
What I Work On
Interpretability and Reliable AI
Understanding internal representations, explaining model behavior, and building methods that make systems more transparent and more trustworthy.
Generative Models
Diffusion models, controllable generation, representation steering, and the behavior of modern generative systems.
AI for Science and Inverse Problems
Machine learning for scientific computing: PDE inverse problems, Bayesian inference, neural operators, and function-space methods.
Foundations of Learning and Inference
Particle methods, sampling, transport, geometry, and the mathematical behavior of high-dimensional learning systems.
Selected Publications
- ICML 2026 Workshop
Count Me If You Can: Geometric Failure Modes in Language Model Counting
Nicholas Bai, Ayushi Mehrotra
Traces language-model counting errors to the geometry of their internal number representations, and improves high-count accuracy by up to 20%.
Details
- NeurIPS 2025 Workshop
CAT: Curvature-Adaptive Transformers for Geometry-Aware Learning
R. Y. Lin, S. Ojha, Nicholas Bai
Transformers that route tokens across three geometric attention branches with a mixture-of-experts gate.
Details
- TMLR 2025ICML 2024 Workshop Spotlight
Interpreting Neurons in Deep Vision Networks with Language Models
Nicholas Bai, et al.
A language-model-based framework that produces natural-language descriptions of individual neurons in vision networks.
Details