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

[python] PF batch normaliation var initialization with 1 (break behavior backward compatibility) #294

Merged

Conversation

TakuyaNarihira
Copy link
Contributor

(This PR must be merged after merging #293)

This changes the default initialization of bn/var parameter from zero to one. Initialization with 0 biased the running variance towards 0. Also, the 0 initialization led to unstable inference at the early stage of training due to near-0 division in bn.

Note that this breaks the behavior backward compatibility in parametric_functions.batch_normalization. Any experiment previously performed can be reproduced by passing param_init={'var': I.ConstantInitializer(0)} option.

@TakuyaNarihira TakuyaNarihira added enhancement release-note-break-compat Auto-release; Breaking Backward Compatibility labels Nov 6, 2018
@TakuyaNarihira TakuyaNarihira changed the title WIP:[python] PF batch normaliation var initialization with 1 (break behavior backward compatibility) [python] PF batch normaliation var initialization with 1 (break behavior backward compatibility) Nov 6, 2018
@TakuyaNarihira TakuyaNarihira changed the title [python] PF batch normaliation var initialization with 1 (break behavior backward compatibility) (DO NOT MERGE!!!)[python] PF batch normaliation var initialization with 1 (break behavior backward compatibility) Nov 6, 2018
@TakuyaNarihira TakuyaNarihira self-assigned this Nov 6, 2018
Note this breaks the behavior backward compatibility
@TakuyaNarihira TakuyaNarihira force-pushed the feature/20181107-pf-batch-norm-var-init-1 branch from a6d422f to b477199 Compare November 8, 2018 03:13
@TakuyaNarihira TakuyaNarihira changed the title (DO NOT MERGE!!!)[python] PF batch normaliation var initialization with 1 (break behavior backward compatibility) [python] PF batch normaliation var initialization with 1 (break behavior backward compatibility) Nov 8, 2018
@AkioHayakawa-sony AkioHayakawa-sony merged commit 7b4eec7 into master Nov 8, 2018
@YukioOobuchi YukioOobuchi deleted the feature/20181107-pf-batch-norm-var-init-1 branch February 15, 2019 04:07
TE-StephenTiedemann pushed a commit that referenced this pull request Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement release-note-break-compat Auto-release; Breaking Backward Compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants