CoTs as Probabilistic Programs: A Programmatic View of Thinking Step-by-Step in Language Models
Kyle Richardson, Yu Feng, Poorva Garg, Junyan Cheng, Dan Roth, Guy Van den Broeck
NeurIPS page · OpenReview · Open on the map
Category: LLM Reasoning, Memory & RAG › Reasoning Trace Memory Systems · Type: new method · Keywords: chain-of-thought reasoning, probabilistic programming, language model inference, trace scoring, feedback propagation
Areas: LLM Reasoning › Reasoning Mechanisms › Chain-of-Thought Reasoning; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Reasoning Trace Analysis
Summary
The paper introduces a probabilistic programming language for chain-of-thought reasoning that models reasoning steps as stochastic choices and dependencies, adds differentiable operators for scoring and feedback, and unifies multiple CoT applications within a single framework.
Explained to a 5-year-old
When a language model thinks, it writes down each step of its reasoning like a short story. The paper says we can think of those steps as choices in a game where each choice can be right or wrong. By using a special kind of programming, we can check if the story makes sense and give feedback. This helps us see why the model made certain choices and how to make it think better. It lets us understand and improve how language models reason.
Explained to a 5-year-old, longer
When a language model is asked a question, it often writes down its thoughts step by step. These written steps are called chain-of-thought, or CoT for short. Different researchers have used CoT in many different ways, like for answering puzzles or solving math problems. Because everyone used it differently, there was no common way to understand how the steps connect. The paper says we can treat those steps like a game where each step is a choice that can be right or wrong. By using a special kind of programming that handles choices and feedback, we can see if the story makes sense. This programming lets us score each story, combine information from many steps, and give feedback to improve future steps. It also helps us see which steps are most important for the final answer. With this new approach, we can analyze why a model reasoned the way it did. It also opens the door to new ways of using the model at test time, like adjusting its reasoning on the fly. The idea is simple: think of reasoning as a series of choices that can be guided and measured. This gives researchers a unified tool to study and improve how language models think.
For a technical reader
The paper introduces a probabilistic programming language that models chain-of-thought reasoning as stochastic choices and dependencies. By adding differentiable operators, the framework can score reasoning traces, aggregate evidence, and propagate feedback without task-specific modifications. This unified approach enables new analysis techniques, such as step-level sensitivity analysis, and supports test-time inference strategies. It provides a common formalism for comparing and improving reasoning across different language model applications.
Problem
Existing work on chain-of-thought reasoning lacks a shared formal account of what CoT traces are and how they compose and support inference, leading to fragmented, task-specific treatments.
Method
We model CoT reasoning as probabilistic programs, defining a discrete probabilistic programming language where reasoning steps are stochastic choices and branches encode dependencies, and we augment it with differentiable operators for composing scores and feedback over traces.
Contributions
We provide a formal probabilistic programming framework for CoT that enables trace likelihood analysis, introduces differentiable operators for feedback composition, and unifies multiple CoT applications within a single language.
Practical relevance
This framework gives a unified foundation for analyzing and improving language model reasoning, enabling new test-time inference and analysis tools.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction