liveBook · Manning

Validation set

As explained in Building Reliable AI Systems

A held-out subset of data used to assess a model during development without fitting its parameters on that subset.

A validation set, or dev set, is data held out from fine-tuning. Evaluate the model on it during training, but do not use it to fit the model. This helps reveal overfitting: strong performance on training examples that does not carry over to unseen inputs. section 5.3.1

To make the check useful:

  • Set aside about 10–20% of the data, with a distribution that mirrors the training set. section 5.3.1
  • Keep validation examples out of the training set; overlap creates data leakage. section 5.3.1
  • Monitor validation accuracy or loss during training. An OpenAI fine-tuning validation file provides reported metrics; custom training code can compute them. section 5.3.1

A stopping signal

If validation loss starts increasing, consider stopping training: the model is likely overfitting. section 5.3.1

How Building Reliable AI Systems covers it

How deep it goes
Specifies split size, distribution, metrics, stopping signals, and leakage precautions without deriving the metrics.
Examples
Uses a 10–20% split and rising validation loss as concrete planning and monitoring examples.
What it assumes
Assumes prepared fine-tuning data while defining the held-out split and explaining loss in plain language.
What you can do after
Apply it via a validation file in OpenAI’s fine-tuning API or metrics computed in custom training code.
How it connects
Links fine-tuning to overfitting, data leakage, accuracy, and loss.

Also explained in

Compare how 3 books explain validation set →

Related concepts

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