| id | inference-generation-reasoning | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| title | Inference, generation, and reasoning | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| order | 6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| discoveryCycle | true | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| checkpoints |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| objectives |
|
The words inference, generation, and reasoning describe related but different activities.
Inference means using a model with its current parameters to produce a prediction or output. Ordinary inference does not update those parameters. In logic, inference can mean drawing a conclusion; in this course, the unqualified term normally means running a trained model.
Generation means constructing content through one or more inference steps. A language model can score a next token, the product can select it, and the loop can repeat to construct text.
Reasoning means using intermediate relationships or steps to reach an answer. In an AI product, problem-solving behaviour may involve model inference, repeated model calls, instructions, search, code execution, a calculator, or other tools.
Consider the question What is 17 × 24?:
- The product calls the language model: model inference.
- The model proposes using a calculator: generated output.
- The product runs the calculator: product tool work.
- The product supplies
408to the model: a second inference input. - The model generates the final explanation: repeated inference and generation.
The full path demonstrates structured problem-solving behaviour. It is not all computation inside one model call.
Predict: Which steps above belong to model inference, and which belong to the surrounding product?
:::explorable{src="../explorables/reasoning-path/index.ts" title="Inspect model and product responsibilities in a reasoning path" height="470" id="reasoning-path"} Choose a system activity and inspect whether it runs the model, constructs content, performs product tool work, or supplies evidence that can be checked. :::
A model can produce fluent step-by-step text containing a false assumption or arithmetic error. That text is generated output. It is not guaranteed to be a complete or faithful transcript of private internal computation, and fluency is not proof of correctness. Check results against the problem, tool evidence, tests, or other appropriate sources.
- Inference runs a model with its current parameters.
- Generation constructs content through one or more inference steps.
- Reasoning describes a problem-solving process or behaviour and may span model and product work.
- A generated explanation can help inspection, but it is not proof of correctness.