Khashayar Gatmiry
· 2 previous affiliations
- Massachusetts Institute of TechnologySince 2019
- PhD student · Since 2019
- Sharif University of Technology2014–2019
- Undergrad student · 2014–2019
Research Overview
Khashayar Gatmiry focuses on the theoretical foundations of deep learning, optimization dynamics, and the mathematical mechanisms underlying generalization. His trajectory spans from analyzing the implicit regularization of neural networks to exploring the algorithmic capabilities of Transformer architectures. Most recently, his work investigates high-precision sampling methods for diffusion models and permutation-invariant mechanisms for in-context learning.
Research Trajectory
Gatmiry’s early research established a strong foundation in the optimization and generalization properties of machine learning models, particularly in regimes that challenge standard linear approximations. In 2022, he explored how neural networks learn features beyond the confines of the Neural Tangent Kernel. His work in Optimization and Adaptive Generalization of Three layer Neural Networks analyzes a three-layer ReLU network, demonstrating that a variant of stochastic gradient descent (SGD) converges to a generalizing solution despite the non-convexity of the empirical loss. This analysis contributes to the broader area of Landscape Smoothing through Overparameterization by providing adaptive generalization bounds that automatically adjust to the data distribution. Around the same time, he collaborated on stochastic algorithms designed to improve fairness and robustness in machine learning. The resulting paper, Optimal algorithms for group distributionally robust optimization and beyond, introduces methods that achieve faster convergence rates for group distributionally robust optimization (DRO), subpopulation fairness, and empirical conditional value at risk (CVaR) optimization, supported by tight information-theoretic lower bounds.
Moving into 2023, Gatmiry expanded his focus to include online learning and the geometry of loss landscapes. He introduced the BARONS algorithm in Projection-Free Online Convex Optimization via Efficient Newton Iterations. By utilizing self-concordant barriers and a lazy Hessian update strategy, this work achieves dimension-free regret bounds, effectively combining the optimal regret of projection-based methods with the computational efficiency of projection-free approaches in high-dimensional settings. Concurrently, he investigated the theoretical bridge between loss landscape geometry and a model's ability to generalize to unseen data. His analysis in What is the Inductive Bias of Flatness Regularization? A Study of Deep Matrix Factorization Models advances the research direction of Optimization Dynamics of Deep Matrix Factorization by rigorously examining how flatness regularization influences the inductive bias of deep models.
In 2024, Gatmiry’s theoretical investigations broadened to encompass Transformer architectures and generative models, with a particular emphasis on the mechanics of in-context learning (ICL). He provided a theoretical proof that looped Transformers can learn to act as preconditioned optimizers for in-context linear regression in Can Looped Transformers Learn to Implement Multi-step Gradient Descent for In-context Learning?. By analyzing the optimization landscape, he showed that training converges to a global minimizer that adapts to the underlying data distribution. This work touches on several critical research areas, including The Architectural Simplification Gap in Transformer Theory, Iterative Weight Sharing for Deep Recursive Refinement, and Inference Time Compute Scaling for Complex Reasoning, while also addressing the broader domain of The Gap Between Neural Expressivity and Practical Learnability.
Returning to the theme of generalization, Gatmiry established a formal connection between sharpness minimization and simplicity bias in Simplicity Bias via Global Convergence of Sharpness Minimization. By analyzing two-layer networks, he demonstrated that a variant of SGD with label noise successfully minimizes sharpness by forcing neurons to collapse into a single linear feature, resulting in a low-rank feature matrix. He also contributed to the mathematical understanding of generative AI techniques, participating in a rigorous analysis of guidance mechanisms in diffusion models in What does guidance do? A fine-grained analysis in a simple setting.
His subsequent work continues to refine the architectures and sampling methods of foundational models. In 2025, he participated in the development of InvICL, detailed in Rethinking Invariance in In-context Learning. This research redesigns the attention mechanism to be mathematically permutation-invariant, addressing standard ICL's notorious sensitivity to example ordering while preserving essential properties like non-leakage and interdependence. Looking ahead to the most recent evidence in 2026, he introduced a novel solver for diffusion models in High-accuracy and dimension-free sampling with diffusions. This approach achieves high-accuracy sampling with an iteration complexity that scales polylogarithmically with the target error and remains dimension-free, depending only on the effective radius of the data distribution's support.
Current Directions
The most recent papers in the evidence address the efficiency, mathematical rigor, and structural robustness of modern generative architectures. One primary direction involves improving the theoretical properties of diffusion models, specifically developing dimension-free sampling algorithms that achieve high precision with logarithmic error scaling. By decoupling iteration complexity from the ambient dimension, this work seeks to make high-accuracy sampling more tractable for complex data distributions.
A second major focus is the refinement of in-context learning mechanisms in Transformer models. Recent work investigates how to make attention mechanisms permutation-invariant to stabilize in-context learning against example ordering. This direction aims to ensure robust performance without compromising the model's ability to synthesize information across prompts, addressing fundamental vulnerabilities in how large language models process sequential context.
Profile updated
| Paper | Venue | Year |
|---|---|---|
| Rethinking Invariance in In-context LearningGitHubPKU-ML/ | ICLR | 2025 |
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake