Courseiva
ModelinghardMultiple ChoiceObjective-mapped

Early Stopping with Patience to Reduce Overfitting in Deep Learning

A data scientist is training a deep learning model for object detection. The training loss decreases rapidly in the first few epochs but then plateaus at a high value. The validation loss starts increasing after a few epochs. Which adjustment is MOST likely to improve generalization?

Quick Answer

The answer is to implement early stopping with a patience parameter. This is correct because the described behavior—training loss plateauing at a high value while validation loss increases—is a classic sign of overfitting in deep learning; early stopping with patience halts training when validation performance stops improving over a set number of epochs, preventing the model from memorizing noise and directly improving generalization. On the AWS Certified Machine Learning Specialty MLS-C01 exam, this scenario tests your ability to diagnose overfitting from loss curves and select the simplest regularization technique without altering architecture or data. A common trap is to assume more epochs always help, but patience ensures you stop at the point of best validation performance. Memory tip: think of “patience” as a countdown timer for validation loss—if it doesn’t improve for N epochs, training ends.

⚠ Common exam trap

AWS often tests the distinction between underfitting and overfitting symptoms, and candidates may mistakenly choose data augmentation (Option B) as a universal fix, but the plateauing training loss and rising validation loss specifically indicate overfitting, where early stopping is the most direct remedy.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Implement early stopping with a patience parameter

The described behavior—training loss plateauing at a high value while validation loss increases—is a classic sign of overfitting. Early stopping with a patience parameter halts training when validation performance stops improving, preventing the model from memorizing noise and thus improving generalization. This directly addresses the overfitting without altering the model architecture or data distribution.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Add more convolutional layers

    Why it's wrong here

    Adding layers increases model capacity and may worsen overfitting.

  • Use more aggressive data augmentation

    Why it's wrong here

    Data augmentation can help but may not address the specific overfitting pattern as directly as early stopping.

  • Increase the learning rate

    Why it's wrong here

    A higher learning rate can cause the loss to diverge.

  • Implement early stopping with a patience parameter

    Why this is correct

    Early stopping prevents overfitting by terminating training when validation loss degrades.

About these practice questions

This MLS-C01 question is part of Courseiva's 1,672-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

4 more ways this is tested on MLS-C01

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A data scientist is training a neural network on a dataset with 1 million images. The training loss decreases steadily but the validation loss starts to increase after 10 epochs. Which action should the scientist take to improve generalization?

medium
  • A.Implement early stopping
  • B.Add more layers to the network
  • C.Reduce the learning rate
  • D.Increase the number of epochs

Why A: Increasing validation loss while training loss decreases indicates overfitting. Early stopping (Option A) halts training when validation loss stops improving, directly preventing overfitting. Option B (adding more layers) increases model capacity and typically worsens overfitting. Option C (reducing learning rate) might slow training but does not directly stop overfitting. Option D (increasing epochs) would continue training and likely worsen overfitting.

Variation 2. A data scientist is training a regression model. The training loss is decreasing but the validation loss starts to increase after a few epochs. Which technique should the scientist use to address this issue?

medium
  • A.Decrease the batch size.
  • B.Implement early stopping based on validation loss.
  • C.Add more layers to the model.
  • D.Increase the learning rate.

Why B: Early stopping halts training when validation loss stops improving, which prevents overfitting by not allowing the model to memorize noise after it has generalized. Option A is incorrect because decreasing batch size introduces more noise into gradient estimates but does not directly address overfitting; it may even slow convergence. Option C is incorrect because adding more layers increases model capacity, which typically worsens overfitting by allowing the model to fit training data even more closely. Option D is incorrect because increasing the learning rate can cause the optimizer to diverge or overshoot minima, and it does not mitigate overfitting.

Variation 3. A data scientist is training a deep learning model for image segmentation using a U-Net architecture. The model overfits severely. The scientist tries L2 regularization, dropout, and data augmentation, but validation loss remains high while training loss approaches zero. Which additional strategy is most likely to reduce overfitting?

hard
  • A.Implement early stopping based on validation loss
  • B.Increase the batch size
  • C.Use a larger learning rate
  • D.Add more convolutional layers to increase model capacity

Why A: Early stopping monitors validation loss and halts training when it stops improving, directly addressing overfitting by preventing the model from memorizing noise after it has learned generalizable features. Since the training loss is near zero but validation loss remains high, the model has already started overfitting, and early stopping can cut training at the point just before overfitting worsens.

Variation 4. A data scientist is training a deep learning model on a GPU instance. The training loss is decreasing, but the validation loss starts increasing after a few epochs. Which action should the data scientist take to address this?

medium
  • A.Reduce the batch size
  • B.Implement early stopping
  • C.Increase the learning rate
  • D.Add more layers to the model

Why B: Early stopping monitors validation loss and stops training when it starts to increase, which directly addresses overfitting. Option A (reduce batch size) is not the best action; while it can affect training dynamics, it does not directly prevent validation loss increase due to overfitting. Option C (increase learning rate) is incorrect as it may cause the model to diverge or overshoot optimal minima. Option D (add more layers) is incorrect because adding layers increases model complexity, which typically worsens overfitting.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This MLS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MLS-C01 exam.