Size Intensive Readouts Using Multihead Attention - Vanishing Gradient #1214
bismuthadams1
started this conversation in
General
Replies: 1 comment 1 reply
|
Hey @bismuthadams1, may i ask what kind of quantities you are trying to fit?
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi MACE team, I've been working on a Transformer style readout inspired by the discussion here: https://github.com/ACEsuit/mace/discussions/917. My model is potentially quite ambitious, having both a regressor and classifier forming a multitask learning problem. I've constructed my model constructor for the transformer as follows:
And the transformer block itself is:
Following a similar design to Ilyes's suggestion. Unfortunately when training the gradients seem to vanish. It doesn't seem to be an issue with my loss function design or wiring issue as when I replace my the transformer architecture with a more simple scatter_mean over a set of o3.Irreps("1x0e") per layer I see some gradient but the model performance is suboptimal (I suspect because the independent layers of the regressor and classifier aren't very large- my hope was the transformer would give more independent layers to each task).
I hope this makes sense.
All reactions