Saurabh Garg

Thinking Machines Lab
6 previous affiliations
34Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Saurabh Garg focuses on the reliability and adaptability of machine learning systems, specifically addressing the challenges posed by distribution shift and the deployment of foundation models in specialized domains. His research investigates how models can be evaluated and adapted when the test-time data environment differs from the training distribution, a problem encompassing covariate shift, label shift, and temporal dynamics. Through the development of new benchmarks, theoretical error bounds, and practical adaptation algorithms, he seeks to bridge the gap between controlled laboratory performance and real-world utility. His recent work critically examines the efficacy of domain-specific fine-tuning for large language models (LLMs) and vision-language models (VLMs), advocating for more rigorous evaluation protocols in high-stakes fields such as medicine.

Research Trajectory

The evolution of Garg’s research reflects a transition from specific natural language processing (NLP) tasks to fundamental questions regarding model robustness and the mechanics of pretraining. In 2018, his work addressed the complexities of code-switched language modeling, proposing architectural innovations like dual recurrent neural network units to handle multi-language inputs. This early phase established an interest in how models handle heterogeneous data sources, a theme that would later expand into the study of broader distribution shifts.

By 2021, Garg’s focus shifted toward the problem of out-of-distribution (OOD) performance. A central challenge in machine learning is that models often fail silently when deployed on data that differs from their training set. Garg addressed this by developing methods to predict a model's accuracy on unlabeled target data. This work introduced the Average Thresholded Confidence (ATC) method, which moved beyond simple confidence scores to provide more reliable performance estimates across various shift types, including synthetic corruptions and dataset reproductions. During this period, he also began investigating the Modeling Intra-class Variation in Visual Recognition, exploring how models represent diversity within semantic categories.

In 2022 and 2023, his research deepened its investigation into the pretraining and adaptation phases of the machine learning pipeline. He challenged prevailing assumptions about the necessity of massive external datasets for pretraining, demonstrating that "self-pretraining" on downstream task data could often yield superior results. This period also saw a significant focus on label shift—scenarios where the proportions of different classes change between training and testing. He introduced RLSbench to standardize the evaluation of domain adaptation under "relaxed label shift," a more realistic setting where both class proportions and class-conditional distributions vary simultaneously.

Most recently, Garg has focused on the intersection of foundation models and domain-specific adaptation. This includes work on Enriching Sparse Labels with Detailed Visual Descriptions to improve zero-shot classification and a critical appraisal of "medicalized" LLMs. His current work at Thinking Machines Lab and his previous tenure at Mistral AI involve the development and refinement of large-scale multimodal models, continuing his trajectory of applying robustness principles to the most advanced generative architectures.

Current Directions

Garg’s current research is characterized by three primary pillars: the refinement of test-time adaptation, the critical evaluation of domain-specific foundation models, and the optimization of model selection processes.

In the realm of test-time adaptation, he has worked on methods like Pseudo-label Regularized Optimization (PRO) to prevent the catastrophic collapses often seen when adapting foundation models to unlabeled target domains. This work seeks to make adaptation more stable and less dependent on sensitive hyperparameter choices. Simultaneously, he has participated in research on domain-incremental learning, such as the "Generate to Discriminate" (G2D) method, which utilizes synthetic data to route inputs to specialized expert models without requiring the sharing of sensitive institutional data.

A second major direction is the rigorous assessment of specialized models. Garg has argued that the perceived benefits of adapting general-purpose models to fields like medicine are often overstated due to inconsistent evaluation metrics and optimized prompting. His work suggests that general-purpose foundation models, when properly prompted, frequently match or exceed the performance of their specialized counterparts.

Finally, he is investigating the phenomenon of "post-hoc reversal," where the relative performance of base models changes after they undergo common transformations like ensembling or weight averaging. This research suggests that standard model selection workflows may be premature, and that selecting models based on their post-transformation performance can lead to significant gains in accuracy and robustness.

Representative Work

Leveraging Unlabeled Data to Predict Out-of-Distribution Performance This work addresses the critical need for monitoring model reliability in deployment environments where ground-truth labels are unavailable. Garg and his collaborators proposed Average Thresholded Confidence (ATC), a method that learns a confidence threshold on the source (training) distribution to predict accuracy on the target (test) distribution. By calculating the fraction of unlabeled examples that exceed this threshold, ATC provides a practical and effective estimate of OOD performance. The study demonstrated that ATC consistently outperforms prior methods, such as maximum softmax probability and entropy-based measures, across a wide range of architectures and distribution shifts.

Downstream Datasets Make Surprisingly Good Pretraining Corpora In this study, Garg investigated the relationship between pretraining data and downstream task performance. Contrary to the common practice of pretraining on the largest possible external corpora, the research found that pretraining a model on the same small dataset intended for the final task—referred to as self-pretraining—can often outperform pretraining on massive, diverse datasets. This finding suggests that the benefits of pretraining in modern NLP may stem more from the optimization objective (e.g., masked language modeling) than from the specific "knowledge" contained in external data, providing a more resource-efficient path for domain-specific model development.

RLSBench: A Large-Scale Empirical Study of Domain Adaptation Under Relaxed Label Shift Recognizing the limitations of existing domain adaptation benchmarks, Garg introduced RLSbench to evaluate models under "relaxed label shift" (RLS). While prior work often treated covariate shift and label shift in isolation, RLSbench provides a framework for testing models when both occur together. The study revealed that many popular deep domain adaptation heuristics fail in these complex settings. To address this, Garg proposed a two-step meta-algorithm that combines label shift estimation with standard domain adaptation techniques, significantly improving performance across vision, language, and tabular datasets.

CHiLS: Zero-Shot Image Classification with Hierarchical Label Sets This research introduced CHiLS, a training-free method designed to enhance the zero-shot capabilities of vision-language models like CLIP. The method addresses the "semantic bottleneck" that occurs when models are forced to classify objects using broad or uninformative labels. By using an LLM to decompose a general category (e.g., "bird") into a hierarchy of specific subclasses (e.g., "cardinal," "sparrow"), CHiLS allows the model to perform classification at a finer granularity before aggregating the results back to the original label. This approach yields substantial accuracy improvements without requiring any additional fine-tuning or labeled data.

Medical Adaptation of Large Language and Vision-Language Models: Are We Making Progress? Garg provided a rigorous critique of the trend toward "medicalizing" foundation models. By evaluating a variety of domain-adapted medical LLMs and VLMs against their general-purpose base models, the study found that the specialized models often failed to provide a consistent advantage when the base models were evaluated using optimized prompts. The paper highlights how inconsistent evaluation protocols can create an illusion of progress and emphasizes the importance of statistical rigor and proper baselines when claiming improvements in specialized domains.

Post-Hoc Reversal: Are We Selecting Models Prematurely? This work identifies a systemic issue in deep learning workflows: "post-hoc reversal." Garg and his co-authors observed that the ranking of models based on their initial performance often flips after they are subjected to post-hoc transformations like model souping or ensembling. This implies that the "best" base model is not necessarily the best candidate for further optimization. By advocating for "post-hoc selection"—evaluating and choosing models only after these transformations have been applied—the researchers demonstrated that significant performance gains can be achieved across various benchmarks, including those for LLMs.

Profile updated

See something wrong? Report a mistake