Rahul Sharma

Microsoft (United States)
2 previous affiliations
84Machine learning papers tracked by Lacuna

2 other authors named Rahul Sharma: Rahul Sharma (4K Labs · 7 papers), Rahul Sharma (German Research Center for AI · 1 paper)

Is this you?

Research Overview

Rahul Sharma focuses on the intersection of formal verification, programming languages, and secure machine learning. His work addresses the challenges of ensuring correctness, performance, and privacy in complex computational systems, ranging from low-level assembly code to large-scale neural networks. Currently a Principal Researcher at Microsoft, his research trajectory has evolved from data-driven program analysis and stochastic optimization to the development of compilers for privacy-preserving machine learning and the evaluation of reasoning capabilities in large language models.

Research Trajectory

During his doctoral studies at Stanford University (2010–2016), Sharma’s research centered on formal methods and program verification. He developed techniques for equivalence checking and invariant generation that moved away from purely symbolic methods toward data-driven approaches. This period was characterized by the use of test runs and statistical learning to infer program properties, which were then formally verified using SMT solvers. A significant contribution of this era was the application of learning theory—specifically the concept of bias-variance tradeoffs—to understand the limitations of precision in program abstractions. He also participated in the development of stochastic optimization techniques, using Markov Chain Monte Carlo (MCMC) sampling to explore the space of code sequences for high-performance computing.

Upon joining Microsoft in 2016, Sharma shifted his focus toward the deployment of machine learning (ML) in constrained and privacy-sensitive environments. He addressed the "floating-point paradox" in IoT devices, where high-level ML models require floating-point arithmetic that low-power hardware cannot efficiently support. This led to the development of domain-specific languages and compilers that translate ML inference algorithms into optimized fixed-point code.

His work subsequently expanded into Efficient Neural Inference over Encrypted Data, focusing on Secure Multi-party Computation (MPC). He led efforts to bridge the gap between standard ML frameworks like TensorFlow and secure computation protocols, enabling "push-button" conversion of inference code into privacy-preserving protocols. This research area evolved from semi-honest security models to more robust frameworks addressing Securing Collaborative Learning Against Malicious Participants, ensuring that privacy is maintained even when participants deviate from the protocol. More recently, his work has addressed Communication Efficient Protocols for Private Machine Learning Inference, particularly for complex architectures like Recurrent Neural Networks (RNNs) that require specialized protocols for non-linear math functions.

Since 2023, Sharma has increasingly focused on the intersection of formal methods and generative AI. This includes using Large Language Models (LLMs) to assist in traditional verification tasks, such as generating inductive loop invariants, and developing symbolic frameworks to rigorously evaluate whether LLMs are performing genuine reasoning or merely statistical recall.

Representative Work

Data-driven equivalence checking (2013) presents a sound algorithm for checking the equivalence of two loops, specifically targeting x86 assembly. As the lead author, Sharma introduced a method that infers simulation relations from test data and subsequently validates them using SMT solvers. This work provided a practical alternative to purely symbolic equivalence checkers, which often struggle with the complexity of low-level code.

Bias-variance tradeoffs in program analysis (2014) applies fundamental concepts from learning theory to the field of program verification. Sharma argues that increasing the precision of an abstract domain does not always yield better analysis results, a phenomenon he explains through the lens of the bias-variance tradeoff. By computing the VC dimension for various abstractions, the paper provides a theoretical framework for selecting the appropriate level of precision for inferring program invariants.

Stochastic program optimization (2016) details a method for optimizing short sequences of assembly code by treating the problem as a search task. As a primary contributor, Sharma helped develop a system that uses MCMC sampling to navigate the space of possible code transformations, guided by a cost function that balances performance gains with correctness. The approach demonstrated the ability to produce code sequences that match or exceed the performance of expert-tuned kernels.

Compiling KB-sized machine learning models to tiny IoT devices (2019) addresses the hardware limitations of IoT devices. Serving as the senior author, Sharma oversaw the development of SeeDot, a domain-specific language and compiler. SeeDot automates the conversion of floating-point ML models into fixed-point code, significantly reducing the energy and computational overhead of running real-time analytics on devices that lack native floating-point support.

CrypTFlow: Secure TensorFlow Inference (2020) represents a major effort in privacy-preserving machine learning. As the senior author, Sharma led the development of a system that compiles TensorFlow inference code into secure MPC protocols. The system includes components for semi-honest 3-party computation and a novel technique, Aramis, which leverages hardware integrity guarantees to achieve security against malicious adversaries, providing a scalable path for secure Machine Learning as a Service (MLaaS).

Re-Imagine: Symbolic Benchmark Synthesis for Reasoning Evaluation (2025) reflects Sharma's recent participation in the evaluation of LLM reasoning. The work introduces a framework to distinguish between statistical association and true causal or counterfactual reasoning in language models. By synthesizing symbolic benchmark variations, the research provides a methodology for testing the robustness of LLM reasoning beyond the patterns present in their training data.

Profile updated

See something wrong? Report a mistake