Madhur Panwar
· 6 previous affiliations
- École Polytechnique Fédérale de LausanneSince 2024
- Doctor of Philosophy - PhD, Computer Science · 2024–2029
- Microsoft (United States)2022–2024
- Research Fellow · 2022–2024
- Adobe Systems (United States)2020–2022
- Software Development Engineer · 2021–2022
- Research Intern · 2020
- Research Intern · 2021
- Bachelor of Engineering - BE, Computer Science · 2016–2021
- Software Development Engineer (SDE) - Intern · 2020
Research Overview
Madhur Panwar focuses on understanding the capabilities, generalization, and inductive biases of large language models. His research traces the origins of emergent abilities to training dynamics, pre-training objectives, and architectural designs. Currently, he investigates the mechanisms behind in-context learning, hierarchical generalization, and memorization in transformer architectures.
Research Trajectory
Early in his career, while completing his studies at BITS Pilani and working as a Software Development Engineer at Adobe, Panwar explored natural language processing applications with a focus on document representation. He developed TAN-NTM: Topic Attention Networks for Neural Topic Modeling, a framework that leverages topic-word distributions to guide attention mechanisms. By allowing the model to focus on words most relevant to specific topics, this approach achieved significantly improved topic coherence and better document representations for downstream tasks like classification and keyphrase generation. This work contributed to the broader area of Overcoming the Bag of Words Assumption in Text Modeling.
Transitioning to a Research Fellow role at Microsoft Research India, his focus shifted toward the theoretical foundations of large language models, particularly the phenomenon of in-context learning. He investigated how transformers process stylized meta-learning setups, demonstrating their capabilities in Transformers Can Learn To Solve Linear-Inverse Problems In-Context. By extending standard sequence training to different types of linear-inverse problems, this research highlighted the algorithmic flexibility of transformers. Concurrently, he examined the inductive biases of these models, identifying unexpected behaviors in Surprising Deviations from Bayesian View in In-Context Learning. While transformers successfully generalize to new functions within classes like linear regression, this work revealed nuances in how their inductive biases diverge from strict Bayesian expectations.
This line of inquiry culminated in In-Context Learning through the Bayesian Prism, which proposed that high-capacity transformers trained on mixtures of different function families do not merely learn specific algorithms. Instead, they essentially mimic a Bayesian predictor—specifically the Posterior Mean Estimator—that reflects the distribution of tasks seen during pretraining. This research advanced the direction of Implicit Bayesian Inference in Large Language Models by providing a robust theoretical framework for understanding how in-context learning emerges from pretraining distributions.
As a PhD student at EPFL, Panwar expanded his research to encompass mechanistic interpretability and the structural generalization of language models. He collaborated on InversionView: A General-Purpose Method for Reading Information from Neural Activations, introducing a technique to decode neural activations by training a decoder to generate the set of inputs that would produce them. By analyzing the commonalities in these generated inputs, the method allows researchers to directly observe what information is encoded at specific points in a model's internal processing, providing new tools for the research area of Decomposing High Dimensional Embeddings into Interpretable Concepts.
He also explored how models acquire structural biases without explicit architectural priors in Learning Syntax Without Planting Trees: Understanding When and Why Transformers Generalize Hierarchically. Through extensive experiments on synthetic, controlled datasets, this research demonstrated that while objectives like sequence-to-sequence modeling or classification often fail to induce hierarchical generalization, the standard language modeling objective consistently drives transformers to generalize hierarchically.
His recent work delves into the training dynamics of data retention and model alignment. In For Better or for Worse, Transformers Seek Patterns for Memorization, he revealed that transformers actively hunt for patterns even when forced to memorize noisy data. This study introduced the concept of "overthinking," demonstrating that larger models actually take longer to memorize noisy data because their capacity is occupied by attempting to extract non-existent patterns. Additionally, he participated in research on model alignment with Playing Devil’s Advocate: Off-the-Shelf Persona Vectors Rival Targeted Steering for Sycophancy. This work evaluated how steering models toward personas characterized by doubt or scrutiny can mitigate sycophantic behaviors—where models agree with incorrect user statements. The study showed that off-the-shelf persona vectors can serve as an effective alternative to Contrastive Activation Addition (CAA), successfully reducing sycophancy while maintaining accuracy when the user is correct.
Current Directions
The most recent papers in the evidence address the internal dynamics of memorization and the behavioral alignment of large language models. Recent work investigates how transformers process and retain data, specifically exploring the tension between pattern recognition and verbatim memorization. This includes analyzing "overthinking" during training, where high-capacity models struggle to memorize noisy data because they attempt to extract structural regularities that do not exist. Concurrently, ongoing research examines methods for mitigating sycophancy in instruction-tuned models. By evaluating off-the-shelf persona vectors, this work seeks to steer model behavior toward scrutiny and doubt, offering computationally lightweight alternatives to targeted contrastive training for improving model honesty and reliability during user interactions.
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