Alexander K. Lew
· 2 previous affiliations
- Yale UniversitySince 2025
- Assistant Professor · Since 2025
- Undergrad student · 2011–2015
- PhD student · 2018–2025
Research Overview
Alexander K. Lew focuses on the theoretical foundations and practical implementation of probabilistic programming, differentiable programming, and automated probabilistic reasoning. His trajectory spans the development of core semantics for programmable inference to the design of domain-specific compilers that scale Monte Carlo and variational methods. Most recently, he investigates the application of probabilistic inference techniques to steer and constrain the generation of large language models.
Research Trajectory
Lew’s early work established foundational systems and methods for probabilistic reasoning. In 2019, he contributed to the development of Gen: a general-purpose probabilistic programming system with programmable inference, a system designed to achieve both modeling flexibility and inference efficiency through novel language constructs like the generative function interface. Concurrently, he explored the research direction of Causal Discovery and Inference with Soft Interventions and the area of Breaking Observational Equivalence in Causal Discovery in Bayesian causal inference via probabilistic program synthesis. This work introduced a Bayesian synthesis approach that represents causal models as source code, allowing for the programmatic inference of causal structures from mixed observational and experimental data.
Building on these systems, Lew investigated the theoretical and cognitive dimensions of probabilistic languages in 2020. In Leveraging Unstructured Statistical Knowledge in a Probabilistic Language of Thought, he examined how bottom-up statistical knowledge can be integrated with top-down symbolic reasoning. To ensure the reliability of custom inference algorithms, he introduced a type system and denotational semantics in Trace types and denotational semantics for sound programmable inference in probabilistic languages, ensuring that well-typed inference programs are sound by construction. He also contributed to Transforming Worlds: Automated Involutive MCMC for Open-Universe Probabilistic Models, adapting involutive Markov chain Monte Carlo methods to automate the design of trans-dimensional kernels for open-universe models.
Lew subsequently applied probabilistic programming to large-scale, domain-specific challenges. He developed PClean: Bayesian Data Cleaning at Scale with Domain-Specific Probabilistic Programming, a language that automates Bayesian data cleaning by exploiting the structure of relational databases, contributing to the broader area of Recursive Bayesian Updating for Continual Learning. Addressing the limitations of exact marginal density evaluation in inference algorithms, he introduced a framework for Recursive Monte Carlo and Variational Inference with Auxiliary Variables. This recursive auxiliary-variable inference (RAVI) approach approximates necessary densities using meta-inference, expanding the design space for complex proposals.
In 2023, Lew’s research deepened the mathematical foundations of differentiable and probabilistic programming. He formalized semantics for higher-order programs in ωPAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable Programs. To support gradient-based optimization and advance the area of Correctness of Automatic Differentiation for Non-Differentiable Programs, he developed ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs, an extension to forward-mode automatic differentiation that correctly differentiates expectations in programs with random choices. He also introduced SMCP3: Sequential Monte Carlo with Probabilistic Program Proposals, a method for implementing custom SMC samplers using pairs of Markov proposal kernels specified by probabilistic programs. Concurrently, he began applying these inference techniques to natural language processing, introducing SMC steering in Sequential Monte Carlo Steering of Large Language Models using Probabilistic Programs to precisely control language model outputs.
Lew’s recent trajectory continues to bridge probabilistic programming with database systems and large language models. He explored programmable variational methods in Probabilistic Programming with Programmable Variational Inference and extended these concepts in Probabilistic Programming with Vectorized Programmable Inference. In the database domain, he contributed to GenSQL: A Probabilistic Programming System for Querying Generative Models of Database Tables, integrating probabilistic reasoning with standard SQL operations.
His work on language models expanded significantly during this period. He participated in research on Improving autoformalization via cycle consistency and incremental type-checking using language-model probabilistic programs, addressing the translation of natural-language mathematics into formal languages. He also contributed to Self-Steering Language Models, which empowers models to generate their own task-specific inference programs. Further advancing the control of generative models, he collaborated on Syntactic and Semantic Control of Large Language Models via Sequential Monte Carlo, demonstrating how probabilistic filtering can enforce complex rules on open-source models. This work contributes to research directions such as Reconciling Sub-word Tokenization with Structural Constraints and Exact Sampling with Neural Proposal Distributions.
Current Directions
Recent work investigates the intersection of probabilistic programming and large language models, framing text generation as a formal probabilistic inference problem. The most recent papers in the evidence address techniques for steering language models to adhere to complex syntactic and semantic constraints using sequential Monte Carlo methods, enabling smaller models to perform highly constrained reasoning tasks. Additionally, ongoing research continues to refine the theoretical and practical aspects of programmable inference, exploring vectorized variational methods and integrating generative probabilistic models directly into database querying systems.
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