DL-06 - Transfer learning Flashcards

1
Q

DL-06 - Transfer learning

Describe transfer learning.

A

Transfer learning is the process of utilizing a pre-trained neural network model, typically on a similar task, and fine-tuning it for a new, specific task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

DL-06 - Transfer learning

What are the stages in a transfer learning workflow? (5)

A
  • Remove unnecessary layers.
  • Freeze layers.
  • Add new, trainable layers.
  • Train the new layers.
  • (Optional) Fine-tuning.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

DL-06 - Transfer learning

What does transfer learning depend on?

A

The size and similarity of your new dataset relative to the old one.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

DL-06 - Transfer learning

When using transfer learning, there are 4 cases to consider. What are they?

A

Whether your new dataset is:
- small/large.
- similar/different from the original dataset.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

DL-06 - Transfer learning

What is the approach when your new data is small and similar to the model’s dataset?

A
  • Replace last layer with your own.
  • Freeze everything in the pretrained.
  • Train only own layer.

(See image)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

DL-06 - Transfer learning

What is the approach when your new data is small and different from the model’s dataset?

A
  • Replace some CNN layers and add output FC layer
  • Freeze pre-trained.
  • Train only own layers.

(See image)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

DL-06 - Transfer learning

What is the approach when your new data is large and similar to the model’s dataset?

A
  • Keep all layers.
  • Replace last layer with your own, maybe test changing last 2?
  • Can train whole network.

Enough data to not worry about overfitting.

(See image)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

DL-06 - Transfer learning

What is the approach when your new data is large and different to the model’s dataset?

A
  • Keep all layers.
  • Replace last layer(s) with your own.
  • Train everything (Or several later layers).

In this case, the CNN layers are mostly retrained from scratch. But we could as well initialize it with the pre-trained weights.

(See image)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

DL-06 - Transfer learning

What is the approach when your new data is large and different from the model’s dataset?

A
  • Replace one or more later layers with your own, e.g. last conv + all full layers.
  • Train everything.

(See image)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly