4.4.8 · D3Alignment, Prompting & RAG

Worked examples — Self-consistency and tree-of-thought

3,840 words17 min readBack to topic

This page drills the two decoding ideas from Self-Consistency and tree-of-thought until no case can surprise you. Before we list situations, we must name the two numbers everything depends on — nothing below uses a symbol you haven't met.


The scenario matrix

Cell Situation class What breaks / what to watch Example
A , odd — the good regime Majority accuracy rises toward 1 Ex 1
B — the bad regime Voting hurts you (accuracy falls) Ex 2
C exactly (degenerate) Voting gives no improvement Ex 3
D Even → possible tie () Tie-break rule needed Ex 4
E Temperature (zero diversity) All chains identical → vote useless Ex 5
F More than two answer options (not just right/wrong) Plurality, not majority, wins Ex 6
G Limiting behaviour Accuracy → 1 (if ) or → 0 (if ) Ex 7
H ToT cost accounting (word problem) Count generate + evaluate calls Ex 8
I ToT prune-and-backtrack (exam twist) Search beats greedy chain Ex 9
J Even and (B×D combined) Ties plus error amplification Ex 10

Every cell A–J is worked below.

Now look at the picture that summarises the whole topic in one glance:

Figure — Self-consistency and tree-of-thought

Cell A — good regime, odd


Cell B — bad regime (): voting HURTS


Cell C — the exact tipping point


Cell D — even and ties (good regime)


Cell E — temperature 0: zero diversity


Cell F — more than two answers (plurality)


Cell G — the limit


Cell H — ToT cost accounting (word problem)


Cell I — prune-and-backtrack exam twist


Cell J — even AND bad regime ()


Cheat-recall

Recall Which regime helps, which hurts?

Voting helps only when single-chain accuracy exceeds ::: one half (); below it, voting amplifies error.

Recall Odd vs even

? Prefer odd because ::: even can produce a tied vote () with no strict majority, forcing a tie-break.

Recall The three buckets for any

? (), (), (); for odd ::: so they reduce to the odd- majority formula.

Recall ToT vs SC in one line?

SC votes over finished chains; ToT ::: generates partial thoughts, evaluates + prunes intermediate states via , and can backtrack.