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

Feature Normalization in the Signal Propagation Experiment #2

Open
ignasa007 opened this issue Aug 17, 2024 · 0 comments
Open

Feature Normalization in the Signal Propagation Experiment #2

ignasa007 opened this issue Aug 17, 2024 · 0 comments

Comments

@ignasa007
Copy link

ignasa007 commented Aug 17, 2024

Hi, can I check what the logic is behind this line in the signal propagation experiment file? I imagine it's to do with the normalization,

$$\frac{h_u^{(m),f}}{\left\|h_u^{(m),f}\right\|}$$

as in the last equation on Page 20 of the paper. Firstly, the denominator of that term doesn't make sense to me since $h_u^{(m),f}$ is supposed to be a scalar. Is that a typo in the paper? Secondly, the implementation seems to suggest that we are summing all the feature values (over all nodes and all feature dimensions) to normalize, which isn't even a node-wise normalization constant. Moreover, the features from the source node are being used to compute the normalizer (which wouldn't be an issue if the normalization is instead supposed to be node-wise, since $d_G(v,v)=0$).

Not sure if this is the intended formulation, but I guess the aforementioned line can be updated to normalize by out.abs().sum(dim=1, keepdims=True), which would correspond to the summands

$$\frac{h_u^{(m),f}}{\left\|h_u^{(m)}\right\|_1}$$

If so, I can verify the implementation and create a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant