【论文阅读】A Gentle Introduction to Graph Neural Networks [图神经网络入门](3)
【論文閱讀】A Gentle Introduction to Graph Neural Networks [圖神經(jīng)網(wǎng)絡(luò)入門](3)
What types of problems have graph structured data?
什么樣的問題需要圖類型的數(shù)據(jù)?
We have described some examples of graphs in the wild, but what tasks do we want to perform on this data? There are three general types of prediction tasks on graphs: graph-level, node-level, and edge-level.
我們已經(jīng)描述了一些圖的示例,但是我們希望對這些數(shù)據(jù)執(zhí)行什么任務(wù)呢?在圖上一般有三種類型的預(yù)測任務(wù): 圖層面、節(jié)點(diǎn)層面和邊層面的任務(wù)。
In a graph-level task, we predict a single property for a whole graph. For a node-level task, we predict some property for each node in a graph. For an edge-level task, we want to predict the property or presence of edges in a graph.
在圖層面的任務(wù)中,我們預(yù)測整個圖的單個屬性。對于節(jié)點(diǎn)層面的任務(wù),我們預(yù)測圖中每個節(jié)點(diǎn)的一些屬性。對于邊層面的任務(wù),我們希望預(yù)測圖中邊的屬性或是否存在。
For the three levels of prediction problems described above (graph-level, node-level, and edge-level), we will show that all of the following problems can be solved with a single model class, the GNN. But first, let’s take a tour through the three classes of graph prediction problems in more detail, and provide concrete examples of each.
對于上面描述的三個層面的預(yù)測問題(圖層面、節(jié)點(diǎn)層面和邊層面),我們將說明以下所有問題都可以通過一個模型來解決,就是GNN。但首先,讓我們更詳細(xì)地了解一下這三類圖預(yù)測問題,并列舉每種問題的具體示例。
There are other related tasks that are areas of active research. For instance, we might want to generate graphs, or explain predictions on a graph. More topics can be found in the Into the weeds section .
還有其他相關(guān)的任務(wù)是較為活躍的研究領(lǐng)域。例如,我們可能想要生成圖,或者對圖上的預(yù)測進(jìn)行解釋。更多的主題可以在進(jìn)入weeds部分找到。
Graph-level task
圖層面的任務(wù)
In a graph-level task, our goal is to predict the property of an entire graph. For example, for a molecule represented as a graph, we might want to predict what the molecule smells like, or whether it will bind to a receptor implicated in a disease.
在圖層面的任務(wù)中,我們的目標(biāo)是預(yù)測整個圖的屬性。例如,對于一個用圖表示的分子,我們可能想要預(yù)測這個分子的氣味,或者它是否會與一種與疾病有關(guān)的受體結(jié)合。
輸出: 每個圖的標(biāo)簽,(例如,“圖包含兩個環(huán)嗎?”)
This is analogous to image classification problems with MNIST and CIFAR, where we want to associate a label to an entire image. With text, a similar problem is sentiment analysis where we want to identify the mood or emotion of an entire sentence at once.
這類似于MNIST和CIFAR的圖像分類問題,在這些問題中,我們希望將一個標(biāo)簽關(guān)聯(lián)到整個圖像。對于文本,一個類似的問題是情緒分析,我們想要一次性確定整個句子的心境或情緒。
Node-level task
節(jié)點(diǎn)層面的任務(wù)
Node-level tasks are concerned with predicting the identity or role of each node within a graph.
節(jié)點(diǎn)層面的任務(wù)與預(yù)測圖中每個節(jié)點(diǎn)的標(biāo)識或角色有關(guān)。
A classic example of a node-level prediction problem is Zach’s karate club [15] . The dataset is a single social network graph made up of individuals that have sworn allegiance to one of two karate clubs after a political rift. As the story goes, a feud between Mr. Hi (Instructor) and John H (Administrator) creates a schism in the karate club. The nodes represent individual karate practitioners, and the edges represent interactions between these members outside of karate. The prediction problem is to classify whether a given member becomes loyal to either Mr. Hi or John H, after the feud. In this case, distance between a node to either the Instructor or Administrator is highly correlated to this label.
關(guān)于節(jié)點(diǎn)級別預(yù)測問題的一個經(jīng)典例子便是Zach的空手道俱樂部[15]。該數(shù)據(jù)集是一個單一的社交網(wǎng)絡(luò)圖,由出現(xiàn)分歧后選擇效忠于兩個空手道俱樂部之一的個人組成。隨著故事的發(fā)展,Mr. Hi(教練)和John H(管理員)之間的分歧在空手道俱樂部造成了分裂。節(jié)點(diǎn)代表每個空手道練習(xí)者,邊緣代表空手道之外這些成員之間的互動。預(yù)測的問題是區(qū)分一個給定的成員在出現(xiàn)分歧之后是忠于Mr. Hi還是John H。在這種情況下,節(jié)點(diǎn)到教練或管理員之間的距離與此標(biāo)簽高度相關(guān)。
輸出: 圖節(jié)點(diǎn)的標(biāo)簽
On the left we have the initial conditions of the problem, on the right we have a possible solution, where each node has been classified based on the alliance. The dataset can be used in other graph problems like unsupervised learning.
左邊是該問題的初始條件,右邊是可能的解決方案,每個節(jié)點(diǎn)都根據(jù)聯(lián)盟進(jìn)行了分類。該數(shù)據(jù)集可以用于其他圖問題,如無監(jiān)督學(xué)習(xí)。
Following the image analogy, node-level prediction problems are analogous to image segmentation, where we are trying to label the role of each pixel in an image. With text, a similar task would be predicting the parts-of-speech of each word in a sentence (e.g. noun, verb, adverb, etc).
與圖像層面類比,節(jié)點(diǎn)層面的預(yù)測問題類似于圖像分割,我們試圖標(biāo)記圖像中每個像素的角色。在文本中,類似的任務(wù)是預(yù)測句子中每個單詞的詞性(例如名詞、動詞、副詞等)。
Edge-level task
邊層面的任務(wù)
The remaining prediction problem in graphs is edge prediction.
圖的其他類型的預(yù)測問題是邊層面的預(yù)測。
One example of edge-level inference is in image scene understanding. Beyond identifying objects in an image, deep learning models can be used to predict the relationship between them. We can phrase this as an edge-level classification: given nodes that represent the objects in the image, we wish to predict which of these nodes share an edge or what the value of that edge is. If we wish to discover connections between entities, we could consider the graph fully connected and based on their predicted value prune edges to arrive at a sparse graph.
邊層面預(yù)測的一個例子是圖像場景理解。除了識別圖像中的物體,深度學(xué)習(xí)模型還可以用來預(yù)測它們之間的關(guān)系。我們可以將其描述為邊層面分類: 給定代表圖像中對象的節(jié)點(diǎn),我們希望預(yù)測這些節(jié)點(diǎn)中哪些節(jié)點(diǎn)共享一條邊,或者那條邊的值是多少。如果我們想要發(fā)現(xiàn)實(shí)體之間的連接,我們可以認(rèn)為圖是完全連通的,并根據(jù)它們的預(yù)測值剪枝邊來得到一個稀疏圖。
輸入: 全連通圖,無標(biāo)記邊
輸出: 每條邊的標(biāo)簽
在左邊,我們有一個根據(jù)上面圖像的場景構(gòu)建的初始圖。右邊是根據(jù)模型的輸出對某些連接進(jìn)行剪枝時,該圖可能的邊的標(biāo)簽。
參考文獻(xiàn)
[15] An Information Flow Model for Conflict and Fission in Small Groups Zachary, W.W., 1977. J. Anthropol. Res., Vol 33(4), pp. 452--473. The University of Chicago Press.
總結(jié)
以上是生活随笔為你收集整理的【论文阅读】A Gentle Introduction to Graph Neural Networks [图神经网络入门](3)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【论文阅读】A Gentle Intro
- 下一篇: 【论文阅读】A Gentle Intro