baiksung / MeTAL

Official PyTorch implementation of "Meta-Learning with Task-Adaptive Loss Function for Few-Shot Learning" (ICCV2021 Oral)
62 stars 13 forks source link

Is it correct to use meta_loss in y = self.apply_inner_loop_update(loss=meta_loss, ...? #8

Closed efsunsezer closed 1 year ago

efsunsezer commented 1 year ago

Hi,

I could not understand why meta_loss is used during the inner loop update process. Isn't it necessary to use support loss here?

Thank you.

baiksung commented 1 year ago

Hi,

This is a meta-learned loss function, which is a component introduced in this paper. Note that meta_loss is not referring to a loss function you would normally use in the outer-loop optimization meta_loss is a meta-learned loss function that can be beneficial in learning a new task during inner-loop optimization. Please refer to Algorithm 2 and Section 3.2.2 in the paper.

Best, Sungyong

efsunsezer commented 1 year ago

That "Note that meta_loss is not referring to a loss function you would normally use in the outer-loop optimization" is my answer. Thank you for your help.