Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scaling factors γs and γc #26

Open
zzr123000 opened this issue Oct 31, 2024 · 1 comment
Open

scaling factors γs and γc #26

zzr123000 opened this issue Oct 31, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@zzr123000
Copy link

where γs denotes a scaling factor initialized as zeros,where γc is the channel-wise scaling factor initialized as zeros. Excuse me, how are the scaling factors γs and γc set in the specific experiment?

@Lupin1998
Copy link
Member

Hi, @zzr123000, thanks for your insightful question. The initialization method of scaling factors is taken from the LayerScale (or ResScale), where the branch with scaling factors should be "removed" to keep the shortcut branch as the identity. It could be beneficial to network optimization when the module has complex branches. Moreover, we haven't considered different initialization of scaling factors for the general of some specific cases. Maybe the zero initialization for pre-training and using the trained model for fine-tuning is already covered the most cases.

@Lupin1998 Lupin1998 self-assigned this Jan 16, 2025
@Lupin1998 Lupin1998 added the question Further information is requested label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants