Sairam Vaidya
· 6 previous affiliations
- Amazon (United States)Since 2026
- Applied Scientist Intern · Since 2026
- University of California San DiegoSince 2024
- Graduate Student Researcher · Since 2025
- MS student · 2024–2026
- Teaching Assistant · 2025
- Technology Associate · 2023
- PSG College of Technology2019–2023
- Undergrad student · 2019–2023
- Software Engineer · 2022
- PredictRAM DeFi2022
- Data Analyst · 2022
Research Overview
Sairam Vaidya focuses on the development of principled sampling methods for large language models (LLMs), with a particular emphasis on enforcing syntactic and semantic constraints without compromising the underlying probability distributions of the models. His work addresses the tension between strict rule-following—such as adhering to code syntax or chemical grammars—and the need for diverse, unbiased output generation. By leveraging frameworks from Markov Chain Monte Carlo (MCMC) and adaptive rejection sampling, Vaidya contributes to the reliability of LLMs in structured domains like software fuzzing and formal verification.
Research Trajectory
Vaidya’s research trajectory is defined by a transition from theoretical frameworks for constrained decoding to the implementation of efficient, adaptive algorithms for real-world applications. In 2025, his work established a foundational perspective on constrained sampling by framing it as an MCMC problem. This approach was motivated by the observation that traditional constrained decoding methods often act as aggressive filters that distort the model's logic and reduce the diversity of generated samples. By treating the problem through the lens of MCMC, Vaidya and his collaborators demonstrated that it is possible to maintain the integrity of the language model's distribution while ensuring that outputs satisfy complex constraints. This work showed immediate practical utility in software engineering, specifically improving the discovery of diverse code paths during automated software testing.
Following this, in 2026, Vaidya’s focus shifted toward the efficiency and scalability of these sampling methods. Recognizing that MCMC approaches can be computationally intensive, he contributed to the development of Constrained Adaptive Rejection Sampling (CARS). This line of research introduced a method for "learning" the constraint space dynamically. By using trie-based data structures to record and prune invalid generation paths, this work achieved the speed required for practical deployment while maintaining the mathematical "truthfulness" of the sampling process. This evolution reflects a move toward balancing theoretical rigor with the performance demands of modern machine learning pipelines.
Current Directions
Vaidya’s current work continues to explore the boundaries of constrained generation, specifically focusing on the preservation of distributional diversity. A recurring theme in his recent research is the critique of standard constrained decoding, which often forces models into a narrow subset of valid but repetitive outputs. His work on adaptive rejection sampling seeks to mitigate this "distributional distortion," ensuring that when a model is used for tasks like program fuzzing, it explores the full range of valid possibilities rather than converging on a few predictable patterns.
The application of these methods to non-natural language domains remains a central component of his research. By applying CARS and MCMC-based sampling to domains with rigid formal grammars, such as chemical formulas and programming languages, Vaidya addresses the challenges of using LLMs in high-stakes scientific and engineering contexts where "hallucinations" or syntax errors are unacceptable.
Representative Work
In Constrained Sampling for Language Models Should Be Easy: An MCMC Perspective, Vaidya contributed to a new framework that re-evaluates how LLMs follow strict rules. As a second author, he participated in the development of an MCMC-based approach that treats constrained decoding as a sampling problem rather than a simple filtering task. The research demonstrated that this perspective prevents the "breaking" of the model's underlying logic, leading to a 17% improvement in finding unique code paths during software fuzzing tests. This work highlights the importance of diversity in generated samples for effective vulnerability discovery.
The development of the CARS algorithm is detailed in Constrained Adaptive Rejection Sampling (and its related iteration Constrained Adaptive Rejection Sampling). In these papers, Vaidya served as a second author, contributing to a method that allows LLMs to generate outputs following strict rules—such as chemical formulas or code syntax—without sacrificing the speed of generation or the unbiased nature of the samples. The core innovation involves starting with unconstrained sampling and adaptively ruling out continuations that violate constraints by recording them in a trie. This approach ensures that the resulting samples are both valid and representative of the original model distribution, providing a principled alternative to standard decoding heuristics that often distort model behavior.
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