Thermalizing Stochastic Programs
summary
The gist
The paper "Thermalizing Stochastic Programs" by Mirko Amico, Andraž Jelinčič, Colin Oscar Nancarrow, Leo Tyrpak, David Roberts, Seth Morton, Dalton Sakthivadivel, Ashwin Gopal, and Guillaume
This episode discusses
- Thermalizing Stochastic Programs · Paper Radio
- Scaling Laws for Neural Language Models
- A Framework for Stochastic Differentiable Programming
- A Blueprint for Equilibrium-Based Differentiable Continuous-Variable Thermodynamic Computing · Paper Radio
- Thermodynamic Computing
- PASS: An Asynchronous Probabilistic Processor for Next Generation Intelligence
- Quantum measurements and the Abelian Stabilizer Problem
- Score-Based Generative Modeling through Stochastic Differential Equations
- Elucidating the Design Space of Diffusion-Based Generative Models
- A Data-driven Market Simulator for Small Data Environments
The paper
Thermalizing Stochastic Programs · Read on arXiv
Mirko Amico, Andraž Jelinčič, Colin Oscar Nancarrow, Leo Tyrpak, David Roberts, Seth Morton, Dalton Sakthivadivel, Ashwin Gopal, Guillaume Verdon
Extropic Corporation · CUNY Graduate Center
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: Next we'll be talking about the paper "Thermalizing Stochastic Programs".
Jane: The paper was written by Mirko Amico, Andraž Jelinčič, Colin Oscar Nancarrow, Leo Tyrpak, David Roberts et al. from Extropic Corporation and CUNY Graduate Center.
Tom: Stay tuned as we take you through the paper and discuss its implications.
Title: Tom: Welcome back to the show, everyone. Today we're diving into a paper that's got a title that sounds like it belongs in a physics lab, but honestly, it's about something way cooler. It's called "Thermalizing Stochastic Programs." Jane, what's your first take on that title?
Jane: Tom, I love it. It sounds intimidating, but when you break it down, it's actually about teaching computers to use the natural randomness of the physical world to do calculations. Instead of a traditional chip that does math step-by-step, this paper is about using the jiggling of atoms, basically, to run programs.
Tom: Right! And that's the "thermalizing" part. You're literally using heat and thermal noise to make the computer work. The authors are from Extropic Corporation, which is a company that's all about this kind of thermodynamic computing. They're trying to build hardware that's incredibly energy-efficient by using physics itself as the calculator.
Jane: And "stochastic programs" just means programs that have randomness built in. Think of it like a weather forecast that doesn't just say "sunny," but says "there's a seventy percent chance of sun." These are the kinds of programs that are super useful for things like modeling financial markets or simulating complex ecosystems.
Tom: Exactly. And the big problem they're solving is that we have these amazing, energy-hungry AI models, but they're consuming massive amounts of power. This paper is proposing a way to run those kinds of models on hardware that could be a thousand times more efficient.
Jane: A thousand times. That's not a small number. That's the kind of leap that could make AI accessible everywhere, not just in giant data centers.
Tom: So, the core idea here is that they're taking a regular program, which is like a recipe with a bunch of steps, and they're translating it into a language that this new type of hardware can understand. The hardware's native language is energy and equilibrium.
Jane: Right, and the paper gives us a whole toolkit for doing that translation. It's not just a one-off trick; it's a framework. They call it "variational compilation," which is a fancy way of saying they're training the hardware to mimic each step of the original program.
Tom: And that's what we're going to dig into. How do you take a step-by-step recipe and turn it into a physical system that just relaxes into the right answer? Stick around, because this is where it gets really clever.
Paper discussion segment 2: Jane: So, Tom, we've set the stage. The paper is "Thermalizing Stochastic Programs," and it's all about this compilation process. But what does that actually look like in practice? How do they make the leap from a software program to a physical chip?
Tom: Great question. The secret sauce is what they call a "thermodynamic kernel." Imagine you have a grid of tiny magnetic switches, which they call p-bits. Each one can be on or off, like a bit in a normal computer. But instead of setting them with a clock, you let them randomly flip based on the temperature and the connections between them.
Jane: So it's like a bunch of dice that are all connected to each other. The connections determine the odds of each die landing on a certain side.
Tom: That's a perfect analogy. Now, if you hold some of those dice in a fixed position—that's your input—and let the others tumble around, they'll eventually settle into a pattern that represents the output. That whole process, from input to output, is the thermodynamic kernel. It's a single, physical operation that does a calculation.
Jane: And the paper's big move is to show that you can take any step in a complex program and replace it with one of these kernels. You just have to train the connections between the p-bits so that the kernel gives the right output distribution for a given input.
Tom: Right. And they call that training process "variational compilation." It's like teaching the hardware to speak the language of your program. They even have a way to measure how much error you're introducing with each kernel, and they show that the errors can add up as you chain these kernels together.
Jane: Which is the classic problem with any kind of approximation. If you're off by a little at each step, by the end of a long program, you could be way off. But the paper has a solution for that too.
Tom: They do. They introduce a few different techniques. One is called "context matching," where you retrain a kernel based on the kinds of inputs it's actually going to see when it's running inside the bigger program. It's like practicing for a test with the actual questions you'll get, not just generic ones.
Jane: And then there's a second stage of training they call "trajectory-level REINFORCE." This is where they look at the entire output of the program, not just the individual steps, and they adjust all the kernels together to make the final result more accurate.
Tom: Exactly. It's a two-stage process. First, you get each kernel roughly right on its own. Then, you fine-tune the whole orchestra together to make the symphony sound perfect. And they show this works on a bunch of different examples, from a simple random walk to a model of a whole financial market.
Paper discussion segment 3: Jane: We've talked about the mechanics, Tom, but the demonstrations in "Thermalizing Stochastic Programs" are really where you see the power of this. They didn't just test it on toy problems. They went for some pretty wild stuff.
Tom: They really did. My favorite is the market simulator. They took fourteen years of real financial data—stocks, bonds, commodities, all of it—and they trained a thermodynamic program to generate its own fake market history. The goal wasn't to predict the next day's price, which is basically impossible, but to reproduce the *statistical fingerprints* of the real market.
Jane: Like the fact that calm days tend to cluster together, and turbulent days cluster together. And the fact that when the market crashes, everything crashes together. Those are the "stylized facts" of finance, and their simulator was able to reproduce them.
Tom: And they even showed that their model was better at this than a standard single energy-based model. They used a clever setup where they had two kernels working together, one to make a rough draft of the day's market move and another to refine it. That two-step process was key.
Jane: But it wasn't just about finance. They also showed they could use this to sample from a physical system that the hardware couldn't natively represent. They had a model with three-body interactions, which is like a party where three people have to agree at the same time, and their hardware only supports two-body interactions, which is like a dance between two people.
Tom: Right, and they did it by compiling the *process* of sampling that system, not the system itself. They built a program that performs the Gibbs sampling algorithm, which is a way to explore a distribution step-by-step, and they compiled that program to the hardware. It's a meta-trick, a program that runs another program.
Jane: And the results were impressive. They were able to get very close to the exact answer, even with the hardware's limitations. The error stayed small and didn't blow up over time, which is a huge deal for a long-running simulation.
Tom: And let's not forget the Gaussian stochastic circuit. They used this to do something called "Bayesian experimental design." Imagine you're trying to map out an unknown field, like the temperature in a room, but you can only take measurements one point at a time. Their program figured out the best place to measure next, based on what it already knew, and it did it almost as well as a perfect, super-expensive calculation.
Jane: So it's not just about generating data, it's about making smart decisions. This framework is a general-purpose tool for running any kind of probabilistic program on this incredibly efficient hardware.
Conclusion: Tom: Well, Jane, we've covered a lot of ground on "Thermalizing Stochastic Programs." We started with the basic idea of using thermal noise to compute, and we ended with a program that can design its own experiments. It's a pretty remarkable journey.
Jane: It is. And I think the biggest takeaway is that this isn't just a theoretical paper. They built a software library called `thermalizers` that does all this compilation automatically. You write your program in one language, and it spits out the code to run on the thermodynamic hardware.
Tom: Which means the path from research to real-world application is much shorter. This could be the foundation for a whole new generation of energy-efficient AI.
Jane: Absolutely. And while the hardware itself isn't in every laptop yet, this paper gives us the software blueprint for how to use it when it is. It's a major step toward making powerful AI not just smarter, but also sustainable.
Tom: So, from all of us here, that was "Thermalizing Stochastic Programs." A big thank you to the authors for sharing this work. We're going to take a quick break, and then we'll be back to discuss the next paper on our list.
Jane: See you in a bit, everyone.
More episodes
- 2610.10768-Strategic Investment Decision Making for Value Creation in Energy Transition: A Reinforcement Learning Approach
- 2610.10858-RFChipAgent: Multi-Agentic AI Flow for Analog/RF Chip Design
- 2610.10613-Temporal transformer CAN encoder with federated lightweight heads for anomaly detection
- 2610.10616-When Routing Reveals Membership: Privacy Leakage from MoE Router Telemetry
- 2610.10655-Nullify: Null-Space Activation Steering for Training-Free LLM Unlearning
- 2610.11031-Language Modeling is Monotone Compression
- 2610.01253-Context-Aware Error Mitigation Orchestration for Hybrid Quantum Reinforcement Learning on NISQ Systems
- 2604.24201-CMGL: Confidence-guided Multi-omics Graph Learning for Cancer Subtype Classification
- 2609.34069-Towards Certificate-Driven Software Porting: A Self-Improving Agentic Harness for Scientific Program Optimization
- 2312.01221-Enabling Quantum Natural Language Processing for Hindi Language