MohammadReza Davari

MohammadReza Davari

Microsoft (United States) · Mila - Quebec Artificial Intelligence Institute
6 previous affiliations
15Machine learning papers tracked by Lacuna
Is this you?

Research Overview

MohammadReza Davari focuses on continual learning, representation similarity, and the optimization of large language models. His early research investigated how neural networks retain or forget learned representations over time, leading to critical evaluations of standard similarity metrics. His current work addresses model merging and prompt optimization for agentic systems and foundation models.

Research Trajectory

Davari completed his PhD at Mila and Concordia University, where his early work centered on deep learning applications before shifting toward the fundamental challenges of continual learning. A central problem in this field is catastrophic forgetting, where a model loses previously acquired knowledge when trained on new data.

In 2021, Davari began investigating the broader area of Representation Drift in Continual Learning. In Probing Representation Forgetting in Continual Learning, he demonstrated that catastrophic forgetting is traditionally measured solely by a decrease in task performance, whereas a model's internal representations can change significantly without necessarily losing prior knowledge. This work established a framework for evaluating representation forgetting independently of task-specific outputs.

This focus on how neural networks encode and retain information led to a critical examination of the metrics used to compare these representations. In a series of papers culminating in Reliability of CKA as a Similarity Measure in Deep Learning, Davari and his collaborators revealed significant vulnerabilities in Centered Kernel Alignment (CKA), a widely used metric for comparing neural representations. The research demonstrated both theoretically and empirically that CKA is highly sensitive to outliers and can be manipulated to produce arbitrary similarity maps without altering a model's actual performance.

Concurrently, Davari contributed to research directions such as Scaling Continual Learning to Massive Task Sequences and the theme of Representation Space Geometry and the Stability-Plasticity Dilemma. As a second author on Prototype-Sample Relation Distillation: Towards Replay-Free Continual Learning, he helped develop a method that leverages robust contrastive representation learning to allow models to learn new tasks without storing historical replay data. This work advanced the research direction of Relational Knowledge Distillation for Continual Learning. During this period, he also participated in applied natural language processing research, contributing as a middle author to ToxBuster: In-game Chat Toxicity Buster with BERT, a scalable model for detecting toxicity in gaming environments.

By 2024, Davari's focus expanded to the adaptation and merging of large-scale foundation models. In Model Breadcrumbs: Scalable Upcycling of Finetuned Foundation Models via Sparse Task Vectors Merging, he introduced a training-free method for merging multiple fine-tuned models into a single multi-task architecture. By applying sparse masks to filter out extreme outliers and negligible weight perturbations, the approach significantly reduced inter-task interference and allowed for scalable model adaptation.

In 2025, his research shifted toward the optimization of black-box large language models. In Rethinking Prompt Optimization: Reinforcement, Diversification, and Migration in Blackbox LLMs, he introduced a framework that combines positive reinforcement with feedback diversification to improve automatic prompt optimization and facilitate the seamless migration of prompts across different model versions.

Current Directions

Currently a Senior Applied Scientist at Microsoft, Davari's recent work investigates the optimization, evaluation, and deployment of large language models and agentic systems. Building on his background in continual learning and model merging, his current focus includes developing evaluation metrics for agentic workflows and managing context in document interaction.

The most recent research in the evidence addresses the challenges of interacting with black-box LLMs, specifically focusing on automated prompt optimization, feedback diversification, and the migration of optimized prompts across different model iterations. He continues to explore how continual learning techniques can be applied to maintain and improve multimodal models and agentic flows over time, ensuring that systems can adapt to new information without degrading their existing capabilities.

Profile updated

See something wrong? Report a mistake