Sahil Bhatia

University of California, Berkeley
3 previous affiliations
13Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Sahil Bhatia focuses on program synthesis, formal verification, and the application of machine learning to software compilation. His trajectory spans early work on neural program repair to recent innovations in verified code transpilation for specialized hardware accelerators. Currently, he investigates how large language models can be integrated with formal methods to optimize code for heterogeneous computing environments.

Research Trajectory

Bhatia’s early research addressed automated program repair, particularly in educational contexts where human feedback is scarce. He developed SYNFIX, a system detailed in Automated Correction for Syntax Errors in Programming Assignments using Recurrent Neural Networks, which utilized recurrent neural networks trained on thousands of correct submissions to automatically repair syntax errors in student programs. This work contributed to the broader area of Normalizing Code to Reveal Underlying Structural Logic and intersected with early methods in the direction of Compilation Free Static Analysis with Large Language Models. He subsequently expanded on these techniques with a Neuro-symbolic program corrector for introductory programming assignments, blending neural models with symbolic reasoning to improve automated feedback for novice programmers.

Transitioning toward formal software verification, Bhatia introduced novel techniques for the automated synthesis of inductive invariants. In Oasis: ILP-Guided Synthesis of Loop Invariants, he formulated the complex challenge of invariant synthesis—especially for programs with a large number of variables—as a series of integer linear programming (ILP) problems. The resulting tool demonstrated significant performance improvements on standard verification benchmarks from the Syntax-Guided Synthesis competition.

Building on his expertise in synthesis and verification, Bhatia began exploring verified lifting and code transpilation. He contributed to the development of the METALIFT framework, as described in Building Code Transpilers for Domain-Specific Languages Using Program Synthesis (Experience Paper). By defining domain-specific language (DSL) semantics and search spaces, this framework leverages program synthesis to automatically generate semantically equivalent code transformations, advancing the research direction of Automated Program Synthesis with Formal Correctness Guarantees. He then applied these verified lifting techniques to specialized hardware in Code Transpilation for Hardware Accelerators. By integrating METALIFT with the Gemmini deep neural network accelerator generator, he demonstrated how legacy C++ and Python code could be automatically and provably translated into optimized hardware instructions, contributing to the area of Software Portability for Heterogeneous Scientific Computing.

In recent years, Bhatia has investigated the integration of large language models (LLMs) into compilation and formal verification workflows. He led the development of agile compilers for specialized hardware in LLM-Aided Compilation for Tensor Accelerators, utilizing a two-phase functional translation and cost-model-driven optimization approach to compile complex robotics kernels. He further formalized this intersection in Verified Code Transpilation with LLMs, introducing the LLMLIFT framework. This system uses LLMs to translate general-purpose Python code into highly optimized DSLs, employing an SMT solver as a judge to provide formal proofs of correctness while drastically reducing manual engineering effort. Concurrently, he collaborated on research addressing the limitations of LLMs in niche domains, participating in the study Synthetic Programming Elicitation for Text-to-Code in Very Low-Resource Programming and Formal Languages, which aligns with the broader area of Formal Grammar Constraints for Neural Code Generation.

Continuing his focus on hardware-software co-design, he developed Autocomp: LLM-Driven Code Optimization for Tensor Accelerators. This automated framework optimizes code for tensor accelerators, such as TPUs and systolic arrays, by combining a "plan-then-implement" prompting strategy with real-time hardware performance feedback. This approach bypasses the need for massive training datasets and advances the research direction of Iterative Optimization via Textual Feedback Loops.

Current Directions

The most recent papers in the evidence address the intersection of large language models, formal verification, and hardware acceleration. Current work investigates how iterative, feedback-driven prompting strategies can be used to optimize code for specialized tensor architectures without relying on massive, domain-specific training datasets. A major ongoing theme is the use of neuro-symbolic pipelines—where neural models generate candidate translations or optimizations, and symbolic solvers or real-time hardware feedback provide rigorous verification and performance tuning. This approach aims to bridge the gap between high-level, general-purpose programming languages and the highly specialized, low-level instructions required by modern heterogeneous computing environments.

Profile updated

See something wrong? Report a mistake