What is overfitting?
Overfitting occurs when a model learns the training data too
closely, including noise, and therefore performs poorly on unseen data.
How do you reduce overfitting?
•
Use more training data
•
Data augmentation
•
Dropout
•
Regularization
•
Early stopping
•
Reduce model complexity
•
Cross-validation
•
Proper train-validation-test splitting
What is underfitting?
Underfitting occurs when the model is too simple to learn
the important patterns in the data. As a result, it performs poorly on both
training and unseen data.
What is the bias-variance tradeoff?
High bias means the model is too simple (underfitting). High
variance means the model is too sensitive to training data (overfitting). We
aim for a balance.
What is regularization?
Regularization is a technique used to reduce overfitting by
preventing the model from becoming unnecessarily complex. Examples include
L1/L2 regularization and dropout.
What is L1 vs L2 regularization?
L1 pushes some weights to exactly zero. L2 makes weights
small but not zero.
What is weight decay?
A penalty on large weights. It works as regularization to
reduce overfitting.
What is dropout?
Dropout randomly deactivates some neurons during training.
It helps prevent the model from depending too much on specific neurons and
reduces overfitting.
What is batch normalization?
It normalizes the inputs of a layer across the batch. This
makes training faster and more stable.
What is layer normalization?
It normalizes across the features of each single sample. It
is used in transformers.
Batch norm vs layer norm?
Batch norm depends on batch statistics and is common in
CNNs. Layer norm works per sample and is common in transformers.
What is normalization (of input data)?
Normalization scales input values into a consistent range.
For example, in our traffic sign paper, pixel values were normalized between 0
and 1.
What is data augmentation?
Data augmentation creates modified versions of training data
to increase data diversity. For images, examples include rotation, zoom,
shifting, cropping, and flipping.
Why use data augmentation?
It helps the model learn more robust features and can reduce
overfitting by exposing the model to different variations of the training data.
What is transfer learning?
Transfer learning means using knowledge learned from one
task or dataset as a starting point for another related task. For example,
using an ImageNet-pretrained CNN for traffic sign recognition.
What is fine-tuning?
Fine-tuning means taking a pre-trained model and continuing
its training on a target dataset so that it adapts to the new task.
What is feature extraction?
Feature extraction means identifying useful patterns or
representations from raw data that help the model perform the target task.