Courseiva
AI Models and Data EngineeringhardMultiple ChoiceObjective-mapped

Regularization Techniques to Reduce Overfitting

An AI team notices that a model's F1 score on the validation set is 0.95, but on the test set it drops to 0.72. Which course of action is most appropriate?

Quick Answer

The correct answer is to apply regularization, as the dramatic drop from a 0.95 validation F1 score to a 0.72 test F1 score is a textbook symptom of overfitting. This occurs when a model memorizes noise and patterns specific to the training or validation data, failing to generalize to unseen data. Regularization techniques to reduce overfitting—such as L1 (Lasso) and L2 (Ridge) weight decay, or dropout in neural networks—work by adding a penalty to the loss function, which constrains the model’s complexity and forces it to learn simpler, more generalizable patterns. On the CompTIA AI+ AI0-001 exam, this scenario tests your ability to diagnose overfitting from performance metrics and select the most appropriate mitigation strategy without needing more data or a new architecture. A common trap is to assume the model needs more data or hyperparameter tuning first, but regularization directly addresses the high variance causing the gap. Memory tip: think of the F1 score “falling off a cliff” between validation and test—that’s your cue to “regularize the rise” in variance.

⚠ Common exam trap

CompTIA often tests the distinction between overfitting (high variance) and underfitting (high bias), and the trap here is that candidates may incorrectly choose to increase model complexity (Option C) because they focus on the high validation score rather than recognizing the performance drop as a variance problem.

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

Apply regularization.

The F1 score dropping from 0.95 on the validation set to 0.72 on the test set is a classic sign of overfitting, where the model has memorized the training/validation data but fails to generalize to unseen test data. Applying regularization (e.g., L1/L2 weight decay, dropout) is the most appropriate course of action because it penalizes overly complex models, reduces variance, and improves generalization without requiring more data or changing the model architecture.

Answer analysis

Option-by-option breakdown

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

  • Reduce the training dataset size.

    Why it's wrong here

    Reducing training data typically increases variance and may worsen overfitting.

  • Adjust the train/test split to be more representative.

    Why it's wrong here

    While a representative split is important, it does not fix overfitting caused by excessive model capacity.

  • Increase model complexity.

    Why it's wrong here

    Increasing complexity would exacerbate overfitting, leading to an even larger gap.

  • Apply regularization.

    Why this is correct

    Regularization penalizes large weights or complex structures, reducing overfitting and improving generalization.

About these practice questions

This AI0-001 question is part of Courseiva's 754-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

2 more ways this is tested on AI0-001

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 team is training a deep neural network on a large image dataset. They observe that the training loss decreases smoothly but validation loss oscillates. Which regularization technique should be applied?

hard
  • A.Data augmentation
  • B.L1 regularization
  • C.Dropout
  • D.Batch normalization

Why C: Dropout is the correct regularization technique because it randomly drops neurons during training, which prevents co-adaptation of features and reduces overfitting. This addresses the validation loss oscillation (a sign of overfitting) while allowing the training loss to decrease smoothly, as dropout only applies during training and not during validation.

Variation 2. A machine learning team is developing a model to predict server failure from telemetry data. They use a deep neural network with 3 hidden layers. After training, the model achieves 99% accuracy on training data but only 85% on validation data. Which technique should the team apply to reduce the generalization error?

hard
  • A.Increase the number of hidden layers
  • B.Apply L2 regularization
  • C.Increase the learning rate
  • D.Add more training data

Why B: The model exhibits high variance (overfitting) because it achieves 99% accuracy on training data but only 85% on validation data. L2 regularization (also known as weight decay) adds a penalty proportional to the squared magnitude of the weights to the loss function, which discourages the network from fitting noise in the training data and improves generalization. This directly reduces the gap between training and validation performance.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AI0-001 practice question is part of Courseiva's free CompTIA 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 AI0-001 exam.