potentialpaper

CoTs as Probabilistic Programs: A Programmatic View of Thinking Step-by-Step in Language Models

Kyle Richardson, Yu Feng, Poorva Garg, Junyan Cheng, Guy Van den Broeck, Dan Roth

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Modeling CoT as probabilistic programs as unifying framework for inference and learning.

Abstract. Chain-of-thought (CoT) prompting has 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 \lang{}, 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, \lang{} 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 novel test-time inference strategies and new analysis techniques, offering a promising direction for programming-language-based approaches to language-model reasoning.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:46 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
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.

Final justification

I have read the authors’ response and the ensuing author–reviewer discussion. The response substantially addressed the issues in my initial meta-review. In particular, it clarified that step probabilities have source-dependent meanings rather than representing calibrated truth; formally defined "Factor"; acknowledged and proposed a correction to Proposition 1 distinguishing independent noisy-OR branches from mutually exclusive categorical alternatives; and explained that both Bayesian factorization and LogitPool aggregation are needed to address the length confound. The authors also acknowledged that verbalized priors provide most of the accuracy on the evaluated tasks, while supplying additional evidence that CoT steps improve calibration and enable diagnostic decomposition. They appropriately withdrew the characterization of the accuracy reduction as “small” and reported an updated average gap of 4.3% after correcting a parsing issue.

The reviewers’ post-rebuttal assessments are consistently positive: one reviewer considered the concerns sufficiently addressed and increased the score to 5, another increased the score to 4 while noting partial resolution, and the third retained a positive score of 4, stating that several questions were answered while emphasizing the need for substantial presentation improvements.

Some limitations remain, particularly the exposition and the lack of evidence that the proposed inference rule is an accuracy-optimized alternative to standard CoT. Nevertheless, for a Concept and Feasibility submission, the novel probabilistic-programming formalization and the resulting diagnostic, sensitivity, and trace-reuse capabilities constitute a sufficiently promising contribution. The remaining issues appear addressable through the promised revisions rather than indicating a fundamental technical flaw. I therefore recommend acceptance.

Area Chair 9dET · Meta-reviewOpenReview ↗
Read meta-review
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.

Final justification

I have read the authors’ response and the ensuing author–reviewer discussion. The response substantially addressed the issues in my initial meta-review. In particular, it clarified that step probabilities have source-dependent meanings rather than representing calibrated truth; formally defined "Factor"; acknowledged and proposed a correction to Proposition 1 distinguishing independent noisy-OR branches from mutually exclusive categorical alternatives; and explained that both Bayesian factorization and LogitPool aggregation are needed to address the length confound. The authors also acknowledged that verbalized priors provide most of the accuracy on the evaluated tasks, while supplying additional evidence that CoT steps improve calibration and enable diagnostic decomposition. They appropriately withdrew the characterization of the accuracy reduction as “small” and reported an updated average gap of 4.3% after correcting a parsing issue.

The reviewers’ post-rebuttal assessments are consistently positive: one reviewer considered the concerns sufficiently addressed and increased the score to 5, another increased the score to 4 while noting partial resolution, and the third retained a positive score of 4, stating that several questions were answered while emphasizing the need for substantial presentation improvements.

Some limitations remain, particularly the exposition and the lack of evidence that the proposed inference rule is an accuracy-optimized alternative to standard CoT. Nevertheless, for a Concept and Feasibility submission, the novel probabilistic-programming formalization and the resulting diagnostic, sensitivity, and trace-reuse capabilities constitute a sufficiently promising contribution. The remaining issues appear addressable through the promised revisions rather than indicating a fundamental technical flaw. I therefore recommend acceptance.

Reviewer vnwdOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
1/4
Significance
3/4
Originality
3/4
Contribution type
concept_feasibility
Ethical concerns
NO or VERY MINOR ethics concerns only
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

Final justification

Issues were partially resolved in rebuttal.

Formatting concerns

None

4 comments
Authors · CommentOpenReview ↗

Clarification about paper goals

Paper goals

We introduce COPPER, to our knowledge the first probabilistic programming language whose constructs directly represent and query natural-language CoT steps, their dependencies, and answer outcomes. The motivation is that standard CoT inference generates a reasoning trace alongside a final answer but does not expose a structured computational account of how the individual steps support that prediction. COPPER addresses this limitation by representing steps as stochastic variables, dependencies as program control flow, and answers as return values, enabling us to quantify each step’s contribution and identify fragile or inconsistent reasoning.

Therefore, the primary goal of this paper is to provide an explicit computational representation of chain-of-thought reasoning. We demonstrate the practical value of this representation through two concrete questions discussed in the introduction.

Can we obtain more reasoning from fewer model calls?

The vanilla probabilistic program provides a basic computational representation of CoT, while the Bayesian multi-answer CoT program introduced in Section 4 is our main answer to this question. With one model call, the model generates distinct reasoning chains for competing candidate answers; with another, it provides the answer priors. COPPER converts these outputs into an explicit probabilistic program, allowing us to quantify the effects of the answer priors and individual reasoning steps and to derive a complete distribution over answers. Standard approaches typically require substantially more model calls to perform comparable test-time inference, for example by iteratively expanding and evaluating reasoning paths through search. The Bayesian program obtains this structured information more directly while also addressing the length confound of raw trace likelihood. We do not claim that it is a heavily optimized inference rule or consistently more accurate; its value lies in extracting substantially more structured and analyzable reasoning from far fewer model calls.

And next

Can CoTs be used as reusable reasoning artifacts?

Section 5 provides the answer through a set of substantive analysis enabled by the program representation. Because a CoT is represented as a structured object rather than a disposable text trace, we can perturb, rescore, and query the same reasoning without regenerating it. This supports a unified analysis of prediction robustness (§5.1), cross-model reuse of CoT traces (§5.2), the relationship between verbalized and logit-based evidence (§5.3), and the sensitivity of the final answer to individual reasoning steps (§5.4).

Authors · CommentOpenReview ↗

Question

Q2: Why do you characterize the Accuracy drop as small?

Thank you for raising this concern. We agree and will no longer characterize the reduction as “small.” After correcting the parsing issue, the updated average gap is 4.3%, and we will report this value directly. Our method is not intended primarily as an accuracy-optimized replacement for plain CoT. Instead, it translates the model-generated CoT and answer prior into an explicit probabilistic program, allowing us to measure how the CoT contributes to the final answer and identify whether errors arise from the reasoning, the prior, or their aggregation. The plain-CoT baseline does not support this analysis because it has no explicit, inspectable mechanism linking the stated reasoning to the final answer.

First, part of the previously reported end-to-end gap arose from an implementation-level parsing failure rather than from the Bayesian inference computation, because examples that could not be parsed were counted as failed predictions. We have added a small, Qwen-specific fix to the CoT text parser that handles this model-specific formatting error. With this correction, the mean accuracy of the Bayesian program on Qwen-2.5-7B-Instruct increases to 64.62%, compared with 65.70% for plain CoT. Under the updated results, the Bayesian program performs, on average, 4.3% below plain CoT across the three models, rather than the previously reported 7.1% gap.

To further demonstrate the diagnostic value of the explicit program structure, we analyze cases across all datasets in which plain CoT is correct but the Bayesian program is wrong, using Claude Opus 5 as an LLM judge. Within the program, the prediction is computed solely from the declared answer prior and parsed CoT evidence, making the program-level inference path fully inspectable. We identify two major, non-exhaustive failure modes:

  1. Incorrect elicited evidence: the multi-answer chains provide stronger evidence for an incorrect candidate, causing the program to assign it the highest posterior while revealing that the error originates in the elicited reasoning.
  2. Correct evidence overridden by the prior: the CoT evidence favors the gold answer, but not enough to overcome the prior, leaving the incorrect candidate with a posterior advantage of at most 5% points.
Model #W-R R1: Incorrect elicited evidence. R2: Correct evidence overridden by the prior
GPT-4o 179 83 (46%) 68 (38%)
Qwen-2.5-7B-Instruct 203 42 (21%) 98 (48%)
Llama-3.3-70B-Instruct 246 111 (45%) 73 (30%)

Both categories demonstrate the analytical benefit of the program: we can explicitly identify why each prediction was produced. Such a decomposition is not well-defined for the plain-CoT baseline because it has no explicit aggregation function that can be inspected or intervened upon. The framework provides two further benefits. First, quantifiability: the influence of each parsed step can be measured through its effect on the final answer distribution. Second, controllability: step-level confidences, evidence weights, aggregation parameters, or additional evidence factors can be modified to deterministically adjust how strongly CoT influences the posterior.

Reviewer vnwd · CommentOpenReview ↗

Thank you for your response. I still believe that this paper needs some substantial revision to make it more clear, but I will already raise my score to 4.

Authors · CommentOpenReview ↗

Thank you for your feedback and for increasing your score. If any specific questions, claims or passages remain unclear -- including any points in our response that you feel remain unresolved -- we would be grateful for further details that would help us address them and improve the paper.

Reviewer KbNEOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
concept_feasibility
Ethical concerns
NO or VERY MINOR ethics concerns only
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

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.

Formatting concerns

No concerns about the formatting.

5 comments
Authors · CommentOpenReview ↗

General Comments

Figure 1 explanation, source of LLM likelihood

For clarity: in Fig. 1, the step probabilities in the right probabilistic program – i.e., the highlighted lines 4, 5 and 10 that denote probabilistic choices – are set to the “likelihood” and “confidence” information provided in the CoT reasoning trace annotation on the left. While underspecified – we explain this decision below – in our experiments “likelihood” corresponds to the LLM’s length normalized probability for each step in the CoT (i.e., the text in the box) and “confidence” is a verbalized estimate of each step’s probability provided directly by the LLM. We include both probabilities in the program to illustrate how the program allows for reasoning across these different probabilistic parameterizations (more about this below). We will make this more clear earlier in the text.

As we discuss in our response to a1g5, the reason for underspecifying this is that these probabilities can come from many different sources, the framework itself is agnostic to this decision. If we assign LLM likelihood to the steps, then step probabilities correspond to a model’s length normalized probability of emitting the corresponding text span given the previous steps and the query, a proxy for the support of this step under the LLM’s distribution. This is an interesting parameterization to consider since it corresponds to how CoT is ordinarily scored and structuring this as a program allows us to reason more rigorously about the properties of this semantics and its limitations (as we do formally in Sec. 3.1). We can also assign verbalized scores to parameterize the step probabilities, which then allows us to more rigorously test the robustness of such signals for doing structure probabilistic reasoning (as we do empirically in Sec. 5.3). As shown in Figure 1, we can also annotate programs with multiple probabilities to study CoT robustness and cross-model reasoning (as we do empirically also in Sec. 5.1-.5.2).

More reasoning from fewer model calls

We thank the reviewer, and we believe the concern stems from a mapping between research questions and experiments that we left implicit. The introduction poses two questions and the analyses the reviewer lists belong to Q2 (Can we use CoTs as reusable reasoning artifacts?), not Q1 (Can we get more reasoning from fewer model calls?). Q1 concerns extracting more from fewer calls at inference time. Q2 concerns extracting more at analysis time. We make the mapping explicit below and will add it to the paper.

Q1 is supported by the proposed Bayesian multi-answer CoT program itself (Sec.4). With one model call, the model generates distinct reasoning chains for competing candidate answers; with another, it provides the answer priors. COPPER converts these outputs into an explicit probabilistic program, allowing us to quantify the effects of the answer priors and individual reasoning steps and to derive a complete distribution over answers. Standard approaches typically require substantially more model calls to perform comparable test-time inference, for example by iteratively expanding and evaluating reasoning paths through search. The Bayesian program obtains this structured information more directly while also addressing the length confound of raw trace likelihood. Therefore, the Bayesian program extracts substantially more structured and analyzable reasoning from far fewer model calls.

Generality of PPL approach.

Please refer to the response for Q3.

Authors · CommentOpenReview ↗

Specific clarifications

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?

Yes, ValueError is a primitive in the language, as shown in Fig. 2. In the likelihood programs in Fig. 1 and Table 1(a), it occurs in all program branches where an answer is not returned, hence its probability, under our reachability semantics, corresponds to one minus the probability of an answer being returned or reached. In more simpler semantic terms, you can think of a ValueError in the example programs provided as corresponding to the negation of any CoT trace in that program being valid.

In table 1, why is the observe on line 7 commented out, using #?

This corresponds to the comment on line 146, which notes that via optional observe statements ( # is meant to denote that it can be turned on/off) we can use this program to compute different conditional queries (e.g., the exact likelihood of any individual CoT answer or return value). We will make this more clear.

On line 147, it talks about the special case in gray, and taking the log.

This is an important though subtle point that we will make more clear. Via the k-answer program in Table 1 and the LLM weight parameterization defined in Prop. 1, k=1k=1 can model the likelihood of that CoT trace under the LLM’s distribution. By taking a -log of this quantity, we are observing here that the resulting quantity corresponds exactly to the standard cross-entropy loss. Although our experiments focus on programs for inference rather than training, this equivalence shows that a program reachability query can also define a differentiable learning object, and more broadly that our framework can be leveraged for deriving novel loss functions by changing the structure of the program.

Factor was introduced on page 6S, but why was it not introduced already in Figure 2 on page 3.

We will introduce Factor earlier. The reason for introducing later is that we wanted to motivate this construct from first principles by first deriving the length confound (Prop. 3), which highlights the need for having such aggregation operators. Please see our response to a1g5 for a formal definition of Factor.

Typos

We will fix these, thank you.

Authors · CommentOpenReview ↗

Questions

Q1: Is it not possible to benchmark against Feng et al. (2025)?

A direct comparison with BIRD (Feng et al., 2025) is possible in principle because both methods produce answer distributions, but these COPPER and BIRD model different objects. BIRD constructs a Bayesian network over latent factors inferred from the question and available evidence to estimate an outcome; the model-generated CoT is not part of that focus. COPPER instead takes the generated CoT itself as the object of analysis, representing its individual reasoning steps and dependencies as variables in a probabilistic program. What our Bayesian multi-answer program borrows from Feng et al. is the factorization, estimating how well evidence explains an answer rather than how likely text is to be generated, which we will state more precisely in the related work. Finally, the two frameworks are complementary rather than competing: BIRD-style factor probabilities can be used as alternative probabilities in COPPER.

Q2: 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?

The effect of a model's reasoning capability is not incidental to our results and it is one of the quantities the framework measures directly. As reported in Sec. 5.1, reasoning capability manifests as CoT robustness: comparing Bayesian margins across models, Llama-3.3-70B-Instruct is the most robust, followed by GPT-4o and then Qwen-2.5-7B-Instruct. That is, the partially-reasoning model the reviewer highlights produces chains whose conclusions are the most stable under changes to intermediate steps, while the weaker Qwen-2.5-7B-Instruct produces the most fragile ones. The Bayesian program does not assume any particular level of reasoning capability while it makes such differences measurable.

Q3: 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?

The way programs are structured corresponds to the principles enumerated in Fig. 2(a). Given a CoT trace T=(T1,…,Tm)T = (T_{1}, … , T_{m}) (consisting of a set of steps TjT_{j}) and an answer aa, individual steps correspond to probabilistic Booleans/assignments, step/answer dependencies are controls, answers are return values, answers/chains can (optionally) be unique and correspond to Categoricals, and so on – please see again Fig. 2(a).

Based on these principles, there is a deterministic translation from the raw CoT trace in Fig. 1 and the corresponding program. The program schemata in Fig. 2 correspond to the deterministic translations of different generalizations of single CoT instances into the same kinds of programs. In the Bayesian programs in Fig. 3 the same principles apply, however here the steps condition on the answers – which is dictated by a difference in the underlying prompt that asks models to first generate answers before steps – and step scores can be aggregated into new Bernoulli variables via the Factor construct.

We will clarify this in the final version, especially the role of the prompt, which – to make it clear – affects the program indirectly by influencing the structure of the trace elicited from the LLM.

Reviewer a1g5OpenReview ↗
Rating
5/6
Confidence
2/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
concept_feasibility
Ethical concerns
NO or VERY MINOR ethics concerns only
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.

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.

Formatting concerns

NA

3 comments
Authors · CommentOpenReview ↗

Weaknesses/Limitations.

We thank the reviewer for their helpful comments. We start by addressing the limitations they list.

Step probability meaning

We agree that a high probability of generating a step does not imply the step is true. More generally, the meaning of a step probability depends on the source of that probability and its conditioning context – it is important to emphasize that the framework itself is agnostic to this choice.

For example, the meaning of the step probabilities in the likelihood programs (Table 1) differs slightly from the step probabilities in the Bayesian programs (Figure 3). In the former cases, a step probability is the model’s length normalized probability of emitting the corresponding text span given the previous steps and the query – most closely matching the reviewer’s first interpretation – whereas the steps in the Bayesian programs additionally condition on the answer and therefore measure a step’s compatibility with that answer. In both cases, these step probabilities provide an implicit signal of evidential support under the LLM’s distribution, however they do not provide a calibrated probability that the step is true.

Other parameterizations are possible and have different interpretations. Verbalized confidence is an explicit model assessment whose meaning depends on the elicitation prompt – e.g., they could aim to estimate the other two quantities that the reviewer mentions. The framework can also incorporate externally supplied scores – e.g., those provided by verifiers or process reward models that aim to more directly model reasoning correctness, although these are not the focus of our experiments.

Importantly, we view this agnosticism as a benefit of the framework. It allows us to study the probabilistic semantics already implicit in ordinary CoT generation and inference – including their limitations as we discuss more below – to devise new parameterizations and aggregation constructs that mitigate these limitations, and to derive more complex test-time inference strategies as special cases.

Length confound vs. length bias

We agree that the length confound is closely related to length bias in sequence modeling – both arise because probabilities are multiplied, so raw likelihood tends to decrease as additional factors are introduced. We will make this connection more explicit – e.g., by relating it to recent preference modeling work, which informed some of our own modeling decisions. In our setting, however, the individual step probabilities are already length normalized at the token level and the confound instead arises at the program level when probabilities are multiplied across different numbers of reasoning steps. To our knowledge, Prop. 3 provides a novel exact characterization of this tradeoff between path length and mean step log-likelihood.

Nonetheless, we frame this limitation in terms of CoT because we feel it is fundamental to understanding the limitations of ordinary CoT likelihood semantics and the question we first ask in line 60. While much work on test-time reasoning couples CoT traces with search, external evaluator or other model machinery – often requiring significant inference overhead – we ask instead whether richer program structure alone can make better use of likelihoods produced by the model. Prop. 3 shows that any CoT program whose path probability is obtained by conjoining reasoning steps necessarily inherits the length confound, regardless of how those steps are arranged into branches or dependencies. Hence, any ordinary probabilistic program that composes step probabilities through conjunction will still inherit this problem. This limitation is interesting in its own right – e.g., it allows us to rule out certain prompting strategies as we do in Sec. 3.2 – but also motivates the need for flexible aggregation strategies, as facilitated by our Factor construct.

Benefit of Bayesian multi-answer CoT

First, Bayesian multi-answer CoT program enables multi-answer reasoning without length confound (refer to Q1). Second, it results in more reasoning from fewer model calls (Line 60). With one model call, the model generates distinct reasoning chains for competing candidate answers; with another, it provides the answer priors. We can then convert these outputs into an explicit probabilistic program, allowing us to quantify the effects of the answer priors and individual reasoning steps and to derive a complete distribution over answers. Standard approaches typically require substantially more model calls to perform comparable test-time inference, for example by iteratively expanding and evaluating reasoning paths through search. We do not claim that it is a heavily optimized inference rule or consistently more accurate; its value lies in extracting substantially more structured and analyzable reasoning from far fewer model calls.

Authors · CommentOpenReview ↗

Questions (Part 1)

Q1: The paper should explain whether the length-confound improvement comes from Bayesian factorisation or from length-normalised aggregation via LogitPool.

Addressing the length confound in multi-answer CoT inference requires both the Bayesian factorization and length-normalized aggregation through LogitPool; neither is sufficient alone. For a single CoT, chain length does not affect a comparison across answers because no competing chains are being ranked. The problem arises in the multi-answer setting, where each candidate answer is supported by a different reasoning chain and raw likelihood can favor a shorter chain simply because it contains fewer multiplicative terms. We therefore consider how these per-answer CoT scores should be converted into a meaningful distribution over competing answers.

The vanilla likelihood program in Table 1 has a clear probabilistic interpretation, but it ranks each candidate by the product of the probabilities along its generated chain. Prop. 3 shows that this score is inherently length-confounded, and Section 5.1 further shows that it’s not robust. Simply replacing the product with a length-normalized pooling function would remove the direct length penalty, but the resulting score would no longer be the trace likelihood characterized by Props. 1–2, nor would it estimate candidate-specific evidence, because the traces were not generated conditional on their answers. Its normalization into an answer distribution would therefore be a heuristic design choice rather than an application of a declared probabilistic model.

The Bayesian factorization resolves this issue by separating the answer prior from answer-conditioned evidence, thereby specifying what each score represents and how the scores should be combined. However, using products to aggregate the evidence within this factorization would still penalize longer chains. LogitPool is therefore also necessary to construct evidence scores that are comparable across chains of different lengths. Therefore, the Bayesian factorization provides the probabilistic interpretation and composition rule, while length-normalized aggregation removes the length dependence; the improvement comes from their combination.

Q2: Most of the Bayesian method’s performance comes from verbalised answer priors rather than the full program

On the current knowledge and commonsense QA tasks, the verbalized answer prior provides most of the accuracy, while the parsed CoT evidence contributes primarily to calibration and to how the posterior changes across examples. This finding does not make the full program structure redundant; rather, the explicit factorization into answer priors, step-level evidence, and aggregation is what allows us to isolate and quantify these contributions, including the respective effects of verbalized confidence and token-level logits in Table 4.

The dominance of the prior is also consistent with the task setting. Plain CoT improves over direct answering by only 6.2% on average (Table 7), suggesting that much of the predictive signal is already present before explicit reasoning. Prior work similarly shows that final answers can be partly independent of the stated rationale [1,2]. Our contribution is therefore not the claim that CoT evidence always dominates the prior, but a framework that makes their respective effects explicit and measures when, and by how much, the generated reasoning changes the final prediction.

Given this, we conduct an additional analysis to show that the steps help calibration of the answer distribution. We compare the prior and the posterior as probability estimates on the same paired examples: multiplying in the step evidence improves expected calibration error for all three models. As a selective-prediction signal, we compute the AUROC of the margin for distinguishing correct from incorrect predictions; equivalently, this is the probability that a randomly chosen correct prediction has a larger margin than a randomly chosen incorrect prediction. The posterior margin yields a higher AUROC for distinguishing correct from incorrect predictions than the prior margin for all three models: GPT-4o (0.656→0.6990.656 \to 0.699), Llama-3.3 (0.713→0.7390.713 \to 0.739), Qwen-2.5 (0.665→0.6700.665 \to 0.670).

Because our program is explicit, quantifiable, and flexible, it can also be used to give the CoT greater influence over the final answer. The current instantiation only directly translates the model-generated CoT and answer prior into an explicit probabilistic computation while exposing tunable components such as step-level confidences, evidence weights, aggregation parameters, and additional evidence factors. Systematically studying how to strengthen or extend the CoT’s influence is an important direction for future work.

[1] "Measuring Faithfulness in Chain-of-Thought Reasoning”. [2] “Can Aha Moments Be Fake? Identifying True and Decorative Thinking Steps in Chain-of-Thought”

Authors · CommentOpenReview ↗

Questions (Part 2)

Q3: What is the precise semantics of Factor?

Formally, Factor is parameterized by any differentiable (or subdifferentiable) function f:[0,1]n→[0,1]f: [0, 1]^{n} \to [0,1] and defines a program variable that is true with probability f(p1,…,pn)f(p_{1}, …, p_{n}). Intuitively, it allows for arbitrary aggregations of step probabilities beyond those provided by sum-product compositions in the underlying probabilistic program and semantics (e.g., functions such as LogitPool used in Figure 3).

Q4: Proposition 1 appears to compute a noisy-OR over independent branch guards, while LLM traces are mutually exclusive alternatives. Can you expand on this?

Thank you for this observation. The important special case we intended to emphasize in Prop 1 is k=1k=1, which recovers ordinary CoT likelihood. The k-answer program in Table 1 was our attempt to generalize this construction, however we now see that recovering the total mass stated in the proposition requires a categorical branch-selection variable like the one used in the k-chain program. With independent branch guards we are – as you suggested – currently computing a noisy-OR: the probability that at least one of kk independence trace attempts succeeds. This is different from the probability mass of mutually exclusive traces under a single LLM draw, but we believe it is still a meaningful generalization of the k=1k=1 case.

We will correct the proposition and state both results in the final version, i.e., that independent branches yield noisy-OR reachability, and that a categorical branch choice yields total trace mass. Importantly, both formulations retain the multiplicative likelihood within each trace, so the length confound result remains unchanged.

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

Missing a submission?

Loading the discussion…