Nihal Jain
· 1 previous affiliation
- Columbia UniversitySince 2025
- PhD student · Since 2025
Research Overview
Nihal Jain focuses on the reliability, efficiency, and adaptability of large language models, particularly in the context of software engineering and code generation. His work spans representation learning, multimodal model interpretability, and the mitigation of hallucinations in automated systems. Currently, he investigates constrained decoding strategies and the evaluation of language models against rapidly evolving software libraries and APIs.
Research Trajectory
Nihal Jain’s early research explored cross-modal representations and visual search. In 2021, he contributed to the development of generative adversarial networks for producing color profiles from text phrases, focusing on compositional learning for unseen attribute-object pairs in Generating Compositional Color Representations from Text. This work included a novel dataset curation pipeline utilizing graph propagation techniques. He subsequently advanced self-supervised learning methods for visual search engines, designing retrieval algorithms to combine similarities across multiple axes, such as style and color, in Self-supervised Multi-view Disentanglement for Expansion of Visual Collections. Concurrently, he participated in efforts to demystify black-box architectures, contributing to MultiViz: Towards Visualizing and Understanding Multimodal Models. This work scaffolded interpretability into distinct stages, supporting broader research in the areas of interpretable dynamics of multimodal fusion mechanisms and decomposing perception and reasoning in multimodal models.
In 2023, Jain’s focus shifted significantly toward the foundational mechanics of large language models, specifically addressing the anisotropy problem where hidden representations collapse into a narrow vector space cone. He introduced a novel framework to improve representation uniformity and discrimination at both the sequence and token levels in ContraGen: Effective Contrastive Learning For Causal Language Model. He expanded on this dual-level framework in ContraCLM: Contrastive Learning For Causal Language Model, demonstrating that pulling semantically similar representations together while pushing dissimilar ones apart yields substantial improvements in semantic similarity and code search tasks. This research contributed to several broader areas, including the isotropization of embedding spaces via contrastive learning, representation anisotropy and the cone effect, and token-level contrastive learning for granular representation alignment, while also advancing the field of scaling code intelligence across programming paradigms.
Building on his work with code representations, Jain began addressing the practical challenges of deploying language models for software engineering. He collaborated on CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completion, a benchmark designed to evaluate models in realistic, multi-file contexts. This benchmark supported ongoing research in repository-level evaluation of large language models for code and repository-level reasoning for large-scale software engineering. It also intersected with the research direction of Repository-Level Code Intelligence for Large Language Models and the area of Temporal Isolation for Contamination-Free Language Model Evaluation.
Continuing his focus on code generation reliability, Jain investigated the prevalence of model hallucinations when interacting with software APIs. He developed CloudAPIBench to measure these occurrences, revealing that models struggle significantly with low-frequency APIs, and demonstrated that documentation-augmented generation could mitigate these errors in On Mitigating Code LLM Hallucinations with API Documentation.
Most recently, in 2025, Jain has contributed to methods for improving the precision and adaptability of language models. He participated in the development of Approximately Aligned Decoding, a decoding strategy adapting backtracking algorithms from speculative decoding to enforce complex constraints efficiently, advancing the research area of constrained decoding for structured and lexical generation. Additionally, he collaborated on LibEvolutionEval: A Benchmark and Study for Version-Specific Code Generation, which evaluates how well models handle the moving target of rapidly evolving software libraries. This work highlighted the utility of retrieval-augmented generation for providing version-correct documentation, contributing to the areas of execution-based verification of generated code and grounding code generation in technical API documentation.
Current Directions
Recent work investigates the reliability and adaptability of language models in dynamic, real-world programming environments. The most recent papers in the evidence address the challenge of version-specific code generation, exploring how models can be grounded in technical API documentation to handle rapidly evolving software libraries. This includes evaluating the efficacy of retrieval-augmented generation to mitigate hallucinations when interacting with low-frequency or newly updated APIs. Additionally, current research explores constrained decoding strategies that allow models to follow complex structural and lexical constraints efficiently, balancing output quality with computational cost.
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