Sign in

Alex Lew

@alexlew.bsky.social
2.5K followers 538 following 41 posts

Theory & practice of probabilistic programming. Current: MIT Probabilistic Computing Project; Fall '25: Incoming Asst. Prof. at Yale CS

PostsRepliesMedia
Reposted by Alex Lew
Tomer Ullman @tomerullman.bsky.social · 22/05/2025
not sure how to get this across to non-academics but here goes, Imagine if you were suddenly told 'we decided not to pay your salary', that's kind of what the grant cuts felt like. Now imagine if you were suddenly told 'we are going to set your dog on fire', that's what this feels like:
1836091
Reposted by Alex Lew
Ben Lipkin @benlipkin.bsky.social · 13/05/2025
Want to use AWRS SMC? Check out the GenLM control library: github.com/genlm/genlm-... GenLM supports not only grammars, but arbitrary programmable constraints from type systems to simulators. If you can write a Python function, you can control your language model!
161
Reposted by Alex Lew
Ben Lipkin @benlipkin.bsky.social · 13/05/2025
Many LM applications may be formulated as text generation conditional on some (Boolean) constraint. Generate a… - Python program that passes a test suite. - PDDL plan that satisfies a goal. - CoT trajectory that yields a positive reward. The list goes on… How can we efficiently satisfy these? 🧵👇
2136
Reposted by Alex Lew
João Loula @joaoloula.bsky.social · 25/04/2025
#ICLR2025 Oral How can we control LMs using diverse signals such as static analyses, test cases, and simulations? In our paper “Syntactic and Semantic Control of Large Language Models via Sequential Monte Carlo” (w/ @benlipkin.bsky.social, @alexlew.bsky.social, @xtimv.bsky.social) we:
176
Alex Lew @alexlew.bsky.social · 10/02/2025
@xtimv.bsky.social and I were just discussing this interesting comment in the DeepSeek paper introducing GRPO: a different way of setting up the KL loss. It's a little hard to reason about what this does to the objective. 1/
Also note that, instead of adding KL penalty in the reward, GRPO regularizes by directly adding the KL divergence between the trained policy and the reference policy to the loss, avoiding complicating the calculation of the advantage.
3509
Alex Lew @alexlew.bsky.social · 08/12/2024
If you're interested in a PhD at the intersection of machine learning and programming languages, consider applying to Yale CS! We're exploring new approaches to building software that draws inferences and makes predictions. See alexlew.net for details & apply at gsas.yale.edu/admissions/ by Dec. 15
Probabilistic and differentiable programming at Yale — fully funded PhD positions starting Fall 2025! Apply by Dec. 15.

Do a PhD at the rich intersection of programming languages and machine learning.
17322
Reposted by Alex Lew
Eugene Vinitsky 🍒 @eugenevinitsky.bsky.social · 23/11/2024
Kind of a broken record here but proceedings.neurips.cc/paper_files/... is totally fascinating in that it postulates two underlying, measurable structures that you can use to assess if RL will be easy or hard in an environment
e introduce the effective horizon, a property of
MDPs that controls how difficult RL is. Our analysis is mo-
tivated by Greedy Over Random Policy (GORP), a simple
Monte Carlo planning algorithm (left) that exhaustively ex-
plores action sequences of length k and then uses m random
rollouts to evaluate each leaf node. The effective horizon
combines both k and m into a single measure. We prove
sample complexity bounds based on the effective horizon that
correlate closely with the real performance of PPO, a deep
RL algorithm, on our BRIDGE dataset of 155 deterministic
MDPs (right).
815029
Alex Lew @alexlew.bsky.social · 23/11/2024
The New Yorker used to have human narrators do pretty great audio versions of selected articles. But then they quietly switched to generic, lifeless AI (with no indication until you click "Listen"). Occasionally they'll still have a human reader, like Sedaris here, and the contrast is insane
281
Reposted by Alex Lew
Evan Peck @peck.phd · 20/11/2024
Trying something new: A 🧵 on a topic I find many students struggle with: "why do their 📊 look more professional than my 📊?" It's *lots* of tiny decisions that aren't the defaults in many libraries, so let's break down 1 simple graph by @jburnmurdoch.bsky.social 🔗 www.ft.com/content/73a1...
921577458
Reposted by Alex Lew
xuan (ɕɥɛn / sh-yen) @xuanalogue.bsky.social · 21/11/2024
mixtures of circuit approximations of algorithms, I tell you! kernel methods in the space of (short, propositional) programs!! why memorize and interpolate answers when you can memorize and interpolate answer-producing procedures??
2275
Alex Lew @alexlew.bsky.social · 21/11/2024
Surprisal of title beginning with 'O'? 3.22 Surprisal of 'o' following 'Treatment '? 0.11 Surprisal that title includes surprisal of each title character? Priceless [...I did not know titles could do this]
Screenshot of the title of the paper "On the Proper Treatment of Tokenization in Psycholinguistics." Over each letter, the authors have plotted the surprisal of the letter (-log p(this letter | context)).
2102
Alex Lew @alexlew.bsky.social · 19/11/2024
This is a very cool integration of LLMs + Bayesian methods. LLMs serve as *likelihoods*: how likely would the human be to have issued this (English) command, given a particular (symbolic) plan? No generation, just scoring :) A Bayesian agent can then resolve ambiguity in really sensible ways
Examples of the CLIPS agent from Zhi-Xuan, Ying et al. 2024 resolving ambiguity in human instructions.
27217
Alex Lew @alexlew.bsky.social · 18/11/2024
It's interesting just how recent this shift was. Autodiff existed but hadn't been adopted by the ML community. Justin Domke had a blog post in 2009 lamenting that so many papers claimed "an efficient algorithm for gradients" as a key technical contribution justindomke.wordpress.com/2009/02/17/a...
justindomke.wordpress.com
Automatic Differentiation: The most criminally underused tool in the potential machine learning toolbox?
Update: (November 2015) In the almost seven years since writing this, there has been an explosion of great tools for automatic differentiation and a corresponding upsurge in its use. Thus, happily,…
3425
Alex Lew @alexlew.bsky.social · 18/11/2024
Hi Bluesky! My claim to fame is the development of the Alexander Hamiltonian Monte Carlo algorithm. Younger researchers may not realize due to Moore's Law (Lin-Manuel Miranda becomes roughly half as cool every two years), but back when this was published in 2021, it was considered mildly topical
Algorithm box from the joke paper "Alexander Hamiltonian Monte Carlo."A proof of the main theorem from the paper, which is that the algorithm "eventually converges to the room where it happens, if the user is willing to wait for it."
2446