Modules 5 & 6

GA vs PSO & Deep Learning

Q23, Q19, Q11, Q12, Q18, Q28, Q30, Q10, Q13, Q29

Green = exact question bank answer Amber = clarification only

GA vs PSO (Q23)

Side-by-side comparison
Genetic Algorithm Inspired by genetics

selection crossover mutation

More explorative

vs
Particle Swarm (PSO) Inspired by flocking

velocity position

Converges faster

Q23

What are the main differences between GA and Particle Swarm Optimization (PSO)?

๐Ÿ“‹ Question bank answer

GA is inspired by genetics and uses selection, crossover, and mutation. PSO is inspired by social behavior and uses velocity and position updates. GAs are more explorative; PSO tends to converge faster.

๐Ÿ’ก Clarification

The side-by-side cards above visualize the same comparison.

Transfer Learning chain

These questions form a logical chain โ€” learn them in this order:

Concept chain (Q19 โ†’ Q11 โ†’ Q28 โ†’ Q12 โ†’ Q18)
Transfer LearningQ19 โ€” reuse pre-trained model
โ†’
FrozenQ11 โ€” early layers locked
โ†’
TrainableQ28 โ€” last layers update
โ†’
Fine-tuningQ12 โ€” train on new task
โ†’
AdditiveQ18 โ€” add adapters on top
๐Ÿ”’
Frozen layers โ€” weights fixed (early conv layers)
๐Ÿ”’
More frozen feature extractors
โœ๏ธ
Trainable layers โ€” updated for new task
โž•
Additive adapters โ€” new layers, base unchanged
Q19

What is Transfer Learning?

๐Ÿ“‹ Question bank answer

Transfer learning is a method where a model trained on one task (e.g., ImageNet classification) is reused and adapted for another task. This reduces the need for large datasets and allows faster development of models for new applications.

Q11

What are frozen layers in Transfer Learning?

๐Ÿ“‹ Question bank answer

Frozen layers are layers whose weights are fixed during training. They retain the pre-learned features from the source dataset and help maintain general knowledge, especially in the early convolutional layers.

Q28

What are trainable layers in Transfer Learning?

๐Ÿ“‹ Question bank answer

Trainable layers are updated during fine-tuning. They are typically the last few layers in the network, and they adapt the model to the new task by learning task-specific patterns from the new dataset.

Q12

What is fine-tuning in deep learning?

๐Ÿ“‹ Question bank answer

Fine-tuning is the process of continuing training a pre-trained model on a new task or dataset. It usually involves unfreezing some layers and updating them to specialize the model without losing its general capabilities.

Q18

What is additive fine-tuning?

๐Ÿ“‹ Question bank answer

Additive fine-tuning involves adding new layers or adapter modules to the pre-trained model while keeping the original weights unchanged. These new components are trained for the target task, preserving the base model's stability.

๐Ÿ’ก Clarification

The layer stack diagram above shows frozen (๐Ÿ”’) vs trainable (โœ๏ธ) vs additive (โž•) layers.

CNN architectures

Q30

What is the key characteristic of VGG16 architecture?

๐Ÿ“‹ Question bank answer

VGG16 uses 3x3 convolutional filters, consistent architecture, and depth (16 layers) to learn complex image features. Its simplicity and uniformity make it widely used, despite its large number of parameters (138 million).

Q10

What makes GoogleNet (Inception v1) efficient compared to VGG?

๐Ÿ“‹ Question bank answer

GoogleNet uses Inception modules to process features at multiple scales using 1x1, 3x3, and 5x5 convolutions in parallel. It significantly reduces the number of parameters while maintaining high accuracy on image classification tasks.

Q13

What is an Inception Module?

๐Ÿ“‹ Question bank answer

An Inception module is a network block that applies multiple convolutions (1x1, 3x3, 5x5) and pooling operations in parallel, then concatenates the outputs. This allows the model to learn both local and global features simultaneously.

Q29

Why is 1x1 convolution used before larger filters in Inception modules?

๐Ÿ“‹ Question bank answer

1x1 convolutions are used for dimensionality reduction. They reduce the number of input channels before applying larger filters, making the model more efficient and reducing computational cost.

๐Ÿ’ก Clarification

See the VGG vs Inception architecture diagram below โ€” 1ร—1 "reduce" blocks sit before the larger 3ร—3 and 5ร—5 filters.

VGG16 vs Inception โ€” architecture comparison

VGG16 (Q30) โ€” uniform & heavy

3ร—3
โ†’
3ร—3
โ†’
3ร—3
โ†’
3ร—3
โ†’
โ€ฆร—16

Same 3ร—3 filters stacked deep ยท 138M parameters

Inception module (Q10, Q13, Q29)

Input
1ร—1 conv
1ร—1 reduce
then 3ร—3
1ร—1 reduce
then 5ร—5
3ร—3 pool
Concatenate โ†’ Output

Parallel paths ยท 1ร—1 cuts channels first (Q29) ยท fewer params than VGG

Match the term

Weights fixed, not updated โ†’
Last layers updated for new task โ†’
Add new adapter layers, keep base frozen โ†’
Reduces channels before 3ร—3/5ร—5 โ†’