← Latest papers
🤖 machine learning

A Probabilistic Framework for LLM-Based Model Discovery

This paper introduces ModelSMC, a probabilistic framework that recasts LLM-based model discovery as sequential Monte Carlo inference to unify model proposal, refinement, and selection, thereby enabling the discovery of interpretable mechanistic models from observational data.

Original authors: Stefan Wahl, Raphaela Schenk, Ali Farnoud, Jakob H. Macke, Daniel Gedon

Published 2026-06-25
📖 5 min read🧠 Deep dive

Original authors: Stefan Wahl, Raphaela Schenk, Ali Farnoud, Jakob H. Macke, Daniel Gedon

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a detective trying to figure out how a mysterious machine works. You can't see inside the machine, but you can watch what comes out when you feed it different inputs. Your goal is to write a set of instructions (a computer program) that perfectly mimics the machine's behavior.

This paper introduces a new way for Artificial Intelligence (specifically Large Language Models, or LLMs) to act as that detective. They call their method ModelSMC.

Here is the breakdown of how it works, using simple analogies:

The Problem: The "Trial and Error" Trap

Usually, when scientists use AI to discover these machine rules, they treat the AI like a very smart intern. They give the intern a task, the intern writes a program, they test it, and if it's wrong, they say, "Try again, but make it faster." The intern tries again.

The problem is that this process is often messy. It's like the intern is just guessing based on gut feeling. There is no clear mathematical rulebook telling the intern why one guess is better than another, or how to know if they are getting closer to the truth. It's hard to tell if the intern is actually learning or just getting lucky.

The Solution: The "Survival of the Fittest" Team

The authors, Stefan Wahl and his team, decided to stop treating the AI like a single intern and start treating it like a team of explorers on a survival mission. They call this framework ModelSMC.

Think of it like a game of "Hot and Cold," but with a twist:

  1. The Team (Particles): Instead of one AI trying to solve the puzzle, ModelSMC starts with a whole team of 50 different AI "explorers." Each explorer has written a slightly different set of instructions (a computer program) for how the machine might work.
  2. The Test (Likelihood): The team tests all 50 programs against real-world data. Some programs are terrible (they predict the wrong output). Some are okay. A few are really good.
  3. The Cull (Resampling): This is the magic part. The system looks at the scores.
    • The explorers with the worst scores are sent home (their programs are discarded).
    • The explorers with the best scores get to stay, but they get to "clone" themselves. Now, instead of 50 different ideas, you might have 40 copies of the best idea and 10 copies of the second-best idea.
  4. The Evolution (Propagation): The surviving explorers don't just copy-paste their code. They ask the AI (the LLM) to "tweak" their instructions based on what they learned.
    • Analogy: Imagine a chef who made a great soup. Instead of just serving the same soup again, they ask the AI, "How can I make this even better? Maybe add a pinch of salt or change the heat?" The AI suggests a specific change, and the chef updates the recipe.
  5. Repeat: This cycle happens over and over. The team gets smaller and smaller, but the remaining members get smarter and smarter, converging on the single best set of instructions that explains the data.

Why is this better than the old way?

1. It's a Map, not just a Guess
Old methods were like wandering in the dark with a flashlight. ModelSMC is like having a GPS. Because the authors framed this as a "probabilistic inference" problem, they can mathematically prove that if they keep running this process long enough, the team will find the correct answer (or the best possible answer given the data). It's not just magic; it's math.

2. It Handles Uncertainty
Sometimes, the data isn't clear enough to say, "This is definitely the answer."

  • Old way: The AI might pick one answer and say, "This is it!" even if it's unsure.
  • ModelSMC: The system keeps a "cloud" of possibilities. It might say, "We are 80% sure the answer involves adding a 'slow potassium current' to the machine, and 20% sure it involves a 'sodium current'." This gives scientists a much richer picture of what is actually happening.

Real-World Examples from the Paper

The team tested this on three different "machines":

  • The Kidney (Pharmacology): They tried to figure out how the kidney regulates potassium. The original model was missing a key piece of the puzzle (how a hormone called aldosterone works). ModelSMC didn't just guess; it discovered a specific mathematical formula for that hormone's effect that matched real patient data perfectly.
  • The Neuron (Neuroscience): They looked at how brain cells fire electricity. The standard model (Hodgkin-Huxley) was good, but not perfect. ModelSMC discovered that adding two specific types of ion channels (M-type and HCN) made the model match real brain recordings much better. It didn't just find one fix; it showed that adding an M-type channel was the most likely solution, while other fixes were less likely.
  • Fake Data (SIR Model): They created a fake disease spread model where they knew the answer. ModelSMC successfully found the exact formula they had hidden, proving the system works.

The Bottom Line

The paper argues that we should stop treating AI model discovery as a series of random guesses and start treating it as a scientific search. By using a method called "Sequential Monte Carlo" (which is basically a fancy way of saying "survival of the fittest for computer code"), ModelSMC allows AI to not only find better models but also to tell us how confident it is in those models.

It turns the AI from a "black box" that spits out code into a transparent, mathematically sound partner that helps scientists understand the underlying rules of nature.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →