Urvashi Khandelwal
· 2 previous affiliations
- Google (United States)Since 2021
- Research Scientist · Since 2021
- Stanford University2015–2021
- PhD student · 2015–2021
Research Overview
Urvashi Khandelwal focuses on the intersection of neural language modeling, retrieval-augmented architectures, and the statistical reliability of natural language processing (NLP) evaluation. Her work is characterized by an investigation into how large-scale models utilize linguistic context and the development of semi-parametric methods that combine traditional neural networks with non-parametric memory. More recently, her research has addressed the challenges of model calibration and the statistical power required for meaningful benchmarking in machine learning.
Research Trajectory
Khandelwal’s early research examined the internal mechanisms of neural language models, specifically focusing on how Recurrent Neural Networks (RNNs) and Long Short-Term Memory (LSTM) architectures process long-range dependencies. In 2018, she conducted foundational ablation studies to determine the effective context window of these models, distinguishing between the high sensitivity models show toward immediate word order and their more "fuzzy" representation of distant history. This period of work established a baseline for understanding the limitations of purely parametric models in retaining and utilizing extensive textual information.
In 2019 and 2020, Khandelwal’s focus shifted toward addressing these limitations through the introduction of retrieval-augmented components. This work proposed a departure from the dominant paradigm of increasing model size to store knowledge. Instead, she pioneered methods for Offloading Parametric Memorization to External Memory, where a pre-trained model is augmented with a $k$-nearest neighbors ($k$NN) retrieval mechanism. By implementing Token Level Probability Interpolation with k Nearest Neighbors, she demonstrated that models could achieve superior performance by "looking up" examples from a datastore at inference time rather than relying solely on weights learned during training. This approach provided a framework for Non-Parametric Memory for Plug and Play Adaptation, allowing models to adapt to new domains or update their knowledge without the need for computationally expensive fine-tuning.
Parallel to her work on model architecture, Khandelwal began investigating the methodological rigor of the NLP field. She contributed to research highlighting that many standard evaluation protocols lack the Statistical Power for Reliable Language Model Evaluation. This line of inquiry explored how small sample sizes in human evaluations and benchmarks like GLUE lead to The Significance Filter and Effect Size Inflation, a phenomenon where reported improvements may be artifacts of noise rather than genuine architectural progress.
In the most recent phase of her work (2022–2024), Khandelwal has expanded into multimodal learning and the nuances of uncertainty quantification. She participated in the development of vision-language models designed to parse structured information from raw pixels, such as web screenshots and user interfaces. Concurrently, she has returned to the theme of reliability, focusing on Localized Calibration for Reliable Neural Network Uncertainty. This research identifies a critical gap in standard calibration techniques: models that appear well-calibrated on average can remain significantly miscalibrated within specific "slices" or subsets of a distribution, posing risks for deployment in high-stakes environments.
Representative Work
Sharp Nearby, Fuzzy Far Away: How Neural Language Models Use Context In this 2018 study, Khandelwal and her collaborators investigated the role of context in LSTM-based language models through systematic ablation. By shuffling, replacing, or dropping prior context words, they quantified the resulting increase in perplexity across standard datasets like Penn Treebank and WikiText-2. The research revealed that while models can utilize approximately 200 tokens of context, there is a sharp functional divide: models are highly sensitive to word order within the most recent 50 tokens but treat the more distant history as a "bag of words," ignoring sequence order. This work provided empirical evidence for the limitations of LSTMs in capturing long-range hierarchical structures.
Generalization through Memorization: Nearest Neighbor Language Models As the lead author of this 2019 paper, Khandelwal introduced the $k$NN-LM, a semi-parametric approach that extends pre-trained neural language models. The model functions by linearly interpolating the output distribution of a standard LM with a distribution derived from a $k$-nearest neighbors search over a datastore of cached hidden states. This method allows the model to access the original training data—or any new text collection—explicitly at test time. The $k$NN-LM achieved a state-of-the-art perplexity of 15.79 on WikiText-103 without additional training, demonstrating that explicit memorization can significantly enhance the generalization capabilities of neural networks.
Nearest Neighbor Machine Translation Following the success of $k$NN-LM, Khandelwal applied the nearest neighbor paradigm to machine translation ($k$NN-MT). This 2020 work introduced a decoder that predicts tokens using a nearest neighbor classifier over a large datastore of examples, using representations from a neural translation model for similarity search. The approach proved highly effective for domain adaptation; by simply swapping the datastore for one containing domain-specific examples, a single base model could be adapted to diverse target domains without retraining. The study showed a 1.5 BLEU improvement on a state-of-the-art German-English model, highlighting the scalability and expressiveness of non-parametric augmentation.
With Little Power Comes Great Responsibility In this 2020 paper, Khandelwal served as the second author on a critical analysis of statistical practices in NLP. The research demonstrated that many common experimental setups are "underpowered," meaning they lack the statistical strength to reliably distinguish between real improvements and random variation. By analyzing benchmarks like GLUE and typical human evaluation protocols, the authors showed that the field often suffers from the "Winner’s Curse," where the selection of significant results from small samples leads to exaggerated effect sizes. The paper argued for more rigorous statistical standards to ensure the replicability of NLP research.
Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understanding Khandelwal participated in the development of Pix2Struct, a vision-language model designed for "visually-situated language" understanding. The model is pretrained on the task of parsing web screenshots into simplified HTML, which forces it to learn the relationships between text, layout, and visual hierarchy. Unlike previous approaches that relied on brittle OCR engines or UI-specific metadata, Pix2Struct operates directly on raw pixels. This collaborative work achieved state-of-the-art results across multiple domains, including document analysis and mobile UI navigation, demonstrating the power of unified visual pretraining.
Calibrated on Average, but not Within Each Slice: Few-shot Calibration for All Slices of a Distribution In this 2024 paper, Khandelwal and her colleagues addressed a subtle but critical failure mode in model calibration. They found that while a language model might appear well-calibrated when evaluated on a broad distribution (e.g., a general exam), it often exhibits systematic overconfidence or underconfidence within specific "slices" of that distribution (e.g., math vs. history). This "slice-wise" miscalibration means that average calibration metrics can be misleading. The research proposed methods for few-shot calibration to ensure that confidence estimates remain reliable across all subsets of the data, a necessary step for the safe deployment of models in specialized or high-stakes tasks.
Profile updated
| Paper | Venue | Year |
|---|---|---|
| What Does BERT Look At? An Analysis of BERT's AttentionGitHubclarkkev/ | arXiv | 2019 |
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