A (simplified) typical workflow in machine learning might be:

  1. Train $m$ models on a training set.
  2. Validate the $m$ models on a validation set to yield the best model with parameters $\theta$.
  3. Retrain the best model on all available data (training and validation) which should yield a model with different parameters $\theta'$.

Isn't it possible that parameters $\theta'$ do not perform so well on unseen real-world data? How do you know that the parameters $\theta'$ (from training on all available data) are better than the parameters $\theta$ (from training on just the training set)?

  • 1
    $\begingroup$ It's possible, yes, but it is not expected. If your data is a random sample from some population, then retraining on more data is guaranteed to keep the bias of your model the same, but decrease the variance. Since the expected test error is a sum of bias and variance, this decreases the expected test error. $\endgroup$ – Matthew Drury Mar 4 at 23:49

This practice derives from an understanding of the bias-variance tradeoff.

Recall that the expected test error can be broken down into three components.

$$ E \left[ \text{Test Error} \right] = \text{Bias}^2 + \text{Variance} + \text{Irreducible Error}$$

Assuming your data sets are independent random samples from a population, retraining on more data has the following effects:

  • The bias, being a function of only the structure of your model, stays the same.
  • The variance decreases (or at worst, stays the same).
  • The irreducible error stays the same.

All together, the expected test error is decreased with this procedure. It's possible that the error on any given test data set increases, since it's only the expectation that is guaranteed to decrease, but since we don't know anything about the particular population samples we are going to expose to the model in production, lowering the expected test error is a good strategy.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.