Darshil Doshi

Johns Hopkins University
4 previous affiliations
10Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Darshil Doshi focuses on the theoretical foundations of deep neural networks, with a particular emphasis on signal propagation, initialization stability, and the mechanics of generalization in large-scale architectures. His work frequently bridges concepts from statistical physics and fluid dynamics to address the practical challenges of training deep models, such as Transformers. By developing diagnostic tools like partial Jacobians and applying physics-inspired metrics to neural representations, Doshi investigates how architectural choices and training dynamics influence a model's transition from rote memorization to algorithmic understanding.

Research Trajectory

Doshi’s early research was situated in the field of theoretical physics, specifically exploring the intersection of fluid mechanics and quantum many-body systems. In 2020 and 2021, he co-authored work that established a formal mathematical link between two-dimensional superfluid vortices and "fractons"—exotic quasiparticles characterized by restricted mobility. This research demonstrated that the dynamics of vortices in systems like Bose-Einstein condensates and helium films conserve specific multipole moments, effectively mapping fluid mechanics onto fracton gauge theories. This period of work provided a rigorous framework for studying complex many-body localization and quantum turbulence through the lens of well-understood experimental platforms.

Beginning in 2021, Doshi transitioned his focus toward the theoretical underpinnings of deep learning, applying a similar level of mathematical rigor to the problem of Signal Propagation and Stability in Deep Architectures. A primary concern during this phase was the challenge of "criticality"—the state in which a neural network is initialized such that signals can propagate through many layers without vanishing or exploding. He introduced the concept of "partial Jacobians," which are derivatives of preactivations in one layer with respect to those in a preceding layer. This tool allowed for a more granular diagnosis of a network's health than global Jacobian metrics.

This line of inquiry led to significant contributions regarding Normalization Placement for Stable Deep Transformers. Doshi’s work provided a theoretical justification for specific architectural configurations, such as the combination of LayerNorm and residual connections, to achieve Dynamical Isometry in Deep Neural Networks. By ensuring that the singular values of the input-output Jacobian remain near unity, his research helped define the conditions under which extremely deep networks become trainable regardless of specific weight initialization variances.

By 2024, Doshi’s focus shifted toward the phenomenon of "grokking"—the sudden transition from memorization to generalization observed in models trained on algorithmic tasks. This work examines how models develop internal representations that reflect the underlying rules of a dataset. He has utilized metrics such as the Inverse Participation Ratio (IPR), a concept borrowed from condensed matter physics, to identify specific neurons responsible for memorizing noisy data. His recent research also explores the emergence of in-context learning (ICL) and how model depth interacts with data complexity, particularly in the context of cellular automata and modular arithmetic.

Current Directions

Doshi’s current research continues to probe the limits of Transformer architectures and their ability to emulate complex algorithmic processes. One active area of investigation is the relationship between model depth and the complexity of the rules a network is tasked to learn. By using elementary cellular automata as a benchmark, he has contributed to findings that suggest deeper networks are fundamentally better equipped to implement the hierarchical computations required for complex rule emulation, even when parameter counts are held constant.

Another significant direction involves the study of in-context learning as a form of "algorithmic shift." Doshi is investigating how Transformers transition from simple pattern matching to more sophisticated regression-like behaviors as the number of examples in a prompt increases. This work seeks to understand whether the capabilities of large language models are a result of true skill composition or a highly sophisticated form of task-specific memorization. Most recently, he has extended these inquiries to the domain of pseudo-randomness, questioning the extent to which Transformers can predict or emulate pseudo-random number generators.

Representative Work

Vortices as fractons In this work, Doshi and his collaborator demonstrate that 2D superfluid vortices serve as a physical realization of fracton physics, specifically the Traceless Scalar Charge Theory. The paper provides a bridge between fluid dynamics and gauge theory, suggesting that existing experimental setups for superfluidity can be used to study the restricted mobility and dynamics of fractons, which were previously considered largely theoretical constructs.

Critical initialization of wide and deep neural networks through partial Jacobians: general theory and applications to LayerNorm As the lead author, Doshi introduces a practical method for diagnosing the criticality of deep neural networks using partial Jacobians. The paper develops a Gaussian process approximation for wide networks to formulate criteria for selecting hyperparameters like weight variance and learning rates. This theoretical framework is applied to LayerNorm, providing a rigorous explanation for its role in stabilizing signal propagation in deep architectures.

AutoInit: Automatic Initialization via Jacobian Tuning In this second-author contribution, Doshi participates in the development of an algorithm that automates the search for optimal initialization hyperparameters. By tuning the Jacobian between adjacent network blocks to maintain criticality, the algorithm removes the need for the trial-and-error approaches typically required when modifying network architectures. The work includes a derivation of convergence conditions for fully connected ReLU networks.

To Grok or not to Grok: Disentangling Generalization and Memorization on Corrupted Algorithmic Datasets Doshi leads this investigation into the simultaneous occurrence of generalization and memorization. By training models on datasets with corrupted labels, the research shows that networks can "grok" underlying rules while still memorizing noise. The study employs the Inverse Participation Ratio to locate "memorizing" neurons, demonstrating that pruning these specific units can enhance generalization on clean data. This work clarifies how regularization techniques like weight decay specifically target overfitting.

Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic tasks This paper explores how GPT-style Transformers develop in-context learning capabilities through pre-training on diverse modular arithmetic tasks. Doshi and his co-authors identify a transition point where the model shifts from in-distribution memorization to out-of-distribution generalization. The research highlights an "algorithmic shift" where the model's strategy evolves as more context is provided, moving from simple matching to complex regression.

Exploring model depth and data complexity through the lens of cellular automata In this study, Doshi contributes to an analysis of the interplay between architecture depth and the complexity of the data. Using elementary cellular automata (ECA), the authors show that deeper networks are more effective at emulating complex rules than shallower networks of the same size. The paper uses attention score patterns to explain why shallow models fail to capture the hierarchical dependencies inherent in complex ECA rules, further supporting the necessity of Depth Dependent Residual Scaling.

Profile updated

See something wrong? Report a mistake