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

Compare the two edge feature initialization methods #5

Closed
jkli-aa opened this issue May 20, 2022 · 3 comments
Closed

Compare the two edge feature initialization methods #5

jkli-aa opened this issue May 20, 2022 · 3 comments

Comments

@jkli-aa
Copy link

jkli-aa commented May 20, 2022

Thanks for your nice work in sgg :)
I notice that the edge feature has two initialization methods in RelModel. One is initialized by union feature and another is initialized by the spatial of subject and object. I am wondering their difference and why Schemata applies the latter method.
By the way, It seems that a learnable ScaleLayer is applied to scale the gradient of location_hlayer. Is a trick to make the training process stable? I don't know if there's anything wrong with what I understand.
Looking forward to your reply. Thanks again :)

Repository owner deleted a comment from gyhandy May 21, 2022
@sharifza
Copy link
Owner

Hi @jkli-aa. Thanks for your interest :)
In this part, we follow the code from Neural Motifs. NM used the union feature and it gave them quite a good improvement. In our case, we realized that the computational burden versus the benefit of using the union feature was not worth it (it didn't really improve the results).

The scale layer was just an inductive bias to help the network apply different weights to different features, this was motivated originally in the multimodal setting of Depth-VRD but in this work, it doesn't play an essential role, and you can also try your results without it.

@jkli-aa
Copy link
Author

jkli-aa commented May 23, 2022

I got it, cheers :)

@jkli-aa jkli-aa closed this as completed May 24, 2022
@gyhandy
Copy link

gyhandy commented Oct 11, 2022 via email

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

3 participants