Answers.Body: <p>In the paper <a href="https://arxiv.org/pdf/1704.01212.pdf" rel="nofollow noreferrer">Neural Message Passing for Quantum Chemistry</a> (2017), the authors (from Google, Google Brain and Google DeepMind) introduce a framework called <em>message passing neural network</em> (MPNN), which generalizes previously proposed geometric deep learning models. In section 2 of the paper, they describe this MPNN framework and they state that edge features can also be learned, using the MPNN framework, by introducing hidden states for all edges in the graph, <span class="math-container">$\mathbf{h}_{e_{vw}}^t$</span>, where <span class="math-container">$t$</span> is the iteration number and <span class="math-container">$e_{vw}$</span> is the edge from node <span class="math-container">$v$</span> to node <span class="math-container">$w$</span>.</p>
  
  <p>See also the paper <a href="https://arxiv.org/pdf/1702.05532.pdf" rel="nofollow noreferrer">Machine learning prediction errors better than DFT accuracy</a>, which is cited in the MPNN paper as an example where the authors also learn the edge features. In section 2 of the MPNN paper, they briefly describe this specific instantiation of the MPNN framework, called the <em>Molecular Graph Convolutions</em>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-07T09:54:57.220Z
Answers.LastActivityDate: 2019-08-07T10:00:09.797Z
Answers.LastEditDate: 2019-08-07T10:00:09.797Z
Answers.UserDisplayName: nbro
Body: <p>The work I've seen so far have the nodes containing features. Any resources for how to use a GCN on a graph where the edges are the ones that contain features rather than the nodes?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-07T11:38:06.747Z
Comments.Text: one practice ive seen used is to define a new graph where each edge in the previous is a node and connection are determined by if there was a vertex between two edges. This is an invertible process
Comments.UserDisplayName: mshlis
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-07T19:46:38.677Z
Comments.Text: @mshlis Where did you see this? Maybe you could also provide your answer!
Comments.UserDisplayName: nbro
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-08T01:02:27.370Z
Comments.Text: @nbro i saw it used on at a project at my work and turns out it only works for DAGs with a couple of additional assumptions about the graph/task. so my comment isnt general enough. i.e. was probably a mishap of me messaging on something I wasn't too familiar with
Comments.UserDisplayName: mshlis
Tags: <deep-learning><geometric-deep-learning>
Title: How are edge features implemented in Geometric Deep Learning?
UserDisplayName: Alex
ThreadText: # How are edge features implemented in Geometric Deep Learning?
  
  (Asked by: username_0 on 2019-08-07)
  
  The work I've seen so far have the nodes containing features. Any resources for how to use a GCN on a graph where the edges are the ones that contain features rather than the nodes?
  
  **Tags:** deep-learning, geometric-deep-learning
  > **Comments:**
  > **username_1**: one practice ive seen used is to define a new graph where each edge in the previous is a node and connection are determined by if there was a vertex between two edges. This is an invertible process  
  > **username_2**: @mshlis Where did you see this? Maybe you could also provide your answer!  
  > **username_1**: @nbro i saw it used on at a project at my work and turns out it only works for DAGs with a couple of additional assumptions about the graph/task. so my comment isnt general enough. i.e. was probably a mishap of me messaging on something I wasn't too familiar with  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-08-07. Score: 1 | Accepted answer
  
  In the paper [Neural Message Passing for Quantum Chemistry](https://arxiv.org/pdf/1704.01212.pdf) (2017), the authors (from Google, Google Brain and Google DeepMind) introduce a framework called *message passing neural network* (MPNN), which generalizes previously proposed geometric deep learning models. In section 2 of the paper, they describe this MPNN framework and they state that edge features can also be learned, using the MPNN framework, by introducing hidden states for all edges in the graph, $\mathbf{h}\_{e\_{vw}}^t$, where $t$ is the iteration number and $e\_{vw}$ is the edge from node $v$ to node $w$.
  
  See also the paper [Machine learning prediction errors better than DFT accuracy](https://arxiv.org/pdf/1702.05532.pdf), which is cited in the MPNN paper as an example where the authors also learn the edge features. In section 2 of the MPNN paper, they briefly describe this specific instantiation of the MPNN framework, called the *Molecular Graph Convolutions*.
  
  
  ---
  
  