Three ways to spend inference compute

← Back to Blog & Articles

At inference time a system can spend more compute in three broad ways.

They are not exclusive, and real systems mix them.

A longer chain. The model thinks for more steps in a single trace. The cost grows with the length of the trace, and, as the companion book noted for agents, the cost of attending over a growing context grows faster than linearly in the naive case.

More samples. The system generates several independent traces and combines them. A simple combination is a majority vote over final answers, called self-consistency when applied to chain-of-thought traces (Wang et al., 2023). A study of repeated sampling reported that the fraction of problems solved by at least one sample kept increasing over several orders of magnitude of sample counts on the tasks it examined (Brown et al., 2024). That is pass@k in the sense of the companion book, and the cautions of the companion book example apply to reading it.

Selection by a verifier. Candidates are scored by a separate model or a program, and the highest scoring one is returned. Early work trained a verifier to rank candidate solutions to grade-school maths problems (Cobbe et al., 2021). A later study compared a verifier trained on whole-solution outcomes with one trained on the correctness of each step, and reported that step-level supervision gave more reliable selection on the problems it studied (Lightman et al., 2024).

Each way has its own cost structure and failure modes, and Chapters 9 to 12 treat them in turn. this article concerns the first, and the measurement principles common to all three.

Continue with the book

Explore the full treatment, worked examples, and exercises in Next-Generation AI, Explained and Evaluated.


Companion article for Next-Generation AI, Explained and Evaluated, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.

Scroll to Top