output gradients on mini-batch inputs for graph classification #4517
Replies: 2 comments 2 replies
-
Sorry not really an expert here, but I would try your code on a much smaller graph with some synthetic data to see if what you're doing makes sense (maybe you can compare it to using |
Beta Was this translation helpful? Give feedback.
-
I think the gradient computation is fine, but I am not sure I understand the reshaping of |
Beta Was this translation helpful? Give feedback.
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 there,
I am trying to get the gradients of some outputs over the mini-batch input node features/ edge features, this way we can figure out the more important edges / nodes. My code looks pretty much like the following.
The code will plot a 3 x 3 matrix for the gradients. However, the results do not make sense to domain experts. The following screentshots are the results on my real dataset, where I have 90 nodes. They say there shouldn't be huge gradients throughout a node (large gradients for all edges connected to a specific node (left img)), it should rather look like large gradients on scattered edges (certain important edges connecting different nodes, not one node connecting all the rest nodes (right img))
So I was wondering could this be caused by the mini-batch schedule which I shouldn't have simply reshaped the gradients like this ? or this is related to the dataset itself?
Any insights would be appreciated. Please let me know if you need further elaboration.
Beta Was this translation helpful? Give feedback.
All reactions