liveBook · Manning

Inference-time compute scaling

As explained in Introduction to Generative AI, Second Edition

Inference-time scaling is increasing computation or deliberation during inference to improve a model's response quality.

Inference-time compute scaling increases a model’s deliberation during inference rather than changing its pretrained parameters. It aims to improve responses by giving reasoning models more opportunity to work through difficult questions. section 2.0 section 2.14

Chain-of-thought prompting provides an intuitive example: asking a model to break a problem into steps, even with “Let’s think step-by-step,” can improve accuracy in some reasoning settings. These gains are not guaranteed across tasks. section 2.14

Inference-time scaling is closely related to several ways of eliciting more capable responses:

  • Use zero-shot or few-shot prompts to shape the model’s behavior without retraining it. section 2.14
  • Provide detailed instructions or request confidence estimates, which can improve responses in certain settings. section 2.14
  • Treat apparent capability gains cautiously: emergent abilities can be unpredictable and do not always follow simple scaling patterns. section 2.0 section 2.14

Step-by-step prompting

For a challenging reasoning problem, instructing a language model to “think step-by-step” can produce a more accurate answer than an equivalent prompt without that instruction, although the effect depends on the setting. section 2.14

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Explains the idea through chain-of-thought prompting but does not detail computational budgets, algorithms, or implementation.
Examples
Uses “Let’s think step-by-step,” detailed instructions, confidence requests, and zero-shot or few-shot prompts as examples.
What it assumes
Starts from natural-language interaction with language models and introduces zero-shot and few-shot prompting before relating them to scaling.
What you can do after
Apply it via prompting by requesting stepwise reasoning, while recognizing that improvements vary across tasks and settings.
How it connects
Connects chain-of-thought prompting with zero-shot learning, few-shot learning, emergent abilities, and post-training techniques.

Also explained in

Compare how 4 books explain inference-time compute scaling →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Introduction to Generative AI, Second Edition. The section links point to the parts of the book it draws on.