April 2026
Intermediate
395 pages
13h 22m
English
Ensuring self-consistency involves running a CoT model several times with the same prompt. Ideally, different paths are sampled. All results are analyzed, and the most popular answer is selected. Figure 4.5 shows the process of a self-consistency CoT.
Figure 4.5 Self-Consistency CoT
A user prompt triggers several independent model runs based on CoT. The different results are analyzed in a voting step, and the most consistent answer is selected as the final response.
This approach is the LLM equivalent to ensemble learning in machine learning (ML). Ensemble learning trains several “weak” algorithms, ...
Read now
Unlock full access