acceptodds
Published as a conference paper at NeurIPS 2026

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

Abstract

Chain-of-thought (CoT) prompting and related strategies that elicit intermediate reasoning traces have fundamentally changed how language models are used, evaluated, and developed. CoT now touches many areas of contemporary research beyond prompting, from advanced test-time inference and model tuning to interpretability, yet much of this work treats CoT traces in task-specific ways, without a shared formal account of what they are or how they compose and support inference. We argue that probabilistic programs — ordinary programs extended with stochastic choices and probabilistic conditioning — provide a natural framework for modeling CoT reasoning. To demonstrate this, we derive a small discrete probabilistic programming language for CoT in which reasoning steps are stochastic choices, branches encode dependencies, trace likelihoods score executions, and answers are return values. Even with a minimal reachability-based semantics, this language enables a first-principles analysis of trace likelihood, exposing why likelihood alone can be a misleading model of reasoning. Motivated by this limitation, we add differentiable operators for composing scores and feedback over CoT traces. The resulting framework links several uses of CoT — scoring, evidence aggregation, feedback propagation, model tuning, and step-level sensitivity analysis — within a single probabilistic program. Through case studies, we show how this approach yields new analysis techniques and test-time inference strategies, offering a promising direction for programming-language-based approaches to language-model reasoning.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_vnwdOpenReview ↗
Rating
4
Clarity
1
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper introduces and evaluates COPPER, a new probabilistic programming language for LLMs to use in CoT scenarios.

Strengths and weaknesses

Strengths

The methodology is clearly novel and the results are significant. Formalizing and interpreting CoT is an important problem.

Weaknesses

I found this paper very hard to understand. The abstract, while clear about the methodology, does not discuss which problem is actually solved here or what the goal of the paper is. I recommend some substantial editing there. The paper discusses a number of possible benefits (e.g. section 3.1), but needs to more clearly define its main goal.

Accuracy drops with the author's method. The authors characterize this as "trading a small amount of accuracy" but it seems like a substantial drop.

I understand that this is a Concept and Feasibility submission, but showing a more concrete use-case and some clearer experimental results would still be good.

I am happy to raise my score if my concerns are addressed. I do believe this paper is important, but some editing should be done to make it accessible.

Questions

Please describe the goals of this paper in clear terms.

Why do you characterize the Accuracy drop as small?

Limitations

Yes

Paper formatting concerns

None

Final justification

Issues were partially resolved in rebuttal.

Reviewer_KbNEOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

A question in this work is whether there is a general framework that can help unify different areas within chain-of-thought (CoT) research. A key idea in the work is that CoT traces can be modeled using a class of probabilistic programs. The paper discusses and evaluates two questions: (i) whether it is possible to get more reasoning when making fewer model calls, and (ii) whether it is possible to reuse a reasoning artifact based on CoT? Specifically, the paper presents a new language called COPPER, which includes core constructs for CoT reasoning using probabilistic programming. This includes steps as probabilistic booleans, dependencies as control, tests as asserts, and counterfactuals as observes. Finally, the authors discuss and evaluate how the Bayesian approach to CoT (using PPLs) is stronger than classic likelihood-based CoT reasoning.

Strengths and weaknesses

Strengths:

The paper discusses a very interesting approach of putting chain-of-thought reasoning within a Bayesian framework. The suggested approach can clearly have an impact, and the connection of using a discrete PPL as the fundamental layer of inference seems to be novel.

Parts of the paper are quite clear and easy to understand, whereas other parts are less clear. For instance, the examples, as in Figure 1 and Table 1, are very useful, although the semantics of technical details can be explained more in depth. See other comments below.

Weaknesses:

There is a bit of a disconnect between the language described in Figure 1, and the latter parts of the paper. In particular, the notion of factor is not mentioned in the beginning, and some constructs are not used in the examples. For instance, it looks like "observe" is used in comments (e.g., line 7 in table 1) but not in the actual program.

There are several good research questions in the introduction, including the question of whether we can get more reasoning from fewer model calls. But, the evaluation focuses on robustness analysis, cross-model analysis, and verbalization-logit correlation analysis, which are not directly related to fewer reasoning calls. If there is a clear connection, it is important to make it more explicit.

What is not clear is how general the PPL approach is and how useful different compositions and program structures are in inference problems. The PPL examples shown in the paper are quite simple, and it would therefore be very useful to further show more complicated programs, using a mode control structure.

The paper has been submitted to the category "Concept and Feasibility Reviewing Guidelines," which has higher bars according to the evaluation criteria for Significance and Originality. The paper introduces clear ideas with high potential but does not articulate the originality and significance needed to achieve the highest scores.

Some other comments:

From a pedagogical point of view, it would be good to explain more clearly when Figure 1 is introduced, how likelihood is calculated in this context, and also the meaning of confidence. Later in the paper, it is briefly explained that the likelihood comes from the LLM. It would be valuable to explain that already when Figure 1 is introduced, and why this is a good idea.

Please explain a bit more about how line 17 in Figure 1 can compute the probability of reasoning failure. Is "ValueError" a built-in construct that gives this?

Line 50 talks about line 7 in Figure 1, but is that correct? I.e., that it is a comment? Do you mean line 18? In general, please explain in more detail what the semantics of the PPL constructs mean. Moreover, it looks like the lines are not exactly correct for Table 1 (e.g., trace likelihood on line 142). Maybe there is an alignment problem with the numbers.

In table 1, why is the observe on line 7 commented out, using #? In the text description, it sounds like it is part of the program, and not a comment.

On line 147, it talks about the special case in gray, and taking the log. But, looking at the program in Table 7, which does not contain a log, but an if condition, it is unclear what is meant by this sentence.

There are a number of typos in the paper. For instance, the first sentence in the abstract uses the incorrect plural form. Some references are duplicated, e.g., Geva et al. 2021 has two reference items that look identical. These typos and errors are, of course, easy (but important) to fix in the final version.

Factor was introduced on page 6S, but why was it not introduced already in Figure 2 on page 3, as all other programming language constructs? Also, can you clarify the semantics of factor, as introduced on lines 213-219? Is it similar to weight or factor constructs in many other PPL, i.e., that the observe statement can be seen as a syntactic sugar of factor (or weight)? Or is it different?

Questions

Question: Is it not possible to benchmark against Feng et al. (2025)? Also, can you, in the related work, explain more in detail how your work differs?

Question: A model used in the experiments includes Llama-3.3-70B-Instruct, which has some level of reasoning, although it may not be classified as a strong reasoning model. How is it affecting the results of using the Bayesian CoT approach on such models, compared to models that have even less reasoning capabilities?

Question: Are always the PPL programs structured in the manner as in Table 1, or can the programs that are generated look very differently depending on the prompt? If the latter, can you explain more details about this?

Limitations

Yes, shortly in Appendix A

Paper formatting concerns

No concerns about the formatting.

Final justification

I adjusted the scoring of originality because of the change in paper category. Given all the discussions, I decided to keep my positive score. See also my last comments in the discussion.

Reviewer_a1g5OpenReview ↗
Rating
5
Clarity
3
Confidence
2
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper proposes COPPER, a small discrete probabilistic programming language for representing Chain-of-Thought traces as structured programs. Each reasoning step is modelled as a stochastic Boolean variable, dependencies become control flow, errors become exceptions, answers become return values, and queries about answers/failures/steps become probabilistic reachability queries solved by weighted model counting. The paper then argues that this representation can unify CoT scoring, multi-answer inference, robustness analysis, cross-model trace reuse, verbal-confidence analysis, and step sensitivity.

Strengths and weaknesses

Strengths

  • CoTs are currently used as explanations, training data, and verifier inputs. The paper treats CoT as a reusable reasoning artefact that can be probed and differentiated through, rather than as text that is more often discarded.
  • The paper ensures the proposed probabilistic programming language naturally maps onto the CoT structure.
  • The reachability/WMC semantics offer a clean meaning to answer probability, failure probability, and step sensitivity, rather than using heuristics to score the traces, which is the case today.

Weaknessses

  • It isn't clear what the step probability actually means. If a model assigns high probability to generating a sentence, that does not mean the sentence is true. Does it represent:
    • probability the model emits that text span;
    • probability that the proposition expressed by the step is true
    • probability that the step is useful/supportive for the answer.
  • The length-confound analysis is useful, but the underlying issue is closely related to the well-known length bias and length normalisation in sequence modelling. It will be useful if the authors can highlight how it is different from length bias, or whether it is an understanding of length bias in the context of CoT probabilistic-program analysis
  • The framework offers a valuable diagnostic tool, but the current results do not demonstrate whether Bayesian multi-answer CoT is a better inference method.
Questions
  • The paper should explain whether the length-confound improvement comes from Bayesian factorisation or from length-normalised aggregation via LogitPool.
  • It appears that most of the Bayesian method’s performance comes from verbalised answer priors rather than the full program structure. Can you clarify?
  • What is the precise semantics of Factor?
  • Proposition 1 appears to compute a noisy-OR over independent branch guards, while LLM traces are mutually exclusive alternatives. Can you expand on this?
Limitations

The authors honestly flag the fragility of parsing natural-language reasoning into programs, but several questions remain unanswered (refer to previous sections), and clarifying those should strengthen the paper.

Paper formatting concerns

NA

Final justification

I appreciate the detailed response from the authors. It does clarify some of the key questions I had regarding the paper. I will raise the scores. That said, I would also appreciate it if the authors could incorporate these into the paper, as I feel that, in the current form, it's hard to understand a few important details that are key to the paper.

Comments on the paper

1 comment
Meta-review

The paper proposes COPPER, a discrete probabilistic programming framework that represents CoT steps as stochastic choices, dependencies as control flow, failures as exceptions, and answers as return values. It uses probabilistic reachability and differentiable scoring operators to support trace scoring, evidence aggregation, feedback propagation, model tuning, and sensitivity analysis.

The reviewers agree that the central idea is novel, potentially impactful, and well suited to the paper's Concept and Feasibility designation. In particular, the work offers a principled and reusable formalization of CoT rather than treating reasoning traces only as unstructured text. The connection between CoT reasoning and probabilistic programming, as well as the proposed semantics for answer probabilities, failures, and step sensitivity, are notable strengths.

The main concerns are currently insufficient clarity and validation. The semantics of step probabilities, factor, observe, and the relationship between trace likelihood and truth or usefulness are not adequately specified. The paper also does not clearly distinguish its length-confound analysis from standard length bias, and it remains uncertain whether the reported inference behavior arises from the full program structure, verbalized answer priors, or LogitPool-style normalization. Finally, the experimental evidence does not yet clearly establish the usefulness of the proposed Bayesian inference method, and one reviewer questions whether the reported accuracy reduction is appropriately characterized as small.

The author response should prioritize the following:

  1. Precisely define the semantics of step probabilities, factor, observe, conditioning, and failure queries, and resolve the apparent inconsistencies between the language definition, figures, tables, and examples.
  2. Explain whether Proposition 1's independence assumptions and noisy-OR interpretation are appropriate for mutually exclusive CoT alternatives.
  3. Disentangle the effects of program structure, verbalized answer priors, Bayesian factorization, and length-normalized aggregation. Clarify how the identified length confound differs from known sequence-length bias.
  4. Clearly state the paper's primary goal and provide a careful accounting of the accuracy trade-off and the concrete benefit obtained in exchange.
  5. Clarify how varied or complex COPPER programs can be in practice and how the presented analyses connect to the motivating claim of obtaining more reasoning from fewer model calls.

Extensive new experiments are not required during rebuttal. However, focused existing or lightweight analyses that isolate the source of the reported gains would materially strengthen the case. A precise and convincing response to these questions would support acceptance; failure to resolve the semantic ambiguities and uncertainty about the empirical contribution might negatively impact my assessment.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.