| # GRAPH LAYOUTS AND GRAPH CONTRASTIVE LEARNING VIA NEIGHBOUR EMBEDDINGS |
|
|
| Anonymous authors Paper under double-blind review |
|
|
| # ABSTRACT |
|
|
| In node-level graph representation learning, there are two distinct paradigms. One is known as graph layouts, where nodes are embedded into 2D space for visualization purposes. Another is graph contrastive learning, where nodes are parametrically embedded into a high-dimensional vector space based on node features. In this work, we show that these two paradigms are intimately related, and that both can be successfully approached via neighbour embedding methods. First, we introduce graph $t$ -SNE for two-dimensional graph drawing, and show that the resulting layouts outperform all existing algorithms in terms of local structure preservation, as measured by $k \mathbf { N N }$ classification accuracy. Second, we introduce graph contrastive neighbor embedding (graph CNE), which uses a fully-connected neural network (MLP) to transform graph node features into an embedding space by optimizing the contrastive InfoNCE objective. We show that graph CNE, while being conceptually simpler than most existing graph contrastive learning methods, produces competitive node representations and outperforms state-of-the-art MLP-based methods in terms of linear classification accuracy. |
|
|
| # 1 INTRODUCTION |
|
|
| Many real-world datasets, ranging from molecule structure to citation networks come in form of graphs. As graphs are abstract objects consisting of a set of nodes $\nu$ and a set of edges $\mathcal { E }$ , graph representation learning, i.e. embedding graph nodes into a vector space $\mathbb { R } ^ { d }$ , is a popular approach in machine learning. Traditionally, a distinction is made between graph layout (or graph drawing) methods, which embed nodes into $\mathbb { R } ^ { 2 }$ for visualization purposes, and graph contrastive learning methods, which use higher-dimensional embeddings more suitable for downstream analysis, such as classification or clustering. |
|
|
| For a graph $G = ( \nu , \mathcal { E } )$ , graph layout methods usually only take into account its structure and obtain the layout by pulling together connected nodes. In contrast, graph contrastive learning (GCL) |
|
|
|  |
| Figure 1: 2D embeddings of the Amazon Computer (ACO) and Photo (APH) datasets, obtained using our graph $t$ -SNE and graph CNE. Graph $t$ -SNE is a graph layout method. Graph CNE is a graph contrastive learning method, mapping node features to 2D (or other dimensionality, e.g. 128D, see Section 6) using a neural network. Embeddings were aligned using Procrustes rotation. |
|
|
| methods typically use node features $\mathbf { X }$ of size $n \times D$ where $n = | \mathcal { V } |$ and employ a neural network, usually a graph convolutional network (GCN) (Kipf & Welling, 2017), for the $\mathbf { R } ^ { D } \to \mathbf { R } ^ { d }$ mapping. GCL methods also pull connected nodes together, sometimes explicitly through their loss function, but also implicitly through the GCN architecture (Trivedi et al., 2022; Wang et al., 2023; Guo et al., 2023). |
|
|
| Recent work (Kruiger et al., 2017; Zhu et al., 2020a; Zhong et al., 2023; Bohm et al., 2022) pointed ¨ out deep connections between graph layout and neighbor embedding algorithms such as $t$ -SNE (Van der Maaten & Hinton, 2008) or UMAP (McInnes et al., 2018), which are based on neighborhood preservation. In parallel, another line of work explored connections between neighbor embeddings and contrastive learning (Damrich et al., 2022; Bohm et al., 2023; Hu et al., 2023). ¨ This raises the question to what extent neighbor embedding and contrastive neighbor embedding algorithms (see Section 3) can be useful for graph representation learning. |
|
|
| In this work, we answer this question. We introduce a novel graph layout algorithm, graph $t$ -SNE (Figure 1), and show that it strongly outperforms existing methods. We also introduce a novel, augmentation-free, GCL algorithm, graph CNE (Figure 1), based on the framework for contrastive neighbor embeddings, and show that it reaches competitive GCL performance without using GCNs. Conceptually, we present a single coherent framework for node-level graph representation learning, tying together graph layouts, graph contrastive learning, and neighbor embeddings. |
|
|
| # 2 RELATED WORK |
|
|
| Graph layouts Graph layout algorithms have traditionally been based on spring models, where every connected pair of nodes feels an attractive force $F _ { a }$ and all pairs of nodes feel a repulsive force $F _ { r }$ (force-directed graph layouts). Many algorithms can be written as $F _ { a } = d _ { i j } ^ { a }$ and $F _ { r } = d _ { i j } ^ { r }$ (Noack, 2007), where $d _ { i j }$ is the embedding distance between nodes. For example, Fruchterman– Reingold algorithm, also known as FDP, uses $a = 2 , r = - 1$ (Fruchterman & Reingold, 1991); ForceAtlas2 uses $a = 1 , r = - 1$ (Jacomy et al., 2014); LinLog uses $a = 0 , r = - 1$ (Noack, 2007). Efficient implementations can be based on Barnes–Hut approximation of the repulsive forces, as in SFDP (Hu, 2005). Relationship to neighbour embeddings was discussed by Bohm et al. (2022). ¨ |
|
|
| Graph layouts inspired by $t$ -SNE Several recent graph layout algorithms have been inspired by neighbor embeddings. tsNET (Kruiger et al., 2017) applied modified version of $t$ -SNE to the pairwise shortest path distances between all nodes. DRGraph (Zhu et al., 2020a) made tsNET faster by using negative sampling (Mikolov et al., 2013). $t$ -FDP (Zhong et al., 2023) suggested custom $F _ { a }$ and $F _ { r }$ forces inspired by $t$ -SNE and adopted interpolation-based approximation of Linderman et al. (2019). Below we will show that our graph $t$ -SNE outperforms both DRGraph and $t$ -FDP. Finally, Leow et al. (2019) also suggested an algorithm called ‘graph $t$ -SNE’, that used a graph convolutional network (Kipf & Welling, 2017) to build a parametric mapping optimizing a combination of $t$ -SNE losses on node features and on shortest graph distances; it has almost no relation to our graph $t { \cdot }$ -SNE. |
|
|
| Node-level graph contrastive learning The basic principle behind contrastive learning is to learn data representation by contrasting pairs of observations that are similar to each other (positive pairs) with those that are dissimilar to each other (negative pairs). In computer vision, positive pairs are generated via data augmentation, e.g. in SimCLR (Chen et al., 2020). Graph contrastive learning (GCL) requires node features (as input to the network) and can be graph-level or node-level, depending on whether representations are obtained for a set of graphs or for the set of nodes of a single graph. Graph-level GCL is based on graph augmentations, such as node dropping or edge perturbation, e.g. in GraphCL (You et al., 2020). Prominent examples of node-level GCL algorithms that are also based on graph augmentations include GRACE (Zhu et al., 2020b), GCA (Zhu et al., 2021), MVGRL (Hassani & Khasahmadi, 2020), DGI (Velickovic et al., 2019), BGRL (Thakoor et al., 2021), CCA-SSG (Zhang et al., 2021), etc. All of them use graph convolutional networks (GCN) to create graph embeddings. |
|
|
| Augmentation-free node-level GCL A general problem with domain-agnostic graph augmentations is that they can have unpredictable effects on graph semantics (Trivedi et al., 2022), as even minor augmentations can potentially result in a semantically different graph. This motivated development of augmentation-free GCL methods. Here positive pairs are pairs of nodes that are located close to each other in terms of graph distance. AFGRL (Lee et al., 2022) and AF-GCL (Li et al., 2023) treat nodes with small shortest path distance as candidate positives, and use $k$ nearest neighbors in GCN-based node representations to select actual positives. Local-GCL (Zhang et al., 2022) uses all first-order graph neighbors as positives, and employs random Fourier features to approximate $\mathcal { O } ( n ^ { 2 } )$ repulsive forces. All of these methods are also based on the GCN architecture. |
|
|
| # 3 BACKGROUND |
|
|
| # 3.1 NEIGHBOR EMBEDDINGS |
|
|
| Neighbor embeddings are a family of methods aiming to embed $n$ observations from some highdimensional metric space $\mathcal { X }$ into a lower-dimensional (usually two-dimensional) vector space $\bar { \mathbb { R } } ^ { d }$ , such that neighborhood relationships between observations are preserved in the embedding space. Typically, $\mathcal { X }$ is another real-valued space $\mathbb { R } ^ { p }$ , with $d \ll p$ . We denote the original vectors as $\mathbf { x } _ { i } \in \mathbb { R } ^ { p }$ and the embedding vectors as $\mathbf { y } _ { i } \in \bar { \mathbb { R } } ^ { d }$ . |
|
|
| One of the most popular neighbor embedding methods, $t { \cdot }$ -distributed stochastic neighbor embedding ( $t$ -SNE; Van der Maaten $\&$ Hinton, 2008) is an extension of the stochastic neighbor embedding (SNE) originally suggested by Hinton & Roweis (2002). $t$ -SNE minimizes the Kullback-Leibler divergence between the high-dimensional and low-dimensional affinities $p _ { i j }$ and $q _ { i j }$ : |
|
|
| $$ |
| \mathcal { L } = \mathrm { { K L } } ( \mathbf { P } \parallel \mathbf { Q } ) = \sum _ { i j } p _ { i j } \log \frac { p _ { i j } } { q _ { i j } } . |
| $$ |
|
|
| Both affinity matrices are defined to be symmetric, positive, and to sum to 1. In the original algorithm, $\mathbf { P }$ was computed using adaptive Gaussian kernels, but almost the same results can be obtained simply by normalizing and symmetrizing the $k \mathbf { N N }$ graph adjacency matrix A (Bohm et al., 2022): ¨ |
|
|
| $$ |
| \mathbf { P } = { \frac { \mathbf { A } / k + \mathbf { A } ^ { \top } / k } { 2 n } } . |
| $$ |
|
|
| Here A has element $a _ { i j } = 1$ if $\mathbf { x } _ { j }$ is within $k$ nearest neighbors of $\mathbf { x } _ { i }$ . Reasonable values of $k$ typically lie between 10 and 100. Low-dimensional affinities $\mathbf { Q }$ are defined in $t$ -SNE using a $t$ - distribution kernel with one degree of freedom, also known as the Cauchy kernel: |
|
|
| $$ |
| q _ { i j } = \frac { ( 1 + \| \mathbf { y } _ { i } - \mathbf { y } _ { j } \| ^ { 2 } ) ^ { - 1 } } { \sum _ { k \neq l } ( 1 + \| \mathbf { y } _ { l } - \mathbf { y } _ { k } \| ^ { 2 } ) ^ { - 1 } } . |
| $$ |
|
|
| The original SNE algorithm used Gaussian kernel instead of Cauchy, which led to worse results when embedding high-dimensional data (Kobak et al., 2019). |
|
|
| Even though it is usually not presented like that, $t$ -SNE can be thought of as a graph layout algorithm for $k \mathbf { N N }$ graphs, in particular after the reformulation in Equation 2. During optimization, neighboring nodes (sharing an edge) feel attraction, whereas all nodes feel repulsion, arising through the normalization in Equation 3. In practice, $t$ -SNE optimization can be accelerated by an approximation of the repulsive force field based on the Barnes–Hut algorithm (Van Der Maaten, 2014; Yang et al., 2013) or on interpolation (Linderman et al., 2019). |
|
|
| # 3.2 CONTRASTIVE NEIGHBOR EMBEDDINGS |
|
|
| The contrastive neighbor embedding (CNE) algorithm (Damrich et al., 2022) is a flexible framework that also operates on the $k \mathbf { N N }$ graph of the data, and optimizes the embedding in order to place connected nodes closer together than unconnected pairs of nodes. Damrich et al. (2022) considered three different loss functions: NCE (noise-contrastive estimation) (Gutmann & Hyvarinen, 2010), ¨ InfoNCE (Jozefowicz et al., 2016; Oord et al., 2018), and negative sampling (Mikolov et al., 2013). These loss functions are called contrastive because they are based on contrasting edges and nonedges in the same mini-batch, and do not require a global normalization like in Equation 3. Using NCE and InfoNCE in CNE approximates $t$ -SNE. |
|
|
| Damrich et al. (2022) also considered parametric embeddings, where a neural network (usually a fully-connected network) is trained to produce embedding vectors $\mathbf { y } _ { i } ~ = ~ f ( \mathbf { x } _ { i } )$ using one of the loss function listed above. This allows to embed new observations that have not been part of the training process. In contrast, non-parametric embeddings optimize $\mathbf { y } _ { i }$ vectors directly, without any $f ( \cdot )$ function. Together, this yields six combinations, called parametric/non-parametric NC$t$ -SNE, InfoNC- $\mathbf { \nabla } \cdot t$ -SNE, and Neg- $\cdot t$ -SNE. Damrich et al. (2022) showed that Neg- $\cdot t$ -SNE is equivalent to UMAP (McInnes et al., 2018), while NC- $\cdot t .$ -SNE was first suggested by Artemenkov & Panov (2020) as NCVis. |
|
|
| Table 1: Benchmark datasets. Columns: number of nodes in the largest connected component, number of undirected edges, edges/nodes ratio, number of node classes, feature dimensionality. |
|
|
| <table><tr><td>Dataset</td><td>Abbr.</td><td>Nodes</td><td>Edges</td><td>E/N</td><td>Classes</td><td>Dim.</td></tr><tr><td>CiteseerGraphDataset</td><td>CSR</td><td>2120</td><td>3679</td><td>1.7</td><td>6</td><td>3703</td></tr><tr><td>CoraGraphDataset</td><td>COR</td><td>2485</td><td>5069</td><td>2.0</td><td>7</td><td>1433</td></tr><tr><td>AmazonCoBuyPhotoDataset</td><td>APH</td><td>7487</td><td>119 043</td><td>15.9</td><td>8</td><td>745</td></tr><tr><td>AmazonCoBuyComputerDataset</td><td>ACO</td><td>13381</td><td>245 778</td><td>18.4</td><td>10</td><td>767</td></tr><tr><td>PubmedGraphDataset</td><td>PUB</td><td>19717</td><td>44324</td><td>2.2</td><td>3</td><td>500</td></tr><tr><td>ogbn-arxiv</td><td>ARX</td><td>169 343</td><td>1157799</td><td>6.8</td><td>40</td><td>128</td></tr></table> |
|
|
| In this work we will only use the InfoNCE loss function, defined for one graph edge $i j$ (positive pair) as |
|
|
| $$ |
| \ell ( i , j ) = - \log \frac { q _ { i j } } { q _ { i j } + \sum _ { k = 1 } ^ { m } q _ { i k } } , |
| $$ |
|
|
| where the sum in the denominator is over $m$ negative pairs $i k$ where $k$ can be drawn from all nodes in the same mini-batch apart from $i$ and $j$ . One mini-batch consists of $b$ graph edges, and hence contains $2 b$ nodes. Therefore, for a given batch size $b$ , the maximal value of $m$ is $2 b - 2$ . The larger the $m$ , the closer InfoNC- $t$ -SNE is to $t$ -SNE (Damrich et al., 2022). The $q _ { i j }$ affinities do not need to be normalized and are defined simply as |
|
|
| $$ |
| q _ { i j } = ( 1 + \| \mathbf { y } _ { i } - \mathbf { y } _ { j } \| ^ { 2 } ) ^ { - 1 } . |
| $$ |
|
|
| It is easy to see that InfoNCE loss will aim to make $q _ { i j }$ large if $i j$ is a positive pair and small if it is a negative one. |
|
|
| When using high-dimensional embedding space, e.g. $d = 1 2 8$ instead of $d = 2$ , it makes sense to define $q _ { i j }$ using the Gaussian kernel transformation of the cosine distance (Damrich et al., 2022; Bohm et al., 2023):¨ |
|
|
| $$ |
| q _ { i j } = \exp \bigl ( \mathbf { y } _ { i } ^ { \mathsf { T } } \mathbf { y } _ { j } / ( \lVert \mathbf { y } _ { i } \rVert \cdot \lVert \mathbf { y } _ { j } \rVert ) / \tau \bigr ) = \mathrm { c o n s t } \cdot \exp \Big ( - \Big \lVert \frac { \mathbf { y } _ { i } } { \lVert \mathbf { y } _ { i } \rVert } - \frac { \mathbf { y } _ { j } } { \lVert \mathbf { y } _ { j } \rVert } \Big \rVert ^ { 2 } \Big / ( 2 \tau ) \Big ) , |
| $$ |
|
|
| where $\tau$ is called the temperature (by default, $\tau = 0 . 5$ ). Together with Equation 5, this gives the same loss function as used in SimCLR (Chen et al., 2020), a popular contrastive learning algorithm in computer vision. The only difference is that instead of $k \mathbf { N N }$ edges, SimCLR uses pairs of augmented images as positive pairs. |
|
|
| # 4 EXPERIMENTAL SETUP |
|
|
| Datasets We used six publicly available graph datasets (Table 1). All datasets were retrieved from the Deep Graph Library (Wang et al., 2019), except ogbn-arxiv, which was retrieved from the Open Graph Benchmark (Hu et al., 2020). Each dataset was treated as an unweighted undirected graph, where each node has a class label and a feature vector (typically a word embedding vector of some descriptive text about the node, such as a product review). We restricted ourselves to graphs with labeled nodes in order to use classification accuracy as the performance metric. We also restricted ourselves to graphs with feature vectors in order to use both non-parametric and parametric embeddings. In all datasets we used only the largest connected component, and excluded all selfloops if present, using NetworkX (Hagberg et al., 2008) functions connected components and selfloop edges. |
|
|
|  |
| Figure 2: Embeddings of the ACO and APH datasets obtained using FDP (Fruchterman & Reingold, 1991), DRGraph (Zhu et al., 2020a), and $t$ -FDP (Zhong et al., 2023), and our graph $t { \cdot }$ -SNE. Embeddings in each row were aligned using Procrustes rotation. See Figure A.3 for all six datasets. |
|
|
| Performance metrics We evaluated the performance of our methods using three performance metrics: $k$ -nearest-neighbors $( k \mathsf { N N } )$ recall, $k \mathbf { N N }$ classification accuracy, and, for high-dimensional embeddings, linear classification accuracy. |
|
|
| The $k \mathbf { N N }$ recall quantifies how well local node neighborhoods are preserved in the embedding. We defined it as the average fraction of each node’s graph neighbors that are among the node’s nearest neighbors in the embedding: |
|
|
| $$ |
| \mathrm { R e c a l l } = \frac { 1 } { | \mathcal { V } | } \sum _ { i = 1 } ^ { | \mathcal { V } | } \frac { \left| N _ { G } [ i ] \cap N _ { E , k _ { i } } [ i ] \right| } { k _ { i } } , |
| $$ |
|
|
| where $| \nu |$ is the number of nodes in the graph, $N _ { G } [ i ]$ is the set of node $i$ ’s graph neighbors, $N _ { E , k } [ i ]$ denotes the set of node $i$ ’s $k$ Euclidean nearest neighbors in the embedding space, and $k _ { i } = | N _ { G } [ i ] |$ is the number of node $i$ ’s graph neighbors. This metric is similar to what is commonly used in the literature to benchmark graph layout algorithms (Kruiger et al., 2017; Zhu et al., 2020a; Zhong et al., 2023), and so is our main metric for measuring graph layout quality. |
|
|
| The $k \mathbf { N N }$ classification accuracy quantifies local class separation in the embedding. To calculate $k \mathbf { N N }$ accuracy, we split all nodes into a training $( 2 / 3$ of all nodes) and a test set $( 1 / 3$ of all nodes), and used the sklearn.neighbors.KNeighborsClassifier with $k = 1 0$ (Pedregosa et al., 2011). Of note, we used the train/test split only for training the classifier but not for computing the graph embedding itself. We used sklearn.preprocessing.StandardScaler to standardize all features based on the training set. |
|
|
| For graph CNE with $d = 1 2 8$ , trained using cosine distance, we experimented with using cosinedistance-based $k \mathbf { N N }$ recall and accuracy, but found that it gave very close results to the Euclideandistance-based $k \mathbf { N N }$ evaluations (all differences below 1 percentage point). |
|
|
| For linear accuracy we used the sklearn.linear model.LogisticRegression class with no regularization (penalty $=$ None) and otherwise default parameters, and the same train/test split. Features were standardized using StandardScaler. |
|
|
| Computing environment All computations were performed on a remote computing server with an Intel Xeon Gold CPU with 16 double-threaded 2.9 Ghz cores, 384 GB of RAM, and an NVIDIA RTX A6000 GPU. GPU training was used for CNE models but not for $t$ -SNE. Computation times are shown in Figure A.1. For the largest dataset (ARX), graph $t$ -SNE took around 100 seconds and graph CNE took around 60 minutes. |
|
|
|  |
| Figure 3: Performance metrics for graph layouts: $k \mathbf { N N }$ recall and $k \mathbf { N N }$ accuracy. Datasets are ordered by the increasing sample size. See Figures 2 and A.3 for the corresponding layouts. |
|
|
| # 5 GRAPH LAYOUTS VIA GRAPH $t$ -SNE |
|
|
| The $t$ -SNE algorithm consists of two steps: first, it computes pairwise affinities between all pairs of points based on the $k \mathbf { N N }$ graph; second, it optimizes the embedding to match these affinities (Section 3.1). For graph $t$ -SNE, we replace the first step and obtain the affinity matrix directly from the graph adjacency matrix. We then run $t$ -SNE optimization to produce the embedding (Figure 1). |
|
|
| Given an unweighted graph $G = ( \nu , \mathcal { E } )$ , its adjacency matrix $\mathbf { A }$ is defined such that $A _ { i j } = 1$ if $( i , j ) \in \mathcal { E }$ and $A _ { i j } = 0$ otherwise. Since all graphs considered in this study are undirected, the adjacency matrix is a binary, symmetric square $n \times n$ matrix. In order to convert it into an affinity matrix suitable for $t$ -SNE, we follow the standard $t$ -SNE’s approach (Section 3.1): divide each row by the sum of its elements, then symmetrize the resulting matrix, and then normalize to sum to 1: |
|
|
| $$ |
| \mathbf { P } = { \frac { { \tilde { \mathbf { A } } } + { \tilde { \mathbf { A } } } ^ { \top } } { 2 n } } , { \mathrm { ~ w h e r e ~ } } { \tilde { A } } _ { i j } = A _ { i j } { \Big / } \sum _ { k = 1 } ^ { n } A _ { i k } . |
| $$ |
|
|
| For optimization, we used the openTSNE library (Policar et al., 2019) with default parameters. It ˇ uses Laplacian Eigenmaps (Belkin & Niyogi, 2003) for initialization (Kobak & Linderman, 2021), sets the learning rate equal to $n$ to achieve good convergence (Linderman & Steinerberger, 2019; Belkina et al., 2019), and employs fast FIt-SNE algorithm that has linear ${ \mathcal { O } } ( n )$ runtime (Linderman et al., 2019). |
|
|
| We compared graph $t$ -SNE with three existing graph layout algorithms: FDP (Fruchterman & Reingold, 1991), DRGraph (Zhu et al., 2020a), and $t$ -FDP (Zhong et al., 2023). We chose FDP because it is the default layout algorithm in a popular NetworkX package (Hagberg et al., 2008). Two other algorithms, $t$ -FDP and DRGraph, are recent and can be considered state-of-the-art (we did not use tsNET (Kruiger et al., 2017) for benchmarking, because it cannot embed large graphs and is outperformed by its successor DRGraph). We used the NetworkX implementation of FDP (networkx.drawing.layout.spring layout) and the original implementations of both $t$ -FDP and DRGraph, all with default parameters (Figure 2). |
|
|
| We found that graph $t$ -SNE consistently outperformed all competitors in terms of both $k \mathbf { N N }$ recall and $k \mathbf { N N }$ accuracy (Figure 3): it showed the highest values on all datasets, 12 out of 12 times. In agreement with the original results of Zhu et al. (2020a) and Zhong et al. (2023), we saw that DRGraph and $t$ -FDP outperformed FDP in both metrics. Our graph $t$ -SNE showed further improvement, and it was substantial: in terms of $k \mathbf { N N }$ recall, graph $t$ -SNE improved on the best competitor on average by 18.2 percentage points, and in terms of $k \mathbf { N N }$ accuracy — on average by 6.7 percentage points. The improvement was particularly strong for the largest graph (ARX), where performance of other methods strongly deteriorated. |
|
|
|  |
| Figure 4: Performance metrics for graph CNE compared to graph $t$ -SNE: $k \mathbf { N N }$ recall, $k \mathbf { N N }$ classification accuracy, and linear accuracy. Shading shows standard deviation over five CNE runs. Datasets are ordered by the increasing sample size. |
|
|
| Visually, the embeddings produced by graph $t$ -SNE looked similar to DRGraph embeddings (Figures 2 and A.3), but showed richer within-class structure, in agreement with the higher $k \mathbf { N N }$ recall values. |
|
|
| We have also experimented with an alternative way to convert the adjacency matrix into the affinity matrix: namely, to divide A by the sum of its elements: $\begin{array} { r } { \mathbf { P } = \mathbf { A } / \sum _ { i j } \hat { A _ { i j } } } \end{array}$ . This approach resulted in similar $k \mathbf { N N }$ recall and $k \mathbf { N N }$ accuracy values, but gave visually unpleasing embeddings, with lowdegree nodes pushed out to the periphery (Figure A.2). Furthermore, we experimented with various initialization schemes, but found that on our graphs, random initialization performed very similar to the default Laplacian Eigenmaps initialization. |
|
|
| # 6 NODE-LEVEL GRAPH CONTRASTIVE LEARNING VIA GRAPH CNE |
|
|
| Similar to $t$ -SNE, the CNE algorithm consists of two steps. First, it builds the $k \mathbf { N N }$ graph of the data. Second, it optimizes the embedding (in our case, parametric embedding) using a contrastive loss function such as InfoNCE to make neighbors be close in the embedding (Section 3.2). For graph CNE, we omit the first step and provide the graph to CNE directly. |
|
|
| We used parametric CNE models, setting the output dimensionality to $d = 2$ and $d = 1 2 8$ . In both cases we used a fully-connected network (MLP), as is default in CNE, with the number of neurons in each layer $D \ \to \ 1 0 0 \ \to \ 1 0 0 \ \to \ 1 0 0 \ \to \ d$ , where $D$ is the number of input node features (Table 1). For both dimensionalities we used the InfoNCE loss. Following Damrich et al. (2022), we used the cosine distance and the Gaussian similarity kernel for $d = 1 2 8$ , mimicking the standard SimCLR setup (Chen et al., 2020), and the Euclidean distance and the Cauchy similarity kernel for $d = 2$ , mimicking the standard $t$ -SNE setup. We set the number of negative samples to 100 (increasing it from the default 5 improved the results), and batch size to $\operatorname* { m i n } \{ \bar { 1 } 0 2 4 , | \mathcal { V } | / \bar { 1 } 0 \}$ (in pilot experiments we noticed that small graphs required smaller batch sizes for good convergence). The number of epochs was set to 100. Optimization parameters were left at default values: Adam optimizer (Kingma & Ba, 2015) with learning rate 0.001. |
|
|
| Compared to graph $t$ -SNE, graph CNE, with both $d = 2$ and $d = 1 2 8$ , had lower $k \mathbf { N N }$ recall (Figure 4). This is likely because graph CNE had to use node features, whereas graph $t$ -SNE was unconstrained by them and optimized graph neighborhood preservation directly. At the same time, $k \mathbf { N N }$ accuracy was very similar (Figure 4) on all datasets, apart from the ARX dataset. The comparatively poor performance of graph CNE on the ARX dataset was likely due to ARX feature space showing weak class separation (Table 2); whereas graph $t$ -SNE does not use node features and hence is not influenced by the feature quality. Visually, two-dimensional graph CNE embeddings looked very similar to graph $t$ -SNE embeddings (Figure 1), even though the former were parametric and the latter were non-parametric. |
|
|
| Table 2: Linear classification accuracy (in $\%$ ) of graph CNE and existing graph contrastive learning algorithms. Output dimensionality of CNE is indicated in brackets. The line marked by $\star$ shows $k \mathbf { N N }$ accuracy instead of linear accuracy. CNE values are mean $\pm$ standard deviation across five training runs. Non-CNE values are taken from Zhang et al. (2022), MLP values are taken from https://openreview.net/forum?id ${ . } = { }$ dSYkYNNZkV¬eId $\underline { { \underline { { \mathbf { \Pi } } } } } =$ aLQzIXVy0w and Guo et al. (2023). OOM denotes out-of-memory error. Datasets are ordered by the increasing sample size. For comparison, the first row shows linear accuracy in the feature space. |
|
|
| <table><tr><td></td><td>CSR</td><td>COR</td><td>APH</td><td>ACO</td><td>PUB</td><td>ARX</td></tr><tr><td>Feature space</td><td>70.3</td><td>68.6</td><td>90.7</td><td>79.6</td><td>87.8</td><td>55.1</td></tr><tr><td>Graph CNE (2)</td><td>65.4 ± 2.2</td><td>62.7 ± 6.2</td><td>73.2 ± 1.4</td><td>77.1 ±0.7</td><td>66.9 ± 2.3</td><td>41.7 ± 0.8</td></tr><tr><td>Graph CNE (2) *</td><td>72.1 ± 1.5</td><td>78.1± 3.2</td><td>92.9 ± 0.3</td><td>89.0± 0.2</td><td>77.2 ±0.6</td><td>45.3 ± 0.2</td></tr><tr><td>Graph CNE (128)</td><td>72.0 ± 1.3</td><td>80.0± 1.2</td><td>92.9 ± 0.5</td><td>86.8±0.7</td><td>84.6±0.6</td><td>52.9 ± 0.3</td></tr><tr><td>GRACE</td><td>71.2 ± 0.5</td><td>81.9 ± 0.4</td><td>92.2± 0.2</td><td>86.3± 0.3</td><td>80.6±0.4</td><td>0OM</td></tr><tr><td>GCA</td><td>72.1± 0.4</td><td>82.3 ± 0.4</td><td>92.5 ± 0.1</td><td>87.9 ± 0.3</td><td>80.7± 0.5</td><td>OOM</td></tr><tr><td>MVGRL</td><td>73.3 ± 0.5</td><td>83.5 ± 0.4</td><td>91.7± 0.1</td><td>87.5 ± 0.1</td><td>80.1±0.7</td><td>0OM</td></tr><tr><td>DGI</td><td>71.8±0.7</td><td>82.3 ± 0.6</td><td>91.6 ± 0.2</td><td>83.9± 0.5</td><td>76.8± 0.6</td><td>71.2 ± 0.2</td></tr><tr><td>BGRL</td><td>71.1±0.8</td><td>82.7 ± 0.6</td><td>93.1 ± 0.3</td><td>89.7 ± 0.4</td><td>79.6± 0.5</td><td>72.7± 0.2</td></tr><tr><td>CCA-SSG</td><td>73.1 ± 0.3</td><td>84.2 ± 0.4</td><td>93.1 ± 0.1</td><td>88.7± 0.3</td><td>81.6± 0.4</td><td>72.3 ± 0.2</td></tr><tr><td>AF-GCL</td><td>72.0±0.4</td><td>83.2± 0.2</td><td>92.5 ± 0.3</td><td>89.7±0.2</td><td>79.1 ± 0.8</td><td></td></tr><tr><td>AFGRL</td><td>68.7± 0.3</td><td>81.3± 0.2</td><td>93.2 ± 0.3</td><td>89.9 ± 0.3</td><td>80.6± 0.4</td><td>0OM</td></tr><tr><td>Local-GCL</td><td>73.6 ± 0.4</td><td>84.5± 0.4</td><td>93.3 ± 0.4</td><td>88.8±0.4</td><td>82.1 ± 0.5</td><td>71.3 ± 0.3</td></tr><tr><td>Local-GCL,MLP</td><td>70.3± 0.6</td><td>78.3± 0.5</td><td>90.9±0.4</td><td>82.4±0.5</td><td>79.6± 0.5</td><td></td></tr><tr><td>GRACE, MLP</td><td>65.5 ± 2.6</td><td>67.7 ± 0.9</td><td>87.9 ± 0.6</td><td>80.9 ± 1.2</td><td>83.3± 0.5</td><td></td></tr></table> |
| |
| As expected, CNE with $d = 1 2 8$ , yielded considerably higher linear classification accuracy compared to both 2-dimensional embeddings (Figure 4). In terms of linear accuracy, graph CNE performed comparably to the state-of-the-art graph contrastive learning (GCL) algorithms1 (Table 2). Graph CNE achieved the best results on one of the datasets (PUB), and had close to the best results on other datasets, apart from the ARX. |
| |
| Note that graph CNE was at disadvantage compared to all other GCL methods listed in Table 2 because it used an MLP network, whereas other GCL methods traditionally use graph convolutional networks (GCN). GCN takes the entire graph as input and uses message passing, which pulls together embeddings of connected nodes and helps to obtain better embeddings. However, GCN is not able to transform one node at a time, and so a trained GCN cannot be applied to a new, held-out node. In contrast, our graph CNE with MLP can (after training) process one node at a time, which we consider more appropriate for node-level graph learning (see Discussion). There are very few GCL results based on the MLP architecture reported in the literature. Two examples are Local-GCL and GRACE trained with MLP architecture (reported in the OpenReview discussion of Zhang et al. (2022) and in Guo et al. (2023) respectively, Table 2): both had lower accuracy compared to our graph CNE on all datasets. |
| |
| For the ARX graph, we did not find any existing MLP-based results. Lower performance of graph CNE compared to GCN-based GCL methods was, again, likely due to the feature space of this graph showing only weak class separation (Table 2, first row). |
| |
| # 7 DISCUSSION |
| |
| Summary Our paper makes three contributions, two practical and one conceptual: |
| |
| i. We suggested a novel graph layout algorithm, graph $t$ -SNE, and showed that it outperforms existing competitors in preserving local graph structure. |
| |
| ii. We suggested a novel node-level augmentation-free graph contrastive learning algorithm, graph CNE, and showed that it achieves comparable performance to the state-of-the-art methods despite using the MLP architecture, and outperforms existing MLP-based graph contrastive learning results. |
| iii. We established a conceptual connection between graph layouts and graph contrastive learning: we argued that both are instances of graph embeddings (non-parametric 2D embedding and parametric 128D embedding), and both can be efficiently implemented using neighbor embedding frameworks. We suggested a new task, parametric 2D embeddings (Figure 1), as a ‘missing link’ between these two existing tasks. |
| |
| Simplicity Both graph $t$ -SNE and graph CNE are remarkably simple, because they use existing $t$ -SNE and CNE machinery out of the box. This is in stark contrast with competing algorithms. For example, existing graph layout algorithms inspired by $t$ -SNE, such as tsNET (Kruiger et al., 2017), DRGraph (Zhu et al., 2020a), and $t$ -FDP (Zhong et al., 2023), all develop their own machinery, implementation, and approximations, and deviate from $t$ -SNE in many different nontrivial ways (see Section 2). However, as we demonstrated, simply using $t$ -SNE (via graph $t$ -SNE), outperforms all of them in terms of layout quality. |
| |
| Similarly, in node-level graph contrastive learning (GCL), the focus has been on developing graph augmentations (see Section 2), following the contrastive learning paradigm in computer vision that is based on image augmentations. Augmentation-free GCL methods such as AFGRL (Lee et al., 2022) and AF-GCL (Li et al., 2023) instead rely on complex heuristics to select positive pairs. Our approach is conceptually much simpler, as it uses the InfoNCE loss function with graph edges as positive pairs, and nothing else. The closest method in the literature is Local-GCL (Zhang et al., 2022), which also uses graph edges as positive pairs. The difference is that Local-GCL uses an approximation scheme to deal with $O ( n ^ { 2 } )$ repulsive forces, whereas we use the standard contrastive learning approach of within-batch repulsion, which is much simpler. |
| |
| All of the existing GCL methods, including Local-GCL, employ graph convolutional neural networks (GCNs). Recent work argued that the reason many GCL algorithms work well has little to do with the specific augmentations or heuristics they use, but rather is due to their GCN architecture (Trivedi et al., 2022; Guo et al., 2023). GCN uses message passing between graph nodes, which implicitly makes representations of connected node pairs more similar. In other words, in GCL algorithms employing GCNs, it is the GCN that does the heavy lifting, and not the specifics of the GCL algorithm. In contrast, our graph CNE uses an MLP network, and nevertheless performed similarly well. See below on why we think MLP is a more suitable choice for node-level GCL tasks. |
| |
| Limitations In this work, we focused on complex real-world graphs and have purposefully not tested our graph $t$ -SNE on simple planar graphs or 3D mesh graphs that are often used for benchmarking graph layout algorithms. We suspect that graph $t$ -SNE would perform suboptimally on such graphs, as $t$ -SNE is known to have troubles with embedding simple 2D manifolds such as the Swiss roll. To some extent this can be addressed by increasing the degree of freedom parameter of the $t$ -distribution or using the Gaussian kernel instead (Kobak et al., 2019), and/or by increasing the exaggeration value (Kobak & Berens, 2019; Bohm et al., 2022; Damrich et al., 2022). ¨ |
| |
| Our graph CNE relies on the MLP and we did not experiment with GCN architecture. This, however, is not a limitation but a purposeful design choice: we think that GCN, whereas very meaningful for graph-level learning, is less applicable for node-level learning, where one may want to apply the trained model to a set of new objects (based on their node features). With GCN, this is not possible, as it requires the entire graph to be passed in at the same time. We therefore consider MLP architecture more appropriate for node-level GCL. |
| |
| Take-home message We showed that graph layouts and graph contrastive learning are intimately related and can be approached by existing neighbour embedding frameworks, surpassing state-ofthe-art results. |
| |
| # REFERENCES |
| |
| Aleksandr Artemenkov and Maxim Panov. NCVis: noise contrastive approach for scalable visualization. In Proceedings of The Web Conference 2020, pp. 2941–2947, 2020. |
| |
| Mikhail Belkin and Partha Niyogi. Laplacian eigenmaps for dimensionality reduction and data representation. Neural Computation, 15(6):1373–1396, 2003. |
| Anna C Belkina, Christopher O Ciccolella, Rina Anno, Richard Halpert, Josef Spidlen, and Jennifer E Snyder-Cappione. Automated optimized parameters for T-distributed stochastic neighbor embedding improve visualization and analysis of large datasets. Nature Communications, 10(1): 5415, 2019. |
| Jan Niklas Bohm, Philipp Berens, and Dmitry Kobak. Attraction-repulsion spectrum in neighbor ¨ embeddings. The Journal of Machine Learning Research, 23(1):4118–4149, 2022. |
| Jan Niklas Bohm, Philipp Berens, and Dmitry Kobak. Unsupervised visualization of image datasets ¨ using contrastive learning. International Conference on Learning Representations, 2023. |
| Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International Conference on Machine Learning, pp. 1597–1607. PMLR, 2020. |
| Sebastian Damrich, Niklas Bohm, Fred A Hamprecht, and Dmitry Kobak. From ¨ $t$ -SNE to UMAP with contrastive learning. In The Eleventh International Conference on Learning Representations, 2022. |
| Thomas MJ Fruchterman and Edward M Reingold. Graph drawing by force-directed placement. Software: Practice and Experience, 21(11):1129–1164, 1991. |
| Xiaojun Guo, Yifei Wang, Zeming Wei, and Yisen Wang. Architecture matters: Uncovering implicit mechanisms in graph contrastive learning. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. |
| Michael Gutmann and Aapo Hyvarinen. Noise-contrastive estimation: A new estimation principle ¨ for unnormalized statistical models. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 297–304. JMLR Workshop and Conference Proceedings, 2010. |
| Aric Hagberg, Pieter Swart, and Daniel S Chult. Exploring network structure, dynamics, and function using NetworkX. Technical report, Los Alamos National Lab, 2008. |
| Kaveh Hassani and Amir Hosein Khasahmadi. Contrastive multi-view representation learning on graphs. In International Conference on Machine Learning, pp. 4116–4126. PMLR, 2020. |
| Geoffrey E Hinton and Sam Roweis. Stochastic neighbor embedding. Advances in Neural Information Processing Systems, 15, 2002. |
| Tianyang Hu, Zhili Liu, Fengwei Zhou, Wenjia Wang, and Weiran Huang. Your contrastive learning is secretly doing stochastic neighbor embedding. International Conference on Learning Representations, 2023. |
| Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: Datasets for machine learning on graphs. Advances in Neural Information Processing Systems, 33:22118–22133, 2020. |
| Yifan Hu. Efficient, high-quality force-directed graph drawing. Mathematica Journal, 10(1):37–71, 2005. |
| Mathieu Jacomy, Tommaso Venturini, Sebastien Heymann, and Mathieu Bastian. ForceAtlas2, a continuous graph layout algorithm for handy network visualization designed for the gephi software. PloS One, 9(6):e98679, 2014. |
| Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. |
| Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. International Conference on Learning Representations, 2015. |
| Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. International Conference for Learning Representations, 2017. |
| Dmitry Kobak and Philipp Berens. The art of using t-SNE for single-cell transcriptomics. Nature Communications, 10(1):5416, 2019. |
| Dmitry Kobak and George C Linderman. Initialization is critical for preserving global data structure in both t-SNE and UMAP. Nature Biotechnology, 39(2):156–157, 2021. |
| Dmitry Kobak, George Linderman, Stefan Steinerberger, Yuval Kluger, and Philipp Berens. Heavytailed kernels reveal a finer cluster structure in t-SNE visualisations. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 124–139. Springer, 2019. |
| Johannes F Kruiger, Paulo E Rauber, Rafael Messias Martins, Andreas Kerren, Stephen Kobourov, and Alexandru C Telea. Graph layouts by t-SNE. In Computer Graphics Forum, volume 36, pp. 283–294. Wiley Online Library, 2017. |
| Namkyeong Lee, Junseok Lee, and Chanyoung Park. Augmentation-free self-supervised learning on graphs. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pp. 7372–7380, 2022. |
| Yao Yang Leow, Thomas Laurent, and Xavier Bresson. GraphTSNE: a visualization technique for graph-structured data. Representation Learning on Graphs and Manifold Workshop at the International Conference for Learning Representations, 2019. |
| Haifeng Li, Jun Cao, Jiawei Zhu, Qinyao Luo, Silu He, and Xuying Wang. Augmentation-free graph contrastive learning of invariant-discriminative representations. IEEE Transactions on Neural Networks and Learning Systems, pp. 1–11, 2023. |
| George C Linderman and Stefan Steinerberger. Clustering with t-SNE, provably. SIAM Journal on Mathematics of Data Science, 1(2):313–332, 2019. |
| George C Linderman, Manas Rachh, Jeremy G Hoskins, Stefan Steinerberger, and Yuval Kluger. Fast interpolation-based t-SNE for improved visualization of single-cell RNA-seq data. Nature Methods, 16(3):243–245, 2019. |
| Leland McInnes, John Healy, and James Melville. UMAP: Uniform manifold approximation and projection for dimension reduction. arXiv preprint arXiv:1802.03426, 2018. |
| Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. Advances in Neural Information Processing Systems, 26, 2013. |
| Andreas Noack. Energy models for graph clustering. Journal of Graph Algorithms and Applications, 11(2):453–480, 2007. |
| Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. |
| Fabian Pedregosa, Gael Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier ¨ Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, et al. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011. |
| Pavlin G Policar, Martin Stra ˇ zar, and Bla ˇ z Zupan. openTSNE: a modular Python library for t-SNE ˇ dimensionality reduction and embedding. BioRxiv, pp. 731877, 2019. |
| Shantanu Thakoor, Corentin Tallec, Mohammad Gheshlaghi Azar, Mehdi Azabou, Eva L Dyer, Remi Munos, Petar Velickovi ˇ c, and Michal Valko. Large-scale representation learning on graphs ´ via bootstrapping. arXiv preprint arXiv:2102.06514, 2021. |
| Puja Trivedi, Ekdeep Singh Lubana, Yujun Yan, Yaoqing Yang, and Danai Koutra. Augmentations in graph contrastive learning: Current methodological flaws & towards better practices. In Proceedings of the ACM Web Conference 2022, pp. 1538–1549, 2022. |
| Laurens Van Der Maaten. Accelerating t-SNE using tree-based algorithms. The Journal of Machine Learning Research, 15(1):3221–3245, 2014. |
| Laurens Van der Maaten and Geoffrey Hinton. Visualizing data using t-SNE. Journal of Machine Learning Research, 9(11), 2008. |
| Petar Velickovic, William Fedus, William L Hamilton, Pietro Lio, Yoshua Bengio, and R Devon. \` 676 hjelm. Deep graph infomax. ICLR, 2(3):4, 2019. |
| Minjie Wang, Da Zheng, Zihao Ye, Quan Gan, Mufei Li, Xiang Song, Jinjing Zhou, Chao Ma, Lingfan Yu, Yu Gai, et al. Deep graph library: A graph-centric, highly-performant package for graph neural networks. arXiv preprint arXiv:1909.01315, 2019. |
| Yifei Wang, Qi Zhang, Tianqi Du, Jiansheng Yang, Zhouchen Lin, and Yisen Wang. A message passing perspective on learning dynamics of contrastive learning. International Conference on Learning Representations, 2023. |
| Zhirong Yang, Jaakko Peltonen, and Samuel Kaski. Scalable optimization of neighbor embedding for visualization. In International Conference on Machine Learning, pp. 127–135. PMLR, 2013. |
| Yuning You, Tianlong Chen, Yongduo Sui, Ting Chen, Zhangyang Wang, and Yang Shen. Graph contrastive learning with augmentations. Advances in Neural Information Processing Systems, 33:5812–5823, 2020. |
| Hengrui Zhang, Qitian Wu, Junchi Yan, David Wipf, and Philip S Yu. From canonical correlation analysis to self-supervised graph neural networks. Advances in Neural Information Processing Systems, 34:76–89, 2021. |
| Hengrui Zhang, Qitian Wu, Yu Wang, Shaofeng Zhang, Junchi Yan, and Philip S Yu. Localized contrastive learning on graphs. arXiv preprint arXiv:2212.04604, 2022. |
| Fahai Zhong, Mingliang Xue, Jian Zhang, Fan Zhang, Rui Ban, Oliver Deussen, and Yunhai Wang. Force-directed graph layouts revisited: a new force based on the t-distribution. IEEE Transactions on Visualization and Computer Graphics, 2023. |
| Minfeng Zhu, Wei Chen, Yuanzhe Hu, Yuxuan Hou, Liangjun Liu, and Kaiyuan Zhang. DRGraph: An efficient graph layout algorithm for large-scale graphs by dimensionality reduction. IEEE Transactions on Visualization and Computer Graphics, 27(2):1666–1676, 2020a. |
| Yanqiao Zhu, Yichen Xu, Feng Yu, Qiang Liu, Shu Wu, and Liang Wang. Deep graph contrastive representation learning. arXiv preprint arXiv:2006.04131, 2020b. |
| Yanqiao Zhu, Yichen Xu, Feng Yu, Qiang Liu, Shu Wu, and Liang Wang. Graph contrastive learning with adaptive augmentation. In Proceedings of the Web Conference 2021, pp. 2069–2080, 2021. |
| |
| # A SUPPLEMENTARY FIGURES |
| |
|  |
| Figure A.1: Computation times for graph $t$ -SNE and graph CNE with 2 and 128 output dimensions. openTSNE was run on CPU with $\mathrm { n - j } \mathrm { o b s = - 1 }$ . CNE was run on GPU. Datasets are ordered by the increasing number of nodes. The runtime of openTSNE (for a given number of gradient descent steps) grows linearly with the number of nodes. The runtime of CNE (for a given number of epochs and a given batch size) grows linearly with the number of edges. The Pubmed dataset (PUB) has fewer edges than the Amazon datasets (APH and ACO), see Table 1. |
| |
|  |
| ACO, per-node normalization |
| ACO, whole-matrix normalization |
| Figure A.2: Graph $t { \cdot }$ -SNE visualizations of ACO and APH datasets using per-node normalization of the adjacency matrix (default) and whole-matrix normalization. Embeddings in each row were aligned using Procrustes rotation. |
| |
|  |
| Figure A.3: Embeddings of all considered datasets obtained using FDP (Fruchterman & Reingold, 1991), DRGraph (Zhu et al., 2020a), and $t$ -FDP (Zhong et al., 2023), and our graph $t$ -SNE. Embeddings in each row were aligned using Procrustes rotation. |