Question presented to candidate: "What is chain-of-thought prompting? Why does asking a model to reason step by step improve some answers, when does it not help at all, and how do you use it in a production system, especially now that reasoning models exist?"
What a strong answer should cover:
- Definition: prompting the model to write intermediate reasoning before the final answer, either with worked examples that show reasoning (few-shot CoT, Wei et al. 2022) or a trigger phrase such as "Let's think step by step" (zero-shot CoT, Kojima et al. 2022)
- Why it works: a model does a fixed amount of computation per generated token; writing intermediate results into its own context lets it spend more serial computation on a problem (more test-time compute)
- When it helps and when it does not: large gains on multi-step maths, logic and symbolic tasks; little or no gain on lookups, simple classification and most knowledge questions (Sprague et al. 2024), while always costing output tokens and latency
- Production patterns: reason first, answer last; parse the final answer from a fixed marker or a structured field placed after the reasoning; self-consistency (sample several chains, majority vote) for extra accuracy at extra cost
- Caveats: the written reasoning is not guaranteed to be the real cause of the answer (unfaithful CoT), and reasoning models already think internally, so explicit "think step by step" instructions are usually unnecessary for them
Code / implementation expected: Optional โ answer extraction from a reasoning trace, or a comparison of direct vs CoT accuracy and token cost on a small set.