Just the Top Block

Using Vision ModelsMedium+20 XP+20

Just the Top Block

You are adapting a pretrained backbone to your own six-class dataset. The old 100010001000-class head is thrown away and a new head is bolted on.

The backbone's weights, block by block:

partweights
stem + block 1240,000240{,}000240,000
block 21,220,0001{,}220{,}0001,220,000
block 37,100,0007{,}100{,}0007,100,000
block 4 (the top block)14,940,00014{,}940{,}00014,940,000

The backbone ends with global average pooling, which turns each image into a vector of 204820482048 numbers. The new head is two fully connected layers: 2048→2562048 \rightarrow 2562048→256, then 256→6256 \rightarrow 6256→6. A fully connected layer gives every output unit one weight per input number, plus one bias of its own.

You follow the usual recipe for a mid-sized dataset: freeze the backbone except its top block, and train that top block together with the new head.

What percentage of the whole model's parameters are you training?

Round your answer to 2 decimal places.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.