What is an epoch?
One epoch means the model has processed the entire training
dataset once.
What is batch size?
Batch size is the number of training samples processed
before the model updates its parameters.
What is learning rate?
Learning rate controls how much the model's parameters are
updated during each optimization step. A very high learning rate can make
training unstable, while a very low learning rate can make training very slow.
What is an optimizer?
An optimizer is an algorithm used to update the model's
parameters to minimize the loss function. Examples include SGD and Adam.
What is Adam?
Adam is an optimization algorithm that combines ideas from
momentum and adaptive learning rates. It is widely used for training deep
learning models.
What is AdamW?
A version of Adam that applies weight decay correctly. It is
widely used for training transformers.
What is gradient descent?
An optimization method that updates parameters in the
direction that reduces the loss.
Batch vs mini-batch vs stochastic gradient descent?
Batch uses all data per update. Stochastic uses one sample.
Mini-batch uses a small group (like 32) and is the most common.
What is SGD?
Stochastic Gradient Descent. It updates parameters using one
sample or a small batch of data at a time.
What is momentum?
It uses past gradients to make updates smoother and faster.
What is a loss function?
A loss function measures how different the model's
prediction is from the actual target. The optimizer tries to minimize this loss
during training.
What is cross-entropy loss?
Cross-entropy is commonly used for classification problems.
It measures the difference between the actual class distribution and the
probability distribution predicted by the model.
Why categorical cross-entropy?
Categorical cross-entropy is suitable for multi-class
classification where each sample belongs to one class among multiple classes.
What is label smoothing?
Instead of hard labels like 1 and 0, it uses soft labels
like 0.9 and 0.1. This stops the model from being overconfident.
What is a learning rate scheduler?
A method that changes the learning rate during training,
usually reducing it over time.
What is ReduceLROnPlateau?
It reduces the learning rate when the validation performance
stops improving. It can help the model converge more effectively.
What is early stopping?
Early stopping stops training when validation performance
stops improving. It can reduce unnecessary training and help prevent
overfitting.
What is a checkpoint?
A saved copy of the model at a certain point in training,
usually the best one.
What is gradient clipping?
Limiting the size of gradients to avoid exploding gradients.
We used this in the thesis paper.
What is hyperparameter tuning?
Searching for the best settings, like learning rate and
batch size. Common methods are grid search and random search.
What is an auxiliary classifier?
An extra classifier attached to an inner part of the model.
It gives additional training signals and helps stabilize training. We used it
in the thesis paper.