liveBook · Manning

Optimization

As explained in The Art of AI Product Development

Optimization is the systematic adjustment of model, data, or algorithm choices to improve an objective measure of performance.

Optimization is the iterative adjustment of a language-model setup until it meets acceptance criteria and continues delivering value as users, data, and expectations change. The sequence is flexible: a low-stakes consumer application may need fewer cycles than a medical application. section 5.4

A practical optimization loop combines:

  • Detailed error analysis that identifies weaknesses and guides incremental improvements. section 5.4.5
  • Representative, current custom data, including corrected examples from past failures, few-shot examples, retrieval databases, or fine-tuning data. section 5.4.5
  • Selective advanced customization, such as refined prompting, improved retrieval search, or parameter-efficient fine-tuning, rather than adopting every fashionable technique. section 5.4.5
  • Automated monitoring, error tracking, evaluation, and model updates through MLOps or LLMOps to shorten iteration cycles. section 5.4.5

Different stakes, different optimization depth

A consumer application might move toward production after an initial customization round, while an application for medical professionals may require repeated optimization cycles before reaching its performance and ethical standards. User feedback also refines data, experience, and system performance. section 5.4 section 12.3

Figure 5.12 The iterative process of developing with LMs
A diagram of a company

AI-generated content may be incorrect.

Use the lifecycle diagram to trace model selection, customization, and continuing optimization as an iterative process. section 5.4

How The Art of AI Product Development covers it

How deep it goes
Details error analysis, data refinement, customization, and operational automation, but stops short of implementation mechanics.
Examples
Uses consumer and medical applications, correcting examples, RAG databases, few-shot examples, and fine-tuning.
What it assumes
Assumes a deployed language model and acceptance criteria; teaches iteration around changing expectations, data, and failures.
What you can do after
Operate/configure a language-model setup through error analysis, data refinement, evaluation, monitoring, and iterative updates.
How it connects
Connects custom data, few-shot examples, RAG, fine-tuning, DataOps, MLOps, LLMOps, and user feedback.

Also explained in

Compare how 30 books explain optimization →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Art of AI Product Development. The section links point to the parts of the book it draws on.