Mostafa Dehghani
· 2 previous affiliations
- Google (United States)Since 2020
- Research Scientist · Since 2020
- University of Amsterdam2014–2019
- PhD student · 2014–2019
1 other author named Mostafa Dehghani: Mostafa Dehghani (3 papers)
Research Overview
Mostafa Dehghani focuses on the architecture, scaling properties, and evaluation methodologies of deep learning models, with a primary emphasis on Transformer-based systems in computer vision and natural language processing. His work investigates the interaction between inductive biases, computational scale, and data quality, seeking to understand how these factors contribute to the emergence of complex reasoning and generalization. By developing more efficient attention mechanisms and robust benchmarking frameworks, he addresses fundamental questions regarding the reliability and efficiency of large-scale neural networks across diverse modalities.
Research Trajectory
The early stages of Dehghani’s research were grounded in information retrieval (IR) and the challenges of processing textual data with varying levels of quality and structure. During this period, he addressed the Bridging the Lexical Gap in Information Retrieval, focusing on the discrepancy between user queries and document terminology. This work naturally extended into the domain of plagiarism detection and text alignment, where he explored how the distribution of common semantic elements could inform the selection of alignment strategies. A significant theme during this era was the critique of standard optimization practices. He challenged the "gradient democracy" inherent in empirical risk minimization, where every training sample is treated as equally valid. This led to investigations into Differentiating Sample Importance in Neural Training and the development of Uncertainty Weighted Gradients for Robust Optimization. These methods sought to mitigate the impact of noisy or weak labels by weighting updates based on the model's confidence or the latent quality of the data.
As the field shifted toward large-scale pre-training, Dehghani’s focus moved toward the Transformer architecture and its application beyond natural language. He was a contributor to the development of the Vision Transformer (ViT), which demonstrated that the Transformer backbone could surpass traditional convolutional neural networks (CNNs) in image recognition when scaled to sufficiently large datasets. This transition marked a shift in his work toward understanding the "scaling laws" of neural architectures. He began to systematically evaluate how different inductive biases—such as the local connectivity of convolutions versus the global attention of Transformers—behave as computational budgets and parameter counts increase. His research suggested that while specialized architectures might excel at small scales, the vanilla Transformer often proves to be the most consistent "scaler" in high-compute regimes.
This interest in scaling was accompanied by a critical look at how the machine learning community measures progress. He identified significant fragilities in the benchmarking process, noting that algorithmic superiority is often confounded by hyperparameter tuning, task selection, and random seeds. To provide a more rigorous foundation for evaluating efficient Transformer variants, he led the creation of benchmarks designed to test long-range dependency modeling. This work highlighted that many "efficient" attention mechanisms, while reducing computational complexity, often struggle with hierarchical reasoning or extreme sequence lengths.
In recent years, Dehghani has focused on multi-modal learning and the removal of rigid preprocessing constraints in computer vision. He has worked on architectures that allow models to process images of any aspect ratio or resolution natively, moving away from the standard practice of resizing or cropping. Furthermore, his work has explored the theoretical foundations of why next-token prediction leads to emergent intelligence, linking the statistical properties of human language—such as its fractal structure—to the learning dynamics of autoregressive models. His recent contributions also include scaling instruction-finetuned models and addressing the challenges of continual learning in differentiable search indices, where models must index new information without forgetting previously acquired knowledge.
Current Directions
Dehghani’s current research continues to push the boundaries of Transformer scalability and stability. As models grow toward the trillion-parameter scale, he has investigated techniques like Stabilizing Transformers via Query-Key Normalization to prevent entropy collapse and training instabilities. He remains active in the study of Shape Bias in Computer Vision Models, examining whether large-scale pre-training can shift models away from a reliance on local textures toward a more human-like recognition of global geometric structures. Additionally, he is exploring Knowledge Distillation via Internal Representation Alignment, a method for knowledge distillation that moves beyond matching final outputs to aligning the internal "reasoning" paths of teacher and student models.
Representative Work
Long Range Arena : A Benchmark for Efficient Transformers As the first author of this work, Dehghani established a systematic framework for evaluating the growing ecosystem of efficient Transformer variants, often referred to as "xformers." The benchmark focuses on tasks requiring the modeling of long-context sequences, ranging from 1,000 to 16,000 tokens, across multiple modalities including text, images, and mathematical reasoning. The study revealed that there is no single architecture that dominates across all tasks; many models that optimize for speed or memory efficiency do so at the expense of performance on complex, long-range dependencies. This work has become a standard reference for researchers developing new attention mechanisms.
The Benchmark Lottery In this first-author paper, Dehghani critiques the empirical foundations of machine learning research. He introduces the concept of the "benchmark lottery," arguing that the perceived superiority of one algorithm over another is often a result of arbitrary choices in the benchmarking process rather than fundamental algorithmic innovation. By demonstrating how relative rankings can be significantly altered by changing tasks or evaluation metrics, the paper advocates for more robust and transparent experimental protocols in the ML community.
Scaling Laws vs Model Architectures: How does Inductive Bias Influence Scaling? Leading this investigation, Dehghani explored the relationship between model design and performance at scale. The research compared a wide array of architectures—including convolutions, Transformers, and Mixture-of-Experts—to determine how their respective inductive biases affect their ability to benefit from increased compute. The findings suggest that as the computational budget grows, the specific architectural choices become less critical than the overall scale, with the vanilla Transformer demonstrating remarkable robustness as a universal scaler.
Patch n’ Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolution As first author, Dehghani introduced NaViT (Native Resolution ViT), which addresses a long-standing limitation in computer vision: the requirement that images be resized to a fixed square resolution. By adapting sequence packing techniques from natural language processing, NaViT allows the model to process patches from multiple images of varying resolutions and aspect ratios in a single batch. This approach not only improves training efficiency by fourfold but also enhances performance on downstream tasks by preserving the original visual information of the input data.
PolyViT: Co-training Vision Transformers on Images, Videos and Audio In this senior-author role, Dehghani oversaw the development of PolyViT, a parameter-efficient model designed to handle multiple modalities within a single Transformer backbone. The research demonstrates that co-training on diverse tasks across images, audio, and video leads to significant accuracy improvements compared to single-modality training. The work highlights the potential for universal architectures that can generalize across different sensory domains while sharing the vast majority of their learnable parameters.
Fractal Patterns May Unravel the Intelligence in Next-Token Prediction Serving as the second author, Dehghani contributed to a theoretical exploration of why autoregressive next-token prediction serves as such a powerful objective for training large language models. The paper posits that human language possesses a fractal structure characterized by self-similarity and long-range dependence. By forcing models to predict the next token, they are effectively required to capture these multi-scale patterns, which the authors argue is a key driver behind the emergent reasoning capabilities observed in modern LLMs.
Profile updated
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