Chain-of-thought is the discovery that a language model solves hard multi-step problems far more reliably when it writes out its intermediate reasoning steps before committing to a final answer, rather than producing a final answer directly without any visible intermediate reasoning. This reliability improvement from explicit intermediate reasoning is thought to work partly because writing out intermediate steps gives the model additional computation, spread across more output tokens, to work with before it has to commit to the final answer, rather than having to solve the entire multi-step problem within the limited computation a single, direct final-answer token allows.