Shuvendu K Lahiri

Shuvendu K Lahiri

Microsoft (United States) · Microsoft Research Asia (China)
5 previous affiliations
38Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Shuvendu K Lahiri focuses on formal methods, program analysis, and the application of machine learning to reliable software development. His trajectory spans foundational work in static verification and automated test generation to recent innovations integrating large language models with formal correctness guarantees. Currently, he investigates AI-assisted automated proof generation and specification synthesis to bridge the gap between natural language intent and verified code.

Research Trajectory

Lahiri’s early research established foundational techniques in static analysis and program verification. In 2012, his work on Underspecified harnesses and interleaved bugs explored the challenges of verifying concurrent systems with incomplete environmental specifications. Building on the need for more practical verification strategies, he helped introduce Differential assertion checking in 2013. This novel approach shifted the focus from absolute correctness to relative correctness by comparing two versions of a program. By identifying regressions rather than requiring exhaustive proofs from scratch, this method significantly reduced verification costs and suppressed false alarms in evolving software, advancing the area of Automated Generation of Formal Specifications and Proofs and the broader field of Automated Program Synthesis with Formal Correctness Guarantees. He continued to refine static verification techniques with Angelic Verification: Precise Verification Modulo Unknowns (2015), which provided an automated static verifier capable of handling open programs.

As large language models (LLMs) began to demonstrate capabilities in software engineering, Lahiri’s focus expanded to integrate these models with rigorous testing and verification frameworks. In 2022, he and his collaborators developed Interactive Code Generation via Test-Driven User-Intent Formalization. This workflow, implemented as TICODER, utilized LLMs to generate both code and unit tests, asking users to validate simple tests to disambiguate vague natural language prompts and improve code suggestion accuracy. The following year, this intersection of AI and software testing was further explored in CodaMosa: Escaping Coverage Plateaus in Test Generation with Pre-trained Large Language Models (2023), which demonstrated how models like OpenAI's Codex could assist search-based software testing algorithms by providing example test cases when traditional coverage improvements stalled. Parallel to these AI-driven approaches, he maintained a focus on highly scalable traditional static analysis, participating in the development of Resource Leak Checker (RLC#) for C# Code using CodeQL (2023), a tool that successfully identified real-world resource leaks in major C# applications using graph-reachability analysis.

A major theme in Lahiri’s 2023 work was addressing the "intent gap"—the disconnect between informal natural language descriptions and formal program behavior. In Formalizing Natural Language Intent into Program Specifications via Large Language Models, he investigated how LLMs could be used to automatically generate the mathematical assertions required for formal verification, a notoriously difficult task for human developers. Similarly, Towards Generating Functionally Correct Code Edits from Natural Language Issue Descriptions introduced the Defects4J-Nl2fix benchmark to evaluate how well models could fix bugs using only issue descriptions, revealing that generating functionally correct edits remains significantly harder than generating code from scratch.

To make LLM-generated specifications more practical for automated verifiers, Lahiri led the development of iRank in Ranking LLM-Generated Loop Invariants for Program Verification (2023). This contrastive re-ranking framework used neural embeddings to prioritize correct loop invariants, drastically reducing the number of expensive calls to automated verifiers and contributing to the research direction of Automated Loop Invariant Synthesis. He also addressed the tendency of code models to hallucinate invalid syntax through Monitor-Guided Decoding of Code LMs with Static Analysis of Repository Context (2023). By masking out invalid tokens during the decoding process using real-time static analysis, this technique allowed smaller models to generate highly accurate, compilable code, aligning with the broader area of Enforcing Structural Constraints on Language Model Outputs.

In 2024 and 2025, Lahiri’s trajectory moved toward end-to-end automated proof generation and verified code synthesis. He contributed to LLM-Vectorizer: LLM-based Verified Loop Vectorizer (2024), a tool combining a multi-agent LLM feedback loop with formal verification to transform scalar C loops into high-performance vectorized code with mathematical guarantees of correctness, touching upon work in Completeness Thresholds for Bounded Model Checking. His research continued to push the boundaries of specification synthesis with ClassInvGen: Class Invariant Synthesis using Large Language Models (2025), which tackled the complex challenge of generating high-quality class invariants.

Most recently, Lahiri has focused heavily on verifying complex data structures and memory-safe languages. In VeriStruct: AI-assisted Automated Verification of Data-Structure Modules in Verus (2025), he and his co-authors addressed the difficulties LLMs face when moving from simple functions to complex, real-world data structures in formal proof environments. To overcome the lack of training data for AI to learn proof-writing, he participated in the development of Automated Proof Generation for Rust Code via Self-Evolution (2025). This framework, SAFE, synthesizes its own training data by learning from both successes and verifier-rejected failures, advancing the emerging direction of Scaling Formal Reasoning Through Synthetic Data Generation. This focus on Rust verification was further solidified with AutoVerus: Automated Proof Generation for Rust Code (2025), a system achieving high success rates on new benchmark suites. Finally, his work on 3DGen: AI-Assisted Generation of Provably Correct Binary Format Parsers (2025) highlights an ongoing commitment to generating specialized, provably correct software components.

Current Directions

The most recent papers in the evidence indicate a strong focus on AI-assisted formal verification, particularly the integration of large language models with rigorous proof assistants. Recent work investigates automated proof generation for memory-safe languages like Rust, utilizing tools such as Verus to verify complex data-structure modules. A major theme in this current research is overcoming the scarcity of training data for formal proofs by developing self-evolving frameworks that synthesize their own training examples from verifier feedback. Additionally, ongoing efforts address the generation of provably correct code for specialized tasks, such as binary format parsers and loop vectorization, ensuring that AI-generated optimizations and specifications maintain strict mathematical guarantees of correctness.

Profile updated

See something wrong? Report a mistake