News for hackers. Stuff that matters.
Re:Graph Neural Networks Use Graphs When They Shouldn't by eachro on Tuesday September 19, 2023 @11:55AM (#37571811)
Isn't the natural solution to just use attention layers instead of graph convolution layers then? Then there the attention mechanism will end up learning the useful graph structure via the attention weights?
Re:Graph Neural Networks Use Graphs When They Shouldn't by solomatov on Tuesday September 19, 2023 @12:06PM (#37571985)
It’s more or less the same thing. You could consider transformer a GNN.
Re:Graph Neural Networks Use Graphs When They Shouldn't by ftxbro on Tuesday September 19, 2023 @12:10PM (#37572046)
in fact everything is a graph
Re:Graph Neural Networks Use Graphs When They Shouldn't by retbull on Tuesday September 19, 2023 @12:30PM (#37572376)
Well the whole point of this paper is NOT everything is a graph.
Re:Graph Neural Networks Use Graphs When They Shouldn't by dekhn on Tuesday September 19, 2023 @06:24PM (#37577800)
in fact everything is a graph

really

Re:Graph Neural Networks Use Graphs When They Shouldn't by random3 on Wednesday September 20, 2023 @12:26AM (#37580370)
+1 everything is a graph
Re:Graph Neural Networks Use Graphs When They Shouldn't by SpaceManNabs on Tuesday September 19, 2023 @12:44PM (#37572590)
transformers are GNNs where all nodes are connected to all nodes (well in the decoder you have masks but you see my point).

If the problem is that the graph is not sparse enough / not a graph at all, adding more connections doesn't help.

edit: Why doesn't it help? They address this in the paper. There is computational infeasiability problem. The transformer decoder can't be a regular graph if you include masking.

Re:Graph Neural Networks Use Graphs When They Shouldn't by eachro on Tuesday September 19, 2023 @12:49PM (#37572676)
If they don't actually help then the attention weight for that connection would tend to 0, right? Then it becomes a problem of overfitting which we have a large arsenal to combat.
Re:Graph Neural Networks Use Graphs When They Shouldn't by SpaceManNabs on Tuesday September 19, 2023 @12:50PM (#37572700)
> If they don't actually help then the attention weight for that connection would tend to 0, right?

Not necessarily. That is what this paper is about. From what I understand, they also consider graph attention networks.

Re:Graph Neural Networks Use Graphs When They Shouldn't by coffee_am on Thursday September 21, 2023 @10:35AM (#37598239)
A few considerations come to mind:

1. The O(N^2*d) computation cost of the attention layers. For large graphs (millions of nodes) it's quickly too costly. And in some of the social network problems, the more data you feed the better is the inference on average (on a ~log scale).

2. As the paper suggests, in some cases the graph structure has important information. Flattening out everything, or fully connecting the nodes, a more accurate description of what goes on in an attention layer in this scenario, the structure is lost. The structure information can be introduced as a positional encoding -- I read in some paper a while back, I think in here: https://arxiv.org/pdf/2012.09699.pdf So remember to do that if you attempt the attention solution.

3. Then there is overfitting, already a big issue in GNNs. Fully connecting every node with attention has less of an "inductive bias" if you will, created by the graph structure. Not sure how much it matters ...