Overfitting & Regularization Questions with Answers

8 practice questions on Overfitting & Regularization (AI & Machine Learning) with answers and step-by-step solutions. Try 8 samples below, then practise all 8 free in the AptiNest app.

Sample questions

Question 1Easy

Which of the following generally helps reduce overfitting?

  1. Training for many more epochs
  2. Removing the validation set
  3. Collecting more training data
  4. Adding more parameters to the model

Answer: C. Collecting more training data

Explanation

More (representative) data makes it harder for a model to memorise noise. The other options tend to increase overfitting or hide it.

Step-by-step solution

  1. Overfitting happens when the model memorises a limited sample.
  2. More training data covers more variety, making memorisation harder.
  3. So the model is pushed towards general patterns.

Why the other options are wrong

  • A. Many more epochs usually increases overfitting.
  • B. Removing validation data only hides overfitting.
  • D. More parameters increase capacity to memorise.

Question 2Easy

Early stopping prevents overfitting by:

  1. Using only the first half of the training data
  2. Stopping only once the training loss reaches exactly zero on every example
  3. Stopping training when validation performance stops improving
  4. Stopping training after exactly one epoch

Answer: C. Stopping training when validation performance stops improving

Explanation

Training loss keeps decreasing, but validation loss eventually rises as the model starts to memorise; early stopping keeps the best checkpoint.

Step-by-step solution

  1. Track validation loss after each epoch.
  2. When it stops improving for a set number of epochs (patience), stop.
  3. Keep the weights from the best validation epoch.

Why the other options are wrong

  • A. Early stopping limits epochs, not data.
  • B. Zero training loss usually means overfitting, the opposite of the goal.
  • D. A fixed single epoch ignores validation performance.

Question 3Easy

A model has 99% training accuracy but only 70% test accuracy. This most likely indicates:

  1. A perfectly generalised model
  2. Overfitting
  3. Data that is too easy
  4. Underfitting

Answer: B. Overfitting

Explanation

A large gap between training and test performance means the model memorised training noise instead of general patterns.

Step-by-step solution

  1. Training accuracy is very high (99%).
  2. Test accuracy is much lower (70%).
  3. A large train-test gap means the model memorised training data: overfitting.

Why the other options are wrong

  • A. A generalised model scores similarly on train and test.
  • C. Easy data would give high test accuracy too.
  • D. Underfitting shows poor training accuracy as well.

Tip: Big train-test gap = overfitting.

Question 4Easy

A model performs poorly on both training and test data. This usually indicates:

  1. Data leakage
  2. Underfitting (high bias)
  3. A perfect fit
  4. Overfitting (high variance)

Answer: B. Underfitting (high bias)

Explanation

The model is too simple to capture the underlying pattern. Use a more expressive model or better features.

Step-by-step solution

  1. Poor training performance means the model cannot even fit what it has seen.
  2. Poor test performance follows.
  3. That is underfitting, or high bias: the model is too simple.

Why the other options are wrong

  • A. Leakage makes results look too good, not bad.
  • C. A perfect fit would score well.
  • D. Overfitting gives good training scores and poor test scores.

Question 5Medium

Which regularisation technique can shrink some coefficients exactly to zero, effectively performing feature selection?

  1. L2 (Ridge)
  2. Dropout
  3. L1 (Lasso)
  4. Batch normalisation

Answer: C. L1 (Lasso)

Explanation

The L1 penalty lambda x sum|w| has corners at zero, so optimal solutions are often sparse. L2 shrinks weights smoothly but rarely to exactly zero.

Step-by-step solution

  1. L1 adds lambda x sum of |w| to the loss.
  2. Its penalty has a sharp corner at zero, so the optimum often lands exactly at w = 0.
  3. Zeroed weights drop those features: built-in feature selection.

Why the other options are wrong

  • A. L2 shrinks weights towards zero but rarely makes them exactly zero.
  • B. Dropout disables neurons during training; it does not zero coefficients permanently.
  • D. Batch normalisation rescales activations; it is not a coefficient penalty.

Question 6Medium

What does dropout do during neural network training?

  1. Permanently deletes the layers that contribute least to the model's accuracy
  2. Lowers the learning rate when validation loss rises
  3. Removes training examples with high loss
  4. Randomly disables a fraction of neurons on each training step

Answer: D. Randomly disables a fraction of neurons on each training step

Explanation

Dropout acts like training an ensemble of thinned networks. At inference all neurons are used, with activations scaled appropriately.

Step-by-step solution

  1. During each training step, each neuron is switched off with probability p.
  2. The network cannot rely on any single neuron, so it learns redundant features.
  3. At inference time all neurons are used (with scaling).

Why the other options are wrong

  • A. Dropout is random and temporary, not permanent deletion.
  • B. Lowering the learning rate is a scheduler, not dropout.
  • C. Dropout drops neurons, not training examples.

Question 7Medium

In the bias-variance trade-off, increasing model complexity typically:

  1. Decreases bias and increases variance
  2. Decreases both bias and variance
  3. Increases both bias and variance
  4. Increases bias and decreases variance

Answer: A. Decreases bias and increases variance

Explanation

Complex models fit training data more closely (lower bias) but are more sensitive to the particular training sample (higher variance).

Step-by-step solution

  1. A more complex model can fit the training data more closely, so bias falls.
  2. It also reacts more to the particular training sample, so variance rises.
  3. The best model balances the two.

Why the other options are wrong

  • B. Usually one goes down while the other goes up.
  • C. Complexity reduces bias.
  • D. This is the effect of reducing complexity.

Tip: More complex: bias down, variance up.

Question 8Hard

In Ridge regression, what happens as the regularisation strength lambda is increased towards a very large value?

  1. Exactly half of the coefficients become zero
  2. Coefficients shrink towards zero and the model underfits
  3. The model becomes identical to ordinary least squares
  4. Coefficients grow without limit and the model overfits the training data

Answer: B. Coefficients shrink towards zero and the model underfits

Explanation

The loss is MSE + lambda x sum(w^2).

A huge lambda makes the penalty dominate, pushing weights close to zero; lambda = 0 gives ordinary least squares.

Step-by-step solution

  1. Ridge loss = squared error + lambda x sum of w squared.
  2. Larger lambda makes big weights more costly.
  3. As lambda grows very large, weights shrink towards zero and the model underfits.

Why the other options are wrong

  • A. Ridge shrinks all weights smoothly; it does not zero exactly half.
  • C. OLS is what you get when lambda = 0, not when it is large.
  • D. Regularisation shrinks weights; it does not make them grow.

Tip: lambda = 0 -> plain regression; lambda huge -> flat model.

Practise all 8 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all AI & Machine Learning topics · All topics