Himanshu Jain
· 3 previous affiliations
- Google (United States)Since 2019
- Researcher · Since 2019
- Indian Institute of Technology Delhi2014–2019
- PhD student · 2014–2019
- Undergrad student · 2007–2012
Research Overview
Himanshu Jain focuses on extreme multi-label classification, efficient transformer architectures, and the optimization of large language model (LLM) inference. His work addresses the computational and statistical challenges of scaling machine learning models to massive label spaces and high-sequence-length inputs. Recently, his research has transitioned toward improving the efficiency and reliability of generative models through techniques such as speculative decoding and constrained generation, as well as enhancing information retrieval systems via learnable late interactions.
Research Trajectory
The early phase of Jain’s research, spanning approximately 2015 to 2019, was primarily concerned with Extreme Multi-label Classification (XMC). This field involves tagging data points with the most relevant subset of labels from sets containing millions of possibilities, a common problem in recommendation systems and web search. In 2015, Jain collaborated on the development of the SLEEC classifier, which challenged the then-dominant assumption that label matrices must be low-rank. By employing sparse local embeddings, this work demonstrated that preserving local distances in the label space could lead to significantly higher prediction accuracy and better scalability than global low-rank projections.
Following this, Jain led investigations into the loss functions used in XMC. Recognizing that standard metrics like Hamming loss were inadequate for datasets with missing ground-truth labels, he developed propensity-scored loss functions. This approach provided unbiased estimates of true loss even when labels were incomplete, a frequent occurrence in real-world tagging and ranking applications. By 2019, his work on XMC culminated in the development of Slice, a scalable linear classifier capable of training on 100 million labels, specifically optimized for related search queries in large-scale web environments.
Around 2020, Jain’s focus expanded to address the challenges of Deep Learning for Long-Tailed Distributions. In many practical applications, a few majority classes dominate the training data, leading models to perform poorly on the "tail" of rare classes. Jain contributed to the development of Logit Adjustment for Calibrating Biased Classifiers, a statistically grounded technique that shifts a model's logits based on class frequencies. This method proved more effective than traditional re-sampling or re-weighting strategies for minimizing balanced error across all classes.
In the subsequent years, Jain shifted toward the efficiency of transformer-based architectures. He participated in research identifying redundancies in the attention mechanisms of Transformers, leading to the proposal of Reuse Transformers, which recycle attention scores across adjacent layers to reduce computational overhead. This interest in efficiency extended to Large Language Models (LLMs). In 2023, he contributed to the development of SpecTr, a framework for fast speculative decoding. By using optimal transport to select from multiple "draft" token candidates in parallel, this work achieved significant wall-clock speedups in LLM inference without compromising the quality of the generated text.
Most recently, Jain has focused on the intersection of information retrieval and constrained generative modeling. His 2024 work on document ranking introduced learnable late interactions to bridge the gap between high-quality but slow cross-encoders and fast but lower-quality dual-encoders. In 2025, he co-developed algorithms for Distribution Preserving Constrained Decoding for Language Models. This research addresses the inefficiencies and biases inherent in standard grammar-constrained decoding, providing a method that is both computationally efficient on modern hardware and mathematically unbiased.
Representative Work
In Sparse Local Embeddings for Extreme Multi-label Classification, Jain and his collaborators addressed the limitations of low-rank embedding methods in XMC. They proposed SLEEC, which learns a family of local distance-preserving embeddings. This approach allowed the model to capture non-linear label correlations that global low-rank methods typically miss, resulting in improved performance on large-scale datasets where the low-rank assumption is often violated.
Jain’s first-author work, Extreme Multi-label Loss Functions for Recommendation, Tagging, Ranking & Other Missing Label Applications, introduced a principled framework for handling missing labels in extreme classification. By developing propensity-scored versions of precision and nDCG, the research provided a way to train and evaluate models that is robust to the incompleteness of ground-truth data. This was a critical advancement for deploying XMC models in recommendation systems where only a fraction of relevant items are typically labeled.
The scalability of XMC was further pushed in Slice: Scalable Linear Extreme Classifiers Trained on 100 Million Labels for Related Searches. As the first author, Jain detailed a system designed to handle the immense scale of web-search applications. Slice utilized efficient data structures and linear modeling to maintain tractability even as the label space reached the hundreds of millions, demonstrating the practical viability of XMC for industrial-scale related-search tasks.
Jain contributed to the research presented in Long-tail learning via logit adjustment, which tackled the problem of class imbalance in deep learning. The paper introduced a simple yet mathematically rigorous additive adjustment to the logits during training or post-hoc. This technique ensures that the model's decision boundaries are adjusted to account for the prior distribution of classes, effectively improving the accuracy of rare "tail" classes without sacrificing performance on "head" classes.
In the domain of information retrieval, Jain led the research on Efficient Document Ranking with Learnable Late Interactions. This work examined the approximation power of lightweight scorers used in late-interaction models like ColBERT. By introducing learnable components into the late-interaction stage, the proposed model achieved a more favorable trade-off between the high latency of cross-encoders and the efficiency of dual-encoders, improving the state-of-the-art in scalable document ranking.
His recent work on LLM constraints, Efficient and Asymptotically Unbiased Constrained Decoding for Large Language Models, co-developed a novel algorithm called DISC. This research identified that existing prefix-tree-based methods for constrained decoding are often inefficient on GPUs and can introduce unintended statistical biases into the model's output. DISC utilizes parallel prefix-verification and dynamic importance sampling to ensure that the generated text strictly follows the desired constraints (such as JSON formatting or safety filters) while remaining an unbiased sample from the model's original distribution.
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