A scratchpad is a dedicated output section, either internal or appended to a model's response, where it performs stepwise inference. This technique, central to Chain-of-Thought (CoT) prompting, forces the model to externalize its intermediate reasoning—such as calculations, logical deductions, or sub-question answers—creating an explicit reasoning trace. The scratchpad's primary function is to improve accuracy and transparency by decomposing complex problems into manageable steps, reducing cognitive load in a single forward pass and making the model's logic auditable.
