diff --git a/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/60d4a255-ee6c-453e-8c72-b165437608ff_content_list.json b/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/60d4a255-ee6c-453e-8c72-b165437608ff_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..920572c95f1bdf1883729f0bfda8911ba349661e
--- /dev/null
+++ b/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/60d4a255-ee6c-453e-8c72-b165437608ff_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a2e41a158c0e89ae360760cbe72a4e375b06d7742ca8e2ebdc6d9c3904bd425f
+size 121122
diff --git a/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/60d4a255-ee6c-453e-8c72-b165437608ff_model.json b/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/60d4a255-ee6c-453e-8c72-b165437608ff_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..c8f096c2cdf01a4ce3f29b5bd3efeb8113374ad1
--- /dev/null
+++ b/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/60d4a255-ee6c-453e-8c72-b165437608ff_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3b13bd5284a2de8e3d0325b52f9656399670a4373e694c2362c6aa96468f1855
+size 152655
diff --git a/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/60d4a255-ee6c-453e-8c72-b165437608ff_origin.pdf b/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/60d4a255-ee6c-453e-8c72-b165437608ff_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..377ff0e93cb3cb5e74f3342f3662906b7fd3b472
--- /dev/null
+++ b/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/60d4a255-ee6c-453e-8c72-b165437608ff_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3908e5355a1345983d915fa1dd34ee654dd81953ae03c4d822a55ff7a19a1c5e
+size 8354552
diff --git a/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/full.md b/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..3e72530a3846768209c28f5630b9a86761df6c64
--- /dev/null
+++ b/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/full.md
@@ -0,0 +1,475 @@
+# GLORA: A BENCHMARK TO EVALUATE THE ABILITIES TO LEARN LONG-RANGE DEPENDENCIES IN GRAPHS
+
+Dongzhuoran Zhou & Evgeny Kharlamov
+
+Bosch Center for AI, Germany and University of Oslo, Norway
+
+{dongzhuoran.zhou,evgeny.kharlamov}@de.bosch.com
+
+Egor V. Kostylev
+
+University of Oslo, Norway
+
+egork@ifi.uio.no
+
+# ABSTRACT
+
+Learning on graphs is one of the most active research topics in machine learning (ML). Among the key challenges in this field, effectively learning long-range dependencies in graphs has been particularly difficult. It has been observed that, in practice, the performance of many ML approaches, including various types of graph neural networks (GNNs), degrades significantly when the learning task involves long-range dependencies—that is, when the answer is determined by the presence of a certain path of significant length in the graph. This issue has been attributed to several phenomena, including over-smoothing, over-squashing, and vanishing gradient. A number of solutions have been proposed to mitigate these causes. However, evaluation of these solutions is currently challenging because existing benchmarks do not effectively test systems for their ability to learn tasks based on long-range dependencies in a transparent manner. In this paper, we introduce GLoRa, a synthetic benchmark that allows testing of systems for this ability in a systematic way. We then evaluate state-of-the-art systems using GLoRa and conclude that none of them can confidently claim to learn long-range dependencies well. We also observe that this weak performance cannot be attributed to any of the three causes, highlighting the need for further investigation.
+
+# 1 INTRODUCTION
+
+Graph structures are very common in many domains, including molecules in chemistry, social networks on the Web, and road networks in traffic management. Thus, it is not surprising that learning on graphs is among the most active topics in the theory and practice of ML. However, standard ML approaches, such as classic deep neural networks, are difficult to apply to graphs due to their non-trivial structure, and dedicated approaches have been developed for learning on graphs. The most prominent are based on the idea of Graph Neural Networks (GNNs) (Scarselli et al., 2008), where each layer updates the vector embedding of each node by aggregating the embeddings of the neighbours from the previous layer and combining the result with the previous embedding of the node itself. There are many GNN variants proposed in the literature, from basic GCNs (Kipf & Welling, 2017) and GraphSAGE (Hamilton et al., 2017) to more advanced methods such as Drew-GCN (Gutteridge et al., 2023) with Laplacian encoding (Kreuzer et al., 2021).
+
+Many GNN-based systems have had great success in various tasks in learning on graphs. However, it is also observed that the performance of such systems degrades dramatically when the task involves learning long-range dependencies—that is, when the ground-truth answer for a node in the graph (or, for graph-level tasks, for the full graph) depends on interaction of nodes with large graph distance between them (Alon & Yahav, 2021). However, this property is crucial for tasks in many applications, and essential interactions along several dozen of graph edges are not uncommon. For example, in the Web context, tasks such as social influence prediction (Qiu et al., 2018), social representation learning (Liu et al., 2022), and item recommendation (Fan et al., 2019) rely on the wide spread of information in social network and user-item graphs. In urban data mining, long-range dependencies are evident in
+
+air quality (Iskandaryan et al., 2023) and traffic flow prediction (Li & Zhu, 2021). In internet safety and finance, the challenges of fake news detection (Han et al., 2020) and anti-money laundering (Weber et al., 2018) are critical to detecting such dependencies in the corresponding graphs. Finally, in biochemistry, long-range dependencies emerge in protein-protein interaction (Jha et al., 2022) and drug side effects prediction (Bongini et al., 2022), where the properties are influenced by long chains of atoms in molecule graphs.
+
+Numerous works address the long-range dependency learning issue by trying to identify its causes and suggesting methods to mitigate these causes. Most prominently, the long-range issue was attributed to three phenomena: over-smoothing (Li et al., 2018), which is an observation that in many GNN architectures the embeddings of all nodes converge to the same constant vector as the number of layers increases; over-squashing (Alon & Yahav, 2021), concerning that the information from many nodes that are potentially relevant for the outcome of the target node has to be compressed into a fixed-size vector; and more classical vanishing gradient (Glorot & Bengio, 2010), saying that, as the number of layers increases, the gradient magnitude of the loss usually decreases, thus slowing training down.
+
+Several methods have been proposed to mitigate each of these phenomena. However, as a starting point for this paper, we observe that there are no methods that can with certainty verify whether an ML system is able to learn dependencies of a given length. Indeed, such systems are often evaluated on benchmarks based on real-life datasets (Dwivedi et al., 2023; Morris et al., 2020), whose properties are not known and not controlled enough to give any guarantees. For example, even if an ML system performs relatively well on such a benchmark, we do not know whether the function to learn and the function the system really learned rely on long-range dependencies. There are also a number of dedicated synthetic benchmarks (Di Giovanni et al., 2023; Bodnar et al., 2021; Alon & Yahav, 2021) to evaluate the long-range performance of such systems. Unfortunately, as we will see in more detail later on, these benchmarks are also not suitable for such guarantees, because they either allow simple functions that do not rely on long-range dependencies but perfectly fit the data examples, or, on the contrary, do not have fitting functions expressible in the GNN architectures.
+
+The main contribution of this paper overcomes these shortcomings; in particular, we present a synthetic benchmark (more precisely, an algorithm that generates a benchmark for every dependency length) and a method how to use this benchmark to identify, with certain guarantees, how long dependencies a graph learning system can learn. As our second contribution, we evaluate the state-of-the-art systems using our method, concluding that their dependency length limit is always very modest. As a final contribution, we demonstrate, by means of dedicated experiments, that the degradation of performance with increasing length cannot be attributed to any of the three phenomena. Therefore, further investigation is required to identify the real cause of the long-range dependency learning issue and to develop new methods to mitigate this issue.
+
+The rest of the paper is organised as follows. In Section 2, we first specify the typical graph ML tasks and formally introduce the long-range dependency issue, concentrating on a variant of formalisation that we call path-aware. Then we discuss possible causes for this issue identified in the literature and proposed evaluation methods; thus, Sections 2.3 and 2.4 give an overview of the most essential related work for this paper. Finally, we argue that these methods are not satisfactory, thus justifying the need for our benchmarks. We present our benchmark, which we call GLoRa (Graph Long-Range dependency benchmark), in Section 3, where we include detailed intuition and formal justifications that GLoRa benchmarks possess the desired formal properties. Then, in Section 4 we report the results of our experiments. The main experiment demonstrates that none of the state-of-the-art systems can learn dependencies beyond the very modest length 11. Secondary experiments demonstrate that this degradation cannot be attributed to any of the three phenomena. We conclude in Section 5. Secondary supporting materials for the claims of the paper are given in the appendices.
+
+# 2 THE CHALLENGE OF LEARNING LONG-RANGE DEPENDENCIES
+
+In this section, we first introduce typical graph ML tasks and graph neural networks as the standard approach to solving these tasks. We then formalise the long-range dependency learning issue, discuss its possible causes, and overview the existing benchmarks for this issue. Finally, we argue that these benchmarks are not satisfactory, thus justifying the need for our benchmark (presented in Section 3).
+
+# 2.1 LEARNING ON GRAPHS
+
+As customary in the context of graph ML, we formalise a graph as a triple $(\mathcal{V},\mathcal{E},\lambda)$ , where $\mathcal{V}$ is a finite set of nodes, $\mathcal{E} \subseteq \mathcal{V} \times \mathcal{V}$ is a set of edges, which are pairs of nodes, and $\lambda: \mathcal{V} \to \mathbb{R}^n$ is the node embedding, which is an assignment of real-valued vectors of some dimension $n \in \mathbb{N}$ to the nodes.
+
+Note here that we assume edges to be directed; undirected graphs, which are sometimes adopted in graph learning, can be represented in this formalisation by assuming that $\mathcal{E}$ is symmetric—that is, such that $(v_{1}, v_{2}) \in \mathcal{E}$ implies $(v_{2}, v_{1}) \in \mathcal{E}$ . As we will see later, our benchmark has a version for both the directed and undirected settings, and our experiments show that each considered existing system performs similarly across these versions; however, the directed version has a conceptual advantage, which ensures stronger guarantees (see Section 4.2). Note also that only nodes in our graphs have embeddings; this is just for brevity, and all our ideas apply to graphs with edge embeddings.
+
+The most common ML task on graphs is (supervised) node classification, where a system needs to learn, using training examples, a function that assigns a class (called a label in this context) from a finite set to each graph node. Binary classification is a particular case when there are only two classes, True and False. Another common task is node regression, where the function assigns a numeric value instead of a class. Both classification and regression may be transductive, when all relevant nodes (for all training, validation, and testing) belong to the same graph, fully known for training. The more general is the inductive setting, where each example may have its own graph (with the same node embedding dimension). Tasks very close in essence to the inductive tasks are graph classification and regression, where a value is assigned to the entire graph. In our presentation, we concentrate on inductive binary node classification, but all our ideas transfer directly to the other settings.
+
+# 2.2 GRAPH NEURAL NETWORKS
+
+In principle, we can use many ML approaches to graph learning. However, usual methods, such as deep neural networks, have limited applicability in our setting, because graphs may be of arbitrary size (e.g., a model trained on small graphs should be applicable to arbitrarily bigger graphs); moreover, a graph learning model is expected to be agnostic to graph representation—that is, the answer should be invariant over reshuffling of nodes and edges in the model's input. Thus, a standard neural architecture for graph learning is (message-passing) graph neural networks (GNNs); in general form, a GNN $\mathcal{N}$ with $L$ layers for classifying nodes with embedding dimension $n$ to classes $C$ is a triple
+
+$$
+\left(\left\{\operatorname {A g g} _ {\ell} \right\} _ {\ell \in \{1, \dots , L \}}, \left\{\operatorname {C o m b} _ {\ell} \right\} _ {\ell \in \{1, \dots , L \}}, \text {C l a s s}\right),
+$$
+
+where each aggregation function $\mathrm{Agg}_{\ell}$ maps a multiset of vectors of size $n_{\ell -1}$ to such a vector, each combination function $\mathrm{Comb}_{\ell}$ maps two vectors of size $n_{\ell -1}$ to a vector of size $n_{\ell}$ , and classification function Class maps a vector of size $n_{L}$ to a class in $C$ ; here, $n_0 = n$ and each $n_{\ell}$ is the dimension of layer $\ell$ . The aggregation, combination, and classification functions of a GNN usually depend on learnable parameters of the model, while $L$ and each $n_{\ell}$ , $\ell \in \{1,\dots ,L\}$ , are fixed in advance or among the hyperparameters. Given an input graph $G = (\mathcal{V},\mathcal{E},\lambda)$ with dimension $n$ , GNN $\mathcal{N}$ computes, for each $\ell \in \{1,\ldots ,L\}$ , the $\ell$ -th embedding $\mathbf{v}_{\ell}$ of each $v\in \mathcal{V}$ as
+
+$$
+\mathbf {v} _ {\ell} = \operatorname {C o m b} _ {\ell} \left(\mathbf {v} _ {\ell - 1}, \operatorname {A g g} _ {\ell} \left(\left\{\left\{\mathbf {u} _ {\ell - 1} \mid u \in N (v) \right\} \right\}\right)\right), \tag {1}
+$$
+
+where $\{\{\cdot \mid \cdot \}\}$ is the multiset constructor, each $\mathbf{v}_0$ is $\lambda (v)$ , and each $N(v)$ is the neighbourhood $\{u\in \mathcal{V}\mid (u,v)\in \mathcal{E}\}$ of a node $v$ in $G$ ; then, the final classification of each $v$ is $\mathrm{Class}(\mathbf{v}_L)$ .
+
+A GNN example is graph convolutional networks (GCNs) (Kipf & Welling, 2017) instantiating (1) as
+
+$$
+\mathbf {v} _ {\ell} = \sigma \left(\sum_ {u \in N (v) \cup \{v \}} \frac {\mathbf {W} _ {\ell} \mathbf {u} _ {\ell - 1}}{\sqrt {| N (v) | \cdot | N (u) |}}\right),
+$$
+
+where $\sigma$ is a non-linearity activation function, such as ReLU or sigmoid, and each $\mathbf{W}_{\ell}$ is a learnable matrix of parameters (of dimension $n_{\ell} \times n_{\ell-1}$ ); it may also be assumed that, for binary classification, the final dimension $n_{L}$ is 1, and $\mathrm{Class}(v)$ just thresholds $\mathbf{v}_L$ .
+
+Many other variants of GNN are suggested in the literature (GINs (Xu et al., 2019), GraphSAGE (Hamilton et al., 2017), GATs (Velickovic et al., 2018), etc.). Moreover, there are a number of proposals to use a known GNN architecture, but apply it to a modification of the input graph $G$ rather
+
+than to $G$ itself; the most prominent such idea is to rewire $G$ by adding and removing nodes and edges according to some (often quite sophisticated) rule (Gutteridge et al., 2023; Abboud et al., 2022; Alon & Yahav, 2021; Gasteiger et al., 2019b; Topping et al., 2022; Karhadkar et al., 2023). An extreme of this idea is graph transformers (Dwivedi & Bresson, 2020; Kreuzer et al., 2021; Rampasek et al., 2022), where an edge is added between each two nodes, and an attention mechanism is employed to learn nontrivial dependencies. As we will see in the next section, several rewiring-based methods have been proposed to mitigate difficulties with learning long-range dependencies. Another idea to deal with long-range dependencies is realised by implicit GNNs (Gu et al., 2020; Liu et al., 2021; Chen et al., 2022), where the number of layers is not predefined but the same transformation is applied many times until (approximate) convergence. We omit the details of these systems here, because in this benchmark paper we largely treat graph learning systems as a black-box.
+
+Intuitively, node classification functions may be characterised by how long the dependencies they rely on are—that is, how far the target node (i.e., the node to classify) may be from the nodes that this node needs to interact with to decide its classification. It has been observed many times in practice that the quality of learning node classification functions using standard graph learning methods (e.g., GCNs) degrades dramatically when the function to learn relies on long dependencies (Gutteridge et al., 2023; Di Giovanni et al., 2023). As we will discuss in Section 2.3, this issue has been attributed to several causes, and a number of methods are proposed to mitigate this issue. However, we first note that, to the best of our knowledge, the long-range dependencies are not yet formalised in the context of graph learning, and only informal explanations have been suggested (Alon & Yahav, 2021; Dwivedi et al., 2022). Since this issue is central to our paper, we next give such a formalisation.
+
+In the following, let, as usual, a simple path $p$ from a node $v' \in \mathcal{V}$ to a node $v \in \mathcal{V}$ of length $d$ in a graph $(\mathcal{V}, \mathcal{E}, \lambda)$ be a sequence $v_0, \ldots, v_d$ of distinct nodes in $\mathcal{V}$ such that $v_0 = v'$ , $v_d = v$ , and $(v_{i-1}, v_i) \in \mathcal{E}$ for every $i$ with $1 \leq i \leq d$ . Let then $G^{p[k,m]}$ , for every $k, m$ with $0 < k \leq m < d$ , be the graph obtained from $G$ by duplicating the part of $p$ between $v_k$ and $v_m$ —that is, the graph with nodes $\mathcal{V} \cup \{v_k', \ldots, v_m'\}$ ; edges $\mathcal{E} \cup \mathcal{E}'$ , where $\mathcal{E}'$ contains an edge $(u^1, u^2)$ for each $(v^1, v^2) \in \mathcal{E}$ , such that each $u^h$ with $h \in \{1, 2\}$ is $v_j'$ , if $v^h$ is $v_j$ for some $j$ with $k \leq j \leq m$ , and $v^h$ otherwise; and embedding $\lambda'$ extending $\lambda$ with $\lambda'(v_j') = \lambda(v_j)$ for each $j$ with $k \leq j \leq m$ .
+
+Definition 1 A node classification function $f$ for the node embedding dimension $n$ relies on a (path-aware) dependency of length $d$ if there is a graph $G = (\mathcal{V},\mathcal{E},\lambda)$ with dimension $n$ , a node $v\in \mathcal{V}$ , a simple path $p = v_{0},\ldots ,v_{d - 1},v$ , and vectors $\mathbf{a}_i\neq \lambda (v_i)$ in $\mathbb{R}^n$ , for each $i$ with $0 < i < d$ , such that
+
+- for each $i$ with $0 < i < d$ , $f(G, v) \neq f(G_i, v)$ where the graph $G_i = (\mathcal{V}, \mathcal{E}, \lambda^*)$ is the same as $G$ except that $\lambda^*(v_i) = \mathbf{a}_i$ (i.e., in particular, $\lambda^*(v') = \lambda(v')$ for every $v' \neq v_i$ );
+- for each $k, j, m$ with $0 < k \leq j \leq m < d$ , $f(G, v) = f(G_j^{p[k, m]}$ , $v)$ for $G_j^{p[k, m]} = (\mathcal{V}^*, \mathcal{E}^*, \lambda^*)$ the same as $G^{p[k, m]}$ except that $\lambda^*(v_j') = \mathbf{a}_j$ ;
+- for each $i, k, j, m$ with $0 < i < d$ and $0 < k \leq j \leq m < d$ , $f(G, v) \neq f(G_{i,j}^{p[k,m]}, v)$ for $G_{i,j}^{p[k,m]} = (\mathcal{V}^*, \mathcal{E}^*, \lambda^*)$ the same as $G^{p[k,m]}$ except that $\lambda^*(v_i) = \mathbf{a}_i$ and $\lambda^*(v_j') = \mathbf{a}_j$ .
+
+This definition essentially says that there should be a node, $v$ , in a graph with a long enough path, $p$ , leading to $v$ that is really important for the classification of $v$ : it should be possible to distort the embedding of any node in $p$ to change the classification of $v$ ; moreover, a combination of $p$ with a duplicate of its part where an embedding of a node is distorted should not lead to the change of classification, while distorting both the path and the duplicate should.
+
+We argue that such requirements for a witnessing path reflect the intuition of what a long-range dependency is. The examples of the real-life tasks in the introduction also essentially rely on these requirements. However, we agree that there may be other, inequivalent, formalisations of this intuition (e.g., one may waive the existence of a path to $v$ , asking only for a node with some properties not too close to $v$ ); we add 'path-aware' to the notion to emphasise our choice.
+
+# 2.3 POSSIBLE CAUSES FOR THE LONG-RANGE DEPENDENCY ISSUE
+
+Since learning long-range dependencies is crucial in graph learning, there is a line of research that has focused on identifying and mitigating the causes of performance degradation with increasing dependency length. In particular, this issue is currently linked to three phenomena: over-smoothing (Li
+
+et al., 2018), over-squashing (Alon & Yahav, 2021), and vanishing gradient (Glorot & Bengio, 2010; Bengio et al., 1994). The graph learning community has developed several methods to mitigate these causes, which we discuss next.
+
+Over-smoothing (Li et al., 2018) causes the node embeddings to converge to the same vector as the number of GNN layers increases. This may hamper the effectiveness of many GNNs, especially GCNs, when many layers are needed, for example, to capture long-range dependencies. Methods to mitigate over-smoothing include PairNorm (Zhao & Akoglu, 2020), ResGCN and DenseGCN (Li et al., 2019), JKNet (Xu et al., 2018), DropEdge (Rong et al., 2020), GPRGNN (Chien et al., 2021), DAGNN (Liu et al., 2020), GCNII (Chen et al., 2020), IGNN (Gu et al., 2020), EIGNN (Liu et al., 2021), GIND (Chen et al., 2022), and $\mathrm{G}^2$ (Rusch et al., 2023).
+
+Over-squashing (Alon & Yahav, 2021) refers to the bottleneck of graph learning formalisms, including GNNs, where information from many nodes condense into a fixed-size vector of one node. In dense graphs, the number of paths to a target node may be exponential in the number of the GNN's layers. Therefore, over-squashing can limit learning long-range dependencies in such graphs. Methods to alleviate over-squashing include several variants of DRew (Gutteridge et al., 2023), SP-GCN (Abboud et al., 2022), FOSR (Karhadkar et al., 2023), SRDF (Topping et al., 2022), FA-GCN (Alon & Yahav, 2021), DIGL (Gasteiger et al., 2019b), Mixhop-GCN (Abu-El-Haija et al., 2019), and graph transformers, such as SAN (Kreuzer et al., 2021) and GraphGPS (Rampasek et al., 2022).
+
+Vanishing gradient (Glorot & Bengio, 2010) is a common phenomenon in deep neural networks, including GNNs. As the number of layers increases, the gradient of the loss often decreases, slowing or even stopping the training. Well-known techniques to mitigate this in usual neural networks, such as BatchNorm (Ioffe & Szegedy, 2015), ResNet (He et al., 2015), and LSTM (Graves, 2012), have been adapted for GNNs in systems $\mathbf{G}^2$ (Rusch et al., 2023), Gradient-Guided Dynamic Rewiring (Jaiswal et al., 2022), and Residual GANs (Lukovnikov & Fischer, 2021).
+
+# 2.4 EXISTING BENCHMARKS AND THEIR LIMITATIONS
+
+Evaluation of the abilities of GNN-based methods to address the long-range dependency issue (e.g., by mitigating the three phenomena) usually employs benchmarks based on real-world and synthetic datasets. We next discuss these benchmarks and argue that they are ill-suited for this purpose.
+
+Many real-world benchmarks, such as Cora and Citeseer (Yang et al., 2016), Cornell and Texas (Pei et al., 2020), and TUDataset (Morris et al., 2020) were not initially designed for long-range dependency studies. Others, such as OGB (Hu et al., 2020) and LRGB (Dwivedi et al., 2022), were introduced specifically to assess the ability to mitigate the three phenomena. However, many of them have already been argued to lack significantly long-range dependencies (Dwivedi et al., 2022; Tonshoff et al., 2023). Moreover, we observe that real-life benchmarks do not suit well for the purpose in general, because we do not have enough control over their functions to learn. In particular, we have no means to ensure that a function that perfectly fits all the examples actually relies on a dependency of a particular length; in fact, we cannot even ensure that all the labels are justified by some properties of the inputs rather than being just noise. Thus, such benchmarks are only useful to conclude that one system is better than another on this particular benchmark, but not to claim with confidence that a specific approach can learn a dependency of a specific length. So, to give such guarantees, we have to employ synthetic benchmarks.
+
+Several synthetic benchmarks designed for long-range dependency evaluation have also been proposed. They include Tree-Neighbours (Alon & Yahav, 2021), h-Proximity (Abboud et al., 2022), Graph Transfer and Ring Transfer (Di Giovanni et al., 2023; Gutteridge et al., 2023), Synthetic Chains (Gu et al., 2020), Color-Connectivity (Rampášek & Wolf, 2021), Conditional Recall, and Tree Max (Lukovnikov & Fischer, 2021). The common principle in their design is that they label nodes in rather simple graphs using a known function that relies on dependency of a specific length. However, we argue that this is not enough: we also need to ensure that there is no other classification function that fits all the generated examples, but does not rely on long-enough dependency; moreover, we also need to guarantee that there exists such a long-range function that is in principle expressible in the tested graph learning architecture—that is, that there exists an instance of the architecture (e.g., GCN) that realises, in a uniform way, this function (see Barceló et al. (2020) and Grohe (2023) for the details of such expressibility and related notions (Xu et al., 2019; Morris et al., 2019; Grohe, 2023)). Unfortunately, none of the synthetic benchmarks mentioned above satisfy these two properties. For
+
+
+Figure 1: Positive (left) and negative (right) GLoRa examples for $d = 6$ : green (i.e., source), blue (normal), and orange (hole) nodes have embeddings of form $[1, -]$ , $[-1]$ , and $[-0]$ , respectively; T marks the target node; the red-arrows chain is the long-range dependency path
+
+
+
+example, in the Synthetic Chains benchmark (Gu et al., 2020), the graph in each example is a directed chain, where the tail node is labelled True or False depending on whether the start node has 1 or 0 as the first element of its initial embedding vector. These examples are indeed generated by means of a function that relies on a long dependency (in particular, of the length of the longest chain). However, it is possible to perfectly solve this benchmark by a (learned) function that ignores the distance and path information, and only checks whether there somewhere in the graph there is a node without incoming edges with 1 or 0 as the first element. More detailed justification for this and other synthetic benchmarks are in Appendix D. The main contribution of this paper is benchmark generator GLoRa, which produces benchmarks satisfying the two crucial properties.
+
+# 3 BENCHMARK GENERATOR GLORA
+
+In this section, we present the main contribution of this paper: an algorithm GLoRa that generates benchmarks (i.e., sets of training, possibly validation, and test examples), which can be systematically used to check the ability of a system to learn functions relying on dependencies of a specified length. In particular, our benchmark generated for length $d$ ensures the following properties.
+
+(P1) All node classification functions fitting the training examples rely on dependency of length $d$ with arbitrarily high precision and probability.
+(P2) There exists such a function that is expressible by all GNN-based graph learning approaches we are aware of (including GCNs).
+(P3) The benchmark is fair—that is, all examples come from the same distribution.
+
+Before we start with intuition, we note that our benchmarks have two versions: one with directed and one with undirected graphs. However, in the following presentation we concentrate on the directed version, while the generalisation to undirected graphs is straightforward.
+
+# 3.1 INTUITION
+
+Our benchmark for the dependency of length $d$ uses graphs with dimension 2 and relies on the following intended binary classification function, which clearly relies on the dependency of length $d$ .
+
+(F) The target node is classified as True if and only if there is a path of length up to $d$ from a node with embedding of the form $[1, -]$ (which we call the source node) to the target node such that all nodes along the path, except the source, have embeddings $[-1, 1]$ ; here, $-$ represents any number different from 1.
+
+A naive benchmark for this function would use the following examples: a positive example will have a chain of length $d$ or slightly less as the graph, starting from a source node with embedding $[-1, -1]$ , ending at the target node, and such that all nodes along the chain except the source have embedding $[-1, 1]$ ; in turn, each negative example is the same, except that one intermediate node has $[-1, 0]$ instead of $[-1, 1]$ (in what follows, we call a node with $[-1, 0]$ embedding a hole).
+
+This approach, however, would not lead to a benchmark that satisfies property (P1). Indeed, it would be possible to perfectly fit all these examples by learning a much simpler function, which does not depend on any significantly long-range dependency; for instance, one such function classifies the target node as True if and only if there is no node anywhere in the graph, except the target node, with embedding $[-,-]$ (i.e., where both elements are not 1). Thus, the model that learned this 'shallow' alternative can perfectly classify all the examples of this benchmark.
+
+Algorithm 1 GLoRa Benchmark Example Generation
+Input: Length $d\geq 3$ , label Ans $\in$ {True, False}
+Output: Graph-node pair $(G,v)$ labelled Ans
+1: Let $\mathcal{D}\coloneqq [-12, - 2]\cup [3,13]$ /\* Part A: Create the main chain \*/
+2: Let $G\coloneqq (\mathcal{V},\mathcal{E},\lambda)$ with $k_{0}\sim \mathsf{U}(\{\lfloor 2 / 3\cdot d\rfloor ,\ldots ,d\})$ $\mathcal{V}\coloneqq \{v_0^0,\dots ,v_0^{k_0}\}$ $\mathcal{E}\coloneqq \{(v_0^{i - 1},v_0^i)\mid i\in \{1,\dots ,k_0\} \}$ $\lambda (v_0^0)\coloneqq (1,y_0^0)$ with $y_0^0\sim \mathsf{U}(\mathcal{D})$ $\lambda (v_0^i)\coloneqq (x_0^i,1)$ with $x_0^i\sim \mathsf{U}(\mathcal{D})$ for each $i\in \{1,\dots ,k_0\}$
+3: if Ans $=$ False then
+4: Set $\lambda (v_{0}^{h_{0}})\coloneqq (x_{0}^{h_{0}},0)$ with $h_0\sim \mathsf{U}(\{1,\dots ,k_0 - 1\})$ /\* Part B: Add alternative chains \*/
+5: Let $P\sim \mathsf{U}(\{5,\dots ,10\})$
+6: for $p = 1$ to $P$ do
+7: Let $k_{p}\sim \mathsf{U}(\{\lfloor 2 / 3\cdot d\rfloor ,\ldots ,d\})$ and $m_p,n_p\sim \mathsf{U}(\{1,\dots ,k_p - 1\})$ assuming $m_p\leq n_p$
+8: Let $v^{\prime}\sim \mathsf{U}(\{v_j^{m_j}\in \mathcal{V}\mid m_j = \lfloor k_j\cdot (m_p - 1) / k_p + 1 / 2\rfloor \})$
+9: Let $v''\sim \mathsf{U}(\{v_j^{n_j}\in \mathcal{V}\mid n_j = \lfloor k_j\cdot (n_p + 1) / k_p + 1 / 2\rfloor \})$
+10: Add fresh $v_{p}^{m_{p}},\ldots ,v_{p}^{n_{p}}$ to V and $(v^{\prime},v_{p}^{m_{p}}),(v_{p}^{m_{p}},v_{p}^{m_{p} + 1}),\ldots ,(v_{p}^{n_{p} - 1},v_{p}^{n_{p}}),(v_{p}^{n_{p}},v^{\prime \prime})$ to E letting $\lambda (v_{p}^{i})\coloneqq (x_{p}^{i},1)$ with $x_{p}^{i}\sim \mathsf{U}(\mathcal{D})$ for each $i\in \{m_p,\dots ,n_p\}$
+11: Set $\lambda (v_{p}^{h_{p}})\coloneqq (x_{p}^{h_{p}},0)$ with $h_p\sim \mathsf{U}(\{m_p,\dots ,n_p\})$ /\* Part C: Add additional holes \*/
+12: Let $R\sim \mathsf{U}(\{2,3\})$ and $\nu^{\prime}\coloneqq \nu \setminus \{v_0^0,v_0^{k_0}\}$
+13: if Ans $=$ True then
+14: Set $R\coloneqq R + 1$ and $\nu^{\prime}\coloneqq \nu^{\prime}\setminus \{v_{0}^{i}\mid i\in \{1,\dots ,k_{0} - 1\}\}$
+15: for $r = 1$ to $R$ do
+16: Set $\lambda (v_j^i)\coloneqq (x_j^i,0)$ with $v_{j}^{i}\sim \mathsf{U}(\mathcal{V}')$
+17: return $(G,v_0^{k_0})$
+
+To ensure (P1), while preserving (P2), GLoRa adds to the chain-like graphs as in the naive approach alternative paths with holes (i.e., $[-, 0]$ embeddings) from the source to the target; this is illustrated in Figure 1. The embeddings on these extra chains also ensure that the number of holes cannot be used as a distinguishing property between positive and negative examples; same should hold for more complex properties, such as the number of holes on paths between a $[1, -]$ -source node and the target node. As we will see formally in Theorem 1, such an approach ensures that any GNN-based function fitting (a sufficient number of) such examples rely on a dependency of length $d$ . So, we can use GLoRa for length $d$ to check if a system can learn functions with dependency of length $d$ (e.g., $d = 6$ in Figure 1). Moreover, we can use a sequence of the benchmarks with increasing $d$ to identify the limit of a system—that is, the maximal length for which it can learn the dependencies.
+
+# 3.2 GENERATOR ALGORITHM AND GUARANTEES
+
+The pseudocode that generates a GLoRa example is given in Algorithm 1. Since each benchmark is parameterised by length $d$ , this number is one of the inputs of the algorithm. The second input, $Ans$ , ranges over classes True and False—that is, specifies whether the example is positive or negative. It is assumed that GLoRa for a given depth $d$ contains a sufficiently large balanced number of examples generated by this algorithm in its training, validation (possibly), and test sets. Note that the algorithm has a large degree of randomness, and the notation $X \sim \mathsf{U}(S)$ means that $X$ is sampled, uniformly at random and independently of other samplings, from a set $S$ . The algorithm consists of three parts.
+
+In Part A (lines 2-4), the algorithm generates the main chain, which either has no holes, if the example is positive, or one hole (i.e., a $[-0]$ -embedded node), otherwise. The chain length is not predetermined, but sampled randomly from (rounded) $2/3$ of $d$ to $d$ , so that the exact length cannot be used by systems in learning. The main chain starts in source node $v_0^0$ with embedding $[1, -1]$ , while all other nodes have embeddings $[-1, 1]$ or $[-1, 0]$ (i.e., the hole); these nodes include the target node $v_0^{k_0}$ .
+
+In Part B (lines 5-11), the algorithm adds several (5 to 10) alternative chains with the ends on the previously generated chains (main or additional). The construction ensures (lines 7-9) that there are no loops and the length of the path from the source to the target corresponding to each additional
+
+chain is within the same bounds as the main chain. Each additional chain has a hole, so that only the path along the main chain determines if the example is positive or negative. Note, however, that a model does not know which nodes belong to the main chain, so it has to explore all of them.
+
+Finally, in Part C (lines 12-17), the algorithm adds several holes so that each individual path from the source to the target does not have a predetermined number of holes. It also ensures that positive examples remain positive (i.e., that the main chain has no holes), and that the distribution of the number of holes in the positive and negative examples is the same.
+
+We next argue that GLoRa possesses properties (P1)-(P3). Property (P1) is the most sophisticated and is ensured by the following theorem (proved in Appendix C). We use several new notions. First, we introduce an approximate version of Definition 1: a node classification function $f$ relying on a dependency of length $d$ with precision $\delta > 0$ is the same as in Definition 1 except that $\lambda^*$ in each item is required to match $\lambda$ , $\mathbf{a}_j$ , and $\mathbf{a}_i$ (when relevant) only with precision $\delta$ (under the maximum norm), while the difference between each $\mathbf{a}_i$ and $\lambda(v_i)$ should have the gap at least $3\delta$ that is, we require, for example, $||\lambda^*(v_i) - \mathbf{a}_i||_{\infty} \leq \delta$ instead of $\lambda^*(v_i) = \mathbf{a}_i$ for each $i$ and $||\mathbf{a}_i - \lambda(v_i)||_{\infty} \geq 3\delta$ instead of $\mathbf{a}_i \neq \lambda(v_i)$ . Then, a set of examples for node classification requires learning dependencies of length $d$ with precision $\delta > 0$ if each function that fits all these examples relies on such a dependency.
+
+Theorem 1 Let $d \in \mathbb{N}$ be a length. Then, for every $\delta > 0$ and $\mathcal{P} \in (0,1)$ there exists a number $K$ such that a set of $K$ examples, half generated by $GLoRa(d, \text{True})$ and half by $GLoRa(d, \text{False})$ , requires learning dependencies of length $d$ with precision $\delta$ with probability at least $\mathcal{P}$ .
+
+Moving on to property (P2) we note that the results of Barceló et al. (2020) imply that GCNs can express our intended function (F). We also observe that virtually all other known GNN-based classification approaches are more expressive than GCNs, which implies (P2). Finally, property (P3) is automatic since the same (probabilistic) algorithm is used for generating all examples.
+
+In the passing, we note that our algorithm can be easily adapted to undirected graphs.
+
+# 4 EMPIRICAL STUDIES
+
+In this section, we report our results on the evaluation of existing systems' ability to learn long-range dependencies. We begin with the setup of our main experiment, which is based on GLoRa benchmarks. We then present our results, demonstrating that, although some systems perform better than others, none can effectively learn dependencies of significantly long length. Finally, we show that this rather weak performance cannot be attributed to any of the three phenomena.
+
+# 4.1 MAIN EXPERIMENT SETUP AND RESULTS
+
+If a system for learning binary node classification claims that it can learn dependencies of length $d$ , then it should show (nearly) perfect testing accuracy on a benchmark generated using GLoRa example generator for length $d$ . So, we can find the length limit of a system by running it on such benchmarks with increasing values of $d$ until the accuracy drops from nearly 1 to values close to 0.5.
+
+For our experiment, we generated 5000 positive and 5000 negative examples using Algorithm 1 for each $d \in \{3, \ldots, 15\}$ , and split each half with the ratio 80:10:10 to training, validation, and test sets.
+
+Having these GLoRa benchmarks at hand, we evaluated state-of-the-art systems from four categories:
+
+1. vanilla GNN-based systems (i.e., not designed to deal with long-range dependencies): GCN (Kipf & Welling, 2017), GAT (Velickovic et al., 2018), GraphSAGE (Hamilton et al., 2017), GatedGCN (Bresson & Laurent, 2017), GGNN (Li et al., 2016), SGC (Wu et al., 2019), and GIN (Xu et al., 2019);
+2. GNN-based systems targeting over-smoothing: GCNII (Chen et al., 2020), PairNorm (Zhao & Akoglu, 2020), DropEdge (Rong et al., 2020), GPRGNN (Chien et al., 2021), DAGNN (Liu et al., 2020), APPNP (Gasteiger et al., 2019a), ResGCN and DenseGCN (Li et al., 2019), as well as their variants ResGatedGCN, DenseGatedGCN, ResGAT, and DenseGAT with self-explanatory names, JKNet (Xu et al., 2018), IGNN (Gu et al., 2020), EIGNN (Liu et al., 2021), GIND (Chen et al., 2022), and $\mathbf{G}^2$ (Rusch et al., 2023);
+
+3. GNN-based systems targeting over-squashing (and vanishing gradient): $\nu$ Drew-GCN, for $\nu \in \{1,\infty \}$ , and 1Drew-GCN+LapPE (Gutteridge et al., 2023), SP-GCN (Abboud et al., 2022), FA-GCN (Alon & Yahav, 2021), DIGL (Gasteiger et al., 2019b), MixHop-GCN (AbuEl-Haija et al., 2019), SDRF (Topping et al., 2022), and FOSR (Karhadkar et al., 2023);
+4. transformer-based systems (Vaswani et al., 2017): GraphTransformer (Dwivedi & Bresson, 2020), SAN (Kreuzer et al., 2021), and GraphGPS (Rampasek et al., 2022), where the last uses either RWSE or LapPE positional encoding.
+
+We run each system on each benchmark five times, training for a maximum of 300 epochs or until convergence, validating hyperparameters, and computing the average testing accuracy over the five runs. For the GNN-based systems, we set the number of layers as $d + 2$ , which is always enough to express (F). Further details on the experiment setting are given in Appendix A.
+
+In Figure 2, we present test accuracy results for the best five systems in each of the first three categories; detailed results for the other systems, including the transformer-based ones, which perform badly even for very short $d$ , are given in Appendix B. Since our benchmark is noise-free, accuracy 1.0 is a reasonable target. Moreover, since this is a binary classification task, random guessing has accuracy 0.5. So, accuracy below 0.8 is an indication that the model has not effectively learned any function that fits the examples—that is, cannot learn dependencies of the given length.
+
+In the figure, we can observe that most systems experience a performance drop before $d$ reaches 9, showing their inability to learn dependencies of significant length. We also see that some systems can learn longer dependencies a little better; however, even their performance is poor after $d = 11$ . Notably, the best performance is achieved by systems that use gated edges—that is, GatedGCN, and its variants DenseGatedGCN and ResGatedGCN—suggesting that this feature may be a starting point for GNNs that can truly learn long-range dependencies.
+
+In summary, while some systems perform better than others, none can reliably claim to be able to learn dependencies much longer than of quite modest length 11. We also note that, as we report in Appendix E, the performance of all the systems in the undirected setting is very similar.
+
+
+
+
+(a) Vanilla GNN-based systems
+
+
+(b) Systems targeting over-smoothing
+(c) Systems targeting over-squashing
+Figure 2: Test accuracy of based systems on GLoRa benchmarks for increasing $d$ (lines represent mean accuracy over multiple runs, shaded areas indicate the standard deviation)
+
+# 4.2 OVER-SMOOTHING, OVER-SQUASHING, VANISHING GRADIENT ARE NOT THE REASON
+
+Finally, we argue that, rather surprisingly, none of the three phenomena—over-smoothing, oversquashing, or vanishing gradient—is the reason for the dropping performance in the main experiment. In this section, we focus on the best-performing systems in the three categories (GatedGCN, DenseGatedGCN, and 1Drew-GCN), but the same arguments apply to the other systems.
+
+We first argue that over-smoothing is not a reason for the performance drop in all three systems. To justify our claim, we considered the largest $d$ for which the accuracy is 1 for all systems and
+
+
+(a) GatedGCN
+
+
+(b) DenseGatedGCN
+
+
+(c) 1Drew-GCN
+
+
+(a) GatedGCN
+Figure 4: First layer weight gradients across max 300 epochs for best-performing systems
+
+
+(b) DenseGatedGCN
+
+
+Figure 3: Histograms of the last-layer values for the best-performing systems
+(c) 1Drew-GCN
+
+the smallest $d$ for which the accuracy is close to 0.5: 6 and 13. For each case, we extracted the numeric value of the (1-dimensional) last (i.e., 8 and 15) layer embedding of the target node for each of the examples and plotted their histograms in Figure 3. As expected, when accuracy is good, the last-layer embeddings are clearly separated, while when accuracy is poor, they are more mixed together. However, even in the latter case they still do not converge—that is, have rather significant standard deviation. In other words, we do not observe over-smoothing in any of the three cases.
+
+We next argue that over-squashing is also not the reason for degradation for the systems. In fact, this is guaranteed by the construction of GLoRa examples. Indeed, since each example has $P$ additional chains, which is at most 10 (line 5 in Algorithm 1), there is a small (and independent of $d$ ) bound on the number of paths leading to the target node. Therefore, over-squashing, which concerns the compression of the information from many (exponential number of) paths to a single vector, is not relevant here. Note that directedness of the graphs is crucial for this argument: in undirected graphs, even a single chain to the target node would induce an exponential (in $d$ ) number of paths leading to this node, and so making such a claim would not be possible.
+
+We finally argue that gradient vanishing is also not the reason for the performance degradation of the three systems. This phenomenon is primarily caused by the fact that the chain rule in backpropagation results in exponentially smaller gradients in previous layers, making training difficult when there are many of them. We plotted, in Figure 4, the distribution of the first layer gradients across multiple epochs for the three systems. As we can see, the gradients remain stable throughout training, with magnitudes well above zero, indicating no vanishing. As we report in Appendix F, the systems have similar behaviour on other layers. This suggests that gradient vanishing is not the reason for their inability to learn dependencies for the corresponding $d$ . As a side comment, we note that the standard techniques against gradient vanishing, such as AdamW, weight initialisation, gradient clipping, ReLU activation, and batch normalisation are all employed during training for all the systems.
+
+# 5 CONCLUSION AND FUTURE WORK
+
+The main contribution of this paper is GLoRa, a generator of synthetic benchmarks that allows us to evaluate graph-learning systems in terms of their ability to learn long-range dependencies. Using GLoRa, we have demonstrated that none of the state-of-the-art systems can learn dependencies longer than a very modest length of 11. We have also shown that this degradation cannot be attributed to the over-smoothing, over-squashing, or vanishing gradient. This opens up two directions for future research: to identify the real causes of this degradation and to develop methods to overcome it.
+
+# ACKNOWLEDGEMENTS
+
+The work was partially supported by EU Projects Graph Massivizer (GA 101093202), Dome 4.0 (GA 953163), enRichMyData (GA 101070284), and SMARTY (GA 101140087), and the Research Council of Norway through its Centres of Excellence scheme, Integreat—Norwegian Centre for knowledge-driven machine learning, project 332645.
+
+# REFERENCES
+
+Ralph Abboud, Radoslav Dimitrov, and Ismail Ilkan Ceylan. Shortest path networks for graph property prediction. In Learning on Graphs Conference (LoG), 2022.
+Sami Abu-El-Haija, Bryan Perozzi, Amol Kapoor, Nazanin Alipourfard, Kristina Lerman, Hrayr Harutyunyan, Greg Ver Steeg, and Aram Galstyan. Mixhop: Higher-order graph convolutional architectures via sparsified neighborhood mixing. In International Conference on Machine Learning (ICML), pp. 21-29, 2019.
+Uri Alon and Eran Yahav. On the bottleneck of Graph Neural Networks and its practical implications. In International Conference on Learning Representations (ICLR), 2021.
+Pablo Barceló, Egor V. Kostylev, Mikael Monet, Jorge Pérez, Juan Reutter, and Juan-Pablo Silva. The logical expressiveness of Graph Neural Networks. In International Conference on Learning Representations (ICLR), 2020.
+Yoshua Bengio, Patrice Simard, and Paolo Frasconi. Learning long-term dependencies with gradient descent is difficult. IEEE Transactions on Neural Networks, 5(2):157-166, 1994.
+Cristian Bodnar, Fabrizio Frasca, Nina Otter, Yuguang Wang, Pietro Lio, Guido F. Montúfar, and Michael M. Bronstein. Weisfeiler and Lehman go cellular: CW networks. In Annual Conference on Neural Information Processing Systems (NeurIPS), pp. 2625-2640, 2021.
+Pietro Bongini, Franco Scarselli, Monica Bianchini, Giovanna Maria Dimitri, Niccolo Pancino, and Pietro Lio. Modular multi-source prediction of drug side-effects with DruGNN. IEEE/ACM Transactions on Computational Biology and Bioinformatics, 20(2):1211-1220, 2022.
+Xavier Bresson and Thomas Laurent. Residual gated Graph ConvNets. CoRR, arXiv:1711.07553 [cs.LG], 2017.
+Ming Chen, Zhewei Wei, Zengfeng Huang, Bolin Ding, and Yaliang Li. Simple and deep Graph Convolutional Networks. In International Conference on Machine Learning (ICML), pp. 1725-1735, 2020.
+Qi Chen, Yifei Wang, Yisen Wang, Jiansheng Yang, and Zhouchen Lin. Optimization-induced graph implicit nonlinear diffusion. In International Conference on Machine Learning (ICML), pp. 3648-3661, 2022.
+Eli Chien, Jianhao Peng, Pan Li, and Olgica Milenkovic. Adaptive universal generalized PageRank Graph Neural Network. In International Conference on Learning Representations (ICLR), 2021.
+Francesco Di Giovanni, Lorenzo Giusti, Federico Barbero, Giulia Louise, Pietro Lio, and Michael M. Bronstein. On over-squashing in message passing neural networks: The impact of width, depth, and topology. In International Conference on Machine Learning (ICML), pp. 7865-7885, 2023.
+Vijay Prakash Dwivedi and Xavier Bresson. A generalization of transformer networks to graphs. CoRR, arXiv:2012.09699 [cs.LG], 2020.
+Vijay Prakash Dwivedi, Ladislav Rampasek, Michael Galkin, Ali Parviz, Guy Wolf, Anh Tuan Luu, and Dominique Beaini. Long range graph benchmark. In Annual Conference on Neural Information Processing Systems (NeurIPS), 2022.
+Vijay Prakash Dwivedi, Chaitanya K. Joshi, Anh Tuan Luu, Thomas Laurent, Yoshua Bengio, and Xavier Bresson. Benchmarking Graph Neural Networks. Journal of Machine Learning Research, 24(43):1-48, 2023.
+
+Wenqi Fan, Yao Ma, Qing Li, Yuan He, Yihong Eric Zhao, Jiliang Tang, and Dawei Yin. Graph Neural Networks for social recommendation. In The World Wide Web Conference (WWW), pp. 417-426, 2019.
+Johannes Gasteiger, Aleksandar Bojchevski, and Stephan Gunnemann. Predict then propagate: Graph Neural Networks meet personalized PageRank. In International Conference on Learning Representations (ICLR), 2019a.
+Johannes Gasteiger, Stefan Weißenberger, and Stephan Gunnemann. Diffusion improves graph learning. In Annual Conference on Neural Information Processing Systems (NeurIPS), pp. 13333-13345, 2019b.
+Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In International Conference on Artificial Intelligence and Statistics (AISTATS), pp. 249-256, 2010.
+Alex Graves. Supervised Sequence Labelling with Recurrent Neural Networks, volume 385 of Studies in Computational Intelligence. Springer, 2012.
+Martin Grohe. The descriptive complexity of Graph Neural Networks. In Symposium on Logic in Computer Science (LICS), pp. 1-14, 2023.
+Fangda Gu, Heng Chang, Wenwu Zhu, Somayeh Sojoudi, and Laurent El Ghaoui. Implicit graph neural networks. In Annual Conference on Neural Information Processing Systems (NeurIPS), pp. 11984-11995, 2020.
+Benjamin Gutteridge, Xiaowen Dong, Michael M. Bronstein, and Francesco Di Giovanni. Drew: Dynamically rewired message passing with delay. In International Conference on Machine Learning (ICML), pp. 12252-12267, 2023.
+William L. Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Annual Conference on Neural Information Processing Systems (NIPS), pp. 1024-1034, 2017.
+Yi Han, Shanika Karunasekera, and Christopher Leckie. Graph Neural Networks with continual learning for fake news detection from social media. CoRR, arXiv:2007.03316 [cs.SI], 2020.
+Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CoRR, arXiv:1512.03385 [cs.LG], 2015.
+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. In Annual Conference on Neural Information Processing Systems (NeurIPS), 2020.
+Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning (ICML), pp. 448-456, 2015.
+Ditsuhi Iskandaryan, Francisco Ramos, and Sergio Trilles. Graph Neural Network for air quality prediction: A case study in Madrid. IEEE Access, 11:2729-2742, 2023.
+Ajay Jaiswal, Peihao Wang, Tianlong Chen, Justin F. Rousseau, Ying Ding, and Zhangyang Wang. Old can be gold: Better gradient flow can make vanilla-GCNs great again. In Annual Conference on Neural Information Processing Systems (NeurIPS), 2022.
+Kanchan Jha, Sriparna Saha, and Hiteshi Singh. Prediction of protein-protein interaction using Graph Neural Networks. Scientific Reports, 12(1):8360, 2022.
+Kedar Karhadkar, Pradeep Kr. Banerjee, and Guido Montúfar. FoSR: First-order spectral rewiring for addressing oversquashing in GNNs. In International Conference on Learning Representations (ICLR), 2023.
+Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR), 2017.
+
+Devin Kreuzer, Dominique Beaini, William L. Hamilton, Vincent Létourneau, and Prudencio Tossou. Rethinking graph transformers with spectral attention. In Annual Conference on Neural Information Processing Systems (NeurIPS), pp. 21618-21629, 2021.
+Guohao Li, Matthias Muller, Ali Thabet, and Bernard Ghanem. DeepGCNs: Can GCNs go as deep as CNNs? In International Conference on Computer Vision (ICCV), pp. 9267-9276, 2019.
+Mengzhang Li and Zhanxing Zhu. Spatial-temporal fusion Graph Neural Networks for traffic flow forecasting. In AAAI Conference on Artificial Intelligence (AAAI), volume 35, pp. 4189-4196, 2021.
+Qimai Li, Zhichao Han, and Xiao-Ming Wu. Deeper insights into Graph Convolutional Networks for semi-supervised learning. In AAAI Conference on Artificial Intelligence (AAAI), pp. 3538-3545, 2018.
+Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard S. Zemel. Gated Graph Sequence Neural Networks. In International Conference on Learning Representations (ICLR), 2016.
+Hai Liu, Chao Zheng, Duantengchuan Li, Zhaoli Zhang, Ke Lin, Xiaoxuan Shen, Neal N. Xiong, and Jiazhang Wang. Multi-perspective social recommendation method with graph representation learning. Neurocomputing, 468:469-481, 2022.
+Juncheng Liu, Kenji Kawaguchi, Bryan Hooi, Yiwei Wang, and Xiaokui Xiao. EIGNN: Efficient infinite-depth graph neural networks. In Annual Conference on Neural Information Processing Systems (NeurIPS), pp. 18762-18773, 2021.
+Meng Liu, Hongyang Gao, and Shuiwang Ji. Towards deeper Graph Neural Networks. In International Conference on Knowledge Discovery & Data Mining (SIGKDD), 2020.
+Denis Lukovnikov and Asja Fischer. Improving breadth-wise backpropagation in Graph Neural Networks helps learning long-range dependencies. In International Conference on Machine Learning (ICML), pp. 7180-7191, 2021.
+Christopher Morris, Martin Ritzert, Matthias Fey, William L. Hamilton, Jan Eric Lenssen, Gaurav Rattan, and Martin Grohe. Weisfeiler and Leman go neural: Higher-order Graph Neural Networks. In AAAI Conference on Artificial Intelligence (AAAI), pp. 4602-4609, 2019.
+Christopher Morris, Nils M. Kriege, Franka Bause, Kristian Kersting, Petra Mutzel, and Marion Neumann. Tudataset: A collection of benchmark datasets for learning with graphs. CoRR, arXiv:2007.08663 [cs.LG], 2020.
+Hongbin Pei, Bingzhe Wei, Kevin Chen-Chuan Chang, Yu Lei, and Bo Yang. Geom-GCN: Geometric Graph Convolutional Networks. In International Conference on Learning Representations (ICLR), 2020.
+Jiezhong Qiu, Jian Tang, Hao Ma, Yuxiao Dong, Kuansan Wang, and Jie Tang. DeepInf: Social influence prediction with deep learning. In International Conference on Knowledge Discovery & Data Mining (ICKDDM), pp. 2110-2119, 2018.
+Ladislav Rampášek and Guy Wolf. Hierarchical Graph Neural Nets can capture long-range interactions. In International Workshop on Machine Learning for Signal Processing (MLSP), pp. 1-6, 2021.
+Ladislav Rampásek, Michael Galkin, Vijay Prakash Dwivedi, Anh Tuan Luu, Guy Wolf, and Dominique Beaini. Recipe for a general, powerful, scalable graph transformer. In Annual Conference on Neural Information Processing Systems (NeurIPS), 2022.
+Yu Rong, Wenbing Huang, Tingyang Xu, and Junzhou Huang. DropEdge: Towards deep Graph Convolutional Networks on node classification. In International Conference on Learning Representations (ICLR), 2020.
+T. Konstantin Rusch, Benjamin Paul Chamberlain, Michael W. Mahoney, Michael M. Bronstein, and Siddhartha Mishra. Gradient gating for deep multi-rate learning on graphs. In International Conference on Learning Representations (ICLR), 2023.
+
+Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The Graph Neural Network model. IEEE Transactions on Neural Networks, 20(1):61-80, 2008.
+Jan Tönshoff, Martin Ritzert, Eran Rosenbluth, and Martin Grohe. Where did the gap go? Reassessing the long-range graph benchmark. Transactions on Machine Learning Research, 2023.
+Jake Topping, Francesco Di Giovanni, Benjamin Paul Chamberlain, Xiaowen Dong, and Michael M. Bronstein. Understanding over-squashing and bottlenecks on graphs via curvature. In International Conference on Learning Representations (ICLR), 2022.
+Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Annual Conference on Neural Information Processing Systems (NIPS), pp. 5998-6008, 2017.
+Petar Velickovic, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph Attention Networks. In International Conference on Learning Representations (ICLR), 2018.
+Mark Weber, Jie Chen, Toyotaro Suzumura, Aldo Pareja, Tengfei Ma, Hiroki Kanezashi, Tim Kaler, Charles E. Leiserson, and Tao B. Schardl. Scalable graph learning for anti-money laundering: A first look. CoRR, arXiv:1812.00076 [cs:SI], 2018.
+Felix Wu, Amauri Souza, Tianyi Zhang, Christopher Fifty, Tao Yu, and Kilian Weinberger. Simplifying Graph Convolutional Networks. In International Conference on Machine Learning (ICML), pp. 6861-6871, 2019.
+Keyulu Xu, Chengtao Li, Yonglong Tian, Tomohiro Sonobe, Ken-ichi Kawarabayashi, and Stefanie Jegelka. Representation learning on graphs with jumping knowledge networks. In International Conference on Machine Learning (ICML), pp. 5453-5462, 2018.
+Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In International Conference on Learning Representations (ICLR), 2019.
+Zhilin Yang, William Cohen, and Ruslan Salakhudinov. Revisiting semi-supervised learning with graph embeddings. In International Conference on Machine Learning (ICML), pp. 40-48, 2016.
+Lingxiao Zhao and Leman Akoglu. *PairNorm: Tackling oversmoothing in GNNs*. In International Conference on Learning Representations (ICLR), 2020.
+
+# A MAIN EXPERIMENT DETAILS
+
+In this appendix, we give additional details of the settings of the main experiment in Section 4.1.
+
+# A.1 STATISTICS OF THE BENCHMARK USED IN THE EXPERIMENT
+
+Table 1 presents an excerpt of the benchmark statistics. We created benchmarks for every $d \in \{3, \ldots, 15\}$ , but, for readability, give the statistics only for those at intervals of 5—that is, for depths of 5, 10, and 15.
+
+
Length d
Examples
Total Nodes
Average Nodes in a Graph
Mean In-Degree
Total Edges
Average Edges in a Graph
Average S → T
5
10000
19334
19
2
259154
26
5
10
10000
336606
33
2
401698
40
9
15
10000
497528
50
2
562624
56
14
+
+Table 1: Statistics of the synthetic benchmark generated by GLoRa with varying length $d$ , where each column entry gives the number of the elements in the set of the column name; here 'Average $S \rightarrow T$ stands for the average path length from the source node to the target node, while other column names are self-explanatory
+
+# A.2 BENCHMARK LICENSES
+
+Our benchmark generator source code is available at https://github.com/DongzhuoranZhou/GLoRa under the MIT License.
+
+# A.3 SOURCE CODES FOR EVALUATED SYSTEMS
+
+For the vanilla GNN-based systems (i.e., not designed to deal with long-range dependencies), GCN, GAT, GraphSAGE, GGNN, SGC, and GIN, we used the implementations included into library PyTorch Geometric (see https://github.com/pyg-team/pytorchbégeometric). The implementation of GatedGCN was taken from the repository of GraphGPS (Rampásek et al., 2022).
+
+For the GNN-based systems targeting over-smoothing, we used the PyTorch Geometric implementations for GCNII, PairNorm, DropEdge, APPNP, JKNet, ResGCN, and DenseGCN, as well as the variants ResGatedGCN, DenseGatedGCN, ResGAT, and DenseGAT of the last two. The implementations of GPRGNN, DAGNN, IGNN, EIGNN, GIND, and $\mathbf{G}^2$ were obtained from the original repositories reported in the corresponding papers.
+
+For the GNN-based systems targeting over-squashing, the implementations of $\nu$ Drew-GCN with $\nu \in \{1,\infty \}$ , SP-GCN, DIGL, and MixHop-GCN were taken from the repository of Drew (Gutteridge et al., 2023), while SDRF and FOSR were taken from https://github.com/hieubkvn123/revisiting-gnn-curvature. Lastly, the FA-GCN architecture was re-implemented in-house.
+
+For all transformer-based systems—that is, GraphTransformer, SAN, and GraphGPS with RWSE and LapPE—we used the implementations available in the GraphGPS repository (Rampásek et al., 2022).
+
+The overview of these sources is given in Table 2.
+
+# A.4 COMPUTING ENVIRONMENT
+
+All experiments were conducted in a shared computing cluster environment utilizing various CPU and GPU architectures, including NVidia V100 (16GB/32GB) and NVidia A100 (40GB/80GB). Each system was allocated a resource budget of 1 GPU, 4 CPUs, and up to 32GB of system RAM.
+
+
+
+Table 2: URLs for Baseline Model Source Codes
+
+# A.5 HYPERPARAMETER SETTINGS
+
+The essential parameters and hyperparameters are as follows.
+
+- All experiments are trained for 300 epochs or until convergence, with results averaged over 5 runs.
+- All experiments use batch sizes of 32.
+- All results use the AdamW optimiser with momentum $\beta_{1} = 0.9$ , base learning rate search space [0.005, 0.01, 0.05], and weight decay space [0, 5e-6, 5e-5, 5e-4].
+- All experiments use batch normalisation with $\epsilon = 1\mathrm{e} - 5$ , momentum=0.9.
+- For the GNN-based systems, the number of layers was set to $d + 2$ , where $d$ is the depth of the benchmark (which, not surprisingly, was shown to be a best number of layers in all cases in additional experiments).
+- For MixHop-GCN, hyperparameter $P$ is a set of integer adjacency powers. The search space for $P$ is [3, 5, 7].
+- DIGL and GraphGPS are configured to use GatedGCN as the base model, as it delivers the best performance among MPNNs.
+- For DIGL, we employ PPR diffusion with $\alpha$ with search space [0.1, 0.2, 0.5, 0.9] and apply threshold sparsification with average degree $d_{\mathrm{avg}}$ with search space [1, 2, 3, 4, 5].
+- GAT head search space is [1, 4, 8].
+- JKNet has three options of connection, i.e., concatenation, max, and lstm, which is also taken as a hyperparameter.
+- For GPRGNN, we set the random walk path length to $K = 10$ , and search for the best PPR within space $\alpha \in [0.1, 0.2, 0.5, 0.9]$ .
+- For GPS and SAN, layer number search space is $[5, \dots, 14]$ .
+
+# B ADDITIONAL RESULTS OF THE MAIN EXPERIMENT
+
+In this appendix, we report the results of the main experiment that are not included in the main body of the paper. In Figure 5, we show the testing accuracy on GLoRa benchmarks with increasing $d$
+
+
+
+
+
+
+
+
+
+
+Figure 5: Test accuracy of non-top-5 based systems on GLoRa benchmarks for increasing $d$ (lines represent mean accuracy over multiple runs, shaded areas indicate the standard deviation)
+
+
+
+for systems outside the top 5 in vanilla GNNs, GNNs targeting over-smoothing, GNNs targeting over-squashing, and all transformer-based methods. Specifically, for vanilla GNN-based systems they are GAT and GGNN; for the GNNs targeting over-smoothing they are ResGAT, $\mathbf{G}^2$ , DenseGAT, DropEdge, DAGNN, PairNorm, APPNP, GPRGNN, GIND, EIGNN, JKNet, and IGNN; and for the GNNs targeting over-squashing systems they are DIGL, SDRF, FOSR, and FA-GCN. For transformer-based methods, we consider GraphTransformer, SAN, and GraphGPS.
+
+# C PROOF SKETCH OF THEOREM 1
+
+In this appendix, we give a proof sketch of our theorem.
+
+Theorem 1 Let $d \in \mathbb{N}$ be a length. Then, for every $\delta > 0$ and $\mathcal{P} \in (0,1)$ there exists a number $K$ such that a set of $K$ examples, half generated by $GLoRa(d, \text{True})$ and half by $GLoRa(d, \text{False})$ , requires learning dependencies of length $d$ with precision $\delta$ with probability at least $\mathcal{P}$ .
+
+Proof sketch. First, observe that, for the given $d$ , there is only a finite number of pairs $\mathcal{V}, \mathcal{E}$ of sets of nodes and edges that can be the first two components of a graph generated by GLoRa algorithm with parameter $d$ . Moreover, each of these pairs has non-zero probability of being generated. Moreover, $\mathcal{D}$ is bounded and the values are sampled from this set by the algorithm uniformly. So, for the given $\delta$ and $\mathcal{P}$ , there is a number $K$ such that $K$ generated examples include, with required probability, an appropriate number of examples that support the claim—that is, such that the approximated version of Definition 1 holds. Indeed, we only need to ensure that the graph structures of each
+
+positive-negative pair agree with the required structure and between the two examples in the pair, and that their embeddings are within $\delta$ everywhere, except the designated differences.
+
+# D NON-SUITABILITY OF EXISTING SYNTHETIC BENCHMARKS
+
+In this appendix, we provide a summary of existing synthetic benchmarks, each with its unique graph structures and target functions. Then we explain why each of the existing synthetic benchmarks are not suitable for the purpose of checking whether a system is able to learn long-range dependencies.
+
+Summary of existing synthetic benchmarks is as follows:
+
+- Synthetic Chains (Gu et al., 2020). The graph structure in this benchmark is directed chain. The task is to classify nodes in a directed chain of length $l$ . For simplicity, a binary classification is used, with two types of chains. The class of each node is determined by the 1/0 encoding in the first dimension of the starting node's 100-dimensional feature vector. The training set includes randomly sampled nodes from these chains. The target function is that the node is true if and only if the starting node, which has no incoming edges, has a value of 1 in its first dimension.
+- Graph Transfer, Ring Transfer (Di Giovanni et al., 2023; Gutteridge et al., 2023). The graph structures in these benchmarks are ring, crossed-ring, and clique-path. Ring graphs are cycles of size $n$ . In each ring, there exist pairs of nodes that are placed at a distance of $\left\lfloor \frac{n}{2} \right\rfloor$ from each other. One of these node pairs is chosen. One node in the pair has its class information encoded as a one-hot vector (5 classes total) in its embedding, which is used to classify the other node. The target function is that there exists a node with a one-hot encoding node embedding in the graph. The class of the node at a distance of $\left\lfloor \frac{n}{2} \right\rfloor$ from this node is the same as the one-hot encoded class. A similar setting applies in crossed-ring and clique-path.
+- Tree-Neighbours (Alon & Yahav, 2021). The graph structure in this benchmark is a directed binary tree, where the root and leaves have some additional 1-hop neighbours pointing to them. The target function is that the class of the root node is the class of the leaf node, which has the same number of 1-hop neighbors pointing to it as the root node. Here, the 1-hop neighbours do not include the nodes on the original binary tree.
+- h-Proximity (Abboud et al., 2022). The graph structure in the benchmark is defined as follows: (i) consecutive level nodes are pairwise fully connected, (ii) nodes within the same level are pairwise disconnected. Each node is either red, blue, or uncoloured. The target function states that the graph is positive if all red nodes in this graph have at most 2 blue nodes within their $h$ -hop neighborhood.
+- Colour-Connectivity (Rampášek & Wolf, 2021). The graph structure in the benchmark consists of 2D square grids. Each node is either red or blue. Red nodes are sampled by random walks starting from two random nodes until half the nodes are red; the remaining nodes are colored blue. The target function states that the graph is positive if there is a single connected island of red nodes, and negative if there are two disjoint islands of red nodes.
+- Conditional Recall (Lukovnikov & Fischer, 2021): The graph structure in Conditional Recall is a directed chain. The nodes in the chain are encoded as letters (both uppercase and lowercase) and digits. The target function is as follows: (i) if there is a digit in the sequence, the first digit corresponds to the class label of the chain; (ii) otherwise, if there is an uppercase letter, the first uppercase letter is the class label; (iii) if neither digits nor uppercase letters are present, the class is given by the first character in the sequence.
+- Tree-Max (Lukovnikov & Fischer, 2021). The graph structure in Tree-Max is a directed binary tree. The nodes in the tree are encoded as digits. The target function is that the label of the node is the largest value of all the descendants of a node and the node itself.
+
+The reason why each of the existing synthetic benchmarks are not suitable for the purpose of checking whether a system is able to learn long-range dependencies are as follows:
+
+- Synthetic Chains. Intuitively, to solve this benchmark, it is possible for the learned function to ignore the distance and path information, making global readouts like Virtual Nodes
+
+
+
+
+
+
+Figure 6: Test accuracy of best five systems in each category of vanilla GNN-based systems, systems targeting over-smoothing and systems targeting over-squashing on undirected GLoRa benchmarks for increasing $d$ (lines represent mean accuracy over multiple runs, shaded areas indicate the standard deviation)
+
+sufficient. In particular, such function does not rely on long-range dependency, because it does not satisfy the requirement that any intermediate node on a justifying path can be dropped.
+
+- Graph Transfer and Ring Transfer. This benchmark has similar properties as Synthetic Chains and hence also can be perfectly fitted with a similar function that does not rely on long-range dependency. Moreover, the design of these benchmarks allows only for five different examples (one for each class of the used multi-class classification), which makes the benchmarks of limited use, because these five examples may be memorised by the system during training.
+- Tree-Neighbours. Same as the previous two cases, this benchmark can be perfectly fitted with a function that does not rely on long-range dependency, which is based on the same principle.
+- h-Proximity. In this case, the possible function that does not rely on long-range dependency is the one that does not rely on the embeddings of the nodes on the paths between any red node and the target node (thus not satisfying Definition 1).
+- **Colour-Connectivity.** On the contrary to the previous cases, this benchmark indeed requires learning function relying on long-range dependency. However, it has an opposite issue: all the GNN-based systems we are aware of cannot express any function that fits a sufficient amount of randomly generated training examples.
+- Conditional Recall, Tree-Max. The graphs in these benchmarks have limited size, so it is also possible to solve each of them by using a function that does not depend on long-range dependency.
+
+# E UNDIRECTED GRAPH EXPERIMENT RESULTS
+
+In this section, we present the test results for all the based systems discussed in Section 4 on the undirected version of GLoRa. The results are reported in Figures 6 and 7.
+
+
+
+
+
+
+
+
+
+
+Figure 7: Test accuracy of non-top-5 based systems on undirected GLoRa benchmarks for increasing $d$ (lines represent mean accuracy over multiple runs, shaded areas indicate the standard deviation)
+
+
+
+# F GRADIENT VISUALIZATION OF THE DEEP LAYERS
+
+In this section, we present the gradient distributions of the second and third layers for the best-performing systems. As shown in Figure 8, the gradients in both the second and third layers remain sufficiently large, indicating that the models do not suffer from vanishing gradient problems. This stability of gradients across deeper layers suggests that the degradation in performance is not due to gradient vanishing, but likely other factors.
+
+
+(a) GatedGCN
+
+
+(b) DenseGatedGCN
+
+
+(c) 1Drew-GCN
+
+
+(d) GatedGCN
+
+
+(e) DenseGatedGCN
+
+
+(f) 1Drew-GCN
+Figure 8: Gradient weights of the second (a, b, c) and third layer (d, e, f) across 300 epochs for the best-performing systems
\ No newline at end of file
diff --git a/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/images.zip b/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..b502d2e5a3e91c9df844b2d028f9b5e6669df25f
--- /dev/null
+++ b/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fb1e886fb7765de272c4ed186a822ba830491f2aff9553af25a233c9c4d71f99
+size 650725
diff --git a/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/layout.json b/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..ab18238887fab4f00a52e0763b6b7d59ea83774b
--- /dev/null
+++ b/ICLR/2025/GLoRa_ A Benchmark to Evaluate the Ability to Learn Long-Range Dependencies in Graphs/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b32051b9d862b388bf1ce4319484785e111e3e8def3fa97481350f29751bf5d3
+size 783804
diff --git a/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/88272ed1-8509-48e0-8a26-3df7edf3f8fd_content_list.json b/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/88272ed1-8509-48e0-8a26-3df7edf3f8fd_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a0d6f19ffeaf742b80011ddc186acead6ff782f5
--- /dev/null
+++ b/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/88272ed1-8509-48e0-8a26-3df7edf3f8fd_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:142a4ee778d05b7d4a0a56d399c5b22c148bfd79db81de924970d6b294bce4a0
+size 160246
diff --git a/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/88272ed1-8509-48e0-8a26-3df7edf3f8fd_model.json b/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/88272ed1-8509-48e0-8a26-3df7edf3f8fd_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..19bfe3cfaced582691474fc2109f3027a66850d8
--- /dev/null
+++ b/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/88272ed1-8509-48e0-8a26-3df7edf3f8fd_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4fcff17e33d12a7e8854fa59633f3a80c3a1def3e2a11698227e49adf42d2652
+size 194368
diff --git a/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/88272ed1-8509-48e0-8a26-3df7edf3f8fd_origin.pdf b/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/88272ed1-8509-48e0-8a26-3df7edf3f8fd_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..4dc47b1f5e7da0c783fbc95cedf6e60f4c4c54f5
--- /dev/null
+++ b/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/88272ed1-8509-48e0-8a26-3df7edf3f8fd_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:93b2e76211343c816a4ff8c2d7af55ebd02b69239903be5261ec0ec16e384c63
+size 7492122
diff --git a/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/full.md b/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..cd591f5cfb95cb12f151a23c0c9f98177d217546
--- /dev/null
+++ b/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/full.md
@@ -0,0 +1,652 @@
+# GMVALUATOR: SIMILARITY-BASED DATA VALUATION FOR GENERATIVE MODELS
+
+Jiaxi Yang $^{1*†}$ , Wenlong Deng $^{1,5*}$ , Benlin Liu $^{2}$ , Yangsibo Huang $^{3}$ , James Zou $^{4}$ , Xiaoxiao Li $^{1,5*}$
+
+1University of British Columbia 2University of Washington 3Princeton University
+
+4Stanford University 5Vector Institute
+
+# ABSTRACT
+
+Data valuation plays a crucial role in machine learning. Existing data valuation methods, mainly focused on discriminative models, overlook generative models that have gained attention recently. In generative models, data valuation measures the impact of training data on generated datasets. Very few existing attempts at data valuation methods designed for deep generative models either concentrate on specific models or lack robustness in their outcomes. Moreover, efficiency still reveals vulnerable shortcomings. We formulate the data valuation problem in generative models from a similarity matching perspective to bridge the gaps. Specifically, we introduce Generative Model Valuator (GMVALUATOR), the first training-free and model-agnostic approach to providing data valuation for image generation tasks. It empowers efficient data valuation through our innovative similarity matching module, calibrates biased contributions by incorporating image quality assessment, and attributes credits to all training samples based on their contributions to the generated samples. Additionally, we introduce four evaluation criteria for assessing data valuation methods in generative models. GMVALUATOR is extensively evaluated on benchmark and high-resolution datasets and various mainstream generative architectures to demonstrate its effectiveness. Our code is available at: https://github.com/ubc-tea/GMValuator.
+
+# 1 INTRODUCTION
+
+As the driving force behind modern AI, particularly deep learning Pei (2020), a substantial volume of data is indispensable for effective machine learning. On one hand, informative data samples relevant to the task at hand play a critical role in the training process. On the other hand, due to data privacy concerns, personal data is safeguarded by various regulations, including the General Data Protection Regulation (GDPR) Regulation (2018), and has become a valuable asset. Consequently, data valuation has garnered significant attention from academic and industrial sectors recently.
+
+The intricate relationship between data and model parameters presents a significant challenge in the contribution measurement of each training sample, thus making data valuation a difficult task. Most existing data valuation studies focus on supervised learning for discriminative models (e.g., classification and regression). These methods can be categorized as (1) Metric-based methods: Methods such as Shapley Value (SV) and Banzhaf Index (BI) Ghorbani & Zou (2019); Wang & Jia (2023) provide the assessment of data value by calculating marginal contribution on performance metrics (e.g., accuracy or loss) through retraining the model1. (2) Influence-based methods: This line of methods measures data value by evaluating influence on model parameters of data points Jia et al. (2019b); Nohyun et al. (2022). (3) Data-driven methods: These techniques avoid retraining by leveraging data characteristics (like data diversity, generalization bound estimation, class-wise distance), though generally necessitate data labels. Xu et al. (2021); Wu et al. (2022); Just et al. (2023).
+
+Urgent needs for generative models. Data valuation in the context of generative models has NOT been well-investigated in the current literature. Moreover, there exist significant challenges in
+
+directly adapting the aforementioned data valuation methods for discriminative models listed to generative models: Firstly, the challenge of applying metric-based methods arises from lacking robust performance metrics in generative models, in contrast to the existence of commonly used metrics (e.g., accuracy or loss) in discriminative models Betzalel et al. (2022). This could potentially result in inconsistent outcomes when employing various performance metrics Terashita et al. (2021). In addition, the expensive cost of retraining requirements is another obstacle to using metric-based methods. Secondly, influence-based methods may not perform well on non-convex objective function of generative models Bae et al. (2022). Besides, estimating the influence function in a deep generative model is expensive, as it requires computing (or approximation) inverse Hessian. Thirdly, for data-driven methods, they mainly focus on supervised learning, which requires knowing data labels to quantify data values.
+
+To the best of our knowledge, limited studies have explored model-dependent data evaluation using influence functions for specific generative models. IF4GAN Terashita et al. (2021) consider multiple evaluation metrics, such as log-likelihood, Inception Score (IS), and Frechet Inception Distance (FID) Heusel et al. (2017) to identify the most responsible training samples for the overall performance of Generative Adversarial Networks (GAN)-based models. However, selecting appropriate metrics is critical, as the results are inconsistent across metrics. VAE-TracIn Kong & Chaudhuri (2021) finds the most significant contributors for generating a particular generated sample for Variational Autoencoders (VAE) using the influence function. However, viable Hessian estimation in influence function calculations incur high computational costs and this method cannot be easily generalized to other generative models.
+
+Our motivation and goal. Considering the challenges posed by the selection of performance metrics and computational efficiency and the need for broader applicability across various generative models, we aim to propose a unified and efficient data valuation method. We expect the unified method to satisfy the following key properties: 1) Model-agnostic: the method should be versatile, capable of being employed across diverse generative model architectures and algorithms, regardless of specific design choices; 2) Computation Efficiency: the method does not require retraining the model and minimize computational overhead while maintaining a satisfactory level of accuracy and reliability in evaluating the value of data points; 3) Plausibility: the method should evaluate the value of data based on its alignment with human prior knowledge on the task, enhancing its credibility and reliability; 4) Truthfulness: the method should strive to provide an unbiased and accurate assessment of the value associated with individual data points. In this work, we evaluate the contribution of (good) training data given a fixed set of generated data from a certain well-trained generative model. We refer to the value of training data as the contribution to the given generated data, taking into account the quality of the generated data. To meet the design purposes, we propose a similarity-based data valuation approach $^{2}$ for the generative model, called Generative Model Valuator (GMVALUATOR), which is model-agnostic and efficient.
+
+In summary, our work here provides the following specific novel contributions:
+
+- To the best of our knowledge, GMVALUATOR is the first modal-agnostic and retraining-free data valuation method for image generative models.
+- We formulate data valuation for generative models as an efficient similarity-matching problem. We further eliminate the biased contribution measurement by introducing image quality assessment for calibration.
+- We propose four evaluation methods to assess the truthfulness of data valuation and evaluate GMVALUATOR on different datasets (including benchmark datasets and high-resolution large-scale datasets) and various deep generative models to verify GMVALUATOR's validity.
+
+Related Work. Different from discriminative models for regression or classification tasks, generative models in various forms (i.e., Variational auto-encoders (VAEs) Rezende et al. (2014), Variational auto-encoders (VAEs) Rezende et al. (2014), Diffusion Model Ho et al. (2020); Rombach et al. (2022)) aim to learn data distribution for generation tasks. Consequently, the approach to data valuation in our work, which focuses on generative models, is distinct and orthogonal to that for discriminative models. The primary limitation of both metric-based methods and influence-based methods is the expensive computation cost, a drawback that is further magnified in generative models. Conversely, while
+
+data-driven methods are training-free, they predominantly concentrate on supervised learning and data itself Xu et al. (2021); Wu et al. (2022); Just et al. (2023). Apart from the expensive computational cost, the limited existing influence-based methods for generative models are model-specific, which can not adapt to the diverse and evolving trends in generative model development Terashita et al. (2021); Kong & Chaudhuri (2021). A more detailed related work is discussed in Sec. C of the appendix.
+
+# 2 MOTIVATION AND PROBLEM FORMULATION
+
+In this section, we present the background and motivation behind our proposed method GMVALUATOR, which formulates the data valuation for generative models as a similarity-matching problem.
+
+# 2.1 MOTIVATIONS
+
+Let us denote $X = \{x_{1},\dots,x_{n} | x \sim \mathcal{X}\}$ as the training dataset without duplicated data for a generation task, and $n$ is regarded as the size of the dataset. Denote the generated dataset as $\hat{X} = \{\hat{x}_1,\dots,\hat{x}_m\}$ by a well trained generative model $G^{*}$ (e.g., Generative Adversarial Network (GAN), Variational Auto-encoder (VAE), Diffusion Model) on $X$ .
+
+The core of these generative models is an intractable probability distribution learning process to train a generator $G$ , that maps each $z$ sampled from the noise distribution $\mathcal{Z}$ to a generated sample $\hat{x}$ in estimated distribution by maximizing the likelihood $p_{\mathcal{X}}(x) \approx \int p_G(x|z)p_{\mathcal{Z}}(z)dz$ . This can be achieved by minimizing the distance $d(\cdot, \cdot)$ (i.e., Wasserstein Distance) between the estimated distribution and training data distribution:
+
+$$
+G ^ {*} = \underset {G} {\arg \min } d \left(G _ {z \sim \mathcal {Z}} (z)\right), \mathcal {X}). \tag {1}
+$$
+
+Therefore, the data generated by an optimal generator, which closely approximates the training distribution, can be considered as drawing from a subdistribution of $\mathcal{X}$ .
+
+# 2.1.1 THEORETICAL JUSTIFICATION
+
+Let $T \subset X$ denote the $K$ contributors found by a data valuator (e.g., GMVALUATOR) for $\hat{X}$ , and $S$ is a subset of the training dataset $X$ . We focus on the data type with describable attributes (e.g., image data with semantic attributes). We first provide definitions of data and contributors.
+
+Definition 2.1 (Data with Describable Attributes.) We assume an image can be characterized by $V$ attributes, and there is a labeling function $f$ mapping $S, T$ and $\hat{X}$ to the same attribute space $\mathcal{A} = \{0,1\}^V$ .
+
+Definition 2.2 (Contributors in Generative Models.) Let $S^*$ denotes the real $K$ contributors, defined as follows:
+
+$$
+S ^ {*} = \underset {S \subset X} {\arg \min } d \left(\mathcal {X} _ {\left(\hat {X} | A\right)}, \mathcal {X} _ {\left(G (S) | A\right)}\right), \tag {2}
+$$
+
+where $|S^{*}| = K$ and $K$ is a reasonable number for generative model training. $\mathcal{X}_{(\hat{X} |A)}$ is the data distribution of generated data $\hat{X}$ on attributes $A\in \mathcal{A}$ , and $\mathcal{X}_{(G(S)|A)}$ is the distribution of data with attribute $A$ that are generated by the optimal generator trained by contributors $S$ . According to the objective of generative models and Eq. equation 2, we have $\mathcal{X}_{(\hat{X} |A)}\sim \mathcal{X}_{(G(S^{*})|A)}$ . We follow Just et al. (2023) on assumptions and lemmas that will be used to obtain the theorem.
+
+Assumption 2.3 Assume that the function $f$ is $\epsilon$ -Lipschitz and the loss function $\mathcal{L} : \{0,1\}^V \times [0,1]^V \to R^+$ is $k$ -Lipschitz in both inputs and attributes. We have labeling functions that are all bounded by $V$ as $\| f \| \leq V$ .
+
+Then, we introduce the error bound between $T$ and $S^{*}$ .
+
+Theorem 2.4 (Bounded Attributes Classification Error on $S^*$ to $T$ .) Let $f_{S^*}': \mu \to \mathcal{A} = \{0,1\}^V$ be the model trained on the optimal contributor dataset $S^*$ . Following Assumption 2.3, if the contributors
+
+are corresponding to the given generated data $\hat{X}$ , we have:
+
+$$
+\begin{array}{l} \mathbb {E} _ {x \sim \mu_ {T}} \left[ \mathcal {L} \left(f (x), f _ {S ^ {*}} ^ {\prime} (x)\right) \right] - \mathbb {E} _ {x \sim \mu_ {S ^ {*}}} \left[ \mathcal {L} \left(f (x), f _ {S ^ {*}} ^ {\prime} (x)\right) \right] \\ \leq k \epsilon \cdot \left[ d _ {W} \left(\mathcal {X} _ {(T | f)}, \mathcal {X} _ {(\hat {X} | f)}\right) + d _ {W} \left(\mathcal {X} _ {\left(S ^ {*} | f\right)}, \mathcal {X} _ {(\hat {X} | f)}\right) \right] \tag {3} \\ \end{array}
+$$
+
+As shown in the Theorem 2.4, given the optimal contributor $S^{*}$ , $d_{W}\left(\mathcal{X}_{(S^{*}|f)},\mathcal{X}_{(\hat{X} |f)}\right)$ is a deterministic term that approaching zero. Then, approximate $S^{*}$ can be achieved by reducing the distance term $d_{W}\left(\mathcal{X}_{(T|f)},\mathcal{X}_{(\hat{X} |f)}\right)$ . Please see Sec. M in the appendix for the proof.
+
+# 2.1.2 EMPERICAL VALIDATION
+
+According to theoretical justification, the generated data should show more similarity to the data samples used for training. In this context, we examine the value of training data being more valuable compared to data that is not used for training, despite originating from a similar distribution. We support this by partitioning a class of CIFAR-10 (the class is plane here) into two non-overlapped subsets, denoted as $X_{v1}$ and $X_{v2}$ . Next, we keep $X_{v1}$ as non-training data and use $X_{v2}$ as training data to train a BigGAN Brock et al. (2018) and generate dataset $\hat{X}$ . If our assumption holds, the generated data will be more similar to the training data $X_{v2}$ . As presented in the T-SNE Van der Maaten & Hinton (2008) plot (Figure 1), the generated data demon
+
+
+Figure 1: Data distribution for $X_{v1}, X_{v2}$ and $\hat{X}$ for CIFAR-10, and $X_{v1}, X_{v2}$ are both airplane dataset.
+
+stratiate more substantial overlap in the shared feature space with the training dataset $X_{v2}$ than the non-training ones $X_{v1}$ . This observation motivates us to address the data valuation for the generative model from a similarity-matching perspective.
+
+# 2.2 PROBLEM FORMULATION AND CHALLENGES
+
+The primary objective of our research is to tackle the issue of data valuation in generative models using black-box access. In essence, given a fixed set of data samples $\hat{X}$ with a size of $m$ generated from the well-trained deep generative model $G^{*}$ , our aim is to determine the value $\phi_{i}(x_{i},\hat{X},G^{*})$ associated with each data point $x_{i}\in X$ for $i\in [n]$ in the deduplicated training dataset, which contributes to the generated dataset. We denote the value for training data $x_{i}$ as $\phi_{i}$ in the rest of the paper for simplicity.
+
+Following the motivation stated in Sec. 2.1, $\phi_{i}$ should be a function of the distance between the data points. We denote the distance between training data $x_{i}$ and generated data $\hat{x}_j$ as $d_{ij}$ , for $i\in [n]$ and $j\in [m]$ .
+
+Definition 2.5 (Primary Contribution Score.) The contribution score of $x_{i}$ to $\hat{x}_j$ is denoted as $\mathcal{V}(x_i, \hat{x}_j) \propto d_{ij}^{-1}$ , which is inversely proportional to distance since maximizing the log-likelihood of a generative model is equivalent to minimizing the dissimilarity of real and generated data distribution. To link the dissimilarity $-d_{ij}$ to likelihood, we choose $exp(-d_{ij})$ to likelihood
+
+$$
+\mathcal {V} \left(x _ {i}, \hat {x} _ {j}\right) = \frac {\exp \left(- d _ {i j}\right)}{\sum_ {i} \exp \left(- d _ {i j}\right)}. \tag {4}
+$$
+
+Therefore, an intuitive definition for the value of data sample $x_{i}$ can be written as below.
+
+
+Figure 2: Overview of GMVALUATOR, a unified and training-free data valuation approach for any generative models. GMVALUATOR contains three important modules - (1) Efficient Similarity Matching (ESM), (2) Image Quality Assessment, and (3) Value Calculation. Each generated data $\hat{x}_j$ is matched with training data through ESM approach, resulting in the distances with its top $k$ contributors. The normalized contribution score from training sample $x_i$ to $\hat{x}_j$ , defined as $\exp(-d_{ij}) / \sum_i^k \exp(-d_{ij})$ , is adjusted based on the quality of the associated generated samples $q_j$ . We compute the data value $\phi_i$ of each training sample $x_i$ by summing its contributions to the generated samples, where it ranks among the top $k$ contributors.
+
+Definition 2.6 (Data Value.) The contribution of each training data point $x_{i} \in S^{*}$ for the generation of dataset $\hat{X}$ equals to the sum of its contributions to each generated data point $\hat{x}_i$ in $\hat{X}$ .
+
+$$
+\phi_ {i} = \sum_ {j = 1} ^ {m} \mathcal {V} \left(x _ {i}, \hat {x} _ {j}\right), x _ {i} \in X, \hat {x} _ {j} \in S ^ {*}. \tag {5}
+$$
+
+The high-value data will achieve a smaller distance to the target distributions, thus, a better approximation. Therefore, data valuation in the above problem formulation contains two steps: Step 1, calculating all of the score value $\mathcal{V}(x_i,\hat{x}_j)$ ; Step 2, mapping the contribution from training data to generative data based on the scores $\mathcal{V}$ .
+
+However, there are several open questions and challenges in performing the above two steps for calculating Eq. equation 5:
+
+Challenge 1: Efficiency. In step 1, considering $n$ training samples and $m$ generated samples, where $\mathcal{O}(C)$ represents the complexity of the selected pair-wise distance calculation, the total complexity of this step amounts to $\mathcal{O}(mnC)$ . In practical scenarios with large training datasets (e.g., $n > 10K$ ), the computation cost becomes prohibitively expensive. Additionally, fitting such a large collection of high-dimensional data for distance calculation can pose significant challenges in system memory.
+
+Challenge 2: Contribution plausibility. To ensure that a training data point contributes more if it is similar to high-quality generated data and less if it is similar to low-quality generated data, the contribution scores should be adjusted based on the quality of the generated data.
+
+Challenge 3: Non-zero scores. In practical scenarios, the distance between training data and the least similar generated data is not infinite, which may result in false non-zero contribution scores. With a large dataset size, the accumulation of these noisy scores yields biased data valuation.
+
+In light of this, we present a novel and efficient data valuation approach suitable for agnostic generative models, termed as GMVALUATOR as elaborated in Section 3.
+
+# 3 THE PROPOSED DATA VALUATION METHODS
+
+The crucial idea behind GMVALUATOR is to transform the data valuation problem into a similarity-matching problem between generated and training data. The overview of GMVALUATOR is presented in Figure 2. To tackle challenge 1, we propose to employ efficient similarity matching (ESM), where
+
+each generated data point can be linked to multiple contributors from the training dataset (Section 3.1). Each generated data firstly is linked with top $k$ contributors via recall phase and then re-ranked by a refined similarity for effectiveness. After that, the image quality of the generated sample is assessed to weigh the valuation (Sec. 3.2). Finally, the value computation function combines both the quality score and the image-space similarity score to measure the value of the training data (Sec. 3.3).
+
+# 3.1 EFFICIENT SIMILARITY MATCHING
+
+Considering the complexity of calculating $\mathcal{V}(x_i, \hat{x}_j)$ , we formulate it as an ESM problem between generative data and training data. Each generated data sample is matched to several training data samples based on their similarity. We denote $\mathcal{P}_j = \{x_1, x_2, \dots, x_k\} = f(X, \hat{x}_j)$ as the subset of training data that contains the $k \ll n$ most similar data samples. Here, $f$ represents the similarity-matching strategy, encompassing the recall and re-ranking phases, which will be introduced subsequently.
+
+Recall Phase: The main aim of the recall phase is to rapidly identify a subset of training samples that are similar to a generated sample. To achieve this, an initial step involves encoding all original training images and generated samples from the image space $R^C$ to a lower-dimensional embedding space $R^D$ using an pre-trained encoder $f_e$ (such as CLIP Radford et al. (2021)) to reduce computational complexity. Subsequently, the technique of Product Quantization (PQ) Jegou et al. (2010) is employed to further decrease the computational burden. Specifically, PQ divides embedding vectors into subvectors and independently quantizes each subvector through $Q$ -means clustering. This process generates compact PQ codes that serve as representations of the original vectors. This representation significantly reduces the vector sizes, allowing for efficient estimation of Euclidean Distance between two samples. By incorporating the recall method into the similarity matching process, the computational complexity is lowered from $\mathcal{O}(mnC)$ to $\mathcal{O}(mQD)$ , where $D \ll C$ and $Q \ll n$ . Consequently, generated images can quickly identify their top- $k$ most similar training data samples.
+
+Re-Ranking Phase: Following the PQ-based efficient recall process in GMVALUATOR, we further improve the precision of the results by utilizing perceptual similarity Fu et al. (2023) for precision ranking. Once we have extracted perceptual features from the top $k$ recalled training samples, we proceed to calculate the distance for each pair of items. To obtain precise distance measurements based on their perceptual content, we propose to use Learned Perceptual Image Patch Similarity (LPIPS) Zhang et al. (2018) or DreamSim Fu et al. (2023) as the distance measurement $d$ to gain insights into the perceptual dissimilarity between the generated sample and different training samples. These metrics enable us to precisely measure the most significant contributors according to their perceived similarity, more importantly, the obtained distance $d$ will be employed to compute data valuation in Eq. equation 6. We do not use Wasserstein distance as it is more proper to measure dissimilarity between two probability distributions rather than a pair of image instances with semantic characteristics.
+
+# 3.2 IMAGE QUALITY ASSESSMENT
+
+To tackle challenge 2, we have to establish a connection between the quality of the generated sample that the training samples contribute to and the contribution score. This is necessary before assigning contribution scores to the ranked training samples for the generated sample. For low-quality generated samples $\hat{x}_{\mathrm{low}}$ , we expect their total contribution score from contributors to be lower compared to high-quality samples $\hat{x}_{\mathrm{high}}$ , namely $\sum_{i\in [k]}\mathcal{V}(x_i,\hat{x}_{\mathrm{low}}) < \sum_{i\in [k]}\mathcal{V}(x_i,\hat{x}_{\mathrm{high}})$ . This motivation arises from the observations in Figure 3, where the first and second rows show generated samples using $z$ from a normal distribution and uniform distribution, respectively. The values denoted in Figure 3 directly employs Eq equation 4, so we have $\sum_{x_i\in \mathcal{P}}\mathcal{V}(x_i,\hat{x}) = 1$ for $\forall \hat{x}\in \hat{X}$ . The real samples are noticeably dissimilar to the generated data, yet they are still assigned a high value.
+
+Therefore, we propose to calibrate the contribution scores with the generated data quality. Specifically, we obtain a comprehensive quality score $q_{j} \in [0,1]$ for each generated image integrated using MANIQA Yang et al. (2022) model into our evaluation process. A higher $q_{j}$ indicates better data quality. This score of MANIQA considers various factors such as sharpness, color accuracy, composition, and overall visual appeal. We also provide the necessity of this calibration in the appendix I. Incorporating the image quality evaluation provided by MANIQA allows us to more
+
+
+Figure 3: The value without generated image quality calibration for q high-quality image (top row) and a low-quality image (bottom row). Column 1: generated images. Column 2-5:their top 4 contributors.
+
+accurately assess the generated images and take into account their perceptual fidelity and aesthetic qualities.
+
+# 3.3 VALUE CALCULATION
+
+Finally, we utilize the image quality $q$ to calibrate the contribution scores. Notably, during the recall phase of similarity matching, we select the top $k$ contributors $\mathcal{P}_j$ for the generated data $\hat{x}_j$ . Consequently, we only consider the contribution score between $\mathcal{P}_j$ and $\hat{x}_j$ by setting $\mathcal{V}(x_i, \hat{x}_j) = 0$ for $x_i \notin \mathcal{P}_j$ . This strategy addresses challenge 3 by assigning zero scores to irrelevant samples, effectively reducing bias and noise in value estimation when dealing with a large $n$ . Hence, we define the contribution score of each training data point for a specific synthetic data point as follows:
+
+$$
+\mathcal {V} \left(x _ {i}, \hat {x} _ {j}, d _ {i j}, q _ {j}\right) = \left\{ \begin{array}{l l} q _ {j} \cdot \frac {\exp (- d _ {i j})}{\sum_ {i = 1} ^ {k} \exp (- d _ {i j})} & x _ {i} \in \mathcal {P} _ {j} \\ 0 & x _ {i} \notin \mathcal {P} _ {j} \end{array} \right. \tag {6}
+$$
+
+which is used to give different scores to training data points according to their ranking distance. The final data value is obtained by plugging Eq. 6 into Eq. 5.
+
+# 4 EXPERIMENTS
+
+# 4.1 EXPERIMENT SETUP
+
+Datasets. Our experiment settings are listed in Table 1. Particularly, we consider different types of generative models, including GAN based models, $\beta$ -VAE Higgins et al. (2016), and diffusion models Ho & Salimans (2022); Wang et al. (2022). The generation tasks are conducted on benchmark datasets (i.e., MNIST LeCun et al. (1998) and CIFAR Krizhevsky et al. (2009)), face recognition dataset (i.e., CelebA Liu et al. (2018)), high-resolution image dataset with size $512 \times 512$ , and $1024 \times 1024$ (i.e., AFHQ Choi et al. (2020), FFHQ Karras et al. (2019)), the large-scale dataset with 1,000 classes and 14,197,122 images (i.e., ImageNet Deng et al. (2009)), and text-to-image dataset (i.e., Naruto Cervenka (2022)).
+
+Table 1: Evaluation Setup.
+
+
Dataset
Network
C1
MNIST, CIFAR-10
GAN, Diffusion Models, β-VAE
ImageNet
Masked Diffusion Transformer Gao et al. (2023)
C2
CelebA
Diffusion-StyleGAN
AFHQ, FFHQ
StyleGAN
Naruto
Stable Diffusion
C3
MNIST
DCGAN
C4
Hardware Evironment
GPU
One RTX 3080 (10GB) GPU
CPU
12 vCPU Intel(R) Xeon(R),
+Platinum 8255C CPU @ 2.50GHz
+
+Baselines. Note that GMVALUATOR is a model-agnostic method. To showcase its efficacy, we compare it with two baseline methods: VAE-TracIn Kong & Chaudhuri (2021) and IF4GAN Terashita et al. (2021). VAE-TracIn identifies the most significant contributors for a generated sample, which is the same as the similarity matching process of GMVALUATOR (Sec. 3.1). Thus, we compare GMVALUATOR with VAE-TracIn in Sec. 4.3 and Sec. 4.4. IF4GAN finds the high-valued training samples for generative model training, which we regard it as the baseline method in section 4.5. We also examine our approach using DreamSim, LPIPS and $l_{2}$ -distance in the re-ranking phase, referred to as GMValuator (DreamSim), GMValuator (LPIPS) and GMValuator ( $l_{2}$ -distance) respectively, while the GMValuator without the re-ranking phase is referred to as GMValuator (No-Rerank).
+
+**Embedding Approach.** In this experiment, we utilize CLIP as an example choice for a pre-trained encoder $f_{e}$ in the recall phase of efficient similarity matching. To demonstrate the generalizability of GMVALUATOR, we also do experiments using more embedding approaches in Sec. G of the appendix.
+
+# 4.2 METRICS
+
+Given the absence of a definitive benchmark to evaluate data valuation methods in the context of generative models, we propose to evaluate the truthfulness of data valuation outcomes through the examination of four criteria (C):
+
+- C1: Identical Class Test. Following the concept of an identical class Hanawa et al. (2020), we posit that the most significant contributors among the training samples should belong to the same class as the generated sample produced by a well-trained generative model, which is also used for evaluation in VAE-TrancIn Kong & Chaudhuri (2021).
+- C2: Identical Attributes Test. Following C1, we extend the concept of identical class test and consider the attributes of samples as the ground truth to examine the most significant contributors by our approach on datasets without class labels. We examine the overlap level of attributes (i.e., the number of identical attributes) between the most significant training samples with the generated sample.
+- C3: Out of Distribution Detection. Under the assumption, the out of distribution training data samples (e.g., noisy samples) can be identified as low-contribution training samples for the generated dataset. To evaluate the performance of data valuation approaches, we consider the contribution level of noisy data samples as the performance metric across various approaches.
+- C4: Efficiency. As an efficient training-free approach, GMVALUATOR should measure the data value in a limited time and be much more efficient than the previous work while obtaining truthful results.
+
+# 4.3 IDENTICAL CLASS TEST (C1)
+
+Methodology. In this subsection, we follow setup of VAE-TracIn Kong & Chaudhuri (2021) by training separate $\beta$ -VAE models on MNIST Krizhevsky et al. (2009), CIFAR LeCun et al. (1998). We then attribute the most significant contributors by VAE-TracIn and our approach over generated samples. By the concept of identical class test, we expect a perfect data valuation approach should indicate training data in the same subclass of the generated sample $\hat{x}_j$ contribute more to $\hat{x}_j$ . We examine GMVALUATOR (DreamSim), GMVALUATOR (LPIPS), GMValuator ( $l_2$ -distance) and GMVALUATOR (No-Rerank) separately. In addition to using VAE and comparing it with the baseline method, we also perform experiments using masked diffusion transformer on the large-scale dataset (ImageNet) and other various generative models (in the appendix) to demonstrate the model-agnostic property of GMVALUATOR.
+
+Results. For a given generated data, we examine the class(es) of is top $k$ contributors in the training data. We count the number of training $Q$ samples in the top $k$ contributors, which have the identical class as the generated data. The identical class ratio $\rho = Q / k$ . We report the averaged $\rho$ over the generated datasets (the data size $m = 100$ ) on different choices of $k$ in Table 2. GMVALUATOR has the most contributors that belong to the same class with the generated sample among on MNIST and CIFAR-10, while GMVALUATOR (DreamSim) has the best performance. The results for CIFAR-10 using VAE-TracIn are extremely bad. This could be attributed to underfitting, as the authors mentioned in their study Kong & Chaudhuri (2021), training a good $\beta$ -VAE model on CIFAR-10 is challenging. In addition, GMVALUATOR (DreamSim) shows a significant advantage on ImageNet since it considers semantic characteristics while $l_{2}$ -distance or LPIPS destroy the performance, while the experiments conducted on ImageNet using baseline method (VAE-TracIn) is impractical due to
+
+its unacceptable computational overhead. In the appendix, further analysis and explanation for this phenomenon are discussed and the results from various generative models are presented as well.
+
+Table 2: Performance comparison of Identical Class Test (C1).
+
+
Top-k
MNIST (%)
CIFAR-10 (%)
ImageNet (%)
k=30
k=50
k=100
k=30
k=50
k=100
k=30
k=50
k=100
VAE-TracIn
72.00
71.11
68.58
6.28
3.77
1.88
-
-
-
GMValuator (No-Rerank)
86.41
85.13
85.95
72.66
72.25
70.71
56.18
53.60
48.17
GMValuator (l2-distance)
87.76
86.95
85.92
72.66
72.25
70.71
42.44
40.51
39.00
GMValuator (LPIPS)
88.78
88.19
86.69
72.60
71.75
70.84
50.30
47.51
45.13
GMValuator (DreamSim)
88.78
88.05
86.84
77.94
76.41
73.47
77.27
70.90
58.89
+
+# 4.4 IDENTICAL ATTRIBUTES TEST (C2)
+
+Methodology. In extension to C1, we focus on certain image attributes instead of class labels as the ground truth. We posit that the most significant contributors to a generated sample should share similar attributes with it. We train Diffusion-StyleGAN Wang et al. (2022) on CelebA, and leverage our approach to identify the most significant contributors in training samples and use some attributes including hat, gender, and eyeglasses as the ground truth, to check the correctness of our approach for identifying the most significant contributors for a generated sample. We also examine this on AFHQ, FFHQ dataset by StyleGAN Choi et al. (2020), and text-to-image dataset Naruto Cervenka (2022) by stable diffusion model Rombach et al. (2022).
+
+Results. The results in Table 3 indicate that GMVALUATOR can find the most significant contributors with the same attributes to the generated sample. Besides, using DreamSim in the similarity re-ranking phase obtains the best performance over these three attributes. We also visualize some visible results in Figure 4 on CelebA, and AFHQ, FFHQ in the appendix. As we can see, the most significant contributors have similar attributes (e.g., skin color, hair) to the generated sample. Similarly, the visualized results on AFHQ and FFHQ shown in the appendix demonstrate that the top $k$ contributors have similar attributes to the generated sample such as the fur color of cats or dogs in AFHQ or hair color in FFHQ. In addition, the results on the text-to-image dataset Naruto Cervenka (2022) corroborate the same conclusion, as shown in the appendix N.
+
+Table 3: Performance of Identical Attributes Test (C2) of some attributes including Hat, Gender, and Eyeglasses on CelebA.
+
+
Attribute (%)
Hat
Gender
Eyeglasses
Top K contributors:
k=5
k=10
k=15
k=5
k=10
k=15
k=5
k=10
k=15
GMValuator (No-Rerank)
92.52
92.12
91.92
75.15
75.25
75.82
91.52
91.52
91.45
GMValuator (l2-distance)
90.91
89.90
89.83
63.64
61.01
60.00
94.95
94.65
93.80
GMValuator (LPIPS)
96.77
96.57
96.90
97.98
97.48
97.37
94.95
94.65
93.80
GMValuator (DreamSim)
97.78
97.07
96.90
99.19
98.99
98.79
96.77
96.26
95.96
+
+
+Figure 4: Visualization of Identical Attributes Test on CelebA. Left: generated samples. Right: top $k$ contributors.
+
+
+Figure 5: The $y$ -axis represents the ranking of values from high to low, with the top being the highest value and the bottom being the lowest value. The $x$ -axis represents the index of each noisy data.
+
+# 4.5 OUT OF DISTRIBUTION DETECTION (C3)
+
+Methodology In this experiment, we introduce 100 noisy images into the MNIST dataset to create a new corrupted training dataset and each noisy image is generated by adding Gaussian noise to the clean data. These contaminated samples can diminish the performance of generative models, and as a result, they are anticipated to possess lower values compared to the rest of the training dataset. Our objective is to assess the performance of both GMVALUATOR and its baseline method, IF4GAN Terashita et al. (2021), by analyzing the value rankings of noisy samples. An effective approach should place noisy data in lower positions within the value ranking. We conducted this evaluation using 10,000 generated images and referred to the study Terashita et al. (2021) for the baseline method (IF4GAN).
+
+Results. The results depicted in Figure 5 demonstrate that the values of all noisy training samples, as calculated by GMValuator, are lower compared to the values calculated by IF4GAN. This observation suggests that the performance of GMVALUATOR is significantly better than that of IF4GAN. Besides, the performance of GMVALUATOR with the re-ranking phase is better than GMVALUATOR (No-erank).
+
+# 4.6 EFFICIENCY (C4)
+
+Methodology. We thoroughly evaluate and compare the efficiency of our approach against existing data valuation methods for generative models discussed above: VAE-TracIn and IF4GAN. Specifically, we measure the attribute time for one generated sample on an average of 100 test samples using both VAE-TracIn and our proposed approach on MNIST and CIFAR-10. Furthermore, under the same setting in C3, we assess the data valuation time when utilizing IF4GAN and our approaches on noise MNIST which we mentioned in C3. In addition, we analyze our computational efficiency as the data scale grows in the appendix O.
+
+Results. The average time taken to attribute the most significant contributors for one generated sample is calculated and compared with the baseline method (VAE-TracIn), as demonstrated in Table 4. Our approaches are all greatly more efficient than the baseline methods on both datasets. When it comes to data valuation time for GAN on C3, GMVALUATOR (No-erank) and GMVALUATOR (LPIPS) are significantly better than IF4GAN. The aforementioned phenomenon is attributed to the costly nature of the Hessian estimation process, despite the utilization of certain acceleration methods. It is noticeable that GMVALUATOR (DreamSim) is lightly time-consuming when compared to IF4GAN. This lead to a trade-off problem due to the GMVALUATOR using DreamSim in the re-ranking phase obtained the better performance from C1 to C3.
+
+Overall, through the above experiments, GMVALUATOR outperforms than baseline methods, while GMVALUATOR (DreamSim) obtains the best performance. This is due to the fact that DreamSim captures mid-level similarities in image semantic content and layout compared to LPIPS. And the selection of different GMVALUATORS can be combined with the consideration of their efficiency. Furthermore, the results shown in the appendix O also demonstrate that our method maintains consistent computational efficiency even as the data scale increases and presents its scalability on large-scale datasets.
+
+Table 4: Efficiency Comparison
+
+
Attribute for VAE
VAE-TracIn
GMValuator
No-Rerank
l2-distance
LPIPS
DreamSim
MNIST
47.945
0.250
0.339
0.477
1.709
CIFAR-10
66.178
0.755
1.226
2.412
15.491
Data Valuation for GAN
IF4GAN
GMValuator
No-Rerank
l2-distance
LPIPS
DreamSim
Noise MNIST
14,543
2,137
3,388
4,771
17,086
+
+# 5 CONCLUSION
+
+To measure the contribution of each training data sample, we propose an efficient approach, GMVALUATOR, for generative model. As far as we are aware, there is no prior model-agnostic and training-free data valuation approach for generative models until GMVALUATOR. Our approach is based on efficient similarity matching, and it enables us to calculate the final value of each training data point, aligning with plausible assumptions. The proposed method is validated through a series of comprehensive experiments to showcase its truthfulness and efficacy on four criteria. In the future, we will validate the proposed methods on other data modalities.
+
+# 6 ACKNOWLEDGEMENT
+
+This work is supported in part by Natural Science and Engineering Research Council of Canada (NSERC), Canada CIFAR AI Chairs program, Canada Research Chair program, MITACS-CIFAR Catalyst Grant Program, the Digital Research Alliance of Canada, Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT).
+
+# REFERENCES
+
+Juhan Bae, Nathan Ng, Alston Lo, Marzyeh Ghassemi, and Roger B Grosse. If influence functions are the answer, then what is the question? Advances in Neural Information Processing Systems, 35:17953-17967, 2022.
+Eyal Betzalel, Coby Penso, Aviv Navon, and Ethan Fetaya. A study on the evaluation of generative models. arXiv preprint arXiv:2206.10935, 2022.
+Akhilan Boopathy, Kevin Liu, Jaedong Hwang, Shu Ge, Asaad Mohammedsaleh, and Ila R Fiete. Model-agnostic measure of generalization difficulty. In International Conference on Machine Learning, pp. 2857-2884. PMLR, 2023.
+Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018.
+Eole Cervenka. Naruto blip captions. https://huggingface.co/datasets/lambdalabs/naruto-blip-captions/, 2022.
+Yunjey Choi, Youngjung Uh, Jaejun Yoo, and Jung-Woo Ha. Stargan v2: Diverse image synthesis for multiple domains. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 8188-8197, 2020.
+R Dennis Cook. Detection of influential observation in linear regression. Technometrics, 19(1):15-18, 1977.
+Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248-255. IEEE, 2009.
+Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. Advances in neural information processing systems, 34:8780-8794, 2021.
+Stephanie Fu, Netanel Tamir, Shobhita Sundaram, Lucy Chai, Richard Zhang, Tali Dekel, and Phillip Isola. Dreamsim: Learning new dimensions of human visual similarity using synthetic data. arXiv preprint arXiv:2306.09344, 2023.
+Shanghua Gao, Pan Zhou, Ming-Ming Cheng, and Shuicheng Yan. Masked diffusion transformer is a strong image synthesizer. arXiv preprint arXiv:2303.14389, 2023.
+Amirata Ghorbani and James Zou. Data shapley: Equitable valuation of data for machine learning. In International Conference on Machine Learning, pp. 2242-2251. PMLR, 2019.
+Amirata Ghorbani, Michael Kim, and James Zou. A distributional framework for data valuation. In International Conference on Machine Learning, pp. 3535-3544. PMLR, 2020.
+Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial networks. Communications of the ACM, 63(11):139-144, 2020.
+Kazuaki Hanawa, Sho Yokoi, Satoshi Hara, and Kentaro Inui. Evaluation of similarity-based explanations. arXiv preprint arXiv:2006.04528, 2020.
+Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. Advances in neural information processing systems, 30, 2017.
+
+Irina Higgins, Loic Matthew, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. In International conference on learning representations, 2016.
+Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022.
+Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840-6851, 2020.
+Herve Jegou, Matthijs Douze, and Cordelia Schmid. Product quantization for nearest neighbor search. IEEE transactions on pattern analysis and machine intelligence, 33(1):117-128, 2010.
+Ruoxi Jia, David Dao, Boxin Wang, Frances Ann Hubis, Nezihe Merve Gurel, Bo Li, Ce Zhang, Costas J Spanos, and Dawn Song. Efficient task-specific data valuation for nearest neighbor algorithms. arXiv preprint arXiv:1908.08619, 2019a.
+Ruoxi Jia, David Dao, Boxin Wang, Frances Ann Hubis, Nick Hynes, Nezihe Merve Gürel, Bo Li, Ce Zhang, Dawn Song, and Costas J Spanos. Towards efficient data valuation based on the shapley value. In The 22nd International Conference on Artificial Intelligence and Statistics, pp. 1167-1176. PMLR, 2019b.
+Hoang Anh Just, Feiyang Kang, Jiachen T Wang, Yi Zeng, Myeongseob Ko, Ming Jin, and Ruoxi Jia. Lava: Data valuation without pre-specified learning algorithms. arXiv preprint arXiv:2305.00054, 2023.
+Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 4401-4410, 2019.
+Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of stylegan. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 8110-8119, 2020.
+Zhifeng Kong and Kamalika Chaudhuri. Understanding instance-based interpretability of variational auto-encoders. Advances in Neural Information Processing Systems, 34:2400-2412, 2021.
+Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
+Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278-2324, 1998.
+Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaou Tang. Large-scale celebfaces attributes (celeba) dataset. Retrieved August, 15(2018):11, 2018.
+Ki Nohyun, Hoyong Choi, and Hye Won Chung. Data valuation without training of a model. In The Eleventh International Conference on Learning Representations, 2022.
+Jian Pei. A survey on data pricing: from economics to data science. IEEE Transactions on knowledge and Data Engineering, 34(10):4586-4608, 2020.
+Gabriel Peyre, Marco Cuturi, et al. Computational optimal transport: With applications to data science. Foundations and Trends® in Machine Learning, 11(5-6):355-607, 2019.
+Garima Pruthi, Frederick Liu, Satyen Kale, and Mukund Sundararajan. Estimating training data influence by tracing gradient descent. Advances in Neural Information Processing Systems, 33: 19920-19930, 2020.
+Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pp. 8748-8763. PMLR, 2021.
+Protection Regulation. General data protection regulation. Intouch, 25, 2018.
+
+Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In International conference on machine learning, pp. 1278-1286. PMLR, 2014.
+Adam Richardson, Aris Filos-Ratsikas, and Boi Faltings. Rewarding high-quality data via influence functions. arXiv preprint arXiv:1908.11598, 2019.
+Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10684-10695, 2022.
+Nikunj Saunshi, Arushi Gupta, Mark Braverman, and Sanjeev Arora. Understanding influence functions and datamodels via harmonic analysis. arXiv preprint arXiv:2210.01072, 2022.
+Naoyuki Terashita, Hiroki Ohashi, Yuichi Nonaka, and Takashi Kanemaru. Influence estimation for generative adversarial networks. arXiv preprint arXiv:2101.08367, 2021.
+Laurens Van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(11), 2008.
+Jiachen T Wang and Ruoxi Jia. Data banzhaf: A robust data valuation framework for machine learning. In International Conference on Artificial Intelligence and Statistics, pp. 6388-6421. PMLR, 2023.
+Zhendong Wang, Huangjie Zheng, Pengcheng He, Weizhu Chen, and Mingyuan Zhou. Diffusion-gan: Training gans with diffusion. arXiv preprint arXiv:2206.02262, 2022.
+Zhaoxuan Wu, Yao Shu, and Bryan Kian Hsiang Low. Davinz: Data valuation using deep neural networks at initialization. In International Conference on Machine Learning, pp. 24150-24176. PMLR, 2022.
+Xinyi Xu, Zhaoxuan Wu, Chuan Sheng Foo, and Bryan Kian Hsiang Low. Validation free and replication robust volume-based data valuation. Advances in Neural Information Processing Systems, 34:10837-10848, 2021.
+Sidi Yang, Tianhe Wu, Shuwei Shi, Shanshan Lao, Yuan Gong, Mingdeng Cao, Jiahao Wang, and Yujiu Yang. Maniaq: Multi-dimension attention network for no-reference image quality assessment. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1191-1200, 2022.
+Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 586-595, 2018.
+
+# CONTENTS
+
+1 Introduction 1
+2 Motivation and Problem Formulation 3
+
+2.1 Motivations 3
+
+2.1.1 Theoretical Justification 3
+2.1.2 Empirical Validation 4
+
+2.2 Problem Formulation and Challenges 4
+
+3 The Proposed Data Valuation Methods 5
+
+3.1 Efficient Similarity Matching 6
+3.2 Image Quality Assessment 6
+3.3 Value Calculation 7
+
+4 Experiments 7
+
+4.1 Experiment Setup 7
+4.2 Metrics 8
+4.3 Identical Class Test (C1) 8
+4.4 Identical Attributes Test (C2) 9
+4.5 Out of Distribution Detection (C3) 10
+4.6 Efficiency (C4) 10
+
+5 Conclusion 10
+6 Acknowledgement 11
+
+Appendix 14
+
+A Notation 16
+B Algorithm 16
+C Related Work 16
+
+C.1 Data Valuation 16
+C.2 Generative Model 17
+
+D Statistical Results for Figure 1 18
+E Additional Results on C1 and C2 19
+
+E.1 (C1) Identical Class Test on Other Generative Models 19
+E.2 (C2) Identical Attributes Test on CelebA 19
+E.3 (C2) Identical Attributes Test on Other Datasets 20
+
+F Different Generated Data Sizes 21
+
+G Alternative Embedding Approaches 21
+
+H Alternative Distance Metric 21
+
+I Necessity for calibration 21
+
+J Additional Experimental Details 22
+
+J.1 Justification of Experiment Setup 22
+J.2 Datasets 23
+J.3 Architecture of Generative models 23
+
+K Discussion on the Possible Applications 24
+L Current Limitation and Future Directions 24
+M Omitted proofs 24
+N Experiment on Text to Image generation Model (Stable Diffusion) 26
+O Efficiency with Increased Data Size 26
+P Impact of quantization recall 26
+
+Roadmap of Appendix. In this appendix, we provide a concise summary of key notations and Algorithm 1, detailing the pipeline of GMValuator in Sec. A and Sec. B. A more comprehensive review of related work is also provided in Sec. C. Additionally, Sec. D contains detailed statistical analysis for the results depicted in Figure 1. Our main text focuses on experiments conducted on benchmark datasets such as MNIST and CIFAR-10, along with a large-scale dataset, ImageNet, to evaluate the most significant contributors found by GMVALUATOR are in the same class as the generated sample (C1). In Sec. E, we extend the evaluation of GMVALUATOR to other generative models for C1. Additionally, we expand our evaluation using C2 by considering the ground truth of multiple combined attributes. We operate under the assumption that the most significant contributors to a generated sample should exhibit similar attributes in the images. For a more thorough validation of the effectiveness of GMVALUATOR, high-resolution datasets like AFHQ and FFHQ are also employed for C2. The appendix includes additional experimental insights such as ablation studies, alternative embedding approaches, alternative distance metrics, calibration and further experimental details in Sec. F, H, I and J, respectively. The potential applications, limitations and future directions are also provided in Sec. K and Sec. L. Lastly, we present the proof of our theorem and ensure the reproducibility of our experiments.
+
+Table 5: Some important notations in Sec. 2
+
+
Notations
Description
μ
the distribution of the subset of the training data
μT
a subset of the contributors
G
generative model
G*
well-trained generative model
Z
noise distribution
z
a latent sample in the latent space
d(·,·)
distance function
X, x
training dataset, training sample
X̂, x̂
generated dataset, generated sample
S
a subset of the training data
S*
the real K contributors
K
K = |S*|
T
K contributors found by a data valuator
A
attribute space
X
data distribution
L
loss function
f, f'S*
labeling function, model trained on S*
+
+# A NOTATION
+
+To make motivation and problem formulation clear, we list some significant notations from Sec. 2 in Table 5.
+
+# B ALGORITHM
+
+To better introduce GMVALUTOR, the pseudocode is shown in Algorithm 1.
+
+# C RELATED WORK
+
+# C.1 DATA VALUATION
+
+There are three lines of methods on data valuation: metric-based methods, influence-based methods and data-driven methods. In terms of metric-based methods, the commonly-used approach is to calculate its marginal contribution (MC) based on performance metrics (e.g., accuracy, loss). As the basic method depending on performance metrics for data valuation, LOO (Leave-One-Out) Cook (1977) is used to evaluate the value of the training sample by observational change
+
+Algorithm 1 GMVALUATOR
+Input: Training dataset $X = \{x_{i}\}_{i=1}^{n}$ , a well-trained model $G^{*}$ , random distribution $\mathcal{Z}$ .
+Output: Generated dataset $\hat{X}$ , the value of training data
+points $\Phi = \{\phi_{1},\phi_{2},\dots,\phi_{n}\}$
+1: $\hat{X} = \{\hat{x}_j\}_{j=1}^m \gets G^*(z_j)$ , for $z_j \in \mathcal{Z}$ // Generate the synthetic dataset
+2: for $\hat{x}_j$ in $\hat{X}$ do
+3: // Matching process (see Sec. 3.1)
+4: $\mathcal{P}_j = f(X,\hat{x}_j)$ // Including two phases
+5: for $x_i$ in $\mathcal{P}_j$ do
+6: $d_{ij} \gets \text{DreamSim}(x_i,\hat{x}_j)$ or others
+7: end for
+8: $q_j = MANIQA(\hat{x}_j)$ // Image Quality Assessment (see Sec. 3.2)
+9: Calculate score $\mathcal{V}(x_i,\hat{x}_j,d_{ij},q_j)$ using Eq. equation 6 // Contribution Score Calculation (see Sec. 3.3)
+10: end for
+11: // Calculation of data value and return the result $\Phi$
+12: for $x_i$ in $X$ do
+13: Calculate $x_i$ 's value $\phi_i$ using Eq.equation 5
+14: end for
+15: return $\Phi = \{\phi_1,\phi_2,\dots,\phi_n\}$
+
+of model performance when leaving out that data point from the training dataset. To overcome inaccuracy and strict desirability of LOO, SV Ghorbani & Zou (2019) and BI Wang & Jia (2023) originated from Cooperative Game Theory are widely used to measure the contribution of data Jia et al. (2019b); Ghorbani et al. (2020). Considering the joining sequence of each training data point, SV needs to calculate the marginal performance of all possible subsets in which the time complexity is exponential. Despite the introduction of techniques such as Monte-Carlo and gradient-based methods, as well as others proposed in the literature, approximating data significance value (SV) is computationally expensive and it typically requires retraining Ghorbani & Zou (2019); Jia et al. (2019a). The computational cost and need for unconventional performance metrics present difficulties in adapting the methods to generative models. As for influence-based methods, they evaluate the influence of data points on model parameters by computing the inverse Hessian for data valuation Jia et al. (2019a); Richardson et al. (2019); Saunshi et al. (2022). Due to the high computational cost, some approximation methods have also been proposed Pruthi et al. (2020). In addition, the use of influence function for data valuation is not limited to discriminative models, but can also be applied to specific generative models such as GAN and VAE Terashita et al. (2021); Kong & Chaudhuri (2021). When it comes to data-driven methods, most of them are training-free methods that focus on the data itself Xu et al. (2021); Wu et al. (2022); Just et al. (2023). Additionally, the Information-Theoretic Measures method Boopathy et al. (2023) evaluates the inherent generalization difficulty of tasks and shows potential for adaptation to data valuation. However, it is not applicable to our specific setting due to its reliance on performance metrics, training requirements, and a focus on dataset-level trends.
+
+# C.2 GENERATIVE MODEL
+
+Generative models are a type of unsupervised learning that can learn data distributions. Recently, there has been significant interest in combining generative models with neural networks to create Deep Generative Models, which are particularly useful for complex, high-dimensional data distributions. They can approximate the likelihood of each observation and generate new synthetic data by incorporating variations. Variational auto-encoders (VAEs) Rezende et al. (2014) optimize the log-likelihood of data by maximizing the evidence lower bound (ELBO), while generative adversarial networks (GANs) Goodfellow et al. (2020); Karras et al. (2020) involves a generator and discriminator that compete with each other, resulting in strong image generation. Recently proposed diffusion models Ho et al. (2020); Rombach et al. (2022) add Gaussian noise to training data and learn to recover the original data. These models use variational inference and have a fixed procedure with a high-dimensional latent space.
+
+$$
+\begin{array}{r} H _ {0} \colon \phi (D _ {i}, S, \mu_ {i}) \geq \phi (D _ {j}, S, \mu_ {i}) \\ H _ {1} \colon \phi (X _ {i}, S, \mu_ {i}) < \phi (X _ {j}, S, \mu_ {i}), i \in X _ {v 1}, j \in X _ {v 2} \end{array}
+$$
+
+Table 6: The statistic test of data values of $X_{v1}$ versus $X_{v2}$ using different generative models. $X_{v1}$ is supposed to have higher value than $X_{v2}$ , given the generated data.
+
+
BigGAN
Classifier-free Guidance Diffusion
Average value (v1)
0.319654
0.030434
Average value (v2)
1.632352
0.369565
P-value
6.937027 × 10-68
8.053195 × 10-55
T-statistic
17.924512
15.947860
Significance level
0.01
0.01
Result
p-value less than 0.01, reject H0, value of v2 less than v1 averagely
p-value less than 0.01, reject H0, value of v2 less than v1 averagely
+
+# D STATISTICAL RESULTS FOR FIGURE 1
+
+It is evident by visualization in Figure 1 that the data points in $X_{v2}$ (used for training) are more overlapped with generated data than data points in $X_{v1}$ (not used for training). We perform statistic testing on data values obtained by GMVALUATOR, to examine if data points $X_{v2}$ (used for training) have significantly higher values than those of the data points in $X_{v1}$ (not used for training).
+
+To this end, we use a t-test with the null hypothesis that data values in $X_{v1}$ should not be smaller than those of $X_{v12}$ . We compute $p$ -value, which is the probability of getting a difference as large as we observed, or larger, under the null hypothesis. If the $p$ -value is very low, we reject the null hypothesis and consider our approach, GMVALUATOR, to be verified with a high level of confidence (1-p). Typically, a $p$ -value smaller than significance level 0.01 is used as a threshold for rejecting the null hypothesis. Table 6 showcases the outcomes of $X_{v1}$ and $X_{v2}$ in CIFAR-10 with $p \ll 0.01$ for both BigGAN and diffusion model, indicating that the data points in $X_{v2}$ have significantly more value than those in $X_{v1}$ . Consequently, these findings align with the presumption that the trained dataset $X_{v2}$ has a higher value than the untrained dataset $X_{v1}$ and verify our approach.
+
+
+Figure 6: Visualization of Identical Attributes Test on AFHQ and FFHQ. The results shown in the first and second subfigures on the left are conducted on AFHQ-Cat and AFHQ-Dog, respectively. The subfigure on the right presents the results of FFHQ. In each subfigure, the generated samples are on the left, and the top $k$ contributors in the training dataset are on the right.
+
+
+
+
+
+Table 7: Performance comparison of Identical Class Test.
+
+
MNIST
GAN (%)
k=30
k=50
k=100
GMValuator (No-Rerank)
96.27
96.26
95.86
GMValuator (l2-distance)
97.73
97.58
96.03
GMValuator (LPIPS)
97.77
97.72
97.38
GMValuator (DreamSim)
97.43
97.44
97.40
Diffusion (%)
k=30
k=50
k=100
GMValuator (No-Rerank)
92.40
91.82
91.26
GMValuator (l2-distance)
92.90
92.66
91.88
GMValuator (LPIPS)
93.73
97.72
92.42
GMValuator (DreamSim)
93.90
93.44
92.55
CIFAR-10
BigGAN (%)
k=30
k=50
k=100
GMValuator (No-Rerank)
64.70
63.80
62.14
GMValuator (l2-distance)
64.70
63.80
62.14
GMValuator (LPIPS)
63.67
62.80
61.51
GMValuator (DreamSim)
70.33
68.74
65.18
Class-free Guidance Diffusion (%)
k=30
k=50
k=100
GMValuator (No-Rerank)
72.67
72.00
71.00
GMValuator (l2-distance)
72.67
72.00
71.00
GMValuator (LPIPS)
72.53
72.28
71.06
GMValuator (DreamSim)
79.37
78.08
74.61
+
+# E ADDITIONAL RESULTS ON C1 AND C2
+
+# E.1 (C1) IDENTICAL CLASS TEST ON OTHER GENERATIVE MODELS
+
+We have presented Identical Class Test (C1) on $\beta$ -VAE and MNIST LeCun et al. (1998), CIFAR-10 Krizhevsky et al. (2009) in Sec. 4.3 in our main context. Since GMVALUATOR is model-agnostic, we further validate our method of C1 on other generative models.
+
+Here, we conduct the experiments using a GAN and a Diffusion Model on MNIST. The architectural details of the used generative models are described in Sec. J.3 in the appendix. We also conduct the experiment on BigGAN Brock et al. (2018) and Class-free Guidance Diffusion Ho & Salimans (2022) with CIFAR-10. We used the same number of generated samples $m = 100$ as the experiments presented in Sec. 4.
+
+Following the similar settings in Sec. 4.3 (C1), we examine the class(es) of is top $k$ contributors for a given generated data in the training data. We calculate the number of training samples, denoted as $Q$ , from the top $k$ contributors that have the same class as the generated data. The identical class ratio, denoted as $\rho$ , is calculated as $\rho = Q / k$ . We report the average value of $\rho$ across the generated datasets for different choices of $k$ in Table 7. GMVALUATOR (DreamSim) has the highest ratio of contributors that belong to the same class as the generated sample among most of the models evaluated on MNIST and CIFAR-10 datasets for different values of $k$ . And the ratio improves as the value of $k$ decreases, which is consistent with the top $k$ assumption and validates our method.
+
+# E.2 (C2) IDENTICAL ATTRIBUTES TEST ON CELEBA
+
+We extend C1 to focus on the attributes present in the images, treating them as ground truth rather than class labels, as discussed in Sec. 4.4. Our experiments now incorporate multiple attributes simultaneously, rather than just a single attribute, to verify the performance of GMVALUATOR. For instance, when evaluating a generated image with both a hat and eyeglasses, the most significant contributors identified should also include both of these attributes. Table 8 showcases some outcomes of identical attributes test when regarding multiple combined attributes as ground truth, which validate the effectiveness of our methods.
+
+Table 8: Performance of Identical Attributes Test (C2) of multiple combined attributes.
+
+
Top K contributors:
k=5
k=10
k=15
Attribute: Eyeglasses & Gender (%)
GMValuator (No-Rerank)
50.10
48.48
48.42
GMValuator (l2-distance)
59.19
56.67
56.23
GMValuator (LPIPS)
78.18
74.24
73.87
GMValuator (DreamSim)
92.53
90.61
90.30
Attribute: Eyeglasses & Hat (%)
GMValuator (No-Rerank)
78.79
78.38
85.86
GMValuator (l2-distance)
84.44
82.93
83.23
GMValuator (LPIPS)
86.87
86.16
86.33
GMValuator (DreamSim)
89.49
87.58
87.41
Attribute: Gender & Hat (%)
GMValuator (No-Rerank)
58.59
57.47
57.71
GMValuator (l2-distance)
61.62
60.51
60.40
GMValuator (LPIPS)
63.84
63.23
62.96
GMValuator (DreamSim)
65.25
64.44
64.18
+
+# E.3 (C2) IDENTICAL ATTRIBUTES TEST ON OTHER DATASETS
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 7: The change of $\rho$ with the different number of generated samples $m$ on MNIST and CIFAR-10 by diverse generative models.
+
+
+
+
+
+To further validate GMVALUATOR, we also conducted experiments on high-resolution datasets: AFHQ Choi et al. (2020) and FFHQ Karras et al. (2019), following the same settings in Sec 4.4. The results are shown in Figure 6, which demonstrates the effectiveness of our methods in C2. The results show that the top $k$ contributors have similar attributes with the generated sample such as fur color of cats or dogs in AFHQ. For the experiment conducted on FFHQ, human faces attributes of the most significant contributors are also similar to the attributes in generated images.
+
+# F DIFFERENT GENERATED DATA SIZES
+
+Since our value function $\phi_{i}$ (Eq. equation 5) for training data $x_{i}$ is computed by averaging over generated samples, it is expected that the sensitivity of $\phi_{i}$ is connected to the size $m$ of the investigated generated sample. To explore the influence of generated data size $m$ on the utilization of GMVALUATOR, we perform sensitivity testing on MNIST, CIFAR10 using generative models GAN Goodfellow et al. (2020), and Diffusion models Dhariwal & Nichol (2021) as depicted below. The dataset, model and used $k$ are denoted under each subfigure of Figure 7. First, we generate a varying number of samples from the same class. Specifically, we consider four different sample sizes, denoted by $m$ , which are given by 1, 10, 30, and 50. Next, we evaluate the GMVALUATOR using parameter C1, and this evaluation is performed for each of the aforementioned values of $m$ . Subsequently, we conduct the experiment 10 times using GMVALUATOR (No-Rerank), each time with different $m$ -sized generated data samples from the same class. The results are presented as the mean and standard deviation $(\rho)$ for accuracy, taken over these 10 runs. The results shown in Figure 7 imply that varying $m$ does not yield notable differences in mean accuracy and increasing the number of generated samples $m$ leads to more stable and consistent results.
+
+# G ALTERNATIVE EMBEDDING APPROACHES
+
+In the step of efficient similarity matching, the embedding $f_{e}$ is exclusively used in the recall phase for retaining $n$ samples with non-minimal contributions. Apart from using CLIP for embedding, we also investigate the influence for the results when using other embedding methods. We present results in Table 9 using more embedding methods, showing similar performance with CLIP with "Rerank". The reason for this results is that we implement re-ranking that relies on the image space rather than the embedding space, which allows us to derive accurate top $k$ contributors from $n$ samples $n \gg k$ . Thus, the embedding could tolerate some noise in the recall phase.
+
+Table 9: Comparison of different embedding methods.
+
+
MNIST (%)
No-Rerank
l2-distance
LPIPS
DreamSim
CLIP
86.41
87.76
88.78
88.78
Alexnet
79.77
84.82
86.51
88.72
Densenet
80.47
86.77
87.97
89.35
+
+# H ALTERNATIVE DISTANCE METRIC
+
+We suggest utilizing Learned Perceptual Image Patch Similarity (LPIPS) Zhang et al. (2018) or DreamSim Fu et al. (2023) as the distance metric $d$ during the re-ranking phase. This enables to understand the perceptual dissimilarity between generated and real data points. These metrics are applied in the image embedding space derived from pre-trained models. Alternatively, distance measurement can be based on pixel space, such as employing $l2$ -distance. Notably, we find that distances calculated in the input pixel space yield comparable outcomes as shown in Table 7. This implies that our method GMVALUATOR could be flexible to the different choices of distance metrics and the selection can depend on data prior.
+
+# I NECESSITY FOR CALIBRATION
+
+For challenges 2 and 3, we utilize image quality assessment and establish a non-zero scores rule for calibration in GMVALUATOR. To better understand the impact and necessity of calibration,
+
+we compare the distribution of the top 1, 2, and 3 contributors' scores with (w) and without (w/o) calibration conducted on MNIST in Figure 8. It is evident that scores without calibration are generally higher than with calibration. We also extend C3 and perform an ablation study in Figure 9 on scenarios where the generated samples include low-quality outputs. The results show that the OOD (out-of-distribution) training samples' value rank by GMValuator without (w/o) calibration is smaller, indicating significant bias and poor performance.
+
+
+Figure 8: Sore Distribution
+
+
+Figure 9: Value Rank
+
+# J ADDITIONAL EXPERIMENTAL DETAILS
+
+# J.1 JUSTIFICATION OF EXPERIMENT SETUP
+
+We provide a detailed justification in Table 10 for our experiment setup from C1 to C4.
+
+- C1. In Identical Class Test, the baseline method is VAE-TracIn Kong & Chaudhuri (2021), which can find the most influenced instances in the training dataset. Since VAE-TracIn is the model-specific method, we only need to compare it with GMVALUATOR when VAE model is used. Besides, all the datasets used in C1 should have the class labels. Considering the computational demands detailed in VAE-TracIn Kong & Chaudhuri (2021), the runtime complexity of VAE-TracIn correlates with the number of network parameters and the size of the dataset. Therefore, our analysis primarily utilizes simpler benchmark datasets such as MNIST and CIFAR-10 for comparative evaluations with VAE-TracIn.
+- C2. In extending C1, we use image attributes to supplant the concept of class for datasets lacking class labels. For datasets with attribute labels, quantified experiments are feasible, as demonstrated in Table 3 and Table 8. For datasets without attribute labels, we employ visualized experiments.
+- C3. IF4GAN, a model-specific method for GAN, serves as the baseline for measuring data value. Adhering to the settings outlined in Terashita et al. (2021) and considering the impractical computational costs, we conduct experiments on the same dataset (MNIST) in Terashita et al. (2021) using DCGAN.
+
+Table 10: Justification of Experiment Setup. The selection of datasets and models was based on three critical factors that guided the process. Firstly, attribute labels were required to evaluate C2 effectively. Secondly, benchmark datasets were meticulously chosen to ensure a fair comparison with baselines while also taking into account computational costs (C3 and C4). Finally, the selected generative models are powerful enough to generate good-quality data for the datasets.
+
+
Dataset
Model
Baseline
Label Requirements
C1
MNIST, CIFAR-10
VAE
VAE-TracIn Kong & Chaudhuri (2021)
Class labels
Diffusion, GAN
-
Class labels
ImageNet
Masked Diffusion Transformer Gao et al. (2023)
-
Class labels
C2
CelebA
Diffusion-StyleGAN
-
Attribute labels
AFHQ, FFHQ
StyleGAN
-
-
C3
MNIST
DCGAN
IF4GAN Terashita et al. (2021)
Class labels
C4
MNIST, CIFAR-10
VAE
VAE-TracIn Kong & Chaudhuri (2021)
Class labels
MNIST
DCGAN
IF4GAN Terashita et al. (2021)
Class labels
+
+- C4. We present a comparison of the efficiency of GMVALUATOR against baseline methods. In accordance with the settings used for VAE-TracIN and IF4GAN in Kong & Chaudhuri (2021), we report the efficiency results for C1 on the MNIST and CIFAR-10 datasets, and for C3 on MNIST.
+
+# J.2 DATASETS
+
+We conduct the generation tasks in the experiments on benchmark datasets (i.e., MNIST LeCun et al. (1998) and CIFAR Krizhevsky et al. (2009)), face recognition dataset (i.e., CelebA Liu et al. (2018)), high-resolution image dataset AFHQ Choi et al. (2020) and FFHQ Karras et al. (2019), large-scale image dataset ImageNet Deng et al. (2009).
+
+MNIST. The MNIST dataset consists of a collection of grayscale images of handwritten digits (0-9) with a resolution of 28x28 pixels. The dataset contains 60,000 training images and 10,000 testing images.
+
+CIFAR-10. CIFAR-10 dataset consists of 60,000 color images in 10 different classes, with 6,000 images per class. The classes include objects such as airplanes, cars, birds, cats, deer, dogs, frogs, horses, ships, and trucks. Each image in the CIFAR-10 dataset has a resolution of $32 \times 32$ pixels.
+
+CelebA. The CelebA dataset is a widely used face recognition and attribute analysis dataset, which contains a large collection of celebrity images with various facial attributes and annotations. The dataset consists of more than 200,000 celebrity images, with each image labeled with 40 binary attribute annotations such as gender, age, facial hair, and presence of eyeglasses.
+
+AFHQ. The AFHQ dataset is a high-resolution image dataset that focuses on animal faces (e.g., dogs, cat), and it consists of high-resolution images with $512 \times 512$ pixels.
+
+FFHQ. The FFHQ dataset is a high-resolution face dataset that contains high-quality images (1024x1024 pixels) of human faces.
+
+ImageNet. ImageNet is a large-scale image dataset, which contains over 14 million images and is categorized into more than 20,000 classes.
+
+# J.3 ARCHITECTURE OF GENERATIVE MODELS
+
+In our experiments, we leverage different generative models in the class of GAN, VAE and diffusion models. We utilize $\beta$ -VAE for both MNIST and CIFAR-10 datasets while a simple GAN is conducted on MNIST. BigGAN and $\beta$ -VAE are also conducted on CIFAR-10. We list the architecture details for these generative models from Table 11 to Table 13. StyleGAN is used for high-resolution datasets AFHQ and FFHQ. CelebA uses Diffusion-StyleGAN Wang et al. (2022), for which we use the exact architecture in their open-sourced code. In addition, Masked Diffusion Transformer, as introduced by Gao et al. Gao et al. (2023), is applied to the ImageNet.
+
+Table 11: The architecture of GAN for MNIST.
+
+
Deconv reverse of encoder. ReLu acitvation. Gaussian.
+
+Table 13: The architecture of $\beta$ -VAE.
+
+
β-VAE
Generator
Discriminator
z∈R120~N(0,I)Embed(y)∈R32
RGB image x∈R32×32×3
Linear (20+128)→4×4×16ch
ResBlock down ch→2ch
ResBlock up 16ch→16ch
Non-Local Block (64×64)
ResBlock up 16ch→8ch
ResBlock down 2ch→4ch
ResBlock up 8ch→4ch
ResBlock down 4ch→8ch
ResBlock up 4ch→2ch
ResBlock down 8ch→16ch
Non-Local Block (16×16)
ResBlock down 16ch→16ch
ResBlock up 2ch→ch
ResBlock 16ch→16ch
BN,ReLU,3×3Conv ch→3
ReLU, Global sum pooling
Tanh
Embed (y)·h+(linear→1)
+
+# K DISCUSSION ON THE POSSIBLE APPLICATIONS
+
+The application of data valuation within generative models offers a wide range of opportunities. A potential use case is to quantify privacy risks associated with generative model training using specific datasets, since the matching mechanism GMVALUATOR can help re-identify the training samples given the generated data. By doing so, organizations and individuals will be able to audit the usage of their data more effectively and make informed decisions regarding its use.
+
+Another promising application is material pricing and finding in content creation. For example, when training generative models for various purposes, such as content recommendation or personalized advertising, data evaluation can be used to measure the value of reference content.
+
+In addition, GMVALUATOR can play an important role in the development of ensuring the responsibility of using synthetic data in safe-sensitive fields, such as healthcare or finance. By assessing the value of the data used in generative model training, researchers can ensure that the generated data are robust and reliable.
+
+Last but not least, the applications of GMVALUATOR can promote the recognition of intellectual property rights. Determining the value of the intellectual property being generated by generative models is critical. By evaluating the data employed in training generative models, we can develop a more comprehensive understanding of copyright that may emerge from the generative models. In essence, such insights can help advance licensing agreements for the utilization of the generative model and its outputs.
+
+# L CURRENT LIMITATION AND FUTURE DIRECTIONS
+
+The limitation of this work is that it only measures data value for vision-related generative models and conducts experiments exclusively within the field of computer vision. However, this does not mean that GMVALUATOR cannot be easily adapted to Natural Language Processing (NLP) fields, given its core idea of similarity matching. In the future, we should extend GMVALUATOR to NLP and assess the data value for language-related generative models, such as large language models (LLMs).
+
+# M OMITTED PROOFS
+
+We follow Just et al. (2023) to prove the theorem. Firstly, we give several assumptions that will be used in later proof.
+
+Assumption M.1 Following Assumption 2.3, given a distance function $d(\cdot ,\cdot)$ between, we defined the coupling between $\mathcal{X}_{(T|f)}$ and $\mathcal{X}_{(S^{*}|f)}$ as $\pi^*$ :
+
+$$
+\pi^ {*} := \underset {\pi \in \Pi \left(\mathcal {X} _ {(T \mid f)}, \mathcal {X} _ {(S ^ {*} \mid f)}\right)} {\arg \inf } \mathbb {E} _ {\left(x _ {T}, x _ {S ^ {*}}\right) \sim \pi} d \left(x _ {T}, x _ {S ^ {*}}\right) \tag {7}
+$$
+
+It is easy to see that all joint distributions defined above are couplings between the corresponding distribution pairs. Then, following Just et al. (2023) we prove the main Theorem.
+
+Theorem M.2 (Restated of Theorem 2.4.) Let $f_{S^*}': \mu \to \mathcal{A} = \{0,1\}^V$ be the model trained on the optimal contributor dataset $S^*$ . Following Assumption 2.3, if the contributors are corresponding to the given generated data $\hat{X}$ , we have:
+
+$$
+\begin{array}{l} \mathbb {E} _ {x \sim \mu_ {T}} \left[ \mathcal {L} \left(f (x), f _ {S ^ {*}} ^ {\prime} (x)\right) \right] - \mathbb {E} _ {x \sim \mu_ {S ^ {*}}} \left[ \mathcal {L} \left(f (x), f _ {S ^ {*}} ^ {\prime} (x)\right) \right] \tag {8} \\ \leq k \epsilon \cdot \left[ d _ {W} \left(\mathcal {X} _ {(T | f)}, \mathcal {X} _ {(\hat {X} | f)}\right) + d _ {W} \left(\mathcal {X} _ {\left(S ^ {*} | f\right)}, \mathcal {X} _ {(\hat {X} | f)}\right) \right] \\ \end{array}
+$$
+
+# Proof M.3
+
+$$
+\begin{array}{l} \mathbb {E} _ {x \sim \mu_ {T}} \left[ \mathcal {L} \left(f (x), f _ {S ^ {*}} ^ {\prime} (x)\right) \right] = \mathbb {E} _ {x \sim \mu_ {T}} \left[ \mathcal {L} \left(f (x), f _ {S ^ {*}} ^ {\prime} (x)\right) \right] \\ - \mathbb {E} _ {x \sim \mu_ {S ^ {*}}} \left[ \mathcal {L} \left(f (x), f _ {S ^ {*}} ^ {\prime} (x)\right) \right] + \mathbb {E} _ {x \sim \mu_ {S ^ {*}}} \left[ \mathcal {L} \left(f (x), f _ {S ^ {*}} ^ {\prime} (x)\right) \right] \\ \leq \mathbb {E} _ {x \sim \mu_ {S ^ {*}}} \left[ \mathcal {L} \left(f (x), f _ {S ^ {*}} ^ {\prime} (x)\right) \right] \\ + \left| \mathbb {E} _ {x \sim \mu_ {S ^ {*}}} \left[ \mathcal {L} \left(f (x), f _ {S ^ {*}} ^ {\prime} (x)\right) \right] - \mathbb {E} _ {x \sim \mu_ {T}} \left[ \mathcal {L} \left(f (x), f _ {S ^ {*}} ^ {\prime} (x)\right) \right] \right| \tag {9} \\ \end{array}
+$$
+
+We bound $\left|\mathbb{E}_{x\sim \mu_{S^*}}\left[\mathcal{L}\left(f(x),f_{S^*}^\prime (x)\right)\right] - \mathbb{E}_{x\sim \mu_T}\left[\mathcal{L}\left(f(x),f_{S^*}^\prime (x)\right)\right]\right|$ as follows:
+
+$$
+\begin{array}{l} \left| \mathbb {E} _ {x \sim \mu_ {S ^ {*}}} \left[ \mathcal {L} (f (x), f _ {S ^ {*}} ^ {\prime} (x)) \right] - \mathbb {E} _ {x \sim \mu_ {T}} \left[ \mathcal {L} (f (x), f _ {S ^ {*}} ^ {\prime} (x)) \right] \right| \\ = \left| \int_ {\mathcal {X} ^ {2}} \mathcal {L} \left(f \left(x _ {S ^ {*}}\right), f _ {S ^ {*}} ^ {\prime} \left(x _ {S}\right)\right) - \mathcal {L} \left(f \left(x _ {T}\right), f _ {S ^ {*}} ^ {\prime} \left(x _ {T}\right)\right) d \pi^ {*} \left(x _ {T}, x _ {S ^ {*}}\right) \right| \\ = \left| \int_ {\mathcal {X} ^ {2}} \mathcal {L} \left(f \left(x _ {S ^ {*}}\right), f _ {S ^ {*}} ^ {\prime} \left(x _ {S ^ {*}}\right)\right) \right. \\ - \mathcal {L} \left(f \left(x _ {S ^ {*}}\right), f _ {S ^ {*}} ^ {\prime} \left(x _ {T}\right)\right) + \mathcal {L} \left(f \left(x _ {S ^ {*}}\right), f _ {S ^ {*}} ^ {\prime} \left(x _ {T}\right)\right) - \mathcal {L} \left(f \left(x _ {T}\right), f _ {S ^ {*}} ^ {\prime} \left(x _ {T}\right)\right) d \pi^ {*} \left(x _ {T}, x _ {S ^ {*}}\right) \\ \leq \int_ {\mathcal {X} ^ {2}} \left| \mathcal {L} \left(f \left(x _ {S ^ {*}}\right), f _ {S ^ {*}} ^ {\prime} \left(x _ {S ^ {*}}\right)\right) - \int_ {\mathcal {X} ^ {2}} \mathcal {L} \left(f \left(x _ {S ^ {*}}\right), f _ {S ^ {*}} ^ {\prime} \left(x _ {T}\right)\right) \right| d \pi^ {*} \left(x _ {T}, x _ {S ^ {*}}\right) \\ + \int_ {\mathcal {X} ^ {2}} \left| \mathcal {L} \left(f \left(x _ {S ^ {*}}\right), f _ {S ^ {*}} ^ {\prime} \left(x _ {T}\right)\right) - \int_ {\mathcal {X} ^ {2}} \mathcal {L} \left(f \left(x _ {T}\right), f _ {S ^ {*}} ^ {\prime} \left(x _ {T}\right)\right) \right| d \pi^ {*} \left(x _ {T}, x _ {S ^ {*}}\right) \tag {10} \\ \end{array}
+$$
+
+Then due to $k$ -Lipschitzness of $\mathcal{L}$ and $\epsilon$ -Lipschitzness of $f$ , we can obtain:
+
+$$
+\begin{array}{l} R H S \text {o f} E q. e q u a t i o n 1 0 \leq k \int_ {\mathcal {X} ^ {2}} | | f _ {S ^ {*}} ^ {\prime} \left(x _ {S ^ {*}}\right) - f _ {S ^ {*}} ^ {\prime} \left(x _ {T}\right) | | d \pi^ {*} \left(x _ {T}, x _ {S ^ {*}}\right) \\ + k \int_ {\mathcal {X} ^ {2}} | | f (x _ {S ^ {*}}) - f (x _ {T}) | | d \pi^ {*} (x _ {T}, x _ {S ^ {*}}) \\ \leq k \epsilon \int_ {\mathcal {X} ^ {2}} 2 d \left(x _ {T}, x _ {S ^ {*}}\right) d \pi^ {*} \left(x _ {T}, x _ {S ^ {*}}\right) \\ = k \epsilon d _ {W} \left(\mathcal {X} _ {(T | f)}, \mathcal {X} _ {(S ^ {*} | f)}\right), \\ \end{array}
+$$
+
+where the last step is due to the definition of 1-Wasserstein distance. Then, according to the triangle inequality of Wasserstein distance Peyre et al. (2019), we can obtain:
+
+$$
+d _ {W} \left(\mathcal {X} _ {(T | f)}, \mathcal {X} _ {\left(S ^ {*} | f\right)}\right) \leq d _ {W} \left(\mathcal {X} _ {(T | f)}, \mathcal {X} _ {\left(\hat {X} | f\right)}\right) + d _ {W} \left(\mathcal {X} _ {\left(\hat {X} | f\right)}, \mathcal {X} _ {\left(S ^ {*} | f\right)}\right) \tag {11}
+$$
+
+Combining Eq. equation 9 and Eq. equation 11 we finished the proof and obtained the Theorem 2.4. By reducing the distance term $d_W\left(\mathcal{X}_{(T|f)}, \mathcal{X}_{(\hat{X}|f)}\right)$ , we have $\mathcal{X}_{(T|f)} \to \mathcal{X}_{(S^*|f)}$ . As a result, the expected distance
+
+$$
+\mathbb {E} _ {(S ^ {*} \sim \mathcal {X} _ {(S ^ {*} | f)}, T \sim \mathcal {X} _ {(T | f)})} \min _ {\pi \in \Pi (T, S ^ {*})} \mathbb {E} _ {(x _ {T}, x _ {S ^ {*}}) \sim \pi} d (x _ {T}, x _ {S ^ {*}}) \to 0,
+$$
+
+with randomly sampling $S^{*}$ and $T$ with $K$ elements.
+
+# N EXPERIMENT ON TEXT TO IMAGE GENERATION MODEL (STABLE DIFFUSION)
+
+In this section, we conducted experiments using a stable diffusion model Rombach et al. (2022) fine-tuned with LoRA on a Naruto dataset Cervenka (2022).
+
+Identical Attributes Test (C2). To evaluate the effectiveness of GMVALUATOR on a text-to-image dataset, we use the attributes in the images as ground truth and employ the Identical Attributes Test (C2) to assess its performance. The results presented in Table 14 show that the top $k$ contributors share similar attributes with the generated sample, such as gender, hair, and hat, demonstrating the effectiveness of our approach in evaluating data contributions.
+
+Table 14: Performance of Identical Attributes Test (C2) of some attributes including Gender, Hat, and Hair on Naruto.
+
+
Attribute (%)
Gender
Hat
Hair
Top K contributors:
k=3
k=4
k=5
k=3
k=4
k=5
k=3
k=4
k=5
GMValuator (l2_distance)
94.33
93.50
92.80
86.30
85.50
84.40
88.00
87.75
88.40
GMValuator (LPIPS)
98.67
98.50
98.80
87.00
86.25
85.40
96.67
96.25
96.00
GMValuator (DreamSim)
99.00
98.50
98.80
86.33
86.75
85.80
98.30
97.75
96.00
+
+Efficiency. To evaluate computational efficiency, we report the time taken to identify significant contributors for a single generated sample in Table 15. The results emphasize the effectiveness and efficiency of our approach for text-image models such as Stable Diffusion. The experiments were conducted in an environment equipped with an RTX A6000 (48GB) GPU and a 12-vCPU Intel(R) Xeon(R) Platinum 8255C CPU @ 2.50GHz.
+
+Table 15: Efficiency using Stable Diffusion on Naruto.
+
+
Method
GMValuator (l2_distance)
GMValuator (LPIPS)
GMValuator (DreamSim)
Time (s)
1.27888
3.09580
6.28144
+
+# O EFFICIENCY WITH INCREASED DATA SIZE
+
+As a training-free and efficient data valuation approach for generative models, GMVALUATOR is also highly scalable to large-scale and complex datasets. To evaluate this, we assess the efficiency of GMVALUATOR on datasets of varying sizes, illustrating the trend in computational efficiency as the data size increases. In Fig.10, we present the running time versus the dataset size for GMVALUATOR variants (dashed lines, with colors representing different similarity metrics) using the same settings as in Sec.N. This result demonstrates that average running time for various variants of GMValuator on a single generated image, with the recalled number set to 200, is dominated by the re-ranking process. As a result, the running time is nearly independent of the dataset size. Noting that the number of recalled images during the re-rank phase is fixed, thus time cost reveals minimal variation in runtime with increasing dataset size, demonstrating that our method maintains consistent computational efficiency even as the data scale grows.
+
+In Fig.11, we present the time cost for one generated image during the recall phase (No-Rerank), with dataset sizes ranging from $100\mathrm{K}$ to $50000\mathrm{K}$ . The results show that the running time remains small across different dataset size. Benefiting from the efficiency of our recall phase, the time overhead increases only marginally. In contrast, as noted in Kong & Chaudhuri (2021), "the run-time complexity of VAE-TracIn is linear with respect to the number of samples, checkpoints, and network parameters". Similarly, IF4GAN Terashita et al. (2021) is time-intensive, with complexity increasing alongside model size and the number of training epochs, as outlined in Algorithm 2 of their work.
+
+# P IMPACT OF QUANTIZATION RECALL
+
+In this section, we evaluate the effect of quantization recall by empirically compare quantization recall with nearest neighbor (NN) search using varying recalled number $K$ during the recall phase. To be specific, We conducted our experiments on the MNIST dataset using a GAN model with recalled number $K$ increasing from 100 to 700. For consistency, we leverage $l_{2}$ -distance in the reranking phase.
+
+
+Figure 10: Running time vs. dataset size for variants of GMValuator.
+
+
+Figure 11: Running time vs. dataset size for recall phase (No-Rerank) of GMValuator.
+
+
+Figure 12: Running Time vs. Number of Recall Samples
+
+Efficiency. GMVALUATOR significantly outperforms nearest neighbor search in speed, taking an average of 0.25 seconds to attribute the most significant contributors for a generated sample, which is more than 50 times faster compared to 13.75 seconds for NN search. What's more, the time cost for NN search will increase linearly with dataset size, while using PQ recall shows only a slight increased time in larger dataset size as shown in Fig 11. The experiments in this section are run in an environment equipped with an RTX A6000 GPU (48GB) and a 12-vCPU Intel(R) Xeon(R) Platinum 8255C CPU @ 2.50GHz.
+
+**Effective.** As illustrated in Fig. 12, under different recalled numbers (from 100 to 700), the results of GMValuator are similar to the exhaustive KNN search, demonstrating that our method maintains high performance while ensuring computational efficiency.
\ No newline at end of file
diff --git a/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/images.zip b/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..a4992ed4660ec019cef7ca9d616f5bea3228ddf5
--- /dev/null
+++ b/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4c679461784743072f27956b5e07e04c51aadbc14e8100b0613fd6361252cc66
+size 1363218
diff --git a/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/layout.json b/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..a7dc0b5da2bd9ac9853379958eda11a8dce9f640
--- /dev/null
+++ b/ICLR/2025/GMValuator_ Similarity-based Data Valuation for Generative Models/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:069f12c486e9d291307b76e246a15716dc860665f19a892769d14bbb007d1ec3
+size 872890
diff --git a/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/936aff69-d4b9-4eea-84e0-6874673a5dde_content_list.json b/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/936aff69-d4b9-4eea-84e0-6874673a5dde_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..9956de829d7abdc6011676e7d8e5f6694f9d33b3
--- /dev/null
+++ b/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/936aff69-d4b9-4eea-84e0-6874673a5dde_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:55911cde718c99ff358b5277c80e7854ebfa1a38ce078a7aa18abb63a3eb27a7
+size 207200
diff --git a/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/936aff69-d4b9-4eea-84e0-6874673a5dde_model.json b/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/936aff69-d4b9-4eea-84e0-6874673a5dde_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..24a59cc79e0f4b23a1e59a5fdfcf3f5ab68a2909
--- /dev/null
+++ b/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/936aff69-d4b9-4eea-84e0-6874673a5dde_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8563d72c0dc37ae8f906b2d56e93f18665b555b1f427d2303568d68f423b3b60
+size 244659
diff --git a/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/936aff69-d4b9-4eea-84e0-6874673a5dde_origin.pdf b/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/936aff69-d4b9-4eea-84e0-6874673a5dde_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..06dc63a6e878878905af1296a8f396aa425cb4a6
--- /dev/null
+++ b/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/936aff69-d4b9-4eea-84e0-6874673a5dde_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2cfa0d869b894a989d8b051db8231638b2014ecf040c8505884e46a798f2d4fc
+size 1758368
diff --git a/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/full.md b/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..1989c0415f524ab6beb0abde20434021465375a0
--- /dev/null
+++ b/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/full.md
@@ -0,0 +1,715 @@
+# GNNS GETTING COMFY: COMMUNITY AND FEATURE SIMILARITY GUIDED REWIRING
+
+Celia Rubio-Madrigal\*
+
+Adarsh Jamadandi\*1,2
+
+Rebekka Burkholz
+
+$^{1}$ CISPA Helmholtz Center for Information Security
+
+2 Universitat des Saarlandes
+
+# ABSTRACT
+
+Maximizing the spectral gap through graph rewiring has been proposed to enhance the performance of message-passing graph neural networks (GNNs) by addressing over-squashing. However, as we show, minimizing the spectral gap can also improve generalization. To explain this, we analyze how rewiring can benefit GNNs within the context of stochastic block models. Since spectral gap optimization primarily influences community strength, it improves performance when the community structure aligns with node labels. Building on this insight, we propose three distinct rewiring strategies that explicitly target community structure, node labels, and their alignment: (a) community structure-based rewiring (ComMa), a more computationally efficient alternative to spectral gap optimization that achieves similar goals; (b) feature similarity-based rewiring (FeaSt), which focuses on maximizing global homophily; and (c) a hybrid approach (ComFy), which enhances local feature similarity while preserving community structure to optimize label-community alignment. Extensive experiments confirm the effectiveness of these strategies and support our theoretical insights.
+
+# 1 INTRODUCTION
+
+Graph Neural Networks (GNNs) are a class of deep learning models that commonly adopt the paradigm of message passing (Gori et al., 2005; Scarselli et al., 2009; Bronstein et al., 2021), where information is repeatedly aggregated and diffused on the graph to generate a graph level representation that can be leveraged to perform either node-level (Kipf & Welling, 2017; Hamilton et al., 2017b; Velicković et al., 2018) or graph-level tasks (Errica et al., 2020). Although GNNs have found many applications in a wide array of fields, including Chemistry (Reiser et al., 2022), Biology (Bongini et al., 2023) and even Physics (Sanchez-Gonzalez et al., 2020; Shlomi et al., 2021), they are also known to have several limitations. For instance, GNNs can fail to distinguish simple graph structures (Leman, 1968; Morris et al., 2019; Papp et al., 2021). Some other problems include over-squashing (Alon & Yahav, 2021; Giovanni et al., 2023), where topological bottlenecks in the input graph desensitize the node features to information from distant nodes, and over-smoothing (Li et al., 2019; NT & Maehara, 2019; Oono & Suzuki, 2020; Zhou et al., 2021; Keriven, 2022), where node features tend to become indistinguishable due to repeated aggregations resulting from high model depth.
+
+A popular approach to circumvent problems like over-squashing and over-smoothing is to make the input graph more amenable to message passing by rewiring the graph. This can be based on edge curvature (Topping et al., 2022; Giraldo et al., 2023; Nguyen et al., 2023) or maximizing the spectral gap (Karhadkar et al., 2023; Jamadandi et al., 2024). Spectral gap maximization, however, attenuates the graph's community structure. As our first contribution, we point out that also minimization, and thus an amplification of community structure, can improve the performance of GNNs, and provide a systematic analysis of the scenarios where one is preferred over the other. We argue that current rewiring techniques are limited in their effectiveness, as they do not account for the alignment between the nodes' ground truth labels and their cluster membership labels. If this 'graph-task' alignment is high, sometimes referred to as the cluster hypothesis (Chapelle et al., 2009), reducing the latent community structure can be detrimental to solving a task. Similarly, if the alignment is poor, spectral gap maximization can amplify the misalignment, which can still have degrading effects on GNN performance.
+
+We gain these insights by a theoretical analysis of random graphs drawn from the Stochastic Block Model (SBM), a paradigm model of graphs with community structure, on which we define a node classification task where we control two central quantities that determine the success of GNNs: the community strength and the graph-task alignment ( $\S 2.3$ ). The main mechanism through which rewiring improves performance in this context is by adding edges between nodes that have similar features, and by removing edges between nodes with very different features, which would pollute each other's neighborhood aggregation and contribute to over-smoothing. Rewiring that improves feature similarity indirectly improves homophily, because nodes with the same label usually have more similar features. Our arguments thus align with the literature that suggests that homophily critically influences the performance of GNNs (Ma et al., 2022) and is also related to the alignment between the optimal kernel matrix and the adjacency matrix of the graph (Yang et al., 2024). To further corroborate our theoretical insight, we analyze in depth the effect of spectral rewiring on real-world graphs, and observe that the number of edges that improve the graph-task alignment (and thus homophily) correlate with the effectiveness of different spectral rewiring approaches.
+
+To overcome the limitations of spectral rewiring, our theory and analysis provide insights into the mechanisms that can influence alignment and identify feature similarity as a promising additional criterion to take into account. This motivates our novel graph rewiring proposals, as shown in Figure 1. We introduce three different families of methods to study the importance of both topology and homophily, in isolation as well as in combination.
+
+- The first one, ComMa, targets the strength of latent communities of the input graph: HigherComMa adds random intra-cluster edges and deletes inter-cluster edges, thus increasing the community structure. Its counterpart, LowerComMa, deletes intra-cluster edges and adds inter-cluster edges, lowering the community strength. These are randomized counterparts of the spectral methods, but they perform much faster, as they only require to run once a community detection algorithm at the beginning.
+- The second method that we propose, FeaSt, aims to maximize the global feature similarity. It prioritizes edges according to this objective. It thus adds edges that increase the average similarity the most, and deletes existing edges that connect the least similar nodes. FeaSt performs especially well for highly homophilic graphs, as this procedure might help denoise the conflicting neighbourhoods. FeaSt therefore likes to focus on graph regions that already have a homophilic tendency, and further enhances this trend.
+- ComFy rewrites edges based on feature similarity, but is able to budget the number of edges according to the community they belong to, such that the effect is distributed across the graph. ComFy fares comparably well to FeaSt in homophilic settings, and outperforms other methods in heterophilic settings. Our extensive results on several GNN benchmarks prove that graph rewiring cannot be purely grounded on topological criteria, but that a combination of both topology and feature similarity is helpful.
+
+# 1.1 RELATED WORK
+
+Graph rewiring. A key component for GNNs is the input graph, since it not only acts as the data for model training but is also the computational structure on which message passing (Gilmer et al., 2017) is performed. Real-world graphs, however, can be noisy and sub-optimal for downstream tasks. For example, recent studies have pointed out issues like over-squashing (Alon & Yahav, 2021; Topping et al., 2022; Giovanni et al., 2023), caused by topological bottlenecks, which affect how information is diffused. This highlights the importance of the graph topology and begs the question: how can we obtain an optimal computational structure that aligns with the downstream task? Graph rewiring has emerged as a popular technique to effect changes to the edge structure. This can be done based on various criteria. For instance, Topping et al. (2022); Giraldo et al. (2023); Nguyen et al. (2023) propose to use different variants of Ricci curvature (Hamilton, 1988) to rewire the graph, while Black et al. (2023) propose the effective resistance (Chandra et al., 1996), and Banerjee et al. (2022); Deac et al. (2022) transform the input graph into an expander graph (Salez, 2021) for efficient message passing. Edges can be added or deleted and even though GNNs should be able to learn to drop task-irrelevant neighbors, trainability and expressiveness issues can limit this ability (Mustafa et al., 2023; Mustafa & Burkholz, 2024), which explains why edge deletions can also help fight over-smoothing in addition to over-squashing (Jamadandi et al., 2024).
+
+
+Figure 1: Behaviour of the proposed algorithms on a 2-cluster graph for $k$ edge modifications. Columns denote our methods and their variants (see §3, §B). Rows indicate 3 edge areas used for budgeting across the graph —except for FeaSt, which is global. The (latent) clusters are precomputed via Louvain. ComMa randomly draws edges from all intra or all inter-cluster areas, which is equivalent to drawing from each area with a proportional budget in expectation. This insight is translated to ComFy, but the edges are not drawn randomly but prioritized similarly to FeaSt.
+
+Spectral gap maximization. Contemporaneously, spectral-based methods such as Karhadkar et al. (2023) aim to maximize the spectral gap by edge additions, as a larger spectral gap is inherently linked to faster mixing time (Levin et al., 2006) and thus better information flow. However, this can be detrimental in the case of heterophilic graphs (Ma et al., 2022; Platonov et al., 2023a) as we might add edges between nodes of different labels resulting in over-smoothing (Li et al., 2019; NT & Maehara, 2019; Oono & Suzuki, 2020; Zhou et al., 2021; Keriven, 2022). The spectral gap can also be maximized by deleting edges (Jamadandi et al., 2024) and this has shown to be beneficial in slowing down detrimental over-smoothing while simultaneously mitigating oversquashing, especially in heterophilic settings. Contrarily, Arnaiz-Rodriguez et al. (2022) advocate for spectral gap minimization, but do not explain when this could be advantageous.
+
+Graph and task alignment. Our findings reveal that the underlying mechanism enhancing GNN performance by rewiring actually depends on whether we modify edges connecting nodes with similar or dissimilar features, that are usually associated with similar or dissimilar labels. In fact, Hussain et al. (2021) take a first step in this direction by analysing the interplay between community and node-labels. They propose an information-theoretic metric, and demonstrate its impact on performance by artificially creating and destroying communities in real-world graphs. This also highlights the importance of the positive influence of same-label neighbours and how different-label neighbours can impair node classification performance (Chen et al., 2020). We take this analysis several steps further and analyze why spectral rewiring cannot induce this alignment (Theorem 1).
+
+The desirability of alignment between the graph structure and the task in GNNs has been explored in the context of their training dynamics by Yang et al. (2024). This study theoretically analyzes how GNN models tend to align their Neural Tangent Kernel (NTK) matrix $\Theta_t$ with the adjacency matrix $A$ of the input graph. They further derive a generalization bound for the NTK regime without considering node features, specifically in cases where the adjacency matrix $A$ is well-aligned with the optimal kernel matrix $\Theta^*$ . This matrix $\Theta^*$ precisely indicates whether a pair of nodes share the same label, making this concept of alignment similar to ours—though not explicitly referring to the graph's communities—and to the concept of homophily. Our theory on SBMs supports this result on GNN performance, while additionally relating it to the denoising effect of node features by their neighborhoods (Theorem 2) and considering different levels of alignment (Theorem 3).
+
+# 1.2 CONTRIBUTIONS
+
+1. Complementing the graph rewiring literature on spectral gap maximization to fight over-squashing, we highlight real-world cases in which spectral gap minimization is more effective, contrary to
+
+
+(a) Perfect alignment $\psi = 1$
+
+
+(b) Alignment $\psi = \frac{2}{3}$ .
+Figure 2: Adjacency matrices of $(p,q)$ -SBM for different alignments. Shaded areas are intracommunity edges drawn with probability $p$ (except self-loops), and unshaded areas are intercommunity edges drawn with probability $q$ . In Figure 2(a), the two communities match classes $c_{1}$ (orange) and $c_{2}$ (purple). In Figure 2(b), a third of nodes in each community are of the opposite class.
+
+conventional approaches. These cases are characterized by high graph-task alignment (when community labels overlap with node labels).
+
+2. Our theoretical insights on SBMs and experimental evidence identify the degree of task and graph structure alignment as the most critical underlying factor to explain when spectral gap rewiring improves a learning task. This highlights the major limitation of spectral-based methods, which is that they cannot improve the graph-task alignment directly.
+3. To overcome this limitation, motivated by our theoretical insights, we propose to integrate feature similarity into graph rewiring approaches. We explore three novel strategies to study the effect of community structure and feature similarity in isolation (ComMa and FeaSt) and in combination (ComFy).
+4. Extensive real-world experiments confirm our previous insights, highlighting the effectiveness of feature similarity. We find that homophilic graphs tend to benefit most from maximizing global feature similarity FeaSt, while heterophilic graphs gain most from a hybrid approach, ComFy, that maximizes feature similarity while respecting the community structure.
+
+# 2 CONCEPTUAL ANALYSIS
+
+# 2.1 SPECTRAL REWIRING AFFECTS COMMUNITY STRENGTH
+
+Spectral rewiring approaches usually focus on reducing over-squashing by maximizing the spectral gap of the input graph. However, maximizing the gap has a distinct effect on its latent community structure. It is the case that, by maximizing the spectral gap, inter-community edges are added and intra-community edges are deleted, which attenuates the community strength (Theorem 1).
+
+When there is a high graph-task alignment, which has also been termed as the cluster hypothesis (Chapelle et al., 2009), the addition of inter-community edges likely adds more inter-class edges, while the removal of intra-community edges likely deletes many intra-class edges. Consequently, message passing happens on a less informative computational structure, rendering the rewiring detrimental to the performance of any classifier (Theorem 2). On the other hand, by minimizing the spectral gap inter-community edges are deleted and intra-community edges are added, which strengthens the community structure. If this structure is highly aligned with the labels, the rewiring should be beneficial, as it increases feature similarity of nodes that have the same label, thus making different class nodes better separable.
+
+To make these intuitive statements more rigorous and quantifiable, we relate community structure and node labels in a paradigmatic example of community structure: the Stochastic Block Model (SBM $(p,q,\mathcal{C})$ ), which is a random graph model with planted communities. The nodes are partitioned into $\mathcal{C}$ communities—we adopt a binary SBM $(\mathcal{C} = 2)$ unless explicitly stated otherwise. We can observe the form of the adjacency matrix of a two-block $(p,q)$ SBM in Figure 2. The edges are randomly sampled with probabilities $p$ for intra-community edges and $q$ for inter-community edges. Both values critically influence the performance of GNNs on a sampled graph, as they determine the amount
+
+of neighborhood aggregation. High values of $p$ and low values of $q$ lead to a strong, pronounced community structure. Thus, the node features after message passing tend to become more similar within communities in this setting. Similar values of $p \approx q$ would make the community structure difficult to detect and the feature distributions of different communities would not necessarily become more distinguishable after neighborhood aggregation.
+
+To relate this reasoning to spectral gap optimization, we first establish a direct link to the community structure in SBMs.
+
+Theorem 1 (A less pronounced community structure corresponds to a higher spectral gap). Let $G$ be a $(p - q)$ -SBM with $N$ nodes in 2 equally-sized communities and intra/inter-edge probabilities $p > q$ . Let $G^{del}$ be a $(p' - q)$ -SBM where $p' < p$ , and $G^{add}$ be a $(p - q')$ -SBM where $q' > q$ . The (expected) spectral gap of $G$ is smaller than those of $G^{del}$ and $G^{add}$ : $\lambda_1(G) < \lambda_1(G^{del})$ , and $\lambda_1(G) < \lambda_1(G^{add})$ . In fact, the spectral gap grows approximately like $-\frac{p - q}{q + p}$ .
+
+In summary, increasing $q$ and decreasing $p$ increases the spectral gap but makes the community structure less pronounced, and vice versa. The next theorem establishes how this is connected to the performance of a model that performs sum aggregation, which we use as a tractable GNN proxy.
+
+Theorem 2 (A less pronounced community structure harms performance —if high graph-task alignment). Let $G$ be the $(p - q)$ -SBM from Theorem 1. Let $x_{i}$ be the single feature of node $i$ where $x_{i} \sim \mathcal{N}(-1,1)$ if its class $\ell_{i} = c_{1}$ or $x_{i} \sim \mathcal{N}(1,1)$ if its class $\ell_{i} = c_{2}$ , and $\ell_{i}$ corresponds one-to-one to node $i$ 's block membership. Let $f$ be an optimal classifier on the model's features, $X$ , and $e(f,X)$ the (expected) proportion of misclassified nodes. After a step of sum aggregation, $e$ is monotonically decreasing with respect to $p$ , and increasing with respect to $q$ .
+
+# 2.2 VARYING THE AMOUNT OF GRAPH-TASK ALIGNMENT
+
+Theorem 2 applies to an SBM with perfect alignment between its clusters and node labels. However, in real-world graphs, this assumption is rarely satisfied. The relationship between the task and the underlying community structure, which might not necessarily be pronounced, can take more complex forms. For instance, in heterophilic settings, similar nodes do not need to be connected, so the effect of spectral rewiring on them is not straightforward. While spectral rewiring can influence performance by modifying how pronounced the latent community structure is, aggregation on the input graph is much more effective if we improve the mentioned alignment directly, which spectral rewiring fails to do.
+
+This intuition is corroborated and quantified by our theory. Theorem 3 describes the behaviour of the proportion of misclassified nodes after a step of neighborhood aggregation. Let $\psi$ capture the graph-task alignment. An illustration of an SBM with $\psi \neq 1$ can be found in Figure 2(b). If $\psi = 1$ , we obtain the same behaviour (perfect alignment) as in Theorem 2. With $\psi = 0$ , we obtain an SBM where the node labels are assigned oppositely to their communities, so by renaming the communities we also have perfect alignment. For $\psi = 0.5$ , $P(M) = \Phi(0) = \frac{1}{2}$ , so half the nodes are misclassified and this classifier is as good as a random choice. In this setup, most of the real distributions of neighbours follow binomials. For better interpretability, we have simplified the formula with normal approximations to look at the continuous trends. All nuances are derived in the proof ( $\S A.3$ ), which suggests that the central $\psi$ parameter controls GNN performance.
+
+Theorem 3 (The effect of different alignments on performance). Let $G$ be the $(p - q)$ -SBM from Theorem 1 $(p > q)$ . Let $x_{i}$ be the single feature of node $i$ where $x_{i} \sim \mathcal{N}(-1,1)$ or $x_{i} \sim \mathcal{N}(1,1)$ depending on its class, and $\ell_{i}$ its label, which may correspond to node $i$ 's block membership with a fixed probability $\psi$ . After a step of sum aggregation, the proportion of misclassified nodes of the best classifier $f$ is approximately
+
+$$
+P (M) \approx 1 - \psi + (2 \psi - 1) \Phi \left(\frac {\frac {N}{2} (2 \psi - 1) (p - q)}{\sqrt {\frac {N}{2} (p + q + p (1 - p) + q (1 - q) + 2 (p - q) ^ {2} \psi (1 - \psi))}}\right)
+$$
+
+# 2.3 EXPERIMENTS ON SBM FOR DIFFERENT $p$ AND $q$
+
+The previously stated theorems are also supported by empirical results. Theorem 1 proves that maximizing the spectral gap results in a weaker latent community structure, while minimization
+
+
+(a) Correlation of some scores for different values of $(p,q)$ .
+
+
+(b) Accuracy of a GCN trained on different $(p,q)$ (averaged for 8 different seeds).
+Figure 3: The effects of Theorem 1 (for the spectral gap) and Theorems 2, 3 (for accuracy) on 1000-node SBM- $(p,q)$ . Each SBM has different $p$ and $q$ , where $p = \{0.5,0.7,0.8,0.99\}$ and $q = \{0.2,0.5\}$ , and different alignment between the labels and the communities: $\{0.9,0.95,1\}$ , as well as an example of 0.6 alignment which gets practically null performance. The spectral gap correlates perfectly with $-\frac{p - q}{p + q}$ , and negatively with the community structure and the homophily with perfect alignment. Thus, it is equivalent to plot Figure 3(b) with any of these as the x-axis.
+
+enhances it. To quantify the impact of the spectral gap on the performance, we sample SBM graphs with normally distributed node features, whose means indicate their class membership. The class memberships are sampled from independent Bernoulli distributions whose probability (the alignment) depends on a node's community label. For different values of $p$ and $q$ , we train a 2-layered GCN (Kipf & Welling, 2017) and measure the Normalized Mutual Information (NMI) (Chen et al., 2019) between the ground truth labels and the predictions made by the GCN, which we show in Figure 3(b).
+
+Figure 3(a) furthermore validates that the spectral gap correlates with $-\frac{p - q}{q + p}$ and the community strength of the SBM (negatively), as well as with the graph's normalized homophily score when the alignment is perfect. When the alignment is weaker, the homophily also decreases homogeneously. In Figure 3(b), we compare the spectral gap of these different SBM graphs against the accuracy of a GCN trained on it, using a fixed train-test split.
+
+We find that, in cases of high homophily and high alignment, it is beneficial to minimize the spectral gap, as the communities that get strengthened also correspond to the task labels. However, the spectral gap does not completely correlate with the GCN accuracy, as it can only affect the community strength. We can also see that a lack of graph-task alignment reduces the GNN performance, as shown by the different hues in the scatter plot. Changing the alignment only from 1.0 to 0.95 reduces dramatically the influence of different $(p,q)$ on the performance. But even given a fixed theoretical alignment, the topology of the graph can have nuanced effects on GNN accuracy. For instance, the SBM-(0.5, 0.2) has a lower spectral gap (and higher homophily) than the SBM-(0.99, 0.5), although a worse test performance. Yet, the latter has a higher density, which means it is potentially better at denoising and obtaining better separable node representations. This observation highlights potential benefits resulting from adding edges (and thus increasing the graph density) even without considering feature similarity or graph-task alignments.
+
+# 2.4 ANALYSIS OF REAL-WORLD DATASETS
+
+Real-world datasets usually have complex community structures and mixed alignment trends. Some parts of the graph might show good graph-task alignment while other parts do not invite for spectral-based rewiring. This makes it difficult to predict when minimization or maximization works best or how many edge modifications are required to see changes in GNN performance. On the one hand, very homophilic datasets might be similar to the SBM setup analyzed in the previous theorems, so spectral maximization is detrimental in the long run—as seen for Cora and Citeseer in Figure 4, where the alignment between labels and communities gets heavily reduced, and so does the accuracy. On
+
+
+Figure 4: Maximizing the spectral gap (using (Jamadandi et al., 2024)) on Cora and Citeseer reduces both the graph-task alignment and the test accuracy. Labels denote the number of edge additions.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(a) Cora: additions vs. deletions
+
+
+Figure 5: Alignment matrices for Cora (homophilic) and Chameleon (heterophilic) by a 500-edge rewiring method. In each row: spectral minimization and maximization from Jamadandi et al. (2024), and random rewiring. In each column: additions and deletions. Each alignment matrix compares the number of edges added/deleted in terms of the type of nodes it connects: with the Same or Different L(abel), and with the Same or Different C(ommunity).
+
+
+(b) Chameleon: additions vs. deletions
+
+
+
+the other hand, increasing connectivity might be key for some tasks, where, for example, information needs to travel across different clusters. All kinds of spectral rewiring methods can be effective for a small number of edge changes, as they might locally have a denoising effect for some (lucky) edges.
+
+However, the trend variability for spectral rewiring might be explained by the type of edges it adds or deletes, considering both the node and community labels that they connect. Figure 5 visualizes the number of edges that connect nodes with the same or different node and community labels, for spectral minimization, maximization, and random rewiring of 500 edges, for both Cora and Chameleon. We use the spectral gap optimization algorithms presented in Jamadandi et al. (2024), as they are reliable in maximizing the spectral gap for additions and deletions, and we adapt them for minimization (as described in Algs. 1 and 2). The amount of edges for each type clearly changes from the homophilic to the heterophilic case for the different methods.
+
+In the first row (spectral gap minimization), we see that minimization adds more same-community edges than the other two methods. When adding edges in homophilic settings (Cora), this is preferred,
+
+because these same-community edges are mostly same-label edges (same C: 152/21). However, in heterophilic settings (Chameleon) the opposite is true: making the community structure more pronounced adds edges connecting different labels (same C: 95/265). Deletions are, however, more similar to random rewiring, with the exception of a subtle increase in the pruning of different-community edges for the heterophilic setting, compared to random (Different C: -15/-59).
+
+In the second row (spectral gap maximization), the algorithm exclusively adds different-community edges. In homophilic settings, this is detrimental, as most of them will be from different classes (Different C: 36/464). However, in heterophilic settings, often nodes of the same class are connected, which helps align the community structure with the task (different C: 152/348). MaxGap also prunes almost exclusively same-community edges, which is again detrimental for the homophilic case (same C: -409/-57) but helps in the heterophilic case (same C: -167/333). The fact that spectral maximization by deletions helps especially in heterophilic settings is also supported by its strong benefits for GNN performance (Jamadandi et al., 2024).
+
+The alignment matrices serve as a guiding principle to determine if spectral gap maximization or minimization should be preferred. However, spectral gap optimization fails to transform the input graph into a computational structure that is well aligned for the downstream task, which leaves the question, can we do better?
+
+# 3 GRAPH REWIRING FOR COMMUNITY-NODE LABEL ALIGNMENT
+
+ComMa. In our conceptual analysis, we have proven that spectral rewiring algorithms directly affect the community strength of the input graph, and that this can be detrimental to the task when there is an originally good alignment between community and node labels. Yet, pre-processing spectral rewiring methods are usually performed in a Greedy manner, and this causes the methods to affect newly obtained community structure but not the original one, which can get lost. To obtain clearer insights into the impact of community structure, we propose a non-Greedy and more efficient alternative to spectral rewiring: ComMa. This method modifies edges such that they increase or decrease the original community structure directly. The variant that increases community structure is called HigherComMa (Alg. 3), and corresponds to minimizing the spectral gap. The method that decreases it is LowerComMa (Alg. 4), and corresponds to maximizing the spectral gap. In general, this approach is flexible regarding the method that is applied to detect the community structure of the initial input graph. We use the Louvain algorithm (Blondel et al., 2008), as it scales to large graphs and is implemented by the library nx_cugraph for GPU acceleration. The non-accelerated algorithm runs in $O(|\mathcal{V}| \log |\mathcal{V}|)$ . Rewiring only needs to consider the edges to add $O(|\bar{\mathcal{E}}|)$ or delete $O(|\mathcal{E}|)$ , and to randomly pick a fixed number of them (provided by a hyperparameter $N$ ).
+
+FeaSt. To make neighborhood aggregation more homogeneous to fight over-smoothing and likely increase homophily, we propose to maximize the pairwise feature similarity of all connected nodes in the graph. The feature (cosine) similarity between nodes $u$ and $v$ is defined as $\mathrm{sim}(u,v) = \frac{\langle X_u,X_v\rangle}{\|X_u\|\|\bar{X}_v\|}$ , where $X_{u},X_{v}$ are the respective features of nodes $u$ and $v$ . Although this operation can also be accelerated by GPU, the non-accelerated computation runs in $O(|X_u||\mathcal{V}|^2)$ . We consider all edges that can be added or deleted, and we rank them according to the similarity, which we would obtain if the edges were added or deleted, respectively. The $N$ modified edges are the top ones of this ranking, which can be obtained in $O(N|\bar{\mathcal{E}}|)$ for additions or $O(N|\mathcal{E}|)$ for deletions. The concrete formulas are specified in Alg. 5.
+
+ComFy. While feature similarity maximization is a well performing pre-processing rewiring approach, it suffers from complementary pitfalls to the spectral rewiring methods. For the latter, it can be disadvantageous to ignore the task. For the former (FeaSt), it can be disadvantageous to not account for the original community structure of the graph. Therefore, we propose to restrict the similarity maximization to edges between particular pairs of communities or pairs within a community. We call this algorithm ComFy (Alg. 6). In this way, the effect of rewiring is spread across the whole graph, and the original structure is proportionally accounted for. This method still requires to compute all pairwise similarity values, and to detect the graph's original communities. Afterwards, it budgets the number of edges $B_{ij}$ to modify between each pair of communities $(i,j)$ (including intra-community with $i = j$ ) depending on their sizes, and such that the total sum of budgets is approximately $N$ . For each $(i,j)$ , we find the top $B_{ij}$ edges that maximize the similarity of edges bridging them. The complexity of this algorithm is thus comparable to the sum of the other two algorithms.
+
+Table 1: Accuracy on node classification comparing different rewiring schemes.
+
+
Method
Cora
CiteSeer
Pubmed
Cornell
Texas
Wisconsin
Chameleon
Squirrel
Actor
GCN
86.12±0.36
77.83±0.35
85.57±0.11
35.14±1.63
35.14±1.50
38.00±1.47
39.33±0.59
31.69±0.42
27.24±0.21
GCN+BORF
87.50±0.20
73.80±0.20
NA
50.80±1.10
NA
50.30±0.90
61.50±0.40
NA
NA
GCN+FoSR
83.50±0.39
75.47±0.31
86.08±0.10
40.54±1.47
51.35±1.75
54.00±1.46
41.01±0.63
32.36±0.37
27.57±0.21
GCN+ProxyAddMin
84.10±0.39
78.77±0.40
86.15±0.10
45.95±1.50
48.65±1.45
42.00±1.23
39.33±0.55
33.71±0.40
28.03±0.22
GCN+ProxyAddMax
85.92±0.43
79.25±0.35
86.41±0.11
48.65±1.41
40.54±1.64
50.00±1.25
38.20±0.70
35.06±0.44
25.99±0.20
GCN+ProxyDelMin
85.92±0.37
79.01±0.34
86.28±0.11
45.95±1.50
48.65±1.63
44.00±1.13
39.89±0.59
34.83±0.45
26.58±0.25
GCN+ProxyDelMax
86.32±0.38
81.84±0.38
85.95±0.11
54.05±1.67
48.65±1.35
52.00±1.33
39.33±0.70
34.61±0.39
27.30±0.22
GCN+HigherComMaAdd
83.64±0.38
77.13±0.38
85.86±0.10
49.93±1.34
52.66±1.47
50.55±1.24
41.23±0.72
34.51±0.40
30.92±0.21
GCN+HigherComMaDel
83.82±0.31
77.31±0.41
85.90±0.11
49.03±1.26
48.57±1.53
50.32±1.38
40.44±0.69
34.66±0.39
30.71±0.24
GCN+LowerComMaAdd
83.41±0.37
77.15±0.36
85.85±0.09
51.08±1.67
50.29±1.71
50.95±1.29
40.61±0.64
34.48±0.39
30.79±0.23
GCN+LowerComMaDel
83.61±0.35
77.39±0.37
85.90±0.10
49.69±1.43
50.59±1.52
50.61±1.35
40.43±0.71
34.76±0.40
30.79±0.22
GCN+FeaStAdd
87.73±0.39
78.54±0.34
86.43±0.09
59.46±1.49
54.05±1.51
60.00±1.09
43.26±0.62
39.33±0.73
31.25±0.22
GCN+FeaStDel
90.74±0.39
81.60±0.39
86.76±0.10
51.35±1.63
64.86±1.43
60.00±1.27
42.70±0.69
36.40±0.36
31.97±0.21
GCN+ComFyAdd
87.73±0.26
77.36±0.38
86.74±0.10
67.57±1.68
62.16±1.52
62.00±1.12
41.57±0.83
36.85±0.38
32.30±0.25
GCN+ComFyDel
88.13±0.27
78.07±0.35
86.23±0.11
70.27±1.50
64.86±1.51
66.00±1.34
45.51±0.76
39.10±0.43
31.12±0.19
+
+Table 2: Node classification on Large Heterophilic Datasets comparing different rewiring schemes.
+
+
Method
Roman-Empire
Amazon-Ratings
Minesweeper
Baseline
70.30±0.73
47.20±0.33
89.49±0.07
GCN+FoSR
73.60±1.11
49.68±0.73
89.66±0.04
GCN+ProxyAddMin
79.18±0.06
49.30±0.05
89.56±0.05
GCN+ProxyAddMax
77.54±0.74
49.72±0.41
89.63±0.05
GCN+ProxyDelMin
79.09±0.05
49.57±0.06
89.60±0.05
GCN+ProxyDelMax
77.45±0.68
49.75±0.46
89.58±0.04
GCN+FeaStAdd
79.67±0.07
49.46±0.07
89.75±0.05
GCN+FeaStDel
78.99±0.05
49.19±0.06
89.02±0.04
GCN+FeaStAddDel
79.03±0.07
49.39±0.07
89.62±0.05
GCN+ComFyAdd
79.53±0.07
49.29±0.04
89.76±0.05
GCN+ComFyDel
79.17±0.07
49.21±0.06
89.66±0.05
GCN+ComFyAddDel
79.27±0.06
49.45±0.07
89.40±0.08
+
+# 4 EXPERIMENTS
+
+We conduct a comprehensive set of experiments for all proposed algorithms on various benchmark datasets. Our backbone model is GCN (Kipf & Welling, 2017). Our rewiring techniques could be combined with any GNN model. We focus on a simple, common base architecture, as we compare many rewiring techniques in a comparable environment. Our proposed rewiring algorithms include: HigherComMa which randomly adds/deletes intra-community edges and inter-community edges respectively based on communities detected (Newman, 2006; Blondel et al., 2008); LowerComMa which does the opposite by randomly deleting intra-class edges and adding inter-class edges based on the communities detected; FeaSt, which rewrites the graph to maximize the pair-wise cosine similarity between node features; and ComFy, a hybrid version of other two algorithms that uses both the community structure and the feature similarity to rewire the graph. We use the suffixes Add, Delete and AddDel to represent only additions, deletions, or both. Our baselines with which we compare our algorithms are spectral gap maximization methods such as FoSR (Karhadkar et al., 2023), ProxyAddMax, and ProxyDelMax proposed in Jamadandi et al. (2024). We further modify the latter algorithms to also minimize the spectral gap, resulting in methods ProxyAddMin (Alg. 1) and ProxyDelMin (Alg. 2). The results for the Ricci curvature-based method BORF (Nguyen et al., 2023) is directly taken from their paper—hence Not Available (NA) for a few datasets. For all tables, the best-performing methods are highlighted in bold, and the second best-performing methods are highlighted with underlines. More details on the hyperparameters used are described in §C.
+
+In Table 1, we test our algorithms on a variety of homophilic and heterophilic graphs: Cora (McCallum et al., 2000), Citeseer (Sen et al., 2008), Pubmed (Namata et al., 2012), Cornell, Texas, Wisconsin, Chameleon, Squirrel, and Actor (Platonov et al., 2023c). We find that FeaSt-Del performs especially well for homophilic graphs. However, ComFy-Del seems to be in the lead for the heterophilic ones, and performs comparably for some of the homophilic ones. In Table 2 we present the results on accuracy for the large heterophilic graph benchmarks (Platonov et al., 2023c) for the spectral rewiring methods, for FeaSt and ComFy. While FeaSt-Add has some good results, all
+
+Table 3: Accuracy on node classification with both additions and deletions.
+
+
Method
Cora
CiteSeer
Pubmed
Cornell
Texas
Wisconsin
Chameleon
Squirrel
Actor
GCN
86.12±0.36
77.83±0.35
85.57±0.11
35.14±1.63
35.14±1.50
38.00±1.47
39.33±0.59
31.69±0.42
27.24±0.21
GCN+BORF
87.50±0.20
73.80±0.20
NA
50.80±1.10
NA
50.30±0.90
61.50±0.40
NA
NA
GCN+FoSR
83.50±0.39
75.47±0.31
86.08±0.10
40.54±1.47
51.35±1.75
54.00±1.46
41.01±0.63
32.36±0.37
27.57±0.21
GCN+HigherComMa
83.82±0.34
77.32±0.38
85.83±0.11
48.92±1.48
52.44±1.64
51.35±1.40
41.22±0.75
34.70±0.40
30.81±0.19
GCN+LowerComMa
83.76±0.35
77.05±0.37
85.82±0.10
51.46±1.49
50.29±1.59
50.42±1.27
40.49±0.62
34.11±0.38
30.60±0.22
GCN+FeaSt
85.71±0.36
80.19±0.34
87.01±0.12
54.05±1.62
56.76±1.65
58.00±1.26
44.94±0.70
35.73±0.48
32.63±0.21
GCN+ComFy
88.93±0.31
80.42±0.46
87.22±0.10
62.16±1.49
59.46±1.68
64.00±1.08
46.63±0.69
37.75±0.41
33.09±0.21
+
+Table 4: Runtime for different rewiring schemes, in seconds, for 50 edges.
+
+
Method
Cora
Citeseer
Chameleon
Squirrel
FoSR
4.69
5.33
5.04
19.48
ProxyAddMax
4.30
3.13
1.15
9.12
ProxyAddMin
5.03
3.63
1.08
10.01
ProxyDelMax
1.18
0.86
1.46
7.26
ProxyDelMin
3.59
2.85
3.12
8.43
ComMaAdd
0.05
0.03
0.04
0.63
ComMaDel
0.05
0.03
0.04
0.68
FeaStAdd
1.78
0.92
0.56
4.43
FeaStDel
1.73
0.91
0.56
4.52
ComFyAdd
6.29
3.85
2.84
8.72
ComFyDel
6.68
3.73
2.99
8.97
+
+ComFy variants seem to also perform comparably. Finally, in Table 3 we present results for both simultaneous additions and deletions for our methods.
+
+Table 4 reports the computational efficiency compared to baselines, in seconds, when adding or deleting 50 edges. Concretely, ComMa is orders of magnitude faster than the spectral methods, FeaSt beats most of the baselines, and ComFy is comparable to them. The runtime of methods HigherComMa and LowerComMa are exactly the same, which we denote by ComMa.
+
+# 5 CONCLUSIONS
+
+We have introduced three novel graph rewiring techniques — ComMa, FeaSt, and ComFy— designed to improve the performance of Graph Neural Networks (GNNs) by focusing on the alignment between the graph structure and the target task.
+
+Through our theoretical analysis, we have identified this alignment as a critical factor in explaining performance gains and highlighted it as a major limitation of purely topological-based rewiring strategies that they cannot improve this alignment directly. We have discussed this specifically in the context of spectral gap maximization, a widely adopted strategy to address over-squashing, which attenuates the community structure of a graph. However, when the community labels overlap with the node labels, minimizing the spectral gap (thus amplifying the community structure) would yield significant performance improvements instead.
+
+The basic mechanism behind this improvement is the increase of feature similarity by neighborhood aggregation. In line with this finding, we have shown that rewiring techniques that explicitly take feature similarity into account, such as FeaSt and ComFy, can lead to significant performance gains, particularly in highly homophilic settings. Our proposed ComFy method, which balances community structure and feature similarity, was shown to outperform spectral rewiring methods in heterophilic settings, where feature alignment across different communities plays a critical role.
+
+Our comprehensive experiments on real-world datasets confirm the effectiveness of these rewiring strategies, demonstrating that a combination of topological and feature-based approaches is key to overcoming the limitations of spectral methods. We believe that this work lays the foundation for future research on task-aware rewiring strategies, and opens the door to more sophisticated methods that leverage both graph topology and node features to optimize GNN performance across a wide range of graph-based applications.
+
+# ACKNOWLEDGMENTS AND DISCLOSURE OF FUNDING
+
+The authors gratefully acknowledge the Gauss Centre for Supercomputing e.V. for funding this project by providing computing time on the GCS Supercomputer JUWELS at Jülich Supercomputing Centre (JSC). We also gratefully acknowledge funding from the European Research Council (ERC) under the Horizon Europe Framework Programme (HORIZON) for proposal number 101116395 SPARSE-ML.
+
+# REFERENCES
+
+Emmanuel Abbe. Community detection and stochastic block models: Recent developments. Journal of Machine Learning Research, 18(177):1-86, 2018. URL http://jmlr.org/papers/v18/16-480.html.
+Uri Alon and Eran Yahav. On the bottleneck of graph neural networks and its practical implications. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=i800PhOCVH2.
+Adrián Arnaiz-Rodríguez, Ahmed Begga, Francisco Escolano, and Nuria Oliver. Diffwire: Inductive graph rewiring via the lovász bound, 2022. URL https://arxiv.org/abs/2206.07369.
+Pradeep Kr. Banerjee, Kedar Karhadkar, Yu Guang Wang, Uri Alon, and Guido Montúfar. Oversquashing in gnns through the lens of information contraction and graph expansion. In 2022 58th Annual Allerton Conference on Communication, Control, and Computing (Allerton), pp. 1-8. IEEE Press, 2022. doi: 10.1109/Allerton49937.2022.9929363. URL https://doi.org/10.1109/Allerton49937.2022.9929363.
+Wendong Bi, Lun Du, Qiang Fu, Yanlin Wang, Shi Han, and Dongmei Zhang. Mm-gnn: Mixmoment graph neural network towards modeling neighborhood feature distribution. In Proceedings of the Sixteenth ACM International Conference on Web Search and Data Mining, WSDM '23, pp. 132-140, New York, NY, USA, 2023. Association for Computing Machinery. ISBN 9781450394079. doi: 10.1145/3539597.3570457. URL https://doi.org/10.1145/3539597.3570457.
+Mitchell Black, Zhengchao Wan, Amir Nayyeri, and Yusu Wang. Understanding oversquashing in gnns through the lens of effective resistance. In Proceedings of the 40th International Conference on Machine Learning, ICML'23. JMLR.org, 2023.
+Vincent D Blondel, Jean-Loup Guillaume, Renaud Lambiotte, and Etienne Lefebvre. Fast unfolding of communities in large networks. Journal of Statistical Mechanics: Theory and Experiment, 2008 (10):P10008, oct 2008. doi: 10.1088/1742-5468/2008/10/P10008. URL https://dx.doi.org/10.1088/1742-5468/2008/10/P10008.
+Pietro Bongini, Niccolò Pancino, Franco Scarselli, and Monica Bianchini. Biognn: How graph neural networks can solve biological problems. In Artificial Intelligence and Machine Learning for Healthcare, pp. 211-231. Springer, 2023.
+Michael M. Bronstein, Joan Bruna, Taco Cohen, and Petar Velickovic. Geometric deep learning: Grids, groups, graphs, geodesics, and gauges. CoRR, abs/2104.13478, 2021. URL https://arxiv.org/abs/2104.13478.
+Ashok K. Chandra, Prabhakar Raghavan, Walter L. Ruzzo, Roman Smolensky, and Prasoon Tiwari. The electrical resistance of a graph captures its commute and cover times. computational complexity, 6(4):312-340, 1996. doi: 10.1007/BF01270385. URL https://doi.org/10.1007/BF01270385.
+O. Chapelle, B. Scholkopf, and A. Zien, Eds. Semi-supervised learning (chapelle, o. et al., eds.; 2006) [book reviews]. IEEE Transactions on Neural Networks, 20(3):542-542, 2009. doi: 10.1109/TNN.2009.2015974.
+
+Hao Chen, Yue Xu, Feiran Huang, Zengde Deng, Wenbing Huang, Senzhang Wang, Peng He, and Zhoujun Li. Label-aware graph convolutional networks. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management, CIKM '20, pp. 1977-1980, New York, NY, USA, 2020. Association for Computing Machinery. ISBN 9781450368599. doi: 10.1145/3340531.3412139. URL https://doi.org/10.1145/3340531.3412139.
+Zhengdao Chen, Lisha Li, and Joan Bruna. Supervised community detection with line graph neural networks. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=Hlg0Z3A9Fm.
+Andreea Deac, Marc Lackenby, and Petar Velicković. Expander graph propagation. In The First Learning on Graphs Conference, 2022. URL https://openreview.net/forum?id=IKevTLt3rT.
+Mingze Dong and Yuval Kluger. Towards understanding and reducing graph structural noise for GNNs. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (eds.), Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 8202-8226. PMLR, 23-29 Jul 2023. URL https://proceedings.mlr.press/v202/dong23a.html.
+Federico Errica, Marco Podda, Davide Bacciu, and Alessio Micheli. A fair comparison of graph neural networks for graph classification. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=HygDF6NFPB.
+Matthias Fey and Jan E. Lenssen. Fast graph representation learning with PyTorch Geometric. In ICLR Workshop on Representation Learning on Graphs and Manifolds, 2019.
+Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry. In Proceedings of the 34th International Conference on Machine Learning - Volume 70, ICML'17, pp. 1263-1272. JMLR.org, 2017.
+Francesco Di Giovanni, Lorenzo Giusti, Federico Barbero, Giulia Louise, Pietro Lio', and Michael Bronstein. On over-squashing in message passing neural networks: The impact of width, depth, and topology, 2023.
+Jhony H. Giraldo, Konstantinos Skianis, Thierry Bouwmans, and Fragkiskos D. Malliaros. On the trade-off between over-smoothing and over-squashing in deep graph neural networks. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management, CIKM '23, pp. 566-576, New York, NY, USA, 2023. Association for Computing Machinery. ISBN 9798400701245. doi: 10.1145/3583780.3614997. URL https://doi.org/10.1145/3583780.3614997.
+M. Gori, G. Monfardini, and F. Scarselli. A new model for learning in graph domains. In Proceedings. 2005 IEEE International Joint Conference on Neural Networks, 2005., volume 2, pp. 729-734 vol. 2, 2005. doi: 10.1109/IJCNN.2005.1555942.
+Richard Hamilton. The ricci flow on surfaces. In Mathematics and general relativity, Proceedings of the AMS-IMS-SIAM Joint Summer Research Conference in the Mathematical Sciences on Mathematics in General Relativity, 1988.
+William L. Hamilton, Rex Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS'17, pp. 1025-1035, Red Hook, NY, USA, 2017a. Curran Associates Inc. ISBN 9781510860964.
+William L. Hamilton, Zhitao Ying, and Jure Leskovec. Inductive Representation Learning on Large Graphs. In NIPS, pp. 1024-1034, 2017b.
+Hussain Hussain, Tomislav Duricic, Elisabeth Lex, Denis Helic, and Roman Kern. The interplay between communities and homophily in semi-supervised classification using graph neural networks. Applied Network Science, 6(1):80, 2021. doi: 10.1007/s41109-021-00423-1. URL https://doi.org/10.1007/s41109-021-00423-1.
+
+Adarsh Jamadandi, Celia Rubio-Madrigal, and Rebekka Burkholz. Spectral graph pruning against over-squashing and over-smoothing. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
+Kedar Karhadkar, Pradeep Kr. Banerjee, and Guido Montufar. FoSR: First-order spectral rewiring for addressing oversquashing in GNNs. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=3YjQfCLdrzz.
+Nicolas Keriven. Not too little, not too much: a theoretical analysis of graph (over)smoothing. In NeurIPS, 2022. URL http://papers.nips.cc/paper_files/paper/2022/bit/0f956ca6f667c62e0f71511773c86a59-Abstract-Conference.html.
+Thomas N. Kipf and Max Welling. Semi-Supervised Classification with Graph Convolutional Networks. In ICLR, 2017.
+Adrien Leman. The reduction of a graph to canonical form and the algebra which appears therein. 1968.
+David A. Levin, Yuval Peres, and Elizabeth L. Wilmer. Markov chains and mixing times. American Mathematical Society, 2006.
+Guohao Li, Matthias Müller, Ali Thabet, and Bernard Ghanem. Deep GCNs: Can GCNs go as deep as cnns? In The IEEE International Conference on Computer Vision (ICCV), 2019.
+Yao Ma, Xiaorui Liu, Neil Shah, and Jiliang Tang. Is homophily a necessity for graph neural networks? In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=ucASPPD9GKN.
+Andrew Kachites McCallum, Kamal Nigam, Jason Rennie, and Kristie Seymore. Automating the construction of internet portals with machine learning. Information Retrieval, 3(2):127-163, 2000. doi: 10.1023/A:1009953814988. URL https://doi.org/10.1023/A:1009953814988.
+Christopher Morris, Martin Ritzert, Matthias Fey, William L. Hamilton, Jan Eric Lenssen, Gaurav Rattan, and Martin Grohe. Weisfeiler and leman go neural: Higher-order graph neural networks. Proceedings of the AAAI Conference on Artificial Intelligence, 33(01):4602-4609, Jul. 2019. doi: 10.1609/aaai.v33i01.33014602. URL https://ojs.aaai.org/index.php/AAAI/article/view/4384.
+Nimrah Mustafa and Rebekka Burkholz. GATE: How to keep out intrusive neighbors. In *Forty-first International Conference on Machine Learning*, 2024. URL https://openreview.net/forum?id=Sjv5RcqfuH.
+Nimrah Mustafa, Aleksandar Bojchevski, and Rebekka Burkholz. Are GATs out of balance? In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=qY7UqLoora.
+Galileo Namata, Ben London, Lise Getoor, and Bert Huang. Query-driven active surveying for collective classification. 2012.
+M. E. Newman. Modularity and community structure in networks. Proceedings of the National Academy of Sciences, 103(23):8577-8582, Jun 2006. doi: 10.1073/pnas.0601602103.
+Khang Nguyen, Hieu Nong, Vinh Nguyen, Nhat Ho, Stanley Osher, and Tan Nguyen. Revisiting over-smoothing and over-squashing using ollivier-ricci curvature, 2023.
+Hoang NT and Takanori Maehara. Revisiting graph neural networks: All we have is low-pass filters. ArXiv, abs/1905.09550, 2019.
+Kenta Oono and Taiji Suzuki. Graph neural networks exponentially lose expressive power for node classification. In International Conference on Learning Representations, 2020.
+Pál András Papp, Karolis Martinkus, Lukas Faber, and Roger Wattenhofer. DropGNN: Random dropouts increase the expressiveness of graph neural networks. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan (eds.), Advances in Neural Information Processing Systems, 2021. URL https://openreview.net/forum?id=fpQojkIV5q8.
+
+Oleg Platonov, Denis Kuznedelev, Artem Babenko, and Liudmila Prokhorenkova. Characterizing graph datasets for node classification: Homophily-heterophily dichotomy and beyond. In Thirty-seventh Conference on Neural Information Processing Systems, 2023a. URL https://openreview.net/forum?id=m7PIJW0dlY.
+Oleg Platonov, Denis Kuznedev, Artem Babenko, and Liudmila Prokhorenkova. Characterizing graph datasets for node classification: Homophily-heterophily dichotomy and beyond. In The Second Learning on Graphs Conference, 2023b. URL https://openreview.net/forum?id=D4GLZkTphJ.
+Oleg Platonov, Denis Kuznedelev, Michael Diskin, Artem Babenko, and Liudmila Prokhorenkova. A critical look at evaluation of gnns under heterophily: Are we really making progress? In The Eleventh International Conference on Learning Representations, 2023c.
+Patrick Reiser, Marlen Neubert, André Eberhard, Luca Torresi, Chen Zhou, Chen Shao, Houssam Metni, Clint van Hoesel, Henrik Schopmans, Timo Sommer, and Pascal Friederich. Graph neural networks for materials science and chemistry. Communications Materials, 3(1):93, 2022. doi: 10. 1038/s43246-022-00315-6. URL https://doi.org/10.1038/s43246-022-00315-6.
+Justin Salez. Sparse expanders have negative curvature, 2021.
+Alvaro Sanchez-Gonzalez, Jonathan Godwin, Tobias Pfaff, Rex Ying, Jure Leskovec, and Peter Battaglia. Learning to simulate complex physics with graph networks. In Hal Daume III and Aarti Singh (eds.), Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 8459-8468. PMLR, 13-18 Jul 2020. URL https://proceedings.mlr.press/v119/sanchez-gonzalez20a.html.
+Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61-80, 2009. doi: 10.1109/TNN.2008.2005605.
+Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI Magazine, 29(3):93, Sep. 2008. doi: 10.1609/aimag.v29i3.2157. URL https://ojs.aaai.org/index.php/aimagazine/article/view/2157.
+Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Gunnemann. Pitfalls of graph neural network evaluation, 2019.
+Jonathan Shlomi, Peter Battaglia, and Jean-Roch Vlimant. Graph neural networks in particle physics. Machine Learning: Science and Technology, 2(2):021001, jan 2021. doi: 10.1088/2632-2153/abbf9a. URL https://doi.org/10.1088/2632-2153/abbf9a.
+John R. Silvester. Determinants of block matrices. Mathematical Gazette, 84(501):460-467, November 2000. doi: 10.2307/3620776.
+Jake Topping, Francesco Di Giovanni, Benjamin Paul Chamberlain, Xiaowen Dong, and Michael M. Bronstein. Understanding over-squashing and bottlenecks on graphs via curvature. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=7UmjRGzp-A.
+Petar Velickovic, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph Attention Networks. In ICLR, 2018.
+Minjie Wang, Da Zheng, Zihao Ye, Quan Gan, Mufei Li, Xiang Song, Jinjing Zhou, Chao Ma, Lingfan Yu, Yu Gai, Tianjun Xiao, Tong He, George Karypis, Jinyang Li, and Zheng Zhang. Deep graph library: A graph-centric, highly-performant package for graph neural networks. arXiv preprint arXiv:1909.01315, 2019.
+Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=ryGs6iA5Km.
+
+Chenxiao Yang, Qitian Wu, David Wipf, Ruoyu Sun, and Junchi Yan. How graph neural networks learn: Lessons from training dynamics. In *Forty-first International Conference on Machine Learning*, 2024. URL https://openreview.net/forum?id=Dn4B53IcCW.
+Kaixiong Zhou, Xiao Huang, Daochen Zha, Rui Chen, Li Li, Soo-Hyun Choi, and Xia Hu. Dirichlet energy constrained learning for deep graph neural networks. Advances in neural information processing systems, 2021.
+
+# APPENDIX
+
+# A PROOFS
+
+# A.1 PROOF OF THEOREM 1
+
+Proof. We consider an SBM with 2 classes and $\frac{N}{2}$ nodes in each class, with intra-class edge probability $p$ and interclass edge probability $q$ . Its adjacency matrix $A$ is a random matrix where $A_{ij} = \operatorname{Bernoulli}(p)$ if nodes $i,j$ are in the same cluster, and $A_{ij} = \operatorname{Bernoulli}(q)$ otherwise. For a large $N$ , the adjacency matrix $A$ can be approximated by its expected value, which is a block matrix: $\tilde{A} = \begin{pmatrix} P & Q \\ Q & P \end{pmatrix}$ , where $P = p \cdot \mathbb{1}_{\frac{N}{2}} + (1 - p)I_{\frac{N}{2}}$ , where all values are $p$ except the diagonal which consists of ones, and $Q = q \cdot \mathbb{1}_{\frac{N}{2}}$ , where all values are $q$ . By summing up each row we find that the expected degree matrix $\tilde{D}$ is the diagonal matrix with entries $\tilde{D}_{ii} = 1 - p + \frac{N}{2}(p + q)$ .
+
+To find the second largest eigenvalue $\lambda_{2}$ , we need to spectrally analyze the (expected) normalized Laplacian of $\tilde{A}$ ; that is, $\mathcal{L} = I - \tilde{D}^{-1 / 2}\tilde{A}\tilde{D}^{-1 / 2}$ . We have that $\tilde{D}^{-1 / 2} = \left(\frac{1}{1 - p + \frac{N}{2}(p + q)}\right)^{1 / 2}I_N$ , so
+
+$$
+\tilde {D} ^ {- 1 / 2} \tilde {A} \tilde {D} ^ {- 1 / 2} = \left(\frac {1}{1 - p + \frac {N}{2} (p + q)}\right) \tilde {A} := \tilde {d} \tilde {A}, \text {w h e r e w e d e f i n e} \tilde {d} \text {f o r c o n v e n i e n c e}.
+$$
+
+Then $\mathcal{L} = I - \tilde{d}\bar{A}$ . We need to find $\lambda$ such that $\operatorname*{det}(\mathcal{L} - \lambda I) = 0$ .
+
+$$
+\mathcal {L} - \lambda I = I - \tilde {d} \tilde {A} - \lambda I = - \tilde {d} \tilde {A} - (\lambda - 1) I = \left( \begin{array}{c c} - \tilde {d} P - (\lambda - 1) I & - \tilde {d} Q \\ - \tilde {d} Q & - \tilde {d} P - (\lambda - 1) I \end{array} \right)
+$$
+
+$(- \tilde{d} P - (\lambda - 1)I)$ and $-\tilde{d} Q$ commute, so by (Silvester, 2000), the determinant of that matrix is
+
+$$
+\det \left(\left(- \tilde {d} P - (\lambda - 1) I\right) ^ {2} - \left(- \tilde {d} Q\right) ^ {2}\right) = \det \left(\tilde {d} (Q - P) - (\lambda - 1) I\right) \det \left(- \tilde {d} (Q + P) - (\lambda - 1) I\right)
+$$
+
+We have that $Q - P = (q - p) \cdot \mathbb{1}_{\frac{N}{2}} + (1 - p)I_{\frac{N}{2}}$ , which has eigenvalues $(1 - p)$ and $((q - p)\frac{N}{2} +(1 - p))$ , so we finally get the required eigenvalue
+
+$$
+\lambda_ {2} = \tilde {d} ((q - p) \frac {N}{2} + (1 - p)) + 1 = \frac {(q - p) \frac {N}{2} + (1 - p)}{(q + p) \frac {N}{2} + (1 - p)} + 1
+$$
+
+For $N > 2$ and $p, q \in (0,1)$ : $\frac{\partial}{\partial p} \left( \frac{(q - p)\frac{N}{2} + (1 - p)}{(q + p)\frac{N}{2} + (1 - p)} + 1 \right) = -\frac{2N(Nq + 2)}{((N - 2)p + Nq + 2)^2} < 0$ , while $\frac{\partial}{\partial q} \left( \frac{\left( (p - q)\frac{N}{2} + (1 - p) \right)}{\left( (p + q)\frac{N}{2} + (1 - p) \right)} + 1 \right) = \frac{2N^2p}{((N - 2)p + Nq + 2)^2} > 0$ . This proves that $\lambda_2$ increases when $p$ decreases, and when $q$ increases. So a higher spectral gap is related to a lower community structure.
+
+# A.1.1 EXTENSIONS OF THE THEOREM
+
+The argument still follows for a higher amount of blocks. Let $\tilde{A} = \begin{pmatrix} P & Q & Q \\ Q & \ddots & Q \\ Q & Q & P \end{pmatrix}$ with $k$ diagonal
+
+$P$ blocks of sizes $\frac{N}{k}$ each. The degree of every node is now $\tilde{D}_{ii} = 1 - p + \frac{N}{k}p + \frac{N(k-1)}{k}q$ . Because of the block structure of our matrix, we still get the second eigenvalue from the difference between on and off diagonal blocks $Q - P$ , which now has eigenvalues $(1 - p)$ and $\left((q - p)\frac{N}{k} + (1 - p)\right)$ . Therefore
+
+$$
+\lambda_ {2} = \tilde {d} ((q - p) \frac {N}{k} + (1 - p)) + 1 = \frac {(q - p) \frac {N}{k} + (1 - p)}{\frac {N}{k} p + \frac {N (k - 1)}{k} q + (1 - p)} + 1 = \frac {- k (p - 1) - N (p - q)}{k (N q - p + 1) + N (p - q)} + 1
+$$
+
+If $k$ is constant with respect to $N$ , this quantity grows like $1 - \frac{p - q}{(k - 1)q + p}$ . If $k = aN$ , then it goes to 1 as $N$ increases.
+
+The argument also still holds for different-sized communities. Let $\tilde{A} = \begin{pmatrix} P1 & Q1 \\ Q2 & P2 \end{pmatrix}$ , where $P1 = p \cdot \mathbb{1}_M + (1 - p)I_M$ and $P2 = p \cdot \mathbb{1}_{N - M} + (1 - p)I_{N - M}$ , where all values are $p$ except the diagonal which consists of ones, and $Q1 = q \cdot \mathbb{1}_M$ , $Q2 = q \cdot \mathbb{1}_{N - M}$ , where all values are $q$ . We assume that $M > N - M$ . Then $\tilde{D}$ is the diagonal matrix with entries $\tilde{D}_{ii} = (1 + (M - 1)p + (N - M)q)$ if $i < M$ , and $\tilde{D}_{ii} = (1 + (N - M - 1)p + Mq)$ otherwise. We define $\tilde{d}_1 = \frac{1}{1 + (M - 1)p + (N - M)q}$ and $\tilde{d}_2 = \frac{1}{1 + (N - M - 1)p + Mq}$ for convenience. Because $\tilde{d}_1 < \tilde{d}_2$ , the second largest eigenvalue will come from the interactions of the first block. So the eigenvalues are $(1 - p)$ and $((q - p)M + (1 - p))$ . Therefore
+
+$$
+\lambda_ {2} = \tilde {d} _ {1} ((q - p) M + (1 - p)) + 1 = \frac {(q - p) M + (1 - p)}{(1 + (M - 1) p + (N - M) q)} + 1
+$$
+
+If $M = aN$ , this quantity grows like $1 - \frac{a(p - q)}{ap + (1 - a)q}$ . If $M$ is constant, then the second block gets bigger than the first and we get the second eigenvalue from it instead.
+
+# A.2 PROOF OF THEOREM 2
+
+Proof. We consider an SBM with 2 classes and $\frac{N}{2}$ nodes in each class, with intra-class edge probability $p$ and inter-class edge probability $q$ . Each node $i \in \{0, \dots, N - 1\}$ has one feature, $x_i$ , and a label $\ell_i$ which corresponds to the block it belongs to: $\ell_i = 1 \Leftrightarrow i \geq \frac{N}{2}$ . The task is, therefore, to predict each node's community association. In this case, the alignment of communities and labels is perfect.
+
+Each feature $x_{i}$ is aligned with its label following a normal distribution: class-0 node features follow $\mathcal{N}(-\mu_0,\sigma_0^2)$ , while class-1 node features follow $\mathcal{N}(\mu_0,\sigma_0^2)$ , as shown in Figure 6(a). A perfect classifier $f$ without any knowledge of the graph structure builds a decision boundary at $x = 0$ . The expected number of misclassified nodes is $\frac{N}{2}$ times the intersection area of both distributions —because they are normalized from a population of $\frac{N}{2}$ each. Such area is $2 \cdot \Phi \left( \frac{-\mu_0}{\sigma_0} \right)$ , where $\Phi$ is the cumulative distribution function of the standard normal distribution (see Figure 6(b)). Therefore, the proportion of misclassifications is $e(f) = \frac{N}{2} \cdot 2 \cdot \Phi \left( \frac{-\mu_0}{\sigma_0} \right) \cdot \frac{1}{N} = \Phi \left( \frac{-\mu_0}{\sigma_0} \right)$ . As $\Phi$ is a cumulative function, it is monotonically increasing with respect to its argument.
+
+The classification error of $f$ can be reduced by performing a step of message passing on the graph, which utilizes the community information to further separate the two classes. We shall consider a single round of sum aggregation as an example.
+
+
+(a) The distribution of features from both clusters before training. The area in purple corresponds to nodes wrongly classified by the decision boundary $x = 0$ .
+Figure 6: Illustration of the setup for the feature distributions for Theorem 2.
+
+
+(b) The cumulative distribution function at $x = -1$ of $\mathcal{N}(\mu_0,\sigma_0^2)$ is equal to the cumulative distribution function at $x = -\frac{\mu_0}{\sigma_0}$ of the standard normal distribution $\mathcal{N}(0,1)$ , which is $\Phi (\frac{-\mu_0}{\sigma_0})$ . The purple area of Figure 6(a) is two times this quantity.
+
+Any node has an expected $\mathcal{E}_p = p\cdot \left(\frac{N}{2} -1\right)$ intra-class neighbors, plus itself, and an expected $\mathcal{E}_q = q\cdot \frac{N}{2}$ inter-class neighbors. In the next proof A.3 we compute the same quantity with neighbour distributions instead, for a more fine-grained approximation. The hidden state of a class-1 node $i$ after a step of sum aggregation is therefore the sum of $\mathcal{E}_p + 1$ random variables $\sim \mathcal{N}(\mu_0,\sigma_0^2)$ and $\mathcal{E}_q$ random variables $\sim \mathcal{N}(-\mu_0,\sigma_0^2)$ . This follows another normal distribution with mean $\mu_{1}\coloneqq \mu_{0}\cdot (1 + \mathcal{E}_{p} - \mathcal{E}_{q})$ and variance $\sigma_1^2\coloneqq \sigma_0^2\cdot (1 + \mathcal{E}_p + \mathcal{E}_q)$ . Conversely, the hidden state of a class-0 node $i$ follows a normal distribution of mean $-\mu_{1}$ and the same variance $\sigma_1^2$ . The decision boundary of a perfect classifier is still at $x = 0$ , but the average proportion of misclassified nodes is now $\Phi (\frac{-\mu_1}{\sigma_1})$ , which depends on $p$ and $q$ . Specifically, it tends to be monotonically decreasing with respect to $p$ ; this means that the higher the community structure, the more accurate the classifier can be, because there is more information to utilize.
+
+Let us take $\mu_0 = 1$ and $\sigma_0 = 1$ to simplify the calculations. We need to check that $\frac{\partial}{\partial p}\left(\frac{-\mu_1}{\sigma_1}\right) < 0$ . For $N > 2$ and $p, q \in (0,1)$ :
+
+$$
+\mu_ {1} = 1 \cdot (1 + p \left(\frac {N}{2} - 1\right) - q \cdot \frac {N}{2}) = 1 - p + \frac {N}{2} \cdot (p - q)
+$$
+
+$$
+\sigma_ {1} ^ {2} = 1 \cdot (1 + p (\frac {N}{2} - 1) + q \cdot \frac {N}{2}) = 1 - p + \frac {N}{2} \cdot (p + q)
+$$
+
+$$
+- \frac {\mu_ {1}}{\sigma_ {1}} = - \frac {1 - p + \frac {N}{2} \cdot (p - q)}{\sqrt {1 - p + \frac {N}{2} \cdot (p + q)}}
+$$
+
+$$
+\begin{array}{l} \frac {\partial}{\partial p} \left(\frac {- \mu_ {1}}{\sigma_ {1}}\right) = - \frac {(N - 2) ((N - 2) p + 3 N q + 2)}{2 \sqrt {2} ((N - 2) p + N q + 2) ^ {\frac {3}{2}}} < 0 \\ \Longleftrightarrow (N - 2) ((N - 2) p + 3 N q + 2) > 0 \\ \end{array}
+$$
+
+On the other side, $\frac{\partial}{\partial q}\left(\frac{-\mu_1}{\sigma_1}\right) > 0$
+
+$$
+\frac {\partial}{\partial q} \left(\frac {- \mu_ {1}}{\sigma_ {1}}\right) = \frac {N (6 + 3 (N - 2) p + N q)}{2 \sqrt {2} (2 + (N - 2) p + N q) ^ {\frac {3}{2}}} > 0 \Longleftrightarrow N (6 + 3 (N - 2) p + N q) > 0
+$$
+
+This proves that, by reducing the community structure (either by decreasing $p$ or increasing $q$ ), then the quantity $\frac{-\mu_1}{\sigma_1}$ increases, so the expected proportion of misclassified nodes $e(f) = \Phi \left( \frac{-\mu_1}{\sigma_1} \right)$ also increases. In consequence, it harms the performance of classifier $f$ .
+
+The graph's information provides a better separation between the two classes if the intra-class edge probability is high enough. From this we can conclude that reducing the intra-class edge probability is not a good strategy to improve the classification performance for any model on the graph.
+
+# A.3 PROOF OF THEOREM 3
+
+Proof. We consider another SBM with 2 classes and $\frac{N}{2}$ nodes in each class, with intra-class edge probability $p$ and inter-class edge probability $q$ . Each node $i \in \{0, \dots, N - 1\}$ has again one feature, $x_i$ , aligned with its class label $\ell_i$ following a normal distribution: $\mathcal{N}(-\mu_0, \sigma_0^2)$ for class 0 and $\mathcal{N}(\mu_0, \sigma_0^2)$ for class 1. However, now $\ell_i$ corresponds to its community with a fixed probability $\psi$ —recovering Theorem 2 when $\psi = 1$ .
+
+What is the probability of any node $i$ such that, after a round of sum aggregation, its modified representation $x_{i}^{\prime}$ is now misclassified $(M)$ ? As the two classes are symmetric:
+
+$$
+\begin{array}{l} P (M) = P \left(M, L _ {0}\right) + P \left(M, L _ {1}\right) = P \left(L _ {0}\right) P \left(M \mid L _ {0}\right) + P \left(L _ {1}\right) P \left(M \mid L _ {1}\right) \\ = \frac {1}{2} P (M | L _ {0}) + \frac {1}{2} P (M | L _ {1}) = P (M | L _ {0}) \\ \end{array}
+$$
+
+Then the question becomes the following: what is the probability of a node with label $L_{0}$ being misclassified? It depends whether it belongs to community $C_{0}$ or $C_{1}$ .
+
+$$
+\begin{array}{l} P (M | L _ {0}) = P (M, C _ {0} | L _ {0}) + P (M, C _ {1} | L _ {0}) = P (C _ {0} | L _ {0}) P (M | L _ {0}, C _ {0}) + P (C _ {1} | L _ {0}) P (M | L _ {0}, C _ {1}) \\ = \psi P (M | L _ {0}, C _ {0}) + (1 - \psi) P (M | L _ {0}, C _ {1}) \\ \end{array}
+$$
+
+$P(M|L_0,C_0) = P(X_{(L_0,C_0)}' > 0)$ . We now need to calculate what is the predicted label of a $(L_0,C_0)$ node after a sum aggregation round. For this we need the distribution of its neighbours. We consider the node to have a self loop, as it uses its own feature too.
+
+- The number of nodes $(L_0, C_0)$ (that are not node $i$ ) follows a binomial distribution $N_0 \sim B\left(\frac{N}{2} - 1, \psi\right)$ . However, for easiness of proof we will approximate it by a normal distribution, which is appropriate for $N$ large enough: $N_0 \sim \mathcal{N}\left(\left(\frac{N}{2} - 1\right)\psi, \left(\frac{N}{2} - 1\right)\psi(1 - \psi)\right)$ . The amount of them connected to node $i$ follows a conditional binomial distribution $H_{00} \sim B(n_0, p) \mid N_0 = n_0$ , which we again approximate by $H_{00} \sim \mathcal{N}(n_0p, n_0p(1 - p)) \mid N_0 = n_0$ .
+- The number of nodes $(L_0, C_1)$ that are connected to node $i$ follows $H_{01} \sim B\left(\frac{N}{2} - 1 - n_0, q\right) \mid N_0 = n_0$ , approximated by $H_{01} \sim \mathcal{N}\left(\left(\frac{N}{2} - 1 - n_0\right)q, \left(\frac{N}{2} - 1 - n_0\right)q(1 - q)\right) \mid N_0 = n_0$ .
+- Since $H_{00}$ and $H_{01}$ are conditionally independent given $N_0 = n_0$ , their sum $H_0 = H_{00} + H_{01}$ also follows a normal distribution with parameters given by the sum of their means and variances. Thus, the number of total $L_0$ nodes connected to node $i$ (except itself) follows $H_0 \sim \mathcal{N}(n_0p + (\frac{N}{2} - 1 - n_0)q, n_0p(1 - p) + (\frac{N}{2} - 1 - n_0)q(1 - q)) \mid N_0 = n_0$ . We are going to get rid of the dependency of $N_0$ by estimating it by a normal distribution with the mean and variance of the marginal distribution of $H_0$ :
+
+$$
+\begin{array}{l} \mathbb {E} [ H _ {0} ] = \mathbb {E} [ \mathbb {E} [ H _ {0} | N _ {0} ] ] = \mathbb {E} [ N _ {0} ] p + \left(\frac {N}{2} - 1 - \mathbb {E} [ N _ {0} ]\right) q \\ = \left(\frac {N}{2} - 1\right) \psi p + \left(\frac {N}{2} - 1 - \left(\frac {N}{2} - 1\right) \psi\right) q \\ = \left(\frac {N}{2} - 1\right) (p \psi + q (1 - \psi)) \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \operatorname {V a r} \left[ H _ {0} \right] = \mathbb {E} \left[ \operatorname {V a r} \left(H _ {0} \mid N _ {0}\right) \right] + \operatorname {V a r} \left(\mathbb {E} \left[ H _ {0} \mid N _ {0} \right]\right) \\ = \mathbb {E} [ N _ {0} ] p (1 - p) + \left(\frac {N}{2} - 1 - \mathbb {E} [ N _ {0} ]\right) q (1 - q) \\ + \operatorname {V a r} \left(N _ {0} (p - q) + \left(\frac {N}{2} - 1\right) q\right) \\ = \left(\frac {N}{2} - 1\right) \psi p (1 - p) + \left(\frac {N}{2} - 1 - \left(\frac {N}{2} - 1\right) \psi\right) q (1 - q) \\ + (p - q) ^ {2} \left(\frac {N}{2} - 1\right) \psi (1 - \psi) \\ = \left(\frac {N}{2} - 1\right) (\psi p (1 - p) + (1 - \psi) q (1 - q) + (p - q) ^ {2} \psi (1 - \psi)) \\ \end{array}
+$$
+
+- The number of nodes $(L_1, C_1)$ follows $N_1 \sim B\left(\frac{N}{2}, \psi\right)$ , approximated by $N_1 \sim \mathcal{N}\left(\frac{N}{2} \psi, \frac{N}{2} \psi (1 - \psi)\right)$ . The amount of them connected to node $i$ follows $H_{11} \sim B(n_1, q) \mid N_1 = n_1$ , approximated by $H_{11} \sim \mathcal{N}(n_1 q, n_1 q (1 - q)) \mid N_1 = n_1$ .
+- The number of nodes $(L_1, C_0)$ that are connected to node $i$ follows $H_{10} \sim B\left(\frac{N}{2} - n_1, p\right) \mid N_1 = n_1$ , approximated by $H_{10} \sim \mathcal{N}\left(\left(\frac{N}{2} - n_1\right)p, \left(\frac{N}{2} - n_1\right)p(1 - p)\right) \mid N_1 = n_1$ .
+
+- Similarly to $L_0$ , the number of total $L_1$ nodes connected to node $i$ follows $H_1 \sim \mathcal{N}(n_1q + (\frac{N}{2} - n_1)p, n_1q(1 - q) + (\frac{N}{2} - n_1)p(1 - p)) \mid N_1 = n_1$ . We will estimate it by a normal distribution with its mean and variance:
+
+$$
+\begin{array}{l} \mathbb {E} \left[ H _ {1} \right] = \mathbb {E} \left[ \mathbb {E} \left[ H _ {1} \mid N _ {1} \right] \right] = \mathbb {E} \left[ N _ {1} \right] q + \left(\frac {N}{2} - \mathbb {E} \left[ N _ {1} \right]\right) p \\ = \frac {N}{2} \psi q + \left(\frac {N}{2} - \frac {N}{2} \psi\right) p \\ = \frac {N}{2} (p (1 - \psi) + q \psi) \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \operatorname {V a r} \left[ H _ {1} \right] = \mathbb {E} \left[ \operatorname {V a r} \left(H _ {1} \mid N _ {1}\right) \right] + \operatorname {V a r} \left(\mathbb {E} \left[ H _ {1} \mid N _ {1}\right)\right) \\ = \mathbb {E} [ N _ {1} ] q (1 - q) + \left(\frac {N}{2} - \mathbb {E} [ N _ {1} ]\right) p (1 - p) + \operatorname {V a r} \left(N _ {1} (q - p) + \frac {N}{2} p\right) \\ = \frac {N}{2} \psi q (1 - q) + \left(\frac {N}{2} - \frac {N}{2} \psi\right) p (1 - p) + (p - q) ^ {2} \frac {N}{2} \psi (1 - \psi) \\ = \frac {N}{2} (\psi q (1 - q) + (1 - \psi) p (1 - p) + (p - q) ^ {2} \psi (1 - \psi)) \\ \end{array}
+$$
+
+The representation of node $i$ after one step of sum aggregation is the summation of $H_0 + 1$ (independent) normal distributions $\sim \mathcal{N}(-\mu_0,\sigma_0^2)$ and $H_{1}$ (independent) normal distributions $\sim \mathcal{N}(\mu_0,\sigma_0^2)$ . Therefore:
+
+$$
+X _ {(L _ {0}, C _ {0})} ^ {\prime} \sim \mathcal {N} (- \mu_ {0} (1 + h _ {0} - h _ {1}), \sigma_ {0} ^ {2} (1 + h _ {0} + h _ {1})) \mid H _ {0} = h _ {0}, H _ {1} = h _ {1}
+$$
+
+Again calculating its mean and variance:
+
+$$
+\begin{array}{l} \mathbb {E} \left[ X _ {\left(L _ {0}, C _ {0}\right)} ^ {\prime} \right] = \mathbb {E} \left[ \mathbb {E} \left[ X _ {\left(L _ {0}, C _ {0}\right)} ^ {\prime} \mid H _ {0}, H _ {1} \right] \right] = - \mu_ {0} \left(1 + \mathbb {E} [ H _ {0} ] - \mathbb {E} [ H _ {1} ]\right) \\ = - \mu_ {0} \left(1 + \left(\frac {N}{2} - 1\right) (p \psi + q (1 - \psi)) - \frac {N}{2} (p (1 - \psi) + q \psi)\right) \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \operatorname {V a r} \left[ X _ {\left(L _ {0}, C _ {0}\right)} ^ {\prime} \right] = \mathbb {E} \left[ \operatorname {V a r} \left(X _ {\left(L _ {0}, C _ {0}\right)} ^ {\prime} \mid H _ {0}, H _ {1}\right) \right] + \operatorname {V a r} \left(\mathbb {E} \left[ X _ {\left(L _ {0}, C _ {0}\right)} ^ {\prime} \mid H _ {0}, H _ {1} \right]\right) \\ = \sigma_ {0} ^ {2} \left(1 + \mathbb {E} \left[ H _ {0} \right] + \mathbb {E} \left[ H _ {1} \right]\right) + \mu_ {0} ^ {2} \left(\operatorname {V a r} \left(H _ {0}\right) + \operatorname {V a r} \left(H _ {1}\right)\right) \\ = \sigma_ {0} ^ {2} \left(1 + \left(\frac {N}{2} - 1\right) (p \psi + q (1 - \psi)) + \frac {N}{2} (p (1 - \psi) + q \psi)\right) \\ + \mu_ {0} ^ {2} \left(\left(\frac {N}{2} - 1\right) (\psi p (1 - p) + (1 - \psi) q (1 - q) + (p - q) ^ {2} \psi (1 - \psi)) \right. \\ \left. + \frac {N}{2} (\psi q (1 - q) + (1 - \psi) p (1 - p) + (p - q) ^ {2} \psi (1 - \psi))\right) \\ \end{array}
+$$
+
+For a more clear analysis of this formula, we take $\mu_0 = 1$ , $\sigma_0 = 1$ and $N$ large enough:
+
+$$
+\mathbb {E} [ X _ {(L _ {0}, C _ {0})} ^ {\prime} ] \approx - \frac {N}{2} (p \psi + q (1 - \psi) - p (1 - \psi) - q \psi) = - \frac {N}{2} (2 \psi - 1) (p - q)
+$$
+
+$$
+\begin{array}{l} \operatorname {V a r} \left[ X _ {\left(L _ {0}, C _ {0}\right)} ^ {\prime} \right] \approx \frac {N}{2} \left(p \psi + q (1 - \psi) + p (1 - \psi) + q \psi + 2 (p - q) ^ {2} \psi (1 - \psi) \right. \\ + \psi p (1 - p) + (1 - \psi) q (1 - q) + \psi q (1 - q) + (1 - \psi) p (1 - p) \\ = \frac {N}{2} (p + q + p (1 - p) + q (1 - q) + 2 (p - q) ^ {2} \psi (1 - \psi)) \\ \end{array}
+$$
+
+Finally, we have $P(X_{(L_0,C_0)}^{\prime} > 0)\approx 1 - \Phi \left(\frac{-\mathbb{E}[X_{(L_0,C_0)}^{\prime}]}{\sqrt{\mathrm{Var}[X_{(L_0,C_0)}^{\prime}]}}\right) =$
+
+$$
+\Phi \left(\frac {\frac {N}{2} (2 \psi - 1) (p - q)}{\sqrt {\frac {N}{2} (p + q + p (1 - p) + q (1 - q) + 2 (p - q) ^ {2} \psi (1 - \psi))}}\right)
+$$
+
+Algorithm 1 Proxy Spectral Gap based Greedy Graph Addition (PROXYADDMIN)
+Require: Graph $\mathcal{G} = (\mathcal{V},\mathcal{E})$ , num. edges to add $N$ , spectral gap $\lambda_1(\mathcal{L}_\mathcal{G})$ , second eigenvector $f$ of $\mathcal{G}$ repeat for $(u,v)\in \bar{\mathcal{E}}$ do Consider $\hat{\mathcal{G}} = \mathcal{G}\cup (u,v)$ Calculate proxy value for the spectral gap of $\hat{\mathcal{G}}$ used in Jamadandi et al. (2024): $\lambda_{1}(\mathcal{L}_{\hat{\mathcal{G}}})\approx \lambda_{1}(\mathcal{L}_{\mathcal{G}}) + ((f_u - f_v)^2 -\lambda_1(\mathcal{L}_{\mathcal{G}})\cdot (f_u^2 +f_v^2))$ end for Find the edge that maximizes the proxy: $(u^{+},v^{+}) = \arg \min \lambda_{1}(\mathcal{L}_{\hat{\mathcal{G}}}).$ Update graph edges: $\mathcal{E} = \mathcal{E}\cup \{(u^{+},v^{+})\}$ Update degrees: $d_{u^{+}} = d_{u^{+}} + 1,d_{v^{+}} = d_{v^{+}} + 1$ Update eigenvectors and eigenvalues of $\mathcal{G}$ accordingly. until $N$ edges added. Output : Denser graph $\hat{\mathcal{G}} = (\mathcal{V},\hat{\mathcal{E}})$
+
+Algorithm 2 Proxy Spectral Gap based Greedy Graph Sparsification (PROXYDELMIN)
+Require: Graph $\mathcal{G} = (\mathcal{V},\mathcal{E})$ , num. edges to prune $N$ , spectral gap $\lambda_1(\mathcal{L}_\mathcal{G})$ , second eigenvector $f$ repeat for $(u,v)\in \mathcal{E}$ do Consider $\hat{\mathcal{G}} = \mathcal{G}\setminus (u,v)$ Calculate proxy value for the spectral gap of $\hat{\mathcal{G}}$ used in Jamadandi et al. (2024): $\lambda_{1}(\mathcal{L}_{\hat{\mathcal{G}}})\approx \lambda_{1}(\mathcal{L}_{\mathcal{G}}) - ((f_u - f_v)^2 -\lambda_1(\mathcal{L}_{\mathcal{G}})\cdot (f_u^2 +f_v^2))$ end for Find the edge that minimizes the proxy: $(u^{-},v^{-}) = \arg \min_{(u,v)\in \mathcal{E}}\lambda_1(\mathcal{L}_{\hat{\mathcal{G}}}).$ Update graph edges: $\mathcal{E} = \mathcal{E}\setminus \{(u^{-},v^{-})\}$ Update degrees: $d_{u^{-}} = d_{u^{-}} - 1,d_{v^{-}} = d_{v^{-}} - 1$ Update eigenvectors and eigenvalues of $\mathcal{G}$ accordingly. until $N$ edges deleted. Output : Sparse graph $\hat{\mathcal{G}} = (\mathcal{V},\hat{\mathcal{E}})$
+
+For $P(M|L_0,C_1) = P(X_{(L_0,C_1)}' > 0)$ , the calculation of the predicted label of a $(L_0,C_1)$ node follows exactly the same steps, but exchanging $p$ and $q$ , as the probabilities for nodes to be connected to node $i$ are now exactly of the opposite community. So we have $P(X_{(L_0,C_1)}' > 0) \approx$
+
+$$
+\Phi \left(\frac {\frac {N}{2} (2 \psi - 1) (q - p)}{\sqrt {\frac {N}{2} (p + q + p (1 - p) + q (1 - q) + 2 (p - q) ^ {2} \psi (1 - \psi))}}\right) = 1 - P (X _ {(L _ {0}, C _ {0})} ^ {\prime} > 0)
+$$
+
+$$
+\begin{array}{l} \text {A n d} P (M) \approx \psi P (X _ {(L _ {0}, C _ {0})} ^ {\prime} > 0) + (1 - \psi) (1 - P (X _ {(L _ {0}, C _ {0})} ^ {\prime} > 0)) = (1 - \psi) + (2 \psi - \\ 1) P (X _ {(L _ {0}, C _ {0})} ^ {\prime} > 0). \end{array}
+$$
+
+# B ALGORITHMS
+
+# B.1 SPECTRAL GAP MINIMIZATION
+
+We use the algorithms presented in Jamadandi et al. (2024) for adding (ProxyAddMax) and deleting edges (ProxyDelMax) based on a proxy of the spectral gap. We modify these algorithms to minimize the gap and call them ProxyAddMin (Alg. 1) and ProxyDelMin (Alg. 2).
+
+# B.2 COMMUNITY AND FEATURE SIMILARITY ALGORITHMS
+
+We present the three algorithm families proposed in this paper for graph rewiring: ComMa (Algs. 3, 4), FeaSt (Alg. 5), and ComFy (Alg. 6). Each algorithm has an addition and a deletion variant.
+
+Furthermore, ComMa has two extra variants for increasing (HigherComMa, Alg. 3) or decreasing (LowerComMa, Alg. 4) the community structure.
+
+Algorithm 3 HigherComMa: Increasing community structure. Variants: ADD, DEL
+Require: Graph $\mathcal{G} = (\mathcal{V},\mathcal{E})$ , num. edges to add (ADD) / delete (DEL) $N$ Calculate communities (here used Louvain): $(C_0,\dots ,C_m) =$ CommunityDetection $(\mathcal{G})$ if ADD then Consider set of edges to add: $E = \{(u,v)\in \bar{\mathcal{E}}\mid \mathrm{Comm}[u] = \mathrm{Comm}[v]\}$ else if DEL then Consider set of edges to delete: $E = \{(u,v)\in \mathcal{E}\mid \mathrm{Comm}[u]\neq \mathrm{Comm}[v]\}$ end if repeat if ADD then Randomly and uniformly pick an edge e from $E$ Update graph edges: $\mathcal{E} = \mathcal{E}\cup \{e\}$ (ADD) or $\mathcal{E} = \mathcal{E}\setminus \{e\}$ (DEL) end if until $N$ edges modified. Output : Modified graph $\hat{\mathcal{G}} = (\mathcal{V},\hat{\mathcal{E}})$
+
+Algorithm 4 LowerComMa: Decreasing community structure. Variants: ADD, DEL
+Require: Graph $\mathcal{G} = (\mathcal{V},\mathcal{E})$ , num. edges to add (ADD) / delete (DEL) $N$ Calculate communities (here used Louvain): $(C_0,\dots ,C_m) =$ CommunityDetection $(\mathcal{G})$ if ADD then Consider set of edges to add: $E = \{(u,v)\in \bar{\mathcal{E}}\mid \mathrm{Comm}[u]\neq \mathrm{Comm}[v]\}$ else if DEL then Consider set of edges to delete: $E = \{(u,v)\in \mathcal{E}\mid \mathrm{Comm}[u] = \mathrm{Comm}[v]\}$ end if repeat if ADD then Randomly and uniformly pick an edge $e$ from $E$ Update graph edges: $\mathcal{E} = \mathcal{E}\cup \{e\}$ (ADD) or $\mathcal{E} = \mathcal{E}\setminus \{e\}$ (DEL) end if until $N$ edges modified. Output : Modified graph $\hat{\mathcal{G}} = (\mathcal{V},\hat{\mathcal{E}})$
+
+Algorithm 5 FeaSt: Maximizing feature similarity. Variants: ADD, DEL
+Require: Graph $\mathcal{G} = (\mathcal{V},\mathcal{E})$ , node features $X$ , num. edges to add (ADD) / delete (DEL) $N$ Calculate the pairwise cosine similarity of $X$ .. $\operatorname {sim}(u,v)$
+Calculate the mean of the current graph's similarity values: $\overline{\mathrm{sim}} = \frac{1}{|\mathcal{E}|}\sum_{(u,v)\in \mathcal{E}}\mathrm{sim}(u,v)$
+if ADD then for $(u,v)\in \bar{\mathcal{E}}$ do Calculate the graph's mean similarity in the presence of $(u,v)$ .. $\mathrm{rank}(u,v) = \frac{\overline{\mathrm{sim}}|\mathcal{E}| + \mathrm{sim}(u,v)}{|\mathcal{E}| + 1}$ end for else if DEL then for $(u,v)\in \mathcal{E}$ do Calculate the graph's mean similarity in the absence of $(u,v)$ .. $\mathrm{rank}(u,v) = \frac{\overline{\mathrm{sim}}|\mathcal{E}| - \mathrm{sim}(u,v)}{|\mathcal{E}| - 1}$ end for end if Find top $N$ edges in the ranking: $E_N = \mathrm{top}_N(\mathrm{rank}(u,v))$ Update graph edges: $\mathcal{E} = \mathcal{E}\cup E_N$ (ADD) or $\mathcal{E} = \mathcal{E}\setminus E_N$ (DEL) Output : Modified graph $\hat{\mathcal{G}} = (\mathcal{V},\hat{\mathcal{E}})$
+
+Algorithm 6 ComFy: Maximizing feature similarity across communities. Variants: ADD, DEL
+Require: Graph $\mathcal{G} = (\mathcal{V},\mathcal{E})$ , node features $X$ (approx.) num. edges to add (ADD) / delete (DEL) N. Calculate the pairwise cosine similarity of $X$ : sim(u,v).
+Calculate communities (here used Louvain): $(C_0,\dots ,C_m) =$ CommunityDetection(G)
+Consider pairs of communities: $\mathcal{C} = \{(C_i,C_j)\in C\times C\mid i\leq j\}$
+for $(C_i,C_j)\in \mathcal{C}$ do Existing edges between $C_i$ and $C_j$ .. $E_{ij} = \{(u,v)\in \mathcal{E}\mid \mathrm{Comm}[u] = C_i\wedge \mathrm{Comm}[v] = C_j\}$ Calculate the mean of the existing edges' similarities: $\overline{\operatorname{sim}_{ij}} = \frac{1}{|E_{ij}|}\sum_{(u,v)\in E_{ij}}\operatorname {sim}(u,v)$ if ADD then Non-existing edges between $C_i,C_j$ .. $\overline{E_{ij}} = \{(u,v)\in \bar{\mathcal{E}}\mid \mathrm{Comm}[u] = C_i\wedge \mathrm{Comm}[v] = C_j\}$ for $(u,v)\in \overline{E_{ij}}$ do Calculate the mean similarity in the presence of $(u,v)$ .. rank $_{ij}(u,v) = \frac{\overline{\operatorname{sim}_{ij}}|E_{ij}| + \operatorname{sim}(u,v)}{|E_{ij}| + 1}$ end for else if DEL then for $(u,v)\in E_{ij}$ do Calculate the mean similarity in the absence of $(u,v)$ .. rank $_{ij}(u,v) = \frac{\overline{\operatorname{sim}_{ij}}|E_{ij}| - \operatorname{sim}(u,v)}{|E_{ij}| - 1}$ end for end if Calculate edge budget: $B(i,j) =$ round $(N\cdot \frac{|C_i|\cdot|C_j|}{\sum(C_x,C_y)\in\mathcal{C}|C_x|\cdot|C_y|})$ Find top $B(i,j)$ edges in the ranking: $E_{ij}^{B(i,j)} =$ top $B(i,j)$ (rankij(u,v)) Update graph edges: $\mathcal{E} = \mathcal{E}\cup E_{ij}^{B(i,j)}$ (ADD) or $\mathcal{E} = \mathcal{E}\setminus E_{ij}^{B(i,j)}$ (DEL)
+end for
+Output : Modified graph G = (V,hat). Number of modifications is approximately N.
+
+# C DATASETS AND HYPERPARAMETERS
+
+# C.1 DATASET STATISTICS
+
+In Table 5 we provide a summary of the datasets used for the experiments (§4). We also provide various metrics such as Edge Label Informativeness (ELI) and Adjusted Homophily score proposed in (Platonov et al., 2023b). The Normalized Mutual Information (NMI), Adjusted Mutual Information (AMI) and Modularity score after performing community detection using the Louvain method to understand how informative the graph structure is. The adjustment in AMI is only necessary when comparing between sets of different size, but within a dataset the number of classes does not change. Therefore we can compare the effect of our algorithm by means of the NMI's value. However, the AMI is useful to compare the alignment across different datasets.
+
+# C.2 DETAILS OF THE EXPERIMENTS
+
+We use PyTorch Geometric (Fey & Lenssen, 2019) and Deep Graph Library (DGL) (Wang et al., 2019) for all our experiments. For datasets Cora, Citeseer, Pubmed, Cornell, Texas, Wisconsin, Chameleon, Squirrel and Actor we use a 60/20/20 split for train/test/validation respectively. The hyperparameters are tuned on the validation set. Our backbone model is a 2-layered GCN (Kipf & Welling, 2017). We report the final test accuracy averaged over 100 splits of the data. For datasets Roman-empire, Amazon-ratings and Minesweeper we use the code base of the authors Platonov et al. (2023c), where the datasets are split 50/25/25 for train/test/validation respectively. Our backbone model here is a 5-layered GCN and the final test accuracy is reported averaged over 10 splits. We report the hyperparameters such as the Normalized Mutual Information (NMI) between the cluster labels and the ground truth labels after community detection (Blondel et al., 2008) before and after rewiring the graph to understand how it affects the community structure-node label alignment. We also report the number of edges added and deleted to effect the required change in test accuracy. The empirical runtimes, in seconds, are presented in seconds in Tables 6,7,9,11,10,12. Our code is available here: https://github.com/RelationalML/ComFy.
+
+Table 5: Dataset statistics.
+
+
Dataset
#Nodes
#Edges
NMI
AMI
ELI
Homophily
Modularity
Cora
2708
10138
0.4556
0.4489
0.5802
0.7637
0.8023
CiteSeer
3327
7358
0.3270
0.3151
0.4437
0.6620
0.8519
Pubmed
19717
88648
0.1973
0.1966
0.4092
0.6860
0.7671
Cornell
183
277
0.1250
0.0202
0.1556
-0.2201
0.6227
Texas
183
279
0.0673
0.0016
0.19234
-0.2936
0.5548
Wisconsin
251
450
0.0867
0.0351
0.1310
-0.1732
0.6293
Chameleon
890
8854
0.1035
0.0823
0.0138
0.0295
0.6680
Squirrel
2223
57850
0.0176
0.0153
0.0013
0.0086
0.4451
Actor
7600
26659
0.0044
-0.0002
0.00017
0.00277
0.5113
CS
18333
163788
0.5528
0.5501
0.6467
0.7845
0.7321
Photo
7650
238162
0.6845
0.6835
0.6662
0.7850
0.7363
Physics
34493
495924
0.4376
0.4372
0.7222
0.8724
0.6627
Roman-Empire
22662
32927
0.0214
0.0030
0.1101
-0.0468
0.9887
Amazon-Ratings
24492
93050
0.0426
0.0381
0.0398
0.1402
0.9645
Minesweeper
10000
39402
0.0011
0.0004
0.0001
0.0094
0.8860
+
+Table 6: Empirical runtimes for FeaSt based rewiring.
+
+
Dataset
AvgTestAcc
NMIBefore
NMAfter
EdgesAdded
EdgesDeleted
Rewire Time (s)
Cora
87.730±0.390
0.456
0.432
1000
0
9.333
Cora
90.740±0.390
0.456
0.432
0
500
9.637
CiteSeer
78.540±0.340
0.327
0.338
1000
0
8.549
CiteSeer
81.600±0.390
0.327
0.330
0
10
8.422
Pubmed
86.430±0.090
0.197
0.206
1000
0
89.224
Pubmed
86.760±0.100
0.197
0.196
0
50
89.745
Cornell
59.460±1.490
0.125
0.099
20
0
7.402
Cornell
51.350±1.400
0.125
0.114
0
5
7.525
Texas
54.050±1.510
0.067
0.063
5
0
7.630
Texas
64.860±1.430
0.067
0.190
0
100
7.568
Wisconsin
60.000±1.090
0.087
0.077
10
0
7.533
Wisconsin
60.000±1.270
0.087
0.134
0
50
7.538
Chameleon
43.260±0.620
0.103
0.103
20
0
9.513
Chameleon
42.700±0.690
0.103
0.103
0
20
9.093
Squirrel
35.510±0.440
0.018
0.018
50
0
14.566
Squirrel
36.400±0.360
0.018
0.018
0
100
13.219
Actor
31.250±0.220
0.004
0.005
100
0
79.587
Actor
31.970±0.210
0.004
0.006
0
100
78.594
+
+Table 7: Empirical runtimes for FeaSt+Add+Delete.
+
+
Dataset
AvgTestAcc
NMIBefore
NMIAfter
EdgesAdded
EdgesDeleted
Rewire Time (s)
Cora
85.710±0.360
0.456
0.464
10
10
11.450
Cora
85.710±0.360
0.456
0.464
10
10
11.450
CiteSeer
80.190±0.340
0.327
0.322
50
50
10.777
CiteSeer
80.190±0.340
0.327
0.322
50
50
10.777
Pubmed
87.010±0.120
0.197
0.198
1000
1000
97.618
Pubmed
87.010±0.120
0.197
0.198
1000
1000
97.618
Cornell
54.050±1.620
0.125
0.115
5
5
8.774
Cornell
54.050±1.620
0.125
0.115
5
5
8.774
Texas
56.760±1.650
0.067
0.165
100
100
8.747
Texas
56.760±1.650
0.067
0.165
100
100
8.747
Wisconsin
58.000±1.260
0.087
0.120
50
50
8.079
Wisconsin
58.000±1.260
0.087
0.120
50
50
8.079
Chameleon
44.940±0.700
0.103
0.158
100
100
8.780
Chameleon
44.940±0.700
0.103
0.158
100
100
8.780
Squirrel
35.730±0.480
0.018
0.019
500
500
13.645
Squirrel
35.730±0.480
0.018
0.019
500
500
13.645
Actor
32.630±0.210
0.004
0.008
50
50
82.668
Actor
32.630±0.210
0.004
0.008
50
50
82.668
+
+Table 8: Empirical runtimes for ComFy
+
+
Dataset
AvgTestAcc
NMIBefore
NMIAfter
EdgesAdded
EdgesDeleted
Rewire Time (s)
Cora
87.73±0.26
0.4556
0.4580
100
0
14.99
Cora
88.13±0.27
0.4556
0.44876
0
2000
18.39
CiteSeer
77.36±0.38
0.32701
0.32492
100
0
11.75
CiteSeer
78.07±0.35
0.32701
0.35509
0
1000
11.86
Pubmed
86.74±0.10
0.19726
0.19572
50
0
415.23
Pubmed
86.23±0.11
0.19726
0.20603
0
2000
415.59
Cornell
67.57±1.68
0.1249
0.0955
10
0
9.91
Cornell
70.27±1.50
0.1249
0.1269
0
10
9.50
Texas
62.16±1.52
0.0672
0.0678
10
0
9.74
Texas
64.86±1.51
0.0672
0.0915
0
0
9.74
Wisconsin
62.00±1.12
0.0866
0.1526
50
0
9.79
Wisconsin
66.00±1.34
0.0866
0.1180
0
50
10.36
Chameleon
41.57±0.83
0.10349
0.14758
100
0
13.98
Chameleon
45.51±0.76
0.10349
0.10340
0
1500
10.94
Squirrel
36.85±0.38
0.01762
0.01762
500
0
17.51
Squirrel
39.10±0.43
0.01762
0.01762
0
1500
20.98
Actor
32.30±0.25
0.00436
0.00491
500
0
143.81
Actor
31.12±0.19
0.00436
0.01364
0
2000
141.79
+
+Table 9: Empirical runtimes for HigherComMa based rewiring.
+
+
Dataset
AvgTestAcc
NMI
EdgesAdded
EdgesDeleted
FinalGap
Rewire Time (s)
Cora
83.64±0.38
0.4531
100
0
0.004825
0.06
Cora
83.82±0.31
0.4565
0
127
0.003925
0.05
CiteSeer
77.31±0.40
0.3252
10
0
0.001555
0.03
CiteSeer
77.31±0.41
0.3273
0
10
0.001551
0.03
Pubmed
85.83±0.11
0.1933
50
0
0.014013
7.47
Pubmed
85.90±0.11
0.1975
0
50
0.013990
8.67
Cornell
49.03±1.26
0.1283
5
0
0.079053
0.01
Cornell
49.93±1.34
0.1038
0
10
0.000001
0..01
Texas
52.66±1.47
0.0633
100
0
0.072213
0.01
Texas
48.57±1.53
0.0695
0
10
0.062387
0.01
Wisconsin
50.55±1.24
0.0886
5
0
0.074916
0.01
Wisconsin
50.32±1.38
0.0866
0
10
0.068169
0.01
Chameleon
41.23±0.72
0.1536
100
0
0.006417
0.04
Chameleon
40.44±0.69
0.0875
0
20
0.005920
0.04
Squirrel
34.51±0.40
0.0176
20
0
0.051575
0.63
Squirrel
34.66±0.39
0.0150
0
1000
0.050114
0.68
Actor
30.92±0.21
0.0080
20
0
0.032282
6.57
Actor
30.71±0.24
0.0222
0
50
0.032679
6.42
+
+Table 10: Empirical runtimes for HigherComMa+add+delete based rewiring.
+
+
Dataset
AvgTestAcc
NMIAfter
EdgesAdded
EdgesDeleted
FinalGap
Rewire Time (s)
Cora
83.820±0.340
0.463
50
100
0.004
0.06
Citeseer
77.320±0.380
0.332
10
50
0.000
0.03
Pubmed
85.830±0.110
0.195
100
50
0.014
7.14
Cornell
48.920±1.480
0.113
10
17
0.000
0.01
Texas
52.440±1.640
0.067
100
10
0.068
0.01
Wisconsin
51.350±1.400
0.091
20
10
0.069
0.01
Chameleon
41.220±0.750
0.094
500
100
0.004
0.04
Squirrel
34.700±0.400
0.016
20
500
0.051
0.82
Actor
30.810±0.190
0.025
100
50
0.032
6.88
+
+Table 11: Empirical runtimes for LowerComMa based rewiring.
+
+
Dataset
AvgTestAcc
NMIAfter
EdgesAdded
EdgesDeleted
FinalGap
Rewire Time (s)
Cora
83.41±0.37
0.4604
10
0
0.008448
0.693458
Cora
83.61±0.35
0.4583
0
2
0.004784
0.663406
Citeseer
77.15±0.36
0.3195
10
0
0.001556
0.686848
Citeseer
77.39±0.37
0.3240
0
4
0.001555
0.697997
Pubmed
85.85±0.090
0.1899
50
0
0.014267
13.045066
Pubmed
85.90±0.10
0.1844
0
7
0.014069
11.933355
Cornell
51.08±1.67
0.0695
100
0
0.131261
7.787908
Cornell
49.69±1.43
0.1249
0
1
0.080970
7.696815
Texas
50.29±1.71
0.0516
100
0
0.201174
8.309750
Wisconsin
50.95±1.29
0.1094
20
0
0.089029
8.400457
Wisconsin
50.61±1.35
0.0886
0
4
0.076910
8.699127
Chameleon
40.61±0.64
0.0791
50
0
0.007699
8.595781
Chameleon
40.43±0.71
0.1034
0
17
0.006315
8.385635
Squirrel
34.48±0.39
0.0207
100
0
0.056416
10.908470
Squirrel
34.76±0.40
0.0166
0
12
0.051370
9.688496
Actor
30.79±0.23
0.0055
500
0
0.070495
17.127213
Actor
30.79±0.22
0.0077
0
2
0.032679
15.543629
+
+Table 12: Empirical runtimes for LowerComMa+add+delete based rewiring.
+
+
Dataset
AvgTestAcc
NMAfter
EdgesAdded
EdgesDeleted
FinalGap
Rewire Time (s)
Cora
83.73±0.32
0.4466
10
2
0.007464
0.660313
Citeseer
77.42±0.38
0.3197
10
4
0.001556
0.427487
Pubmed
85.87±0.10
0.2036
50
7
0.014268
13.815228
Cornell
52.36±1.52
0.0690
100
1
0.132826
8.077217
Texas
51.6±1.53
0.0516
100
0
0.201174
7.848707
Wisconsin
51.45±1.33
0.1096
5
4
0.078300
7.622503
Chameleon
40.9±0.66
0.0995
20
17
0.007556
7.997294
Squirrel
34.75±0.41
0.0187
100
12
0.056383
10.509906
Actor
30.85±0.23
0.0034
20
2
0.036560
15.892848
+
+Table 13: Different community detection metrics for various datasets after applying FeaSt.
+
+
FeaSt-Add
Dataset
NMIBefore
NMIAfter
AMIBefore
AMIAfter
ModularityBefore
ModularityAfter
ELIBefore
ELIAfter
HomBefore
HomAfter
Test Acc
Cora
0.4556
0.4726
0.4489
0.4656
0.8023
0.8021
0.5802
0.5822
0.7637
0.7659
89.74±0.26
Citeseeer
0.3270
0.3384
0.3151
0.3249
0.8519
0.8401
0.4437
0.4633
0.6620
0.67998
79.48±0.40
Chameleon
0.1035
0.1035
0.0823
0.0823
0.6680
0.6680
0.0138
0.0138
0.0295
0.0295
44.94±0.78
Squirrel
0.0176
0.0167
0.0153
0.0143
0.4451
0.4451
0.001325
0.00133
0.00861
0.00869
35.73±0.43
FeaSt-Del
Cora
0.4556
0.4497
0.4489
0.4379
0.8023
0.8039
0.5802
0.5816
0.7637
0.7645
87.32±0.30
Citeseeer
0.3270
0.3400
0.3151
0.3212
0.8519
0.8558
0.4437
0.4523
0.6620
0.6694
78.38±1.46
Chameleon
0.1035
0.1047
0.0823
0.0809
0.6680
0.6655
0.0138
0.0137
0.0295
0.0297
47.19±0.62
Squirrel
0.0176
0.0184
0.0153
0.0151
0.4451
0.4453
0.001325
0.00133
0.00861
0.00865
37.75±0.39
+
+Table 14: Different community detection metrics for various datasets after applying ComFy.
+
+
ComFy-Add
Dataset
NMIBefore
NMIAfter
AMIBefore
AMIAfter
ModularityBefore
ModularityAfter
ELIBefore
ELIAfter
HomBefore
HomAfter
Test Acc
Cora
0.4556
0.4556
0.4489
0.4489
0.8023
0.8032
0.5802
0.5776
0.7637
0.7620
89.13±0.26
Citesee
0.3270
0.3297
0.3151
0.3175
0.8519
0.8501
0.4437
0.44033
0.6620
0.6602
80.42±0.39
Chameleon
0.1035
0.0842
0.0823
0.0706
0.6680
0.6687
0.0138
0.0140
0.0295
0.0307
47.19±0.62
Squirrel
0.0176
0.0176
0.0153
0.0153
0.4451
0.4451
0.0013
0.0013
0.0086
0.0086
37.75±0.39
ComFy-Del
Cora
0.4556
0.4499
0.4489
0.4382
0.8023
0.8021
0.5802
0.5806
0.7637
0.7634
88.33±0.31
Citesee
0.3270
0.3263
0.3151
0.3133
0.8519
0.8678
0.4437
0.4461
0.6620
0.6650
81.37±0.36
Chameleon
0.1035
0.1044
0.0823
0.0705
0.6680
0.6649
0.0138
0.0139
0.0295
0.0298
45.51±0.64
Squirrel
0.0176
0.0176
0.0153
0.0153
0.4451
0.4451
0.0013
0.0013
0.0086
0.0086
37.75±0.42
+
+# C.3 SENSITIVITY TO HYPERPARAMETERS
+
+The hyperparameters used in the experiments are given in Table 15. For the large heterophilic datasets Roman-empire, Amazon-ratings and Minesweeper we use the model hyperparameters recommended by the authors (Platonov et al., 2023b). However, we found setting the learning rate to $3e^{-3}$ instead of $3e^{-5}$ yields better results. The GCN hyperparameters on the other datasets are tuned based on the validation set through a grid search. As is common, we found that the performance of not only our
+
+method but GNNs in general is sensitive to the learning rate but otherwise robust across datasets and architectures. Our rewiring techniques do not require any change of the basic GNN hyperparameters. In fact, we use the same ones as the baselines. Our rewiring methods come with an additional hyperparameter, i.e., the rewiring budget (and thus how many edges are added or deleted). This is true for all the rewiring methods that have been proposed (Topping et al., 2022; Karhadkar et al., 2023; Giraldo et al., 2023; Nguyen et al., 2023; Black et al., 2023; Jamadandi et al., 2024) in the literature. In Table 16 and Table 17 we present results for 4 datasets Cora, Citeseer, Chameleon and Squirrel and how their performance varies with respect to edge modification budgets. While the performance is clearly sensitive to this choice, the rewiring budget seems to be task specific but not very architecture specific, as we could use the same budgets for different GNN variants, such as GIN and GraphSAGE.
+
+Table 15: GCN hyperparameters used in the experiments.
+
+
Dataset
LR
Dropout
HiddenDimension
Cora
0.01
0.41
128
Citeseer
0.01
0.31
32
Pubmed
0.01
0.41
32
Cornell
0.001
0.51
128
Texas
0.001
0.51
128
Wisconsin
0.001
0.51
128
Chameleon
0.001
0.21
128
Squirrel
0.001
0.51
128
Actor
0.001
0.51
128
CS
0.001
0.51
512
Photo
0.01
0.51
512
Physics
0.01
0.51
512
Roman-empire
0.003
0.31
512
Amazon-ratings
0.003
0.31
512
Minesweeper
0.003
0.31
512
+
+Table 16: GCN test accuracy variability for different edge budgets for FeaSt.
+
+
GCN+FeaSt
Dataset
EdgesAdded
Accuracy
EdgesDeleted
Accuracy
Cora
10
85.11±0.37
10
82.49±0.39
50
79.88±0.41
50
83.70±0.34
100
86.72±0.36
100
86.92±0.34
500
83.90±0.35
500
90.74±0.39
1000
87.73±0.39
1000
85.51±0.31
CiteSeer
10
77.36±0.35
10
81.60±0.39
50
77.59±0.37
50
74.06±0.36
100
75.24±0.41
100
78.30±0.33
500
75.94±0.35
500
75.71±0.39
1000
78.54±0.34
1000
75.00±0.33
Chameleon
20
43.26±0.62
20
42.70±0.69
50
38.20±0.71
50
41.01±0.68
100
41.01±0.64
100
35.96±0.68
500
37.08±0.64
500
40.45±0.63
1000
40.45±0.62
1000
39.33±0.73
Squirrel
20
33.26±0.38
20
34.38±0.40
50
35.51±0.44
50
35.28±0.38
100
33.48±0.44
100
36.40±0.36
500
33.26±0.37
500
33.71±0.39
1000
33.26±0.38
1000
32.36±0.38
+
+# D ADDITIONAL EXPERIMENTS
+
+# D.1 COMPARISON WITH VARIOUS BASELINES
+
+We compare our proposed algorithms with other diverse methods (Bi et al., 2023; Arnaiz-Rodriguez et al., 2022; Dong & Kluger, 2023) in Table 18. In (Bi et al., 2023) the authors suggest to use multi-order moments to model a neighbor's feature distribution and propose MM-GNN to use a multi-order moment embedding and an attention mechanism to weight importance of certain nodes going beyond single statistic aggregation mechanisms such as mean, max and sum. In (Arnaiz-Rodriguez et al.,
+
+Table 17: GCN test accuracy variability for different edge budgets for ComFy
+
+
GCN+ComFy
Dataset
EdgesAdded
Accuracy
EdgesDeleted
Accuracy
Cora
50
86.72±0.27
500
86.52±0.27
100
87.73±0.26
1000
84.31±0.27
500
86.12±0.32
1500
85.71±0.31
1000
85.11±0.27
2000
88.13±0.27
CiteSeer
50
77.36±0.38
500
75.24±0.38
100
77.36±0.38
1000
78.07±0.35
500
75.47±0.33
1500
76.42±0.36
1000
75.71±0.39
2000
74.76±0.39
Chameleon
5
35.39±0.72
100
41.57±0.73
10
38.20±0.73
500
37.08±0.69
50
41.01±0.64
1000
44.38±0.69
100
41.57±0.83
1500
45.51±0.76
500
39.33±0.60
2000
42.13±0.74
Squirrel
5
36.85±0.38
100
35.51±0.41
10
30.34±0.44
500
33.71±0.40
50
34.16±0.41
1000
37.08±0.41
100
32.81±0.37
1500
39.10±0.43
500
34.61±0.42
2000
36.85±0.39
+
+2022), the authors propose DiffWire, an inductive way to rewire the graph based on the Lovász bound by formulating two new layers that are interspersed between regular GNN layers. In (Dong & Kluger, 2023) the authors propose a way to de-noise the graph by proposing graph propensity score (GPS) and GPS-PE (with positional encoding) methods to rewire the graph. Although the authors call their method "graph rewiring", the proposal involves separating edges in the graph as training edges and message-passing edges and use a self-supervised link prediction task to impute edges between nodes. Note that these methods go beyond 'rewiring-as-a-pre-processing' paradigm, which is the case for all our proposed algorithms. We report the results reported in their respective papers, and hence NA for some datasets. Not all code is made available for reproducing the results. We also report our proposed algorithms with different variant of GNNs such as GIN (Xu et al., 2019) and GraphSAGE (Hamilton et al., 2017b) to emphasize on the fact that our rewiring algorithms can be combined with any GNN model. The top performance is highlighted in bold. From the table we can clearly see that our proposed algorithms outperform the chosen diverse baselines on 6 out of 9 datasets.
+
+Table 18: Additional baselines with diverse methods.
+
+
Method
Cora
Citeseer
Pubmed
Cornell
Texas
Wisconsin
Chameleon
Squirrel
Actor
MM-GNN
84.21±0.56
73.03±0.58
80.26±0.69
NA
NA
NA
63.32±1.31
51.38±1.73
NA
GCN+DiffWire
83.66±0.60
72.26±0.50
86.07±0.10
69.04±2.2
NA
79.05±2.1
NA
NA
31.98±0.30
GPS
79.5±0.80
71.5±0.60
77.7±0.30
74.6±3.00
80.0±1.80
77.3±4.40
41.5±3.60
43.0±0.90
38.3±0.70
GPS-PE
80.5±0.80
71.5±0.40
77.7±0.50
68.6±4.70
75.1±4.30
78.8±1.50
37.6±1.60
34.9±1.30
36.3±0.80
GCN+FeaStAdd
87.73±0.39
78.54±0.34
86.43±0.09
59.46±1.49
54.05±1.51
60.00±1.09
43.26±0.62
39.33±0.73
31.25±0.22
GCN+FeaStDel
90.74±0.39
81.60±0.39
86.76±0.10
51.35±1.63
64.86±1.43
60.00±1.27
42.70±0.69
36.40±0.36
31.97±0.21
GCN+ComFyAdd
87.73±0.26
77.36±0.38
86.74±0.10
67.57±1.68
62.16±1.52
62.00±1.12
41.57±0.83
36.85±0.38
32.30±0.25
GCN+ComFyDel
88.13±0.27
78.07±0.35
86.23±0.11
70.27±1.50
64.86±1.51
66.00±1.34
45.51±0.76
39.10±0.43
31.12±0.19
GIN+FeaStAdd
87.12±0.34
75.71±0.41
88.36±0.11
51.35±1.62
70.27±1.48
62.00±1.40
42.70±0.64
38.20±0.48
28.62±0.23
GIN+FeaStDel
85.31±0.34
73.35±0.48
89.83±0.12
59.46±1.73
72.97±1.34
70.00±1.31
45.51±0.60
40.67±0.43
29.21±0.23
GIN+ComFyAdd
84.10±0.28
75.00±0.46
89.75±0.14
62.16±1.99
67.57±1.48
68.00±1.32
46.07±0.72
38.43±0.47
29.74±0.21
GIN+ComFyDel
85.71±0.37
74.29±0.39
88.46±0.11
56.76±1.60
67.57±1.50
66.00±1.42
51.12±0.73
40.67±0.54
30.33±0.22
GraphSAGE+FeaStAdd
89.74±0.26
79.48±0.40
86.84±0.11
81.08±1.46
75.68±1.52
80.00±1.04
44.94±0.78
35.73±0.43
37.37±0.22
GraphSAGE+FeaStDel
87.32±0.30
80.42±0.39
87.62±0.10
78.38±1.46
81.08±1.43
86.00±1.07
47.19±0.62
37.75±0.39
37.76±0.21
GraphSAGE+ComFyAdd
89.13±0.26
81.37±0.36
88.33±0.09
89.19±1.37
81.08±1.52
86.00±1.06
43.82±0.72
37.30±0.41
35.86±0.22
GraphSAGE+ComFyDel
88.33±0.31
81.60±0.37
88.03±0.11
78.38±1.41
83.78±1.47
78.00±1.13
45.51±0.64
37.75±0.42
36.45±0.22
+
+# D.2 SCALABILITY
+
+We present additional results for large homophilic graphs to understand how our proposed algorithms scale with increasing graph size. The statistics for the datasets used is presented in Table 5. We present results on CS, Physics, and Photo (Shchur et al., 2019) available as PyTorch geometric datasets. We train a two-layered GCN with the following hyperparameters, the learning rate $= \{0.001, 0.01\}$ and hidden dimension size $= 512$ . The results are presented in Table 19. Further, we pick the largest dataset among these which is Physics with 34, 493 nodes and 495, 924 edges and run a version of our algorithms which samples the nodes randomly and calculates the feature similarity and rewrites only on the subset of those nodes. We use sampling ratio 0.2 to represent $20\%$ of the nodes. The results are presented in Table 20. Clearly from the table, we can see that our proposed algorithms are robust,
+
+in that, we can bring down the runtime significantly and still obtain comparable accuracy to the full graph.
+
+Table 19: Node classification results on large homophilic graphs.
+
+
Dataset
Method
Edges Modified
Rewire Time (s)
Accuracy
CS
GCNBaseline
NA
NA
91.76±0.08
FeaStAdd
500
52.20
92.10±0.08
FeaStDel
10000
53.52
92.71±0.06
ComFyAdd
100
318.58
91.98±0.06
ComFyDel
500
331.71
92.30±0.08
Physics
GCNBaseline
NA
NA
94.55±0.04
FeaStAdd
100
190.24
94.85±0.05
FeaStDel
500
192.07
95.01±0.05
ComFyAdd
100
1282.06
95.04±0.05
ComFyDel
500
1300.39
94.69±0.05
Photo
GCNBaseline
NA
NA
78.70±0.41
FeaStAdd
100
42.63
79.10±0.47
FeaStDel
10000
40.34
81.10±0.51
ComFyAdd
100
82.49
77.30±0.60
ComFyDel
1000
80.94
81.60±0.49
+
+Table 20: Node classification results on Physics dataset with node sampling.
+
+
Sampling ratio
Method
Rewire Time (s)
Accuracy
100
FeaStAdd
190.24
94.85±0.05
FeaStDel
192.07
95.01±0.05
ComFyAdd
1282.06
95.04±0.05
ComFyDel
1300.39
94.69±0.05
20
FeaStAdd
32.60
94.60±0.05
FeaStDel
33.03
94.86±0.04
ComFyAdd
718.40
94.62±0.05
ComFyDel
713.65
94.53±0.05
+
+# D.3 RESULTS WITH DIFFERENT GNN VARIANTS
+
+In Table 21 we present results for GIN (Xu et al., 2019) and GraphSAGE (Hamilton et al., 2017a) variants, demonstrating that our rewiring schemes are architecture agnostic and can be used as a pre-processing step to make the input graphs amenable to message-passing. We also add MLP as a baseline.
+
+Table 21: Accuracy on node classification with GIN and GraphSAGE.
+
+
Method
Cora
Citeseer
Pubmed
Cornell
Texas
Wisconsin
Chameleon
Squirrel
Actor
MLP
73.02±0.39
70.84±0.51
87.68±0.10
73.54±1.45
76.22±1.45
81.68±1.06
35.70±0.69
31.84±0.40
36.05±0.23
GIN
85.51±0.29
74.53±0.41
88.33±0.12
37.84±1.62
54.05±1.61
56.00±1.21
41.57±0.64
37.08±0.39
24.21±0.22
GIN+FeaStAdd
87.12±0.34
75.71±0.41
88.36±0.11
51.35±1.62
70.27±1.48
62.00±1.40
42.70±0.64
38.20±0.48
28.62±0.23
GIN+FeaStDel
85.31±0.34
73.35±0.48
89.83±0.12
59.46±1.73
72.97±1.34
70.00±1.31
45.51±0.60
40.67±0.43
29.21±0.23
GIN+ComFyAdd
84.10±0.28
75.00±0.46
89.75±0.14
62.16±1.99
67.57±1.48
68.00±1.32
46.07±0.72
38.43±0.47
29.74±0.21
GIN+ComFyDel
85.71±0.37
74.29±0.39
88.46±0.11
56.76±1.60
67.57±1.50
66.00±1.42
51.12±0.73
40.67±0.54
30.33±0.22
GraphSAGE
87.73±0.26
77.12±0.31
86.56±0.10
67.57±1.36
78.38±1.37
76.00±1.18
38.76±0.61
35.96±0.38
35.99±0.21
GraphSAGE+FeaStAdd
89.74±0.26
79.48±0.40
86.84±0.11
81.08±1.46
75.68±1.52
80.00±1.04
44.94±0.78
35.73±0.43
37.37±0.22
GraphSAGE+FeaStDel
87.32±0.30
80.42±0.39
87.62±0.10
78.38±1.46
81.08±1.43
86.00±1.07
47.19±0.62
37.75±0.39
37.76±0.21
GraphSAGE+ComFyAdd
89.13±0.26
81.37±0.36
88.33±0.09
89.19±1.37
81.08±1.52
86.00±1.06
43.82±0.72
37.30±0.41
35.86±0.22
GraphSAGE+ComFyDel
88.33±0.31
81.60±0.37
88.03±0.11
78.38±1.41
83.78±1.47
78.00±1.13
45.51±0.64
37.75±0.42
36.45±0.22
+
+# D.4 OUR ALGORITHMS AGAINST FEATURE NOISE
+
+To understand how our proposed algorithm perform in presence of feature noise, we artificially add Gaussian noise with 0 mean and standard deviation $\{0.01, 0.03, 0.05, 0.08, 0.1, 0.2\}$ controlling the level of noise. We compare our proposed algorithms FeaSt and ComFy against the baseline GCN for
+
+increasing feature noise. We add/delete 10 edges. This is shown in Figure 7 for datasets Chameleon and Squirrel. Evidently, our proposed algorithms are robust to noise perturbations and consistently outperform the baseline by a large margin.
+
+
+(a) FeaSt+Chameleon+FeatureNoise.
+
+
+(b) FeaSt+Squirrel+FeatureNoise.
+
+
+(c) ComFy+Chameleon+FeatureNoise.
+
+
+(d) ComFy+Squirrel+FeatureNoise.
+Figure 7: We analyse the behaviour of GCNs and our rewiring methods FeaSt and ComFy in presence of feature noise.
+
+# D.5 OUR ALGORITHMS AGAINST LABEL NOISE
+
+To understand how our algorithms perform in presence of label noise, we randomly flip a certain percentage of labels in the training node before rewiring the graph. We flip $\{0,3,5,10,20,50\}$ percent of the labels and compare the baseline GCN and our methods FeaSt and ComFy with 10 edge additions/deletions. We plot the results in Figure 8, for increasing label noise, we can see that our methods are as robust as the baseline, because they lose performance at the same rate.
+
+# D.6 OUR ALGORITHMS ON SBMs WITH LOWER COMMUNITY STRUCTURE
+
+Using the same setups as in the proofs for Theorems 2 and 3, we evaluate the performance of ComMa (Figure 9) and ComFy (Figure 10) on SBM graphs with varying levels of community strength, under edge additions or deletions of 0, 50, 200, 500. Classification accuracy is measured via a simple mean aggregation step across four tasks, defined by different levels of alignment between labels and communities: $\psi \in 0.7, 0.8, 0.9, 1.0$ . Results are averaged over 8 seeds.
+
+Levels of community strength. For a 2-class, $n$ -node SBM with $(p,q) = \left(\frac{a\ln(n)}{n},\frac{b\ln(n)}{n}\right)$ , it is known (Abbe, 2018, Thm. 13) that the community structure is recoverable when $|\sqrt{a} -\sqrt{b}| > \sqrt{2}$ . For $n = 100$ and $q = 0.2$ , this implies a community detection threshold of $p > \left(\sqrt{\frac{0.2n}{\ln(n)}} +\sqrt{2}\right)^2$ . $\frac{\ln(n)}{n} \approx 0.56$ . Values below this threshold can be seen as having low community structure. We analyze four settings: three below and one above the threshold, with $p \in 0.3, 0.4, 0.5, 0.6$ .
+
+Behaviour on SBMs for ComMa. This particular SBM setup obtains performance gains as community strength increases —although this is not guaranteed for all types of graphs and tasks. In this case, HigherComMa (Figure 9) can show advantages, but will suffer when the graph structure cannot be recovered. This is the case for $p = 0.3$ , especially with edge additions. However, for $p = 0.4$ and $p = 0.5$ (both still below the threshold), edge additions provide consistent benefits.
+
+
+(a)
+
+
+(b) FeaSt+Squirrel+LabelNoise.
+
+
+FeaSt+Chameleon+LabelNoise.
+(c)
+ComFy+Chameleon+LabelNoise.
+Figure 8: We analyse the behaviour of GCNs and our rewiring methods FeaSt and ComFy in presence of label noise.
+
+
+(d)
+ComFy+Squirrel+LabelNoise.
+
+For $p = 0.6$ , where the community structure becomes clearer, deletions cease to be useful, and performance plateaus as the number of deletions grows.
+
+Behaviour on SBMs for ComFy. ComFy (Figure 10) is effective when the community structure is not clear, as it enhances the communities' signal via feature denoising (e.g., for $p = 0.3$ ). As $p$ increases, tasks with high alignment ( $\psi = 1.0$ ) gain little from ComFy, while those with noisier label alignments ( $\psi = 0.8$ , $\psi = 0.7$ ) continue to benefit.
+
+Behaviour on SBMs for FeaSt. In this simple setup with only two communities, ComFy's distribution of communities is not required for good performance. In fact, its trends match those of FeaSt, as is shown in Figure 11. Yet, Feast shows higher improvements in absolute terms (especially in high Alignment $\psi = 1$ ) due to the homophilic setup considered.
+
+These trends align with our theoretical predictions (§2.3) and are also consistent with the results observed on real-world GNN benchmarks (§4).
+
+
+(a) For $p = 0.3$
+
+
+(b) For $p = 0.4$
+
+
+(c) For $p = 0.5$
+
+
+(d) For $p = 0.6$
+Figure 9: The effect of ComMa on mean aggregation in SBMs for low levels of community strength. Each figure is a different SBM- $(p,0.2)$ . Their rows are different levels of alignment.
+
+
+(a) For $p = 0.3$ .
+
+
+(b) For $p = 0.4$
+
+
+(c) For $p = 0.5$ .
+Figure 10: The effect of ComFy on mean aggregation in SBMs for low levels of community strength. Each figure is a different SBM- $(p, 0.2)$ . Their rows are different levels of alignment.
+
+
+(d) For $p = 0.6$
+
+
+(a) For $p = 0.3$ .
+
+
+(b) For $p = 0.4$
+
+
+(c) For $p = 0.5$
+
+
+(d) For $p = 0.6$
+Figure 11: The effect of FeaSt on mean aggregation in SBMs for low levels of community strength. Each figure is a different SBM- $(p,0.2)$ . Their rows are different levels of alignment.
+
+# D.7 ILLUSTRATION OF THEOREM 3
+
+In Figure 12 we show 3D plots illustrating the expected proportion of misclassified nodes $P(M)$ in a Stochastic Block Model (SBM) as described in the setting in Theorem 3. In the plots, when $P(M)$ is low (yellow), performance is better, and when it is high (purple), performance is worse. The plot shows $P(M)$ as a function of alignment $\psi$ , and different configurations of $(p,q)$ :
+
+12(a) for $\psi$ and the theoretical spectral gap formula in the limit $-\frac{p - q}{p + q}$ from Theorem 1.
+- 12(b) and 12(c) for $p$ and $q$ given fixed $\psi \in \{0.7, 1.0\}$ . As $\psi$ increases, the minimum (purple) and maximum (yellow) possible performance extend their range.
+- 12(d), 12(e), 12(f) for $\psi$ and $p$ given fixed values of $q \in \{0.2, 0.5, 0.7\}$ . As the value of $q$ increases, the community structure is less pronounced. Therefore, the range of values of $p$ for which performance can achieve $100\%$ (in yellow) becomes more and more narrow.
+
+
+(a) Against $\psi$ and $\frac{q - p}{p + q}$ .
+
+
+(b) Fixed $\psi = 0.7$
+
+
+(c) Fixed $\psi = 1.0$
+
+
+(d) Fixed $q = 0.2$
+
+
+(e) Fixed $q = 0.5$
+
+
+(f) Fixed $q = 0.7$
+Figure 12: Plots illustrating the expected proportion of misclassified nodes $P(M)$ from Theorem 3.
\ No newline at end of file
diff --git a/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/images.zip b/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..9517ef3889b8062d9d2716b3162cee56de7c3a04
--- /dev/null
+++ b/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b1ee17f00c5a4dba84e3eead74620a200a39e7e1b9dcf2158a25c5d6d2fe9ea0
+size 2466122
diff --git a/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/layout.json b/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..9368bd36a523793978a2240ae0721a329726764f
--- /dev/null
+++ b/ICLR/2025/GNNs Getting ComFy_ Community and Feature Similarity Guided Rewiring/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:001ce82b4fcda8b03119a334601f3ea26ab1c6efec16a9320cc470e037d2fea1
+size 1178566
diff --git a/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/d986b1c4-dafa-42c6-96d2-d1f874e9aff3_content_list.json b/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/d986b1c4-dafa-42c6-96d2-d1f874e9aff3_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..ac6451c6ee77ce662a0e42ce1d14e45bd1d82807
--- /dev/null
+++ b/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/d986b1c4-dafa-42c6-96d2-d1f874e9aff3_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e7e212e432c5a1adf139a170d1c95fca6fde0baed9ecd5931df51d0e1363f0da
+size 150459
diff --git a/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/d986b1c4-dafa-42c6-96d2-d1f874e9aff3_model.json b/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/d986b1c4-dafa-42c6-96d2-d1f874e9aff3_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..80400ca8454fac03c8ad21be4b2200e49eb0bc72
--- /dev/null
+++ b/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/d986b1c4-dafa-42c6-96d2-d1f874e9aff3_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ace8fc607622e9f83670493d8cec858e93863218fd7d2b75da9eaf6a2d1662cd
+size 177312
diff --git a/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/d986b1c4-dafa-42c6-96d2-d1f874e9aff3_origin.pdf b/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/d986b1c4-dafa-42c6-96d2-d1f874e9aff3_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..2eaa26751d240b68b3cdb9839c2f57af46bd83a9
--- /dev/null
+++ b/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/d986b1c4-dafa-42c6-96d2-d1f874e9aff3_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7a52051a9a465ef5539eac76a8805c9bb13d2581564ff541801bac346cf5499f
+size 986975
diff --git a/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/full.md b/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..352fd9248cdba6efbca1ff1efb47f4dfa9e6f960
--- /dev/null
+++ b/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/full.md
@@ -0,0 +1,607 @@
+# GOAL: A GENERALIST COMBINATORIAL OPTIMIZATION AGENT LEARNER
+
+Darko Drakulic, Sofia Michel & Jean-Marc Andreoli
+
+NAVER LABS Europe, France
+
+firstname.lastname@naverlabs.com
+
+# ABSTRACT
+
+Machine Learning-based heuristics have recently shown impressive performance in solving a variety of hard combinatorial optimization problems (COPs). However they generally rely on a separate neural model, specialized and trained for each single problem. Any variation of a problem requires adjustment of its model and re-training from scratch. In this paper, we propose GOAL (for Generalist combinatorial Optimization Agent Learner), a generalist model capable of efficiently solving multiple COPs and which can be fine-tuned to solve new COPs. GOAL consists of a single backbone plus light-weight problem-specific adapters for input and output processing. The backbone is based on a new form of mixed-attention blocks which allows to handle problems defined on graphs with arbitrary combinations of node, edge and instance-level features. Additionally, problems which involve heterogeneous types of nodes or edges are handled through a novel multitype transformer architecture, where the attention blocks are duplicated to attend the meaningful combinations of types while relying on the same shared parameters. We train GOAL on a set of routing, scheduling and classic graph problems and show that it is only slightly inferior to the specialized baselines while being the first multi-task model that solves a wide range of COPs. Finally we showcase the strong transfer learning capacity of GOAL by fine-tuning it on several new problems. Our code is available at this url.
+
+# 1 INTRODUCTION
+
+Combinatorial Optimization (CO) problems are extensively studied in the Operations Research community, because they are both challenging in terms of theoretical complexity and central in many applications such as transportation, logistics and finance. Traditional CO methods include exact solvers, typically based on integer programming (Korte & Vygen, 2018), and approximation algorithms (Vazirani, 2003) which provide optimality or approximation guarantees, respectively, but do not scale; and heuristic algorithms (Boussaïd et al., 2013) which produce good-quality solutions faster but without guarantees. Effective heuristics heavily rely on expert knowledge and are generally problem-specific. A more recent and promising family of methods for CO is based on Machine Learning, either to learn the hyper-parameters of classic CO solvers, or to directly learn heuristics in an end-to-end fashion (Bengio et al., 2021; Cappart et al., 2021). In particular constructive neural heuristics have been successful at solving a variety of CO problems, including routing (Bello et al., 2017; Nazari et al., 2018; Kool et al., 2018; Kwon et al., 2020), scheduling (Zhang et al., 2020; Kwon et al., 2021) and graph problems (Khalil et al., 2017; Qiu et al., 2022). However, in most cases, a separate model is specialized and trained for each problem, and sometimes even for each distribution of instances within a problem, especially for varying instance sizes. While much effort has been devoted to improving the generalization to different instance distributions (Manchanda et al., 2022; Zhou et al., 2023; Son et al., 2023; Drakulic et al., 2023), generalization to different problems is less studied. Indeed, although there are strong neural heuristics for many CO problems, any variation of these problems requires adjustment of their model and re-training from scratch. While it is true that some problem-specific model tailoring may be required, since the structure of problem instances and solutions are very diverse, many problems are related and it would be interesting to exploit their commonalities. In this paper, we seek to answer the following question: Can we design and train a single generalist model so that it can be efficiently adapted to solve a
+
+variety of CO problems? The idea of pretraining a unified model on some pretext task so that it can be efficiently fine-tuned to several downstream tasks has been extremely successful in the language and vision domains (Devlin et al., 2019; Brown et al., 2020; Radford et al., 2021). In these domains, a self-supervised pretraining task exploits the intrinsic structure and regularities of images and text to learn generic representations. In contrast, in CO, while most problem instances can be modeled as graphs, there is no generic regularity to leverage by a pretext task. Graphs, unlike images or text contain little redundancy or intrinsic semantics.
+
+In this paper, we propose a new model, named GOAL (for Generalist combinatorial Optimization Agent Learner), which consists of a single backbone and light-weight problem-specific adapters for input and output processing. To handle the large discrepancy between CO problems, we propose three complementary strategies. First, to ensure learning related representations for different CO problems, we propose to use a problem-specific projection of the input instance features to a small fixed-size representation, which is then projected into the main embedding space using a shared codebook. Second, to handle problems defined on graphs with arbitrary combinations of node, edge and instance-level features, we design a new form of mixed-attention blocks for the backbone, injecting edge information at the core of each attention block. Finally, we introduce a novel multitype transformer architecture to deal with problems which involve heterogeneous types of nodes or edges (typically represented as multipartite graphs). The idea is to duplicate the backbone's mixed-attention blocks in order to attend each meaningful combination of types while relying on the same fixed set of shared parameters. In principle, GOAL is able to handle any CO problem whose instances can be represented as a graph and where feasible solutions can be constructed iteratively, as a sequence of node selections. We find that this pattern is generic enough to cover a wide range of problems. We train GOAL in a multi-task setting, by imitation of expert trajectories of eight classic CO problems, spanning multiple domains: Routing problems: the Asymmetric Traveling Salesman Problem, the Capacitated Vehicle Routing Problem with or without Time Windows, the Orienteering Problem; Scheduling problems: the Job Shop Scheduling Problem and the Unrelated Machine Scheduling Problem; Packing problems: the Knapsack Problem; and Graph problems: the Minimum Vertex Covering Problem. The expert trajectories are based on good-quality solutions, easily generated by traditional problem-specific solvers for instances of medium size (generally 100 nodes).
+
+Experimentally we first show that GOAL performs very well on all the training tasks, making it the first model that solves such a variety of CO problems. Second, we consider eight new problems and demonstrate that GOAL can be fine-tuned to reach a good performance, either in a few minutes using few-shot imitation learning or in a couple of hours without supervision. In both cases, the fine-tuning takes a fraction of the time and data needed to train a model from scratch. We further provide an ablation study to evaluate the effectiveness of a shared codebook, multi-type transformer architecture and mixed-attention blocks. Notably the GOAL architecture gives state-of-the-art results on 7 out of our 8 training tasks when used as single-task model. In summary, our contributions are the following:
+
+- We introduce GOAL: a generic and flexible model for end-to-end combinatorial optimization. Two key ingredients of GOAL are the simple yet effective form of mixed-attention blocks which enables handling problems represented by graphs with any combination of node-, edge- and instance-level features and its multi-type transformer architecture which allows to seamlessly tackle problems with multipartite graph structures.
+- We demonstrate that it is possible to learn a single backbone model to effectively solve a variety of CO tasks, spanning routing, scheduling, packing and graph problems.
+- We showcase the potential of such a multi-task pretrained model to be efficiently adapted to handle varied new CO tasks, with or without supervision. We believe this is a key step toward a foundation model for CO.
+
+# 2 RELATED WORKS
+
+End-to-end heuristic learning for CO Our work falls into the category of end-to-end constructive heuristics for combinatorial optimization. Constructive neural heuristics have been successfully applied to a wide range of COPs, including many variants of routing problems (Kool et al., 2018; Xin et al., 2021; Kim et al., 2022; Kool et al., 2022; Fu et al., 2021; Sun & Yang, 2023), scheduling
+
+problems (Zhang et al., 2020; Kwon et al., 2021), as well as classic COPs such as the Knapsack Problem (Kwon et al., 2020) and the Maximum Independent Set (Khalil et al., 2017; Sun & Yang, 2023). Another successful category of neural CO methods are improvement heuristics, which focus on iteratively enhancing a given complete solution, typically by using a neural network to guide the selection of local search operators (Chen & Tian, 2019; Hottung & Tierney, 2020; Ma et al., 2021; Wu et al., 2022). The seminal work of Khalil et al. (2017) introduces graph embeddings which do work for a variety of CO problems but with limited performance. Current state-of-the-art models are tailored for certain problem structures (e.g. euclidian routing problems, where nodes are represented by their coordinates plus some extra node or graph features such as demand or vehicle capacity), and successfully handled by transformer-based architectures (Kool et al., 2018). For non-euclidian routing problems, Kwon et al. (2021) and Drakulic et al. (2023) propose adapted architectures to deal with the distance matrix, but they are specialized for such problems and do not apply to those with node-only features. In GOAL, we propose a novel mixed-attention modules which can flexibly deal with both node and edge features, incurring no overhead when one or the other is missing.
+
+Generalization of neural heuristics While the first seminal models for neural CO had a dramatic drop in performance when tested on out-of-training distribution instances (Joshi et al., 2022; Manchanda et al., 2022), several recent approaches show a greatly improved generalization performance, especially to larger instances (Fu et al., 2021; Li et al., 2021; Son et al., 2023; Pan et al., 2023), to distribution shifts of other instance parameters (Bi et al., 2022), or both (Manchanda et al., 2022; Bi et al., 2022; Zhou et al., 2023; Drakulic et al., 2023). Concurrently with our work, some papers have started to explore cross-problem generalization for the family of routing problems. Specifically, (Lin et al., 2024) propose to pretrain the AM model (Kool et al., 2018) on the TSP and to fine-tune either the entire model or some light-weight modules on the Price Collecting TSP and OP. Additionally, Zhou et al. (2024); Liu et al. (2024); Berto et al. (2024) explore generalization to different variants of the CVRP. They build on the idea of zero-shot compositionality (Ruis et al., 2021) by training a model on CVRPs with some combinations of constraints from a predefined set (e.g. time windows and duration limit constraints) and show that the model generalizes to some unseen combinations of the same constraints. Wang & Yu (2023) propose a bandit based approach to alternate between problems during training, so as to focus on those which have the best return. Although these approaches tackle multiple problems, it is important to note that the considered Euclidean routing problems remain very similar in structure and indeed many of those problems were solved by the seminal Attention Model of (Kool et al., 2018) with little adaptations of its base model. Our paper goes further and considers multi-task training and transfer learning of a new model on a variety of COPs with different structures.
+
+Multi-task training for sequential decision making Multi-task (pre-)training has recently shown promising results in related fields. For example, Ibarz et al. (2022) proposed a graph neural network processor capable of learning to execute a variety of algorithms, such as sorting and searching. The paper focuses only on polynomial problems and learns to imitate the execution of classical algorithms. In contrast, we address NP-hard problems and learn by imitation of the solution provided by (potentially exponential) specialized solvers. Recent approaches in control rely on sequence modeling of expert trajectories from multiple tasks (Stooke et al., 2021; Sun et al., 2023). Although they treat various tasks, with potentially diverse state and action spaces, these works still consider image observations and exploit this common structure. Reed et al. (2022) propose GATO, a general-purpose agent obtained by training a large transformer-based model on hundreds of tasks spanning vision, language and control. It demonstrates the potential of a single network (albeit with 1.2B parameters) to effectively tackle a wide variety of tasks.
+
+# 3 MULTI-TASK LEARNING FOR COMBINATORIAL OPTIMIZATION
+
+# 3.1 CONSTRUCTIVE CO PROBLEM SOLVING
+
+We assume that a CO problem instance is given by a pair of a finite, non-empty set $X$ of feasible solutions, and a real-valued objective function $f$ whose domain contains $X$ . Solving the instance consists in finding an optimal solution, i.e. an element of $\arg \min_{x \in X} f(x)$ . Constructive approaches assume that $f$ is defined not only over $X$ but over a set of partial solutions, which includes $X$ and is amenable to a step-wise construction procedure where each partial solution can be
+
+
+Figure 1: Left: Architecture of GOAL for single-type problems; the green components are task-specific, while the others belong to the backbone. The codebook is a shared $\ell \times D$ (resp. $\bar{\ell} \times \bar{D}$ ) matrix (with $\ell \ll D$ , $\bar{\ell} \ll \bar{D}$ ) applied to the node (resp. edge) representations produced by the input adapters. Right: Architecture of GOAL for multi-type problems (with here 2 node types T1,T2); it uses multiple mixed attention blocks ("MMA"), some in self- and some in cross-attention mode, but they all share the same parameters (per layer); so do the two Feed Forward blocks ("FF"). For the edges, all the type combinations are shown (here T11,T12,T21,T22) but those which have no meaning in a task are simply omitted. The same set of parameters is used for the two architectures.
+
+
+
+obtained by a sequence of construction steps. Thus, solving the problem instance can be formulated as a sequential decision procedure which iteratively selects the construction steps so as to reach not only a feasible but an optimal solution. That in turn can be modeled as a Markov Decision Problem (MDP) associated with the problem. In this paper, we use the BQ-MDPs introduced by Drakulic et al. (2023) which are defined for "tail-recursive" problems, i.e. the widespread class of problems that are solvable by dynamic programming (Bertsekas, 2019). In BQ-MDPs, the actions are the construction steps, typically the selection of a node, while the states are simply instances. This differs from many peer NCO models where each state is a pair of an instance and a partial solution. The tail recursion property precisely ensures that the two alternatives lead to "bisimilar" MDPs, which have the same optimal policies, as shown in Drakulic et al. (2023), but the BQ-MDPs' states more efficiently capture the relevant information to determine these policies.
+
+# 3.2 MULTI-TASK CO PROBLEMS
+
+Now, given a class $\mathcal{T}$ of tail-recursive CO problems called tasks, let $\Omega_t$ for each task $t \in \mathcal{T}$ denote the parametric space used to represent its instances. Consider the new (multi-task) CO problem whose instances are represented in the disjoint union $\biguplus_{t \in \mathcal{T}} \Omega_t$ consisting of pairs $(t, \omega)$ of a task identifier $t \in \mathcal{T}$ and a point $\omega \in \Omega_t$ in its corresponding parameter space. It is easy to show that the multi-task problem is tail-recursive whenever each of its components is. And its BQ-MDP is then simply the disjoint union of the BQ-MDPs of its components.
+
+In this paper, we study alternatives for the multi-task policy space, beyond the (trivial) Cartesian product of the policy spaces of the individual tasks, where no parameter is shared between the different tasks. The underlying assumption is that if the tasks are sufficiently similar, learning one task may elicit implicit skills useful to other tasks, which are then leveraged by parameter sharing. In the extreme, some tasks may require little training data and/or just a few shot fine-tuning to obtain acceptable performance, leveraging their similarity to more thoroughly trained tasks. Since each task has its own parametric space used to represent its instances, some part of any multi-task policy has to be task specific, and trained by processing at least a few instances of each task: pure zero-shot generalization is not possible. The situation is close to multi-lingual Natural Language Processing,
+
+where the vocabulary of each language needs to be seen at least once at training or fine-tuning. And we borrow the solution used in that context, namely adapters (Bapna & First, 2019).
+
+# 3.3 TASK REPRESENTATION
+
+To leverage operational similarity between tasks, we need them to have at least representational similarity. Thus, we assume that each instance of size $N$ of a task (CO problem) is represented by a set of $N$ abstract "nodes", together with features which can be attached at node, edge (node pair) or instance level. Instance features can be replicated and appended to the features of each node, hence can be ignored without loss of generality. Since the construction steps (actions) are returned by the task-specific output adapters (Sec 3.4), there are no restrictions on their format. For simplicity and to cover the problems used in our experiments, we assume in the sequel that each construction step consists of the selection of a node, possibly with an option among a fixed number $K$ of options (dependent on the task: in most cases, $K = 1$ and the action simply selects a node).
+
+Hence, the GOAL model takes three inputs $t, x, \bar{x}$ , where $t$ is a task identifier, and $(x, \bar{x}) \in \Omega_t$ is a parameter representing an instance of task $t$ , where $x \in \mathbb{R}^{N \times F_t}$ (resp. $\bar{x} \in \mathbb{R}^{N \times N \times \bar{F}_t}$ ) represents the feature vectors of dimension $F_t$ of the $N$ nodes (resp. $\bar{F}_t$ of the $N \times N$ edges). While some tasks may have no edge feature $(\bar{F}_t = 0)$ , we always assume that at least one node feature exists, which distinguishes the nodes by a randomly assigned value between 0 and 1, similar to the random features used in Graph Neural Networks (Sato et al., 2021), so we always have $F_t \geq 1$ . Both $F_t$ and $\bar{F}_t$ , as well as the meaning of the corresponding features, depend on task $t$ . The output of the model is a matrix $y \in \mathbb{R}^{N \times K_t}$ representing the score of each candidate action, i.e. the pair of a node and an option for selection. As usual, it is passed to a softmax (over the whole matrix) to obtain a probability distribution. Wherever appropriate, task-dependent masking can be used to ensure that probabilities are null for the actions disallowed by a task.
+
+# 3.4 ARCHITECTURE OF THE MODEL
+
+The architecture of our model generalizes that of BQ-NCO (Drakulic et al., 2023), and is described in Fig. 1 left. It essentially consists of a sequence of layers whose parameters are shared by all the tasks (backbone) together with task-specific adapter modules at the input and output of the model1. The input-output adapter modules for task $t$ are specific to the dimensions $F_{t}, F_{t}, K_{t}$ and the meaning of the corresponding features. No positional encoding is used: all relational information is assumed to be captured by $\bar{x}$ . The layers themselves, on the other hand, are only aware of the shared embedding dimensions $D, \bar{D}$ . They are self-attention transformer layers (Vaswani et al., 2017) where vanilla attention is replaced by multi-head mixed attention, similar in intent to (Kwon et al., 2021; Henderson et al., 2023) but with a different design.
+
+Our mixed attention block, in the general case where $M$ nodes attend on $N$ nodes ( $M = N$ only in self-attention), is an instance of generalized attention (Andreoli, 2019). A generalized attention mechanism takes the following inputs: node representations as vectors for $N$ queries, $M$ keys, and $M$ values, with an optional $M \times N$ log-binary mask $\mathcal{M}$ . In each head $h$ , each query, key, value vector is first projected into a common space of dimension $d$ , yielding for each $n = 1:N$ and $m = 1:M$ , vectors (of dimension $d$ ):
+
+$$
+Q _ {n} ^ {(h)} = Q _ {n} \mathbf {W} _ {Q} ^ {(h)}, \qquad \qquad K _ {m} ^ {(h)} = K _ {m} \mathbf {W} _ {K} ^ {(h)}, \qquad \qquad V _ {m} ^ {(h)} = V _ {m} \mathbf {W} _ {V} ^ {(h)}.
+$$
+
+Then the key and query vectors are used to compute an $M \times N$ score matrix $S$ , which is transformed into an attention matrix (by adding the mask and applying softmax) multiplied by the reprojected value vectors to produce the output representation $r$ of the $N$ input query nodes as a matrix with $N$ rows:
+
+$$
+r = \sum_{h}\underbrace{\operatorname{softmax}_{\mathrm{col}}(S^{(h)} + \mathcal{M})^{\top}}_{\text{attention matrix}}V^{(h)}\mathbf{W}_{O}^{(h)\top}.
+$$
+
+Attention mechanisms then differ in the way they compute the score matrix:
+
+$$
+(\text {v a n i l l a} S _ {m n} ^ {(h)} = \left\langle K _ {m} ^ {(h)} \mid Q _ {n} ^ {(h)} \right\rangle , \tag {1a}
+$$
+
+$$
+\text {(o u r m i x e d a t t e n t i o n)} \quad S _ {m n} ^ {(h)} = \left\langle K _ {m} ^ {(h)} + K _ {m n} ^ {\prime (h)} \mid Q _ {n} ^ {(h)} + Q _ {m n} ^ {\prime (h)} \right\rangle . \tag {1b}
+$$
+
+In vanilla attention, the scores are obtained by simple scalar product of the key and query vectors (equation 1a). Our mixed attention mechanism takes as additional input $M \times N$ "edge" vectors, projected twice into the common space of dimension $d$ , once as key and once as query, resulting in vectors (of dimension $d$ ):
+
+$$
+Q _ {m n} ^ {\prime (h)} = E _ {m n} \mathbf {W} _ {Q} ^ {\prime (h)}, \quad K _ {m n} ^ {\prime (h)} = E _ {m n} \mathbf {W} _ {K} ^ {\prime (h)}. \tag {2}
+$$
+
+The score matrix is still obtained as a scalar product of a key and a query vector, but now, each of them is the sum of a node component and an edge component (equation 1b). Our mixed attention allows to incorporate arbitrary relational information (edge features) into the core of the attention mechanism. It differs from positional encoding, which attempts to instill a priori the edge information (limited to sequential ordering) into the node representations.
+
+In the GOAL backbone, all the node (resp. edge) inputs to the attention blocks are of dimension $D$ (resp. $\bar{D}$ ), and they are all projected into a common space of dimension $d$ equal to $D$ divided by the number of heads. No masking is used in the backbone. One well-known limitation of this model is its quadratic complexity, the attention matrices being of size $N^2$ . In practice though, for many tasks, a simple, task-specific heuristic can deal with that problem by pre-filtering the set of nodes to present to the model (usually much fewer than $N$ ). Whenever available, we use such heuristics.
+
+Input and output adapters are linear projections, from the task-specific instance features to the backbone's input embeddings and from the backbone's output embeddings to the task-specific action space. However, when the embedding dimension is large and the number of training tasks is small, there is a risk that the embeddings produced by each task end up occupying complementary subspaces of the embedding space throughout the layers, which would defeat the purpose of effectively sharing parameters across tasks. To prevent this, we simply force the input linear projection to be low rank. Thus, node (resp. edge) features are first mapped into a low dimension $\ell \ll D$ (resp. $\overline{\ell} \ll \bar{D}$ ), through a task-specific linear projection (the input adapter proper), forcing the representations to share dimensions across tasks. Then this "small" representation is plunged into a "large" $D$ -resp. $\bar{D}$ -dimensional embedding, through a common linear projection, called a codebook, shared by all the tasks (see Fig. 1 left).
+
+# 3.5 MULTI-TYPE TRANSFORMER ARCHITECTURE
+
+Many tasks (CO problems) involve different types of nodes. For example, scheduling problems often involve "operation" and "machine" nodes. For GOAL, one solution is to simply treat them all indiscriminately in the backbone. The adapters, being problem specific, are of course free to treat them differently according to their types. This is sometimes unsatisfactory though, since it forces the adapter to provide uniform embeddings for all the nodes and edges, though they are often heterogeneous by nature: in the scheduling example, edge features may carry precedence constraints when between operations, or processing times when between machines and operations, and no information at all when between machines. Instead of packing all these different types of relations into a single vector, with padding values wherever a feature is undefined for a given edge, we propose a multi-type architecture where the adapters output separate embeddings per type (for nodes) or compatible pairs of types (for edges). Each layer of the model, instead of being a monolithic self-attention block operating on all the nodes, becomes a task-specific combination of both cross- and self-attention blocks, as described by equation 1b, operating on different type-compatible subsets of nodes and edges. This is illustrated in Fig. 1 right in the case of two types. For $n$ types, the architecture would be similar but involves $n^2$ mixed-attention blocks, where each type attends to itself and every other type, or a selection of relevant types defined by the task. Therefore, in our scheduling example, the model will contain separate self-attention blocks, for operation nodes and machine nodes respectively, and cross-attention blocks, for operation-machine edges and vice-versa. Observe that while the architecture configuration is now task-specific, the model parameters remain the same for all the configurations: all the attention blocks of a layer, be them self- or cross-attention, and whatever the types they involve, share the same, layer-specific parameters. This is precisely what allows us to train a unique model to solve arbitrary single- and multi-type problems.
+
+# 3.6 TRAINING PROCEDURE
+
+We train GOAL on a set of eight various CO problems (described in Sec 4). For each training problem, we define the corresponding BQ-MDP, the linear input and output adapters to match the
+
+dimensions of the input features and the construction actions. We train the model by imitation of high-quality solutions, provided by specialized solvers. At each step, we sample a problem and create a batch of instances by sampling suffix subproblems from the training instances, similarly to (Drakulic et al., 2023). The forward and backward processes involve the input and output adapters, as well the backbone parameters, where the mixed-attention and feed-forward blocks are duplicated within each layer if the sampled task is multi-typed.
+
+# 4 EXPERIMENTS
+
+Our experiments aim to address the following questions: (i) does the GOAL approach enable learning a single backbone to effectively solve a variety of CO problems (Sec 4.1)? (ii) can it be used as a pretrained model and efficiently fine-tuned to solve new CO problems, unseen at training (Sec 4.2)? (iii) to what extent do our mixed-attention blocks and multi-type architecture contribute to the results (Sec 4.3)? We begin by describing the multi-task training of GOAL.
+
+Training tasks. We train GOAL on eight classic and varied CO problems. For each problem, we generate a training dataset of 1 million random instances and solve them using traditional solvers. Specifically, we consider the following problems and oracle solvers: the Asymmetric Traveling Salesman Problem (ATSP) with LKH (Helsgaun, 2017), the Capacitated Vehicle Routing Problem (CVRP) with LKH (Helsgaun, 2017), the Capacitated Vehicle Routing Problem with Time Windows (CVRPTW) with HGS (Vidal, 2022) the Orienteering Problem (OP) with A4OP (Kobeaga et al., 2018), the Knapsack Problem (KP) with ORTools (Perron & Furnon, 2022), the Minimum Vertex Covering Problem (MVC) with FastWVC (Cai, 2023), the Unrelated Machine Scheduling Problem (UMSP) with HiGHS (Huangfu & Hall, 2018) and the Job Shop Scheduling Problem (JSSP) with ORTools (Perron & Furnon, 2022). The training instances are of size 100 nodes, or $10 \times 10$ for JSSP and $100 \times 20$ for UMSP (resulting in both cases in 100 operation nodes). The description of the problems and the associated data generation processes is provided in Appendix F.
+
+Training details. GOAL is trained by alternating batches in random order from each of the training tasks, using a single-class cross-entropy loss for ATSP, CVRP, CVRPTW, OP, JSSP and UMSP and a multi-class cross-entropy loss for KP and MVC. We use AdamW optimizer (Loshchilov & Hutter, 2018), with an initial learning rate of 0.0005 and a decay rate of 0.97 every 10th epoch. We trained the model on 8 Nvidia V100 GPU servers, with batch size of 256 for 7 days, completing ca. 400 epochs. The best model was selected based on the average performance on a validation set of 128 instances per problem. The model hyperparameters are described in Appendix A.
+
+Baselines. We consider the following constructive neural models as baselines: AM (Kool et al., 2018), MDAM (Xin et al., 2021), POMO (Kwon et al., 2020), Sym-NCO (Kim et al., 2022), BQ-NCO (Drakulic et al., 2023), MVMoE (Zhou et al., 2024), MatNet (Kwon et al., 2021), S2VDQN (Khalil et al., 2017), RouteFinder (Berto et al., 2024), COMPASS (Chalumeau et al., 2023) and Gumbeldore (Pirnay & Grimm, 2024). All models except MVMoE and RouteFinder are specialized and trained in single-task mode. They are often combined at test time with various enhancers, such as beam search Drakulic et al. (2023), simulation-guided beam search (Choo et al., 2022), MCTS (Xing & Tu, 2020), instance augmentation (Kwon et al., 2020), or active search (Hottung et al., 2021), but for fair comparison, all the results we report are obtained by a pure greedy application of the trained policy at test time.
+
+# 4.1 PERFORMANCE ON THE TRAINING TASKS
+
+In Table 1 we compare the performance of GOAL to the relevant neural baselines for each problem as well as its single-task version (i.e. GOAL trained separately for each task). First, we observe that the best performance is achieved by the single-task GOAL in 7 out of the 8 tasks, with a computation time comparable to that of the baselines. This proves the versatility and effectiveness of our proposed architecture, even for a specialized model. Second, we see that multi-task GOAL is only slightly worse than the single-task version. These results validate the capability of the GOAL backbone, together with the task-specific adapters, to effectively solve the variety of training tasks. More broadly, they demonstrate that multi-task learning can be a successful paradigm for neural combinatorial optimization.
+
+
ATSP100
CVRP100
CVRPTW100
OP100
gap
time
gap
time
gap
time
gap
time
Oracle solver
0.00%
29s
0.00%
12m
0.00%
10m
0.00%
1.1m
AM greedy
-
7.11%
1s
5.35%
1s
MDAM greedy
-
4.84%
1s
-
2.88%
16s
POMO no aug
-
1.21%
1s
-
-
Sym-NCO greedy
-
3.33%
1s
-
2.03%
2s
BQ-NCO greedy
1.27%
2s
2.79%
2s
-
0.22%
2s
MVMoE/4E
-
1.65%
1s
4.90%
1s
-
RouteFinder-TE
-
1.50%
1s
3.19%
1s
-
MatNet greedy
0.93%
1s
-
-
-
GOAL SINGLE-TASK greedy
0.30%
10s
2.34%
10s
2.61%
10s
-0.04%
3s
GOAL MULTI-TASK greedy
0.91%
10s
3.16%
10s
3.82%
10s
0.43%
3s
KP100
MVC100
UMSP100x20
JSSP10x10
gap
time
gap
time
gap
time
gap
time
Oracle solver
0.00%
1s
0.00%
2m
0.00%
2m
0.00%
47s
POMO no aug
0.19%
-
-
-
BQ-NCO greedy
0.10%
-
-
-
S2V-DQN
-
0.97%
2s
-
-
COMPASS
-
-
-
4.70%
3h
Gumbeldore greedy
-
-
-
3.17%
9s
GOAL SINGLE-TASK greedy
0.10%
3s
0.23%
3s
2.82%
7s
2.73%
15s
GOAL MULTI-TASK greedy
0.12%
3s
0.37%
3s
3.84%
7s
4.13%
15s
+
+Table 1: Performance on 128 test instances from the training tasks. Each gap is with respect to the oracle and often corresponds to the optimality gap. Lower is better.
+
+In addition, in Appendix E, we provide experimental results demonstrating GOAL's excellent zero-shot generalization on instances up to 10 times larger than the training instances. We can note in particular the strong generalization for ATSP which seems much more challenging for the state-of-the-art baselines. This confirms the effectiveness of our mixed-attention mechanism.
+
+# 4.2 FINE-TUNING TO NEW TASKS
+
+In this section, we want to evaluate the transfer capability of the trained GOAL backbone to unseen tasks. We consider eight diverse new COPs: the Traveling Repairman Problem (TRP), the Prize Collecting TSP (PCTSP), the Open CVRP (OCVRP), the Split Delivery CVRP (SDCVRP), the Sequential Ordering Problem (SOP), the Maximum Covering Location Problem (MCLP), the Maximum Independent Set (MIS) problem and the Open Shop Scheduling Problem (OSSP) (detailed descriptions in Appendix F). GOAL can be fine-tuned to specific problems in two modes. In both, the adapters are trained from scratch, and the backbone is also open to backpropagation (no parameter freeze). The supervised mode is identical to training, except it processes only a few (labeled) instances of the problem for a few steps. Details and results are given in Appendix B. The unsupervised mode is more challenging, but also more realistic, since we may not have access to good-quality solutions for the new problem. We propose to fine-tune the model by iterative imitation-improvement steps between an Apprentice and an Expert, as in ExIt (Anthony et al., 2017). While Exit relies on a possibly complex tree-search for improvement, we use instead a brute-force but fast method, where the Expert samples multiple solutions (in our case 128) per instance from the Apprentice and selects the best, if it is sufficiently better, and sends it back to the Apprentice (current model) for imitation. This is similar to the self-labeling strategy proposed by Corsini et al. (2024) for the JSSP. One could also use more sophisticated experts such as generic local search heuristics or smarter sampling (Pirnay & Grimm, 2024) to accelerate the finetuning. Performance results are given in Fig 2, which shows that unsupervised fine-tuning systematically outperforms unsupervised training of the whole model from scratch at a comparable processing time budget. We also compare finetuning GOAL to finetuning the single-task models and report the results in Fig 4. We observe that the multi-task model consistently performs as well or better than the "most-related" single-task
+
+model (e.g. CVRP model for OCVRP or JSSP model for OSSP), hinting to the synergistic effect of the multi-task training.
+
+
+
+
+
+
+
+
+
+
+Figure 2: Unsupervised fine-tuning of GOAL to eight diverse new tasks. We report the best results over 10 runs both for training from scratch and fine-tuning.
+
+
+
+
+
+
+
+# 4.3 ABLATION STUDY
+
+Mixed-attention blocks. We compare our mixed-attention blocks with alternative modules which also aim at mixing the edge information with the attention scores, namely MatNet (Kwon et al., 2021) and G2G (Henderson et al., 2023). More precisely we focus on the ATSP and train three versions of GOAL with the three different variants of mixed-attention. For MatNet, we keep the original hyper-parameters used for solving the ATSP. Fig 3 (left) presents the models performance (optimality gap on a test set of 128 instances) at different points of the training. We see that using our mixed-attention blocks leads to a significant gain, on the performance at convergence (MatNet) or on the speed of convergence (G2G). Note that these ablations are performed on a smaller training dataset than in the previous experiments (100k instances), hence the larger optimality gap.
+
+Multi-type transformer. Our multi-type architecture is meant to deal with tasks that are naturally represented by multipartite graphs with heterogeneous nodes or edges, typically scheduling problems where job and machine nodes play different roles. To evaluate its effect on the performance, we compare it to that obtained with the more direct alternative which ignores node and edge heterogeneity: we simply gather in a single tensor the node (edge) representations of the different types, produced by the input adapter, and use the original single-type model. Note that because of the linearity of the input adapters, these representations can be obtained either by defining a specific linear transform per type, or equivalently by defining a single linear transform on the direct sum of the feature spaces of the different types. We implemented the former for the Job Shop Scheduling Problem and present in Fig 3 (middle) a comparison between the training performance of the single-type and multi-type architectures. Clearly, the multi-type architecture converges faster and to a better performance: after 200 epochs of training on 100K instances, it reaches a test optimality gap of $4.6\%$ while the single-type model achieves only $8.9\%$ . Finally, note that the multi-type model offers more flexibility for fine-tuning: while, in order to be task agnostic at training, parameter sharing between the type specific attention blocks of a layer must be enforced, that constraint can be relaxed at fine-tuning to better fit the task at hand.
+
+Sparsification using a codebook. Fig 3 (right) experimentally confirms the importance, in the fine-tuning phase (supervised mode), of sparsifying the input adapter with a shared codebook. The results are given for the PCTSP, but similar results are available in Fig 6 (Appendix) for the other problems. The shared codebook results in a more stable finetuning (over 10 runs) and to a better optimality gap. While we do not observe a significant effect on the performance on the training tasks, we believe that constraining the rank of the codebook tends to prevent its vectors from specializing for individual tasks seen at training, which would be of limited use when fine-tuning to new tasks.
+
+
+Figure 3: (left) Performance with different variants of mixed-attention. (middle) Performance of single- vs multi-type GOAL. (right) Fine-tuning of GOAL with and without the codebook.
+
+
+
+
+
+
+
+
+Figure 4: Comparison of the (supervised) fine-tuning of the single- versus multi-task GOAL on four new problems.
+
+# 5 DISCUSSION AND CONCLUSION
+
+In this paper, we propose a generalist neural CO model (GOAL) and demonstrate the feasibility of learning a shared backbone model to solve a variety CO problems, spanning routing, scheduling, packing and classic graph problems. We have shown the benefits of GOAL as (i) a single-task specialized model, providing state-of-the-art results on seven CO problems; (ii) a multi-task model, able to solve different problems with the same backbone; and (iii) a pretrained model, which is efficiently fine-tuned to new problems. The proposed multi-task pre-training relies on imitation learning and therefore the availability of good-quality solutions. While this is not an intrinsic limitation of the GOAL model, we believe that imitation learning is an effective training paradigm for learning multitask models. This is indeed demonstrated by previous works which relied on sequence-modeling training tasks for control (Sun et al., 2023; Reed et al., 2022). It is particularly advantageous for CO as we can leverage high-quality solutions to classical NP-hard problems, provided by traditional solvers, which are based on decades of OR research. In contrast, for a new potentially more original problem, we show that GOAL can be effectively finetuned without any supervision. Our approach is limited to problems where solution feasibility is easy to ensure during the construction, which is a common requirement of constructive heuristics. Finally the quadratic complexity of the underlying transformer architecture makes the approach too costly for problem sizes beyond a thousand nodes. Exploring more efficient forms of attention as basis for our mixed-attention blocks would be a promising direction for better scaling.
+
+# ETHICS STATEMENT
+
+To the best of our knowledge, no aspect of our research raises ethics issues. It did not involve human subjects, and considers only generic Combinatorial Optimization problems with no dubious association.
+
+# REPRODUCIBILITY STATEMENT
+
+For full reproducibility, the implementation of the backbone, the adapters and all the experiments described in this paper are publicly available at https://github.com/naver/goal-co. The training data generation process, the training process, and its hyper-parameters are described in detail in the Appendix.
+
+# REFERENCES
+
+Jean-Marc Andreoli. Convolution, attention and structure embedding. In Proc. of NeurIPS Workshop on Graph Representation Learning, pp. 8, Vancouver, BC, Canada, December 2019.
+Thomas Anthony, Zheng Tian, and David Barber. Thinking Fast and Slow with Deep Learning and Tree Search. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017.
+Thomas Bachlechner, Bodhisattwa Prasad Majumder, Henry Mao, Gary Cottrell, and Julian McAuley. ReZero is all you need: Fast convergence at large depth. In Proceedings of the Thirty-Seventh Conference on Uncertainty in Artificial Intelligence, pp. 1352-1361. PMLR, December 2021.
+Ankur Bapna and Orhan First. Simple, Scalable Adaptation for Neural Machine Translation. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 1538-1548, Hong Kong, China, November 2019. Association for Computational Linguistics.
+Irwan Bello, Hieu Pham, Quoc V. Le, Mohammad Norouzi, and Samy Bengio. Neural Combinatorial Optimization with Reinforcement Learning. In 5th International Conference on Learning Representations, ICLR 2017, Toulouse, France, April 24-26, 2017, Workshop Track Proceedings. OpenReview.net, 2017.
+Yoshua Bengio, Andrea Lodi, and Antoine Prouvost. Machine learning for combinatorial optimization: A methodological tour d'horizon. European Journal of Operational Research, 290(2): 405-421, 2021.
+Federico Berto, Chuanbo Hua, Nayeli Gast Zepeda, Andre Hotung, Niels Wouda, Leon Lan, Kevin Tierney, and Jinkyoo Park. RouteFinder: Towards Foundation Models for Vehicle Routing Problems. In ICML 2024 Workshop on Foundation Models in the Wild, July 2024.
+Dimitri Bertsekas. Reinforcement Learning and Optimal Control. Athena Scientific, July 2019. ISBN 978-1-886529-39-7.
+Jieyi Bi, Yining Ma, Jiahai Wang, Zhiguang Cao, Jinbiao Chen, Yuan Sun, and Yeow Meng Chee. Learning Generalizable Models for Vehicle Routing Problems via Knowledge Distillation. In Sanmi Koyejo, S. Mohamed, A. Agarwal, Danielle Belgrave, K. Cho, and A. Oh (eds.), Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022, 2022.
+Ilhem Boussaïd, Julien Lepagnot, and Patrick Siarry. A survey on optimization metaheuristics. Information Sciences, 237:82-117, July 2013. ISSN 0020-0255.
+Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M.
+
+Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language Models are Few-Shot Learners. In Hugo Larochelle, Marc' Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin (eds.), Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, Virtual, 2020.
+Shaowei Cai. FastWVC Solver: Implementation of the algorithm proposed in Towards Faster Local Search for Minimum Weighted Vertex Cover on Massive Graphs, July 2023. Preprint.
+Quentin Cappart, Didier Chételat, Elias B. Khalil, Andrea Lodi, Christopher Morris, and Petar Velicković. Combinatorial Optimization and Reasoning with Graph Neural Networks. In Twenty-Ninth International Joint Conference on Artificial Intelligence, volume 5, pp. 4348-4355, August 2021.
+Felix Chalumeau, Shikha Surana, Clement Bonnet, Nathan Grinsztajn, Arnu Pretorius, Alexandre Laterre, and Thomas D. Barrett. Combinatorial Optimization with Policy Adaptation using Latent Space Search, November 2023. Preprint arXiv:2311.13569.
+Xinyun Chen and Yuandong Tian. Learning to Perform Local Rewriting for Combinatorial Optimization. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.
+Jinho Choo, Yeong-Dae Kwon, Jihoon Kim, Jeongwoo Jae, Andre Hottung, Kevin Tierney, and Youngjune Gwon. Simulation-guided Beam Search for Neural Combinatorial Optimization. In NeurIPS 2022, 2022.
+Andrea Corsini, Angelo Porrello, Simone Calderara, and Mauro Dell'Amico. Self-Labeling the Job Shop Scheduling Problem, July 2024. Preprint arXiv:2401.11849.
+Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4171–4186, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics.
+Darko Drakulic, Sofia Michel, Florian Mai, Arnaud Sors, and Jean-Marc Andreoli. BQ-NCO: Bisimulation Quotienting for Efficient Neural Combinatorial Optimization. In Advances in Neural Information Processing Systems, volume 36, pp. 77416-77429, December 2023.
+Jonas K. Falkner and Lars Schmidt-Thieme. Learning to Solve Vehicle Routing Problems with Time Windows through Joint Attention. arXiv:2006.09100 [cs, stat], June 2020.
+Zhang-Hua Fu, Kai-Bin Qiu, and Hongyuan Zha. Generalize a Small Pre-trained Model to Arbitrarily Large TSP Instances. Proceedings of the AAAI Conference on Artificial Intelligence, 35(8): 7474-7482, May 2021. ISSN 2374-3468.
+Keld Helsgaun. An Extension of the Lin-Kernighan-Helsgaun TSP Solver for Constrained Traveling Salesman and Vehicle Routing Problems. Technical report, Roskilde University, Roskilde, Denmark, 2017.
+James Henderson, Alireza Mohammadshahi, Andrei Coman, and Lesly Miculicich. Transformers as Graph-to-Graph Models. In Yanai Elazar, Allyson Ettinger, Nora Kassner, Sebastian Ruder, and Noah A. Smith (eds.), Proceedings of the Big Picture Workshop, pp. 93-107, Singapore, December 2023. Association for Computational Linguistics.
+Ellis Horowitz and Sartaj Sahni. Exact and Approximate Algorithms for Scheduling Nonidentical Processors. Journal of the ACM, 23(2):317-327, April 1976. ISSN 0004-5411.
+Andre Hottung and Kevin Tierney. Neural Large Neighborhood Search for the Capacitated Vehicle Routing Problem. In ECAI 2020, pp. 443-450. IOS Press, 2020.
+Andre Hottung, Yeong-Dae Kwon, and Kevin Tierney. Efficient Active Search for Combinatorial Optimization Problems. In International Conference on Learning Representations, October 2021.
+
+Q. Huangfu and J. A. J. Hall. Parallelizing the dual revised simplex method. Mathematical Programming Computation, 10(1):119-142, March 2018. ISSN 1867-2957.
+Borja Ibarz, Vitaly Kurin, George Papamakarios, Kyriacos Nikiforou, Mehdi Bennani, Róbert Csordás, Andrew Joseph Dudzik, Matko Bosnjak, Alex Vitvitskyi, Yulia Rubanova, Andreea Deac, Beatrice Bevilacqua, Yaroslav Ganin, Charles Blundell, and Petar Velicković. A Generalist Neural Algorithmic Learner. In Proceedings of the First Learning on Graphs Conference, pp. 2:1-2:23. PMLR, December 2022.
+Chaitanya K. Joshi, Quentin Cappart, Louis-Martin Rousseau, and Thomas Laurent. Learning the travelling salesperson problem requires rethinking generalization. Constraints, 27(1-2):70-98, April 2022. ISSN 1383-7133.
+Elias Khalil, Hanjun Dai, Yuyu Zhang, Bistra Dilkina, and Le Song. Learning Combinatorial Optimization Algorithms over Graphs. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017.
+Minsu Kim, Junyoung Park, and Jinkyoo Park. Sym-NCO: Leveraging Symmetricity for Neural Combinatorial Optimization. In Advances in Neural Information Processing Systems, volume 35, pp. 1936-1949, December 2022.
+Gorka Kobeaga, María Merino, and Jose A. Lozano. An efficient evolutionary algorithm for the orienteering problem. Computers & Operations Research, 90:42-59, February 2018. ISSN 0305-0548.
+Wouter Kool, Herke van Hoof, and Max Welling. Attention, Learn to Solve Routing Problems! In International Conference on Learning Representations, September 2018.
+Wouter Kool, Herke van Hoof, Joaquim Gromicho, and Max Welling. Deep Policy Dynamic Programming for Vehicle Routing Problems. In Pierre Schaus (ed.), Integration of Constraint Programming, Artificial Intelligence, and Operations Research, pp. 190-213, Cham, 2022. Springer International Publishing. ISBN 978-3-031-08011-1.
+Bernhard Korte and Jens Vygen. Combinatorial Optimization: Theory and Algorithms, volume 21 of Algorithms and Combinatorics. Springer, Berlin, Heidelberg, 2018. ISBN 978-3-662-56038-9 978-3-662-56039-6.
+Yeong-Dae Kwon, Jinho Choo, Byoungjip Kim, Iljoo Yoon, Youngjune Gwon, and Seungjai Min. POMO: Policy Optimization with Multiple Optima for Reinforcement Learning. In Advances in Neural Information Processing Systems, volume 33, pp. 21188-21198. Curran Associates, Inc., 2020.
+Yeong-Dae Kwon, Jinho Choo, Iljoo Yoon, Minah Park, Duwon Park, and Youngjune Gwon. Matrix encoding networks for neural combinatorial optimization. In Advances in Neural Information Processing Systems, volume 34, pp. 5138-5149. Curran Associates, Inc., 2021.
+Sirui Li, Zhongxia Yan, and Cathy Wu. Learning to delegate for large-scale vehicle routing. In Advances in Neural Information Processing Systems, volume 34, pp. 26198-26211. Curran Associates, Inc., 2021.
+Zhuoyi Lin, Yaoxin Wu, Bangjian Zhou, Zhiguang Cao, Wen Song, Yingqian Zhang, and Senthilnath Jayavelu. Cross-Problem Learning for Solving Vehicle Routing Problems. In Thirty-Third International Joint Conference on Artificial Intelligence, volume 7, pp. 6958-6966, August 2024.
+Fei Liu, Xi Lin, Zhenkun Wang, Qingfu Zhang, Tong Xialiang, and Mingxuan Yuan. Multi-Task Learning for Routing Problem with Cross-Problem Zero-Shot Generalization. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, KDD '24, pp. 1898–1908, New York, NY, USA, August 2024. Association for Computing Machinery. ISBN 979-8-4007-0490-1.
+Ilya Loshchilov and Frank Hutter. Decoupled Weight Decay Regularization. In International Conference on Learning Representations, September 2018.
+
+Fu Luo, Xi Lin, Zhenkun Wang, Xialiang Tong, Mingxuan Yuan, and Qingfu Zhang. Self-Improved Learning for Scalable Neural Combinatorial Optimization, May 2024. Preprint arXiv:2403.19561.
+Yining Ma, Jingwen Li, Zhiguang Cao, Wen Song, Le Zhang, Zhenghua Chen, and Jing Tang. Learning to Iteratively Solve Routing Problems with Dual-Aspect Collaborative Transformer. In Advances in Neural Information Processing Systems, November 2021.
+Sahil Manchanda, Sofia Michel, Darko Drakulic, and Jean-Marc Andreoli. On the Generalization of Neural Combinatorial Optimization Heuristics. In European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases (ECML-PKDD), Grenoble, France, September 2022.
+MohammadReza Nazari, Afshin Oroojlooy, Lawrence Snyder, and Martin Takac. Reinforcement Learning for Solving the Vehicle Routing Problem. In Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018.
+Xuanhao Pan, Yan Jin, Yuandong Ding, Mingxiao Feng, Li Zhao, Lei Song, and Jiang Bian. H-TSP: Hierarchically solving the large-scale traveling salesman problem. In Proceedings of the Thirty-Seventh AAAI Conference on Artificial Intelligence and Thirty-Fifth Conference on Innovative Applications of Artificial Intelligence and Thirteenth Symposium on Educational Advances in Artificial Intelligence, volume 37 of AAAI'23/IAAI'23/EAAI'23, pp. 9345-9353. AAAI Press, February 2023. ISBN 978-1-57735-880-0.
+Laurent Perron and Vincent Furnon. OR-tools, 2022. Preprint.
+Jonathan Pirnay and Dominik G. Grimm. Self-Improvement for Neural Combinatorial Optimization: Sample without Replacement, but Improvement, March 2024. Preprint arXiv:2403.15180.
+Ruizhong Qiu, Zhiqing Sun, and Yiming Yang. DIMES: A Differentiable Meta Solver for Combinatorial Optimization Problems. In Advances in Neural Information Processing Systems, December 2022.
+Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning Transferable Visual Models From Natural Language Supervision. In Proceedings of the 38th International Conference on Machine Learning, pp. 8748-8763. PMLR, July 2021.
+Scott Reed, Konrad Zolna, Emilio Parisotto, Sergio Gomez Colmenarejo, Alexander Novikov, Gabriel Barth-maron, Mai Giménez, Yury Sulsky, Jackie Kay, Jost Tobias Springenberg, Tom Eccles, Jake Bruce, Ali Razavi, Ashley Edwards, Nicolas Heess, Yutian Chen, Raia Hadsell, Oriol Vinyals, Mahyar Bordbar, and Nando de Freitas. A Generalist Agent. Transactions on Machine Learning Research, August 2022. ISSN 2835-8856.
+Frank Ruis, Gertjan Burghouts, and Doina Bucur. Independent Prototype Propagation for Zero-Shot Compositionality. In Advances in Neural Information Processing Systems, volume 34, pp. 10641-10653. Curran Associates, Inc., 2021.
+Ryoma Sato, Makoto Yamada, and Hisashi Kashima. Random Features Strengthen Graph Neural Networks. arXiv:2002.03155 [cs, stat], January 2021.
+Jiwoo Son, Minsu Kim, Hyeonah Kim, and Jinkyoo Park. Meta-SAGE: Scale Meta-Learning Sched- uled Adaptation with Guided Exploration for Mitigating Scale Shift on Combinatorial Optimization. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of ICML'23, pp. 32194-32210, Honolulu, Hawaii, USA, July 2023. JMLR.org.
+Adam Stooke, Kimin Lee, Pieter Abbeel, and Michael Laskin. Decoupling representation learning from reinforcement learning. In International Conference on Machine Learning, pp. 9870-9879. PMLR, 2021.
+Yanchao Sun, Shuang Ma, Ratnesh Madaan, Rogerio Bonatti, Furong Huang, and Ashish Kapoor. SMART: Self-supervised Multi-task pretrAining with contRol Transformers. In The Eleventh International Conference on Learning Representations, February 2023.
+
+Zhiqing Sun and Yiming Yang. DIFUSCO: Graph-based Diffusion Solvers for Combinatorial Optimization. Advances in Neural Information Processing Systems, 36:3706-3731, December 2023.
+Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is All you Need. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017.
+Vijay V. Vazirani. Approximation Algorithms. Springer, Berlin, Heidelberg, 2003. ISBN 978-3-642-08469-0 978-3-662-04565-7.
+Thibaut Vidal. Hybrid genetic search for the CVRP: Open-source implementation and SWAP* neighborhood. Computers & Operations Research, 140:105643, April 2022. ISSN 0305-0548.
+Chenguang Wang and Tianshu Yu. Efficient Training of Multi-task Neural Solver with Multi-armed Bandits. CoRR, abs/2305.06361, 2023.
+Yaoxin Wu, Wen Song, Zhiguang Cao, Jie Zhang, and Andrew Lim. Learning Improvement Heuristics for Solving Routing Problems. IEEE Transactions on Neural Networks and Learning Systems, 33(9):5057-5069, September 2022. ISSN 2162-2388.
+Liang Xin, Wen Song, Zhiguang Cao, and Jie Zhang. Multi-Decoder Attention Model with Embedding Glimpse for Solving Vehicle Routing Problems. Proceedings of the AAAI Conference on Artificial Intelligence, 35(13):12042-12049, May 2021. ISSN 2374-3468.
+Zhihao Xing and Shikui Tu. A Graph Neural Network Assisted Monte Carlo Tree Search Approach to Traveling Salesman Problem. IEEE Access, 8:108418-108428, 2020. ISSN 2169-3536.
+Cong Zhang, Wen Song, Zhiguang Cao, Jie Zhang, Puay Siew Tan, and Chi Xu. Learning to dispatch for job shop scheduling via deep reinforcement learning. In Proceedings of the 34th International Conference on Neural Information Processing Systems, NIPS'20, pp. 1621-1632, Red Hook, NY, USA, December 2020. Curran Associates Inc. ISBN 978-1-7138-2954-6.
+Jianan Zhou, Yaoxin Wu, Wen Song, Zhiguang Cao, and Jie Zhang. Towards omni-generalizable neural methods for vehicle routing problems. In International Conference on Machine Learning, pp. 42769-42789. PMLR, 2023.
+Jianan Zhou, Zhiguang Cao, Yaoxin Wu, Wen Song, Yining Ma, Jie Zhang, and Chi Xu. MVMoE: Multi-task vehicle routing solver with mixture-of-experts. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of ICML'24, pp. 61804-61824, Vienna, Austria, July 2024. JMLR.org.
+
+# A GOAL HYPERPARAMETERS AND SIZE
+
+The GOAL backbone consists of $L = 9$ layers with an embedding size of $D = \bar{D} = 128$ (the same for both nodes and edges), a feed-forward dimension of 512, and ReZero normalization Bachlechner et al. (2021). The mixed-attention blocks have 8 heads. The task specific input adapters produce representations of low dimension $\ell = 8$ for nodes and $\bar{\ell} = 4$ for edges, which are mapped to embeddings by a shared codebook of dimension $\ell \times D$ for nodes and $\bar{\ell} \times \bar{D}$ for edges, respectively. GOAL backbone has 2.1M parameters and adapters are very light, with only a few thousand parameters per task. For the illustration, RouteFinder (Berto et al., 2024) with POMO has 1.3M, MVMoE (Zhou et al., 2024) has 3.7M (the same model is used in RouteFinder with MVMoE), and RouteFinder with the Transformer Encoder 1.7M.
+
+# B SUPERVISED FINE-TUNING OF GOAL
+
+In section 4.2 we describe the process of fine-tuning our multitask model on eight unseen tasks in unsupervised mode. Although fine-tuning without labeled data is useful for transferring to new tasks, it comes at a cost - it is quite expensive. Our experiments show that fine-tuning to the new problems with unsupervised learning takes, on average, a few hours.
+
+On the other hand, we demonstrate that GOAL can be effectively fine-tuned using a very small amount of labeled data, in a short time. Figure 5 presents the performance of fine-tuning GOAL on the same eight problems used in unsupervised tuning. Here, we use only 128 solved (but not necessarily optimal) instances and tune the model with just one training step per instance (more precisely, one training step per tail-subproblem of each instance). In contrast to unsupervised tuning, this method is extremely fast; fine-tuning takes only a few minutes.
+
+
+Figure 5: Supervised fine-tuning on eight new problems. We report the best results over 10 runs for both training from scratch and fine-tuning.
+
+# C IMPACT OF CODEBOOK ON FINE-TUNING
+
+In 4.3 We discussed the importance of sparsifying the input adapter with a shared codebook. Although this feature does not impact training performance, it is very important in the fine-tuning phase. By adding a codebook to the model, fine-tuning becomes more stable and achieves better performance. In the main text, we presented a figure comparing fine-tuning for the PCTSP with models that have and do not have a codebook. Figure 6 illustrates the impact of the codebook on fine-tuning the multitask model across all eight problems we used for transfer. In these experiments, we used light-trained models with and without a codebook. The models are trained on 100K instances, for 200 epochs. For each experiment, we perform 10 inference runs and report the mean with a confidence interval of 100.
+
+
+
+
+
+
+
+
+
+
+Figure 6: Ablation study of codebook
+
+
+
+
+
+
+
+
+(a) the Unrelated Machine Scheduling Problem (UMSP)
+Figure 7: Illustration of the multi-type model on scheduling tasks in GOAL. The "MA" blocks use vanilla multi-head attention while the "MMA" use our multi-head mixed-attention.
+
+
+(b) the Job-shop Scheduling Problem (JSSP)
+
+# D MULTI-TYPE MIXED ATTENTION LAYERS FOR UMSP AND JSSP
+
+As an illustration of our proposed multi-type transformer architecture, we present in Figure 7 the inputs to the mixed-attention blocks for the Unrelated Machine Scheduling (UMSP) and the Job Shop Scheduling Problems (JSSP). Note that in the case of UMSP, since there is no edge information between jobs and between machines, the self-attention blocks (left-most and right-most attention blocks) degenerate to vanilla attention. The cross-attention blocks, on the other hand, are mixed, and they are fed the same edge information, holding the job execution times on each machine (transposed from each other). In JSSP, the situation is similar, but ops have two kinds of relations between themselves: precedence, and sharing the same job. Hence the self-attention block on ops is mixed.
+
+
Train. distrib.
Generalization
100
200
500
1000
ATSP
LKH
0.00%
29s
0.00%
48s
0.00%
2m
0.00%
4m
MatNet
1.57%
1s
97.21%
12s
-
-
BQ-NCO
1.63%
1s
1.90%
9s
4.29%
26s
8.09%
1m
GOAL
0.45%
5s
1.54%
30s
1.62%
3m
1.96%
5m
CVRP
LKH
0.00%
12m
0.00%
2h
0.00%
5h
0.00%
7h
AM
7.11%
1s
10.16%
1s
17.2%
1s
72.95%
2s
MDAM
4.84%
1s
7.54%
6s
12.94%
24s
32.25%
1m
POMO
1.21%
1s
5.94%
6s
31.36%
32s
284.58%
1m
Sym-NCO
3.33%
1s
8.42%
3s
37.58%
54s
481.53%
9m
BQ-NCO
2.79%
1s
2.81%
9s
3.64%
55s
5.88%
2m
GOAL
3.16%
5s
3.42%
30s
3.90%
2m
7.37%
5m
CVRPTW
HGS (1s) †
108/128
2m
14/128
2m
0/128
2m
0/128
2m
HGS (1m)
0.00%
10m
0.00%
26m
0.00%
2h
0.00%
2h
GOAL
3.82%
5s
7.71%
30s
9.49%
2m
6.75%
5m
OP
EA4OP
0.00%
1m
0.00%
3m
0.00%
11m
0.00%
45m
AM
5.35%
1s
11.05%
1s
22.29%
1s
30.73%
1s
MDAM
2.88%
16s
5.55%
1s
18.31%
4s
30.05%
15s
SymNCO
2.03%
2s
6.60%
3s
19.81%
24s
31.79%
1m
GOAL
0.43%
3s
1.60%
10s
7.45%
17s
15.62%
30s
KP
ORTools
0.00%
< 1s
0.00%
< 1s
0.00%
< 1s
0.00%
< 1s
POMO
0.19%
1s
0.50%
1s
6.41%
31s
5.34%
1m
BQ-NCO
0.10%
2s
0.14%
6s
0.74%
7s
0.92%
13s
GOAL
0.12%
3s
1.63%
6s
2.40%
10s
2.59%
16s
10x10
10x15
15x15
20x15
JSSP
ORTools
0.00%
47s
0.00%
2m
0.00%
3h
0.00%
80h
COMPASS◇
4.70%
3h
-
8.00%
5h
10.40%
8h
GOAL
4.13%
15s
11.02%
43s
10.74%
45s
22.53%
4m
+
+Table 2: Generalization performance on larger instances. Lower is better. All NCO methods perform greedy decoding, except for methods marked with $\diamond$ ; they do not provide results for greedy decoding. Solvers marked with $\dagger$ are unable to solve all instances within the given time budget; we report the number of instances successfully solved.
+
+# E GENERALIZATION TO NEW INSSTANCE DISTRIBUTIONS
+
+Table 2 presents the generalization to instances up to 10 times bigger than the training ones, for a subset of the training tasks. Our approach takes a bit more time than some baselines, but note that scaling to much larger instances is not a focus of this paper. One possible way to avoid the quadratic complexity of attention is by using task-specific heuristics, such as the KNN heuristic for routing problems (proposed by Drakulic et al. (2023), to reduce the size of the input instance and the overall complexity. Another approach could be using methods that do not rely on quadratic attention blocks, such as those proposed by Luo et al. (2024), though this method tends to be highly specialized for specific problems.
+
+Our model demonstrates excellent generalization performance in terms of the optimality gap for problems with various edge features, such as ATSP (with an asymmetric distance matrix) and JSSP (with two binary matrices with precedence constraints and job-machine relations).
+
+# F DESCRIPTION OF THE CONSIDERED CO PROBLEMS
+
+In this Section, we describe the CO problems (in alphabetical order) that are solved by GOAL as well as the instance generation process. GOAL solves problems from various categories: Routing, Scheduling, Packing, Graph, and Location Problems. For each problem, we provide all the details of how it is represented in our model, including a list of instance, node and edge features, the action chosen by the model, and the objective. We also describe how we generate a solution trajectory for problems where we use single cross-entropy loss for behavioral cloning.
+
+# F.1 CAPACITATED VEHICLE ROUTING PROBLEM AND SPLIT-DELIVERY CAPACITATED VEHICLE ROUTING PROBLEM
+
+
+
+The Capacitated Vehicle Routing Problem (CVRP) is a standard routing problem. The goal of CVRP is to optimize the delivery routes of a fleet of vehicles to a set of customers while considering each vehicle's capacity. The objective is to minimize the overall distance traveled by the vehicles while respecting the capacity constraints and ensuring that all the customer demands are met. Split-Delivery CVRP (SDCVRP) is a variant of the CVRP that allows a single customer's demand to be fulfilled by multiple vehicles. In our experiments we use Euclidean CVRP for training GOAL and SDCVRP for fine-tuning.
+
+Data generation. Node locations are randomly sampled from the unit square, while node demands are randomly generated integers from the interval [1, 10]. Following Kool et al. (2018), the vehicle capacity depends on the problem size: capacity of 50 for a problem size of 100, 80 for 200, 100 for 500, and capacity of 250 for problems with 1000 nodes.
+
+Instance features: Remaining vehicle capacity
+
+Node features: Origin/destination tokens, demand
+
+Edge features: Distance between nodes
+
+Oracle: LKH
+
+Objective: Minimize traveled distance
+
+Action: Select a node, with direct edge or via-depot
+
+Trajectory: Nodes ordered by a solution subtour. Subtours are ordered by their final remaining capacity in descending order
+
+# F.2 CAPACITATED VEHICLE ROUTING PROBLEM WITH TIME WINDOWS
+
+The Capacitated Vehicle Routing Problem with Time Windows (CVRPTW) is an extension of the CVRP. In addition to demand constraints, each customer also has a specified time window during which they can be visited, along with the necessary service time required for serving that customer. The objective of the CVPTW is to find routes for the vehicles that satisfy the capacity limits, deliver goods within the specified time windows, and minimize the total travel and waiting time or the number of vehicles used. In our experiments, we consider the standard version of the Euclidean problem where total traveling and serving time should be minimized and we use it for training GOAL.
+
+Data generation. For the time windows and service times, we use a similar procedure to Falkner & Schmidt-Thieme (2020), where the locations are sampled sampled from the unit square. We ensure the feasibility of the resulting instances by sampling time windows using a more refined procedure. Windows start time values are sampled from the range (0.01, 0.25). It's important to note that start times do not directly impact problem feasibility, as vehicles can wait at the node until the service starts. On the other hand, the choice of the visiting end time has an impact on feasibility. An instance is unfeasible if the window end time of a customer is less than the travel time from the depot plus the service time. To avoid this, end times are sampled from the interval [maxwindow start time, travel time from depot) $+2 \times$ service time, maxwindow start time, travel time from depot) $+4 \times$ service time].
+
+Instance features: Remaining vehicle capacity, current time
+
+Node features: Origin/destination tokens, demand, start time window, end time window, service time
+
+Edge features: Distance between nodes
+
+Oracle: HGS
+
+Objective: Minimize traveled time
+
+Action: Select a node, with direct edge or via-depot
+
+Trajectory: Nodes ordered by a solution subtour. Subtours are ordered by their final remaining capacity in descending order
+
+# F.3 JOB SHOP SCHEDULING PROBLEM
+
+
+
+The Job Shop Scheduling Problem (JSSP) is a classic scheduling problem. We are given $N$ jobs and $M$ machines. Each job consists of a sequence of operations that need to be processed in a specific order (implying precedence constraints). Each operation has a given processing time. Each machine can only process one operation at a time and when an operation is started it cannot be inter
+
+rupted (no preemption). A solution is a schedule, defined by the start time of each operation such that a specific criterion, such as makespan, total completion time, or total tardiness is minimized.
+
+Data generation. We follow the standard procedure for generating JSSP benchmark datasets: execution times are randomly sampled from $U(1, 100)$ .
+
+# Instance features: None
+
+Node features: Operation execution time, job availability time, machine availability time
+
+Edge features: Precedence constraint, operation-machine dependency
+
+Oracle: ORTools
+
+Objective: Minimize makespan
+
+Action: Select an operation
+
+Trajectory: Tasks ordered by minimal finishing time
+
+# F.4 KNAPSACK PROBLEM
+
+The Knapsack Problem (KP) is a well-known combinatorial optimization problem that involves selecting a subset of items from a given set. Each item had a weight and a value, and the goal is to maximize the cumulated value of selected items, without exceeding a given cumulated weight threshold, known as the knapsack's (weight) capacity.
+
+Data generation. Following the same procedure as in Kwon et al. (2020), node weights and values are randomly sampled from the unit interval, and knapsack capacity is set to 25.
+
+Instance features: Remaining knapsack capacity
+
+Node features: Value, weight
+
+Edge features: None
+
+Oracle: ORTools
+
+Objective: Maximizing packed values
+
+Action: Select an item
+
+Trajectory: There is no order
+
+# F.5 MAXIMUM INDEPENDENT SET PROBLEM
+
+
+
+In the Maximum Independent Set (MIS), we are given an undirected graph $G = (V, E)$ and the goal is to find a subset of nodes $S \subset V$ of maximal size $|S|$ such that each pair of nodes in $S$ is not connected by an edge. In other words, the maximum independent set is the largest possible independent set in $G$ , i.e., an independent set with the maximum number of vertices. In our experiments, we fine-tune GOAL to MIS problem.
+
+Data generation. For this problem, we follow a similar procedure as in Khalil et al. (2017). We generate random
+
+graphs by using Erdős–Rényi model with the critical edge probability $p$ sampled from [0.05, 0.15].
+
+Instance features: None
+
+Node features: None
+
+Edge features: Adjacency value (0-1)
+
+Oracle: FastWVC
+
+Objective: Maximize number of selected nodes
+
+Action: Select an node
+
+Trajectory: There is no order
+
+# F.6 MAXIMUM COVERAGE LOCATION PROBLEM
+
+
+
+In the Maximum Coverage Location Problem (MCLP), we are given a set of locations with associated weights and several facilities with associated radius of coverage. The goal is to find the optimal placement of the facilities, on a subset of the locations, to maximize the number of covered locations. There is also a variant in which nodes have associated weights; in this case, the objective is to maximize the sum of the weights of the covered locations. In our experiments, we fine-tune our multitask model to MCLP.
+
+Data generation. Node locations are randomly sampled from the unit square, the number of facilities is fixed to 10 and their radius of coverage to 0.1.
+
+Instance features: Number of facilities, radius of coverage
+
+Node features: None
+
+Edge features: Distance between nodes
+
+Oracle: PuLP²
+
+Objective: Maximize the number of covered locations
+
+Action: Select an facility node
+
+Trajectory: There is no order
+
+# F.7 MINIMUM VERTEX COVER PROBLEM
+
+The goal of the Minimum Vertex Cover Problem (MVC) is to find the smallest set of vertices in a graph, such that each edge is incident to at least one of these vertices. In the weighted version of this problem (MWVC), each vertex has an associated weight, and the goal is to select vertices with the minimum cumulated sum of weights while satisfying the vertex cover condition. Data generation and problem features are the same as in MIS. We use MVC to train our model.
+
+# F.8 OPEN SHOP SCHEDULING PROBLEM
+
+
+
+The Open Shop Scheduling Problem (OSSP) is a scheduling problem in which a set of jobs (with a given set of operations) must be processed on a set of machines, but unlike job shop scheduling, there is no predefined order. Each operation must be processed, with no overlapping between operations and machines at the same time unit. The goal is typically to minimize the makespan, or the total time required to complete all jobs. Data generation
+
+and problem features are the same as in JSSP, except OSSP does not have precedence constraints.
+
+# F.9 OPEN VEHICLE ROUTING PROBLEM
+
+
+
+Open Vehicle Routing Problem (OCVRP) is a variant of CVRP where an unbounded fleet of vehicles is available at the depot, each serving a set of customers. In contrast with other CVRP variants, vehicles do not need to return to the depot at the end of their service. This makes OCVRP similar to the classical CVRP, as both problems involve a set of locations with demand and vehicle capacity constraints. However, the key difference lies in the route structure: in OCVRP, vehicles do not need to return to the depot after completing deliveries, which affects the solution space and cost minimization strategy. OCVRP has common applications in logistics, where delivery trucks do not need to return to the depot after com
+
+pleting deliveries. Data generation and problem features are the same as for the CVRP. In our experiments, we handle the Euclidean version of the OCVRP and fine-tune GOAL to solve it.
+
+# F.10 ORIENTEERING PROBLEM
+
+
+
+The Orienteering Problem (OP) is a combinatorial optimization problem that combines aspects of the Traveling Salesman Problem (TSP) and the Knapsack Problem. It is commonly used in routing and scheduling applications where the goal is to maximize collected rewards while respecting a constraint on total travel distance or time. The OP is defined by a set of locations (nodes), each associated with a reward; a starting location and an ending location (usually the same node); a travel cost matrix between locations; and a maximum allowable travel budget. The objective is to visit a subset of locations that maximizes the total collected reward while ensuring the total travel cost does not exceed the budget.
+
+Data generation. We generated data following previous work Kool et al. (2018): node locations are uniformly sampled from the unit square and prizes are proportional to the distance to the depot (in Kool et al. (2018) this variant of the problem is called $OP_{distance}$ ). The maximal distance constraint is set to 4. We use Euclidean OP for training GOAL.
+
+Instance features: Remaining distance
+
+Node features: Origin/destination tokens, prize
+
+Edge features: Distance between nodes
+
+Oracle: A4OP
+
+Objective: Maximize collected prizes
+
+Action: Select a node (including coming back to the depot)
+
+Trajectory: Ordered nodes by a solution tour
+
+# F.11 PRICE COLLECTION TRAVELING SALESMAN PROBLEM
+
+
+
+The Prize-Collecting Traveling Salesman Problem (PCTSP) is a variant of the classic Traveling Salesman Problem. In the PCTSP, each node has an associated prize and penalty, and the goal is to minimize the traveled distance while satisfying a minimum total prize constraint. Unlike the traditional TSP, where all cities must be visited, the PCTSP allows for skipping some nodes; however, unvisited nodes incur a penalty, creating a trade-off between collecting prizes and minimizing travel distance. The final objective is to minimize the
+
+sum of the traveled distance and the sum of the penalties for unvisited nodes.
+
+Data generation. We generated data following previous work Xin et al. (2021): node locations are uniformly sampled from the unit square, while prizes are randomly sampled from $U[0, num - nodes]$ and penalties are sampled from $U[0, num - nodes]$ . Both features are normalized by multiplying by $4 / num - nodes$ and $12 / num - nodes$ , respectively.
+
+Instance features: Remaining prize constraint
+
+Node features: Origin/destination tokens, prize, penalty
+
+Edge features: Distance between nodes
+
+Oracle: ORTools
+
+Objective: Minimize the sum of traveled distances and penalties of univisited nodes
+
+Action: Select a node (including coming back to the depot)
+
+Trajectory: Ordered nodes by a solution tour
+
+# F.12 SEQUENTIAL ORDERING PROBLEM
+
+The Sequential Ordering Problem (SOP) is a combinatorial optimization problem where a set of tasks or nodes must be visited in a specific order while minimizing the total travel cost or distance. This problem can be modeled as the Traveling Salesman Problem, with precedence constraints. The objective is to find the shortest possible route that satisfies these precedence conditions. In our experiments, we fine-tune our multitask model to SOP.
+
+Data generation. The values of the cost matrix are integers randomly generated from a uniform distribution $U[1, 1000]$ with zero costs between the same task. To fulfill feasibility constraints, we randomly order the tasks, and for the $i$ -th task, we randomly add $k$ precedent jobs, where $k$ is sampled from $U[0, \lfloor i / 2 \rfloor]$ .
+
+Instance features: None
+
+Node features: Origin token
+
+Edge features: Distance between nodes, precedence constraint
+
+Oracle: LKH
+
+Objective: Minimize cost
+
+Action: Select a node
+
+Trajectory: Ordered nodes by a solution tour
+
+# F.13 TRAVELING REPAIRMAN PROBLEM
+
+
+
+The Traveling Repairman Problem (TRP) is a combinatorial optimization problem where a repairman must determine the most efficient route to visit a set of locations, performing repairs or services at each site. In the Traveling Repairman Problem, a set of locations is given with the time needed to travel between any pair of locations. Each location has a task to be performed by the repairman. The objective of the problem is to find the route that minimizes the sum of the delays for reaching each point. In our experiments, we fine-tune GOAL to Euclidean TRP.
+
+Data generation. Node locations are uniformly sampled from the unit square.
+
+Instance features: None
+
+Node features: Origin token
+
+Edge features: Distance between nodes
+
+Oracle: LKH
+
+Objective: Minimize waiting time of all nodes
+
+Action: Select a node
+
+Trajectory: Ordered nodes by a solution tour
+
+# F.14 TRAVELING SALESMAN PROBLEM
+
+
+
+The Traveling Salesman Problem (TSP) is a classic combinatorial optimization problem. The objective of the TSP is to find the shortest possible route that a salesman can take to visit a given set of cities exactly once and return to its starting point. In the path-TSP variant, the origin and destination of the salesman are distinct nodes (but may have the same coordinates, so that the TSP is a special case of the path-TSP). A TSP instance can be represented either by node coordinates or by a distance matrix. The majority of NCO models address TSP in the coordinate setting, yet the matrix setting holds greater significance for practical applications, as it applies beyond the Euclidean context, where the matrix can represent time,
+
+energy, or cost, rather than distance, and need not satisfy the symmetry property of a distance matrix. In our work, we use the Asymmetric TSP (where the distances satisfy the triangular inequality property) to train our multi-task model."
+
+Data generation For the Euclidean case, we generate datasets as described in Kool et al. (2018): points are uniformly sampled from the unit square, and the corresponding distance matrix $A$ is computed. For non-Euclidean problems (ATSP) we generate data as described in Kwon et al. (2021), where distance matrices are generated randomly, but post-processed to satisfy the triangular inequality.
+
+# Instance features: None
+
+Node features: Origin/destination tokens
+
+Edge features: Distance between nodes
+
+Oracle: Concorde (for Euclidean) and LKH (for non-Euclidean)
+
+Objective: Minimize tour length
+
+Action: Select a node
+
+Trajectory: Ordered nodes by a solution tour
+
+# F.15 UNRELATED MACHINE SCHEDULING PROBLEM
+
+
+
+The Unrelated Machine Scheduling Problem (UMSP) is an optimization problem in operations research where a set of jobs must be assigned to a set of machines, each with different processing times for each job, to minimize a specific criterion, such as makespan, total completion time, or total tardiness. Unlike related machine scheduling, where machines have similar characteristics and pro
+
+cessing times are proportional, in UMSP, the performance and efficiency of machines vary, making it a more complex and challenging problem to solve. Horowitz & Sahni (1976) shows that this problem is NP-hard. We use UMSP for multitask training of our GOAL model.
+
+Data generation. For UMSP, the processing times are randomly generated from $U(1, 100)$ .
+
+# Instance features: None
+
+Node features: Machine availability times
+
+Edge features: Execution times
+
+Oracle: ORTools
+
+Objective: Minimize makespan
+
+Action: Select a machine to randomly selected task
+
+Trajectory: Ordered tasks by execution time
\ No newline at end of file
diff --git a/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/images.zip b/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..2d847490538f945409f34e90d4916961e846dbbf
--- /dev/null
+++ b/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d9bf78ea68a3e65d2828f6078dda29cb4f6abda6b63cd51a7a00207509502b75
+size 979564
diff --git a/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/layout.json b/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..da4b4f8d6f906f0f998f6eab73f833101ab9a740
--- /dev/null
+++ b/ICLR/2025/GOAL_ A Generalist Combinatorial Optimization Agent Learner/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0c04bc4885f25482bac935037ee878fc56bec439fd339be3640eeff0ebf685df
+size 675407
diff --git a/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/215cea83-d1de-4d7f-b92b-df8c958f645c_content_list.json b/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/215cea83-d1de-4d7f-b92b-df8c958f645c_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..688b94c2308b322acca710457aff4e1cf6409022
--- /dev/null
+++ b/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/215cea83-d1de-4d7f-b92b-df8c958f645c_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa49d934e89f8cf99e82d089410bc987952af2c3b3f45da42d8f112285e01a2f
+size 180754
diff --git a/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/215cea83-d1de-4d7f-b92b-df8c958f645c_model.json b/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/215cea83-d1de-4d7f-b92b-df8c958f645c_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..920ae8f65aaaf0bf3cb26fafe46f02d905858e5b
--- /dev/null
+++ b/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/215cea83-d1de-4d7f-b92b-df8c958f645c_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fafc2a2c0bf80d1369dcc08b11c1f66e2913c96c4cd116fae5a8952091d5cfa9
+size 211938
diff --git a/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/215cea83-d1de-4d7f-b92b-df8c958f645c_origin.pdf b/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/215cea83-d1de-4d7f-b92b-df8c958f645c_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..d3a7d92b61b4c01b4d2d1f1033929f66b9eb9a86
--- /dev/null
+++ b/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/215cea83-d1de-4d7f-b92b-df8c958f645c_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:412d228f4015aa4ac3a5eb323e4d679403e69cd634948a8a7c16a2cc77a0b422
+size 974774
diff --git a/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/full.md b/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..05bf4112e8e290715fa16d2001c7c6df0d75e8a7
--- /dev/null
+++ b/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/full.md
@@ -0,0 +1,512 @@
+# GOFA: A GENERATIVE ONE-FOR-ALL MODEL FOR JOINT GRAPH LANGUAGE MODELING
+
+Lecheng Kong $^{1*}$ Jiarui Feng $^{1*}$ Hao Liu $^{1*}$ Chengsong Huang $^{1}$ Jiaxin Huang $^{1}$ Yixin Chen $^{1}$ Muhan Zhang $^{2\dagger}$
+
+$^{1}$ Washington University in St. Louis $^{2}$ Peking University {jerry.kong, feng.jiarui, liuhao, chengsong, jiaxinh}@wustl.edu ychen25@wustl.edu, muhan@pku.edu.cn
+
+# ABSTRACT
+
+Foundation models, such as Large Language Models (LLMs) or Large Vision Models (LVMs), have emerged as one of the most powerful tools in the respective fields. However, unlike text and image data, graph data do not have a definitive structure, posing great challenges to developing a Graph Foundation Model (GFM). For example, current attempts at designing general graph models either transform graph data into a language format for LLM-based prediction or still train a GNN model with LLM as an assistant. The former can handle unlimited tasks, while the latter captures graph structure much better—yet, no existing work can achieve both simultaneously. In this paper, we first identify three key desirable properties of a GFM: self-supervised pretraining, fluidity in tasks, and graph awareness. To account for these properties, we extend the conventional language modeling to the graph domain and propose a novel generative graph language model GOFA. The model interleaves randomly initialized GNN layers into a frozen pre-trained LLM so that the semantic and structural modeling abilities are organically combined. GOFA is pre-trained on newly proposed graph-level next-word prediction, question-answering, structural understanding, and information retrieval tasks to obtain the above GFM properties. The pre-trained model is further instruction fine-tuned to obtain the task-solving ability. Our GOFA model is evaluated on various downstream datasets unseen during the pre-training and fine-tuning phases, demonstrating a strong ability to solve structural and contextual problems in zero-shot scenarios. The code is available at https://github.com/JiaruiFeng/GOFA.
+
+# 1 INTRODUCTION
+
+With the emergence of Large Language Models (LLMs), the field of artificial intelligence is undergoing a profound transformation, shifting from specialized, fragmented models to universal foundation models. A foundation model is pre-trained on large-scale datasets and can be further adapted to diverse downstream tasks using fine-tuning (Hu et al., 2022) or in-context learning (Bommasani et al., 2021; Touvron et al., 2023). Foundation models have been developed in different domains to handle text (Brown et al., 2020; Touvron et al., 2023), image (Kirillov et al., 2023; Bai et al., 2023), and even multi-modal data (Zhang et al., 2023c; Li et al., 2023; Alayrac et al., 2022). Because of their versatility and generalizability, foundation models have become prevalent in these domains.
+
+However, despite preliminary efforts, a foundation model in the graph domain has arguably yet to be proposed. In the graph domain, data are highly flexible and dynamic. For example, social networks receive millions of new connections daily (Hardiman & Katzir, 2013), and novel molecules and protein structures are frequently discovered (Abramson et al., 2024; Gilmer et al., 2017). While past researchers have proposed specialized models to learn graph data (Ying et al., 2021; Kipf & Welling, 2017), the models require retraining to accommodate new graphs (Dai et al., 2022; Mo et al., 2022). Moreover, trained models are usually tied to specific applications and cannot be generalized to new domains and tasks. It becomes increasingly difficult for models to adjust to the ever-evolving
+
+
+Figure 1: Examples of our pre-training tasks.
+
+nature of graph data. Hence, a graph foundation model (GFM) applicable to new domains/tasks with minimal or no adaptation costs is urgently needed, spurring recent endeavors to study general graph models. In particular, a strong zero-shot ability is both challenging and fascinating for GFM researchers.
+
+The success of LLMs inspired a series of preliminary attempts which use LLMs to develop general graph models. They can be roughly divided into two categories: LLM as a predictor and LLM as an enhancer (Chen et al., 2023). The LLM as a predictor approach transforms graph data into representations that LLMs can understand and use LLMs to generate predictions (Tang et al., 2023). However, as suggested by a recent study (Wang et al., 2023), such an approach falls short of understanding graph structures. This inspired the LLM as an enhancer approach, which adopts LLM to process and unify diverse graph data and feeds them to a GNN to train general graph models (Liu et al., 2023a; Huang et al., 2023a). Nevertheless, because GNN outputs fixed-sized representations/predictions, they can only handle specific tasks such as classification, and cannot generalize to arbitrary, new tasks due to the lack of generation ability. In summary, the current two approaches cannot fully utilize structural information and be generative simultaneously. We discuss the pros and cons of existing approaches in detail in Section 2.
+
+In this paper, we first identify three desirable properties of a graph foundation model (GFM), namely large-scale self-supervised pre-training, fluidity in tasks, and graph understanding. To achieve the first property, we propose a generic graph self-supervised learning problem similar to the next-token prediction problem in LLMs, allowing label-agnostic and continual training on highly diverse graph data. We then propose a generative model termed Generative One-For-All (GOFA) that interleaves GNN layers into an LLM to achieve the second and third properties. Such a novel design systematically integrates GNN into an LLM, granting the LLM graph structural learning ability while keeping LLM's original free-form text generation ability. Meanwhile, this design allows the pipeline of the original LLM to remain intact, giving GOFA a close-to-LLM level of task fluidity. We pre-train the model with large-scale real-world graph data, Question-Answer (QA) chain data adopted from the NLP domain, and graph structural data to empower the model with the aforementioned foundational abilities in the graph domain (Examples in Figure 1). After pre-training, we further instruction fine-tune the model on a small amount of data (relative to the pre-training data) to make it understand task formats. The fine-tuned model is finally evaluated on various downstream datasets unseen during pre-training and fine-tuning. GOFA achieved impressive results on the zero-shot scenario, which demonstrates the strong potential of GOFA to serve as a graph foundation model.
+
+# 2 A DESIRED FOUNDATION MODEL FOR GRAPH
+
+In this section, we elaborate on three crucial properties a true graph foundation model should possess to motivate our GOFA model design. We note that many contemporary works (partly) propose similar ideas to ours and thus we do not claim the credit. We kindly refer readers to the latest surveys (Liu et al., 2023b; Jin et al., 2023; Zhang et al., 2023d) for more discussions on GFMs.
+
+Large-Scale Self-Supervised Pre-training: One fundamental design of LLM is that it unifies all NLP tasks into a single next-token-prediction paradigm, which enables self-supervised pre-training on a large corpus collected from different sources. For pre-training graph models, while numerous efforts have been made from both the LLM as a predictor and LLM as an enhancer approaches, these attempts usually require the learning target to be labeled (Liu et al., 2023a; Chen et al., 2023). However, a graph foundation model should have no constraint on the input graph (has labels or not) and can learn cross-domain knowledge from large-scale graph data in a self-supervised fashion.
+
+Fluidity in Tasks: A graph foundation model should also possess the same level of versatility and fluidity in handling different tasks as an LLM. Specifically, such ability can be broken down into three levels: (a) The graph foundation model can naturally respond appropriately to different graph tasks based on user instructions without requiring task-specific adjustment (e.g., the same model performs classification and question-answering tasks without any modification.) (b) With appropriate instruction-tuning, the model should have in-context learning ability on unseen tasks (e.g., a model tuned on citation network also performs well on knowledge graphs with proper instructions). (c) Users should be able to define new, previously unseen tasks by modifying the graph structure and features in a way that aligns with the universal input representation of the model. They can continuously train the model on new data without special adaptation. Existing approaches that use GNN models as the predictors are usually either restricted in the output format (Liu et al., 2023a; Xia et al., 2024; He et al., 2024a) or need additional fine-tuning on the task head (Sun et al., 2023; Wang et al., 2022). Consequently, despite having better structural modeling ability, such models cannot accommodate task changes or deal with novel tasks, e.g., shifting from a classification task to a question-answering task that requires outputting all shortest paths between two nodes.
+
+Graph Understanding: Since the LLM as a predictor approach uses a generative LLM to take text input and produce text output, it naturally has the fluidity to accept varied prompts to tackle different tasks. However, such an approach processes the structural information poorly (Wang et al., 2023), making the utility of these models limited on many graph tasks. More importantly, even though some recent variants can use auxiliary graph models (such as GNNs) to incorporate structural information (Tang et al., 2023; He & Hooi, 2024; Zhang et al., 2024), the graph models are frozen and not responsive to different prompts, and the output from the graph models may not be the most relevant to the input prompt. On the contrary, a graph foundation model should account for the unique structural information of graphs such as node degrees, shortest paths, common neighbors, etc., and generate graph representations dependent on the input prompt. It should not only have LLM's prompt learning capability but also learn graph structure and semantic information jointly.
+
+# 3 METHOD
+
+In this section, we first propose a generative modeling framework for graphs, serving as the graph counterpart of traditional language modeling. Next, we introduce a novel GNN-LLM architecture for the proposed graph generative modeling problem. Finally, we describe the unified pre-training tasks to train GOFA towards the proposed GFM properties.
+
+# 3.1 GENERATIVE MODELING FOR GRAPH
+
+Unified task formats. A generative model usually takes existing contexts, such as user prompts and passages, as input to generate conditional output related to the contexts, such as answers and completed sentences. Defining unified input and output formats for tasks in language applications is easy, as they are purely text-based. Further, because both the pre-training and downstream tasks are constructed in the same format (i.e., next-token-prediction), the downstream tasks conveniently adapt the knowledge from pre-training tasks, resulting in surprising capabilities, such as zero-shot learning. However, graph data from different domains vary significantly by input feature (e.g., nodes in a citation network have completely different vector representations as nodes in a knowledge graph) and output target, preventing direct knowledge transfer between tasks. Hence, the first challenge is to define a unified format for graph tasks, such that the model can do large-scale self-supervised pre-training on arbitrary graphs and transfer to downstream tasks seamlessly.
+
+To unify graph task input, we follow the previous work OFA (Liu et al., 2023a) and extend the definition of Text-Attribute Graph (TAG) beyond graphs with text features such as citation and
+
+product networks. In fact, any node and edge features can be represented by texts. For example, in airline networks, airport and flight route details can be converted into textual descriptions for nodes and edges. Non-textural features, like numerical data, can also be transformed into text strings, as in LLMs. Even for graphs without any features, we can still attach sentences like "The degree of this node is $3$ to nodes. Formally, a TAG is a graph $G = \{V,E,X_V,X_E\}$ where $V$ and $E$ are the sets of nodes and edges. Each node $v\in V$ (edge $e\in E$ ) corresponds to a text description $x(v)\in X_{V}$ $(x(e)\in X_{E})$ . Such a format encodes almost all existing graph data and serves well as a general input representation.
+
+For self-supervised language modeling, the generated output essentially completes the input sentence. Such a task requires the model to have a deep semantic and logical understanding of the provided contexts, which is crucial for downstream applications. Similarly, in graph modeling, we aim to achieve the same level of understanding through graph completion tasks. Given a TAG, the output should complete the graph conditioned on its semantic and structural information. We choose to use natural language as the most tangible output format to complete a TAG. Succinctly, all natural language tasks can be modeled as sentence completion, and similarly, we aim to model all graph tasks with graph completion.
+
+Generative Graph Modeling. We then formally define the generative graph modeling framework for graph completion. This framework supports various graph-related tasks, including classification and free-form question answering. An LLM starts generating only from the end of the input sentence. However, in a TAG, every end of a sentence on a node is a potential generation starting point, but users might only be interested in generating output for specific nodes. To accommodate this, we introduce Nodes of Generation (NOG), allowing users to specify starting points for generation. The modeling task is to take a TAG as input and complete the TAG logically and sensibly by completing the sentences on the potentially user-specified nodes.
+
+We define graph generative modeling as the likelihood of the text $y$ associated with the NOG $v$ :
+
+$$
+p (y | v, G) = \prod_ {l = 1} ^ {L} p \left(y _ {l} \mid y _ {< l}, v, G\right), \tag {1}
+$$
+
+where $y_{l}$ is the $l$ -th token of $y$ , and $y_{
Task
Cora-Node
WikiCS
Products
ExplaGraphs
Cora-Link
Way
7
2
10
5
47
10
5
2
2
LLama2-7B
47.92
73.45
40.10
58.77
27.65
58.71
64.33
57.76
48.15
Mistral-7B
60.54
88.39
63.63
71.90
43.99
70.16
74.94
68.77
49.43
OFA-Llama2
28.65
56.92
21.20
35.15
19.37
30.43
39.31
51.36
52.22
GraphGPT
44.65
-
-
-
18.84
-
-
-
50.74
UniGraph
69.53
89.74
43.45
60.23
38.45
66.07
75.73
-
-
ZeroG
64.21
87.83
31.26
48.25
31.24
51.24
71.29
-
-
LLaGA
51.85
62.73
-
-
23.10
34.15
39.72
-
88.09
GOFA-T
70.81
85.73
71.17
80.93
54.60
79.33
87.13
79.49
85.10
GOFA-F
69.41
87.52
68.84
80.62
56.13
80.03
88.34
71.34
86.31
+
+# 5 EXPERIMENT
+
+This section evaluates the proposed methods by answering the following four questions: Q1: Are the pre-training tasks in GOFA effective for graph-language modeling and structure understanding? Q2: Does the pre-trained GOFA help with critical general graph model application, zero-shot learning? Q3: Is using GOFA more advantageous than LLMs in graph tasks? Q4: Does GOFA have the fluidity to handle open-ended graph-related tasks? Additionally, we also include supervised experiments in Appendix F.5.
+
+# 5.1 GOFA PRE-TRAINING
+
+To answer Q1, we pre-train the GOFA model using ICAE models on Mistral-7B (Jiang et al., 2023), optimizing the objective in Equation (1) using the proposed tasks. The training details can be found in Appendix F.3. After training, we evaluate the perplexity of both GOFA and base LLM on Cora, Product, and Wikics datasets (all three are not included in the pre-training). We report the perplexity in Table 1. Note that during pre-training, we only update the weight of the GNN layers, and GOFA's lower perplexity shows that the structural
+
+Table 1: Evaluation for pretrained GOFA. (RMSE for SPD and CN)
+
+
Perplexity ↓
SPD ↓
CN ↓
Mistral-7B
30.12
1.254
1.035
GOFA-SN
26.20
-
-
GOFA
21.34
0.634
0.326
+
+and semantic information in the node's neighbor can effectively help complete the sentence with more relevance than the original LLM. Further, to validate that training of GOFA will not affect the original LLMs' ability, we input GOFA with single node graphs without any connections (denoted as GOFA-SN) to evaluate the perplexity, as shown in Table 1. We can see that without connection information around the center node, generation on a single node graph remains comparable to LLM and even better due to the pre-training process, showing that GOFA training does not destroy the desirable property of a pre-trained LLM. Besides sentence completion, another important GOFA pre-training objective is the structure learning ability. We report the shortest path distance and common neighbor count prediction results in Table 1, compared with LLM models whose inputs are textualized graphs with descriptions of edge connections. The datasets we used were Cora and Product. We see a significant performance improvement of GOFA over base LLM, showing that a difficult graph task for LLM can be well solved by the GNN layers with better structure modeling ability.
+
+# 5.2 ZERO-SHOT LEARNING WITH GOFA
+
+To answer Q2, we performed zero-shot experiments on various graph tasks. Despite using QA-chain data in the pre-training stage, the graph data does not include knowledge about task formats like classification and does not output exact matches to the answers. Hence, we first instruction-tuned the pre-trained GOFA in Section 5.1 on a small amount of data. We report the zero-shot results of two GOFA instruction tuning settings named GOFA-T and GOFA-F, as shown in Table 2 and Table 3. GOFA-T includes node and link classification tasks from Arxiv and Pubmed and GOFA-F additionally adds MAG240M and Wiki90mv2 datasets. The instruction-tuning details can be found in
+
+Table 3: Zero-shot experiment results with instruction tuning on FB15K237 and Scene Graphs.
+
+
Task Format
FB15K237 10-Way
SceneGraphs QA
Llama2-7B
48.32
38.62
Mistral-7B
62.48
45.95
GOFA-T
73.59
34.06
GOFA-F
80.69
31.36
+
+
+Figure 4: Performance vs pre-training sample size.
+
+
+Figure 5: Pre-training Tasks Ablation Study.
+
+Table 4: Comparison between GOFA and LLM with the same input.
+
+
Task Metric
ExplaGraphs Acc ↑
Time sec/sample ↓
WikiCS Acc ↑
Time sec/sample ↓
Cora-Link Acc ↑
Time sec/sample ↓
FB15k237 Acc ↑
Time sec/sample ↓
LLM-N
74.13
1.50
OOM
OOM
50.36
3.84
51.25
3.92
GOFA-F
79.49
0.48
71.17
2.43
85.10
1.67
73.49
3.37
Improvement
7.23%
68.00%
NA
NA
68.98%
56.51%
43.40%
14.03%
+
+Appendix F.4. Note that the zero-shot datasets are unseen during both pre-training and instruction finetuning. The goal of instruction fine-tuning is not to let the model learn particular knowledge from these datasets but to make the model understand the task format described in Appendix F.4.
+
+While the instruction-tuning dataset only covers the relatively small spectrum of the graph datasets, we observe that GOFA achieves very non-trivial performance on all node-level (Cora-Node, WikiCS, Products), link-level (FB15K237, Cora-Link), and graph-level (ExplaGraphs, SceneGraphs) tasks. GOFA also generalizes to different ways and even question-answering (SceneGraphs) tasks, showing its desirable fluidity. GOFA outperforms LLM and graph foundation model baselines on most datasets and exceeds best baselines by a large margin ( $>10\%$ ) on WikiCS, Products, FB15K237 and ExplaGraphs, showing GOFA's ability to combine the advantage of both LLM and graph models. GOFA not only achieves remarkable results on the knowledge graph and academic graph, which are proximal to the trained data but also excels in Products and ExplaGraphs whose distribution shifts significantly from training data, which further highlights GOFA's substantial generalizability. Meanwhile, we observe that GOFA is only achieving comparable performance to LLM on the SceneGraph dataset. We suspect that the instruct-tuning data contains information-dense texts, reducing the model's ability on common sense questions that this dataset requires. In the future, we plan to diversify instruction-tuning datasets with common sense knowledge to enhance such ability.
+
+We further conducted the same experiments on intermediate pre-training checkpoints, and show results in Figure 4. We observe that as the model witnesses more pre-training samples/tokens, the downstream task performance also increases significantly, confirming the importance of large-scale pre-training on graph data. The performance continues to improve, meaning that the model can potentially scale to higher capability with more samples; we leave this to future work. In Figure 5, we plot the instruction-tuning performance when we remove the Wikipedia datasets and information retrieval task (w/o R+W), only remove the retrieval task, (w/o R), and full tasks. We can see that Wikipedia datasets improve the model performance of all the datasets for the diverse corpus it introduced. The retrieval tasks particularly improve the knowledge graph performance due to the improved ability to retrieve key correlations between target entities. These show the necessity and effectiveness of the overall pre-training task selection and design. In Appendix B.1, we further conduct zero-shot experiments on molecule datasets.
+
+# 5.3 COMPARING GOFA WITH LLMS
+
+Answering Q3 is critical to understanding the necessity of the GNN layers and the effectiveness of GOFA as a general graph model. We compare GOFA to LLM whose textual prompt contains the same information as the input graph to GOFA. Specifically, for a GOFA input graph, we concatenate all node texts as the prompt and append the connection information to it, as in "Node A connects
+
+
+Figure 6: GOFA diverse responses to open-ended questions.
+
+to Node $B''$ . The text is then combined with task and question descriptions as input to an LLM for classification tasks. Approaches similar to this are widely adopted and acknowledged (Chen et al., 2023; Fatemi et al.). We present both the classification performance and per sample inference time in Table 4 and denote the LLM method as LLM-N. We observe impressive performance improvement of GOFA on all datasets, even when the LLM is prompted with the same information, showing that GOFA, with the help of the GNN and interleaving design, utilizes the graph information much more effectively. Moreover, we also observe a fundamental reduction in inference costs, confirming our analysis in Section 3.2 that, with the same input, GOFA is more efficient than LLMs. Note that when the input size is large, such as in WikiCS, LLM struggles with high memory consumption of the long sequence, whereas the GOFA avoids that by leveraging the sparsity of graph data and using edge information to compute the most important attention information.
+
+# 5.4 GOFA RESPONSES ON DIVERSE TASKS
+
+Finally, we answer Q4 by providing generation examples of GOFA in Figure 6, where we prompt the same citation graph differently and achieved corresponding and high-quality responses. The top and middle examples have the same connection for their NOGs (both connected to the same five nodes), but when we change the prompt text on the NOGs, the generated texts also adjust accordingly, utilizing the neighbor node information, validating that the message-passing is conditioned on the prompt. As in the bottom example, we can also prompt the graph differently by connecting the NOG to two target nodes and querying about the shortest path distance. In this case, the model successfully generates actual paths between the two nodes, which is an ability not seen in traditional graph models that can only output numerical predictions about the path length. These examples demonstrate GOFA's outstanding ability to answer open-ended questions. More examples are provided in B.4.
+
+# 6 CONCLUSION, LIMITATIONS, AND FUTURE WORKS
+
+We introduce GOFA, a generative One-for-All graph foundation model. GOFA is pre-trained under a graph completion framework to enable large-scale self-supervised learning. By integrating GNN layers with LLM layers, GOFA combines the generative capabilities of LLMs for free-form output with the structural learning strengths of GNNs for understanding complex graph connections. Our experiments demonstrate that GOFA, when fine-tuned with a small number of data, achieves impressive zero-shot performance in unseen datasets. However, our zero-shot experiment mainly focuses on evaluating models on unseen datasets with similar task formats instead of unseen task formats. Additionally, we employ a frozen LLM compressor in GOFA; hence, the compression capability is not naturally unified with the graph data, potentially impacting the adaptability of the model. We will explore harder zero-shot settings and better fine-tuning strategies in the future.
+
+# 7 ACKNOWLEDGEMENT
+
+This work is partially supported by the National Key R&D Program of China (2022ZD0160300) and NSF grant CBE-2225809.
+
+# REFERENCES
+
+Josh Abramson, Jonas Adler, Jack Dunger, Richard Evans, Tim Green, Alexander Pritzel, Olaf Ronneberger, Lindsay Willmore, Andrew J Ballard, Joshua Bambrick, et al. Accurate structure prediction of biomolecular interactions with alphafold 3. Nature, pp. 1-3, 2024.
+Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katherine Millican, Malcolm Reynolds, et al. Flamingo: a visual language model for few-shot learning. Advances in neural information processing systems, 35:23716-23736, 2022.
+Yutong Bai, Xinyang Geng, Karttikeya Mangalam, Amir Bar, Alan Yuille, Trevor Darrell, Jitendra Malik, and Alexei A Efros. Sequential modeling enables scalable learning for large vision models. arXiv preprint arXiv:2312.00785, 2023.
+Rishi Bommasani, Drew A. Hudson, Ehsan Adeli, Russ Altman, Simran Arora, Sydney von Arx, Michael S. Bernstein, Jeannette Bohg, Antoine Bosselut, Emma Brunskill, Erik Brynjolfsson, S. Buch, Dallas Card, Rodrigo Castellon, Niladri S. Chatterji, Annie S. Chen, Kathleen A. Creel, Jared Davis, Dora Demszky, Chris Donahue, Moussa Doumbouya, Esin Durmus, Stefano Ermon, John Etchemendy, Kawin Ethayarajh, Li Fei-Fei, Chelsea Finn, Trevor Gale, Lauren E. Gillespie, Karan Goel, Noah D. Goodman, Shelby Grossman, Neel Guha, Tatsunori Hashimoto, Peter Henderson, John Hewitt, Daniel E. Ho, Jenny Hong, Kyle Hsu, Jing Huang, Thomas F. Icard, Sahil Jain, Dan Jurafsky, Pratyusha Kalluri, Siddharth Karamcheti, Geoff Keeling, Fereshte Khani, O. Khattab, Pang Wei Koh, Mark S. Krass, Ranjay Krishna, Rohith Kuditipudi, Ananya Kumar, Faisal Ladhak, Mina Lee, Tony Lee, Jure Leskovec, Isabelle Levent, Xiang Lisa Li, Xuechen Li, Tengyu Ma, Ali Malik, Christopher D. Manning, Suvir Mirchandani, Eric Mitchell, Zanele Munyikwa, Suraj Nair, Avanika Narayan, Deepak Narayanan, Benjamin Newman, Allen Nie, Juan Carlos Niebles, Hamed Nilforoshan, J. F. Nyarko, Giray Ogut, Laurel J. Orr, Isabel Papadimitriou, Joon Sung Park, Chris Piech, Eva Portelance, Christopher Potts, Aditi Raghunathan, Robert Reich, Hongyu Ren, Frieda Rong, Yusuf H. Roohani, Camilo Ruiz, Jack Ryan, Christopher R'e, Dorsa Sadigh, Shiori Sagawa, Keshav Santhanam, Andy Shih, Krishna Parasuram Srinivasan, Alex Tamkin, Rohan Taori, Armin W. Thomas, Florian Tramèr, Rose E. Wang, William Wang, Bohan Wu, Jiajun Wu, Yuhuai Wu, Sang Michael Xie, Michihiro Yasunaga, Jiaxuan You, Matei A. Zaharia, Michael Zhang, Tianyi Zhang, Xikun Zhang, Yuhui Zhang, Lucia Zheng, Kaitlyn Zhou and Percy Liang. On the opportunities and risks of foundation models. ArXiv, abs/2108.07258 2021. URL https://api-semanticscholar.org/CorpusID:237091588.
+Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 1877-1901. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper_files/paper/2020/file/1457c0d6bfb4967418bf8ac142f64a-Paper.pdf.
+Runjin Chen, Tong Zhao, Ajay Jaiswal, Neil Shah, and Zhangyang Wang. Llaga: Large language and graph assistant. arXiv preprint arXiv:2402.08170, 2024.
+Zhikai Chen, Haitao Mao, Hang Li, Wei Jin, Hongzhi Wen, Xiaochi Wei, Shuaiqiang Wang, Dawei Yin, Wenqi Fan, Hui Liu, and Jiliang Tang. Exploring the potential of large language models (llms) in learning on graphs, 2023.
+
+Quanyu Dai, Xiao-Ming Wu, Jiaren Xiao, Xiao Shen, and Dan Wang. Graph transfer learning via adversarial domain adaptation with graph convolution. IEEE Transactions on Knowledge and Data Engineering, 35(5):4908-4922, 2022.
+Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Zhi Zheng, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. Enhancing chat language models by scaling high-quality instructional conversations, 2023.
+Bahare Fatemi, Jonathan Halcrow, and Bryan Perozzi. Talk like a graph: Encoding graphs for large language models. In The Twelfth International Conference on Learning Representations.
+Jiarui Feng, Yixin Chen, Fuhai Li, Anindya Sarkar, and Muhan Zhang. How powerful are k-hop message passing graph neural networks. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho (eds.), Advances in Neural Information Processing Systems, 2022. URL https://openreview.net/forum?id=nN3aVRQsxGd.
+Jiarui Feng, Lecheng Kong, Hao Liu, Dacheng Tao, Fuhai Li, Muhan Zhang, and Yixin Chen. Extending the design space of graph neural networks by rethinking folklore weisfeiler-lehman. In A. Oh, T. Neumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 9029-9064. Curran Associates, Inc., 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/1cac8326ce3fbe79171db9754211530c-Paper-Conference.pdf.
+Matthias Fey and Jan Eric Lenssen. Fast graph representation learning with pytorch geometric, 2019.
+Mikhail Galkin, Xinyu Yuan, Hesham Mostafa, Jian Tang, and Zhaocheng Zhu. Towards foundation models for knowledge graph reasoning. In The Twelfth International Conference on Learning Representations, 2023.
+Tao Ge, Hu Jing, Lei Wang, Xun Wang, Si-Qing Chen, and Furu Wei. In-context autoencoder for context compression in a large language model. In The Twelfth International Conference on Learning Representations, 2023.
+Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In International conference on machine learning, pp. 1263-1272. PMLR, 2017.
+Jiayan Guo, Lun Du, Hengyu Liu, Mengyu Zhou, Xinyi He, and Shi Han. Gpt4graph: Can large language models understand graph structured data? an empirical evaluation and benchmarking, 2023.
+Stephen J Hardiman and Liran Katzir. Estimating clustering coefficients and size of social networks via random walk. In Proceedings of the 22nd international conference on World Wide Web, pp. 539-550, 2013.
+Xiaoxin He, Xavier Bresson, Thomas Laurent, Adam Perold, Yann LeCun, and Bryan Hooi. Harnessing explanations: LLM-to-LM interpreter for enhanced text-attributed graph representation learning. In The Twelfth International Conference on Learning Representations, 2024a. URL https://openreview.net/forum?id=RXFVcynVe1.
+Xiaoxin He, Yijun Tian, Yifei Sun, Nitesh V. Chawla, Thomas Laurent, Yann LeCun, Xavier Bresson, and Bryan Hooi. G-retriever: Retrieval-augmented generation for textual graph understanding and question answering, 2024b.
+Yufei He and Bryan Hooi. Unigraph: Learning a cross-domain graph foundation model from natural language. arXiv preprint arXiv:2402.13630, 2024.
+Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. *Neural Comput.*, 9(8): 1735-1780, nov 1997. ISSN 0899-7667. doi: 10.1162/neco.1997.9.8.1735. URL https://doi.org/10.1162/neco.1997.9.8.1735.
+
+Zhenyu Hou, Yufei He, Yukuo Cen, Xiao Liu, Yuxiao Dong, Evgeny Kharlamov, and Jie Tang. Graphmae2: A decoding-enhanced masked self-supervised graph learner. In Proceedings of the ACM Web Conference 2023, WWW '23, pp. 737-746, New York, NY, USA, 2023. Association for Computing Machinery. ISBN 9781450394161. doi: 10.1145/3543507.3583379. URL https://doi.org/10.1145/3543507.3583379.
+Edward J Hu, yelong shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuzhhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=nZeVKeeFYf9.
+Weihua Hu, Matthias Fey, Hongyu Ren, Maho Nakata, Yuxiao Dong, and Jure Leskovec. Ogb-lsc: A large-scale challenge for machine learning on graphs, 2021a.
+Weihua Hu, Matthias Fey, Hongyu Ren, Maho Nakata, Yuxiao Dong, and Jure Leskovec. Ogb-lsc: A large-scale challenge for machine learning on graphs. arXiv preprint arXiv:2103.09430, 2021b.
+Qian Huang, Hongyu Ren, Peng Chen, Gregor Kržmanc, Daniel Zeng, Percy Liang, and Jure Leskovec. Prodigy: Enabling in-context learning over graphs. arXiv preprint arXiv:2305.12600, 2023a.
+Xuanwen Huang, Kaiqiao Han, Yang Yang, Dezheng Bao, Quanjin Tao, Ziwei Chai, and Qi Zhu. Can gnn be good adapter for llms? arXiv preprint arXiv:2402.12984, 2024.
+Yinan Huang, Xingang Peng, Jianzhu Ma, and Muhan Zhang. Boosting the cycle counting power of graph neural networks with i$^2$-GNNs. In The Eleventh International Conference on Learning Representations, 2023b. URL https://openreview.net/forum?id=kDSmxOspSxQ.
+Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. Mistral 7b, 2023.
+Bowen Jin, Gang Liu, Chi Han, Meng Jiang, Heng Ji, and Jiawei Han. Large language models on graphs: A comprehensive survey. arXiv preprint arXiv:2312.02783, 2023.
+Nicolas Keriven and Gabriel Peyré. Universal invariant and equivariant graph neural networks. Advances in Neural Information Processing Systems, 32, 2019.
+Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations, 2017. URL https://openreview.net/forum?id=SJU4ayYgl.
+Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 4015-4026, 2023.
+Lecheng Kong, Yixin Chen, and Muhan Zhang. Geodesic graph neural network for efficient graph representation learning. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho (eds.), Advances in Neural Information Processing Systems, 2022. URL https://openreview.net/forum?id=6pC5OtP7eBx.
+Lecheng Kong, Jiarui Feng, Hao Liu, Dacheng Tao, Yixin Chen, and Muhan Zhang. Mag-gnn: Reinforcement learning boosted graph neural network. In A. Oh, T. Neumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 12000-12021. Curran Associates, Inc., 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/2788b4cdf421e03650868cc4184bfed8-Paper-Conference.pdf.
+Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. In International conference on machine learning, pp. 19730-19742. PMLR, 2023.
+
+Yuhan Li, Peisong Wang, Zhixun Li, Jeffrey Xu Yu, and Jia Li. Zerog: Investigating cross-dataset zero-shot transferability in graphs. arXiv preprint arXiv:2402.11235, 2024.
+Hao Liu, Jiarui Feng, Lecheng Kong, Ningyue Liang, Dacheng Tao, Yixin Chen, and Muhan Zhang. One for all: Towards training one graph model for all classification tasks. In The Twelfth International Conference on Learning Representations, 2023a.
+Jiawei Liu, Cheng Yang, Zhiyuan Lu, Junze Chen, Yibo Li, Mengmei Zhang, Ting Bai, Yuan Fang, Lichao Sun, Philip S Yu, et al. Towards graph foundation models: A survey and beyond. arXiv preprint arXiv:2310.11829, 2023b.
+Yixin Liu, Ming Jin, Shirui Pan, Chuan Zhou, Yu Zheng, Feng Xia, and S Yu Philip. Graph self-supervised learning: A survey. IEEE transactions on knowledge and data engineering, 35(6): 5879-5900, 2022.
+Zemin Liu, Xingtong Yu, Yuan Fang, and Xinming Zhang. Graphprompt: Unifying pre-training and downstream tasks for graph neural networks. In Proceedings of the ACM Web Conference 2023, 2023c.
+Haitao Mao, Zhikai Chen, Wenzhuo Tang, Jianan Zhao, Yao Ma, Tong Zhao, Neil Shah, Michael Galkin, and Jiliang Tang. Graph foundation models. arXiv preprint arXiv:2402.02216, 2024.
+Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. In International Conference on Learning Representations, 2022.
+Péter Mernyei and Catalina Cangea. Wiki-cs: A wikipedia-based benchmark for graph neural networks. arXiv preprint arXiv:2007.02901, 2020.
+Yujie Mo, Liang Peng, Jie Xu, Xiaoshuang Shi, and Xiaofeng Zhu. Simple unsupervised graph representation learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pp. 7797-7805, 2022.
+Christopher Morris, Martin Ritzert, Matthias Fey, William L Hamilton, Jan Eric Lenssen, Gaurav Rattan, and Martin Grohe. Weisfeiler and leman go neural: Higher-order graph neural networks. In Proceedings of the AAAI conference on artificial intelligence, pp. 4602-4609, 2019.
+Moritz Plenz and Anette Frank. Graph language models, 2024. URL https://arxiv.org/abs/2401.07105.
+Chen Qian, Huayi Tang, Zhirui Yang, Hong Liang, and Yong Liu. Can large language models empower molecular property prediction?, 2023.
+Samyam Rajbhandari, Jeff Rasley, Olatunj Ruwase, and Yuxiong He. Zero: Memory optimizations toward training trillion parameter models. In SC20: International Conference for High Performance Computing, Networking, Storage and Analysis, pp. 1-16. IEEE, 2020.
+Yu Rong, Yatao Bian, Tingyang Xu, Weiyang Xie, Ying Wei, Wenbing Huang, and Junzhou Huang. Self-supervised graph transformer on large-scale molecular data. Advances in Neural Information Processing Systems, 33, 2020.
+Yunsheng Shi, Zhengjie Huang, Shikun Feng, Hui Zhong, Wenjin Wang, and Yu Sun. Masked label prediction: Unified message passing model for semi-supervised classification, 2021.
+Bing Su, Dazhao Du, Zhao Yang, Yujie Zhou, Jiangmeng Li, Anyi Rao, Hao Sun, Zhiwu Lu, and Ji-Rong Wen. A molecular multimodal foundation model associating molecule graphs with natural language. arXiv preprint arXiv:2209.05481, 2022.
+Xiangguo Sun, Hong Cheng, Jia Li, Bo Liu, and Jihong Guan. All in one: Multi-task prompting for graph neural networks. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, KDD '23, pp. 2120-2131, New York, NY, USA, 2023. Association for Computing Machinery. ISBN 9798400701030. doi: 10.1145/3580305.3599256. URL https://doi.org/10.1145/3580305.3599256.
+
+Jiabin Tang, Yuhao Yang, Wei Wei, Lei Shi, Lixin Su, Suqi Cheng, Dawei Yin, and Chao Huang. Graphcpt: Graph instruction tuning for large language models, 2023.
+Jiabin Tang, Yuhao Yang, Wei Wei, Lei Shi, Long Xia, Dawei Yin, and Chao Huang. Higpt: Heterogeneous graph language model. arXiv preprint arXiv:2402.16024, 2024.
+Ross Taylor, Marcin Kardas, Guillem Cucurull, Thomas Scialom, Anthony Hartshorn, Elvis Saravia, Andrew Poulton, Viktor Kerkez, and Robert Stojnic. Galactica: A large language model for science. arXiv preprint arXiv:2211.09085, 2022.
+Shantanu Thakoor, Corentin Tallec, Mohammad Gheshlaghi Azar, Rémi Munos, Petar Velicković, and Michal Valko. Bootstrapped representation learning on graphs. In ICLR 2021 Workshop on Geometrical and Topological Representation Learning, 2021.
+Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. Llama 2: Open foundation and fine-tuned chat models, 2023.
+Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
+Petar Velicković, William Fedus, William L Hamilton, Pietro Lio, Yoshua Bengio, and R Devon Hjelm. Deep graph infomax. arXiv preprint arXiv:1809.10341, 2018.
+Petar Velicković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=rJXMpikCZ.
+Heng Wang, Shangbin Feng, Tianxing He, Zhaoxuan Tan, Xiaochuang Han, and Yulia Tsvetkov. Can language models solve graph problems in natural language?, 2023.
+Song Wang, Kaize Ding, Chuxu Zhang, Chen Chen, and Jundong Li. Task-adaptive few-shot node classification. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pp. 1910-1919, 2022.
+Xixi Wu, Yifei Shen, Caihua Shan, Kaitao Song, Siwei Wang, Bohang Zhang, Jiarui Feng, Hong Cheng, Wei Chen, Yun Xiong, et al. Can graph learning improve task planning? arXiv preprint arXiv:2405.19119, 2024.
+Lianghao Xia, Ben Kao, and Chao Huang. Opengraph: Towards open graph foundation models. arXiv preprint arXiv:2403.01121, 2024.
+Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In International Conference on Learning Representations, 2018.
+Junhan Yang, Zheng Liu, Shitao Xiao, Chaozhuo Li, Defu Lian, Sanjay Agrawal, Amit S, Guangzhong Sun, and Xing Xie. Graphformers: GNN-nested transformers for representation learning on textual graph. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan (eds.), Advances in Neural Information Processing Systems, 2021. URL https://openreview.net/forum?id=yILzFBjROY.
+Ruosong Ye, Caiqi Zhang, Runhui Wang, Shuyuan Xu, and Yongfeng Zhang. Natural language is all a graph needs, 2023.
+
+Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng, Guolin Ke, Di He, Yanming Shen, and Tie-Yan Liu. Do transformers really perform badly for graph representation? In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan (eds.), Advances in Neural Information Processing Systems, 2021. URL https://openreview.net/forum?id=OeWooOxFwDa.
+Xingtong Yu, Zhenghao Liu, Yuan Fang, Zemin Liu, Sihong Chen, and Xinming Zhang. Generalized graph prompt: Toward a unification of pre-training and downstream tasks on graphs, 2023.
+Bohang Zhang, Guhao Feng, Yiheng Du, Di He, and Liwei Wang. A complete expressiveness hierarchy for subgraph gnns via subgraph weisfeiler-lehman tests, 2023a.
+Bohang Zhang, Shengjie Luo, Liwei Wang, and Di He. Rethinking the expressive power of GNNs via graph biconnectivity. In The Eleventh International Conference on Learning Representations, 2023b. URL https://openreview.net/forum?id=r9hNv76KoT3.
+Hang Zhang, Xin Li, and Lidong Bing. Video-llama: An instruction-tuned audio-visual language model for video understanding. arXiv preprint arXiv:2306.02858, 2023c. URL https:// arxiv.org/abs/2306.02858.
+Mengmei Zhang, Mingwei Sun, Peng Wang, Shen Fan, Yanhu Mo, Xiaoxiao Xu, Hong Liu, Cheng Yang, and Chuan Shi. Graphtranslator: Aligning graph model to large language model for open-ended tasks. arXiv preprint arXiv:2402.07197, 2024.
+Muhan Zhang and Pan Li. Nested graph neural networks. Advances in Neural Information Processing Systems, 34:15734-15747, 2021.
+Muhan Zhang, Pan Li, Yinglong Xia, Kai Wang, and Long Jin. Labeling trick: A theory of using graph neural networks for multi-node representation learning. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan (eds.), Advances in Neural Information Processing Systems, 2021. URL https://openreview.net/forum?id=Hcr9mgBG6ds.
+Ziwei Zhang, Haoyang Li, Zeyang Zhang, Yijian Qin, Xin Wang, and Wenwu Zhu. Graph meets llms: Towards large graph models. In NeurIPS 2023 Workshop: New Frontiers in Graph Learning, 2023d.
+Haiteng Zhao, Shengchao Liu, Chang Ma, Hannan Xu, Jie Fu, Zhi-Hong Deng, Lingpeng Kong, and Qi Liu. Gimlet: A unified graph-text model for instruction-based molecule zero-shot learning, 2023a.
+Jianan Zhao, Le Zhuo, Yikang Shen, Meng Qu, Kai Liu, Michael Bronstein, Zhaocheng Zhu, and Jian Tang. Graphtext: Graph reasoning in text space, 2023b.
+
+# APPENDIX
+
+# A IMPLEMENTATION DETAILS
+
+# A.1 IN-CONTEXT AUTOENCODER (ICAE)
+
+This section briefly introduces ICAE and how it helps build the GOFA model; please refer to ICAE paper (Ge et al., 2023) for the specifics of the model. ICAE contains two decoder-only LLMs. One serves as a language compressor that compresses sentences into a fixed-length sequence of vectors, and the other serves as a language decoder that decodes or queries into the compressed sentence representations. Specifically, during training, an input token sequence $\mathbf{x} = \{x_{1},\dots,x_{l}\}$ is appended by a $K$ memory tokens $\{m_1,\dots,m_k\}$ with trainable embeddings. The concatenated sequence is fed to the LLM compressor with a LoRA adapter (Hu et al., 2022).
+
+$$
+\{h \left(x _ {1}\right), \dots , h \left(x _ {l}\right), h \left(m _ {1}\right), \dots , h \left(m _ {K}\right) \} = L L M _ {\text {c o m p}} \left(\left\{e \left(x _ {1}\right), \dots , e \left(x _ {l}\right), e \left(m _ {1}\right), \dots , e \left(m _ {K}\right) \right\}\right), \tag {4}
+$$
+
+where $e(\cdot)$ and $h(\cdot)$ are the token embeddings and LLM outputs. Then, the decoder LLM only attends to the memory token outputs and tries to decode the original sentence from the memory tokens.
+
+$$
+\begin{array}{l} \{l (m _ {1}), \dots , l (m _ {K}), l (x _ {1}), \dots , l (x _ {l}) \} = L L M _ {d e c} (\{h (m _ {1}), \dots , h (m _ {K}), e (x _ {1}), \dots , e (x _ {l}) \}), \\ \min _ {\Theta_ {c o m p}} \operatorname {C r o s s E n t r o p y} \left(\left\{l \left(m _ {K}\right), l \left(x _ {1}\right), \dots , l \left(x _ {l - 1}\right) \right\}, \left\{x _ {1}, \dots , x _ {l} \right\}\right). \tag {5} \\ \end{array}
+$$
+
+The ICAE model is also trained on QA and Language modeling tasks to have more diverse embeddings.
+
+By training this auto-encoder objective on a large-scale, the compressor model learns to compress all information about a sentence to the memory token outputs like in a conventional auto-encoder model. In Table 5, we provide a few examples of the comparison between the original text and the text decoded from the compressed memory tokens by ICAE's decoder. Because the compressed representation contains as much information as possible, GNN can pass messages between nodes with minimal information loss.
+
+Table 5: Comparison between original texts and decoded text from the compressed representation.
+
+
Original Text
Decoded Text
Actress Halle Berry has been sharing a number of stunning photos from the time she has spent in Morocco and she just posted a new one to her Instagram page that fans will not want to miss.
Halle Berry has been sharing a number of stunning photos from the time she has spent in Morocco and just posted a new one on her Instagram page that fans won’t want to miss.
Utah avoided the turnover bug on Saturday for the first time since its season opener. In addition, the running game was clicking and the defense was dominant as the Utes snapped a two-game win-ning streak on the road, beating Pittsburgh 26-14. Five keys to Utah’s victory: 1. Utah running back John White IV: Running strong and with purpose from the beginning, White was a big reason why the Utes were within striking distance at halftime. White, who took a couple pops that dislodged his helmet and caused a cut below his ear, seemed to get stronger as the game wore on. He finished the afternoon with 171 yards on 36 carries.
Utah avoided the turnover bug on Saturday for the first time since its season opener. In addition, the running game was clicking and the defense was dominant as the Utes snapped a two-game win-ning streak on the road, beating Pittsburgh 26-14. Five keys to Utah’s victory: 1. 2. 3. 4. 5. Utah running back John John White IV ran strong and with purpose from the beginning, being a big reason why the Utes were within striking distance at halftime. He took a couple of shots that dislodged his helmet and caused a cut below his ear, but seemed to get stronger as the game went on. He finished the afternoon with 171 yards on 36 carries.
+
+# A.2 LLM CHOICES OF GOFA
+
+Because ICAE preserves as much information in a sentence as possible, we can use it in the GOFA model to comprehensively pass information between sentences, as shown in Section 3.2. However,
+
+the GOFA model is not limited to ICAE. Users can first train an ICAE-like objective on any existing LLM and apply the GOFA model to the trained LLM. Or, users can apply the GOFA directly to a pre-trained LLM and train the GOFA without the auto-encoder training. Note that the ICAE architecture has a function similar to an encoder-decoder LLM. We do not use an off-the-shelve encoder-decoder LLM because its encoder output is still subject to the sentence length, which does not fit GNN's need for fixed-sized input.
+
+The design of GOFA can be extended beyond a compressor-decoder architecture. For example, we can have a decoder-only GOFA whose LLM layer is,
+
+$$
+\left\{Q _ {x} ^ {t + 1}, Q _ {m, x} ^ {t + 1}, Q _ {y} ^ {t + 1} \right\} = L L M ^ {t} \left(\left\{Q _ {x} ^ {t}, H _ {x} ^ {t}, Q _ {y} ^ {t} \right\}\right), \tag {6}
+$$
+
+where the GNN is still applied on $K$ memory tokens inserted between the node text $x$ and target text $y$ . This allows the target text to attend to the node text, which may improve the performance of GOFA. However, this formulation forces every node to have a target text, which is usually not what users desire and poses extra computation costs. We will explore this architecture in our future work.
+
+# A.3 TRANSFORMER CONVOLUTIONAL GNN
+
+As mentioned in Section 3.2, we customize a Transformer Convolutional GNN(TransConv) (Shi et al., 2021) as the GNN used in Equation 3. Since GNN layers operate on token representations and tokens at different indices do not communicate, we describe the GNN at one index for simplicity. The $t$ -th GNN layer on node $i$ and its neighbors $\mathcal{N}(i)$ is:
+
+$$
+\begin{array}{l} h ^ {t + 1} (i) = \boldsymbol {W} _ {o} (\sum_ {j \in \mathcal {N} (i)} \alpha_ {i, j} (\boldsymbol {W} _ {v, n o d e} h ^ {t} (j) + \boldsymbol {W} _ {v, e d g e} h (e _ {i, j}))), \\ \alpha_ {i, j} = \operatorname {S o f t m a x} \left(\frac {\boldsymbol {W} _ {q} h ^ {t} (i) * \left(\boldsymbol {W} _ {k , n o d e} h ^ {t} (j) + \boldsymbol {W} _ {k , e d g e} h \left(e _ {i , j}\right)\right)}{\sqrt {d}}\right), \tag {7} \\ \end{array}
+$$
+
+$h(\cdot)$ represents input node and edge features. $\mathbf{W}$ represents query $(q)$ , key $(k)$ , value $(v)$ , output $(o)$ linear projection for nodes and edges. The formulation closely follows the transformer design (Vaswani et al., 2017) and its GNN adaptation (Shi et al., 2021). This formulation does not aggregate the last layer embedding $h^t(i)$ into the next layer, because we already add residual to maintain the same effect. We use pre-layer normalization following Llama (Touvron et al., 2023).
+
+# B ADDITIONAL EXPERIMENTS
+
+# B.1 ADDITIONAL ZERO-SHOT EVALUATION RESULTS
+
+Table 6: Additional comparison on zero-shot learning results. (The number indicates the number of ways).
+
+
Cora-node (7)
WikiCS (10)
Products (10)
DGI
20.15
13.63
21.35
GraphMAE2
37.08
19.03
25.46
Best-LLM
60.54
63.63
70.16
Best Graph-LLM
69.53
43.45
66.07
GOFA-T
70.81
71.17
79.33
+
+Table 7: Zero-shot learning with molecule dataset.
+
+
BBBP
HIV
OFA
-
35.67
MoMu
49.81
50.26
Galactica
53.94
33.85
GIMLET
59.39
66.24
GOFA
54.91
53.02
+
+To further demonstrate the advantage of GOFA compared to previous methods, we conduct additional zero-shot experiments over different datasets and baselines. First, we additionally compare the zero-shot result with traditional GNN baselines. Since models like GCN and GAT cannot do zero-shot tasks due to their supervised training nature, we compare against graph self-supervised learning baselines. These methods learn node embeddings, which are compared to label text embeddings to make predictions based on cosine similarity. Specifically, we include DGI Velicković et al. (2018) and GraphMAE2 Hou et al. (2023) and follow the same evaluation procedure. The result is shown in Table 6. GOFA significantly outperforms methods that use GNNs for self-supervised learning in the zero-shot setting. This result further demonstrates the effectiveness of the architecture design and the graph modeling tasks of GOFA on zero-shot generalization ability over graph tasks.
+
+Next, we evaluate the GOFA on more numerically and structurally intensive tasks. Specifically, we conduct experiments on molecular property prediction tasks using ogbg-molhiv and BBBP datasets. The experiments closely follow the setting of GIMLET Zhao et al. (2023a). First, we fine-tune the pre-trained GOFA on randomly sampled 100,000 question-answering pairs from the Chembl pretrain dataset. The questions concentrated on asking about different molecule properties. Next, we evaluate the fine-tuned GOFA on ogbg-molhiv and BBBP in a zero-shot setting. We use AUROC as the evaluation metric. For comparison, we include OFA Liu et al. (2023a), MoMu Su et al. (2022), GIMLET Zhao et al. (2023a), and Galactica Taylor et al. (2022). The results are shown in Table 7. We directly report results of OFA Liu et al. (2023a) from their paper, and all other baselines are referred from GIMLET Zhao et al. (2023a). We can see that with only 100,000 instruction-tuning samples, GOFA already achieves comparable results to baselines. Note that GIMLET fine-tunes its model on the whole Chembl-pretrain dataset, which contains more than 400 million question-answering pairs.
+
+# B.2 SUPERVISED EXPERIMENT RESULTS
+
+In this section, we conduct a supervised learning experiment with the pre-trained GOFA. In the supervised experiment, GOFA's prompt does not include class optional. We show the supervised results in Table 8. Specifically, we compare the result of GOFA with the following baselines: 1. basic GNNs, which are trained individually on each dataset, including GCN (Kipf & Welling, 2017) and GAT (Velicković et al., 2018). 2. The contrastive learning methods, including DGI (Velicković et al., 2018) and BGRL (Thakoor et al., 2021). For these methods, we directly report the best result from (He & Hooi, 2024). 3. Graph foundation model, including OFA (Liu et al., 2023a) and UniGraph (He & Hooi, 2024). GOFA achieved competitive performance on most datasets. In particular, GOFA achieved SOTA performance on the Pubmed dataset, demonstrating that GOFA can transfer pre-trained knowledge to downstream tasks. We also notice that GOFA is not performing as well on some datasets, possibly because in a supervised setting, we only train a small portion of the data for one epoch (specific numbers in the experimental details section in Appendix F.5), and in the supervised setting, it is important to see training samples multiple times to ensure detailed understanding of the distribution. As we pre-train the model with more diverse datasets, GOFA can potentially obtain world knowledge as an LLM, which makes transfer learning in the supervised setting more accurate.
+
+Table 8: Experiment results in supervised learning. **Bold and underlined** shows best and runner-up results.
+
+
Task type Metric
Cora Link Acc ↑
Cora Node Acc ↑
PubMed Link Acc ↑
PubMed Node Acc ↑
Arxiv Node Acc ↑
WikiCS Node Acc ↑
WN Link Acc ↑
FB Link Acc ↑
Products Node Acc ↑
GCN
78.9±0.6
82.3±1.1
77.5±0.4
77.8±0.7
73.9±0.6
77.0±0.6
82.7±0.4
90.1±0.3
80.0±0.7
GAT
80.1±0.3
80.4±0.4
80.5±0.2
76.6±0.5
75.8±0.3
79.8±0.5
88.8±0.3
93.6±0.1
81.4±0.2
DGI
-
51.99±0.45
-
55.76±0.56
55.21±0.21
67.11±0.12
52.04±0.22
26.99±0.22
64.21±0.32
BGRL
-
56.73±0.23
-
63.77±0.23
62.21±0.21
70.12±0.15
56.44±0.21
64.91±0.22
63.77±0.23
OFA
87.97
75.34
95.89
77.89
73.44
77.62
98.31
95.78
-
UniGraph
-
81.43±0.55
-
74.33±0.23
72.91±0.42
79.98±1.21
85.45±0.34
94.81±1.32
80.11±0.23
GOFA
89.54
76.50
93.97
83.83
74.77
79.96
92.16
88.21
79.98
+
+# B.3 EVALUATION ON ADDITIONAL GRAPH STRUCTURAL TASKS
+
+To further evaluate the potential of GOFA to serve as a general-purpose graph foundational model, we conducted additional experiments on a variety of graph structure tasks, including node degree, shortest path distance, and node count. To provide a fair comparison, we selected Mistral-7B as the baseline model and designed the prompts for Mistral following the incident prompt format proposed in (Fatemi
+
+Table 9: Evaluation on additional structural tasks (Acc).
+
+
Node degree
SPD
Node Count
Mistral
98.6
99.8
99.9
GOFA
98.2
99.7
86.3
+
+et al.). Specifically, the graph is described as "[NODE.A] is connected to [NODE.B)". We use Arxiv as the graph dataset and randomly selected 10000 samples for fine-tuning and 2000 samples for testing. For the mistral model, we remove all original text from the dataset, as the model will run out of memory with all the text kept. The evaluation result is shown in Table 9. We can see that
+
+GOFA achieved a competitive performance to the LLM baseline in both node-level (node degree) and link-level (shortest path distance) structural tasks. However, LLMs perform better on graph-level tasks. We suspect that the reason lies in the fact that we keep the original text in the graph dataset, which makes the learning of structure much harder, especially when the number of nodes in the graph becomes large. At the same time, our pre-training tasks focus on understanding local graph structures. Thus, GOFA is unfamiliar with understanding global structural information like node count. In the future, we aim to include more structural tasks to further improve the generalization ability of GOFA on different graph tasks.
+
+# B.4 EXAMPLE OF GOFA'S FREE-FORM ANSWER
+
+Figure 6 in the main body illustrates GOFA's capability to respond to various questions based on the same graph from ogbn-arXiv. In this section, we provide additional examples in Figure 7 to further show the ability of GOFA's free-form text answer.
+
+
+Figure 7: Demonstration of GOFA's ability to respond to any question to the given graph. Above is an example of the products dataset, where the model needs to output the majority category of its connected nodes. Below is another example on Wikics dataset. GOFA is asked to generate a Wikipedia page named based on the graph information.
+
+# C DATASETS
+
+Cora. The Cora dataset is a co-citation network, where nodes are papers related to artificial intelligence. Edges mean the connected two papers are co-cited by other papers. The Cora dataset contains 2708 nodes and 10556 edges. We collect the Cora dataset and its raw text from OFA (Liu et al., 2023a). We evaluate the performance of the baseline and our proposed model on Cora for both node-level and link-level tasks. For the node-level task, the aim is to classify the node into the correct paper category from 7 different categories. The split is obtained from OFA. It contains 140/500/2068 samples for train/val/test set respectively. For the link-level task, the object is to predict whether two paper nodes are co-cited or not. We follow the setting of OFA (Liu et al., 2023a) and randomly split all edges into train/val/test sets with a ratio of 0.85/0.05/0.1.
+
+PubMed. The PubMed dataset is a co-citation network, where nodes are papers related to diabetes mellitus. Edges mean the connected two papers are co-cited by other papers. The PubMed dataset contains 19717 nodes and 88648 edges. We collect the PubMed dataset and its raw text from OFA (Liu et al., 2023a). We evaluate the performance of the baseline and our proposed model on PubMed for both node-level and link-level tasks. For the node-level task, papers have 3 different categories. The goal is to classify the node into the correct paper category. We obtain the split directly from original source. It contains 60/500/19157 samples for train/val/test set respectively. For the link-level task, the object is to predict whether two paper nodes are co-cited or not. We follow the
+
+setting of OFA (Liu et al., 2023a) and randomly split all edges into train/val/test sets with a ratio of $0.85 / 0.05 / 0.1$ .
+
+Arxiv. The Arxiv dataset is a citation network, where nodes are papers related to computer science and edges mean two papers have a citation relationship. The Arxiv dataset contains 169343 nodes and 1166243 edges. We collect the Arxiv dataset and its raw text from OGB (Hu et al., 2021b). We evaluate the node classification on the Arxiv dataset. The goal is to classify the paper node into the correct category from 40 possible categories. We obtain the split directly from OGB (Hu et al., 2021b). It contains 90941/29799/48603 samples for train/val/test set, respectively.
+
+WikiCS. The WikiCS dataset is a graph obtained from Wikipedia. The nodes in WikiCS are Wikipedia terms and their descriptions. The edges mean there is a hyperlink between two terms. We collect the WikiCS dataset and its raw text from (Mernyei & Cangea, 2020). There are 11701 nodes and 216123 edges in the graph. We evaluate the performance of WikiCS on the node classification task. There are 10 different classes. We follow the same split as OFA (Liu et al., 2023a), which contains 580/1769/5847 samples for the train/val/test set, respectively.
+
+**Products.** The Products dataset is a co-purchase graph. The nodes in the graph represent product items from the Amazon platform, and the edges represent that two products are co-purchased together. We obtain the Products and their raw texts from TAPE (He et al., 2024a), which is a subset from the original ogbn-Products (Hu et al., 2021b) dataset. It contains 54025 nodes and 144638 edges. We evaluate the node classification performance on Products. The data from the original source contains 47 different categories. However, we found that there are two classes with missing labels. To be consistent with previous literature, we adopt the approach in LLaGA to replace the label name with special symbols. There are 14708/1572/37745 samples for the train/val/test set, respectively.
+
+FB15K237. The FB15K237 is a knowledge graph generated from Free Base. Nodes in the dataset represent entities in the world and edges represent the relation between entities. We obtained the dataset from OFA (Liu et al., 2023a). The FB15K237 is used to evaluate the link classification. The dataset contains 237 unique classes. We follow the setting of OFA (Liu et al., 2023a) and split the dataset with a ratio of $0.85 / 0.05 / 0.1$ , which results in a total of 272115/17535/20466 samples for train/val/test set, respectively.
+
+ExplaGraphs. The ExplaGraphs is a graph question answering dataset on commonsense concepts. Nodes in the dataset represent a common sense concept and edges represent the relation between two concepts. We obtain the dataset from G-retriever (He et al., 2024b) The ExplaGraphs can be used for question-answering on graphs. We obtain the split directly from G-retriever (He et al., 2024b). It contains 1659/553/554 graph samples from the train/val/test set.
+
+SceneGraphs. The SceneGraphs is a graph question answering dataset on scene graphs. Nodes in the dataset represent an object in an image and edges represent the relation between two objects. We obtain the dataset from G-retriever (He et al., 2024b) The SceneGraphs can be used for question-answering on graphs. We obtain the split directly from G-retriever (He et al., 2024b). It contains 59978/19997/20025 graph samples from the train/val/test set.
+
+MAG240M. The MAG240M dataset is a citation network generated from Microsoft Academic Graphs. The nodes represent academic papers and the links represent a citation relation between two papers. We obtained the dataset and raw text from OGB-lsc (Hu et al., 2021a). However, the original dataset is extremely large and contains nodes without text features (author and institution nodes), since we mainly use the dataset for pre-training, we further downsample the original dataset. Specifically, we only keep paper nodes and citation links between papers. Further, we downsample the edges in the following ways. First, we selected all nodes in the train/val/test split provided by OGB-lsc (Hu et al., 2021a). Next, we filter the edges through two rounds. In the first round, we only keep the edge if either the source or the target is in the selected nodes. If any node in the added edge is not in the selected nodes, we add it to the node set. Next, in the second round, we include additional edges where both the source and target are in the selected nodes (additional nodes are added in the first round). The procedure results in a total of 5875010 nodes and 26434726 edges.
+
+Ultrachat200k. The Ultrachat200k is a question-answering dataset. Each sample is a multi-round conversation obtained from the web. We obtained the Ultrachat200k from (Ding et al., 2023). However, the original dataset is not a network. To convert it to a graph dataset, we manually create a graph structure for it. Specifically, if the original sample has $k$ round of conversation, we will
+
+generate $k - 1$ graph sample. The $i$ -th graph will contain the first $i$ round of conversation. Each node in the graph is either a question or an answer. The question and answer are linked by a directed edge indicating the order of the conversation. The conversation of $i + 1$ round will be the question-answer pair for this graph. Since we mainly use the dataset for pre-training, We only include train-sft subset. After the conversion, there are a total of 449929 graphs in total.
+
+Wikikg90m. Wikikg90m is an encyclopedic knowledge graph dataset extracted from Wikidata knowledge base. We obtain the original Wikikg90m from OGB-LSC (Hu et al., 2021a). It contains 91,230,610 entities, 1,387 relations, and 601,062,811 edges.
+
+WikiGraph. The WikiGraph dataset is designed to increase the diversity of the training texts. Hence, we use WikiText (Merit et al., 2022) dataset as the seed dataset. It contains plain sentences from Wikipedia pages. We generate graphs for sentences with more than 500 characters. Specifically, we first prompt an LLM to extract meaningful entities or concepts from a sentence, and these entities become the nodes in the graph. We then randomly pair concepts to generate edges. Again, we use LLM to generate a description of the relationship between the paired concepts and use the description as the edge text.
+
+BBBP: The BBBP is a molecule property prediction dataset. The task is to predict the effectiveness of molecule to brain blood barrier. We collect the dataset from GIMLET Zhao et al. (2023a). The dataset contains 1631/204/204 molecule graphs for the train/validation/test set, respectively. We directly use the test set for zero-shot evaluation.
+
+HIV: The HIV dataset is a molecule property prediction dataset. The task is to predict the effectiveness of molecules to hiv. We collect the dataset from GIMLET Zhao et al. (2023a). The dataset contains 32901/4113/4113 molecule graphs for the train/validation/test set, respectively. We directly use the test set for zero-shot evaluation.
+
+Chembl pretrain: The Chembl pretrain dataset is a large-scale molecule property prediction dataset. for each simple molecule, the dataset contains several questions to ask about the different properties of the molecule. Overall, it contains 400 million question-answering pairs. We collected it from GIMLET Zhao et al. (2023a) and use it for fine-tuning GOFA for molecule zero-shot experiments.
+
+# D RELATED WORK EXTENDED
+
+Prompt Learning in Graph: The success of foundation models inspired many works to adapt their power to the graph domain. Earlier attempts designed a graph prompting mechanism such that a trained model can adapt to new data by fine-tuning a soft prompting vector (Liu et al., 2023c; Yu et al., 2023; Sun et al., 2023; Xia et al., 2024). GraphPrompt (Liu et al., 2023c; Yu et al., 2023) pretrains on link prediction tasks, and then finetune a prompt matrix for each downstream node or graph classification task. All in One (Sun et al., 2023) designs prompt tokens that are used to modify node features and then take a meta-learning paradigm for multi-task learning. Subsequent works extend graph prompts to allow in-context learning without weight update (Huang et al., 2023a; Galkin et al., 2023). However, these works only tackle limited types of tasks and do not generalize to new domains. Hence, researchers propose integrating LLM into the graph learning.
+
+GNNs and Transformers: In recent years, GNNs have become the most popular method for dealing with graph learning problems due to their extraordinary ability in structural learning. Particularly, Previous works (Xu et al., 2018; Morris et al., 2019) show that the expressive power of message-passing GNNs can be as powerful as the 1-dimensional Weisfeiler-Lehman test, a powerful algorithm for graph isomorphism problems. Many recent works also try to design more powerful GNNs that beyond the 1-WL test (Zhang & Li, 2021; Kong et al., 2022; Feng et al., 2022; Huang et al., 2023b; Zhang et al., 2023b;a; Feng et al., 2023; Kong et al., 2023) for better structural ability like learning distance between nodes or counting cycles in graph. Some works try to combine the GNN with the transformer. particularly, GraphFormers (Yang et al., 2021) and GROVER (Rong et al., 2020) also insert a GNN layer between consecutive transformer layers for modeling graph inductive bias. Different from us, their transformer layers are randomly initialized and directly tuned on downstream tasks without text.
+
+Table 10: Comparison of LLM-generated answers with correct answers for graph structure questions.
+
+
Question
Answer
Correct Answer
In the graph node 8 connects to 1, node 13 connects to 9, node 8 connects to 7, node 3 connects to 13, node 3 connects to 4, node 6 connects to 6, node 11 connects to 8, node 12 connects to 11, node 2 connects to 12, node 14 connects to 7, node 6 connects to 3, node 6 connects to 9, node 2 connects to 8, node 2 connects to 9, node 5 connects to 8, node 3 connects to 11, node 8 connects to 5, node 10 connects to 11, node 2 connects to 9, node 9 connects to 10, what is a shortest path between node 8 and node 9?
To find the shortest path between node 8 and node 9, we can use Dijkstra's algorithm or any other shortest path algorithm. However, since this graph is small, we can find it manually. Here's one of the shortest paths between node 8 and node 9: Start at node 8. Move from node 8 to node 5 (neighbor). Move from node 5 to node 8 (neighbor). Move from node 8 to node 2 (neighbor). Move from node 2 to node 9 (neighbor). So, the shortest path between node 8 and node 9 is: 8 -> 5 -> 2 -> 9.
8 -> 2 -> 9
In the graph node 8 connects to 1, node 13 connects to 9, node 8 connects to 7, node 3 connects to 13, node 3 connects to 4, node 6 connects to 6, node 11 connects to 8, node 12 connects to 11, node 2 connects to 12, node 14 connects to 7, node 6 connects to 10, node 6 connects to 9, node 2 connects to 8, node 2 connects to 9, node 5 connects to 8, node 3 connects to 11, node 8 connects to 5, node 10 connects to 11, node 2 connects to 9, node 9 connects to 10, what are common neighbors between 13 and 5?
To find the common neighbors between nodes 13 and 5, we need to identify all nodes that are neighbors of both nodes 13 and 5. From the provided connections: Node 13 is connected to node 9 and node 3. Node 5 is connected to node 8. Therefore, the common neighbor between node 13 and node 5 is node 8.
No common neighbors.
+
+# E ADDITIONAL DISCUSSIONS
+
+# E.1 GRAPH STRUCTURE QUESTION EXAMPLE OF LLM
+
+We assessed the ability of LLMs to respond to questions related to graph structures, including shortest path distances and common neighbor counting. For this evaluation, graph edges were described using plain text, and the LLM was tasked with generating the answers. The results of this evaluation are presented in Table 1. These findings indicate that LLMs struggle to comprehend graph structures effectively. We include examples of the questions posed and the corresponding answers generated by the LLM in Table 10, to illustrate these challenges.
+
+# E.2 THEORETICAL ADVANTAGES OF GOFA'S GRAPH LANGUAGE ENCODER
+
+In GOFA, we innovatively integrate GNN layers into LLMs to help LLMs understand graph structures. This approach is theoretically more powerful and suitable for designing GFMs than using pure LLMs. Graph data have unique properties, such as node permutation invariance without fixed ordering (Keriven & Peyré, 2019), making sequential models like LLMs unsuitable for modeling graphs. For a graph with $n$ nodes, the number of possible orders is $n!$ , which means sequential models like LLMs will need factorial sample complexity to learn that all of them correspond to the same graph. Existing works therefore use random or heuristic order to represent a graph, resulting in
+
+suboptimality and poor generalization on structure-related tasks. One empirical example from the task planning experiments of LLM agents in (Wu et al., 2024) shows that LLMs can only perform well on task graphs with a specific node ordering but cannot maintain this accuracy after nodes are reordered. Methods like LLaGA (Chen et al., 2024) also fall into this category and are suboptimal if the task requires deep structure understanding. Instead, GNNs are a powerful choice widely accepted by the literature for encoding both features and the structure of graphs. They are permutation equivariant to graph order and can learn invariant structure information. Our GOFA, interleaving GNN layers into LLMs, naturally preserves this property. Specifically, for LLM layers, each node is processed individually, which is obvious that we can keep the permutation invariance. As GNN layers are permutation invariant, this concludes that the GOFA is permutation invariant to input graph.
+
+# E.3 ADVANTAGES OF GOFA'S SELF-SUPERVISED LEARNING TASKS
+
+Our proposed self-supervised learning tasks are enlightened by existing graph and NLP SSL tasks. However, our tasks are novel compared to existing methods from several perspectives.
+
+In graph SSL, most prior work aims to recover original features or graph structure contrastively or generatively (Liu et al., 2022), using learned embeddings for downstream classifiers. In contrast, our tasks aim to learn embeddings that enable downstream natural language generation. Concretely, our SSL shortest path prediction task requires the model to output multiple actual paths (e.g., node a→node b→node c) between two nodes in text format; this requires a more fine-grained and in-depth model understanding of the graph structure. Regular graph SSL tasks such as link prediction and shortest path distance prediction only cares about a simple objective (binary classification for link and single number for distance). Conversely, our generation-oriented design allows a unified task format to query into the graph from different aspects with different granularity (e.g. shortest path and common neighbor can be incorporated under the same natural language generation framework), whereas traditional SSL tasks inevitability lose much detailed information and may need artificial complicated design to accommodate multiple SSL targets.
+
+SSL in NLP (e.g. next-word-prediction) only takes texts as input. One may think of directly converting graphs to text and doing a similar SSL. However, as many previous works show (Wang et al., 2023), converting graphs directly to texts for LLM generation is ineffective. Hence, we design the sentence completion task directly on the graph to use connection information to help the model attend to correct nodes for subsequent generation.
+
+In summary, our SSL design cares more about training the model to generate any answers in natural language format so that it can accommodate arbitrary tasks, which differs from traditional graph SSL that normally focuses on classification/regression (actually any graph SSL tasks can be incorporated into our natural language generation framework). Compared to NLP SSL, our novel SSL design focuses on sentence completion using neighboring sentence information rather than pure auto-regression, strengthening the model's power to leverage joint graph-text information.
+
+# F EXPERIMENTAL SETTINGS
+
+# F.1 GENERAL SETTINGS
+
+Subgraph sampling: In the GOFA, for node/link/graph-level tasks, the input format is unified as a subgraph task. Namely, for node/link-level tasks, we will select a $k$ -hop subgraph surrounding the target nodes as the input graph for the model. We follow a similar subgraph sampling strategy as OFA (Liu et al., 2023a). Specifically, for node-level tasks, we directly sample the $k$ -hop subgraph rooted at the target node. Meanwhile, we set a threshold for maximum nodes per hop. If the nodes in a certain hop exceed the threshold, we will randomly sample maximum nodes from all nodes. For link-level tasks, we doing the sampling on both two nodes.
+
+Implementations. Both the GOFA and all baselines are implemented using Python with Pytorch, transformers, and PyG (Fey & Lenssen, 2019) packages.
+
+# F.2 DESIGN OF PRE-TRAINING TASKS
+
+In this section, we describe the self-supervised pre-training of GOFA. The goal of the pre-training is to let the GOFA model obtain the ability to query graph structure and context but retain the ability to reason about plain text. Specifically, we perform the pre-training task using multiple existing graph datasets, including MAG240M (Hu et al., 2021a), Arxiv (Hu et al., 2021b), Pubmed, Wikikg90mv2 (Hu et al., 2021a), and Ultrachat200k (Ding et al., 2023) datasets. Further, we create another graph dataset called WikiGraph, whose graphs are generated from sentences in the pure textual WikiData dataset (Merit et al., 2022) using LLM. Details about the datasets can be found in Appendix C. We randomly generate a unique node ID (such as [Node A]) for each node in the training sample and append it to the original node text. This ID will serve as a basis for querying nodes in the graph. We design four pre-training tasks: sentence completion, structural understanding, question-answering, and information retrieval tasks. Figure 1 shows an example of each task. We describe the rationale of each task below and leave some implementation details to Appendix F. We also include an additional discussion of the advantages of our designed tasks in Appendix E.3.
+
+Sentence completion task. The objective of the sentence completion task is to train GOFA to reason about the rest of the text in a node given both the existing text and the information in the rest of the graph. Given an input training sample, we randomly select $n$ nodes in the graph as the target nodes. All selected nodes' texts are split into halves. The first half forms node text $x(v)$ , and the second half becomes the target $y$ to generate. The length of the first half will also be randomly determined. Finally, the output representation of these $n$ nodes will be directly input to the decoder (no prompt node will be connected) and we minimize the loss between model decoded text and target $y$ . This sentence-completion pre-training task adapts LLMs' standard ability to the graph context.
+
+Structural understanding tasks. The objective of the structural tasks is to pre-train GOFA to understand basic graph structural properties. In light of this, we design the shortest paths and common neighbors reasoning tasks between nodes. Specifically, For each training subgraph sample, we randomly sample $n$ node pairs as the selected targets. For each selected node pair, we ask the model to compute the shortest path distance between two nodes and output all possible shortest paths between them using the assigned node IDs. Meanwhile, we also ask the model to output the number of common neighbors the two nodes have and the node IDs of their common neighbors. For the structural understanding task, a prompt node $v_{p}$ will connect to both two nodes since our structural tasks need the model to reason about two nodes simultaneously. The text in the prompt node will be the corresponding question. Through these two tasks, the model is expected to gain the ability to identify basic graph structures, which are critical to downstream tasks.
+
+Question answering task. Unlike language corpus, which naturally contains many question-and-answer (QA) pairs, graph data usually only contain objective descriptions of entities. Nevertheless, for the model to be fluid in tasks, we need the model to understand user prompts and be sensitive to different tasks. Hence, we synthesize a QA-chain dataset from Ultrachat200k, as shown in Figure 1. A language QA sequence is converted to a chain graph where nodes with question texts alternate with nodes with answer texts, which are connected by directed edges to represent the conversation order. The last question becomes the text on prompt node $v_{p}$ , which is connected to every node in the chain, and the last answer is the target text $y$ (see Figure 1 QA-Chain Task for an example). This QA task provides QA pseudo-graphs missing from the common graph corpus, and we found it critical for enabling the model to be responsive to arbitrary tasks expressed in free-form text questions.
+
+Information retrieval task. For most of the downstream tasks, GOFA requires a prompt node to link to all target nodes in the graph to solve related problems. To enable the prompt node to effectively maintain related information for solving the task in the decoding stage, we design an information retrieval task to realize these goals. Specifically, for each input graph, we randomly select $n$ nodes and we connect a prompt node to these $n$ nodes. Next, the information retrieval task is further divided into two parts: key-to-content and content-to-key. For key-to-content, we provide a node ID (randomly chosen from the selected $n$ nodes) in the prompt node and ask the model to retrieve the text of that node. For the content-to-key task, we provide the content of one node (selected the same as above) in the prompt node and ask the model to return the correct node ID of that node. This task enhances the ability of GOFA to utilize our provided node IDs to retrieve and maintain correct information in the prompt node, which proves useful for many downstream tasks requiring information retrieval.
+
+Table 11: Detailed question and answer example in pertaining task.
+
+
Task
Question example
Answer example
Sentence completion
Complete the sentence of the tar-get node.Complete the sentence of the node[NODE.A].
The rest of the sentence in the tar-get node.The rest of the sentence in node [NODE.A].
Shortest paths
Compute the shortest path dis-tance between the target node [NODE.L] and node [NODE.B] and generate all shortest paths from the target node to the node [NODE.B]. Please separate nodes in the path with -> . If mul-tiple paths exist, generate all of them with an ascending order of node sequences and separate dif-ferent paths with ;;
The shortest path distance is 2. Shortest paths: [NODEID.L] -> [NODEID.G] -> [NODEID.B].
Common Neighbors
Is there any common neighbor be-tween the target node [NODE.L] and node [NODE.B]? If it exist, please give the total number and list all common neighbors in as-cending order of node, separate nodes with ;;
There is 1 common neighbor between two nodes, including [NODEID.G].
QA-Chain
What are the rules and restric-tions in place for COVID-19 in the city?
I don't have any live data regard-ing the Covid-19 rules and restric-tions. Please check with the local authorities or health department for the latest guidelines and re-stictions in your city.
Information Retrieval
Please output the content of [NODE.A].Given this node content: {node content}, please output the node id.
Content on [NODE.A].[NODEID].
+
+# F.3 PRE-TRAIN IMPLEMENTATION DETAILS OF GOFA
+
+Dataset and task construction. As we discussed, we designed four different pre-training tasks for GOFA. Here we describe some implementation details about each task and then discuss how we construct each task on each dataset.
+
+For the sentence completion task, the node text is split by the following rule: for each node, if the node text is less than 256 words, we set the maximum left-halve length to be the half of node sentence length. Otherwise, we set it to 128. Next, we randomly choose a length from 0 to maximum left length as the final cut point to cut the sentence into two pieces. For the shortest path task, we ask the model to output both the shortest path distance and all possible shortest paths. Since there may be multiple paths, to ensure the uniqueness of the answer, we first order all paths based on the node ID (the ascending order of alphabets) for nodes in each path and ask the model to learn this order. The construction of common neighbor task is similar. Finally, for information retrieval, given an input graph sample, we randomly select 2 to the number of nodes in the graph to be the target nodes.
+
+For pre-training datasets, we use multiple datasets including MAG240M, Arxiv, Pubmed, Wikikg90mv2, Ultrachat200k, and WikiGraph. For MAG240M, Arxiv, and Pubmed datasets, each
+
+training sample is a subgraph sampled around a node. Next, sentence completion, shortest path, and common neighbor tasks are constructed. For each sample, there are 4 complete sentences, 3 shortest path, and 3 common neighbor tasks. We will also construct information retrieval tasks on these datasets. However, to ensure a moderated graph size, the information retrieval task will be constructed separately from the above tasks and also for both key-to-content and content-to-key tasks. For each information retrieval task sample, there will be only one task. For Wikikg90m, each training sample is a subgraph sampled around an edge. In Wikikg90m, we additionally include a link prediction task. That is, for each input graph, we randomly mask $e$ edges and ask the model to recover the content in the edge. For each sample, there are 4 complete sentences, 2 shortest paths, and 2 common neighbor tasks, and 2 link prediction tasks. At the same time, the information retrieval task will also be generated separately. For WikiGraph, each sample is itself a graph. Similar to Wikikg90mv2, each sample consists of 4 complete sentences, 2 shortest paths, 2 common neighbor tasks, and 2 link prediction tasks and information retrieval task will also be generated separately. Finally, for Ultracha200k, we only include question answer task and each sample only contains one task. The detailed task prompts and answer examples are shown in Table 11.
+
+Training details. The initial weight of the LLM compressor and decoder is obtained from ICAE (Ge et al., 2023). The initial weight of all GNN layers is randomly initialized. The value of all gates in the residual connection is set to 0 to ensure the initialized model performs the same as the original language model. During the training, we only tune the GNN layers. For each training epoch, the training corpus includes 500,000 MAG240M samples, 50,000 Arxiv samples, 5,000 PubMed samples, 100,000 Ultrachat200k samples, 80,000 WikiGraph samples, 100,000 Wikikg90mv2 samples. At the meantime, for MAG240M, Arxiv, Pubmed, WikiGraph, and Wikikg90mv2, we will include 10,000 key-to-content and 10,000 content-to-key information retrieval tasks. This resulted in 935,000 samples for each training epoch and we trained the model for 3 epochs. The training is conducted on 8 NVIDIA100_SXM4_80GB GPUs with DeepSpeed stage 2 (Rajbhandari et al., 2020) parallelism. The detailed training parameters are set the same for both two models and are listed in Table 12. We use AdamW optimizer with $\beta = (0.9, 0.95)$ . We use a cosine annealing learning rate scheduler, and the minimum learning rate is $10\%$ of the initial learning rate. We restarted the learning rate 2 times on one-third and two-thirds of the training.
+
+Table 12: Hyper-parameters for pretraining.
+
+
lr
weight Decay
batch_size
dropout
grad Clip
gradient Accum
llm_max_length
optimizer
0.0001
0.1
8
0.0
0.5
8
128
AdamW
+
+# F.4 ZERO-SHOT LEARNING
+
+Setting. For the zero-shot learning, we select Cora-link, Cora-node, WikiCS, Products, ExplaGraphs, and SceneGraphs as evaluation datasets. For all datasets, we directly evaluate baselines and GOFA on the test set.
+
+Baseline Details: We compare the performance of GOFA with two categories of baseline methods. The first category includes models that directly utilize large language models (LLMs). For this, we select Llama2-7B and Mistral-7B (Jiang et al., 2023) as baselines. We input the content of all target nodes into these pre-trained models and concatenate the same prompt used in GOFA for evaluation. The second category consists of Graph LLM models that have zero-shot ability. We include OFA (Liu et al., 2023a), GraphGPT (Tang et al., 2023), UniGraph (He & Hooi, 2024), ZeroG (Li et al., 2024), and LLaGA (Chen et al., 2024) as baselines. For OFA, we extend the datasets by adding Products and ExplaGraphs and follow the original source code to train the model on Arxiv and FB15K237 for 30 epochs, using Llama2-7B as the embedding model. All other settings remain consistent with the default OFA configuration, and we report the test performance accordingly. For GraphGPT, we use the results reported in the LLaGA paper. For UniGraph, we use the results from the original paper. For ZeroG, we use the results in UniGraph paper. For LLaGA, we rerun the source code, adapting the settings of ways to align with our experimental setup.
+
+Detail of GOFA. For the GOFA, we fine-tune the model from the pre-training checkpoint. In fine-tuning, we will train the parameters of GNN and LoRA layers in the LLM decoder. To com
+
+Table 13: Prompt examples of GOFA for each training dataset in Zero-shot learning.
+
+
Dataset
Prompt
MAG240M
This is a citation network from microsoft academic graph platform. Nodes represent academic papers and edges represent citation relationship. You are an expert in computer science. You need to choose the correct paper category based on the paper content and its citation network. For example, if the paper [NODEID] {<label_description>}, choose <label>}. What is the most likely paper category for the target paper? Choose from the following: {<label>}
Pubmed-link
This is a co-citation network from the Pubmed platform focusing on diabetes mellitus. Nodes represent academic papers and edges represent two papers that are co-cited by other papers. You are a diabetes mellitus expert tasked with determining whether two given papers [NODEID1] and [NODEID2] are co-cited by another paper based on their content and network characteristics. Evaluate the following criteria: assess whether the topics of the two papers are similar, check if the shortest path distance between the two papers is small, and verify whether the papers have a large number of common neighbors in the citation network. If the answer to most of these questions is Yes, choose Yes; if the answer to most of these questions is No, choose No.
PubMed-node
This is a co-citation network from the Pubmed platform focusing on diabetes mellitus. Nodes represent academic papers and edges represent two papers that are co-cited by other papers. You are an expert on diabetes mellitus. You need to choose the correct paper category based on the paper content and its co-citation network. For example, if the paper [NODEID] {<label_description>, choose <label>}. What is the most likely paper category for the target paper? Choose from the following: {<label>}
Wikikg90m
This is a graph extracted from the entire Wikidata knowledge base. You are an expert in knowledge graph reasoning. You need to choose the correct relation type between two target entities based on their existing relations. For example, if two relations involve {<label_description>, choose <label>}. What is the relationship between two target entities? Choose from the following list: {<label>}"
Arxiv_node
This is a citation network from Arxiv platform focusing on the computer science area. Nodes represent academic papers and edges represent citation relationships. You are an expert in computer science. You need to choose the correct paper category based on the paper content and its citation network. For example, if the paper [NODEID] {<label_description>, choose <label>}. What is the most likely paper category for the target paper? Choose from the following: {<label>}
Arxiv_link
This is a citation network from Arxiv platform focusing on the computer science area. Nodes represent academic papers and edges represent citation relationships. You are a computer science expert tasked with determining whether two given papers [NODEID1] and [NODEID2] are co-cited by another paper based on their content and network characteristics. Evaluate the following criteria: assess whether the topics of the two papers are similar, check if the shortest path distance between the two papers is small, and verify whether the papers have a large number of common neighbors in the citation network. If the answer to most of these questions is Yes, choose Yes; if the answer to most or all of these questions is No, choose No.
+
+Table 14: Prompt examples of GOFA for each evaluation dataset in Zero-shot learning.
+
+
Dataset
Prompt
Cora-node
This is a co-citation network focusing on artificial intelligence, nodes represent academic papers and edges represent two papers that are co-cited by other papers. You are an expert in computer science. You need to choose the correct paper category based on the paper content and its co-citation network. For example, if the paper [NODEID] {<label_description>, choose <label>}. What is the most likely paper category for the target paper? Choose from the following: {<label>}
Cora-link
This is a co-citation network focusing on artificial intelligence, nodes represent academic papers, and edges represent two papers that are co-cited by other papers. You are a computer science expert tasked with determining whether two given papers are co-cited by another paper based on their content and network characteristics. Evaluate the following criteria: assess whether the topics of the two papers are similar, check if the shortest path distance between the two papers is small, and verify whether the papers have a large number of common neighbors in the citation network. If the answer to most of these questions is Yes, choose Yes; if the answer to most of these questions is No, choose No.
WikiCS
This is a Wikipedia graph focusing on computer science. Nodes represent Wikipedia terms and edges represent two terms that have hyperlinks. You are an expert in computer science. You need to choose the correct category of Wikipedia term based on the term content. For example, if the term [NODEID] {<label_description>, choose <label>}. What is the most like category for this Wikipedia entry? Choose from the following: {<label>}
Products
This is a co-purchase network from the Amazon platform. Nodes represent the products sold on Amazon and edges represent two products that are co-purchased together. For example, if the product [NODEID] {<label_description>, choose <label>}. What is the most like category for this product? Choose from the following: {<label>}
FB15K237
This is a knowledge graph from the FreeBase. Nodes represent knowledge entities and edges represent relations between two entities. You are an expert in knowledge graph reasoning. You need to choose the correct relation type between two target entities based on their existing relations. For example, if two relations {<label_description>, choose <label>}. What is the relationship between two target entities? Choose from the following list: {<label>}."
ExplaGraphs
This is a graph constructed from commonsense logic. Nodes represent commonsense objects and edges represent the relation between two objects. You are a logic expert tasked with analyzing the logical relationship between two arguments related to connected entities. Determine if the arguments support or counter each other based on their logical coherence. If there is no logical conflict between the two arguments and they are in agreement, choose Support; if the arguments exhibit a logical conflict or contradiction, choose Counter.
SceneGraphs
This is a scene graph generated from an image. Nodes represent an object in the image and edges represent the relationship between two objects. <Question>
+
+Table 15: Hyper-parameters for zero-shot instruction fine-tuning.
+
+
lr
weight_Decay
gradient_accum
llm_max_length
0.0001
0.1
64
256
+
+prehensively evaluate the performance of GOFA, We separately fine-tune the GOFA on different datasets. Specifically, we design two different settings. In the first setting, we fine-tune the model using the Arxiv and Pubmed datasets with both the node classification and link prediction tasks. In the second setting, we add mag240m and Wikikg90m additionally. We denote GOFA-T and GOFA-F, respectively. For GOFA-T, we sample 40000, 80000, 10000, 10000 for Arxiv_link, Arxiv_node, Pubmed_link, and Pubmed_node, respectively. For GOFA-F, we sample 10000, 10000, 40000, 50000, 10000, 10000 for MAG240M, Wikikg90m, Arxiv_link, Arxiv_node, Pubmed_node, and Pubmed_link, respectively. For all evaluation and pre-training datasets, we design multiple prompt templates with instructions to let the model select the correct label from the provided label list. For each label in each dataset, we use the GPT-4 to generate a short description for the label. The detailed prompt examples for all datasets are shown in Table 13 and Table 14. For all MAG240M, Wikikg90m, and Arxiv, since it is hard to include all ways in the prompt, we randomly sampled 10 ways during the training for each sample. For each pre-training dataset, we randomly sample a fixed number of training samples in a random way. The detailed parameters for fine-tuning are listed in Table 15. All parameters not listed in the table are the same as the pre-training setting. For all training versions, we directly evaluate the model on the test set of all evaluation datasets. We evaluate the model on the test set. For datasets with less than 15000 test samples, we evaluate on the whole set. Otherwise, we only randomly select 15000 samples for evaluation, due to the time constraint. For evaluation, we will match the text output generated by the GOFA with the ground true label to compute the accuracy of the classification task. For the regression task, we will extract the number from the output text and compute the metric with the correct value.
+
+# F.5 SUPERVISED-LEARNING
+
+Table 16: Hyper-parameters for supervised fine-tuning.
+
+
lr
weight_Decay
grad Clip
gradient Accum
llm_max_length
0.0001
0.1
0.5
32
256
+
+Setting. For the supervised-learning setting, we select Cora (node/link), PubMed (node/link), Arxiv, WikiCS, WN18RR, FB15K237, and Products datasets for the evaluation. For all datasets, we utilize the default split described in Appendix C. To ensure a fair comparison, we employ subgraph sampling for GOFA and all baseline methods. For all datasets, the sampling hop is 3 and the maximum nodes per hop are 5.
+
+Detail of baselines. For the traditional GNN methods, we include GCN (Kipf & Welling, 2017) and GAT (Velicković et al., 2018). To ensure a fair comparison, we use Llama2-7B to convert raw texts in all datasets to sentence embedding and use this as the model's input node/edge features. We re-implement both methods in order to adapt the original method with subgraph input. Specifically, for but node/link-level tasks, we will add labeling trick (Zhang et al., 2021) to the target nodes at the beginning. After message passing, we will use the summation pooling on all target nodes and use the result embedding for the prediction. For traditional GNN methods, we train and evaluate each dataset independently. For all datasets, we search the number of layers and dropout parameters. For each parameter set, we repeat the experiment 4 times select the parameter set with the best validation performance, and report the performance on the test set. For constructive learning methods, we include DGI (Velicković et al., 2018) and BGRL (Thakoor et al., 2021). We directly report results from UniGraph (He & Hooi, 2024). For the graph foundation model, we include OFA (Liu et al., 2023a) and UniGraph (He & Hooi, 2024) as the baseline. The OFA is simultaneously trained and evaluated on all datasets. To ensure a fair comparison, we get their code from the original source and train the model on Cora (node/link), PubMed (node/link), Arxiv, WikiCS, WN18RR, and FB15K237 dataset using the Llama2-7b as base LLM model. Similarly, for OFA, we use the
+
+Table 17: Detailed prompt of GOFA for each dataset in supervised learning.
+
+
Dataset
Prompt
Cora-node
This is a co-citation network focusing on artificial intelligence, nodes represent academic papers and edges represent two papers are co-cited by other papers. What is the most likely paper category for the target paper? Please directly answer the category.
Cora-link
This is a co-citation network focusing on artificial intelligence, nodes represent academic papers and edges represent two papers are co-cited by other papers. Is the two target papers co-cited or not? Please only answer yes or no.
PubMed-node
This is a co-citation network from Pubmed platform focusing on diabetes mellitus. Nodes represent academic papers and edges represent two papers are co-cited by other papers. What is the most likely paper category for the target paper? Please directly answer the category.
PubMed-link
This is a co-citation network from Pubmed platform focusing on diabetes mellitus. Nodes represent academic papers and edges represent two papers are co-cited by other papers. Is the two target papers co-cited or not? Please only answer yes or no.
Arxiv
This is a citation network from arxiv platform focusing on the computer science area. Nodes represent academic papers and edges represent citation relationships. What is the most likely paper category for the target Arxiv paper? please directly answer the category.
WikiCS
This is a Wikipedia graph focusing on computer science. Nodes represent Wikipedia terms and edges represent two terms have hyperlink. What is the most likely category for this Wikipedia term? Please directly answer the category.
WN18RR
This is a knowledge graph from WordNet. Nodes represent an English word and edges represent the relationship between two words. What is the relationship between two target words? Please directly answer the relationship.
FB15K237
This is a knowledge graph from freebase. Nodes represent knowledge entities and edges represent relations between two entities. What is the relationship between two target entities? Please directly answer the relationship.
Products
This is a co-purchase network from the Amazon platform. Nodes represent the products sold on Amazon and edges represent two products are co-purchased together. What is the most like category for this product? Please directly answer the category.
+
+same subgraph sampling parameters as all other methods. For other parameters, we use the default parameter provided in their code. We only run the model one time and report the final performance. For UniGraph, we directly report results from their original paper.
+
+Detail of GOFA. For the GOFA, we fine-tune the model from the pre-training checkpoint. In fine-tuning, we will train the parameters of GNN and LoRA layers in the LLM decoder. We simultaneously fine-tune the model on the train set of Cora-node, Cora-link, PubMed-node, PubMed-link, Arxiv, WikiCS, WN18RR, FB15K237, and Products. For each dataset, we will randomly sample a fixed number of training samples for each epoch with random sampling. The sample numbers for each dataset is 3000, 40000, 3000, 80000, 105000, 12000, 60000, 120000, and 38000, respectively. We fine-tune the model for 1 epochs. The detailed parameters for fine-tuning are listed in Table 16. For each dataset, we create a prompt for the LLM decoder to generate the desired answer. In a supervised setting, we ask the LLM model directly to generate the correct answer, instead of doing the selection from the given list. The detailed prompt for each dataset is listed in Table 17. For evaluation, we will
+
+match the text output generated by the GOFA with the ground true label to compute the accuracy of the classification task. We evaluate the model on the test set. For datasets with less than 15000 test samples, we evaluate on the whole set. Otherwise, we only randomly select 15000 samples for evaluation, due to the time constraint.
\ No newline at end of file
diff --git a/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/images.zip b/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6c86f3bc715bea5a7b105222e685d2ab2a7bcdd8
--- /dev/null
+++ b/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:98b2497283420cbda470fd6d9450af946b2882b0f50bf9e4fe425640fbfc00e7
+size 2342845
diff --git a/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/layout.json b/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7890ab833e8af300a8f339f14562c50c17ba8a50
--- /dev/null
+++ b/ICLR/2025/GOFA_ A Generative One-For-All Model for Joint Graph Language Modeling/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f767d5bbb5f65d07d2e163c1f0b4506d81047936c47a27b9668121c02160cbcc
+size 680477
diff --git a/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/a40bbf86-46e9-47e7-b609-e19a4fb0ae0f_content_list.json b/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/a40bbf86-46e9-47e7-b609-e19a4fb0ae0f_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..bdd44f7fc3750c7b3f70063d20db1c63c8c3a9b2
--- /dev/null
+++ b/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/a40bbf86-46e9-47e7-b609-e19a4fb0ae0f_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a77b0bdf5f77a2b285f651fc7c8461dc14f61313f0d142039583d641339eb4c0
+size 93479
diff --git a/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/a40bbf86-46e9-47e7-b609-e19a4fb0ae0f_model.json b/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/a40bbf86-46e9-47e7-b609-e19a4fb0ae0f_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..d7d286ce4f5d1e82dd0804fa34c186d20561d891
--- /dev/null
+++ b/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/a40bbf86-46e9-47e7-b609-e19a4fb0ae0f_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:594c1e137d7becde6a7796a756e8b130edde70b8e4f9e3d39f4048288dd1e951
+size 115337
diff --git a/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/a40bbf86-46e9-47e7-b609-e19a4fb0ae0f_origin.pdf b/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/a40bbf86-46e9-47e7-b609-e19a4fb0ae0f_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..bde1daf51d495cff05074a1d05b9c6add01f8c99
--- /dev/null
+++ b/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/a40bbf86-46e9-47e7-b609-e19a4fb0ae0f_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:404a19a05a875c8d2049ed8b7ad55ef9d4b75c5be4fc513feba1490f8d7c03ba
+size 491939
diff --git a/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/full.md b/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f4af9779ead69e33fbc064b4c2838d00c7bc30ee
--- /dev/null
+++ b/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/full.md
@@ -0,0 +1,324 @@
+# GOTTACK: UNIVERSAL ADVERSARIAL ATTACKS ON GRAPH NEURAL NETWORKS VIA GRAPH ORBITS LEARNING
+
+Zulfikar Alom1, Tran Gia Bao Ngo1, Murat Kantarcioglu2, Cuneyt Gurcan Akcora3
+
+$^{1}$ Department of Computer Science, University of Manitoba, Canada
+$^{2}$ Department of Computer Science, Virginia Tech, USA
+$^{3}$ AI Initiative - University of Central Florida, USA
+
+md.alom@umanitoba.ca, ngot1@myumanitoba.ca, muratk@vt.edu
+cuneyt.accora@ucf.edu
+
+# ABSTRACT
+
+Graph Neural Networks (GNNs) have demonstrated superior performance in node classification tasks across diverse applications. However, their vulnerability to adversarial attacks, where minor perturbations can mislead model predictions, poses significant challenges. This study introduces GOattack, a novel adversarial attack framework that exploits the topological structure of graphs to undermine the integrity of GNN predictions systematically.
+
+By defining a topology-aware method to manipulate graph orbits, our approach generates adversarial modifications that are both subtle and effective, posing a severe test to the robustness of GNNs. We evaluate the efficacy of GOttack across multiple prominent GNN architectures using standard benchmark datasets. Our results show that GOttack outperforms existing state-of-the-art adversarial techniques and completes training in approximately $55\%$ of the time required by the fastest competing model, achieving the highest average misclassification rate in 155 tasks. This work not only sheds light on the susceptibility of GNNs to structured adversarial attacks but also shows that certain topological patterns may play a significant role in the underlying robustness of the GNNs. Our Python implementation is shared at https://github.com/cakcora/GOttack.
+
+# 1 INTRODUCTION
+
+Recent advances in Graph Neural Networks (GNNs) have brought significant progress in node classification tasks, utilizing the power of graph topology and node features to generate insightful inferences across various application domains such as social networks (Fan et al., 2020), bioinformatics (Zhang et al., 2021) and communication systems (He et al., 2021). Despite their effectiveness, GNNs exhibit inherent vulnerabilities to adversarial attacks; a minor yet strategically designed perturbation in the graph structure or nodal features can deceive the model into erroneous predictions. This susceptibility not only undermines the reliability of GNNs but also poses a grave security risk in critical applications.
+
+Existing approaches predominantly rely on direct node feature manipulation or edge modifications without considering their topological impact. We address this limitation by designing a novel adversarial attack framework that systematically alters the graph topology to induce misclassification errors. Distinct from existing methods, we leverage node connectivity patterns (i.e., orbits) in local graph structures to maximize adversarial efficacy.
+
+Our studies of graph topology yield a surprising result; we have uncovered a universal attack strategy commonly employed by several well-known gradient-based adversarial models. This strategy uses two graph orbits to delineate the resilience of GNNs to adversarial manipulations. Following this discovery, we introduce the GOttack algorithm, an advanced method that identifies and exploits these vulnerable graph orbits. GOttack not only enhances attack misclassification rates but also operates
+
+with greater efficiency, reducing the complexity of the attack search associated with such adversarial interventions.
+
+Through rigorous experiments across three GNN node classification backbones, four state-of-the-art adversarial models, five benchmark datasets, and four defense models, we demonstrate that GOattack achieves higher misclassification rates, maintains a lower computational overhead, and proves effective against defense models.
+
+Our contributions can be summarized as follows:
+
+- We determine a key topological equivalence group among graph nodes, revealing its frequent use in the selection process of gradient-based adversarial models.
+- Our findings present a new vulnerability in GNNs related to graph topology. Our experiments demonstrate that such attacks are highly effective against state-of-the-art defense models.
+- Our proposed attack strategy, GOattack, achieves the highest misclassification rate and represents a scalable attack model suitable for large graphs.
+
+# 2 NOTATION AND PRELIMINARIES
+
+We consider the task of node classification in a graph, denoted as $\mathcal{G} = (\mathcal{V},\mathcal{E},\mathbf{X})$ , where $\mathcal{V}$ represents the set of nodes, $\mathcal{E} \subseteq \{(v,w) \mid v,w \in \mathcal{V}\}$ is the set of edges, and $\mathbf{X} = \{x_0,x_1,\ldots,x_{n-1}\}$ comprises feature vectors such that $x_i \in \mathbb{R}^M$ is the $M$ -dimensional feature vector of node $i$ . The adjacency matrix $\mathbf{A} \in \{0,1\}^{N \times N}$ for the graph $\mathcal{G}$ has elements $\mathbf{A}_{vw} = 1$ if there is an edge $e_{vw}$ connecting nodes $v$ and $w$ , and 0 otherwise.
+
+A subset of nodes $\mathcal{V}_L \subseteq \mathcal{V}$ is labeled, each associated with class labels from the set $\mathcal{C} = \{1, \dots, c\}$ , where $y_v$ denotes the true label of node $v$ in $\mathcal{V}_L$ . This setup facilitates examining how shared labels influence edge formation between nodes, an essential aspect of understanding neighbor influence on node classification. Homophily (Zhu et al., 2020) in graphs is traditionally characterized by the similarity between connected node pairs, where nodes are considered similar if they share identical labels. The homophily ratio is constructed based on this premise as follows:
+
+Definition 1 (Homophily Ratio). Let $\mathcal{G}$ denote the aforementioned graph and $\mathbf{y}$ represent the vector of node labels. The homophily ratio is defined as the proportion of edges connecting nodes with the same labels, formally given by: $h(\mathcal{G},\{y_v;v\in \mathcal{V}\}) = \frac{1}{|\mathcal{E}|}\sum_{(v,w)\in \mathcal{E}}\mathbb{1}(y_v = y_w)$ , where $\mathbb{1}(\cdot)$ denotes the indicator function.
+
+A graph is considered highly homophilous if the homophily ratio $h(\cdot)$ is large, typically within the range $0.5 \leq h(\cdot) \leq 1$ . Conversely, a low homophily ratio indicates a heterophilous graph.
+
+Node Classification. The goal of node classification is to infer a function $g: \mathcal{V} \to \mathbb{P}(\mathcal{C})$ , that assigns a probability distribution over the class set $\mathcal{C}$ to each unlabeled node $v$ , where $\hat{y}_v$ is the predicted class for node $v$ , identified as the class with the highest probability in $g(v)$ . This setup, characterized as transductive learning, implies that the model predictions are based on instances both seen and used during training.
+
+The Graph Convolutional Network (GCN), as introduced by Kipf & Welling (2017), provides a foundational model for understanding and analyzing the vulnerabilities exposed by our proposed attack model. GCN employs a message-passing technique that utilizes the features of neighboring nodes, making it susceptible to adversarial manipulations that can alter node connections and lead to misclassifications. As a result, this section will define our attack using the GCN operations, which are detailed in Appendix B.1.
+
+Adversarial Attack. Adversarial attacks on graph data aim to subtly perturb graph structures or node features, causing GCN to misclassify specific nodes. This entails creating a new graph $\mathcal{G}' = (\mathbf{A}',\mathbf{X}')$ from the original $\mathcal{G} = (\mathbf{A},\mathbf{X})$ , with changes to $\mathbf{A}$ (i.e., structural attacks) or $\mathbf{X}$ (i.e., feature attacks). In an attack, a subset of nodes $v\in \mathcal{V}_T\subseteq \mathcal{V}$ are targeted to have the GCN misclassify their labels $\hat{y}_v\neq y_v$ within a specified budget $\Delta$ as $\sum_{u}\sum_{f}\left|\mathbf{X}_{uf} - \mathbf{X}_{uf}^{\prime}\right| + \sum_{u < w}|\mathbf{A}_{uw} - \mathbf{A}_{uw}^{\prime}|\leq \Delta$
+
+The node $v$ may be directly affected (i.e., $u = v$ ), or influence attacks can impact any other node within the graph (i.e., $u \neq v$ ). The attacks take various forms and occur during different phases. i)
+
+Poisoning attacks occur during training time, aiming to compromise the model by manipulating the training dataset. Evasion attacks occur at test time, attempting to generate deceptive samples that evade detection by a trained model. ii) In targeted attacks, the objective is to misclassify specific target nodes $\mathcal{V}_T$ , while in non-targeted attacks, the goal is to reduce the overall accuracy of the model.
+
+# 3 RELATED WORK
+
+Recent interest has grown in adversarial attacks on graph neural networks Gunnemann (2022). These attacks demonstrate how minor changes to input features or graph structure can alter network outputs, often causing incorrect classifications. We begin with an overview of gradient-based attacks and then discuss non-gradient-based methods (refer to App. Table 56 for a complete classification).
+
+Gradient-based attacks. Gradient-based attacks on graph neural networks exploit the gradients of the model to perturb node features or graph structure, aiming to mislead the network into making incorrect predictions. Zügner et al. (2018) proposed Nettack, which marked the inaugural exploration of gradient attacks on attributed graphs, revealing significant accuracy declines even with minor alterations. Another novel approach by Xu et al. significantly reduced classification performance by causing a small number of edge perturbations (Xu et al., 2019a). Similarly, Li et al. (2023) introduced the SGA framework to target nodes by using a smaller subgraph around the target node and leveraging gradient information for attack optimization. Fast Gradient Attack (FGA) used gradient information from GCNs and outperformed baseline methods by efficiently disturbing network embedding with minimal link rewiring (Chen et al., 2018). To describe the robustness of deep learning models for graph-based tasks, Zügner & Gunnemann (2019) introduced training-time attacks using metagradientsto perturb graph structures, which effectively renders the model near-useless for production use, all without direct access to the target classifier. Our approach also uses a gradient-based attack; however, we reduce the amount of costly gradient computations.
+
+Non-gradient-based attacks. Sun et al. (2020) introduced a novel node injection poisoning attack that used hierarchical Q-learning to optimize the injection process. Likewise, Chang et al. (2022) proposed the GF-Attack for conducting black-box adversarial attacks on graph embedding models without access to labels. Hussain et al. (2021) proposed Structack, which uses structural centrality and similarity insights to lower GNN costs efficiently. Similarly, Zou et al. (2021) proposed the topological defective graph injection attack, where adversaries inject adversarial nodes into existing graphs rather than modifying links or node attributes. Zhang et al. (2023) proposed membership inference attacks targeting edges, also known as link-stealing attacks, which used customized attacks by introducing a group-based attack paradigm that is suited to various groups of edges. Mu et al. (2021) proposed the attack as an optimization problem to minimize perturbations to the graph structure, with a particular emphasis on the difficult hard-label black-box attack scenario.
+
+The approach we propose in this paper differs from all the above-mentioned proposals in that none have attempted to identify equivalence groups for graph nodes based on graph orbits to minimize the search space in discrete optimization. Furthermore, our proposed solution introduces a highly effective and efficient algorithm for universal attacks on node classification models, demonstrating significantly faster performance compared to existing methods (e.g., attack training in approximately $55\%$ of the time required by the fastest competing model).
+
+# 4 METHODOLOGY
+
+We propose the GOattack framework to execute adversarial attacks on node classification GNNs while minimizing changes to the graph's structure. Figure 1 illustrates the overview of the GOattack research workflow.
+
+Challenge. A significant attack challenge in our task is the substantial time complexity, as structural attacks on the underlying graph data might require up to $O(2^{|\mathcal{V}| \times |\mathcal{V}|})$ steps for finding the optimal set of edges to remove or add. This scale of complexity necessitates the development of efficient methods.
+
+GOtattack Philosophy. GOtattack draws inspiration from the Mapper philosophy of Topological Data Analysis (TDA), as described by Singh et al. (2007). This philosophy posits that data has shape, and finding the shape may allow us to build better models. In our case, we focus on identifying and
+
+
+Figure 1: Complete research workflow diagram of GOttack.
+
+grouping nodes on the graph so that graph topology can help us select which nodes and edges to attack in GNNs.
+
+Gottack Solution. Gottack utilizes group theory (Bogopolskij, 2008) to identify node equivalence classes (Alon, 2007) on a graph, which guide our decisions on which edges to add or remove. This approach strategically groups nodes according to their positions on the graph in potential attack strategies, thereby enhancing both the precision and time-efficiency of our adversarial interventions.
+
+# 4.1 ATTACK MODEL
+
+We aim to target a specific node $v \in \mathcal{V}$ in a targeted, structural, direct poisoning attack to alter its predicted class. As the prediction of $v$ depends not only on its individual attributes but also on the characteristics of neighbouring nodes $\mathcal{N}(v)$ within the graph, we are focused on perturbations to the initial graph $\mathcal{G}$ with the condition: $\exists w, \mathcal{A}_{vw}' \neq \mathcal{A}_{vw}$ where $w \in \mathcal{V}$ . However, to prevent the attacker from completely modifying the graph, we impose a constraint on the total number of allowable changes, controlled by a specified budget $\Delta$ : $\sum_{w \in \mathcal{V}} |\mathcal{A}_{vw} - \mathcal{A}_{vw}'| \leq \Delta$ .
+
+Problem Statement. Consider an initial graph $\mathcal{G} = (\mathcal{A},\mathcal{X})$ , a target node $v$ , and its true class $y_{v}$ . Our goal is to modify the graph's structure such that the classification of $v$ changes from $y_{v}$ to $y_{v'}$ , where $y_{v}\neq y_{v'}$ , thereby maximizing the difference from its original classification. The proposed attacks can be mathematically formulated as a bi-level optimization problem:
+
+$$
+\arg \max _ {\left(\mathcal {A} ^ {\prime}, \mathcal {X}\right) \in \mathcal {G} ^ {\prime}} \max _ {y _ {v ^ {\prime}} \neq y _ {v}} \ln Z _ {v, y _ {v ^ {\prime}}} ^ {*} - \ln Z _ {v, y _ {v}} ^ {*} \tag {1}
+$$
+
+where $\mathbf{Z}^{*} = f_{\theta^{*}}(\mathcal{A}',\mathcal{X})$ and $\theta^{*} = \arg \min_{\theta}\mathcal{L}(\theta ;\mathcal{A}',\mathcal{X})$ subject to the budget constraint. Specifically, we aim to find a modified graph $\mathcal{G}' = (\mathcal{A}',\mathcal{X})$ in which the target node $v$ is assigned a label $y_{v'}$ that maximizes the difference from its original label $y_{v}$ in terms of probability scores.
+
+
+Figure 2: A toy graph where shared node colors imply similar orbit counts. Nodes $u$ , $z$ , and $w$ have 15 and 18 orbits, respectively.
+
+# 4.2 EQUIVALENCE CLASSES IN STRUCTURAL ATTACKS
+
+We utilize an attack strategy based on node equivalence groups to guide our decisions regarding the addition and deletion of edges. This section begins by defining graphlets, which are instrumental in identifying node equivalence groups. We then discuss orbits, representing the specific positions a node can assume within a graphlet to facilitate effective grouping. As a last step, we compute Graph Orbit Vectors from all graphlets to develop a multi-orbit based attack strategy.
+
+Definition 2 (Graphlet (Kloks et al., 2000)). A graphlet $\mathcal{G}_{gp}$ within a larger graph $\mathcal{G} = (\mathcal{V},\mathcal{E},\mathcal{X})$ is a connected induced subgraph $\mathcal{G}s' = (\mathcal{V}',\mathcal{E}',\mathcal{X}')$ , where $\mathcal{V}' \subseteq \mathcal{V}$ , and $\mathcal{E}'$ includes all edges $e_{uv} \in \mathcal{E}$ with both $u$ and $v$ in $\mathcal{V}'$ , and $|\mathcal{V}'|$ typically equals 5 (as defined in Appendix Figure 6).
+
+There are 30 distinct graphlets of 5-nodes (see Appendix Figure 6 for the shapes). For instance, consider the nodes $\{u, x, v, k, y\}$ in Figure 2, which forms a graphlet with $|\mathcal{V}'| = 5$ .
+
+Orbits are defined by automorphisms of the graphlet; an automorphism $\sigma$ of a graphlet $\mathcal{G}_{gp}$ satisfies $\sigma \cdot \mathcal{G}_{gp} = \mathcal{G}_{gp}$ . Nodes $v$ and $w$ in $\mathcal{V}$ are similar if there exists an automorphism $\sigma$ such that $\sigma(v) = w$ .
+
+The orbit of a node $v$ , denoted by $\mathrm{Orb}(\mathcal{G}_{gp}, v)$ , is the set of all nodes $w \in \mathcal{V}$ that can be mapped onto $v$ by some automorphism of the graphlet:
+
+Definition 3 (Orbit (Alon, 2007)). $\text{Orb}(\mathcal{G}_{gp}, v) = \{w \in \mathcal{V} \mid \sigma \in \text{Aut}(\mathcal{G}_{gp}) : \sigma(v) = w\}$ .
+
+where $\mathrm{Aut}(\mathcal{G}_{gp})$ is the group of automorphisms of $\mathcal{G}_{gp}$ . Each orbit is denoted by $\mathrm{Orb}_j$ , where $j$ is a unique identifier for each orbit within a specific graphlet. A node $v$ touches an orbit $\mathrm{Orb}_j$ if $v$ is part of an induced subgraph in the graph and $v$ belongs to $\mathrm{Orb}_j$ . By extension, a node may appear in multiple graphlets and, hence, occupy multiple orbits. For example, in Figure 2, node $x$ appears in graphlets comprising of nodesets $\{x,v,k,l,w\}$ and $\{x,v,k,y,l\}$ and so on. Overall, the 30 distinct graphlets create 73 distinct orbits (see Appendix Figure 6 for the orbit positions). The number of graphlets and orbits are all uniquely determined by the choice of using 5-node graphlets.
+
+Definition 4 (Graph Orbit Vector). We propose a Graph Orbit Vector (GOV) as a numerical representation of a node's participation across the 73 orbits in a graph. Consequently, $\mathbf{GOV}_{\mathbf{v}}$ of a node $v$ is an $n = 73$ -dimensional vector, where each dimension corresponds to the count of a specific orbit touched by node $v$ . This dimensionality reflects the full set of topological positions a node can occupy across all 5-node graphlets, making it a comprehensive description of a node's structural embedding.
+
+We initialize the vector element for $\mathrm{Orb}_j$ of node $v$ at zero and increase it by one each time $v$ appears in orbit $\mathrm{Orb}_j$ of any graphlet, where $\mathrm{Orb}_j$ is an induced subgraph containing $v$ . This count reflects the number of graphlets in which $v$ participates through orbit $\mathrm{Orb}_j$ . As a result, the Graph Orbit Vector provides a profile of a node's topological embedding within the graph. Notably, orbit discovery is performed for the entire graph as a pre-processing step, eliminating the need for recomputation for each target node.
+
+
+Figure 3: Graphlets where orbits 15 and 18 are defined.
+
+# 4.3 GOTTACK: GRAPH STRUCTURE POISONING VIA ORBIT LEARNING
+
+In our exploration of graph topology, we have discovered a distinctive feature shaped by orbits 15 and 18: nodes touching these orbits appear in peninsula-like subgraphs (such as the one formed in Figure 2 by nodes $\{u,x,v,k,t\}$ ). These orbits (see Figure 3) are characteristic of being three or four edges away
+
+from another endpoint in the graphlet and serve as critical indicators of topological peripheries within a graph. This geometric arrangement lends a substantial foundation to our subsequent analyses and adversarial strategies on graph data, as discussed in the following hypotheses and experimental sections.
+
+We start by stating our topological observation as influenced by the Mapper philosophy: 1) Orbit Proxy. Under the homophily assumption, node classification posits that graph neighbors are similar to a node in the label. Consequently, nodes in more distant positions, as can be identified by orbits, are less similar. 2) Periphery Orbits. Orbits 15 and 18 indicate the topological periphery in a graph and provide a useful proxy for identifying distant nodes that differ in labels.
+
+We claim that the path distance within the graph encodes a notion of remoteness, which in turn yields minimal information about a node's label. This indicates that physical proximity within the network strongly influences the predictive accuracy regarding node labels. In our experiments (Section 5), we also provide empirical evidence demonstrating the utility of the Orbit Proxy in heterophilic graph cases, albeit in a weaker form.
+
+In Theorem 1, we formally state that nodes located in orbits 15 and 18, due to their peripheral placement, are particularly effective for establishing paths to remote parts of the graph. This has significant implications for designing network protocols and algorithms that rely on efficient data traversal and retrieval mechanisms.
+
+Theorem 1 (Remote Connection Candidates). Let $H(v, w)$ denote the expected random walk hitting time from node $v$ to node $w$ in $\mathcal{G}$ . For any target node $v \in V$ , nodes in orbits 15 and 18 are the most effective candidates of $w$ for establishing paths to the most remote parts of $\mathcal{G}$ , due to their longer expected hitting times $H(v, w)$ compared to other nodes not in these orbits.
+
+Due to space limitations, the proof is given in Appendix A.
+
+The Periphery Orbits observation forms the backbone of our attack strategy; we identify nodes of periphery orbits (i.e., 15 and 18) and affect the adjacency matrix (i.e., add or remove edges to these
+
+nodes) accordingly to confuse a GNN to misclassify a target. Consider the target node $v$ in Figure 2. Our hypothesis posits that creating an edge from $v$ (or any other node) to either of the (orbit 15 and 18) nodes $u, z$ or $w$ will yield the highest misclassification error in GCN. The selection among periphery nodes uses a gradient-based method, as we detail below in surrogate loss.
+
+Orbits (15, 18). We define two ordered orbit categories based on the highest and second-highest orbit counts. The highest is given by $Orb_{\mathrm{max}}^v = \arg \max (\mathrm{GOV}_v)$ . If multiple orbits share this count, one is chosen arbitrarily. The second-highest is $Orb_{\mathrm{sec}}^v = \arg \max (\{j\in \mathrm{GOV}_v\mid j\neq Orb_{\mathrm{max}}^v\})$ . Each node is then assigned an orbit category $Orb^{v} = Orb_{\mathrm{max}}\| Orb_{\mathrm{sec}}$ , where order does not matter.
+
+Example 1. Consider a node $v$ in graph $\mathcal{G}$ . Although GOattack works with $k = 5$ -node graphlets, for simplicity, this example employs three-node graphlets ( $k = 3$ ) for orbit counting, yielding a 4-dimensional vector to store all possible orbits. Suppose the orbit count vector for node $v$ is $GOV_v = [4, 15, 11, 12]$ . The task is to identify the largest and second-largest orbit count values in $GOV_v$ . The largest orbit count value is 15, denoted by $Orb_{\text{max}}^v = 01$ , and the second-largest orbit count value is 12, denoted by $Orb_{\text{sec}}^v = 03$ . Thus, node $v$ is categorized into the orbit category $Orb^v = 01|03$ or 0103 in short.
+
+Surrogate loss. Our objective is to maximize the discrepancy in log probabilities for the target node $v$ within a specified budget $\Delta$ . The log-probabilities can be simplified to $\hat{A}^2\mathcal{X}\mathcal{W}$ . We linearize the model by replacing the nonlinearity $\sigma(.)$ with a simple linear activation function. Therefore, from Eq. 3, $Z' = \mathrm{softmax}(\hat{A}\hat{A} X W^1 W^2) = \mathrm{softmax}(\hat{A}^2 X W)$ . Therefore, the surrogate loss function, $\mathcal{L}_s(\mathcal{A},\mathcal{X};\mathcal{W},v)$ , is designed to optimize the following objective: $\arg \max_{(A',X)\in \mathcal{G}'}\mathcal{L}_s(\mathcal{A}',\mathcal{X};\mathcal{W},v)$ , where,
+
+the surrogate loss function $\mathcal{L}_s$ is defined as $\mathcal{L}_s(\mathcal{A}',\mathcal{X};\mathcal{W},v) = \max_{w\neq z}[\hat{A}^2 XW]_{v,z} - [\hat{A}^2 XW]_{v,w}$ . This function aims to solve the maximum loss over a set of permissible changes in $\mathcal{A}$ of $\mathcal{G}$ .
+
+Structure poisoning. We compute a candidate node set called the orbit category, denoted as $Orb_{cat}$ , consisting only of allowable elements $(v, u)$ where the edge changes from 0 to 1 (i.e., adding an edge) or vice versa. Specifically, for a given target node $v$ , we create a candidate set such that $u \in \mathcal{V}$ where $Orb_{\max}^u = 1518$ . Among the candidate edge changes, we select the one that yields the highest surrogate loss. However, to compute the surrogate loss score, we first need to determine the class prediction of the target node $v$ after adding or removing an edge $(u, v)$ . Here, we are optimizing the loss score with respect to $\mathcal{A}$ ; the term $\mathcal{XW}$ is constant. The log-probabilities of node $v$ are then given by $g(v) = [\hat{\mathcal{A}}^2]_v \cdot C$ , where $[\hat{\mathcal{A}}^2]_v$ denotes a row vector and $C$ is the constant term ( $\mathcal{XW}$ ). Thus, we only need to inspect how this row vector changes to determine the optimal edge manipulation. Following the insight developed by Zügner & Gunnemann (2019), we can derive an incremental update, so there is no need to recompute the updated $[\hat{\mathcal{A}}^2]_v$ from scratch.
+
+We assume access to the complete graph and its training labels, allowing adversaries to exploit its structure but not the target model, focusing instead on transferable attacks. This setting applies to domains like social and transaction networks, where graph structures are publicly visible (e.g., social media friendships, academic citations, and cryptocurrency transactions).
+
+Time Complexity. Orbit discovery is the primary computational cost of GOttack. The time complexity for computing all orbits for all nodes is $O(|E| \times d + |V| \times d^4)$ , where $O(|V| \times d^4)$ corresponds to the time required to enumerate all five-node graphlets, and $d$ denotes the maximum degree in the graph. For instance, orbit discovery on the CORA dataset takes only 0.17 seconds. All time costs for orbit discovery are provided in Appendix Table 52.
+
+# 5 EXPERIMENTS
+
+This section presents the experimental evaluation we carried out to show the effectiveness of the proposed approach. We answer the following questions: i) How effective is the GOttack approach in terms of misclassification rate compared with existing state-of-the-art approaches? ii) How efficient is the proposed model in terms of computation time compared with the existing models? iii) How easy is it to defend against GOttack compared to existing models?
+
+Datasets. We conduct experiments on five widely used node classification datasets, the statistics of which are provided in Table 1. Cora (Yang et al., 2016), Citeseer (Yang et al., 2016) and Pubmed
+
+Table 2: Misclassification rate (in %) $(\uparrow)$ of target nodes in five datasets where three backbone GNNs (GCN, GIN and GraphSAGE) are attacked in node classification with budget $\Delta = 1$ . See Appendix D.1 for stds.
+
+
Cora
Citeseer
Polblogs
BlogCatalog
Pubmed
Method
GSAGE
GCN
GIN
GSAGE
GCN
GIN
GSAGE
GCN
GIN
GSAGE
GCN
GIN
Random
19.11
2.07
17.30
30.01
2.01
10.03
15.13
12.04
17.04
3.09
12.09
4.19
Nettack
58.04
34.06
46.10
66.09
46.04
57.04
29.02
38.04
13.02
50.11
20.02
55.07
FGA
54.08
32.05
40.09
60.11
31.10
44.10
22.08
31.09
14.02
46.15
10.04
61.09
SGA
61.06
41.05
57.05
60.06
41.06
57.06
35.05
37.07
35.08
51.45
24.03
61.02
PRBCD
35.02
41.06
36.10
35.04
46.04
42.02
8.01
42.07
33.06
33.05
5.09
38.02
GAttack (ours)
59.05
41.52
37.03
61.09
46.07
57.06
29.03
41.08
15.08
52.10
22.04
63.08
+
+(Yang et al., 2016) datasets are citation networks with undirected edges and binary features where nodes are publications and edges are citation links.
+
+In the Polblogs (Adamic & Glance, 2005) dataset, nodes are political blogs, and edges are links between them. In the BlogCatalog (Tang & Liu, 2009) dataset, nodes' attributes are constructed by keywords, which are generated by users as a short description of their blogs. We split the networks into labeled $(20\%)$ and unlabeled nodes $(80\%)$ .
+
+We further split the labeled nodes into equal parts training and validation sets to train the surrogate model. We have used the ORCA algorithm (Hocevar & Demsrar, 2014) for the orbit discovery process on these datasets.
+
+Experimental Setup. We have conducted the experiments under the transductive, semi-supervised
+
+Table 1: Dataset statistics.
+
+
Dataset
Hom.
Nodes
Edges
Features
Labels
Cora
0.81
2,485
5,069
1,433
7
CiteSeer
0.74
2,110
3,668
3,703
6
Polblogs
0.91
1,222
16,714
1,490
2
Pubmed
0.81
19,717
44,325
500
3
BlogCatalog
0.40
5,196
171,743
8,189
6
+
+learning setting. We have used both common node classifier GNNs, including GCN (Kipf & Welling, 2017), GIN (Xu et al., 2019b), and GraphSAGE (Hamilton et al., 2017) and defense models, including RobustGCN (Zhu et al., 2019), GCN-Jaccard (Wu et al., 2019), GCN-SVD (Entezari et al., 2020), and MedianGCN (Chen et al., 2021) as the backbone to evaluate our adversarial attacks.
+
+We average over five different random initializations/splits, where for each, we follow these steps: Initially, we train the surrogate model on the labeled data. From the test set, among all nodes correctly classified, we adopt the popular practice of Nettack and select: (i) the 10 nodes with the highest margin of classification, indicating clear correctness, (ii) the 10 nodes with the lowest margin (still correctly classified), and (iii) 20 additional nodes randomly chosen. These selected nodes will be the targets for the attacks. All results presented here are computed by us in the same settings.
+
+In our attack model, the budget $\Delta$ limits the number of allowed perturbations, such as edge additions or deletions. Its optimal value depends on the graph's structure, particularly node degrees: small $\Delta$ (e.g., 1 or 2) can significantly impact low-degree nodes, while higher values suit high-degree nodes. To ensure comparability, we adopt fixed budgets ( $\Delta = 1, \ldots, 5$ ), following prior works like Nettack and FGA.
+
+We compare GOtack against five state-of-the-art graph adversarial attack frameworks: Nettack (Zugner et al., 2018), FGAttack (FGA)(Chen et al., 2018), SGAttack (SGA) (Li et al., 2023) and PRBCD (Geisler et al., 2021) as well as a Random (dummy) baseline (see App. Section B.2 for descriptions). We use GCN as the surrogate model for the attack models except for SGA, which suggests SGC. We report the misclassification rate, which is the percentage of nodes that were incorrectly classified by the model in relation to the total number of nodes being classified.
+
+In our experiments, we utilized the PyG (PyTorch Geometric) library, which employs PyTorch as the backend for implementing GNN models. Additionally, we used the PyTorch adversarial library DeepRobust (Li et al., 2020) for robustness evaluations. The experiments were conducted using Python (Version 3.8.19) and PyTorch Version 3.10.0. The computational environment was a Linux cluster equipped with an AMD Ryzen Threadripper 3960X 24-core processor, 2520GB RAM and NVIDIA RTX A6000 with 49GB RAM GPUs. Our Python implementation is shared at https://github.com/cakcora/Gottack.
+
+Parameters setting. Our models were trained using the Adam (Kingma & Ba, 2015) optimization algorithm, employing a fixed learning rate of 0.01. Training sessions were conducted over a span of 200 epochs; we employed the softmax activation function.
+
+
+(a) GraphSAGE model
+
+
+(b) GCN model
+
+
+(c) GIN model
+Figure 4: Budgeted attack results on the CiteSeer dataset.
+
+# 5.1 GOTTACK MISCLASSIFICATION RESULTS
+
+Table 2 shows the misclassification rate achieved with a single edge perturbation (addition or deletion). GOattack yields the highest misclassification rates in 7 out of 15 attack settings and ranks second in 5 other settings. SGAttack yields 4 best attacks, while PRBCD and Nettack each perform best in 2 attack settings. PRBCD, a widely used method adopted by PyTorch, yields surprisingly low rates in two datasets for GSAGE and GIN. GOattack yields the highest overall rate of 52.08, whereas the second best Nettack yields 47.02.
+
+Likewise, Table 3 shows the misclassification rates of the top-3 attack models on defense models with a single edge perturbation. GOattack yields the highest misclassification rates in 7 out of 16 attack settings and ranks second in 7 other settings, while SGA achieves the best performance in 7 attack settings. GOattack achieves the highest overall rate of 33.07, whereas SGA has a rate of 32.5.
+
+In Figure 4, we gradually increase the attack budget and represent the corresponding misclassification rates on the Citeseer dataset (see Appendix D for all results). We observe that for GraphSAGE, GOattack yields better misclassification results, reaching a maximum misclassification score of $97\%$ with 5 perturbations. Similarly, for the GCN and GIN models, the proposed approach attains misclassification scores of $77\%$ and $76\%$ , respectively, outperforming the SOTA models.
+
+Extending the analysis of the relationship between increasing budgets ( $\Delta = 1, \dots, 5$ ) and misclassification rates to all datasets, we observe the following behavior (see Section D for complete results): GOattack achieves the highest misclassification rate in 28 out of 65 tasks for GCN, GSAGE and GIN models across all budgets. The numbers are 16 for PRBCD, 16 for SGAttack, and 3 for Nettack. GOattack achieves the highest average rate of 0.58 over all budgets and datasets compared to the second best model of PRBCD and SGAttack with 0.57 (Appendix Table 8).
+
+Furthermore, as shown in Table 4, GOattack demonstrates superior computational efficiency and scalability, making it particularly well-suited for large-scale graph datasets. This efficiency stems from its topological approach to candidate node selection, which reduces the search space for potential attack points without sacrificing effectiveness. For example, in the BlogCatalog dataset, GOattack requires only about $55\%$ of the time taken by Nettack to execute, significantly reducing computational overhead. Despite its speed, GOattack still maintains a high level of attack effectiveness, generating attack candidates in less than 10 minutes, even for datasets with a large number of nodes and edges. This balance between performance and computational cost highlights GOattack's practical applicability to real-world scenarios.
+
+While both Nettack and GOttack are scalable for large graphs, their methodologies differ: Nettack selects candidates based on degree distribution in each iteration, whereas GOttack leverages orbit structures. Although orbit discovery incurs some overhead, it reduces the candidate set to about $23\%$ of all nodes (see Appendix Figure 8), making the initial cost worthwhile. Among alternative methods,
+
+Table 3: Misclassification rate (in %) ( $\uparrow$ ) of target nodes in different datasets against four defense models (RGCN, GCN-Jaccard, GCN-SVD and MedianGCN) are attacked in node classification with budget $\Delta = 1$ . See Appendix D.2 for stds.
+
+
Cora
Citeseer
Polblogs
BlogCatalog
Method
RGCN
JAC
SVD
MDGCN
RGCN
JAC
SVD
MDGCN
RGCN
JAC
SVD
MDGCN
RGCN
JAC
SVD
MDGCN
SGA
44.01
33.02
28.03
32.05
53.00
36.01
24.04
36.01
46.03
43.05
16.01
43.05
25.02
25.02
15.05
20.01
Nettack
48.08
38.01
24.01
32.05
46.04
42.02
28.04
27.05
38.05
46.03
12.04
33.02
35.04
19.03
19.02
17.02
GÖntack (ours)
43.04
39.01
28.08
32.07
48.07
42.09
25.03
28.02
40.02
53.06
10.02
34.07
35.05
20.02
20.00
19.03
+
+
+(a) Computation graph before attack
+
+
+(b) Computation graph after attack
+Figure 5: The computation graph for the targeted node 1978 from the CORA datasets, as identified by GNNExplainer (Luo et al., 2020). The edge (1978, 387) is added during the successful attack. Edge importances change considerably after the attack and negative class gains importance due to the newly added nodes.
+
+only SGA is more scalable, as it focuses on local neighborhoods for candidate selection; however, its performance is worse than GOattack.
+
+We compared GOattack to adaptive attacks, which consider specific model architectures during attack generation. Results (see Appendix Section D) reveal that while adaptive attacks outperform in single-model scenarios, GOattack's transferable perturbations exhibit broader applicability across diverse settings, reinforcing its utility in exploratory research on adversarial robustness.
+
+# 5.2 INSIGHTS FROM GOTTACK RESULTS
+
+Gottack strategically selects nodes using the graph topology. This selection criterion prompts several thoughts and questions, which we address below:
+
+The periphery definition. A visual inspection of Figure 6 shows that more orbits, such as 19, 39, and 27, could fit the periphery definition. The primary reason for not considering these orbits is their relative scarcity in all the graph datasets. For example, node orbits from the Cora dataset in Appendix Figure 8 show that most nodes predominantly feature orbits within the 1518 and 1922 groups. Furthermore, as shown in Appendix Section D, attacks based on 1819, 1519 and 1922 yield less powerful attacks.
+
+Higher order orbits. GOttack uses two orbits: 1518. The decision against using $>2$ orbits is influenced by the fact that nodes typically do not have more orbits. For the single orbit case, our experiments had larger time complexity, as a larger pool of nodes was considered, yet the efficacy of attacks remained similar.
+
+Gradient-based models target 1518 nodes. Our analysis reveals that gradient-based models predominantly target 1518 nodes, as shown for Net
+
+tack in Table 5 and for other models in Appendix Tables 6 and 7. For instance, Table 5 shows that in the highly homophilous Polblogs, $97.5\%$ of initial attacks involve 1518 nodes, despite these nodes comprising only $9.41\%$ of the total. A similar trend appears in the heterophilous BlogCatalog dataset $(2.5\%$ and $22.5\%$ in $\Delta = 1,2$ attacks). This highlights the strategic role of orbit 1518 nodes in network attacks.
+
+Table 4: End-to-end time costs in seconds (↓). See Appendix Table 51 for stds.
+
+
Global
Local
GObtack
Nettack
FGA
PRBCD
SGA
Cora
48.27
59.57
55.63
242.37
32.24
CiteSeer
42.02
46.12
42.43
210.55
41.02
Polblogs
139.68
175.23
165.37
210.87
164.07
BlogCatalog
512.04
916.91
223.02
259.38
335.91
Pubmed
246.96
243.78
533.55
240.23
68.23
Median
139.68
175.23
165.37
240.23
68.23
+
+Node, Homophily, Distance and Subgraph-based Explanations for GOttack. We conducted a comprehensive analysis to understand how GOattack causes node misclassification. Initially, we used GNN explainers (see Appendix Section E.1), which factor in the subgraph effects and node features in perturbations. Figure 5 shows an example where misclassifications are due to changes in the importance of existing edges, which offers evidence that explanations specific to nodes or edges alone are insufficient to adequately explain an attack, as shown in Figure 5. However, as widely noted in the literature (Li et al., 2024a; Li et al., 2024b), explainers often disagree on the exact interpretation (see Figure 9b).
+
+Next, we focused on node-centric metrics to determine the positional changes of the target node within the graph following the attack. As detailed in Appendix Table 45, the target nodes' clustering coefficient, degree, betweenness, and closeness centralities did not show a significant difference compared to those influenced by other attacks. Secondly, we examined whether the attack brought in nodes with different labels into the computation graph of the target node (see Appendix Table 50). We found that after the attack, both similar and differently labeled nodes increased by 0.92 and 3.36 on average, respectively. However, these values are not as pronounced as those seen in other attacks, suggesting that the induced label diversity change by GOattack is not substantial. Next, we computed the shortest path distances from the target nodes to nodes with similar and different labels in the entire graph (see Appendix Table 48). This analysis provided empirical proof supporting our Theorem 1: the 1518 strategy more significantly reduces the distance to nodes of different labels $(-0.03)$ than to those of similar labels $(-0.02)$ . This behavior, which indicates a targeted modification in network dynamics, was not observed with other orbits.
+
+Budget Selection and Structural Implications. The choice of the attack budget $\Delta$ is important in determining the effectiveness and practicality of adversarial attacks. Fixed budgets, as employed in this study, provide consistency for benchmarking but may oversimplify real-world scenarios where the impact of a perturbation is context-dependent. For example, a budget of 5 for a node with a degree of 2 introduces a disproportionate perturbation compared to the same budget applied to a node with a degree of 2000. Future work could explore dynamic or adaptive budget strategies that account for degree distribution and other structural factors. Tables 42, 43 and, 44 present comparisons of GOattack with established budget settings, specifically considering the percentile of node degrees $(\epsilon)$ .
+
+Defenses and Availability. GOattack can be defended against by attending to node orbit types in GNN aggregations and reducing the importance of neighbors in 1518 orbits. In that case, topology offers new orbits to attack, such as 1519 and 1922, as we study and report in Appendix D. We have created a graph-algebra-based orbit selection scheme in Appendix C.3 that can attack i) a graph of any size and ii) a graph without the periphery orbits of 1518. However, we note that in all the datasets used, nodes belonging to orbit 1518 were particularly common (see Figure 8).
+
+Limitations. A notable limitation of our study is the assumption of access to complete graph and training labels, which may not always hold in real-world scenarios. Future work could relax these assumptions
+
+to enhance practical applicability while retaining the theoretical contributions. GOattack optimizes candidate node selection for attacks using a topological approach. Our primary hypothesis is that this topological method offers both efficiency and effectiveness. While brute-force methods or gradient-based optimizations can theoretically achieve the same attack success by exhaustively exploring all possible options, these approaches come with significant computational costs. Thus, the tradeoff between attack efficiency and runtime must be carefully balanced. GOattack addresses this by providing a principled strategy based on topology, offering a more computationally feasible solution without sacrificing attack efficacy.
+
+Table 5: Comparison of orbit-based node selection in sequential Nettack phases.
+
+
Dataset
Orbits
% of nodes
% in 1stAttack
% in 2ndAttack
Cora (h=0.81)
1518
24.00%
77.00%
71.10%
1519
14.41%
5.70%
14.29%
1819
11.59%
10.00%
12.50%
CiteSeer (h=0.74)
1518
21.99%
51.60%
61.29%
1519
21.18%
12.50%
15.00%
1819
11.56%
3.29%
0.00%
Polblogs (h=0.91)
1518
9.41%
97.50%
60.00%
1519
2.29%
0.00%
0.00%
1819
12.93%
2.50%
27.50%
Pubmed (h=0.81)
1518
20.14%
25.00%
10.00%
1519
23.07%
32.50%
52.50%
1618
2.24%
22.50%
10.00%
BlogCatalog (h=0.40)
1518
3.25%
2.50%
22.50%
1519
61.57%
62.50%
37.50%
1922
19.77%
35.00%
40.00%
+
+# 6 CONCLUSION
+
+We have identified a key equivalence group for graph nodes based on their topological positions within the graph and demonstrated that gradient-based attack models frequently target this group in their attacks. Our approach, GOattack, introduces a seminal topological strategy in adversarial graph machine learning. By uncovering this previously unexplored vulnerability tied to graph topology, our work highlights the susceptibility of graph neural networks to topology-based attacks and paves the way for developing efficient attack models. GOattack not only enhances misclassification rates but does so in a scalable manner. For future work, we aim to study topological defenses against attack models.
+
+# ACKNOWLEDGMENTS
+
+This work has received funding from Canadian NSERC Discovery Grant RGPIN-2020-05665: Data Science on Blockchain and Canadian Research Manitoba grant 324278-352400-2000: Bonafide: Decentralized Services for Sharing and Searching User Generated Data, and from the NSF awards DMS-2204795, OAC-2115094, CNS-2331424, ARL/Army Research Office awards W911NF-24-1-0202 and W911NF-24-2-0114 and NIH award 5RM1HG009034-08.
+
+# REFERENCES
+
+Lada A Adamic and Natalie Glance. The political blogosphere and the 2004 us election: divided they blog. In Proceedings of the 3rd international workshop on Link discovery, pp. 36-43, 2005.
+Uri Alon. Network motifs: theory and experimental approaches. Nature Reviews Genetics, 8(6): 450-461, 2007.
+Peter W. Battaglia, Jessica B. Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Flores Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, Caglar Gulçehre, H. Francis Song, Andrew J. Ballard, Justin Gilmer, George E. Dahl, Ashish Vaswani, Kelsey R. Allen, Charles Nash, Victoria Langston, Chris Dyer, Nicolas Heess, Daan Wierstra, Pushmeet Kohli, Matthew M. Botvinick, Oriol Vinyals, Yujia Li, and Razvan Pascanu. Relational inductive biases, deep learning, and graph networks. CoRR, abs/1806.01261, 2018. URL http://arxiv.org/abs/1806.01261.
+Oleg Vladimirović Bogopolskij. Introduction to group theory, volume 6. European Mathematical Society, 2008.
+Aleksandar Bojchevski and Stephan Gunnemann. Adversarial attacks on node embeddings via graph poisoning. In International Conference on Machine Learning, pp. 695-704. PMLR, 2019.
+Raffaella Burioni and Davide Cassi. Random walks on graphs: ideas, techniques and results. Journal of Physics A: Mathematical and General, 38(8):R45, 2005.
+Heng Chang, Yu Rong, Tingyang Xu, Wenbing Huang, Honglei Zhang, Peng Cui, Xin Wang, Wenwu Zhu, and Junzhou Huang. Adversarial attack framework on graph embedding models with limited knowledge. IEEE Transactions on Knowledge and Data Engineering, 35(5):4499-4513, 2022.
+Jinyin Chen, Yangyang Wu, Xuanheng Xu, Yixian Chen, Haibin Zheng, and Qi Xuan. Fast gradient attack on network embedding. CoRR, abs/1809.02797, 2018. URL http://arxiv.org/abs/1809.02797.
+Liang Chen, Jintang Li, Qibiao Peng, Yang Liu, Zibin Zheng, and Carl Yang. Understanding structural vulnerability in graph convolutional networks. In Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI 2021, Canada, 19-27 August 2021, pp. 2249-2255. ijcai.org, 2021. doi: 10.24963/IJCAI.2021/310. URL https://doi.org/10.24963/ijcai.2021/310.
+Hanjun Dai, Hui Li, Tian Tian, Xin Huang, Lin Wang, Jun Zhu, and Le Song. Adversarial attack on graph structured data. In 35th International Conference on Machine Learning, ICML 2018, Stockholm, Sweden, July 10-15, 2018, volume 80, pp. 1123-1132. PMLR, 2018. URL http://proceedings.mlr.press/v80/dao18b.html.
+Negin Entezari, Saba A. Al-Sayouri, Amirali Darvishzadeh, and Evangelos E. Papalexakis. All you need is low (rank): Defending against adversarial attacks on graphs. In WSDM '20: The Thirteenth ACM International Conference on Web Search and Data Mining, Houston, TX, USA, February 3-7, 2020, pp. 169-177. ACM, 2020. URL https://doi.org/10.1145/3336191.3371789.
+Wenqi Fan, Yao Ma, Qing Li, Jianping Wang, Guoyong Cai, Jiliang Tang, and Dawei Yin. A graph neural network framework for social recommendations. IEEE Transactions on Knowledge and Data Engineering, 34(5):2033-2047, 2020.
+
+Jian Feng and Shaojian Chen. Link prediction based on orbit counting and graph auto-encoder. IEEE Access, 8:226773-226783, 2020. doi: 10.1109/ACCESS.2020.3045529. URL https://doi.org/10.1109/ACCESS.2020.3045529.
+Simon Geisler, Tobias Schmidt, Hakan Şirin, Daniel Zügner, Aleksandar Bojchevski, and Stephan Gunnemann. Robustness of graph neural networks at scale. Advances in Neural Information Processing Systems, 34:7637-7649, 2021.
+Stephan Gunnemann. Graph neural networks: Adversarial robustness. Graph neural networks: foundations, frontiers, and applications, pp. 149-176, 2022.
+William L. Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pp. 1024-1034, 2017.
+Shiwen He, Shaowen Xiong, Yeyu Ou, Jian Zhang, Jiaheng Wang, Yongming Huang, and Yaoxue Zhang. An overview on the application of graph neural networks in wireless networks. IEEE Open Journal of the Communications Society, 2:2547-2565, 2021.
+Tomaz Hocevar and Janez Demsr. A combinatorial approach to graphlet counting. Bioinform., 30 (4):559-565, 2014. URL https://doi.org/10.1093/bioinformatics/btt717.
+Hussain Hussain, Tomislav Duricic, Elisabeth Lex, Denis Helic, Markus Strohmaier, and Roman Kern. Structack: Structure-based adversarial attacks on graph neural networks. In Proceedings of the 32nd ACM Conference on Hypertext and Social Media, pp. 111-120, 2021.
+Di Jin, Bingdao Feng, Siqi Guo, Xiaobao Wang, Jianguo Wei, and Zhen Wang. Local-global defense against unsupervised adversarial attacks on graphs. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pp. 8105-8113, 2023.
+Jeff D Kahn, Nathan Linial, Noam Nisan, and Michael E Saks. On the cover time of random walks on graphs. Journal of Theoretical Probability, 2:121-128, 1989.
+Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http://arxiv.org/abs/1412.6980.
+Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. 5th International Conference on Learning Representations, ICLR 2017, Toulouse, France, April 24-26, 2017, Conference Track Proceedings, 2017. URL https://openreview.net/forum?id=SJU4ayYgl.
+Ton Kloks, Dieter Kratsch, and Haiko Müller. Finding and counting small induced subgraphs efficiently. Information Processing Letters, 74(3-4):115-121, 2000. doi: 10.1016/S0020-0190(00) 00047-8. URL https://doi.org/10.1016/S0020-0190(00) 00047-8.
+Miroslaw Kowaluk, Andrzej Lingas, and Eva-Marta Lundell. Counting and detecting small subgraphs via equations. SIAM Journal on Discrete Mathematics, 27(2):892-909, 2013. doi: 10.1137/110859798. URL https://doi.org/10.1137/110859798.
+Jintang Li, Tao Xie, Liang Chen, Fenfang Xie, Xiangnan He, and Zibin Zheng. Adversarial attack on large scale graph. IEEE Transactions on Knowledge and Data Engineering, 35(1):82-95, 2023. URL https://doi.org/10.1109/TKDE.2021.3078755.
+Yaxin Li, Wei Jin, Han Xu, and Jiliang Tang. Deeprobust: A pytorch library for adversarial attacks and defenses. CoRR, abs/2005.06149, 2020. URL https://arxiv.org/abs/2005.06149.
+Dongsheng Luo, Wei Cheng, Dongkuan Xu, Wenchao Yu, Bo Zong, Haifeng Chen, and Xiang Zhang. Parameterized explainer for graph neural network. Annual Conference on Neural Information Processing Systems, 2020.
+Jiaqi Ma, Shuangrui Ding, and Qiaozhu Mei. Towards more practical adversarial attacks on graph neural networks. Annual Conference on Neural Information Processing Systems, NeurIPS, 2020.
+
+Ine Melckenbeeck, Pieter Audenaert, Didier Colle, and Mario Pickavet. Efficiently counting all orbits of graphlets of any order in a graph using autogenerated equations. Bioinformatics, 34(8): 1372-1380, 2018. URL https://doi.org/10.1093/bioinformatics/btx758.
+Jiaming Mu, Binghui Wang, Qi Li, Kun Sun, Mingwei Xu, and Zhuotao Liu. A hard label black-box adversarial attack against graph neural networks. In Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security, pp. 108-125, 2021.
+Gurjeet Singh, Facundo Memoli, and Gunnar E. Carlsson. Topological methods for the analysis of high dimensional data sets and 3d object recognition. 4th Symposium on Point Based Graphics, PBG@Eurographics 2007, Prague, Czech Republic, September 2-3, 2007, pp. 91-100, 2007. URL https://doi.org/10.2312/SPBG/SPBG07/091-100.
+Mingjie Sun, Jian Tang, Huichen Li, Bo Li, Chaowei Xiao, Yao Chen, and Dawn Song. Data poisoning attack against unsupervised node embedding methods. CoRR, abs/1810.12881, 2018. URL http://arxiv.org/abs/1810.12881.
+Yiwei Sun, Suhang Wang, Xianfeng Tang, Tsung-Yu Hsieh, and Vasant G. Honavar. Adversarial attacks on graph neural networks via node injections: A hierarchical reinforcement learning approach. WWW '20: The Web Conference 2020, Taipei, Taiwan, pp. 673-683, 2020. URL https://doi.org/10.1145/3366423.3380149.
+Lei Tang and Huan Liu. Relational learning via latent social dimensions. Proceedings of the 15th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Paris, France, pp. 817-826, 2009. URL https://doi.org/10.1145/1557019.1557109.
+Shuchang Tao, Qi Cao, Huawei Shen, Junjie Huang, Yunfan Wu, and Xueqi Cheng. Single node injection attack against graph neural networks. In Proceedings of the 30th ACM International Conference on Information & Knowledge Management, pp. 1794-1803, 2021.
+Shuchang Tao, Qi Cao, Huawei Shen, Yunfan Wu, Liang Hou, Fei Sun, and Xueqi Cheng. Adversarial camouflage for node injection attack on graphs. Information Sciences, 649:119611, 2023. URL https://doi.org/10.1016/j.ins.2023.119611.
+Marcin Waniek, Tomasz P. Michalak, Talal Rahwan, and Michael J. Wooldridge. Hiding individuals and communities in a social network. Nature Human Behaviour, abs/1608.00375, 2016. URL http://arxiv.org/abs/1608.00375.
+Hujun Wu, Chen Wang, Yuriy Tyshetskiy, Andrew Docherty, Kai Lu, and Liming Zhu. Adversarial examples for graph data: Deep insights into attack and defense. Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI, Macao, China, August 10-16, 2019, pp. 4816-4823, 2019. URL https://doi.org/10.24963/ijcai.2019/669.
+Yihan Wu, Aleksandar Bojchevski, and Heng Huang. Adversarial weight perturbation improves generalization in graph neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pp. 10417-10425, 2023.
+Kaidi Xu, Hongge Chen, Sijia Liu, Pin-Yu Chen, Tsui-Wei Weng, Mingyi Hong, and Xue Lin. Topology attack and defense for graph neural networks: An optimization perspective. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI 2019, Macao, China, August 10-16, 2019, pp. 3961-3967. ijcai.org, 2019a. URL https://doi.org/10.24963/ijcai.2019/550.
+Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019, 2019b. URL https://openreview.net/forum?id=ryGs6iA5Km.
+Zhilin Yang, William W. Cohen, and Ruslan Salakhutdinov. Revisiting semi-supervised learning with graph embeddings. In Proceedings of the 33nd International Conference on Machine Learning, ICML 2016, volume 48, pp. 40-48, 2016. URL http://proceedings.mlr.press/v48/yanga16.html.
+
+Zhitao Ying, Dylan Bourgeois, Jiaxuan You, Marinka Zitnik, and Jure Leskovec. Gnnexplainer: Generating explanations for graph neural networks. Annual Conference on Neural Information Processing Systems, NeurIPS 2019, Vancouver, BC, Canada, pp. 9240-9251, 2019.
+He Zhang, Bang Wu, Shuo Wang, Xiangwen Yang, Minhui Xue, Shirui Pan, and Xingliang Yuan. Demystifying uneven vulnerability of link stealing attacks against graph neural networks. In International Conference on Machine Learning, pp. 41737-41752. PMLR, 2023.
+Xiao-Meng Zhang, Li Liang, Lin Liu, and Ming-Jing Tang. Graph neural networks and their current applications in bioinformatics. Frontiers in genetics, 12:690049, 2021.
+Ziwei Zhang, Peng Cui, and Wenwu Zhu. Deep learning on graphs: A survey. IEEE Transactions on Knowledge and Data Engineering, 34(1):249-270, 2022. URL https://doi.org/10.1109/TKDE.2020.2981333.
+He Zhao, Zhiwei Zeng, Yongwei Wang, Deheng Ye, and Chunyan Miao. Hgattack: Transferable heterogeneous graph adversarial attack. IEEE International Conference on Agents, ICA 2024, Wollongong, Australia, pp. 100-105, 2024. URL https://doi.org/10.1109/ICA63002.2024.00028.
+Jie Zhou, Ganqu Cui, Shengding Hu, Zhengyan Zhang, Cheng Yang, Zhiyuan Liu, Lifeng Wang, Changcheng Li, and Maosong Sun. Graph neural networks: A review of methods and applications. AI Open, 1:57-81, 2020. URL https://doi.org/10.1016/j.aiopen.2021.01.001.
+Dingyuan Zhu, Ziwei Zhang, Peng Cui, and Wenwu Zhu. Robust graph convolutional networks against adversarial attacks. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD, USA, pp. 1399-1407. ACM, 2019. URL https://doi.org/10.1145/3292500.3330851.
+Jiong Zhu, Yujun Yan, Lingxiao Zhao, Mark Heimann, Leman Akoglu, and Danai Koutra. Beyond homophily in graph neural networks: Current limitations and effective designs. Annual Conference on Neural Information Processing Systems, NeurIPS, 2020.
+Xu Zou, Qinkai Zheng, Yuxiao Dong, Xinyu Guan, Evgeny Kharlamov, Jialiang Lu, and Jie Tang. Tdgia: Effective injection attacks on graph neural networks. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, pp. 2461-2471, 2021.
+Daniel Zügner and Stephan Gümnmann. Adversarial attacks on graph neural networks via meta learning. In 7th International Conference on Learning Representations, ICLR 2019. OpenReview.net, 2019. URL https://openreview.net/forum?id=Bylnx209YX.
+Daniel Zügner, Amir Akbarnejad, and Stephan Gümnmann. Adversarial attacks on neural networks for graph data. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI 2019, Macao, China, pp. 6246-6250. ijcai.org, 2018. URL https://doi.org/10.24963/ijcai.2019/872.
\ No newline at end of file
diff --git a/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/images.zip b/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..4193541fba3766635c6ededac15fb38fac810403
--- /dev/null
+++ b/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ec4687984e2b97a0bc1ba08504f3661aebdb1fe4578265aac1e098dd05b7fcc9
+size 270460
diff --git a/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/layout.json b/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d207af65739f4d3bdcce2135841069ef062a9fc0
--- /dev/null
+++ b/ICLR/2025/GOttack_ Universal Adversarial Attacks on Graph Neural Networks via Graph Orbits Learning/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c7b7c9a6286454af252e1dca0be2fbe9f32345269eeac1448b5bdef5d952155e
+size 523295
diff --git a/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/5fe5eaa1-6ae2-4f21-b658-43497f176f0f_content_list.json b/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/5fe5eaa1-6ae2-4f21-b658-43497f176f0f_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..02bbbd23cbd5cb0e43889a9fecfcdf2bd084b88f
--- /dev/null
+++ b/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/5fe5eaa1-6ae2-4f21-b658-43497f176f0f_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:649bd20f83c631ff0c1ac3ac5b88d049f66f6f20365f12a22d955338091f5c62
+size 96258
diff --git a/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/5fe5eaa1-6ae2-4f21-b658-43497f176f0f_model.json b/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/5fe5eaa1-6ae2-4f21-b658-43497f176f0f_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..320fd82bc8656f5676ce79e4fa9b31728bbe3a8a
--- /dev/null
+++ b/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/5fe5eaa1-6ae2-4f21-b658-43497f176f0f_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2bdc31d4bd9105893be892bbcae79398f439d32465f622223f3efd6664c2ae2e
+size 122647
diff --git a/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/5fe5eaa1-6ae2-4f21-b658-43497f176f0f_origin.pdf b/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/5fe5eaa1-6ae2-4f21-b658-43497f176f0f_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..6602ebdc90193f5caa95165b9b5208cfcccc06c6
--- /dev/null
+++ b/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/5fe5eaa1-6ae2-4f21-b658-43497f176f0f_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4caca5355791d8a012c17336ec21d37b64fc43cd9b3cd21caed9745a1549460f
+size 2172608
diff --git a/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/full.md b/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..a4ca415f4767238721b7ee6ca839113aa2f83e13
--- /dev/null
+++ b/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/full.md
@@ -0,0 +1,340 @@
+# GPS: A PROBABILISTIC DISTRIBUTIONAL SIMILARITY WITH GUMBEL PRIORS FOR SET-TO-SET MATCHING
+
+Ziming Zhang $^{1,*}$ , Fangzhou Lin $^{1}$ , Haotian Liu $^{1}$ , Jose Morales $^{1}$ , Haichong Zhang $^{1}$ , Kazunori Yamada $^{2}$ , Vijaya B Kolachalama $^{3}$ , Venkatesh Saligrama $^{3}$
+
+$^{1}$ Worcester Polytechnic Institute, USA $^{2}$ Tohoku University, Japan $^{3}$ Boston University, USA {zhang15, flin2, hliu8, jamorales, hzhang10}@wpi.edu yamada@tohoku.ac.jp, {vkola, svr} @bu.edu
+
+# ABSTRACT
+
+Set-to-set matching aims to identify correspondences between two sets of unordered items by minimizing a distance metric or maximizing a similarity measure. Traditional metrics, such as Chamfer Distance (CD) and Earth Mover's Distance (EMD), are widely used for this purpose but often suffer from limitations like suboptimal performance in terms of accuracy and robustness, or high computational costs - or both. In this paper, we propose an effective set-to-set matching similarity measure, GPS, based on Gumbel prior distributions. These distributions are typically used to model the extrema of samples drawn from various distributions. Our approach is motivated by the observation that the distributions of minimum distances from CD, as encountered in real-world applications such as point cloud completion, can be accurately modeled using Gumbel distributions. We validate our method on tasks like few-shot image classification and 3D point cloud completion, demonstrating significant improvements over state-of-the-art loss functions across several benchmark datasets. Our demo code is publicly available at https://github.com/Zhang-VISLab/ICLR2025-GPS.
+
+# 1 INTRODUCTION
+
+Problem. Set-to-set matching involves comparing and identifying correspondences between two sets of items, which can be modeled as a bipartite graph matching problem. In this framework, the items in each set are represented as nodes on opposite sides of a bipartite graph, with the edges representing the correspondences. This task is challenging due to several factors: (1) The matching process must be invariant to the order of both the sets and the items within them; (2) Finding effective representations for each set is critical, as it greatly influences performance; (3) Computing a meaningful similarity score between sets, often used as a loss function for learning feature extractors, is a nontrivial problem. Our goal is to develop a similarity measure that is both effective and efficient for set-to-set matching.
+
+Distance Metrics. Set-to-set matching has been extensively studied in various research fields (Chang et al., 2007; Zhou et al., 2017a; Saito et al., 2020; Jurewicz and Derczynski, 2021; Yu et al., 2021a; Kimura et al., 2023). Several distance metrics, such as Chamfer Distance (CD) (Yang et al., 2020), Earth Mover's Distance (EMD) (Zhang et al., 2020a; Yang et al., 2024), and Wasserstein Distance (WD) (Zhu and Koniusz, 2022), are commonly used to evaluate set-matching scores in different applications. These metrics can generally be considered special cases of optimal transportation (OT) for graph matching (Saad-Eldin et al., 2021), which aims to find the most efficient way to move a distribution of "materials" to another distribution of "consumers" by minimizing the total transportation cost. However, it is well known that these distance metrics often face challenges such as poor performance (e.g., matching accuracy and robustness of CD (Lin et al., 2023a)) or high computational complexity (e.g., EMD and WD (Nguyen et al., 2021; Rowland et al., 2019; Kolouri
+
+et al., 2019)), or both, which limit their applicability in large-scale learning. To address this issue, some new distance metrics, such as density-aware CD (DCD) (Wu et al., 2021), HyperCD (Lin et al., 2023b) and InfoCD (Lin et al., 2023a), have been developed as training losses in the literature to improve matching performance while achieving linear complexity similar to CD.
+
+Limitations of Traditional Distance Metrics. Existing metrics fail to adequately capture the similarity between sets in terms of their underlying distributions. In many real-world applications, such as classification, the primary concern is not the direct similarity between individual data instances but rather their similarity in some (latent) space, such as class labels.
+
+For instance, in Figure 1 in the context of Chamfer Distance (CD), the distance between the sets $\circ$ and $\times$ is larger than that between the sets $\circ$ and $+$ , despite $\circ$ and $\times$ being sampled from the same underlying distribution. This highlights a critical issue: when asking "how likely are two sets of points to come from the same distribution?" CD and similar metrics may fail to reflect distributional similarity accurately. Consequently, traditional distance metrics are effective at measuring differences in observations (e.g., point clouds or images) but may struggle to capture deeper, potentially unknown abstractions such as distributions or class labels.
+
+Distributional Similarity. This concept is widely ap-
+
+plied in natural language processing to assess word similarities based on the contexts in which they appear (Lee, 2000). For example, to measure the similarity between words $u$ and $v$ , both words can be represented in a vector space by counting their co-occurrences with words from a predefined vocabulary within local contexts such as sentences or paragraphs. Various similarity functions are then applied to these vectors to compute their similarity. To adapt this idea for set-to-set matching, we treat the K nearest neighbors (KNNs) of a point from the opposite set as its "co-occurrences".
+
+
+Figure 1: Illustration of three point sets randomly sampled from a circular distribution (i.e., Distr. 1) and a Gaussian whose mean is conditional on the circle (i.e., Distr. 2).
+
+Gumbel Distributions. In probability theory, Gumbel distributions are used to model the distribution of extreme values (maxima or minima) from various samples. We find that Gumbel distributions effectively model the KNN distances between two sets of feature vectors. This is shown in Figure 2, where the two 2D point sets are sampled from the circular distribution shown in Figure 1. We compute the negative-log distances between each point in one set and its 1st, 2nd, and 3rd nearest neighbors in the other set, transforming these distances into normalized histograms representing probabilities. These probability distributions are then fitted with Gumbel distributions (see Definition 1).
+
+
+Figure 2: Data fitting with Gumbel distributions for 1st, 2nd, 3rd smallest distance distributions between two 2D point sets.
+
+Our Approach and Contributions. We propose a novel probabilistic method for set-to-set matching called GPS (Gumbel Prior Similarity) based on distributional similarity and Gumbel distributions. This method measures the similarity between the underlying distributions generating the sets. Specifically, we use the log-likelihood of Gumbel distributions as our similarity measure, modeling the distributions of negative-log distances between the KNNs of the sets. GPS can be seamlessly integrated into existing neural network training frameworks, for instance, by using the negative of GPS as a loss function, while maintaining the same linear computational complexity as CD. We propose a comprehensive analysis of GPS and its influence on learning behavior. We are the first to leverage statistical information from KNNs for set-to-set matching. To demonstrate the efficacy and efficiency of GPS, we conduct extensive experiments on tasks such as few-shot image classification and 3D point cloud completion, achieving state-of-the-art performance across several benchmark datasets.
+
+# 2 RELATED WORK
+
+Set-to-Set Matching. Many tasks in computer vision and machine learning, such as multiple instance learning (Ilse et al., 2018; Maron and Lozano-Pérez, 1997), shape recognition (Su et al., 2015; Shi et al., 2015), and few-shot image classification (Afrasiyabi et al., 2022), can be framed as set-to-set matching problems, where the goal is to identify correspondences between sets of instances. The unordered nature of these sets requires the extraction of invariant features that are not affected by the sequence of elements (Choi et al., 2018). Some research addresses this challenge by modifying neural network architectures. For example, Vinyals et al. (2016) introduced matching networks for one-shot learning, while Lee et al. (2019) proposed the Set Transformer, which uses an attention-based mechanism to model interactions among elements in input sets. Saito et al. (2020) developed exchangeable deep neural networks. Recently, Kimura (2022) analyzed the generalization bounds for set-to-set matching with neural networks. The loss function for training these networks must also maintain order-invariance to effectively calculate distance functions between pairs of instances within the sets, as seen in DeepEMD (Zhang et al., 2020a).
+
+Similarity (Metric) Learning. This research focuses on developing functions that measure the correlation between two objects (Ma and Manjunath, 1996; Balcan and Blum, 2006; Yu et al., 2008), and has been successfully applied to various applications, including face recognition (Faraki et al., 2021; Cao et al., 2013), few-shot image classification (Zhang et al., 2020a; Oh et al., 2022), emotion matching (Lin et al., 2016), and re-identification (Zhou et al., 2017a; Liao et al., 2017). Recently, these techniques have been integrated into deep learning (Liu et al., 2019; Cheng et al., 2018; Ma et al., 2021; Liao et al., 2017; Zhou et al., 2017b) for representation learning in embedding spaces, where objects from the same set are closer together, and objects from different sets are further apart. However, learning a model from all sample pairs is challenging due to high computational complexity and poor local minima during training (Kaya and Bilge, 2019; Qian et al., 2019; Huang et al., 2016). Thus, designing effective and efficient loss functions is a key issue in deep similarity learning (Elezi et al., 2020; Wang et al., 2019). In contrast, we address this problem by utilizing the statistics of minimum distances between the items of sets to improve computational efficiency and performance.
+
+Few-Shot Classification. This task aims to train a classifier to recognize both seen and unseen classes with limited labeled examples (Chen et al., 2019a). During training, the model learns a generalized classification ability in varying classes (Oreshkin et al., 2018; Finn et al., 2017). In the testing phase, when presented with entirely new classes, the model classifies by calculating the closest similarity measurement (Chen et al., 2019a; Naik and Mammone, 1992). Formally, in few-shot learning, the training set includes many classes, each with multiple samples (Li et al., 2018; Ren et al., 2018). For example, $C$ classes are randomly selected from the training set and $K$ samples from each category (totaling $C \times K$ samples) are used as input to the model. A batch of samples from the remaining data in these $C$ classes is then used as the model's prediction target (batch set). The model must learn to distinguish these $C$ classes from $C \times K$ pieces of data, a task known as a $C$ -way $K$ -shot problem.
+
+Point Cloud Completion. This task involves an important objective of inferring the complete shape of an object or scene from incomplete raw point clouds. Recently, numerous deep learning approaches have been developed to address this problem. For example, PCN (Yuan et al., 2018) extracts global features directly from point clouds and generates points using the folding operations from FoldingNet (Yang et al., 2018). Zhang et al. (2020b) proposed extracting multiscale features from different network layers to capture local structures and improve performance. Attention mechanisms, such as the Transformer (Vaswani et al., 2017), excel in capturing long-term interactions. Consequently, SnowflakeNet (Xiang et al., 2021), PointTr (Yu et al., 2021b), and SeedFormer (Zhou et al., 2022) emphasize the decoder component by incorporating Transformer designs. PointAttN (Wang et al., 2022) is built entirely on Transformer foundations. Recently, Lin et al. (2023b) introduced a HyperCD loss for training neural networks that defines traditional CD in a hyperbolic space. Furthermore, Lin et al. (2023a) proposed an InfoCD loss by incorporating the contrastive concept into the CD formula.
+
+Gumbel Distribution. In machine learning and computer vision, the Gumbel distribution has been widely used in sampling methods (Maddison et al., 2014; Kool et al., 2019) and reparameterization techniques (Huijben et al., 2022; Kusner and Hernandez-Lobato, 2016; Potapczynski et al., 2020). For example, Hancock and Khoshgoftaar (2020) introduced the Gumbel-Softmax reparameterization to enable differentiable sampling from a discrete distribution during backpropagation in neural networks.
+
+# 3 APPROACH
+
+# 3.1 PRELIMINARIES
+
+Notations & Problem Definition. We denote $\mathcal{X}_1 = \{x_{1,i}\} \sim \mathcal{P}_1, \mathcal{X}_2 = \{x_{2,j}\} \sim \mathcal{P}_2$ as two sets of points (or items) that are sampled from two unknown distributions $\mathcal{P}_1, \mathcal{P}_2$ , respectively, and $K$ as the number of nearest neighbors considered for each point. Also, we refer to $|\cdot|$ as the cardinality of a set, and $\|\cdot\|$ as the $\ell_2$ -norm of a vector. Given these notations, our goal is to predict the set-to-set similarity, $\kappa(\mathcal{X}_1, \mathcal{X}_2)$ , based on the conditional probability $p(\mathcal{P}_1 = \mathcal{P}_2 | \mathcal{X}_1, \mathcal{X}_2)$ .
+
+Gumbel Distributions. Recall that the Gumbel distribution is used to model the distribution of the maximum (or minimum by replacing the maximum with the negative of minimum) of a number of samples from various distributions. Here we list the definition of a Gumbel distribution as follows:
+
+Definition 1 (Gumbel Distribution). The probability density function (PDF) of a Gumbel distribution with parameters $\mu \in \mathbb{R},\sigma >0$ denoted as $Gumbel(\mu ,\sigma)$ , for a random variable $x\in \mathbb{R}$ is defined as
+
+$$
+p (x) = \frac {1}{\sigma} \exp \{- (y + \exp \{- y \}) \}, w h e r e y = \frac {x - \mu}{\sigma}. \tag {1}
+$$
+
+# 3.2 GPS: GUMBEL PRIOR SIMILARITY FOR SET-TO-SET MATCHING
+
+Distributional Signatures. Given two sets of points $\mathcal{X}_1, \mathcal{X}_2$ , we define the set of Euclidean distances from each point in one set to its KNNs in the other set as their distributional signature:
+
+$$
+\mathcal {D} \left(\mathcal {X} _ {1}, \mathcal {X} _ {2}\right) = \left\{d _ {\text {m i n}} ^ {(k)} \left(x _ {1, i}\right) = \left\| x _ {1, i} - x _ {2, i _ {k}} \right\|, d _ {\text {m i n}} ^ {(k)} \left(x _ {2, j}\right) = \left\| x _ {2, j} - x _ {1, j _ {k}} \right\| \mid \forall k \in [ K ], \forall i, \forall j \right\} \tag {2}
+$$
+
+where $i_k$ (resp. $j_k$ ) denotes the index of the $k$ -th nearest neighbor in $\mathcal{X}_2$ (resp. $\mathcal{X}_1$ ) for $x_{1,i}$ (resp. $x_{2,j}$ ), leading to an unordered set of $K(|\mathcal{X}_1| + |\mathcal{X}_2|)$ values.
+
+Probabilistic Modeling. To compute GPS, we introduce the Gumbel distributions and distributional signatures as latent variables, as shown in Figure 3, and propose a probabilistic framework as follows:
+
+$$
+\begin{array}{l} p \left(\mathcal {P} _ {1} = \mathcal {P} _ {2} \mid \mathcal {X} _ {1}, \mathcal {X} _ {2}\right) = \sum_ {q \in \mathcal {Q}} \sum_ {d _ {m i n} \in \mathcal {D}} p \left(\mathcal {P} _ {1} = \mathcal {P} _ {2}, q, d _ {m i n} \mid \mathcal {X} _ {1}, \mathcal {X} _ {2}\right) \\ = \sum_ {q \in \mathcal {Q}} \sum_ {d _ {\min } \in \mathcal {D}} p (q) p \left(\mathcal {P} _ {1} = \mathcal {P} _ {2} \mid q\right) p \left(d _ {\min } \mid q, \mathcal {X} _ {1}, \mathcal {X} _ {2}\right), \tag {3} \\ \end{array}
+$$
+
+where $q \in \mathcal{Q}$ denotes a Gumbel distribution. Figure 3 illustrates the probability decomposition where a Gumbel distribution $q$ is selected for measuring set-to-set similarity based on the distributional signatures between sets. Note that the distributions of each $k$ -th nearest neighbor distances could be modeled using a mixture of $M$ independent Gumbel distributions. Consequently, Equation (3) can be further rewritten as follows:
+
+
+Figure 3: Graphical model for computing the conditional probability $p\left( {{\mathcal{P}}_{1} = {\mathcal{P}}_{2} \mid {\mathcal{X}}_{1},{\mathcal{X}}_{2}}\right)$ .
+
+$$
+p \left(\mathcal {P} _ {1} = \mathcal {P} _ {2} \mid \mathcal {X} _ {1}, \mathcal {X} _ {2}\right) \propto \sum_ {k, m} \left[ \sum_ {i} p \left(d _ {\text {m i n}} ^ {(k)} \left(x _ {1, i}\right); \alpha_ {k, m}, \beta_ {k, m}\right) + \sum_ {j} p \left(d _ {\text {m i n}} ^ {(k)} \left(x _ {2, j}\right); \alpha_ {k, m}, \beta_ {k, m}\right) \right], \tag {4}
+$$
+
+where $k \in [K], m \in [M]$ and $\{\alpha_{k,m}, \beta_{k,m}\}$ denote the predefined Gumbel parameters of the $m$ -th mixture for fitting the $k$ -th nearest neighbor distances. For simplicity, we use the same mixture for both sets (but they can be different). Note that here we take $p(q)$ and $p(\mathcal{P}_1 = \mathcal{P}_2 \mid q)$ as two constants with no prior knowledge.
+
+Reparametrization with Minimum Euclidean Distances. The KNN distances are sets of (conditional) minima, not maxima. Therefore, we need to convert these minimum distances to some form of maximum values that can be modeled using Gumbel. Considering both computational complexity and
+
+
+Figure 4: Illustration of the distributions of minimum distances (with the learned best model) at test time for (left) point cloud completion and (right) few-shot image classification.
+
+
+
+learning objectives, we propose reparametrizing $x \stackrel{\text{def}}{=} -\log(d_{\min} + \delta)$ in Equation (1), where $\delta \geq 0$ denotes a distance shift (see Section 3.3 for more discussions), and rewrite Equation (4) accordingly as follows, which formally defines our GPS:
+
+$$
+\begin{array}{l} \kappa (\mathcal {X} _ {1}, \mathcal {X} _ {2}) \\ \stackrel {d e f} {=} \sum_ {k, m} \left[ \sum_ {i} D _ {m i n} ^ {(k, m)} \left(x _ {1, i}\right) \exp \left\{- D _ {m i n} ^ {(k, m)} \left(x _ {1, i}\right) \right\} + \sum_ {j} D _ {m i n} ^ {(k, m)} \left(x _ {2, j}\right) \exp \left\{- D _ {m i n} ^ {(k, m)} \left(x _ {2, j}\right) \right\} \right], \tag {5} \\ \end{array}
+$$
+
+where $\mu_{k,m} = \frac{\log\alpha_{k,m}}{\beta_{k,m}},\sigma_{k,m} = \frac{1}{\beta_{k,m}} >0,\alpha_{k,m} = e^{\frac{\mu_{k,m}}{\sigma_{k,m}}} > 0,\beta_{k,m} = \frac{1}{\sigma_{k,m}} >0,D_{min}^{(k,m)}(x_{1,i}) = \alpha_{k,m}\Big[d_{min}^{(k,m)}(x_{1,i}) + \delta_{k,m}\Big]^{\beta_{k,m}},D_{min}^{(k,m)}(x_{2,j}) = \alpha_{k,m}\Big[d_{min}^{(k,m)}(x_{2,j}) + \delta_{k,m}\Big]^{\beta_{k,m}}$ , respectively.
+
+# 3.3 ANALYSIS
+
+Proposition 1. Letting $f(x) = xe^{-x}$ , $x > 0$ , then $f$ has a unique maximum at $x = 1$ , and is concave when $0 < x < 2$ , otherwise convex when $x > 2$ .
+
+Proof. By taking the first-order derivative of $f$ , $\nabla f(x) = (1 - x)e^{-x}$ , and setting it to 0, we can show that $f$ has a unique extremum at $x = 1$ . By taking the second-order derivative, $\nabla^2 f(x) = -(2 - x)e^{-x}$ , we can easily show its convexity and concavity by looking at the signs of the values.
+
+Gradients decrease (exponentially) when minimum distances approach the mode. This can be easily found from the form of the gradient in the proof above. As a result, the contribution of the gradient from a data sample in backpropagation will be smaller if its minimum distance is closer to the mode, making it less important in training. In other words, the training will focus more on correcting poor predictions by adaptively assigning higher weights in backpropagation. Note that all $\alpha$ 's and $\beta$ 's in GPS have an impact on the gradients in learning.
+
+Distance Shifting. In many applications, such as point cloud completion, the objective is to minimize the distances between predictions and the ground truth. In these scenarios, the mode of a Gumbel distribution is expected to be 0, which results in $\delta_{k,m} = (\alpha_{k,m})^{-\frac{1}{\beta_{k,m}}} > 0$ . To maximize similarity during training, all minimum distances should be enforced to approach this mode. Therefore, our reparametrization includes $d_{min} + \delta_{k,m}$ because, as $d_{min}$ approaches 0, $-\log(d_{min})$ would tend toward infinity, contradicting the goal of maximizing similarity by approaching the mode. However, $-\log(d_{min} + \delta_{k,m})$ avoids this problem. Figure 4 (left) shows an example using a randomly sampled airplane instance from ShapeNet (see our experiments on point cloud completion for more details), where all minimum distances are approaching 0 as well as the Gumbel mode, achieving both goals of minimizing distance and maximizing similarity simultaneously.
+
+Similarity Embedding. Also in many applications, such as few-shot image classification, the objective is to minimize some loss, e.g., cross-entropy for classification, that depends on set-to-set similarity. In such cases, the minimum distances are not necessarily as small as possible, neither matching with the Gumbel distributions, as long as they help distinguish the data towards minimizing the loss, e.g., higher similarities for positive pairs and lower for negative pairs. Therefore, we do
+
+Table 1: $\alpha$ and $\beta$ search with 1st nearest neighbors for few-shot classification (%) on CIFAR-FS.
+
+
α
0.5
1
1
2
2
2
2
5
2
2
5
2
2.5
3
4
6
β
2
0.5
1
0.5
2
1
1.5
2
0.5
3.5
4
2
2
2
2
2
Acc
72.75
72.51
73.23
73.54
73.67
73.14
73.08
74.22
72.14
73.23
73.89
73.71
73.52
74.14
74.17
73.80
+
+Table 2: $\alpha$ and $\beta$ search using 2nd nearest neighbors performance (%) on CIFAR-FS.
+
+
α
0.1
0.5
1
1
2
3
2
2
2
2
2.5
3.5
4
5
β
2
2
0.5
2
2
2
0.5
2.5
3.5
4
2
2
2
5
Acc
71.67
72.84
73.17
73.04
73.08
73.66
72.45
72.85
73.23
72.67
73.37
72.95
73.44
60.74
+
+not need distance shifting and simply set $\delta = 0$ . Figure 4 (right) illustrates a distribution of learned minimum distances for few-shot image classification (see our experiments for more details), compared with the Gumbel distribution used in training, where all the minimum distances are close to 1.
+
+# 4 EXPERIMENTS
+
+# 4.1 FEW-SHOT IMAGE CLASSIFICATION
+
+We conduct our experiments on five benchmark datasets: miniImageNet (Vinyals et al., 2016), tieredImageNet (Ren et al., 2018), Fewshot-CIFAR100 (Oreshkin et al., 2018), CIFAR-
+
+Table 3: Performance (%) using mixtures of Gumbels and NNs on CIFAR-FS.
+
+
1st NN (α,β)
(5,2)
(3,2)
(3,2)
(2.5,2)
(3,2)
(2,2)
(2,2)
(3,2)
(5,2)
2nd NN (α,β)
(3,2)
(2.5,2)
(4,2)
(2,2)
(4,2)
(4,2)
(2,2)
(4,2)
(1,2)
Acc
73.89
74.17
74.09
74.12
73.62
+
+FewShot (Bertinetto et al., 2018), and Caltech-UCSD Birds-200-2011 (Wah et al., 2011). We follow the standard protocols in the literature to split these datasets for our training and testing.
+
+Network Framework. We take the framework in DeepEMD (Zhang et al., 2020a)1 for fair comparisons with different losses. Following the literature (Sun et al., 2019; Chen et al., 2021; Liu et al., 2021; Chikontwe et al., 2022), we employ ResNet-12 as our network backbone. We notice that DeepEMD and its extensions have different implementations. Precisely, we use the DeepEMD-FCN network for comparisons and report our results in our experiments. We also observe that GPS with the other implementations of DeepEMD can still significantly improve the performance. For instance, by replacing FCN with Grid and Sampling layers (Zhang et al., 2022), our GPS in 1-shot 5-way can improve $1.2\%$ over DeepEMD with Grid and $1.3\%$ with Sampling.
+
+Training Objective. Same as DeepEMD, we optimize the following objective for the few-shot tasks:
+
+$$
+\min _ {\theta , \omega} \sum_ {u, v} \ell \left(\kappa \left(\mathcal {X} _ {u}, \mathcal {X} _ {v}\right), y _ {u}, y _ {v}; \omega\right), \text {s . t .} \mathcal {X} _ {u} = \left\{f \left(x _ {u, i}; \theta\right) \right\}, \mathcal {X} _ {v} = \left\{f \left(x _ {v, j}; \theta\right) \right\}, \tag {6}
+$$
+
+where $x_{u,i}, x_{v,j}$ stand for two patches from the $u$ -th and $v$ -th images with labels $y_u, y_v$ , respectively, $f$ for a neural network parametrized by $\theta$ , and $\ell$ for a loss parametrized by $\omega$ . In our GPS, $k$ uses KNNs to determine the matches between patches, while in DeepEMD a differentiable EMD was proposed to find the matches. We reuse the framework by replacing the EMD with our GPS.
+
+Training Protocols. Following DeepEMD, we re-implement all pre-training, meta-training, validation and testing stages with different loss functions, and retrain the networks from scratch. We keep all the hyperparameters the same as DeepEMD but fine-tune the loss-related hyperparameters, if exist, to report best performance. For better comparison, we rerun the public code and report our results whenever possible; otherwise, we cite the original results for the remaining methods. In each result table, the top-performing result is highlighted in bold. We conduct all experiments on a server with 10 NVIDIA RTX 6000 11G GPUs and another one with 10 NVIDIA Quadro RTX 6000 24G GPUs.
+
+Ablation Study. We have conducted some experiments for few-shot image classification, including:
+
+- M Gumbels, K Nearest Neighbors, and Mixtures: Table 1, Table 2 and Table 3 list our hyperparameter search results for 1st NN only, 2nd NN only, and mixtures of Gumbels and NNs, respectively. With proper tuning, the best results under different settings are close to each other, and the mixtures seem to be more robust to the data, leading to similar performance with different combinations.
+
+
+(a)
+
+
+(b)
+
+
+Figure 5: Comparison on (a) validation accuracy during training, and (b) running time per iteration.
+
+
+
+
+Figure 6: Visual matching results by (top) our GPS and (bottom) DeepEMD.
+
+
+
+Table 4: Cross-domain results $(\%)$ (miniImagenet $\rightarrow$ CUB) on 1-shot 5-way and 5-shot 5-way tasks.
+
+
Model
1-shot
5-shot
ProtoNet
50.01±0.82
72.02±0.67
MatchingNet
51.65±0.84
69.14±0.72
cosine classifier
44.17±0.78
69.01±0.74
linear classifier
50.37±0.79
73.30±0.69
KNN
50.84±0.81
71.25±0.69
DeepEMD
51.07±0.59
75.27±0.48
CD
51.32±0.46
75.61±0.54
HyperCD
51.76±0.48
75.98±0.42
InfoCD
51.95±0.65
76.23±0.39
Ours: GPS
52.38±0.47
76.59±0.52
+
+- Training Behavior & Running Time: Figure 5 (a) shows the validation accuracy vs. the number of epochs, and our approach consistently outperforms the other two competitors. Figure 5 (b) shows the running time with different loss functions to train the network, where our GPS (using 1 Gumbel and 1st NN only) is the only one that can manage to preserve similar computational time to CD.
+- Visualization of Matching Results: To understand the matching behavior, we visualize some matching results in Figure 6. Compared with DeepEMD, our approach can effectively establish correspondence between local regions more precisely with just simple nearest neighbor search.
+
+Comparisons with Different Losses. Table 4, Table 5, and Table 6 summarize our comparison results on few-shot image classification on different datasets with $\alpha = 5$ , $\beta = 2$ and 1 NN only. As we see, our approach outperforms all the competitors on all the datasets, and is more robust than the others, in general, which demonstrates the effectiveness and efficiency of GPS.
+
+# 4.2 POINT CLOUD COMPLETION
+
+Datasets & Backbone Networks. We conduct our experiments on the five benchmark datasets: PCN (Yuan et al., 2018), ShapeNet-55/34 (Yu et al., 2021b), ShapeNet-Part (Yi et al., 2016), and KITTI (Geiger et al., 2012). We compare our method using seven different existing backbone networks, i.e., FoldingNet (Yang et al., 2018), PMP-Net (Wen et al., 2021), PoinTr (Yu et al., 2021b), SnowflakeNet (Xiang et al., 2021), CP-Net (Lin et al., 2022), PointAttN (Wang et al., 2022) and SeedFormer (Zhou et al., 2022), by replacing the CD loss with our GPS wherever it occurs.
+
+Training Objective. Similar to InfoCD (Lin et al., 2023a), we optimize the following objective:
+
+$$
+\max _ {\theta} \sum_ {u} \kappa (f (\mathcal {X} _ {u}; \theta), \mathcal {Y} _ {u}), \tag {7}
+$$
+
+where $(\mathcal{X}_u,\mathcal{Y}_u)$ denotes a pair of a partial point cloud and its ground-truth complete point cloud and $f$ is a network (e.g., one of the seven backbone networks) parametrized by $\theta$ .
+
+Training Protocols. We use the same training hyperparameters such as learning rates, batch sizes and balance factors as the original losses for fair comparisons. We conduct our experiments on a
+
+Table 5: Results of 5-way $(\%)$ on miniImageNet and tieredImageNet datasets.
+
+
+
+server with 4 NVIDIA A100 80G GPUs and one with 10 NVIDIA Quadro RTX 6000 24G GPUs due to the large model sizes of some baseline networks. Table 9: Performance com
+
+Evaluation. Following the literature, we evaluate the best performance of all the methods using vanilla CD (lower is better). We also use F1-Score@ $1\%$ (Tatarchenko et al., 2019) (higher is better) to evaluate the performance on ShapeNet-55/34. For KITTI, we utilize the metrics of Fidelity and Maximum Mean Discrepancy (MMD) for each method (lower is better for both metrics).
+
+Grid Search on $(\alpha, \beta)$ . Table 7 summarizes our search results. As we discussed in Section 3.3, all the settings produce similar performance. Considering the running time and hyperparameter search results in few-shot classification, in our experiments on point cloud completion, we only use 1st NNs and a single Gumbel distribution to fit the data, without further tuning.
+
+Table 9: Performance comparison on ShapeNet-Part.
+
+
Losses
L2-CD×103
L1-CD
4.16±0.028
L2-CD
4.82±0.117
DCD
5.74±0.049
PWD
14.39±0.024
SWD
6.28±0.073
GSWD
6.26±0.034
ASWD
7.52±0.058
HyperCD
4.03±0.007
InfoCD
4.01±0.004
GPS
3.94±0.003
+
+State-of-the-art Result Comparisons. We summarize our comparisons as follows:
+
+- ShapeNet-Part: We begin by presenting our performance comparison in Table 9 on the ShapeNet-Part dataset using CP-Net. Evidently, our approach outperforms all other competitors.
+- ShapeNet-34: We evaluate performance across 34 seen categories (used during training) and 21 unseen categories (not used during training), detailing our results in Table 8. It is evident that our approach consistently improves the performance of baseline models, indicating its high generalizability for point cloud completion tasks.
+- ShapeNet-55: We evaluate the adaptability of our method across datasets for tasks with greater diversity. Table 11 lists the L2-CD across three difficulty levels, along with the average. Following the literature, we present results for five categories (Table, Chair, Plane, Car, and Sofa) with over 2,500 training samples each, as shown in the table. Additionally, we provide results using the
+
+Table 7: $\alpha$ and $\beta$ search with 1st nearest neighbors on ShapeNet-Part using CP-Net.
+
+
α
1
1
1
1
1
1
0.5
2
4
2
β
0.4
0.8
1
1.2
1.6
2
1
1
1
2
CD
4.29
3.98
3.94
4.04
4.34
4.68
4.11
4.05
4.13
4.72
+
+Table 8: Results on ShapeNet-34 using L2-CD×1000 and F1 score.
+
+
Methods
34 seen categories
21 unseen categories
CD-S
CD-M
CD-H
Avg.
F1
CD-S
CD-M
CD-H
Avg.
F1
FoldingNet
1.86
1.81
3.38
2.35
0.139
2.76
2.74
5.36
3.62
0.095
HyperCD + FoldingNet
1.71
1.69
3.23
2.21
0.148
2.55
2.59
5.19
3.44
0.122
InfoCD + FoldingNet
1.54
1.60
3.10
2.08
0.177
2.42
2.49
5.01
3.31
0.157
Ours: GPS + FoldingNet
1.49
1.55
3.02
2.02
0.182
2.39
2.43
5.00
3.27
0.159
PoinTr
0.76
1.05
1.88
1.23
0.421
1.04
1.67
3.44
2.05
0.384
HyperCD + PoinTr
0.72
1.01
1.85
1.19
0.428
1.01
1.63
3.40
2.01
0.389
InfoCD + PoinTr
0.47
0.69
1.35
0.84
0.529
0.61
1.06
2.55
1.41
0.493
Ours: GPS + PoinTr
0.43
0.64
1.27
0.78
0.533
0.60
1.04
2.52
1.38
0.495
SeedFormer
0.48
0.70
1.30
0.83
0.452
0.61
1.08
2.37
1.35
0.402
HyperCD + SeedFormer
0.46
0.67
1.24
0.79
0.459
0.58
1.03
2.24
1.31
0.428
InfoCD + SeedFormer
0.43
0.63
1.21
0.75
0.581
0.54
1.01
2.18
1.24
0.449
Ours: GPS+ SeedFormer
0.42
0.61
1.20
0.74
0.582
0.52
1.00
2.15
1.22
0.451
+
+F1 metric. Once again, our approach significantly improves the baseline models, especially with simpler networks. We also include some visualization results in Figure 7.
+
+- KITTI: To validate the effectiveness of GPS for point cloud completion on a large-scale real-world benchmark, we follow (Xie et al., 2020) to finetune two baseline models with GPS on ShapeNetCars (Yuan et al., 2018) and evaluate their performance on KITTI. We report the Fidelity and MMD metrics in Table 10, observing that GPS consistently improves the baseline models.
+- PCN: We also summarize the results on another benchmark dataset, PCN, with additional backbones in Table 12, showcasing state-of-the-art performance in point cloud completion.
+
+Table 10: Results on KITTI in terms of the fidelity and MMD metrics.
+
+
FoldingNet
HyperCD+F.
InfoCD+F.
GPS+F.
PoinTr
HyperCD+P.
InfoCD+P.
GPS+P.
Fidelity ↓
7.467
2.214
1.944
1.883
0.000
0.000
0.000
0.000
MMD ↓
0.537
0.386
0.333
0.302
0.526
0.507
0.502
0.449
+
+# 5 CONCLUSION
+
+In this paper, we present GPS, a novel, effective, and efficient similarity learning framework for set-to-set matching. Our method fits a predefined Gumbel distribution to the negative log minimum distances between set items. Originating from a probabilistic graphical model, our approach allows multiple Gumbel distributions to model the distributions of KNN distances as distributional signatures. We demonstrate superior performance in few-shot image classification and point cloud completion compared to traditional distance metrics, while maintaining a similar running time to CD.
+
+Limitations. Finding optimal hyperparameters for Gumbel distributions to fit the distance distributions can be time-consuming, particularly when dealing with large sets, such as 16,384 points per object in PCN and ShapeNet-55/34. In future work, we plan to develop general guidelines for efficiently determining these hyperparameters.
+
+# ACKNOWLEDGMENT
+
+Vijaya B. Kolachalama is supported by grants from the National Institute on Aging's Artificial Intelligence and Technology Collaboratories (P30-AG073104 & P30-AG073105), the American Heart Association (20SFRN35460031), and the National Institutes of Health (R01-HL159620, R01-AG062109, & R01-AG083735). Venkatesh Saligram was supported by the Army Research Office Grant W911NF2110246, AFRLGrant FA8650-22-C1039, the National Science Foundation grants CCF-2007350, CCF-1955981 and CPS-2317079.
+
+Table 11: Results on ShapeNet-55 using L2-CD×1000 and F1 score.
+
+
Methods
Table
Chair
Plane
Car
Sofa
CD-S
CD-M
CD-H
Avg.
F1
FoldingNet
2.53
2.81
1.43
1.98
2.48
2.67
2.66
4.05
3.12
0.082
HyperCD + FoldingNet
2.35
2.62
1.25
1.76
2.31
2.43
2.45
3.88
2.92
0.109
InfoCD + FoldingNet
2.14
2.37
1.03
1.55
2.04
2.17
2.50
3.46
2.71
0.137
Ours: GPS + FoldingNet
2.07
2.30
1.02
1.47
2.01
2.13
2.44
3.37
2.64
0.143
PoinTr
0.81
0.95
0.44
0.91
0.79
0.58
0.88
1.79
1.09
0.464
HyperCD + PoinTr
0.79
0.92
0.41
0.90
0.76
0.54
0.85
1.73
1.04
0.499
InfoCD + PoinTr
0.69
0.83
0.33
0.80
0.67
0.47
0.73
1.50
0.90
0.524
Ours: GPS + PoinTr
0.61
0.79
0.31
0.76
0.64
0.41
0.68
1.44
0.84
0.529
SeedFormer
0.72
0.81
0.40
0.89
0.71
0.50
0.77
1.49
0.92
0.472
HyperCD + SeedFormer
0.66
0.74
0.35
0.83
0.64
0.47
0.72
1.40
0.86
0.482
InfoCD + SeedFormer
0.65
0.72
0.31
0.81
0.62
0.43
0.71
1.38
0.84
0.490
Ours: GPS + SeedFormer
0.63
0.70
0.30
0.79
0.61
0.42
0.69
1.37
0.82
0.493
+
+Table 12: Per-point L1-CD $\times {1000}$ (lower is better) on PCN.
+
+
Methods
Plane
Cabinet
Car
Chair
Lamp
Couch
Table
Boat
Avg.
FoldingNet (Yang et al., 2018)
9.49
15.80
12.61
15.55
16.41
15.97
13.65
14.99
14.31
HyperCD + FoldingNet
7.89
12.90
10.67
14.55
13.87
14.09
11.86
10.89
12.09
InfoCD + FoldingNet
7.90
12.68
10.83
14.04
14.05
14.56
11.61
11.45
12.14
Ours: GPS + FoldingNet
7.38
12.61
10.46
13.12
11.92
13.39
10.86
10.59
11.30
PMP-Net (Wen et al., 2021)
5.65
11.24
9.64
9.51
6.95
10.83
8.72
7.25
8.73
HyperCD + PMP-Net
5.06
10.67
9.30
9.11
6.83
11.01
8.18
7.03
8.40
InfoCD + PMP-Net
4.67
10.09
8.87
8.59
6.38
10.48
7.51
6.75
7.92
Ours: GPS + PMP-Net
4.52
10.02
8.80
8.45
6.31
10.42
7.46
6.70
7.84
PoinTr (Yu et al., 2021b)
4.75
10.47
8.68
9.39
7.75
10.93
7.78
7.29
8.38
HyperCD + PoinTr
4.42
9.77
8.22
8.22
6.62
9.62
6.97
6.67
7.56
InfoCD + PoinTr
4.06
9.42
8.11
7.81
6.21
9.38
6.57
6.40
7.24
Ours: GPS + PoinTr
4.03
9.39
8.03
7.78
6.18
9.33
6.56
6.38
7.21
SnowflakeNet (Xiang et al., 2021)
4.29
9.16
8.08
7.89
6.07
9.23
6.55
6.40
7.21
HyperCD + SnowflakeNet
3.95
9.01
7.88
7.37
5.75
8.94
6.19
6.17
6.91
InfoCD + SnowflakeNet
4.01
8.81
7.62
7.51
5.80
8.91
6.21
6.05
6.86
Ours: GPS + SnowflakeNet
3.97
8.79
7.61
7.47
5.73
8.85
6.15
6.03
6.82
PointAttN (Wang et al., 2022)
3.87
9.00
7.63
7.43
5.90
8.68
6.32
6.09
6.86
HyperCD + PointAttN
3.76
8.93
7.49
7.06
5.61
8.48
6.25
5.92
6.68
InfoCD + PointAttN
3.72
8.87
7.46
7.02
5.60
8.45
6.23
5.92
6.65
Ours: GPS + PointAttN
3.70
8.83
7.42
7.00
5.59
8.43
6.22
5.91
6.63
SeedFormer (Zhou et al., 2022)
3.85
9.05
8.06
7.06
5.21
8.85
6.05
5.85
6.74
HyperCD + SeedFormer
3.72
8.71
7.79
6.83
5.11
8.61
5.82
5.76
6.54
InfoCD + SeedFormer
3.69
8.72
7.68
6.84
5.08
8.61
5.83
5.75
6.52
Ours: GPS + SeedFormer
3.68
8.69
7.65
6.80
5.05
8.55
5.72
5.63
6.48
+
+
+Figure 7: Row-1: Inputs of incomplete point clouds. Row-2: Outputs of Seedformer with CD. Row-3: Outputs of Seedformer with GPS. Row-4: Ground truth.
+
+# REFERENCES
+
+Jen-Mei Chang, Michael Kirby, and Chris Peterson. Set-to-set face recognition under variations in pose and illumination. In 2007 Biometrics Symposium, pages 1-6. IEEE, 2007.
+Sanping Zhou, Jinjun Wang, Rui Shi, Qiqi Hou, Yihong Gong, and Nanning Zheng. Large margin learning in set-to-set similarity comparison for person reidentification. IEEE Transactions on Multimedia, 20(3):593-604, 2017a.
+Yuki Saito, Takuma Nakamura, Hirotaka Hachiya, and Kenji Fukumizu. Exchangeable deep neural networks for set-to-set matching and learning. In European Conference on Computer Vision, pages 626-646. Springer, 2020.
+Mateusz Jurewicz and Leon Derczynski. Set-to-sequence methods in machine learning: a review. Journal of Artificial Intelligence Research, 71:885-924, 2021.
+Tan Yu, Jingjing Meng, Ming Yang, and Junsong Yuan. 3d object representation learning: A set-to-set matching perspective. IEEE Transactions on Image Processing, 30:2168-2179, 2021a.
+Masanari Kimura, Takuma Nakamura, and Yuki Saito. Shift15m: Fashion-specific dataset for set-to-set matching with several distribution shifts. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3507-3512, 2023.
+Ze Yang, Yinghao Xu, Han Xue, Zheng Zhang, Raquel Urtasun, Liwei Wang, Stephen Lin, and Han Hu. Dense reppoints: Representing visual objects with dense point sets. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XXI 16, pages 227-244. Springer, 2020.
+Chi Zhang, Yujun Cai, Guosheng Lin, and Chunhua Shen. Deepemd: Few-shot image classification with differentiable earth mover's distance and structured classifiers. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 12203-12213, 2020a.
+Siyuan Yang, Jun Liu, Shijian Lu, Er Meng Hwa, and Alex C Kot. One-shot action recognition via multi-scale spatial-temporal skeleton matching. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024.
+Hao Zhu and Piotr Koniusz. Ease: Unsupervised discriminant subspace learning for transductive few-shot learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 9078-9088, 2022.
+Ali Saad-Eldin, Benjamin D Pedigo, Carey E Priebe, and Joshua T Vogelstein. Graph matching via optimal transport. arXiv preprint arXiv:2111.05366, 2021.
+Fangzhou Lin, Yun Yue, Ziming Zhang, Songlin Hou, Kazunori Yamada, Vijaya Kolachalama, and Venkatesh Saligrama. Infocd: A contrastive chamfer distance loss for point cloud completion. Advances in Neural Information Processing Systems, 36, 2023a.
+Trung Nguyen, Quang-Hieu Pham, Tam Le, Tung Pham, Nhat Ho, and Binh-Son Hua. Point-set distances for learning representations of 3d point clouds. In Proceedings of the IEEE/CVF international conference on computer vision, pages 10478-10487, 2021.
+Mark Rowland, Jiri Hron, Yunhao Tang, Krzysztof Choromanski, Tamas Sarlos, and Adrian Weller. Orthogonal estimation of Wasserstein distances. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 186-195. PMLR, 2019.
+Soheil Kolouri, Kimia Nadjahi, Umut Simsekli, Roland Badeau, and Gustavo Rohde. Generalized sliced Wasserstein distances. Advances in neural information processing systems, 32, 2019.
+Tong Wu, Liang Pan, Junzhe Zhang, Tai Wang, Ziwei Liu, and Dahua Lin. Density-aware chamfer distance as a comprehensive metric for point cloud completion. In Advances in Neural Information Processing Systems, volume 34, pages 29088-29100, 2021.
+Fangzhou Lin, Yun Yue, Songlin Hou, Xuechu Yu, Yajun Xu, D Kazunori Yamada, and Ziming Zhang. Hyperbolic chamfer distance for point cloud completion. In Proceedings of the IEEE/CVF international conference on computer vision, 2023b.
+
+Lillian Lee. Measures of distributional similarity. arXiv preprint cs/0001012, 2000.
+Maximilian Ilse, Jakub Tomczak, and Max Welling. Attention-based deep multiple instance learning. In International conference on machine learning, pages 2127-2136. PMLR, 2018.
+Oded Maron and Tomás Lozano-Pérez. A framework for multiple-instance learning. Advances in neural information processing systems, 10, 1997.
+Hang Su, Subhransu Maji, Evangelos Kalogerakis, and Erik Learned-Miller. Multi-view convolutional neural networks for 3d shape recognition. In Proceedings of the IEEE international conference on computer vision, pages 945-953, 2015.
+Baoguang Shi, Song Bai, Zhichao Zhou, and Xiang Bai. Deeppano: Deep panoramic representation for 3-d shape recognition. IEEE Signal Processing Letters, 22(12):2339-2343, 2015.
+Arman Afrasiyabi, Hugo Larochelle, Jean-François Lalonde, and Christian Gagné. Matching feature sets for few-shot image classification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9014-9024, 2022.
+Jonghyun Choi, Jayant Krishnamurthy, Aniruddha Kembhavi, and Ali Farhadi. Structured set matching networks for one-shot part labeling. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3627-3636, 2018.
+Oriol Vinyals, Charles Blundell, Tim Lillicrap, Koray Kavukcuoglu, and Daan Wierstra. Matching networks for one shot learning. In NIPS, 2016.
+Juho Lee, Yoonho Lee, Jungtaek Kim, Adam Kosiorek, Seungjin Choi, and Yee Whye Teh. Set transformer: A framework for attention-based permutation-invariant neural networks. In International conference on machine learning, pages 3744-3753. PMLR, 2019.
+Masanari Kimura. Generalization bounds for set-to-set matching with negative sampling. In International Conference on Neural Information Processing, pages 468-476. Springer, 2022.
+Wei-Ying Ma and Bangalore S Manjunath. Texture features and learning similarity. In Proceedings CVPR IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pages 425-430. IEEE, 1996.
+Maria-Florina Balcan and Avrim Blum. On a theory of learning with similarity functions. In Proceedings of the 23rd international conference on Machine learning, pages 73-80, 2006.
+Jie Yu, Jaume Amores, Nicu Sebe, Petia Radeva, and Qi Tian. Distance learning for similarity estimation. IEEE transactions on pattern analysis and machine intelligence, 30(3):451-462, 2008.
+Masoud Faraki, Xiang Yu, Yi-Hsuan Tsai, Yumin Suh, and Manmohan Chandraker. Cross-domain similarity learning for face recognition in unseen domains. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15292-15301, 2021.
+Qiong Cao, Yiming Ying, and Peng Li. Similarity metric learning for face recognition. In Proceedings of the IEEE international conference on computer vision, pages 2408-2415, 2013.
+Jaehoon Oh, Sungnyun Kim, Namgyu Ho, Jin-Hwa Kim, Hwanjun Song, and Se-Young Yun. Understanding cross-domain few-shot learning based on domain similarity and few-shot difficulty. Advances in Neural Information Processing Systems, 35:2622-2636, 2022.
+Jen-Chun Lin, Wen-Li Wei, and Hsin-Min Wang. Demv-matchmaker: Emotional temporal course representation and deep similarity matching for automatic music video generation. In 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 2772-2776. IEEE, 2016.
+Wentong Liao, Michael Ying Yang, Ni Zhan, and Bodo Rosenhahn. Triplet-based deep similarity learning for person re-identification. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pages 385–393, 2017.
+Weiyang Liu, Zhen Liu, James M Rehg, and Le Song. Neural similarity learning. Advances in Neural Information Processing Systems, 32, 2019.
+
+Xi Cheng, Li Zhang, and Yefeng Zheng. Deep similarity learning for multimodal medical images. Computer Methods in Biomechanics and Biomedical Engineering: Imaging & Visualization, 6(3): 248-252, 2018.
+Guixiang Ma, Nesreen K Ahmed, Theodore L Willke, and Philip S Yu. Deep graph similarity learning: A survey. Data Mining and Knowledge Discovery, 35:688-725, 2021.
+Sanping Zhou, Jinjun Wang, Jiayun Wang, Yihong Gong, and Nanning Zheng. Point to set similarity based deep feature learning for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3741-3750, 2017b.
+Mahmut Kaya and Hasan Şakir Bilge. Deep metric learning: A survey. Symmetry, 11(9):1066, 2019.
+Qi Qian, Lei Shang, Baigui Sun, Juhua Hu, Hao Li, and Rong Jin. Softtriple loss: Deep metric learning without triplet sampling. In ICCV, pages 6450-6458, 2019.
+Chen Huang, Chen Change Loy, and Xiaou Tang. Local similarity-aware deep feature embedding. Advances in neural information processing systems, 29, 2016.
+Ismail Elezi, Sebastiano Vascon, Alessandro Torcinovich, Marcello Pelillo, and Laura Leal-Taixe. The group loss for deep metric learning. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part VII 16, pages 277-294. Springer, 2020.
+Xun Wang, Xintong Han, Weilin Huang, Dengke Dong, and Matthew R Scott. Multi-similarity loss with general pair weighting for deep metric learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 5022-5030, 2019.
+Wei-Yu Chen, Yen-Cheng Liu, Zsolt Kira, Yu-Chiang Frank Wang, and Jia-Bin Huang. A closer look at few-shot classification. arXiv preprint arXiv:1904.04232, 2019a.
+Boris N. Oreshkin, Pau Rodríguez, and Alexandre Lacoste. TADAM: task dependent adaptive metric for improved few-shot learning. 2018.
+Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, 2017.
+Devang K Naik and RJ Mammone. Meta-neural networks that learn by learning. 1992.
+Zhenguo Li, Fengwei Zhou, Fei Chen, and Hang Li. Meta-sgd: Learning to learn quickly for few shot learning. In ICML, 2018.
+Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, Kevin Swersky, Joshua B. Tenenbaum, Hugo Larochelle, and Richard S. Zemel. Meta-learning for semi-supervised few-shot classification. In ICLR, 2018.
+Wentao Yuan, Tejas Khot, David Held, Christoph Mertz, and Martial Hebert. Pcn: point completion network. In 3DV, 2018.
+Yaoqing Yang, Chen Feng, Yiru Shen, and Dong Tian. Foldingnet: Point cloud auto-encoder via deep grid deformation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 206-215, 2018.
+Wenxiao Zhang, Qingan Yan, and Chunxia Xiao. Detail preserved point cloud completion via separated feature aggregation. In European Conference on Computer Vision, pages 512-528. Springer, 2020b.
+Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
+Peng Xiang, Xin Wen, Yu-Shen Liu, Yan-Pei Cao, Pengfei Wan, Wen Zheng, and Zhizhong Han. Snowflakenet: Point cloud completion by snowflake point deconvolution with skip-transformer. In ICCV, 2021.
+
+Xumin Yu, Yongming Rao, Ziyi Wang, Zuyan Liu, Jiwen Lu, and Jie Zhou. Pointr: Diverse point cloud completion with geometry-aware transformers. In ICCV, 2021b.
+Haoran Zhou, Yun Cao, Wenqing Chu, Junwei Zhu, Tong Lu, Ying Tai, and Chengjie Wang. Seedformer: Patch seeds based point cloud completion with upsample transformer. arXiv preprint arXiv:2207.10315, 2022.
+Jun Wang, Ying Cui, Dongyan Guo, Junxia Li, Qingshan Liu, and Chunhua Shen. Pointattn: You only need attention for point cloud completion. arXiv preprint arXiv:2203.08485, 2022.
+Chris J Maddison, Daniel Tarlow, and Tom Minka. A* sampling. Advances in neural information processing systems, 27, 2014.
+Wouter Kool, Herke Van Hoof, and Max Welling. Stochastic beams and where to find them: The gumbel-top-k trick for sampling sequences without replacement. In International Conference on Machine Learning, pages 3499-3508. PMLR, 2019.
+Iris AM Huijben, Wouter Kool, Max B Paulus, and Ruud JG Van Sloun. A review of the gumbel-max trick and its extensions for discrete stochasticity in machine learning. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(2):1353-1371, 2022.
+Matt J Kusner and José Miguel Hernández-Lobato. Gans for sequences of discrete elements with the gumbel-softmax distribution. arXiv preprint arXiv:1611.04051, 2016.
+Andres Potapczynski, Gabriel Loaiza-Ganem, and John P Cunningham. Invertible gaussian reparameterization: Revisiting the gumbel-softmax. Advances in Neural Information Processing Systems, 33:12311-12321, 2020.
+John T Hancock and Taghi M Khoshgoftaar. Survey on categorical data for neural networks. Journal of big data, 7(1):28, 2020.
+Luca Bertinetto, Joao F Henriques, Philip HS Torr, and Andrea Vedaldi. Meta-learning with differentiable closed-form solvers. arXiv preprint arXiv:1805.08136, 2018.
+Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. The caltech-ucsd birds-200-2011 dataset. 2011.
+Qianru Sun, Yaoyao Liu, Tat-Seng Chua, and Bernt Schiele. Meta-transfer learning for few-shot learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 403-412, 2019.
+Zitian Chen, Subhransu Maji, and Erik Learned-Miller. Shot in the dark: Few-shot learning with no base-class labels. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2668-2677, 2021.
+Ge Liu, Linglan Zhao, Wei Li, Dashan Guo, and Xiangzhong Fang. Class-wise metric scaling for improved few-shot classification. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 586-595, 2021.
+Philip Chikontwe, Soopil Kim, and Sang Hyun Park. Cad: Co-adapting discriminative features for improved few-shot classification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14554-14563, 2022.
+Chi Zhang, Yujun Cai, Guosheng Lin, and Chunhua Shen. Deepemd: Differentiable earth mover's distance for few-shot learning. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(5):5632-5648, 2022.
+Wei-Yu Chen, Yen-Cheng Liu, Zsolt Kira, Yu-Chiang Wang, and Jia-Bin Huang. A closer look at few-shot classification. In ICLR, 2019b.
+Jake Snell, Kevin Swersky, and Richard S. Zemel. Prototypical networks for few-shot learning. 2017.
+Li Yi, Vladimir G Kim, Duygu Ceylan, I-Chao Shen, Mengyan Yan, Hao Su, Cewu Lu, Qixing Huang, Alla Sheffer, and Leonidas Guibas. A scalable active framework for region annotation in 3d shape collections. ACM Transactions on Graphics (ToG), 35(6):1-12, 2016.
+
+Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In 2012 IEEE conference on computer vision and pattern recognition, pages 3354-3361. IEEE, 2012.
+Xin Wen, Peng Xiang, Zhizhong Han, Yan-Pei Cao, Pengfei Wan, Wen Zheng, and Yu-Shen Liu. Pmp-net: Point cloud completion by learning multi-step point moving paths. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7443-7452, 2021.
+Fangzhou Lin, Yajun Xu, Ziming Zhang, Chenyang Gao, and Kazunori D Yamada. Cosmos propagation network: Deep learning model for point cloud completion. Neurocomputing, 507: 221-234, 2022.
+Maxim Tatarchenko, Stephan R Richter, René Ranftl, Zhuwen Li, Vladlen Koltun, and Thomas Brox. What do single-view 3d reconstruction networks learn? In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3405-3414, 2019.
+Haozhe Xie, Hongxun Yao, Shangchen Zhou, Jiageng Mao, Shengping Zhang, and Wenxiu Sun. Grnet: Gridding residual network for dense point cloud completion. In ECCV, 2020.
\ No newline at end of file
diff --git a/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/images.zip b/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..82544f6a546010110843a444b8551b34f1551bf3
--- /dev/null
+++ b/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ccc22a7aa5dc454bdf84de8a10d50f8ee82d763a3f11a908b726fbbcd5bfad6d
+size 971166
diff --git a/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/layout.json b/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..4a280e9980dcc58fe064b705908302f6f919d10a
--- /dev/null
+++ b/ICLR/2025/GPS_ A Probabilistic Distributional Similarity with Gumbel Priors for Set-to-Set Matching/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1d3e77b10056b5924e16b52e2e78d443c314bb6ecc851bdcf71d9872043cd0b2
+size 486113
diff --git a/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/d37baa0e-8fb7-4bbd-bfcc-0bfc447fe2db_content_list.json b/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/d37baa0e-8fb7-4bbd-bfcc-0bfc447fe2db_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a81ba75e0cd14a7b3ecf4bc5b54e40a59438ecb2
--- /dev/null
+++ b/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/d37baa0e-8fb7-4bbd-bfcc-0bfc447fe2db_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ffd32317831d91c5cefaa527c82c6fe522de67bef2db98e9654f051554e597ba
+size 91758
diff --git a/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/d37baa0e-8fb7-4bbd-bfcc-0bfc447fe2db_model.json b/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/d37baa0e-8fb7-4bbd-bfcc-0bfc447fe2db_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..546ab1f777579843a3d1f325a4620e08a0fda263
--- /dev/null
+++ b/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/d37baa0e-8fb7-4bbd-bfcc-0bfc447fe2db_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dd99f6a5725fea5b46ed467f0eb72222de9f85208ac92857077ddecea70c6c54
+size 111212
diff --git a/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/d37baa0e-8fb7-4bbd-bfcc-0bfc447fe2db_origin.pdf b/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/d37baa0e-8fb7-4bbd-bfcc-0bfc447fe2db_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..0480482452258d43b450755e1cf01e0a182fa57b
--- /dev/null
+++ b/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/d37baa0e-8fb7-4bbd-bfcc-0bfc447fe2db_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eeb139dcd948d70fa8c518a0a8173ca6c1a468e1ed6eda145ad25df7ca39060c
+size 3122594
diff --git a/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/full.md b/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..4a22676537ad007b554089b4157fac8a90aee4c6
--- /dev/null
+++ b/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/full.md
@@ -0,0 +1,334 @@
+# GPUDRIVE: DATA-DRIVEN, MULTI-AGENT DRIVING SIMULATION AT 1 MILLION FPS
+
+Saman Kazemkhani*†
+
+Aarav Pandya*†
+
+Daphne Cornelisse*†
+
+Brennan Shacklett2
+
+Eugene Vinitsky
+
+# ABSTRACT
+
+Multi-agent learning algorithms have been successful at generating superhuman planning in various games but have had limited impact on the design of deployed multi-agent planners. A key bottleneck in applying these techniques to multi-agent planning is that they require billions of steps of experience. To enable the study of multi-agent planning at scale, we present GPUDrive. GPUDrive is a GPU-accelerated, multi-agent simulator built on top of the Madrona Game Engine capable of generating over a million simulation steps per second. Observation, reward, and dynamics functions are written directly in $\mathrm{C}++$ , allowing users to define complex, heterogeneous agent behaviors that are lowered to high-performance CUDA. Despite these low-level optimizations, GPUDrive is fully accessible through Python, offering a seamless and efficient workflow for multiagent, closed-loop simulation. Using GPUDrive, we train reinforcement learning agents on the Waymo Open Motion Dataset, achieving efficient goal-reaching in minutes and scaling to thousands of scenarios in hours. We open-source the code and pre-trained agents at
+
+www.github.com/Emerge-Lab/gpudrive
+
+# 1 INTRODUCTION
+
+Multi-agent learning has been impactful across a wide range of fully cooperative and zero-sum games (Cui et al., 2023; Wurman et al., 2022; Pérolat et al., 2022; Silver et al., 2017; Jaderberg et al., 2018; Bakhtin et al., 2023). However, its impact on multi-agent planning for settings that mix humans and robots has been muted. In contrast to the ubiquity of multi-agent learning-based agents in zero-sum games, multi-agent planners for most practical robotic systems are not derived from the output of game-theoretically sound learning algorithms. While it is hard to characterize the space of deployed planners since many of them are proprietary, the majority likely use a mixture of collected data for the prediction of human motion and hand-tuned costs. These are then fed into a cost-based trajectory optimizer or into a planner based on imitation learning (Bronstein et al., 2022; Lu et al., 2023). This approach has been highly effective in scaling up real-world autonomy but can struggle with reasoning about long-term behavior, contingency planning, and interaction with humans in rare, complex scenarios.
+
+The divergence in preferred technique between these two domains is partially the outcome of two distinct, challenging components of real-world multi-agent planning. First, unlike zero-sum games, it is necessary to play a human-compatible strategy that is difficult to identify without data. Second, generating the billions of samples needed for multi-agent learning algorithms is difficult with existing simulators. The former challenge is difficult for multi-agent learning since there is not a clear equilibrium concept that algorithms should be pursuing. The latter problem is a challenge for simulators since it is difficult to simulate embodied multi-agent environments at appropriately high rates.
+
+
+
+
+
+
+
+
+Figure 1: Extremely fast multi-agent simulation with GPUDrive. Top: Bird's-eye view of Waymo Open Motion Dataset scenarios in GPUDrive, with boxes marking controlled agents and circles denoting their goals. Bottom: Corresponding agent views, centered on one agent. Observations can be easily configured based on the user's objectives. Here, agents are provided with a scene view through a relative coordinate frame. Shown are nearby road points within a configurable radius (set to 50 meters) and the relative positions of other agents in the scene.
+
+
+
+
+
+To address these challenges and unlock multi-agent learning as a tool for generating capable self-driving planners, we introduce GPUDrive. GPUDrive is a simulator intended to mix real-world driving data with simulation speeds that enable the application of sample-inefficient but effective RL algorithms to the design of autonomous planners. GPUDrive runs at over a million steps per second on both consumer-grade and datacenter-class GPUs and has a sufficiently light memory footprint to support hundreds to thousands of simultaneous worlds (environments) with hundreds of agents per world. GPUDrive supports the simulation of a variety of sensor modalities, from LIDAR to a human-like view cone, enabling GPUDrive to be used for studying the effects of different sensor types on resultant agent characteristics. Finally, GPUDrive takes in driving logs and maps from existing self-driving datasets, enabling the mixing of tools from imitation learning with reinforcement learning algorithms. This enables the study of both the development of autonomous vehicles and the learning of models of human driving, cycling, and walking behavior.
+
+# Our contributions are:
+
+- We provide a multi-agent, GPU-accelerated, and data-driven simulator that runs at over a million steps per second (Section 4.1). Our simulator provides a testbed for:
+
+1. Investigating the capability of learning algorithms to solve challenges related to self-play or autonomous coordination.
+2. Researching the effects of limited or human-like perception on agent behavior.
+
+- We provide gymnasium (Towers et al., 2024) environments in both torch and jax that can be easily configured with standard open-source multi-agent RL and imitation learning libraries. Additionally, we open-sourced two policy-gradient training loops that can be readily used to develop agents.
+- We release implementations of tuned RL algorithms that can process 30 million steps of experience per hour on consumer-grade GPUs. These can be used to train $95\%$ goal-reaching
+
+agents across 1000 different multi-agent scenarios in 15 hours on relatively accessible hardware.
+
+- We open-source these strong driving baseline agents that achieve $95\%$ of their goals on a subset of scenes. These are integrated into the simulator so that the simulator comes with default, reactive agents.
+
+# 2 RELATED WORK
+
+Frameworks for batched simulators. There are various open-source frameworks available that support hardware-accelerated reinforcement learning environments. These environments are generally written directly in an acceleration framework such as Numpy (Harris et al., 2020), Jax (Bradbury et al., 2018), or Pytorch (Ansel et al., 2024; Makoviychuk et al., 2021; Panerati et al., 2021). In terms of multi-agent accelerated environments, standard benchmarks include JaxMARL(Rutherford et al., 2023), Jumanji (Bonnet et al., 2024), VMAS (Bettini et al., 2022) Gigastep (Lechner et al., 2024) which primarily feature fully cooperative or fully competitive tasks. Each benchmark requires the design of custom accelerated structures per environment. In contrast, GPUDrive focuses on a mixed motive setting and is built atop Madrona, an extensible ECS-based framework in $\mathrm{C + + }$ , enabling GPU acceleration and parallelization across environments (Shacklett et al., 2023). Madrona comes with vectorization of key components of embodied simulation such as collision checking and sensors such as LIDAR. GPUDrive can support hundreds of controllable agents in more than 100,000 distinct scenarios, offering a distinct generalization challenge and scale relative to existing benchmarks. Moreover, GPUDrive includes a large dataset of human demonstrations, enabling imitation learning, inverse RL, and combined IL-RL approaches.
+
+Simulators for autonomous driving research and development. Table 1 shows an overview of current simulators used in autonomous driving research. The purpose of GPUDrive is to facilitate the systematic study of behavioral, coordination, and control aspects of autonomous driving and multiagent learning more broadly. As such, visual complexity is reduced, which differs from several existing simulators, which (partially) focus on perception challenges in driving (Dosovitskiy et al., 2017; Cai et al., 2020). Driving simulators close to GPUDrive in terms of either features or speed include MetaDrive (Li et al., 2022), nuPlan (Caesar et al., 2021), Nocturne (Vinitsky et al., 2022), and Waymax (Gulino et al., 2024) which all utilize real-world data. Unlike MetaDrive and nuPlan, our simulator is GPU-accelerated. Like GPUDrive, Waymax is a JAX-based GPU-accelerated simulator that achieves high throughput through JIT compilation and efficient use of accelerators. With respect to Waymax, our simulator supports a wider range of possible sensor modalities (Section 3.2) including LIDAR and human-like views, can scale to nearly thirty times more worlds (see Section 4.1), and comes with performant reinforcement learning baselines. However, it does not currently come with reactive IDM agents like Waymax though it does come with pre-trained simulated agents based on RL policies.
+
+Driving agents in simulators and algorithms. Existing simulators often feature baseline agents for interaction, such as low-dimensional car following models that describe vehicle dynamics through a limited set of variables or parameters (Kreutz & Eggert, 2021; Kesting et al., 2007; Treiber et al., 2000). Rule-based agents exhibit predetermined behaviors, like car-following agents (Gulino et al., 2024; Caesar et al., 2021; Lopez et al., 2018; Casas et al., 2010) such as the IDM model, or parameterized behavior agents like CARLA's TrafficManager (Dosovitskiy et al., 2017). Some simulators offer recorded human driving logs for interaction through replaying the human driving logs (Lu et al., 2023; Vinitsky et al., 2022; Gulino et al., 2024; Caesar et al., 2021). Additionally, certain simulators provide learning-based agents, leveraging reinforcement learning techniques (Li et al., 2022). In GPUDrive, we provide both human driving logs and high-performing reinforcement learning agents.
+
+Table 1: Comparison of GPUDrive to related driving simulators. Columns represent whether the simulator supports multi-agent simulation, GPU acceleration, simulation of sensors such as LIDAR or human views, is built atop data, comes with existing driver models, and whether the agents are provided explicit goal points or waypoints along the way to the goal.
+
+
Simulator
Multi-agent
GPU-Accel
Sensor Sim
Expert Data
Sim-agents
Routes / Goals
TORCS (Wymann et al., 2000)
✓
✓
-
GTA V (Martinez et al., 2017)
✓
-
CARLA (Dosovitskiy et al., 2017)
✓
✓
Waypoints
Highway-env (Leurent et al., 2018)
-
Sim4CV (Müller et al., 2018)
✓
Directions
SUMMIT (Cai et al., 2020)
✓ (≥ 400)
✓
✓
-
MACAD (Palanisamy, 2020)
✓
✓
✓
Goal point
SMARTS (Zhou et al., 2021)
✓
Waypoints
MADRaaS (Santara et al., 2021)
✓ (≥ 10)
✓
Goal point
DriverGym (Kothari et al., 2021)
✓
✓
-
VISTA (Amini et al., 2022)
✓
✓
✓
-
nuPlan (Caesar et al., 2021)
✓
✓
✓
Waypoints
Nocturne (Vinitsky et al., 2022)
✓ (≥ 128)
✓
✓
Goal point
MetaDrive (Li et al., 2022)
✓
✓
✓
✓
-
InterSim (Sun et al., 2022)
✓
✓
✓
Goal point
TorchDriveSim (Scibior et al., 2021)
✓
✓
✓
-
BITS (Xu et al., 2023)
✓
✓
✓
Goal point
Waymax (Gulino et al., 2024)
✓ (≥ 128)
✓
✓
✓
Waypoints
GPUDrive (ours)
✓ (≥ 128)
✓
✓
✓
✓
Goal point
+
+# 3 SIMULATION DESIGN
+
+# 3.1 SIMULATION ENGINE
+
+Learning to safely navigate complex scenarios in a multi-agent setting requires generating many billions of environment samples. To feed sample-hungry learning algorithms, GPUDrive is built on top of Madrona (Shacklett et al., 2023), an Entity-Component-State system designed for high-throughput reinforcement learning environments. In the Madrona framework, multiple independent worlds (each containing an independent number of agents) are executed in parallel on an accelerator via a shared engine.
+
+However, the simulation of driving poses a unique set of challenges which require careful technical design choices to solve. First, road objects, such as road edges and lane lines are frequently represented as polylines (i.e. connected sets of points). These polylines can consist of hundreds of points as they are sampled at every 0.1 meters, leading to even small maps having upwards of tens of thousands of points. This can blow up the memory requirements of each world as well as lead to significant redundancy in agent observations. Second, the large numbers of agents and road objects can make collision checking a throughput bottleneck. Finally, there is immense variability in the number of agents and road objects in a particular scene. Each world allocates memory to data structures that track its state and accelerate simulation code. Though independent, each world incurs a memory footprint proportional to the maximum number of agents across all worlds. In this way, the performance of GPUDrive is sensitive to the variation in agent counts across all the worlds in a batch.
+
+These challenges are partially resolved via the following mechanisms. First, a primary acceleration data structure leveraged by GPUDrive is a Bounding Volume Hierarchy (BVH). The BVH keeps track of all physics entities and is used to easily exclude candidate pairs for collisions. This allows us to then run a reduced-size collision check on potential collision candidate pairs. The use of a BVH avoids invoking a collision check that would otherwise always be quadratic in the number of agents in a world. Secondly, we observed that a lot of the lines in the geometry of the roads are straight. This allows us to omit many intermediate points while only suffering a minor hit in the quality of the curves. We apply a polyline decimation algorithm (Visvalingham-Whyatt Algorithm) (Visvalingam & Whyatt, 1993) to approximate straight lines and filter out low-importance points in the polylines. With this modification, we can reduce the number of points by 10-15 times and significantly improve the step times while decreasing memory usage. Finally, rather than allocate memory for the maxi
+
+mum number of agents in a scene (as is likely necessary in frameworks like Jax), we only allocate memory equal to the actual number of instantiated agents.
+
+# 3.2 SIMULATOR FEATURES
+
+We provide an overview of some of the pertinent simulator features as well as sharp edges and limitations of the simulator as a guide to potential users.
+
+
+Figure 2: Example scenarios from the Waymo Open Motion Dataset rendered in GPUDrive. The blue boxes and circles indicate agents and their respective destinations.
+
+Dataset. GPUDrive represents its map as a series of polylines and does not require a connectivity map of the lanes. As such, it can be made compatible with most driving datasets given the preprocessing of the roads into the polyline format. Currently, GPUDrive supports the Waymo Open Motion Dataset (WOMD) (Ettinger et al., 2021) which is available under a non-commercial license. We show four representative example scenarios from the WOMD in Figure 2. The WOMD consists of a set of over 100,000 multi-agent traffic scenarios, each of which contains the following key elements: 1) Road map - the layout and structure of a road, such as a highway or parking garage. 2) Logged human trajectories from vehicles, cyclists, and pedestrians. 3) Road objects, such as stop signs and crosswalks. Figure 7 depicts an example of an intersection traffic scenario as rendered in GPUDrive.
+
+Sensor modalities. GPUDrive supports a variety of observation spaces intended to enable heterogeneous types of agents. Fig. 7 depicts the three types of supported state spaces. The first mode is somewhat unphysical in which all agents and road objects within a fixed radius are observable to the agent. This mode is intended primarily for debugging and quick testing, enabling a user to minimize the amount of partial observability in the environment. The other two modes are based on a GPU-accelerated LIDAR scan, representing what an autonomous vehicle would be able to see and what a human would likely be able to see respectively. Both modes are based on casting LIDAR rays; to model human vision we simply restrict the LIDAR rays to emanate in a smaller, controllable-sized cone that can be rotated through an action corresponding to head rotation. Note that since all objects are represented as bounding boxes of fixed height, the LIDAR observations are over-conservative as, in reality, it is frequently possible to see over the hoods of cars as their height is lower than the body of the rest of the car.
+
+Agent dynamics. By default, agents are stepped using a standard Ackermann bicycle model (Details in Appendix B) with actions corresponding to steering and acceleration. This model enables the dynamics of objects to be affected by their length, creating different dynamics for small cars as opposed to large cars like trucks. However, this model is not fully invertible which can make it challenging to use as a model for imitation learning. To enable full invertibility for imitation learning, we also support the simplified bicycle model, taken from Waymax (Gulino et al., 2024), which is a double-integrator in the position and velocity and updates its yaw as:
+
+$$
+\theta_ {t + 1} = \theta + s _ {t} (v _ {t} \Delta t + \frac {1}{2} a _ {t} \Delta t ^ {2})
+$$
+
+where $\theta$ is the yaw, $s$ is the steering command, $v$ is the velocity, and $a$ is the acceleration at time $t$ respectively. $\Delta t$ is the timestep. This model is always invertible given an unbounded set of steering and acceleration actions but is independent of the vehicle length. See the appendix for full details on the models.
+
+Note that this model does not factor in the length of the car, causing both long and short objects to have identical dynamics. However, we have observed that computing the expert actions and then using them to mimic the expert trajectory under this model leads to lower tracking error than the default bicycle model.
+
+Rewards. All agents are given a target goal to reach; this goal is selected by taking the last recorded position in the vehicle's logged trajectory. A goal is reached when agents are within some configurable distance $\delta$ of the goal. By default, agents in GPUDrive receive a reward of 1 for achieving their goal and otherwise receive a reward of 0. There are additional configurable collision penalties or other rewards based on agent-vehicle distances or agent-road distances though these are not used in the experiments reported in this work.
+
+Termination conditions. We terminate an agent's episode when they achieve their goal position and support an option to also terminate the episode if the agent collides. As it is not clear where an agent should go next after it reaches its goal, we simply remove it from the scene afterwards (we note that an alternative might be to generate a new goal for the agent to drive to). Car and cyclist agents are considered to be in collision when they drive through a road edge while pedestrian agents are allowed to cross road edges.
+
+Environment interface. As GPUDrive is implemented in $\mathrm{C}++$ , we provide a Pythonic interface through nanobind (Jakob, 2022). We create environments for both torch and jax that conform to the Gymnasium API (Towers et al., 2024) so users can use the simulator entirely through Python if they prefer.
+
+Available driving simulation agents. We use reinforcement learning to train a set of agents that reach their goals $95\%$ of the time on a subset of 1000 training scenes. While this number is far below the capability of human drivers, these agents are reactive in a distinct fashion from parametrized driver models in other simulators. In particular, many logged-data simulators construct reactivity by having the driver follow along its logged trajectory but decelerate if an agent passes in front of it. In contrast, these agents can maneuver and negotiate without remaining constrained to a logged trajectory. These trained agents are extremely aggressive about reaching their goals and can be used as an out-of-distribution test for proposed driving agents. The training procedure and more details can be found in Section 4.2.
+
+Simulator sharp-edges. We note the following limitations of the benchmark:
+
+- Absence of a map. The current version of the simulator does not have a well-defined notion of lanes or a higher-level road map which makes it challenging for algorithmic approaches that require maps. The absence of this feature also makes it challenging to define rewards such as "stay lane-centered."
+- Convex objects only. Collision checking relies on the objects being represented as convex objects.
+- Unsolvable goals. Due to incorrect labels of some road points in the Waymo dataset, such as an exit to a parking lot being labeled as an impassable road edge, some agent goals (roughly $2\%$ ) are unreachable. For these agents, we default them to simply replaying their logged trajectory and do not treat them as agents.
+- Initialization modes: In many scenarios, a significant portion of agents (25-75%) are already at or very close to their goal positions, such as parked cars. To highlight the difficulty of controlling agents, GPUDrive supports different initialization modes. By default, the initialization mode is set to "all nontrivial" meaning that only agents more than 2 meters away from their target positions are considered controllable. Note that while this sharply reduces the number of agents in the scene, it more accurately represents actual driving challenges.
+
+# 4 SIMULATOR PERFORMANCE
+
+The following Sections describe the simulator speed. Section 4.1 first shows the raw simulator speed and peak goodput (throughput achieved by the valid number of agents in a scene). Section 4.2 then investigates the impact on reinforcement learning workflows by evaluating the time it takes to train reinforcement learning agents through Independent PPO (IPPO) (Yu et al., 2022), a widely used multi-agent learning algorithm. The performance results here are from IPPO implemented with PufferLib (Suarez, 2024). A slower IPPO implementation based on Stable Baselines 3 (Hill et al., 2018) is also available in the repo.
+
+# 4.1 SIMULATION SPEED
+
+Since scenarios contain a variable number of agents, we introduce a metric called Agent Steps Per Second (ASPS) to measure the sample throughput of the simulator. We define the ASPS as the total number of agents across all worlds in a batch that can be fully stepped in a second:
+
+$$
+\mathrm {A S P S} = \frac {S \times \sum_ {k = 1} ^ {N} \left| A _ {k} \right|}{\Delta T} \tag {1}
+$$
+
+where $A_{k}$ is the set of agents in the $k^{th}$ world, $S$ is the number of steps taken, and $\Delta T$ is the number of seconds elapsed. Figure 3 examines the scaling of the simulator as the number of simulated worlds, which represents the amount of parallelism, increases. To measure performance, we sample random batches of scenarios of size equal to the number of worlds, so that every world is a unique scenario with $K$ agents. On the left-hand side of Figure 3, we compare the performance of GPUDrive to Nocturne (Vinitsky et al., 2022) (CPU, no parallelism), a CPU-accelerated version of Nocturne via Pufferlib (16 CPU cores) (Suarez, 2024) and Waymax Gulino et al. (2024). Empirically, the maximum achievable ASPS of Nocturne is 15,000 (blue dotted line) though we note that additional speedups may be possible. GPUDrive achieves a peak ASPS of 2.3 million steps, which is 2 to 3 orders of magnitude faster compared to Nocturne. This performance also surpasses that of Waymax (Gulino et al., 2024), a JAX-based simulator, where we could not run more than 16 environments in parallel due to Out of Memory (OOM) issues.
+
+
+Figure 3: Peak goodput of GPUDrive on a consumer-grade and datacenter-class GPU compared to original, CPU and GPU-based, implementations using the radial filter observation. Left: The total number of agent steps per second (ASPS) is the number of objects for which our system computes observations at each time step. To ensure a fair comparison, we align the conditions with those used in (Gulino et al., 2024), where all cars, bicyclists, and pedestrians are considered valid experience-generating agents. Center: The distribution of controllable agents across 512 scenarios in the Waymo Open Motion Dataset $\mu \approx 10.8$ (red line), $\sigma \approx 9.3$ . These numbers are obtained using the "nontrivial" initialization mode in GPUDrive, which initializes only the agents that are more than 2 meters away from their final position. Right: The total number of controllable agent steps per second (CASPS) as we increase the number of worlds (parallelism).
+
+In addition to the ASPS, we report another metric to indicate the number of controllable agents that are stepped per second. In the Waymo Open Motion Dataset, each scenario contains a varying number of moving agents (Examples in Figure 2). By default, our system only classifies something
+
+as a controllable agent if its movement is necessary to achieve the goal. Therefore, parked cars throughout the episode are not considered controllable agents. To illustrate what this looks like, we plot the distribution of controllable agents across a subset of scenes in Figure 3.
+
+Considering the variance of controllable agents per scene, the right-hand side of Figure 3 depicts the Controlled Agent Steps Per Second (CASPS). CASPS reflects the expected performance of our system when utilizing the Waymo Open Motion Dataset with a randomly sampled subset of scenarios. Due to the significant variability in agents throughout the dataset, the highest CASPS is notably lower than the ASPS, at around 200,000. Note that this can be improved by strategically selecting scenes, such as filtering for dense scenes with a high number of controllable agents.
+
+
+Figure 4: ASPS and CASPS comparison between Radial Filter and LiDAR observation types. The radial filter is slower than lidar due to its linear scan of nearby objects. In contrast, the LiDAR observation type is GPU-accelerated, delivering significantly enhanced performance. As demonstrated in the plots, depending on the scene selection, the LiDAR can achieve a speedup of approximately $3\mathrm{x}$ over the radial filter.
+
+
+
+
+
+Lastly, we demonstrate the speed of different observation spaces in Figure 4. We observe that using LiDAR is approximately three times faster than using the radial filter observation (Details about the supported observation spaces are found in Section 3.2).
+
+# 4.2 END-TO-END SPEED AND PERFORMANCE
+
+The purpose of GPUDrive is to facilitate research and development in multi-agent algorithms by 1) reducing the completion time of experiments, and 2) enabling academic research labs to achieve scale on a limited computing budget. Ultimately, we are interested in the rate at which a machine learning researcher or practitioner can iterate on ideas using GPUDrive. This section highlights what our simulator enables in this regard by studying the end-to-end process of learning policies in our simulator.
+
+Figure 5 contrasts the number of steps (experience) and the corresponding time required to solve 10 scenarios from the WOMD between Nocturne (Vinitsky et al., 2022) and GPUDrive. We compare Nocturne to GPUDrive, as it is the closest simulator in functionality, except that it is implemented on the CPU. For benchmarking purposes, we mark a scene as solved when agents can navigate to their designated target position $95\%$ of the time without colliding or going off-road. Ceteris paribus (Details in Appendix D), GPUDrive achieves a 200 - 300x training speedup, solving 10 scenarios in less than 3 minutes compared to approximately 10 hours in Nocturne.
+
+In absolute terms, the number of controlled agent steps per second for the Pufferlib PPO implementation ranges from 200K to 500K, depending on the hardware used and factors such as the number of visible road points per agent.
+
+As shown in Fig. 5, GPUDrive allows us to solve scenes in minutes. Next, we investigate how the individual scene completion time, the time it takes to solve a single scenario, changes as we increase the total number of scenarios we train on. In practice, it may be desirable to train agents on thousands of scenarios. Therefore, we ask whether it is feasible to fully leverage the simulator's capabilities with a single GPU.
+
+
+Figure 5: From hours to seconds. Left: Training performance (goal-reaching rate) as a function of the global step of the controlled agents (CASPS). Center: Training performance as a function of wall-clock time in seconds. Right: Training performance as a function of wall-clock time where the x-axis is on a log scale. Runs are averaged across three seeds, replicating environmental and experimental conditions as closely as possible. See Appendix D for the hyperparameters and training details. The green dotted line marks optimal performance (all agents reach their goal without collisions).
+
+
+
+
+
+Interestingly, we find that the amortized sample efficiency increases with the size dataset of scenes we train in. Figure 6 shows the average completion time per scenario as we increase the dataset. For instance, using IPPO with 32 scenarios takes 2 minutes per scenario. In contrast, solving 1024 unique scenarios takes about 200 minutes, which amounts to only 15 seconds per scenario. We expect that these scaling benefits will continue as we further increase the size of the training dataset. This suggests that GPUDrive should enable effective utilization of the large WOMD dataset comprising 100,000 diverse traffic scenarios, even with limited computational resources.
+
+
+Figure 6: Scale reduces individual scene completion time. Left: Total time required to solve a fixed number of scenarios to a goal-reaching rate of $95\%$ . Note that time-to-completion is sublinear concerning the number of scenes. Right: Each additional scenario costs less to solve than the previous scenario. At 1024 scenes, the per-scene cost of solving an additional scene is on the order of 15 seconds.
+
+
+
+# 4.3 MEASURING REMAINING UNSOLVED TASKS
+
+The Waymo Open Motion Dataset contains a total of 103,354 traffic scenarios (Ettinger et al., 2021). In this paper, we demonstrate that an agent can achieve $95\%$ performance on a subset of 1000 scenes after 15 hours of training. Additionally, we show that the time required to solve scenarios decreases as the dataset size increases. Our analysis of the failure rates in the current best-performing policy suggests that the goal-reaching limit is around $98\%$ , due to mislabeled road edges in the dataset, which render some goals unreachable because they are located beyond uncrossable roads. An important direction for future work is developing agents that achieve near-perfect performance,
+
+with a goal-reaching rate approaching $100\%$ and a $0\%$ collision rate while addressing the limitations posed by data inaccuracies in the benchmark.
+
+# 5 CONCLUSION
+
+In this work, we present GPUDrive, a GPU-accelerated, multi-agent, and data-driven simulator. GPUDrive is intended to help generate the billions of samples that are likely needed to achieve effective reinforcement learning for multi-agent driving planners. By building atop the Madrona Engine (Shacklett et al., 2023), we can scale GPUDrive to hundreds of worlds with potentially thousands of agents leading to throughput of millions of steps per second. This throughput occurs while synthesizing complex observations such as LiDAR. We show that this throughput has consequent implications for training reinforcement learning agents, leading to the ability to train agents to solve any particular scene in minutes and in seconds when amortized across many scenes. We release the simulator and integrated trained agents to enable further research.
+
+Future work and simulator extensions. This paper represents an initial step toward scaling reinforcement learning for multi-agent planning in safety-critical, mixed human-autonomous settings. Several important opportunities remain for future work:
+
+- Agent performance: Training agents to navigate without crashing in any scenario, matching human capabilities, remains an unresolved challenge. Currently, agents trained in GPU-Drive achieve a $95\%$ success rate in a few hours, but this still falls short of the standards we aim for. Getting to $100\%$ goal reaching performance is left for future work.
+- Integrating multiple datasets: Future work will focus on integrating various datasets, such as NuPlan or NuScenes (Caesar et al., 2020). This integration will enable training on data from multiple geographic locations, including Boston and Singapore. To achieve this, we need to establish a data-processing pipeline that ensures the datasets are converted into a format compatible with the simulator.
+- Diverse realistic sim agents: We plan to extend GPUDrive by introducing a variety of simulation agents that represent a broad range of human-like behaviors. This will improve sim realism.
+
+# 6 REPRODUCIBILITY STATEMENT
+
+The simulator's source code and data are available at https://github.com/Emerge-Lab/gpudrive. To ease reproducibility, we provide Dockerfiles to simplify setup. The experiments in the paper can be reproduced using a single file on a single A100 in 16 hours or slightly longer for less performant hardware. The data has been pulled from the Waymo Motion dataset and parsed into JSON files that are used to initialize the simulator; these are all available from Huggingface datasets.
+
+# 7 ETHICS STATEMENT
+
+This paper presents GPUDrive, a GPU-accelerated simulator for multi-agent learning in autonomous driving. We use publicly available datasets, such as the Waymo Open Motion Dataset (Ettinger et al., 2021), which are anonymized to protect privacy. GPUDrive is intended for research purposes and not for real-world deployment without further validation. We recognize the risks of autonomous systems and emphasize the importance of safety and fairness in their application. Although this work does not involve human participants directly, it leverages real-world data that may reflect human behavior, and we strive to avoid harm or discrimination. The codebase, pre-trained agents, and evaluation scripts are openly available to promote transparency. There are no conflicts of interest or external sponsorships affecting this research. We are committed to ethical practices in data handling, model deployment, and research integrity.
+
+# ACKNOWLEDGMENTS
+
+This work is funded by the C2SMARTER Center through a grant from the U.S. DOT's University Transportation Center Program. The contents of this report reflect the views of the authors, who are responsible for the facts and the accuracy of the information presented herein. The U.S. Government assumes no liability for the contents or use thereof. This work was also supported in part through the NYU IT High-Performance Computing resources, services, and staff expertise.
+
+# REFERENCES
+
+Alexander Amini, Tsun-Hsuan Wang, Igor Gilitschenski, Wilko Schwarting, Zhijian Liu, Song Han, Sertac Karaman, and Daniela Rus. Vista 2.0: An open, data-driven simulator for multimodal sensing and policy learning for autonomous vehicles. In 2022 International Conference on Robotics and Automation (ICRA), pp. 2419-2426. IEEE, 2022.
+Jason Ansel, Edward Z. Yang, Horace He, Natalia Gimelshein, Animesh Jain, Michael Voznesensky, Bin Bao, Peter Bell, David Berard, Evgeni Burovski, Geeta Chauhan, Anjali Chourdia, Will Constable, Alban Desmaison, Zachary DeVito, Elias Ellison, Will Feng, Jiong Gong, Michael Gschwind, Brian Hirsh, Sherlock Huang, Kshitteej Kalambarkar, Laurent Kirsch, Michael Lazos, Mario Lezcano, Yanbo Liang, Jason Liang, Yinghai Lu, C. K. Luk, Bert Maher, Yunjie Pan, Christian Puhrsch, Matthias Reso, Mark Saroufim, Marcos Yukio Siraichi, Helen Suk, Shunting Zhang, Michael Suo, Phil Tillet, Xu Zhao, Eikan Wang, Keren Zhou, Richard Zou, Xiaodong Wang, Ajit Mathews, William Wen, Gregory Chanan, Peng Wu, and Soumith Chintala. Pytorch 2: Faster machine learning through dynamic python bytecode transformation and graph compilation. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, ASPLOS 2024, La Jolla, CA, USA, 27 April 2024-1 May 2024, pp. 929-947. ACM, 2024. doi: 10.1145/3620665.3640366. URL https://doi.org/10.1145/3620665.3640366.
+Anton Bakhtin, David J. Wu, Adam Lerer, Jonathan Gray, Athul Paul Jacob, Gabriele Farina, Alexander H. Miller, and Noam Brown. Mastering the game of no-press diplomacy via humanregularized reinforcement learning and planning. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023, 2023.
+Matteo Bettini, Ryan Kortvelesy, Jan Blumenkamp, and Amanda Prorok. VMAS: A vectorized multi-agent simulator for collective robot learning. In Distributed Autonomous Robotic Systems - 16th International Symposium, DARS 2022, Montbéliard, France, 28-30 November 2022, volume 28 of Springer Proceedings in Advanced Robotics, pp. 42-56. Springer, 2022. doi: 10.1007/978-3-031-51497-5\4. URL https://doi.org/10.1007/978-3-031-51497-5_4.
+Clément Bonnet, Daniel Luo, Donal Byrne, Shikha Surana, Sasha Abramowitz, Paul Duckworth, Vincent Coyette, Laurence I. Midgley, Elshadai Tegegn, Tristan Kalloniatis, Omayma Mahjoub, Matthew Macfarlane, Andries P. Smit, Nathan Grinsztajn, Raphael Boige, Cemlyn N. Waters, Mohamed A. Mimouni, Ulrich A. Mbou Sob, Ruan de Kock, Siddarth Singh, Daniel Furelos-Blanco, Victor Le, Arnu Pretorius, and Alexandre Laterre. Jumanji: a diverse suite of scalable reinforcement learning environments in jax, 2024. URL https://arxiv.org/abs/2306.09884.
+James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman-Milne, and Qiao Zhang. JAX: composable transformations of Python+NumPy programs, 2018. URL http://github.com/google/jax.
+Eli Bronstein, Mark Palatucci, Dominik Notz, Brandyn White, Alex Kuefler, Yiren Lu, Supratik Paul, Payam Nikdel, Paul Mougin, Hongge Chen, Justin Fu, Austin Abrams, Punit Shah, Evan Racah, Benjamin Frenkel, Shimon Whiteson, and Dragomir Anguelov. Hierarchical model-based imitation learning for planning in autonomous driving. In IEEE/RSJ International Conference on Intelligent Robots and Systems, IROS 2022, Kyoto, Japan, October 23-27, 2022, pp. 8652-8659. IEEE, 2022. doi: 10.1109/IROS47612.2022.9981695. URL https://doi.org/10.1109/IROS47612.2022.9981695.
+
+Holger Caesar, Varun Bankiti, Alex H Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. nuscenes: A multimodal dataset for autonomous driving. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 11621-11631, 2020.
+Holger Caesar, Juraj Kabzan, Kok Seang Tan, Whye Kit Fong, Eric Wolff, Alex Lang, Luke Fletcher, Oscar Beijbom, and Sammy Omari. nuplan: A closed-loop ml-based planning benchmark for autonomous vehicles. arXiv preprint arXiv:2106.11810, 2021.
+Panpan Cai, Yiyuan Lee, Yuanfu Luo, and David Hsu. Summit: A simulator for urban driving in massive mixed traffic. In 2020 IEEE International Conference on Robotics and Automation (ICRA), pp. 4023-4029. IEEE, 2020.
+Jordi Casas, Jaime L Ferrer, David Garcia, Josep Perarnau, and Alex Torday. Traffic simulation with aimsun. Fundamentals of traffic simulation, pp. 173-232, 2010.
+Brandon Cui, Andrei Lupu, Samuel Sokota, Hengyuan Hu, David J. Wu, and Jakob Nicolaus Føerster. Adversarial diversity in hanabi. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023, 2023. URL https://openreview.net/pdf?id=uLE3WF3-H_5.
+Alexey Dosovitskiy, German Ros, Felipe Codevilla, Antonio Lopez, and Vladlen Koltun. Carla: An open urban driving simulator. In Conference on robot learning, pp. 1-16. PMLR, 2017.
+Scott Ettinger, Shuyang Cheng, Benjamin Caine, Chenxi Liu, Hang Zhao, Sabeek Pradhan, Yuning Chai, Ben Sapp, Charles R. Qi, Yin Zhou, Zoey Yang, Aurelien Chouard, Pei Sun, Jiquan Ngiam, Vijay Vasudevan, Alexander McCauley, Jonathon Shlens, and Dragomir Anguelov. Large scale interactive motion forecasting for autonomous driving: The waymo open motion dataset. In 2021 IEEE/CVF International Conference on Computer Vision, ICCV 2021, Montreal, QC, Canada, October 10-17, 2021, pp. 9690-9699. IEEE, 2021. doi: 10.1109/ICCV48922.2021.00957. URL https://doi.org/10.1109/ICCV48922.2021.00957.
+Cole Gulino, Justin Fu, Wenjie Luo, George Tucker, Eli Bronstein, Yiren Lu, Jean Harb, Xinlei Pan, Yan Wang, Xiangyu Chen, et al. Waymax: An accelerated, data-driven simulator for large-scale autonomous driving research. Advances in Neural Information Processing Systems, 36, 2024.
+Charles R. Harris, K. Jarrod Millman, Stefan van der Walt, Ralf Gommers, Pauli Virtanen, David Cournapeau, Eric Wieser, Julian Taylor, Sebastian Berg, Nathaniel J. Smith, Robert Kern, Matti Picus, Stephan Hoyer, Marten H. van Kerkwijk, Matthew Brett, Allan Haldane, Jaime Fernandez del Río, Mark Wiebe, Pearu Peterson, Pierre Gérard-Marchant, Kevin Sheppard, Tyler Reddy, Warren Weckesser, Hameer Abbasi, Christoph Gohlke, and Travis E. Oliphant. Array programming with numpy. Nat., 585:357-362, 2020. doi: 10.1038/S41586-020-2649-2. URL https://doi.org/10.1038/s41586-020-2649-2.
+Ashley Hill, Antonin Raffin, Maximilian Ernestus, Adam Gleave, Anssi Kanervisto, Rene Traore, Prafulla Dhariwal, Christopher Hesse, Oleg Klimov, Alex Nichol, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, and Yuhuai Wu. Stable baselines. https://github.com/hill-a/stable-baselines, 2018.
+Max Jaderberg, Wojciech M. Czarnecki, Iain Dunning, Luke Marris, Guy Lever, Antonio Garcia Castañeda, Charles Beattie, Neil C. Rabinowitz, Ari S. Morcos, Avraham Ruderman, Nicolas Sonnerat, Tim Green, Louise Deason, Joel Z. Leibo, David Silver, Demis Hassabis, Koray Kavukcuoglu, and Thore Graepel. Human-level performance in first-person multiplayer games with population-based deep reinforcement learning. CoRR, abs/1807.01281, 2018. URL http://arxiv.org/abs/1807.01281.
+Wenzel Jakob. nanobind: tiny and efficient c++/python bindings, 2022. https://github.com/wjakob/nanobind.
+Arne Kesting, Martin Treiber, and Dirk Helbing. General lane-changing model mobil for car-following models. Transportation Research Record, 1999(1):86-94, 2007.
+
+Parth Kothari, Christian Perone, Luca Bergamini, Alexandre Alahi, and Peter Ondruska. *Drivergym: Democratising reinforcement learning for autonomous driving*. arXiv preprint arXiv:2111.06889, 2021.
+Karsten Kreutz and Julian Eggert. Analysis of the generalized intelligent driver model (gidm) for uncontrolled intersections. In 2021 IEEE International Intelligent Transportation Systems Conference (ITSC), pp. 3223-3230. IEEE, 2021.
+Mathias Lechner, Tim Seyde, Tsun-Hsuan Johnson Wang, Wei Xiao, Ramin Hasani, Joshua Rountree, Daniela Rus, et al. Gigastep-one billion steps per second multi-agent reinforcement learning. Advances in Neural Information Processing Systems, 36, 2024.
+Edouard Leurent et al. An environment for autonomous driving decision-making, 2018.
+Quanyi Li, Zhenghao Peng, Lan Feng, Qihang Zhang, Zhenghai Xue, and Bolei Zhou. Metadrive: Composing diverse driving scenarios for generalizable reinforcement learning. IEEE transactions on pattern analysis and machine intelligence, 45(3):3461-3475, 2022.
+Pablo Alvarez Lopez, Michael Behrisch, Laura Bieker-Walz, Jakob Erdmann, Yun-Pang Flotteröd, Robert Hilbrich, Leonhard Lücken, Johannes Rummel, Peter Wagner, and Evamarie Wießner. Microscopic traffic simulation using sumo. In The 21st IEEE International Conference on Intelligent Transportation Systems. IEEE, 2018. URL https://elib.dlr.de/124092/.
+Yiren Lu, Justin Fu, George Tucker, Xinlei Pan, Eli Bronstein, Rebecca Roelofs, Benjamin Sapp, Brandyn White, Aleksandra Faust, Shimon Whiteson, et al. Imitation is not enough: Robustifying imitation with reinforcement learning for challenging driving scenarios. In 2023 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 7553-7560. IEEE, 2023.
+Viktor Makoviychuk, Lukasz Wawrzyniak, Yunrong Guo, Michelle Lu, Kier Storey, Miles Macklin, David Hoeller, Nikita Rudin, Arthur Allshire, Ankur Handa, et al. Isaac gym: High performancegpu-based physics simulation for robot learning. arXiv preprint arXiv:2108.10470, 2021.
+Mark Martinez, Chawin Sitawarin, Kevin Finch, Lennart Meincke, Alex Yablonski, and Alain Kornhauser. Beyond grand theft auto v for training, testing and enhancing deep learning in self driving cars. arXiv preprint arXiv:1712.01397, 2017.
+Matthias Müller, Vincent Casser, Jean Lahoud, Neil Smith, and Bernard Ghanem. Sim4cv: A photorealistic simulator for computer vision applications. International Journal of Computer Vision, 126:902-919, 2018.
+Praveen Palanisamy. Multi-agent connected autonomous driving using deep reinforcement learning. In 2020 International Joint Conference on Neural Networks (IJCNN), pp. 1-7. IEEE, 2020.
+Jacopo Panerati, Hehui Zheng, SiQi Zhou, James Xu, Amanda Prorok, and Angela P Schoellig. Learning to fly—a gym environment with pybullet physics for reinforcement learning of multi-agent quadcopter control. In 2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 7512-7519. IEEE, 2021.
+Julien Pérolat, Bart De Vylder, Daniel Hennes, Eugene Tarassov, Florian Strub, Vincent de Boer, Paul Muller, Jerome T. Connor, Neil Burch, Thomas W. Anthony, Stephen McAleer, Romuald Elie, Sarah H. Cen, Zhe Wang, Audrunas Gruslys, Aleksandra Malysheva, Mina Khan, Sherjil Ozair, Finbarr Timbers, Toby Pohlen, Tom Eccles, Mark Rowland, Marc Lanctot, Jean-Baptiste Lespiau, Bilal Piot, Shayegan Omidshafiei, Edward Lockhart, Laurent Sifre, Nathalie Beauguerlange, Rémi Munos, David Silver, Satinder Singh, Demis Hassabis, and Karl Tuyls. Mastering the game of Stratego with model-free multiagent reinforcement learning. CoRR, abs/2206.15378, 2022. doi: 10.48550/ARXIV.2206.15378. URL https://doi.org/10.48550/arXiv.2206.15378.
+Rajesh Rajamani. Vehicle dynamics and control. Springer Science & Business Media, 2011.
+Alexander Rutherford, Benjamin Ellis, Matteo Gallici, Jonathan Cook, Andrei Lupu, Gardar Ingvarsson, Timon Willi, Akbir Khan, Christian Schroeder de Witt, Alexandra Souly, et al. Jaxmarl: Multi-agent rl environments in jax. arXiv preprint arXiv:2311.10090, 2023.
+
+Anirban Santara, Sohan Rudra, Sree Aditya Buridi, Meha Kaushik, Abhishek Naik, Bharat Kaul, and Balaraman Ravindran. Madras: Multi agent driving simulator. Journal of Artificial Intelligence Research, 70:1517-1555, 2021.
+Adam Scibior, Vasileios Lioutas, Daniele Reda, Peyman Bateni, and Frank Wood. Imagining the road ahead: Multi-agent trajectory prediction via differentiable simulation. In 2021 IEEE International Intelligent Transportation Systems Conference (ITSC), pp. 720-725. IEEE, 2021.
+Brennan Shacklett, Luc Guy Rosenzweig, Zhiqiang Xie, Bidipta Sarkar, Andrew Szot, Erik Wijmans, Vladlen Koltun, Dhruv Batra, and Kayvon Fatahalian. An extensible, data-oriented architecture for high-performance, many-world simulation. ACM Transactions on Graphics (TOG), 42 (4):1-13, 2023.
+David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, Yutian Chen, Timothy P. Lillicrap, Fan Hui, Laurent Sifre, George van den Driessche, Thore Graepel, and Demis Hassabis. Mastering the game of go without human knowledge. Nat., 550(7676):354-359, 2017. doi: 10.1038/NATURE24270. URL https://doi.org/10.1038/nature24270.
+Joseph Suarez. Pufferlib: Making reinforcement learning libraries and environments play nice. arXiv preprint arXiv:2406.12905, 2024.
+Qiao Sun, Xin Huang, Brian C Williams, and Hang Zhao. Intersim: Interactive traffic simulation via explicit relation modeling. In 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 11416-11423. IEEE, 2022.
+Mark Towers, Ariel Kwiatkowski, Jordan Terry, John U Balis, Gianluca De Cola, Tristan Deleu, Manuel Goulão, Andreas Kallinteris, Markus Kimmel, Arjun KG, et al. Gymnasium: A standard interface for reinforcement learning environments. arXiv preprint arXiv:2407.17032, 2024.
+Martin Treiber, Ansgar Hennecke, and Dirk Helbing. Congested traffic states in empirical observations and microscopic simulations. Physical review E, 62(2):1805, 2000.
+Eugene Vinitsky, Nathan Lichtlé, Xiaomeng Yang, Brandon Amos, and Jakob Foerster. Nocturne: a scalable driving benchmark for bringing multi-agent learning one step closer to the real world. Advances in Neural Information Processing Systems, 35:3962-3974, 2022.
+M. Visvalingam and J. D. Whyatt. Line generalisation by repeated elimination of points. The Cartographic Journal, 30:46-51, 1993. doi: 10.1179/000870493786962263.
+Peter R. Wurman, Samuel Barrett, Kenta Kawamoto, James MacGlashan, Kaushik Subramanian, Thomas J. Walsh, Roberto Capobianco, Alisa Devlic, Franziska Eckert, Florian Fuchs, Leilani Gilpin, Piyush Khandelwal, Varun Kompella, HaoChih Lin, Patrick MacAlpine, Declan Oller, Takuma Seno, Craig Sherstan, Michael D. Thomure, Houmehr Aghabozorgi, Leon Barrett, Rory Douglas, Dion Whitehead, Peter Durr, Peter Stone, Michael Spranger, and Hiroaki Kitano. Outracing champion gran turismo drivers with deep reinforcement learning. Nat., 602(7896): 223-228, 2022. doi: 10.1038/S41586-021-04357-7. URL https://doi.org/10.1038/s41586-021-04357-7.
+Bernhard Wymann, Eric Espié, Christophe Guionneau, Christos Dimitrakakis, Rémi Coulom, and Andrew Sumner. Torcs, the open racing car simulator. Software available at http://torcs.sourceforge.net, 4(6):2, 2000.
+Danfei Xu, Yuxiao Chen, Boris Ivanovic, and Marco Pavone. Bits: Bi-level imitation for traffic simulation. In 2023 IEEE International Conference on Robotics and Automation (ICRA), pp. 2929-2936. IEEE, 2023.
+Chao Yu, Akash Velu, Eugene Vinitsky, Jiaxuan Gao, Yu Wang, Alexandre Bayen, and Yi Wu. The surprising effectiveness of ppo in cooperative multi-agent games. Advances in Neural Information Processing Systems, 35:24611-24624, 2022.
+Ming Zhou, Jun Luo, Julian Villella, Yaodong Yang, David Rusu, Jiayu Miao, Weinan Zhang, Montgomery Alban, Iman Fadakar, Zheng Chen, et al. Smarts: An open-source scalable multi-agentrl training school for autonomous driving. In Conference on Robot Learning, pp. 264-285. PMLR, 2021.
+
+# A REPRODUCIBILITY
+
+# A.1 EXTRA FIGURES
+
+
+Figure 7: Visualization of different observation spaces available in GPUDrive. The top scene is an example scenario from the dataset, rendered from the ego-centric perspective of the red vehicle. Grey cars are parked cars while white cars are other controlled agents. From left to right: the Radius Filter returns all objects within 100 meters, the LIDAR observation with 3000 rays spread around 360 degrees, and a view cone consisting of 3000 rays emanating in a 120-degree view cone.
+
+# A.2 CODE REPRODUCIBILITY
+
+All code required to reproduce the paper is open-sourced at https://github.com/Emerge-Lab/gpudrive/tree/main under release number v0.4.0
+
+# A.3 COMPUTATIONAL RESOURCES
+
+All RL experiments in this paper were run on an NVIDIA RTX 4080 or A100. Total resources for the paper correspond to less than 2 GPU days.
+
+# B DYNAMICS MODEL
+
+Agents are driven by a kinematic bicycle model (Rajamani, 2011) which uses the center of gravity as reference point. The dynamics are as follows. Here $(x_{t},y_{t})$ stands for the coordinate of the vehicle's position at time $t$ , $\theta_t$ stands for the vehicle's heading at time $t$ , $v_{t}$ stands for the vehicle's speed at time $t$ , $a$ stands for the vehicle's acceleration and $\delta$ stands for the vehicle's steering angle. $L$ is the distance from the front axle to the rear axle (in this case, just the length of the car) and $l_{r}$ is the distance from the center of gravity to the rear axle. Here we assume $l_{r} = 0.5L$ .
+
+$$
+\dot {v} = a
+$$
+
+$$
+\bar {v} = \operatorname {c l i p} \left(v _ {t} + 0. 5 \dot {v} \Delta t, - v _ {\max }, v _ {\max }\right)
+$$
+
+$$
+\begin{array}{l} \beta = \tan^ {- 1} \left(\frac {l _ {r} \tan (\delta)}{L}\right) \\ = \tan^ {- 1} (0. 5 \tan (\delta)) \\ \end{array}
+$$
+
+$$
+\dot {x} = \bar {v} \cos (\theta + \beta)
+$$
+
+$$
+\dot {y} = \bar {v} \sin (\theta + \beta)
+$$
+
+$$
+\dot {\theta} = \frac {\bar {v} \cos (\beta) \tan (\delta)}{L}
+$$
+
+We then step the dynamics as follows:
+
+$$
+x _ {t + 1} = x _ {t} + \dot {x} \Delta t
+$$
+
+$$
+y _ {t + 1} = y _ {t} + \dot {y} \Delta t
+$$
+
+$$
+\theta_ {t + 1} = \theta_ {t} + \dot {\theta} \Delta t
+$$
+
+$$
+v _ {t + 1} = \operatorname {c l i p} \left(v _ {t} + \dot {v} \Delta t, - v _ {\max }, v _ {\max }\right)
+$$
+
+# C LICENSE DETAILS AND ACCESSIBILITY
+
+Our code is released under an MIT License. The Waymo Motion dataset is released under a Apache License 2.0. The code is available at https://github.com/Emerge-Lab/gpudrive.
+
+# D TRAINING DETAILS
+
+# D.1 END-TO-END PERFORMANCE
+
+The Table below depicts the hyperparameters used to produce the results in Section 4.2.
+
+Table 2: Experiment hyperparameters used for comparing the training runs between Nocturne and GPUDrive in Figure 5. The environment configurations are aligned as closely as possible, using the same observations and field of view. The dataset includes the same 10 scenarios. It's important to note that the length of the GPUDrive rollout is approximately equal to the number of worlds multiplied by the rollout length and then multiplied by the number of controllable agents. We have set this value to be $92 \times 50 \approx 4600$ to approximately match the rollout length in Nocturne.
+
+
Parameter
IPPO GPUDrive
IPPO Nocturne
γ
0.99
0.99
λGAE
0.95
0.95
PPO rollout length
92
4096
PPO epochs
5
5
PPO mini-batch size
2048
2048
PPO clip range
0.2
0.2
Adam learning rate
3e-4
3e-4
Adam ε
1e-5
1e-5
normalize advantage
yes
yes
entropy bonus coefficient
0.001
0.001
value loss coefficient
0.5
0.5
seeds
42, 12, 67
42, 12, 67
number of worlds
50
1
+
+
+Figure 8: Key performance metrics as a function of training time grouped by the number of unique scenes in a batch reported in Figure 6. Left: The aggregate percentage of agents that achieved their goal. Center: The aggregate percentage of agents that collided with another vehicle. Right: The aggregate number of vehicles that crossed a road edge.
+
+
+
+
\ No newline at end of file
diff --git a/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/images.zip b/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..7425e40128c4e5714f340e7ba5a1e58a1cded516
--- /dev/null
+++ b/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eb7d0685dec5a3aae8351e400acd98bc85d0038ae3b74f1228aa3b6287f01c09
+size 505828
diff --git a/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/layout.json b/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..f46b4647568df8fddb2b74ae66101f676d926f71
--- /dev/null
+++ b/ICLR/2025/GPUDrive_ Data-driven, multi-agent driving simulation at 1 million FPS/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e23e788008777985d74094d65748d591ea595f90262a10cb2f5cdcd0617e9726
+size 392713
diff --git a/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/9f9147c8-e488-4129-9de2-52339d5b82ba_content_list.json b/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/9f9147c8-e488-4129-9de2-52339d5b82ba_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d461f7d6a151942342acaa9fdee6b716cc4b91ee
--- /dev/null
+++ b/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/9f9147c8-e488-4129-9de2-52339d5b82ba_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:10950d30a0321995131d46e545d03ce11e531c233085153c02f44745dda91fe7
+size 138878
diff --git a/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/9f9147c8-e488-4129-9de2-52339d5b82ba_model.json b/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/9f9147c8-e488-4129-9de2-52339d5b82ba_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..d1b8c1e80d616f1b36766dbc1affcbe9ded3a732
--- /dev/null
+++ b/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/9f9147c8-e488-4129-9de2-52339d5b82ba_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2e9b9ff48c0d952d9a8fc5f1e1015c3926fc2b69ebd0f2b246380044b25cce5a
+size 164486
diff --git a/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/9f9147c8-e488-4129-9de2-52339d5b82ba_origin.pdf b/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/9f9147c8-e488-4129-9de2-52339d5b82ba_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..1874b0a023ba17cbc6bc5b33781d57d4eb08b334
--- /dev/null
+++ b/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/9f9147c8-e488-4129-9de2-52339d5b82ba_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a3113ef3f933594874a7dcd9f931be0dc3767929a793467a12deb4e8d05415e0
+size 974275
diff --git a/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/full.md b/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0b3b13ad7af02a6c4de1d75e7df02cf95933dc34
--- /dev/null
+++ b/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/full.md
@@ -0,0 +1,540 @@
+# GPRoMPTSHIELD: ELEVATING RESILIENCE IN GRAPH PROMPT TUNING AGAINST ADVERSARIAL ATTACKS
+
+Shuhan Song $^{1,2}$ , Ping Li $^{1,2}$ , Ming Dun $^{1}$ , Maolei Huang $^{4}$
+
+Huawei Cao $^{1,3,*}$ , Xiaochun Ye $^{1}$
+
+$^{1}$ State Key Lab of Processors, Institute of Computing Technology,
+
+Chinese Academy of Sciences, Beijing, China
+
+$^{2}$ University of Chinese Academy of Sciences, Beijing, China
+
+$^{3}$ Zhongguancun Laboratory, Beijing, China
+
+4Fliggy, Alibaba Group
+
+{songshuhan19s, liping20b, dunming, caohuawei, yexiaochun}@ict.ac.cn
+
+{hhangmaolei.hml}@alibaba-inc.com
+
+# ABSTRACT
+
+The paradigm of "pre-training and prompt-tuning", with its effectiveness and lightweight characteristics, has rapidly spread from the language field to the graph field. Several pioneering studies have designed specialized prompt functions for diverse downstream graph tasks based on various graph pre-training strategies. These prompts concentrate on the compatibility between the pre-training pretext and downstream graph tasks, aiming to bridge the gap between them. However, designing prompts blindly to adapt to downstream tasks based on this concept neglects crucial security issues. By conducting covert attacks on downstream graph data, we find that even when the downstream task data closely matches that of the pre-training tasks, it is still feasible to generate highly misleading prompts using simple deceptive techniques. In this paper, we shift the primary focus of graph prompts from compatibility to vulnerability issues in adversarial attack scenarios. We design a highly extensible shield defense system for the prompts, which enhances their robustness from two perspectives: Direct Handling and Indirect Amplification. When downstream graph data contains unreliable biases, the former directly combats invalid information by incorporating hybrid multi-defense prompts to the input graph's feature space, while the latter adopts a training strategy to bypass the invalid components and amplifies valid part. We provide a theoretical derivation that proves their feasibility, indicating that unbiased prompts exist under certain conditions on unreliable data. Extensive experiments across various scenarios of adversarial attacks (including adaptive and non-adaptive attacks) indicate that the prompts within our defense system exhibit enhanced resilience and superiority. This paper explores a new perspective in graph prompt learning, offering a novel option for robust prompt tuning in downstream tasks.
+
+# 1 INTRODUCTION
+
+Graph neural networks (GNNs) have demonstrated impressive performance across various applications due to their unique ability to handle complex and irregular data, such as recommendation systems (Liu et al., 2024), traffic prediction (Shao et al., 2022), and social computing (Sun et al., 2023b). With the advancement of society, real-world scenarios typically align with three characteristics: abundant data, sparse labels, and diverse task domains. Therefore, the algorithm paradigm has shifted from designing specific models for particular problems to training general models that can be fine-tuned for downstream tasks—known as "pre-training and fine-tuning". This paradigm effectively maximizes the benefits of the large volume of data and has led to the emergence of many outstanding works (Zhu et al., 2021; 2020; Velickovic et al., 2019; Hou et al., 2022; 2023).
+
+
+Figure 1: The prompts can be easily misled by simple deceptive tactics. The red edges represent the edges changed by structural perturbations.
+
+
+Figure 2: The adversarial language prompts generated by different attacks inspire us to design graph prompts tailored to various node scenarios.
+
+As pre-trained models in the language field have become increasingly powerful, prompt-based tuning has gradually emerged as a new research focus. Unlike fine-tuning which adjusts the parameters of pre-trained models, prompt-based methods freeze the parameters of the pre-trained model and focus on adjusting the data space through input transformation. These transformation operations are termed prompts, whose objective is to narrow the gap between the pretext of pre-training and the objectives of various downstream tasks, while avoiding the computational cost of retraining the model from scratch. Therefore, "Pre-training, prompting, and fine-tuning" has become the new paradigm.
+
+This new paradigm has rapidly spread to the graph field due to its popularity. Although applying prompt-based tuning strategies on GNN models poses greater challenges compared to language prompts, many pioneering studies (Sun et al., 2023a; Liu et al., 2023b; Fang et al., 2024; Yu et al., 2024) have attempted to propose viable prompts from different perspectives. These studies have made outstanding contributions and they share a commonality in their concentrate on the compatibility between the pre-training pretext and downstream graph tasks, aiming to bridge the gap between them. However, designing prompts blindly to adapt to downstream tasks based on this compatibility neglects crucial security issues. As shown in Figure 1, effective prompts often provide strong support for downstream tasks, but making certain interventions during the prompt tuning phase, such as simple perturbations to the graph structure, can render the prompts ineffective and lead to catastrophic consequences.
+
+To illustrate this phenomenon more intuitively, we conduct an interesting experiment. For node classification tasks, we employ the well-known MetaAttack (Zügner & Gunnemann, 2019) to attack the downstream graph data, and we present the classification results of existing mainstream prompt functions on clean and attacked graphs in Figure 3.
+
+
+(a) Cora
+
+
+(b) CiteSeer
+Figure 3: The performance of existing prompt functions on clean graphs and graphs attacked by MetaAttack with a $20\%$ attack ratio. The scale of the radar chart represents classification accuracy.
+
+we find that even when the downstream data closely matches that of the pre-training tasks, it is still feasible to generate highly misleading prompts using simple deceptive techniques. Therefore, this inspires us to consider the safety issues of graph prompts.
+
+A recent study (Zhu et al., 2023) has proposed PromptBench for language prompts, as shown in Figure 2. For instance, there is a clean prompt "As a mathematics instructor, calculate the answer to the following problem related to $\{\}$ ", The pre-trained model can adapt to downstream tasks based on its key terms. However, adversarial prompts can cause the pre-trained model to focus on both the target text and the adversarial content, amplifying its sensitivity to adversarial perturbations. In word-level attacks like DeepWordBug, introducing typos or altering specific words diverts the model's attention from key terms. In sentence-level attacks like StressTest and CheckList, attackers attempt to distract the pre-trained model by adding irrelevant or unrelated sentences to the input text, which may cause it to lose focus on the primary context. The robustness of language prompts has led us to examine the robustness of graph prompts, and we aim to equip graph prompts with certain adversarial perturbation capabilities.
+
+Challenges. However, designing a robust graph prompt is a significant challenge, as graph prompts are inherently more fragile than language prompts for two main reasons. First, the cost of perturbing a graph is very low and the implementation is straightforward. Just simply adding a few irrelevant edges to the graph structure can lead to catastrophic changes due to the message-passing mechanism, reminiscent of the saying "a single spark can start a prairie fire". Second, the design of graph prompts is complex and specialized. Prompts that are suited for a specific graph property or structure can quickly become ineffective due to even slight alterations.
+
+Contributions. To smoothly tackle these two challenges, we design a highly extensible shield defense system for the prompts, which enhances their robustness from two perspectives: Direct Handling and Indirect Amplification. When downstream graph data contains unreliable biases, the former directly combats invalid information by incorporating hybrid multi-defense prompts to the input graph's feature space. We do not adopt a universal learnable prompt for all node features like GPF (Fang et al., 2024), as we analyzed above, a prompt that works for one node may not be suitable for all nodes. Instead, our hybrid multi-defense prompts will customize a individual prompt for each node according to the diverse sensitive information associated with different perturbations. When attacks cause biased node distributions, customized prompts can provide context-specific guidance tailored to nodes in different situations. While the latter adopts a training strategy to bypass the invalid components and amplifies valid part. We do not need to design new prompts. Instead, we can directly build upon existing prompts by providing a supplementary tool to address their overlooked safety issues. To ensure the effectiveness of our proposed strategies, we provide a theoretical analysis demonstrating that when the downstream graph data is unreliable, there exists at least one viable prompt capable of achieving results comparable to those on clean graph under certain conditions.
+
+Overall, the contributions of this paper can be summarized as follows:
+
+- We have opened up a new perspective on graph prompt tuning focused on robustness, we shift the primary focus of graph prompts from compatibility to vulnerability issues in adversarial attack scenarios.
+- We propose a highly extensible shield defense system for the prompts. This system includes a hybrid multi-defense prompt and a robust prompt tuning strategy, and we provide theoretical proof of its feasibility.
+- We conduct extensive experiments in few-shot scenarios under various adversarial attacks (including adaptive and non-adaptive attacks). The results indicate that our hybrid multi-defense prompt and robust prompt tuning strategy significantly enhance the resilience of prompt tuning in downstream biased tasks.
+
+# 2 RELATED WORK
+
+This paper primarily focuses on advancements in the field of prompt tuning. Additionally, We also provide a systematic description of graph pre-training strategies in Appendix A.1.
+
+# Graph Prompt Tuning
+
+Prompt-based methods freeze the parameters of the pre-trained model and focus on adjusting the data space through input transformation. Due to the parameter efficiency of prompts, they have been widely used in the language domain (Liu et al., 2023a; Sivarajkumar et al., 2024; Greshake et al., 2023; Mizrahi et al., 2024), but they are still in the early stages in the graph domain. However, some
+
+pioneering studies have already been conducted to explore this area. GPPT (Sun et al., 2022) applies the pairwise token template (the task token for downstream problem and the structure token containing the node information) to modify nodes. All-in-one (Sun et al., 2023a) reformulates node-level and edge-level tasks as graph-level tasks, introducing meta-learning technique to learn a prompt. GPF/GPF-plus (Fang et al., 2024) proposes a universal prompt tuning method by introducing additional learnable parameter as a prompt in the feature space of the input graph. To achieve effective knowledge transfer from pre-training to a downstream task, GraphPrompt (Liu et al., 2023b) proposes a unified framework based on subgraph similarity, aiming to retain graph properties that are compatible with the given task during pre-training. MultiGPrompt (Yu et al., 2024) argues that a single pretext task is not sufficient. Therefore, it designs a series of pretext tokens to collaboratively address different pretext tasks during pre-training. It also introduces a dual-prompt mechanism that uses both a composed prompt and an open prompt to leverage task-specific and global pre-training knowledge. However, all of these prompts focus on the compatibility between pre-training and downstream tasks, neglecting potential security issues.
+
+# 3 PRELIMINARIES
+
+In this paper, we primarily discuss the robustness of graph prompt tuning in downstream node classification tasks, as most mainstream attacks are centered around this scenario. We do not focus on the compatibility between upstream and downstream tasks, as existing studies have already provided excellent discussions on this aspect. Instead, we place greater emphasis on the resilience of prompts when faced with biased data.
+
+Notations. Define an undirected, unweighted graph $\mathcal{G} = (\mathcal{V},\mathcal{E})$ with $N$ nodes, $N = |\mathcal{V}|$ . $\mathcal{V} = \{v_{1},v_{2},\dots ,v_{N}\}$ and $\mathcal{E}\subseteq \mathcal{V}\times \mathcal{V}$ represent the set of nodes and edges, respectively. Its feature matrix $\mathcal{X} = [x_1,x_2,\dots ,x_n]\in \mathbb{R}^{N\times d_{in}}$ , where $x_{n}$ is a $d_{in}$ -dimensional feature vector of the nth node. $\mathcal{A}\in \{0,1\}^{N\times N}$ is the symmetric adjacency matrix where $\mathcal{A}_{ij} = 1$ if $(v_{i},v_{i})\in \mathcal{E}$ . Moreover, the labels of all nodes are denoted as $\pmb{y}$ . Each node is associated with a label $y_{i}\in \mathcal{C}$ where $\mathcal{C} = \{c_1,c_2,\dots ,c_K\}$ .
+
+Fine-Tuning. Define a pre-trained GNN model $f$ , a learnable projection head $\theta$ . Next, we reformulate the node task as a subgraph classification task and define a downstream task dataset $D = \{(S_{x_1}, y_1), \dots, (S_{x_m}, y_m)\}$ , where $S_{x_i} = (S_i, X_{n_{S_i}})$ is the multi-hop neighbor subgraph of node $i$ extracted from $\mathcal{G}$ . $S_i$ is the structure of the node subgraph. $n_{S_i}$ is the set of nodes contained in $S_i$ . $X_{n_{S_i}}$ represents the features of the contained nodes. We adjust the parameters of the pre-trained model $f$ and the projection head $\theta$ to maximize the likelihood of predicting the correct labels $y_i$ of the downstream local subgraph $S_{x_i}$ . Fine-Tuning aims to maximize the classification likelihoods for nodes in the graph, which can be expressed as follows:
+
+$$
+\max _ {f, \theta} \sum_ {i = 1} ^ {n} p _ {f, \theta} \left(y _ {i} \mid X _ {n _ {S _ {i}}}, S _ {i}\right) \tag {1}
+$$
+
+Prompt-Tuning. In prompt-tuning for downstream node classification tasks, the parameters of the pre-trained model $f$ are frozen, and instead introduces a lightweight graph prompt function $\psi$ . $\psi$ can be attached in the form of structure or features, transforming the input subgraph into a prompt subgraph for pre-trained model $f$ 's input. The prompt subgraph can be expressed as follows:
+
+$$
+S _ {x _ {i}} ^ {*}: \left(S _ {i} ^ {*}, X _ {n _ {S _ {i}}} ^ {*}\right) = \psi \left(S _ {x _ {i}}\right) \tag {2}
+$$
+
+Therefore, the process of prompt-tuning can be described as:
+
+$$
+\max _ {\psi , \theta} \sum_ {i = 1} ^ {n} p _ {f, \theta} \left(y _ {i} \mid S _ {x _ {i}} ^ {*}\right) \tag {3}
+$$
+
+In the evaluation phase after prompt-tuning, by adding a prompt $\psi$ to the subgraph of a test node, the frozen model $f$ can process it directly.
+
+Effectiveness Analysis. This study explores prompt effectiveness from the perspective of data distribution. Following (Li et al., 2022b), define $\hat{S_{x_i}^*}$ as a prompt subgraph embedding output. Assume subgraph embeddings follow $p(\hat{S}_x^* |y)$ and are sampled from the joint distribution $p(\hat{S}_x^*,y)$ . Existing prompts seek general templates. Their effectiveness relies on unbiased data in downstream tasks ( $p_{train}(\hat{S}_x^*,y) = p_{test}(\hat{S}_x^*,y) = p_{true}(\hat{S}_x^*,y)$ ), as analyzed in (Li et al., 2022b). With consistent distributions, prompts work well even with few samples. But attacks cause distribution deviations ( $p_{train}(\hat{S}_x^*,y) \neq p_{test}(\hat{S}_x^*,y) \neq p_{true}(\hat{S}_x^*,y)$ ), leading to overfitting to erroneous data. Despite fixed pre-trained model parameters, misleading prompt harm is underestimated. As $p(\hat{S}_x^*,y) = p(y)p(\hat{S}_x^*|y)$ and $p(y)$ is consistent, inconsistent $p(\hat{S}_x^*|y)$ causes differences. Therefore, when the prompts obtained through prompt tuning with few-shot samples on the training data are added to the test data based on the principle of distribution consistency, it will result in catastrophic performance. This phenomenon is well reflected in Figure 3.
+
+Attacks. In this paper, we mainly adopt two attack scenarios: the commonly used gray-box global poisoning attack and the white-box adaptive attack. We focus on attacks against the graph structure. In the setting of the former scenario, attackers have visibility into the graph data and labels but lacks visibility into the details of the model. MetaAttack (Zügner & Gunnemann, 2019) as a classic gray-box poisoning attack, utilizes a surrogate model for the attack, which can be formulated mathematically as a bilevel optimization problem:
+
+$$
+\min _ {\hat {G} \in \Phi (G)} \mathcal {L} _ {a t k} \left(f _ {\theta^ {*}} (\hat {G})\right) \quad s. t. \quad \theta^ {*} = \underset {\theta} {\operatorname {a r g m i n}} \mathcal {L} _ {t r a i n} \left(f _ {\theta} (\hat {G})\right) \tag {4}
+$$
+
+$\Phi (G)$ represents a set of graphs that satisfies the disturbance budget constraint $\Delta$ . $\Delta$ indicates a limit on the number of changes $\| A - \hat{A}\| \leq \Delta$ . $\mathcal{L}_{atk}$ is the attack loss function, could be $-\mathcal{L}_{train}$ or $-\mathcal{L}_{self}$ .
+
+Adaptive attacks (Gosch et al., 2024) are a type of white-box attack with stronger capabilities, where the attacker possesses complete information, including the defender's model features, graph structure, labels, and all details. (Gosch et al., 2024) categorizes defenses into seven types and designs adaptive attacks for the most representative method in each category.
+
+Problem Statement. This paper explores the robustness of prompt strategies in node classification tasks. To mimic real-world situations, we pretrain a GNN model on clean graphs and freeze its parameters. Our target is to design a robust prompt and optimization strategy. When the downstream graph data is biased by attacks, our prompt strategy leverages few-shot samples for robust tuning, improving the classification accuracy of unlabelled nodes.
+
+# 4 METHODS
+
+In this section, we will introduce a highly extensible shield defense system designed for the prompts, which enhances their robustness from two perspectives: Direct Handling and Indirect Amplification. They provide viable solutions for enhancing the resilience of prompts at two different stages: robust prompt design and robust optimization strategy.
+
+# 4.1 DIRECT HANDLING
+
+We have previously analyzed that when the data distribution is biased, prompts that are effective for certain nodes may mislead others. Therefore, when the downstream graph is attacked, we do not use a universal prompt like GPF. Instead, we designed a hybrid multi-defense prompt. Since we cannot know in advance the tactics employed by attackers, we customize a specific prompt for each node's situation by organizing the commonalities and analyzing the focal points of different attacks.
+
+Downstream unbiased subgraphs that share consistent properties with pre-training data often do not require complex prompts. A typical example is subgraphs with high homophily similar to the pretraining data, which inherently exhibit strong compatibility. The nodes that truly require focused prompting are the biased ones resulting from attacks. For these biased nodes, adding prompts identical to those of unbiased nodes is obviously irrational.
+
+We aim for the prompts on these biased nodes capable of mitigating the impact of biased information. Therefore, we propose several different node filtering strategies based on various sensitive points that the attacks may target. These strategies identify potential biased nodes with different properties and apply attribute-specific prompts to each of them. For a perturbed subgraph $\widetilde{S}_{x_i} = (\widetilde{S}_i,X_{n_{\widetilde{S}_i}})$ in a few-shot training set, we will next demonstrate how to add a hybrid multi-defense prompt to it.
+
+Filtering Tip 1: Degree Some indiscriminate attacks (such as DICE (Waniek et al., 2018) and Random attack) apply the same attack probability to all nodes. In this context, nodes with higher degrees tend to exhibit more stable community features and maintain good consistency with the pre-training data. Under the same attack cost, low-degree nodes are more likely to generate biased community features. Therefore, we filter out the set of nodes with low degree, denoted as $n_{ld} = \{u | |\mathcal{N}_u| < \tau_{degree}\}$ , where $\mathcal{N}_u$ is $u$ 's neighbors and $\tau_{degree}$ is the degree threshold. We provide an auxiliary degree defense prompt $p_d \in \mathbb{R}^{d_{in}}$ applied to their feature space, where $d_{in}$ is the dimensionality of the node features. This process can be expressed as:
+
+$$
+X _ {n _ {\tilde {S} _ {i}}} ^ {*} [ n _ {l d} ] = X _ {n _ {\tilde {S} _ {i}}} [ n _ {l d} ] + p _ {d} \tag {5}
+$$
+
+Filtering Tip 2: Node Centrality Similarity. Most mainstream attacks aim to disrupt the homophily assumption in graphs, where nodes with the same label and similar features are often connected. They utilize low-cost, high-reward tactics to increase the graph's heterophily as much as possible. This change in heterophily is typically reflected in the central similarity of nodes, where the attacked biased nodes connect with nodes that have different labels and features, thus confusing the assessment of their own community characteristics. Therefore, we filter out the set of nodes with low central similarity, denoted as $n_{ls} = \left\{u\big|\frac{1}{|\mathcal{N}_u|}\sum_{v\in \mathcal{N}_u}\operatorname {sim}(\mathcal{X}_u,\mathcal{X}_v) < \tau_{sim}\right\}$ , where $\tau_{sim}$ is the similarity threshold. We provide an auxiliary similarity defense prompt $p_s\in \mathbb{R}^{d_{in}}$ applied to their feature space. This process can be expressed as:
+
+$$
+X _ {n _ {\tilde {S} _ {i}}} ^ {*} [ n _ {l s} ] = X _ {n _ {\tilde {S} _ {i}}} [ n _ {l s} ] + p _ {s} \tag {6}
+$$
+
+Filtering Tip 3: Out-of-distribution nodes. (Li et al.) proposes a novel adversarial training paradigm that generates perturbations through adversarial attacks during training, using adversarial edges as out-of-distribution samples and initial edges as in-distribution samples to train multiple detectors $f_{D} = \{f_{d}^{1}, f_{d}^{2}, \dots \}$ . Using this detector, we can identify out-of-distribution edges generated by attacks when faced with a biased graph. More detailed description is provided in Appendix A.2. By detecting these edges, the nodes at both ends of the edges become the focal points of the attack method. We add prompts to these nodes and denote them as $n_{od} = \{u | \exists f_{D}(e) = 1, e \in \mathcal{E}, u \in e\}$ . We provide an auxiliary out-of-distribution defense prompt $p_{o} \in \mathbb{R}^{d_{in}}$ applied to their feature space. This process can be expressed as:
+
+$$
+X _ {n _ {\tilde {S} _ {i}}} ^ {*} [ n _ {o d} ] = X _ {n _ {\tilde {S} _ {i}}} [ n _ {o d} ] + p _ {o} \tag {7}
+$$
+
+In this paper, we initially propose above-mentioned three feasible solutions. As attacks continue to evolve, node sets can be selected based on a wider range of sensitive properties. After obtaining different sets of vulnerable nodes, the prompt selection for a node is actually included in set $\{(), (p_d, p_s, p_o), (p_d, p_s), (p_o), \dots\}$ . In the experiments, we also design an enhanced prompt $p_e \in \mathbb{R}^{d_{in}}$ for nodes that do not have any sensitive prompts added.
+
+Since each node has a different number of prompts, integrating all the prompts that belong to each node on graph is a challenge. Defining a node's prompt set as $PS_{i}$ , we propose two fusion strategies: one is the weighted average Mean, and the other is the self-attention mechanism SA (Vaswani, 2017) used in language models. Therefore, a node's hybrid multi-defense prompt can be expressed as:
+
+$$
+X _ {n _ {\tilde {S} _ {i}}} ^ {*} [ i ] = \sum_ {n = 1} ^ {| P S _ {i} |} w _ {n} p _ {n} \quad o r \quad \sum_ {n = 1} ^ {| P S _ {i} |} a _ {i, n} p _ {n} \quad p _ {n} \in P S _ {i} \tag {8}
+$$
+
+
+Figure 4: Robust Prompt Optimization Workflow for Hybrid Multi-Defense Prompt.
+
+We present the fusion strategy of SA in Figure 4. Finally, the process of adding hybrid multi-defense prompt to the perturbed subgraph $\widetilde{S}_{x_i}$ is described as follows:
+
+$$
+\widetilde {S} _ {x _ {i}} ^ {*} = \left(\widetilde {S} _ {i}, X _ {n _ {\widetilde {S} _ {i}}} + X _ {n _ {\widetilde {S} _ {i}}} ^ {*}\right) \tag {9}
+$$
+
+Our prompt is applied in the feature space. We do not choose structure-based prompts like All-in-one (Sun et al., 2023a). Instead, feature-based prompts allow for real-time adjustments to the structure of the disturbed subgraphs based on the current state of prompt tuning.
+
+Prompt Tuning. To optimize the learnable prompts, we propose three robust auxiliary constraints. Consider a biased node classification task with a few-shot labeled training set $\mathcal{T}$ . Under the few-shot setting, there are only $k$ labeled cases for each class in $\mathcal{C}$ , i.e., $\mathcal{T} = \left\{(\widetilde{S}_{x_1},y_1),\dots ,(\widetilde{S}_{x_{k\times |\mathcal{C}|}},y_{k\times |\mathcal{C}|})\right\}$ . We define $\widetilde{S}_{x_i}$ with prompt added as $\widetilde{S}_{x_i}^*$ . After inputting $\widetilde{S}_{x_i}^*$ into the pre-trained model $f$ , we define the output node embeddings as $\widetilde{H}_{n_{\widetilde{S}_i^*}}$ , and the graph embedding as $\widetilde{G}_i^*$ . To enhance the denoising capability of our prompt, we hope that the output node embeddings better satisfy the first-order proximity. Therefore, we use hidden feature smoothness as a regularizer, as shown below:
+
+$$
+\mathcal {L} _ {s} = \sum_ {i = 1} ^ {k \times | \mathcal {C} |} \sum_ {m, n \in \tilde {S} _ {i} ^ {*}} \| \tilde {H} _ {n \bar {S} _ {i} ^ {*}} [ m ] - \tilde {H} _ {n \bar {S} _ {i} ^ {*}} [ n ] \| _ {2} \tag {10}
+$$
+
+In each filtering scenario $t$ , we hope to reduce the distance between the output distribution of biased nodes and unbiased nodes. To elaborate clearly, we define the nodes with prompt added in filtering scenario $t$ as $n_p^t$ and the set of remaining nodes as $n_{np}^t$ , i.e., the complement nodes $\mathbb{C}_{n_{\widetilde{S}_i^*}} n_p^t$ . $(n_p^t, n_{np}^t) \in N^T$ , where $N^T = \left\{(n_{ld}, \mathbb{C}_{n_{\widetilde{S}_i^*}} n_{ld}), (n_{ls}, \mathbb{C}_{n_{\widetilde{S}_i^*}} n_{ls}), (n_{od}, \mathbb{C}_{n_{\widetilde{S}_i^*}} n_{od}), \dots \right\}$ . Therefore, we utilize a distribution loss to minimize the distance between the distributions of biased nodes and unbiased nodes in each perturbed subgraph across all filtering scenarios, enabling the prompt to guide and correct the biased distributions. This can be specifically expressed as follows:
+
+$$
+\mathcal {L} _ {k l} = \sum_ {i} ^ {k \times | \mathcal {C} |} \frac {1}{| N ^ {T} |} \sum_ {\left(n _ {p} ^ {t}, n _ {n p} ^ {t}\right) \in N ^ {T}} D _ {K L} \left(p \left(\widetilde {H} _ {n _ {\widetilde {S} _ {i} ^ {*}}} \left[ n _ {p} ^ {t} \right]\right) \mid \mid p \left(\widetilde {H} _ {n _ {\widetilde {S} _ {i} ^ {*}}} \left[ n _ {n p} ^ {t} \right]\right)\right) \tag {11}
+$$
+
+Additionally, to impose constraint on the correlation between different defense prompts, we propose a node overlap matrix $E$ for each $\widetilde{S}_i^*$ . Assuming there are $T$ filtering scenarios corresponding to $T$ defense prompts, $E$ is an $T \times T$ symmetric matrix. $E_{ij}$ represents the degree of overlap between the biased node sets of the two filtering scenarios. Take $n_{ld}$ and $n_{ls}$ for example, this implies:
+
+$$
+E _ {i j} = E _ {j i} = \frac {\left| n _ {l d} \cap n _ {l s} \right|}{\left| n _ {l d} \cup n _ {l s} \right|} \tag {12}
+$$
+
+The matrix $E$ indicates that defense prompts with a higher node overlap should be more similar, while those with lower overlap should exhibit greater differences. Defining the defense prompt matrix of $\widetilde{S}_i^*$ as $P_{i}\in \mathbb{R}^{T\times d_{in}}$ , we obtain the following multi-prompt constraint loss.
+
+$$
+\mathcal {L} _ {o} = \sum_ {i} ^ {k \times | \mathcal {C} |} \| P _ {i} P _ {i} ^ {T} - E \| _ {2} \tag {13}
+$$
+
+With these three auxiliary robust constraints, we perform robust prompt tuning by optimizing the following expression:
+
+$$
+\min _ {\theta , p _ {d}, p _ {s}, p _ {o} \dots} \sum_ {i} ^ {k \times | \mathcal {C} |} \mathcal {L} \left(\widetilde {G} _ {i} ^ {*}, y _ {i}\right) + \alpha \mathcal {L} _ {s} + \beta \mathcal {L} _ {k l} + \gamma \mathcal {L} _ {o} \tag {14}
+$$
+
+$\mathcal{L}$ is the downstream loss function (e.g., cross entropy). During the tuning process, we prune each $\widetilde{S}_i^*$ in training set using a tuning similarity threshold $\tau_{tune}$ , based on the intermediate state of the current $\widetilde{H}_{n_{\widetilde{S}_i^*}}$ , denoted as
+
+$$
+\hat {\tilde {S}} _ {i} ^ {*} = \left\{(i, j) \in \tilde {S} _ {i} ^ {*} | s i m \left(\tilde {H} _ {n _ {\tilde {S} _ {i} ^ {*}}} [ i ], \tilde {H} _ {n _ {\tilde {S} _ {i} ^ {*}}} [ j ]\right) > \tau_ {t u n e} \right\}. \tag {15}
+$$
+
+After the tuning process, during the evaluation phase, we add the tuned prompt to different biased nodes of a biased test graph. Subsequently, we obtain the classification result using the frozen pretrained model $f$ and the projection head $\theta$ . We clearly illustrate our hybrid multi-defense prompt tuning workflow in Figure 4.
+
+# 4.2 INDIRECT AMPLIFICATION
+
+Inspired by (Li et al., 2022b), given the contaminated local structure but consistent global feature distribution in the downstream task, we commence by training a multi-layer perceptron (MLP) devoid of structural information with few-shot training samples. Subsequently, the trained MLP is employed to generate pseudo-labels for subgraphs. Through a comparison of softmax scores, we identify the most confident predictions for each class and incorporate them into a new label set $V_{psu}$ . Compute cross-entropy loss with $V_{psu}$ to tune prompts while freezing the pre-trained model. This method applies to any prompt template. By reducing bias focus and improving unbiased understanding, it effectively alleviates the interference of irrelevant information during prompt tuning.
+
+# 4.3 THEORETICAL ANALYSIS
+
+We are inspired by the theory of GPF (Fang et al., 2024) to prove the existence of the robust prompt we proposed under specific conditions.
+
+Theorem 1. Given a pre-trained GNN model $f$ and an unbiased input graph $\mathcal{G} = (A, X)$ . An attack yields a biased graph structure $\widetilde{A}$ , where $\widetilde{A} = A + C \circ S$ ( $C = 11^T - I - 2A$ , and $S_{ij} = S_{ji} = 1$ means the edge between nodes $u$ and $v$ is modified). Taking $f(A, X)$ as the output of the model on unbiased data, there exists a hybrid multi-defense prompt $P = N \times M$ in the feature space ( $N \in \mathbb{R}^{|\mathcal{V}| \times T}$ is the prompt selection matrix, $M \in \mathbb{R}^{T \times d_{in}}$ is the prompt matrix, $T$ is the number of defense prompts) satisfying:
+
+$$
+f (\widetilde {A}, X + P) = f (A, X) \tag {16}
+$$
+
+The proof is in Appendix A.3. Thus, for biased downstream tasks, under certain assumptions, a hybrid multi prompt can help the model produce unbiased outputs on biased data.
+
+# 5 EXPERIMENTS
+
+# 5.1 EXPERIMENT SETUP
+
+This paper primarily investigates the robust tuning of prompts on biased data in downstream node tasks across various attack scenarios. Thus, we use several datasets that are the focus of most attacks, including Cora-ML(McCallum et al., 2000), citation graph (Cora, Citeseer) (Sen et al., 2008). We use a wide range of attacks for experiments. For non-adaptive attacks, we select four representative attacks of different types, including gradient-based attack (MetaAttack (Zügner & Gunnemann, 2019)), distribution-based attack (Heuristic attack (Li et al., 2022b)), heuristic-based attack (DICE (Waniek et al., 2018)), and Random attack. We attack downstream graph data used for prompt tuning with relatively large perturbation ratios, where MetaAttack is $25\%$ , while the others are $50\%$ . For convenience, it is abbreviated as M-0.25 in the Tables. For adaptive attacks, (Mujkanovic et al., 2022) proposes a unit test that includes 2,700 testable graphs. We select perturbed graphs targeting four defenses, including GCNSVD (Entezari et al., 2020), GRAND (Feng et al., 2020), GNNGuard (Zhang & Zitnik, 2020), and GCNJaccard (Wu et al., 2019), which basically cover most of the design principles of defense models. We have also conducted a general exploration on link prediction and graph classification tasks, with only the robustness-related results presented in the main text. All detailed experimental data can be found in Appendix A.4.
+
+# 5.2 PRE-TRAINING STRATEGIES AND PROMPT TUNING
+
+To better showcase the applicability of the prompt function, we select the most representative generative method GraphMAE (Hou et al., 2022) and contrastive method GraphCL (You et al., 2020) in the field of graph self-supervised learning as pre-training strategies. Additionally, we select the following widely-used prompts to explore their robustness, including GPF/GPF-plus (Fang et al., 2024), All-in-one (Sun et al., 2023a), GPPT (Sun et al., 2022), GraphPrompt (Liu et al., 2023b) and MultiGPrompt (Yu et al., 2024). GraphPrompt and MultiGPrompt require specific pre-training methods, so we follow their templates. The implementations of all prompts are available in Appendix A.5.
+
+Table 1: Performance of Different Prompts in 5-shot scenario under Non-Adaptive Attacks.
+
+
Pre-Training Strategies
Prompts
Cora
Citeseer
CoraML
Clean
M-0.25
D-0.5
R-0.5
H-0.5
Clean
M-0.25
D-0.5
R-0.5
H-0.5
Clean
M-0.25
D-0.5
R-0.5
H-0.5
GraphPrompt
57.68
34.06
36.01
42.68
35.19
67.20
40.22
34.24
34.29
31.68
67.17
41.96
36.75
44.68
44.32
MultiGPrompt
48.34
39.37
32.97
43.71
29.52
50.37
41.99
38.09
42.31
48.34
56.24
36.99
39.75
46.68
26.90
GraphCL
All-in-one
50.93
31.02
17.91
34.29
28.34
43.96
37.18
37.29
27.72
21.31
37.43
28.38
26.50
35.35
27.46
GPF
54.06
33.83
27.62
29.43
15.92
56.46
38.78
44.07
14.37
22.12
41.95
30.26
28.58
39.31
24.46
GPF-plus
66.39
36.83
30.52
42.22
26.53
66.19
45.30
38.68
31.68
14.37
71.30
35.43
38.59
30.74
26.30
GPPT
45.24
20.86
24.04
19.50
27.71
41.41
30.18
33.33
23.88
24.57
41.75
34.67
38.51
30.90
32.15
*MD-PT
49.39
48.06
40.15
44.94
44.67
54.86
53.69
48.02
43.70
54.38
67.45
52.84
50.44
55.24
59.81
*IA-PT
57.82
58.82
51.07
53.65
62.27
52.08
50.80
44.71
47.92
52.24
70.34
60.53
47.80
60.25
62.77
GraphMAE
All-in-one
44.67
29.75
30.25
35.83
29.98
67.84
55.36
40.38
44.71
39.00
45.20
32.43
13.21
24.50
28.82
GPF
66.71
38.82
33.15
48.53
39.27
73.24
53.31
41.45
41.61
29.38
61.01
15.73
20.42
10.57
16.65
GPF-plus
63.40
39.46
33.38
49.84
36.46
75.16
51.87
40.33
36.81
28.26
70.26
22.62
40.95
45.36
21.70
GPPT
67.79
43.17
47.71
42.40
35.46
61.70
46.90
49.11
43.86
50.05
71.62
41.55
48.08
54.84
41.59
*MD-PT
62.49
62.49
52.61
48.03
51.61
62.87
58.81
50.32
50.11
56.89
65.45
68.37
57.29
55.24
50.72
*IA-PT
68.93
68.30
61.90
67.30
66.62
59.72
60.63
57.26
59.40
61.22
75.90
57.85
54.32
66.41
64.65
+
+# 5.3 PROMPT TUNING UNDER NON-ADAPTIVE ATTACKS
+
+We conduct experiments in both 5-shot and 10-shot scenarios. We demonstrate the robustness performance under the 5-shot setting here. 10-shot results can be found in Appendix A.6. We denote our hybrid multi-defense prompt as $MD-PT$ and the indirect amplification prompt as $IA-PT$ . In Table 1, we can see that our prompts offer viable solutions to the potential security issues of prompts from two different perspectives. When the data is biased due to attacks, our tuning process can effectively avoid these invalid pieces of information to prevent the generation of misleading prompts. Aside from individual cases, the data in the Table also shows that the robustness of our prompts generally remains within a range of $\pm 10\%$ , unlike other prompts, which can vary by more than $40\%$ . Notably, on clean unbiased tuning data, our prompts still maintain a state-of-the-art performance in many cases, without sacrificing excessive accuracy for the sake of robustness.
+
+# 5.4 PROMPT TUNING UNDER ADAPTIVE ATTACKS
+
+We conduct experiments on adaptive poisoning attack graphs targeting classical defenses to demonstrate the versatility of our prompt tuning process. We still present the 5-shot results, while the 10-shot results can be found in Appendix A.7. In Table 2, it can be seen that the defense capability of MD-PT appears slightly inferior to that of IA-PT when facing more targeted attacks. This is understandable, "as directly ignoring a problem is often easier than dealing with more challenging issues". However, our two strategies still remain highly competitive compared to other prompts.
+
+Table 2: Performance of Different Prompts in 5-shot scenario under Adaptive Attacks.
+
+
Pre-Training Strategies
Prompts
CoraML
Citeseer
GCNSVD
GRAND
GNNGuard
GCNJaccard
GCNSVD
GRAND
GNNGuard
GCNJaccard
GraphPrompt
47.66
35.24
37.64
41.90
48.72
34.99
40.71
38.25
MultiGPrompt
24.22
30.20
15.56
14.97
25.16
25.96
31.41
33.55
GraphCL
ProG
37.32
31.02
52.78
32.38
23.93
30.56
33.92
31.14
GPF
30.88
23.08
27.39
35.42
29.59
21.85
18.43
25.53
GPF-plus
52.29
28.93
41.41
38.37
24.95
21.85
24.95
18.38
GPPT
35.69
26.53
40.14
40.45
43.96
30.88
32.05
43.48
*MD-PT
47.85
45.54
49.67
41.35
51.60
51.60
51.01
53.90
*IA-PT
61.27
58.73
53.83
46.08
59.35
57.05
62.61
57.10
GraphMAE
ProG
17.05
23.22
27.62
23.45
34.35
27.14
39.05
44.34
GPF
48.56
25.12
50.84
41.00
45.83
31.46
50.37
44.98
GPF-plus
47.21
30.75
48.48
46.26
45.57
35.84
50.75
46.37
GPPT
29.52
20.32
32.06
29.80
44.76
33.01
46.85
36.43
*MD-PT
49.17
45.60
54.60
49.24
57.26
54.70
53.37
53.47
*IA-PT
66.17
63.54
63.17
63.49
65.54
64.21
64.42
65.60
+
+# 5.5 ABLATION STUDY
+
+Since IA-PT is nested within any prompt, we primarily discuss MD-PT. We compare MD-PT with six prompt variants: "w/o $p_d$ " is a variant that does not use degree prompt. "w/o $p_s$ " is a variant that does not use similarity prompt. "w/o $p_o$ " is a variant that does not use prompt for out-of-distribution nodes. "w/o $\mathcal{L}_{kl}$ " indicates that no distribution alignment is used during the tuning process. "w/o $\mathcal{L}_o$ " signifies that multi-prompt constraints are not employed. "w/o $\mathcal{L}_s$ " indicates that feature smoother is not used. Table 3 illustrates the key modules of the robust prompt tuning phase across different biased environments. Additionally, we have implemented a transfer attack experiment in Appendix A.10 to validate the scalability and transferability of GPromptShield.
+
+Table 3: Performance of Hybrid Multi-Defense Prompt by Ablating Different Modules.
+
+
Ablation Variants
Cora 5-shot
CiteSeer 5-shot
Cora 10-shot
CiteSeer 10-shot
Meta 0.25
DICE 0.5
Meta 0.25
DICE 0.5
Meta 0.25
DICE 0.5
Meta 0.25
DICE 0.5
MD-PT
60.12%
54.55
64.20%
52.39
71.02%
62.30%
67.04%
55.35
MD-PT w/o \( p_d \)
62.31%
53.05%
63.68%
51.76%
67.87%
61.36%
66.67%
56.31%
MD-PT w/o \( p_s \)
58.46%
52.02%
58.97%
53.21%
69.92%
59.48%
61.57%
54.39%
MD-PT w/o \( p_o \)
59.32%
55.37%
60.42%
51.98%
69.09%
60.99%
65.69%
55.18%
MD-PT w/o \( \mathcal{L}_{kl} \)
59.86%
55.28%
60.42%
52.14%
69.83%
60.81%
64.42%
54.23%
MD-PT w/o \( \mathcal{L}_o \)
59.59%
51.20%
59.94%
50.00%
69.23%
58.33%
65.64%
55.01%
MD-PT w/o \( \mathcal{L}_s \)
58.32%
56.46%
60.84%
51.50%
69.87%
60.72%
66.34%
54.58%
+
+# 6 CONCLUSION
+
+In this paper, we shift the primary focus of graph prompts from compatibility to vulnerability issues in adversarial attack scenarios. We design a highly extensible shield defense system for the prompts. Specifically, we design a hybrid multi-defense prompt based on the principle of direct handling and an adaptable tuning strategy based on the principle of indirect amplification. We theoretically prove the feasibility of our strategies and achieve outstanding robustness performance in both adaptive and non-adaptive attack scenarios.
+
+# 7 REPRODUCIBILITY STATEMENT
+
+The code for this paper is provided at https://github.com/GTLSysGraph/GPromptShield. All detailed experimental data can be found in Appendix A.4. The implementations of all baselines are available in Appendix A.5. The explanations of the theoretical part in the paper can be found in Appendix A.3.
+
+# 8 ETHIC STATEMENT
+
+The robustness of graph prompts in the face of adversarial attacks is a key research focus. In this work, we have opened up a new perspective on graph prompt tuning focused on robustness, we shift the primary focus of graph prompts from compatibility to vulnerability issues in adversarial attack scenarios. We design a shield defense system for prompts, including direct handling with a hybrid multi-defense prompt and indirect amplification through a robust tuning strategy. Our work is aimed at improving the security of graph-based applications. Overall, we believe our research can positively contribute to the field without introducing new security risks.
+
+# 9 ACKNOWLEDGEMENT
+
+The research work supported by National Key Research and Development Program (Grant No.2023YFB4502305), the Beijing Natural Science Foundation (4232036).
+
+# REFERENCES
+
+Heng Chang, Yu Rong, Tingyang Xu, Yatao Bian, Shiji Zhou, Xin Wang, Junzhou Huang, and Wenwu Zhu. Not all low-pass filters are robust in graph convolutional networks. Advances in Neural Information Processing Systems, 34:25058-25071, 2021.
+Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
+Negin Entezari, Saba A Al-Sayouri, Amirali Darvishzadeh, and Evangelos E Papalexakis. All you need is low (rank) defending against adversarial attacks on graphs. In Proceedings of the 13th International Conference on Web Search and Data Mining, pp. 169-177, 2020.
+Taoran Fang, Yunchao Zhang, Yang Yang, Chunping Wang, and Lei Chen. Universal prompt tuning for graph neural networks. Advances in Neural Information Processing Systems, 36, 2024.
+Wenzheng Feng, Jie Zhang, Yuxiao Dong, Yu Han, Huanbo Luan, Qian Xu, Qiang Yang, Evgeny Kharlamov, and Jie Tang. Graph random neural networks for semi-supervised learning on graphs. Advances in neural information processing systems, 33:22092-22103, 2020.
+Lukas Gosch, Simon Geisler, Daniel Sturm, Bertrand Charpentier, Daniel Zügner, and Stephan Gunnemann. Adversarial training for graph neural networks: Pitfalls, solutions, and new directions. Advances in Neural Information Processing Systems, 36, 2024.
+Kai Greshake, Sahar Abdelnabi, Shailesh Mishra, Christoph Endres, Thorsten Holz, and Mario Fritz. Not what you've signed up for: Compromising real-world lvm-integrated applications with indirect prompt injection. In Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security, pp. 79-90, 2023.
+Kaveh Hassani and Amir Hosein Khasahmadi. Contrastive multi-view representation learning on graphs. In International conference on machine learning, pp. 4116-4126. PMLR, 2020.
+Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dólár, and Ross Girshick. Masked autoencoders are scalable vision learners. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 16000-16009, 2022.
+
+Zhenyu Hou, Xiao Liu, Yukuo Cen, Yuxiao Dong, Hongxia Yang, Chunjie Wang, and Jie Tang. Graphmae: Self-supervised masked graph autoencoders. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pp. 594-604, 2022.
+Zhenyu Hou, Yufei He, Yukuo Cen, Xiao Liu, Yuxiao Dong, Evgeny Kharlamov, and Jie Tang. Graphmae2: A decoding-enhanced masked self-supervised graph learner. arXiv preprint arXiv:2304.04779, 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.
+Nils Krieger and Petra Mutzel. Subgraph matching kernels for attributed graphs. arXiv preprint arXiv:1206.6483, 2012.
+Jintang Li, Ruofan Wu, Wangbin Sun, Liang Chen, Sheng Tian, Liang Zhu, Changhua Meng, Zibin Zheng, and Weiqiang Wang. Maskgae: masked graph modeling meets graph autoencoders. arXiv preprint arXiv:2205.10053, 2022a.
+Kuan Li, YiWen Chen, Yang Liu, Jin Wang, Qing He, Minhao Cheng, and Xiang Ao. Boosting the adversarial robustness of graph neural networks: An ood perspective. In The Twelfth International Conference on Learning Representations.
+Kuan Li, Yang Liu, Xiang Ao, and Qing He. Revisiting graph adversarial attack and defense from a data distribution perspective. In The Eleventh International Conference on Learning Representations, 2022b.
+Ralph Linsker. Self-organization in a perceptual network. Computer, 21(3):105-117, 1988.
+Pengfei Liu, Weizhe Yuan, Jinlan Fu, Zhengbao Jiang, Hiroaki Hayashi, and Graham Neubig. Pretrain, prompt, and predict: A systematic survey of prompting methods in natural language processing. ACM Computing Surveys, 55(9):1-35, 2023a.
+Yuxi Liu, Lianghao Xia, and Chao Huang. Selfgnn: Self-supervised graph neural networks for sequential recommendation. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 1609-1618, 2024.
+Zemin Liu, Xingtong Yu, Yuan Fang, and Xinming Zhang. Graphprompt: Unifying pre-training and downstream tasks for graph neural networks. In Proceedings of the ACM Web Conference 2023, pp. 417-428, 2023b.
+Andrew Kachites McCallum, Kamal Nigam, Jason Rennie, and Kristie Seymore. Automating the construction of internet portals with machine learning. Information Retrieval, 3:127-163, 2000.
+Moran Mizrahi, Guy Kaplan, Dan Malkin, Rotem Dror, Dafna Shahaf, and Gabriel Stanovsky. State of what art? a call for multi-prompt llm evaluation. Transactions of the Association for Computational Linguistics, 12:933-949, 2024.
+Felix Mujkanovic, Simon Geisler, Stephan Gunnemann, and Aleksandar Bojchevski. Are defenses for graph neural networks robust? Advances in Neural Information Processing Systems, 35: 8954-8968, 2022.
+Galileo Namata, Ben London, Lise Getoor, Bert Huang, and U Edu. Query-driven active surveying for collective classification. In 10th international workshop on mining and learning with graphs, volume 8, pp. 1, 2012.
+Hongbin Pei, Bingzhe Wei, Kevin Chen-Chuan Chang, Yu Lei, and Bo Yang. Geom-gcn: Geometric graph convolutional networks. arXiv preprint arXiv:2002.05287, 2020.
+Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29(3):93-93, 2008.
+Zezhi Shao, Zhao Zhang, Wei Wei, Fei Wang, Yongjun Xu, Xin Cao, and Christian S Jensen. Decoupled dynamic spatial-temporal graph neural network for traffic forecasting. arXiv preprint arXiv:2206.09112, 2022.
+
+Sonish Sivarajkumar, Mark Kelley, Alyssa Samolyk-Mazzanti, Shyam Visweswaran, and Yanshan Wang. An empirical evaluation of prompting strategies for large language models in zero-shot clinical natural language processing: algorithm development and validation study. *JMIR Medical Informatics*, 12:e55318, 2024.
+Mingchen Sun, Kaixiong Zhou, Xin He, Ying Wang, and Xin Wang. Gppt: Graph pre-training and prompt tuning to generalize graph neural networks. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pp. 1717-1727, 2022.
+Xiangguo Sun, Hong Cheng, Jia Li, Bo Liu, and Jihong Guan. All in one: Multi-task prompting for graph neural networks.(2023). 2023a.
+Xiangguo Sun, Hong Cheng, Bo Liu, Jia Li, Hongyang Chen, Guandong Xu, and Hongzhi Yin. Self-supervised hypergraph representation learning for sociological analysis. IEEE Transactions on Knowledge and Data Engineering, 35(11):11860-11871, 2023b.
+Qiaoyu Tan, Ninghao Liu, Xiao Huang, Soo-Hyun Choi, Li Li, Rui Chen, and Xia Hu. S2gae: Self-supervised graph autoencoders are generalizable learners with graph masking. In Proceedings of the Sixteenth ACM International Conference on Web Search and Data Mining, pp. 787-795, 2023.
+A Vaswani. Attention is all you need. Advances in Neural Information Processing Systems, 2017.
+Petar Velickovic, William Fedus, William L Hamilton, Pietro Liò, Yoshua Bengio, and R Devon Hjelm. Deep graph infomax. *ICLR (Poster)*, 2(3):4, 2019.
+Song Wang, Yushun Dong, Xiao Huang, Chen Chen, and Jundong Li. Faith: Few-shot graph classification with hierarchical task graphs. arXiv preprint arXiv:2205.02435, 2022.
+Marcin Waniek, Tomasz P Michalak, Michael J Wooldridge, and Talal Rahwan. Hiding individuals and communities in a social network. Nature Human Behaviour, 2(2):139-147, 2018.
+Huijun Wu, Chen Wang, Yuriy Tyshetskiy, Andrew Docherty, Kai Lu, and Liming Zhu. Adversarial examples on graph data: Deep insights into attack and defense. arXiv preprint arXiv:1903.01610, 2019.
+Pinar Yanardag and SVN Vishwanathan. Deep graph kernels. In Proceedings of the 21th ACM SIGKDD international conference on knowledge discovery and data mining, pp. 1365-1374, 2015a.
+Pinar Yanardag and SVN Vishwanathan. Deep graph kernels. In Proceedings of the 21th ACM SIGKDD international conference on knowledge discovery and data mining, pp. 1365-1374, 2015b.
+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.
+Xingtong Yu, Chang Zhou, Yuan Fang, and Xinming Zhang. Multigprompt for multi-task pretraining and prompting on graphs. In Proceedings of the ACM on Web Conference 2024, pp. 515-526, 2024.
+Xiang Zhang and Marinka Zitnik. Gnnguard: Defending graph neural networks against adversarial attacks. Advances in neural information processing systems, 33:9263-9275, 2020.
+Kaijie Zhu, Jindong Wang, Jiaheng Zhou, Zichen Wang, Hao Chen, Yidong Wang, Linyi Yang, Wei Ye, Yue Zhang, Neil Zhenqiang Gong, et al. Promptbench: Towards evaluating the robustness of large language models on adversarial prompts. arXiv preprint arXiv:2306.04528, 2023.
+Yanqiao Zhu, Yichen Xu, Feng Yu, Qiang Liu, Shu Wu, and Liang Wang. Deep graph contrastive representation learning. arXiv preprint arXiv:2006.04131, 2020.
+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.
+
+Chenyi Zi, Haihong Zhao, Xiangguo Sun, Yiqing Lin, Hong Cheng, and Jia Li. Prog: A graph prompt learning benchmark. arXiv preprint arXiv:2406.05346, 2024.
+Daniel Züigner, Amir Akbarnejad, and Stephan Gunnemann. Adversarial attacks on neural networks for graph data. In Proceedings of the 24th ACM SIGKDD international conference on knowledge discovery & data mining, pp. 2847-2856, 2018.
+Daniel Zügner and Stephan Gunnemann. Adversarial attacks on graph neural networks via meta learning. In International Conference on Learning Representations, 2019. URL https:// openreview.net/forum?id=Bylnx209YX.
+
+# A APPENDIX
+
+# A.1 GRAPH PRE-TRAINING STRATEGIES
+
+The pre-training strategy aims to extract knowledge from the vast amount of data in the real world to learn a general model, thereby reducing the costs associated with task-specific training. Most graph pre-training strategies exist in a self-supervised form and can be broadly divided into contrastive strategies and generative strategies. Contrastive strategies train an encoder by maximizing the mutual information between different graph views. The representative GraphCL (You et al., 2020) minimizes the differences in graph representations from different views of the same graph. DGI (Velickovic et al., 2019) follows the InfoMax principle (Linsker, 1988) by learning node representations through local-global mutual information maximization. GRACE (Zhu et al., 2020) proposes edge removal and feature masking augmentation, GCA (Zhu et al., 2021) adopts probabilistic adaptive augmentation, while MVGRL (Hassani & Khasahmadi, 2020) employs diffusion graph as augmentation view. Generative strategies use the reconstruction of input data as a pretext, significantly lowering training costs. Currently, a popular paradigm is based on masking strategies inspired by BERT (Devlin et al., 2018) in the language domain and MAE (He et al., 2022) in the image domain. GraphMAE (Hou et al., 2022), as a representative example, reconstructs features using masking strategies and designs scaled cosine error. GraphMAE2 (Hou et al., 2023) further extends this idea by designing the strategies of multi-view random re-mask decoding and latent representation prediction for feature reconstruction, aiming to reduce excessive reliance on feature discriminability. S2GAE (Tan et al., 2023) proposes direction-aware graph masking and cross-correlation decoder. MaskGAE (Li et al., 2022a) adopts edge-wise and path-wise random masking, also introduces a degree decoder to alleviate the problem of structural information overfitting. Pre-training strategies have been studied in great depth, with a wide range of pretext tasks extracting knowledge from multiple aspects.
+
+# A.2 ADAPTIVE ROBUSTNESS FROM THE PERSPECTIVE OF OUT-OF-DISTRIBUTION (OOD) GENERALIZATION.
+
+Adaptive attacks are a proposed new robustness evaluation standard and are a type of white-box attack. They indicate that, with a thorough understanding of the defense model, attackers can bypass defenses using corresponding strategies. Thus, existing defenses are not as robust as they were evaluated in their papers. These defenses are vulnerable to adaptive attacks because most of them are designed based on some specific properties that can be used to differentiate adversarial edges from original edges. Adversarial modifications on graphs often violate some intrinsic properties shared by the real-world graphs (e.g., increasing heterophily (Zügner & Gunnemann, 2019) and focusing on the high-frequency component (Chang et al., 2021)). The adversary can easily defeat the defenses by imposing constraints on the same properties during the attack. Therefore, the key to enhancing adaptive robustness is not relying on artificially defined properties. To overcome this dependence, Li et al. proposed a new approach from the out-of-distribution perspective, arguing that adversarial edges generated through attacks are inherently out-of-distribution compared to the original edges. Thus, by modeling the entire out-of-distribution problem, an integrated out-of-distribution detector is trained using adversarially generated edges to detect and remove perturbations.
+
+# A.3 PROOF FOR THEOREM 1
+
+Proof. Consider a pre-trained graph neural network (GNN) model $f$ and an unbiased input graph $\mathcal{G} = (A, X)$ . An adversarial attack can induce a biased graph structure $\widetilde{A}$ . Specifically, $\widetilde{A}$ is formulated as $\widetilde{A} = A + C \circ S$ , where $C = 11^T - I - 2A$ . When $S_{ij} = S_{ji} = 1$ , the edge linking nodes $u$ and $v$ is either added or removed. Based on this formulation, we can simplify $\widetilde{A}$ as $\widetilde{A} = A + \Delta A$ . Taking $f(A, X)$ as the output of the model on unbiased data, there exists a prompt $P$ that can be incorporated into the feature space, ensuring the satisfaction of the following equation:
+
+$$
+f (\widetilde {A}, X + P) = f (A, X) \tag {17}
+$$
+
+We adopt the assumptions from GPF (Fang et al., 2024), the pre-trained GNN model $f$ can be represented as:
+
+$$
+f (A, X) = H = (A + (1 + \epsilon) I) X W \tag {18}
+$$
+
+We substitute $f(\tilde{A}, X + P)$ to obtain:
+
+$$
+\begin{array}{l} f (\widetilde {A}, X + P) = (A + \Delta A + (1 + \epsilon) I) (X + P) W \\ = (A + \Delta A + (1 + \epsilon) I) X W + (A + \Delta A + (1 + \epsilon) I) P W \tag {19} \\ = (A + (1 + \epsilon) I) X W + \Delta A X W + (A + (1 + \epsilon) I) P W + \Delta A P W \\ = H + \Delta A X W + (A + (1 + \epsilon) I) P W + \Delta A P W \\ \end{array}
+$$
+
+Therefore, to satisfy $f(\tilde{A}, X + P) = f(A, X)$ , we need to solve the equation:
+
+$$
+H + \Delta A X W + (A + (1 + \epsilon) I) P W + \Delta A P W = H \tag {20}
+$$
+
+In our hybrid multi-defense prompt, assuming there are $T$ defense prompts, then $P$ can be represented as $N \times M$ , where $N \in \mathbb{R}^{|\mathcal{V}| \times T}$ is the prompt selection matrix and $M \in \mathbb{R}^{T \times d_{in}}$ is the prompt matrix. Therefore, by replacing $P$ with $N$ and $M$ in the equation, the problem is transformed into solving for $M$ . To solve the equation
+
+$$
+H + \Delta A X W + (A + (1 + \epsilon) I) N M W + \Delta A N M W = H \tag {21}
+$$
+
+Subtracting $H$ from both sides of this equation, we get
+
+$$
+\Delta A X W + (A + (1 + \epsilon) I) N M W + \Delta A N M W = 0 \tag {22}
+$$
+
+By factoring out $M$ from the terms involving $M$ , we have
+
+$$
+\Delta A X W + ((A + (1 + \epsilon) I) + \Delta A) N M W = 0 \tag {23}
+$$
+
+Let $B = (A + (1 + \epsilon)I) + \Delta A$ , then the equation becomes
+
+$$
+\Delta A X W + B N M W = 0 \tag {24}
+$$
+
+Isolating the term with $M$ by subtracting $\Delta AXW$ from both sides, we obtain
+
+$$
+B N M W = - \Delta A X W \tag {25}
+$$
+
+Assuming that $BN$ is invertible (if $BN$ is not invertible, the solution may not exist in the general sense or may have infinitely many solutions depending on the properties of the matrices), we multiply both sides of the equation on the left by $(BN)^{-1}$ , resulting in
+
+$$
+(B N) ^ {- 1} B N M W = (B N) ^ {- 1} (- \Delta A X W) \tag {26}
+$$
+
+Since $(BN)^{-1}BN = I$ (the identity matrix), the equation simplifies to
+
+$$
+M W = - (B N) ^ {- 1} \Delta A X W \tag {27}
+$$
+
+# Case 1: $W$ is invertible
+
+we multiply both sides of the equation on the right by $W^{-1}$ , so
+
+$$
+M W W ^ {- 1} = - (B N) ^ {- 1} \Delta A X W W ^ {- 1} \tag {28}
+$$
+
+Since $WW^{-1} = I$ , we get the solution for $M$ as
+
+$$
+M = - (B N) ^ {- 1} \Delta A X \tag {29}
+$$
+
+Substitute $B = (A + (1 + \epsilon)I) + \Delta A$ , the solution for the matrix $M$ is
+
+$$
+M = - \left(\left(A + (1 + \epsilon) I\right) + \Delta A\right) N) ^ {- 1} \Delta A X \tag {30}
+$$
+
+# Case 2: $W$ is non-invertible
+
+If $W$ is non-invertible, we can solve the problem by calculating the pseudoinverse of $W$ . In this case, we cannot multiply by $W^{-1}$ directly. We can use Singular Value Decomposition (SVD). Let $W = U\Sigma V^T$ , where $U$ is an $m \times r$ orthogonal matrix ( $m$ is the number of rows of $W$ , $r$ is the rank of $W$ ), satisfying $U^T U = I_r$ ( $I_r$ is the $r$ -order identity matrix). $\Sigma$ is an $r \times r$ diagonal matrix, and its diagonal elements $\sigma_i$ ( $i = 1, \dots, r$ ) are the non-zero singular values of $W$ , that is, $\Sigma = \mathrm{diag}(\sigma_1, \dots, \sigma_r)$ . $V$ is an $n \times r$ orthogonal matrix ( $n$ is the number of columns of $W$ ), satisfying $V^T V = I_r$ .
+
+The pseudoinverse of $W$ , $W^{+}$ , can be expressed as $W^{+} = V\Sigma^{+}U^{T}$ , where $\Sigma^{+}$ is the pseudoinverse of $\Sigma$ , also an $r \times r$ diagonal matrix, and its diagonal elements are $\frac{1}{\sigma_i} (i = 1,\dots ,r)$ .
+
+Multiply both sides of the equation $MW = -(BN)^{-1}\Delta AXW$ by $W^{+}$ on the right-hand side, and we can get:
+
+$$
+M W W ^ {+} = - (B N) ^ {- 1} \Delta A X W W ^ {+}
+$$
+
+$$
+M \left(W W ^ {+}\right) = - (B N) ^ {- 1} \Delta A X \left(W W ^ {+}\right) \tag {31}
+$$
+
+$WW^{+}$ is a projection matrix onto the column space of $W$ . If $W$ is a full column-rank matrix, $WW^{+}$ is the identity matrix in the column space of $W$ . Even if $W$ does not have full column-rank, $WW^{+}$ can still project vectors onto the column space of $W$ .
+
+# Discussion on the solution of $M$
+
+- If $W$ is a full column-rank matrix, at this time $WW^{+}$ is an invertible matrix (it is the identity matrix in the dimension of the column space of $W$ ). Multiply both sides of the equation on the left by $(WW^{+})^{-1}$ , and we can get $M = -(BN)^{-1}\Delta AX$ .
+- If $W$ is not a full column-rank matrix, let $C = -(BN)^{-1}\Delta AX$ . Although we cannot directly obtain a unique solution for $M$ as in the case of full column-rank, $M$ can still take multiple values in the complementary space of the column space of $W$ , that is, the solution of $M$ is not unique. However, if there are other conditions, such as restrictions on the norm of $M$ , constraints on some elements of $M$ , etc., we can further determine $M$ by combining these conditions.
+
+Therefore, after finding the inverse-like matrix of $W$ (pseudoinverse in the general case), under certain conditions (such as $W$ having full column-rank), we can obtain a unique solution for $M$ ; in general cases, we can obtain the constraints of $M$ in the column space of $W$ , and further solve for $M$ by combining other conditions. This work does not conduct a detailed analysis of some non-ideal situations. Of course, we hope that future work can provide more rigorous proofs and derivations for robust prompts in different biased environments.
+
+# A.4 DATASETS AND ATTACKS
+
+# A.4.1 DATASETS
+
+For the attacked data, following the settings in Nettack (Zügner et al., 2018), we only consider the largest connected component (LCC). The details of the datasets are presented in Table 4.
+
+For node classification and link prediction tasks, we select homophilic datasets (Cora, CiteSeer, Pubmed) (Sen et al., 2008; Namata et al., 2012), heterophilic datasets (Wisconsin) (Pei et al., 2020) and explore the prompts on large graph (ogbn-arxiv) (Hu et al., 2020). We conduct experiments under 5-shot and 10-shot settings, where the link prediction task includes 5,000 positive edges and
+
+Table 4: Details of the largest connected component (LCC) for each dataset.
+
+
Datasets
NLCC
ELCC
Features
Classes
CiteSeer
2110
3668
3703
6
Cora
2485
5069
1433
7
Cora-ML
2810
7981
2879
7
+
+5,000 negative edges. The details of the datasets are presented in Table 5. We present the performance of the prompt functions on node classification and link prediction tasks for these datasets in Appendix A.8.
+
+Table 5: Statistics of all datasets for node classification and link prediction tasks.
+
+
Datasets
Graphs
Nodes
Edges
Features
Classes
Task
Catagory
Cora
1
2708
5429
1433
7
N/L
Homophilic
Pubmed
1
19717
88648
2879
3
N/L
Homophilic
CiteSeer
1
3327
9104
3703
6
N/L
Homophilic
Wisconsin
1
251
515
1703
5
N/L
Heterophilic
ogbn-arxiv
1
169343
1166243
128
40
N/L
Homophilic & Large scale
+
+For the graph classification task, in order to be more comprehensive, we chose the molecular dataset MUTAG (Kriege & Mutzel, 2012), the social network dataset COLLAB (Yanardag & Vishwanathan, 2015a), the protein dataset PROTEINS (Wang et al., 2022), and the social network dataset IMDB-BINARY (Yanardag & Vishwanathan, 2015b). We also conduct experiments under 5-shot and 10-shot settings. The details of the datasets are presented in Table 6. We present the performance of the prompt functions on graph classification tasks for these datasets in Appendix A.9.
+
+Table 6: Statistics of all datasets for graph classification tasks.
+
+
Datasets
Graphs
Avg. Nodes
Avg. Edges
Features
Classes
Task
Catagory
MUTAG
188
17.9
19.8
7
2
G
small molecule
COLLAB
5000
74.5
2457.8
0
3
G
social network
PROTEINS
1113
39.1
72.8
3
2
G
proteins
IMDB-BINARY
1000
19.8
96.53
0
2
G
social network
+
+The data recording format for all node classification, link prediction, and graph tasks datasets follows the approach used in (Zi et al., 2024).
+
+Through generalization experiments on these datasets, we find that our auxiliary robust system does not make an excessive sacrifice of accuracy in favor of robustness. In fact, it maintains strong competitiveness on many task datasets, which is a pleasant surprise during the expansion of the experiments. We speculate that the original datasets might already contain some inherent noise, and our robustness enhancement tool further purifies the data during the training process.
+
+# A.4.2 UNIT TEST AND ATTACKS
+
+To provide a more comprehensive evaluation of robustness, (Mujkanovic et al., 2022) presents an interesting research point: almost all defenses are evaluated against non-adaptive attacks, leading to overly optimistic robustness estimates. Therefore, they categorize 49 defense methods and select the most representative method from each category to design targeted adaptive attack methods. The adversarial graphs generated by these attacks can be bundled together to test other defenses and can be considered a minimal standard for evaluating the adaptive robustness of defense models. In the unit test, the datasets are centered around Citeseer and Cora-ML. for each representative model, there are 5 random data splits, each containing poisoning and evasion attacks. The attack budget ranges from $0\%$ to $15\%$ , resulting in approximately 2700 testable graphs in total. The unit test module used in this paper is adapted from the following repository: https://github.com/LoadingByte/are-gnn-defenses-robust
+
+The code implementation for attacking the graph using different attacks can be found at the following links.
+
+- Metattack: https://github.com/danielzuegner/gnn-meta-attack
+Heuristic attack: https://github.com/likuanppd/STRG/tree/main
+- DICE: https://github.com/DSE-MSU/DeepRobust/tree/master/examples/graph/test_dice.py
+- Random: https://github.com/DSE-MSU/DeepRobust/tree/master/examples/graph/test_random.py
+
+# A.5 BASELINES FOR PROMPT
+
+The code implementation for all prompts can be found at the following links. Additionally, ProG is a library built upon PyTorch to easily conduct single or multi-task prompting for pre-trained Graph Neural Networks (GNNs). You can easily use this library to conduct various graph workflows.
+
+- GPPT: https://github.com/MingChen-Sun/GPPT/tree/main
+- GPF/GPF-plus: https://github.com/zjunet/GPF
+- All-in-one: https://github.com/sheldonresearch/ProG/tree/zcy
+GraphPrompt: https://github.com/Starlien95/GraphPrompt
+- MultiGPrompt: https://github.com/Nashchou/MultiGPrompt
+- ProG: https://github.com/sheldonresearch/ProG
+
+# A.6 RESULTS OF FEW-SHOT NODE CLASSIFICATION UNDER NON-ADAPTIVE ATTACKS
+
+The results for 10-shot scenarios under non-adaptive attacks. Table 7 shows the robustness performance of 10-shot graph prompt tuning under different non-adaptive attacks.
+
+Table 7: Performance of Different Prompts in 10-shot scenario under Non-Adaptive Attacks.
+
+
Pre-Training Strategies
Prompts
Clean
M-0.25
Cora D-0.5
R-0.5
H-0.5
Clean
M-0.25
Citeseer D-0.5
R-0.5
H-0.5
Clean
CoraML
M-0.25
D-0.5
R-0.5
H-0.5
GraphPrompt
72.15
40.48
39.83
52.30
39.79
73.44
49.21
30.84
41.73
32.57
64.80
42.21
39.01
41.08
39.78
MultiGPrompt
52.53
46.88
41.08
49.22
33.44
50.24
47.59
38.16
42.84
45.47
48.99
37.31
33.86
46.76
24.98
GraphCL
All-in-one
69.78
45.26
14.03
11.64
18.95
67.05
42.17
34.04
45.75
17.40
49.68
27.09
19.10
32.08
24.21
GPF
60.99
35.65
35.05
39.37
29.85
73.66
41.63
42.17
37.40
21.90
44.48
15.98
30.45
34.71
24.49
GPF-plus
70.61
41.63
37.21
51.01
36.89
69.16
42.38
42.60
45.58
26.02
65.69
34.83
36.01
24.70
31.63
GPPT
40.71
28.98
30.86
29.44
32.75
51.84
40.38
32.95
32.63
32.25
43.51
37.10
33.17
35.20
29.40
*MD-PT
53.73
47.01
41.77
44.11
47.84
64.50
58.81
55.28
56.42
64.28
71.29
56.12
62.08
55.31
52.76
*IA-PT
65.96
63.52
55.34
57.96
62.70
62.66
62.82
52.20
57.45
56.31
79.08
70.52
64.64
65.13
74.74
GraphMAE
All-in-one
50.55
35.46
30.04
36.89
32.24
69.97
59.73
43.41
50.73
42.28
46.19
20.48
28.75
21.57
21.98
GPF
71.62
43.56
44.43
55.84
44.39
77.07
59.24
45.80
45.20
27.26
68.17
34.06
29.32
22.95
29.24
GPF-plus
69.09
44.48
41.49
55.66
40.06
76.59
56.48
40.49
38.75
29.76
71.21
21.82
36.86
11.68
24.66
GPPT
77.69
45.26
58.05
63.72
47.65
66.2
57.51
53.06
57.02
54.42
68.57
37.96
44.40
47.28
32.20
*MD-PT
72.22
69.41
59.34
64.40
58.23
63.96
64.99
55.45
58.16
61.90
78.26
67.72
62.49
65.17
50.16
*IA-PT
73.05
73.32
65.23
71.16
71.11
67.43
64.66
59.84
62.49
59.30
72.42
71.37
67.40
72.87
69.95
+
+# A.7 RESULTS OF FEW-SHOT NODE CLASSIFICATION UNDER ADAPTIVE ATTACKS
+
+The results for 10-shot scenarios under adaptive attacks. Table 8 shows the robustness performance of 10-shot graph prompt tuning under different adaptive attacks. On the CoraML dataset, the performance of most prompts vary widely. Similarly, on the Citeseer dataset, there are significant differences across various prompts. As can be seen from the Table, MD-PT and IA-PT strategies perform more prominently than other prompt functions, demonstrating their effectiveness in enhancing the robustness of prompt tuning against adaptive attacks.
+
+# A.8 PERFORMANCE OF HYBRID MULTI-DEFENSE PROMPT ON NODE CLASSIFICATION AND LINK PREDICTION TASKS
+
+The results for 5-shot scenarios under Node Classification and Link Prediction Tasks. Table 9 shows the performance of 5-shot graph prompt tuning under different node classification and link prediction tasks.
+
+Table 8: Performance of Different Prompts in 10-shot scenario under Adaptive Attacks.
+
+
Pre-Training Strategies
Prompts
CoraML
Citeseer
GCNSVD
GRAND
GNNGuard
GCNJaccard
GCNSVD
GRAND
GNNGuard
GCNJaccard
GraphPrompt
53.77
38.78
51.01
35.60
55.99
32.25
45.64
53.77
MultiGPrompt
29.99
32.38
19.09
13.25
31.49
25.04
34.20
33.39
GraphCL
All-in-one
40.48
25.44
36.71
21.90
41.25
33.06
37.13
42.33
GPF
40.80
43.79
16.65
26.91
38.59
37.78
18.92
26.29
GPF-plus
38.96
36.02
45.77
40.39
45.47
22.49
53.17
22.49
GPPT
36.11
30.68
35.33
36.52
48.83
41.03
44.23
39.89
*MD-PT
41.45
50.25
44.62
45.72
58.37
57.72
63.14
57.72
*IA-PT
63.25
57.91
57.91
60.81
65.96
66.61
66.07
66.61
GraphMAE
All-in-one
20.47
24.24
30.73
23.92
43.20
28.40
44.61
45.15
GPF
53.59
37.03
54.83
44.25
62.82
34.15
54.96
56.75
GPF-plus
53.96
38.22
53.77
45.35
58.43
33.55
51.33
53.93
GPPT
50.74
31.51
34.82
36.52
63.69
31.49
56.42
47.48
*MD-PT
44.20
43.88
45.77
48.34
60.38
60.25
60.76
63.52
*IA-PT
68.12
65.92
67.11
67.99
67.86
66.23
64.82
65.91
+
+Table 9: Performance of Hybrid Multi-Defense Prompt and Mainstream Prompts on 5-shot Node Classification and Link Prediction Tasks.
+
+
Datasets Methods
Cora
Citeseer
Pubmed
Wisconsin
ogbn-arxiv
Node
Link
Node
Link
Node
Link
Node
Link
Node
Link
Pre-train & Fine-tune
42.73
68.79
52.92
55.14
51.07
54.04
20.95
45.15
10.92
53.34
GPPT
35.96
65.13
49.79
56.56
55.42
43.88
16.99
77.65
6.52
73.52
All-in-one
50.06
74.68
51.11
60.15
44.76
64.99
26.21
78.85
4.54
80.34
Gprompt
68.03
67.25
75.25
58.83
59.93
62.57
44.92
61.13
21.27
53.31
GPF
64.52
58.92
52.56
57.06
57.05
62.95
35.82
39.45
15.81
49.23
GPF-plus
70.55
62.45
74.51
58.47
40.94
82.20
39.45
45.85
22.40
72.43
*MD-PT
71.76
69.95
75.38
78.24
64.00
64.75
50.49
52.49
18.92
65.42
+
+The results for 10-shot scenarios under Node Classification and Link Prediction Tasks. Table 10 shows the performance of 10-shot graph prompt tuning under different node classification and link prediction tasks.
+
+Table 10: Performance of Hybrid Multi-Defense Prompt and Mainstream Prompts on 10-shot Node Classification and Link Prediction Tasks.
+
+
Datasets Methods
Cora
Citeseer
Pubmed
Wisconsin
ogbn-arxiv
Node
Link
Node
Link
Node
Link
Node
Link
Node
Link
Pre-train & Fine-tune
52.23
67.55
58.82
60.57
50.35
59.23
29.12
65.49
14.38
55.41
GPPT
47.77
65.47
54.09
74.48
48.91
55.35
22.43
59.13
7.74
52.86
All-in-one
65.90
77.23
53.24
65.95
49.33
74.03
41.76
82.35
5.25
80.50
Gprompt
70.81
66.45
76.46
50.46
60.10
61.58
43.96
50.43
24.31
75.55
GPF
69.93
73.35
53.82
60.37
39.26
50.08
31.72
57.75
10.36
63.03
GPF-plus
72.79
88.24
78.46
73.02
42.45
88.75
32.26
59.57
14.12
81.40
*MD-PT
73.45
74.55
75.85
77.49
62.34
62.98
35.65
54.42
20.45
68.45
+
+# A.9 PERFORMANCE OF HYBRID MULTI-DEFENSE PROMPT ON GRAPH CLASSIFICATION TASKS
+
+The results for 5-shot and 10-shot scenarios under Graph Classification Tasks. Table 11 shows the performance of graph prompt tuning under different graph classification tasks.
+
+# A.10 PERFORMANCE OF PROPOSED PROMPTS ON TRANSFER TASKS
+
+The results for Proposed Prompts and GPF/GPF-plus on Different Attack Transfer Scenarios.
+
+Table 12 shows the performance of graph prompt tuning under different attack transfer scenarios. As seen, IA-PT still demonstrates excellent robustness, while MD-PT is slightly less effective, but still consistently improves the robustness of GPF/GPF-plus. This aligns well with what we describe:
+
+Table 11: Performance of Hybrid Multi-Defense Prompt and Mainstream Prompts on Graph Classification Tasks.
+
+
Methods\Datasets
MUTAG
COLLAB
PROTEINS
IMDB-B
5-shot
10-shot
5-shot
10-shot
5-shot
10-shot
5-shot
10-shot
Pre-train & Fine-tune
68.00
68.00
61.28
62.77
53.37
65.51
63.00
67.00
GPPT
64.00
68.67
50.48
51.97
59.55
60.33
51.25
54.48
All-in-one
70.00
66.67
63.60
54.70
62.92
67.22
61.12
66.12
Gprompt
72.67
70.67
64.53
64.25
61.24
58.65
60.50
69.50
GPF
64.67
65.33
61.80
62.45
64.61
66.29
60.17
66.75
GPF-plus
68.00
72.00
62.20
63.75
65.17
63.26
60.75
67.12
*MD-PT
74.67
74.35
65.07
65.63
67.39
66.52
63.13
62.57
+
+avoiding difficulties is often much easier than facing them head-on. This transferability experiment has been instrumental in helping us validate the scalability and transferability of the designed system.
+
+Table 12: Performance of Proposed Prompts and GPF/GPF-plus on Different Attack Transfer Scenarios.
+
+
Prompts
Attacks
Cora
Citeseer
CoraML
M-0.25
D-0.5
R-0.5
H-0.5
M-0.25
D-0.5
R-0.5
H-0.5
M-0.25
D-0.5
R-0.5
H-0.5
GPF
M-0.25
31.44
32.47
20.23
26.26
20.26
20.85
32.80
35.79
28.99
32.07
33.07
30.42
D-0.5
33.97
23.38
28.21
32.70
36.22
25.37
25.37
20.75
36.75
33.79
34.79
31.71
R-0.5
36.92
36.37
36.24
34.37
25.37
21.96
21.96
21.96
34.63
34.47
39.31
39.95
H-0.5
29.16
35.85
29.30
29.02
31.26
25.37
20.15
19.86
31.39
21.74
34.19
32.54
GPF-plus
M-0.25
35.56
35.51
34.92
36.33
25.37
24.46
38.76
40.48
33.15
35.67
35.15
36.75
D-0.5
37.19
36.87
38.19
37.10
26.98
28.77
29.49
27.40
34.35
33.99
32.31
32.03
R-0.5
42.26
40.35
40.26
44.35
34.29
35.71
35.34
35.68
38.11
37.67
36.03
37.83
H-0.5
33.56
30.79
35.92
32.79
20.20
33.12
34.78
33.07
40.03
40.45
37.11
39.95
*MD-PT
M-0.25
47.06
42.40
43.11
47.89
42.81
39.62
40.46
44.85
53.82
43.57
42.17
47.51
D-0.5
47.08
40.15
42.81
47.13
42.18
36.72
36.32
38.88
43.44
44.55
40.02
51.25
R-0.5
48.04
45.82
50.34
53.52
40.46
37.82
37.77
38.75
52.76
41.57
45.24
50.80
H-0.5
50.15
41.45
44.67
47.48
41.82
38.39
35.55
41.08
41.35
41.34
39.45
52.36
*IA-PT
M-0.25
65.22
49.50
60.16
62.53
55.66
48.76
55.04
58.35
61.61
54.89
59.96
65.57
D-0.5
64.54
52.24
57.60
61.57
57.41
55.34
51.24
53.61
58.19
52.52
53.02
57.56
R-0.5
57.85
48.04
54.69
60.46
56.52
54.03
48.96
54.21
62.19
49.13
54.00
61.92
H-0.5
60.41
53.62
55.13
62.55
57.94
52.73
50.47
58.55
62.10
52.71
59.48
58.77
\ No newline at end of file
diff --git a/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/images.zip b/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..72e52d7c17545d41f4b9d6c8d7f32e462f514a93
--- /dev/null
+++ b/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:87933ebb4969902120a649859e265a9d2d4998b9d3f7870fd5ccf053074cf7d9
+size 1153902
diff --git a/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/layout.json b/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d8dd16adb37443185bd4814eb7562ac7f30743bd
--- /dev/null
+++ b/ICLR/2025/GPromptShield_ Elevating Resilience in Graph Prompt Tuning Against Adversarial Attacks/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5eb0fa7a9c08bd9ec0f844ce193ae8a4f77409cb23d1a2bcd960db9721741d90
+size 702096
diff --git a/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/4924a316-28b5-4e09-9557-fac3c11ea665_content_list.json b/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/4924a316-28b5-4e09-9557-fac3c11ea665_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..f67f98bfefa803e5e3e6053a431db7816f26a2fe
--- /dev/null
+++ b/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/4924a316-28b5-4e09-9557-fac3c11ea665_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:88d4b33c42568233d6868b8bf2af6a0d1cd6580e726d8e048fb969a63779918b
+size 174470
diff --git a/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/4924a316-28b5-4e09-9557-fac3c11ea665_model.json b/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/4924a316-28b5-4e09-9557-fac3c11ea665_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f08106e1d8bfca5be1a45dd2c170aa89132f7037
--- /dev/null
+++ b/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/4924a316-28b5-4e09-9557-fac3c11ea665_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d8114ed8acbf50e65fefdbf67c39d4b3b2459223f74809b08d6e0a6fd772c176
+size 202500
diff --git a/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/4924a316-28b5-4e09-9557-fac3c11ea665_origin.pdf b/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/4924a316-28b5-4e09-9557-fac3c11ea665_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..4a375ce22fb3e321f4e81a14e1b013bc64c721b6
--- /dev/null
+++ b/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/4924a316-28b5-4e09-9557-fac3c11ea665_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1dd3ec15399a6ed08e711b0aff06f40db3c89a9176d61b5d3e1db291b00eb7f0
+size 3659417
diff --git a/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/full.md b/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..46a412044d6eca91f232fff40f79c17058be60d6
--- /dev/null
+++ b/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/full.md
@@ -0,0 +1,697 @@
+# GRAIN: EXACT GRAPH RECONSTRUCTION FROM GRADIENTS
+
+Maria Drencheva1, Ivo Petrov1, Maximilian Baader2, Dimitar I. Dimitrov1,2, Martin Vechev1,2
+1 INSAIT, Sofia University "St. Kliment Ohridski" ETH Zurich
+{maria.drencheva, ivo.petrov, dimitar.iliev.dimitrov}@insait.ai1
+{mbaader,martin.vechev}@inf.ethz.ch2
+
+# ABSTRACT
+
+Federated learning claims to enable collaborative model training among multiple clients with data privacy by transmitting gradient updates instead of the actual client data. However, recent studies have shown the client privacy is still at risk due to the, so called, gradient inversion attacks which can precisely reconstruct clients' text and image data from the shared gradient updates. While these attacks demonstrate severe privacy risks for certain domains and architectures, the vulnerability of other commonly-used data types, such as graph-structured data, remain under-explored. To bridge this gap, we present GRAIN, the first exact gradient inversion attack on graph data in the honest-but-curious setting that recovers both the structure of the graph and the associated node features. Concretely, we focus on Graph Convolutional Networks (GCN) and Graph Attention Networks (GAT) – two of the most widely used frameworks for learning on graphs. Our method first utilizes the low-rank structure of GNN gradients to efficiently reconstruct and filter the client subgraphs which are then joined to complete the input graph. We evaluate our approach on molecular, citation, and social network datasets using our novel metric. We show that GRAIN reconstructs up to $80\%$ of all graphs exactly, significantly outperforming the baseline, which achieves up to $20\%$ correctly positioned nodes.
+
+# 1 INTRODUCTION
+
+Graph Neural Networks (GNNs) (Scarselli et al., 2009) have shown a great promise in learning on graph-structured data like social networks, traffic flows, molecules, as well as healthcare and income data. Many of these applications, however, require large quantities of private data, which can be hard to collect due to privacy regulations and the reluctance of users to share their data due to fear of losing competitive advantage. This has naturally led to widespread use of GCNs and GATs alongside Federated Learning (FL) which promises to protect the sensitive data of users (Xie et al., 2021; Zhang et al., 2021; Zhu et al., 2022; Lee et al., 2022; Lou et al., 2021; Peng et al., 2022).
+
+However, the privacy of client data in FL in different domains including images (Zhang et al., 2023), text (Petrov et al., 2024), and tabular data (Vero et al., 2023) was recently severely violated by the introduction of gradient inversion attacks in the honest-but-curious setting. In these attacks, the FL server infers the client data based on passively observed client gradients and the models where they were computed. However, no prior work investigated the vulnerability of GNNs to such attacks.
+
+This work: Gradient inversion attack on graphs In this work, we introduce the first gradient inversion attack on graphs called Graph Reconstruction Algorithm for Inversion of Gradients (GRAIN), specifically designed to attack GNNs by recovering both the graph structure and the node features. At the core of GRAIN is an efficient filtering mechanism to correctly identify likely subgraphs, which are then combined to reconstruct the entire graph. In particular, we leverage span checks to exploit the rank-deficiency of GNN layer updates and recover both the discrete set of per-layer node features and the subgraph adjacency matrices. We then reconstruct the client input using a depth-first search (DFS) algorithm to piece together the full graph from the recovered subgraphs.
+
+We evaluate our attack on real-world chemical, citation and social network datasets, achieving reconstruction accuracies of up to $75\%$ (exact) and $85\%$ (partial) on chemical graph classification, $61\%$ in citation graph classification, and $66\%$ in molecular node classification tasks with known node labels. Finally, we demonstrate that data-dependent traversal strategies allow GRAIN to scale to significantly larger graphs, recovering $85\%$ of graphs with around 25 nodes.
+
+# Main Contributions Our main contributions are:
+
+- The first gradient inversion attack on Graph Neural Networks, recovering both the graph structure and the node features. We provide an efficient implementation on GitHub.1
+- A generalization of the theory presented by Petrov et al. (2024) facilitating an effective mechanism to recover individual feature vectors and thus enabling the use on GNN layers to recover the graph connectivity via efficient filtering.
+- A novel set of metrics for measuring the quality of the recovered client graph structure and node features, enabling the evaluation of graph gradient inversion attacks at scale.
+- A thorough evaluation of GRAIN showing FL with GNNs does not preserve the client data privacy in realistic applications, as GRAIN often recovers clients' graph data exactly.
+
+We believe this work is an important step to further quantify the risks of using private data in FL.
+
+# 2 RELATED WORK
+
+Gradient inversion attacks (Zhu et al., 2019), are attacks to Federated Learning that aim to infer the client's private data from the FL updates clients share with the federated server. As such, they assume knowledge of the updates themselves, as well as the model weights on which the updates were computed. Depending on the attack model, gradient inversion attacks are either malicious (Boenisch et al., 2021; Fowl et al., 2022b;a; Chu et al., 2023; Wen et al., 2022) if the attacker can additionally manipulate the model weights sent to the clients, or honest-but-curious (Zhu et al., 2019; Phong et al., 2018; Zhao et al., 2020; Geiping et al., 2020; Geng et al., 2021; Zhang et al., 2023; Li et al., 2022; Deng et al., 2021; Balunovic et al., 2022; Dimitrov et al., 2024; Petrov et al., 2024; Vero et al., 2023) if the attack is executed passively by just observing model weights and updates.
+
+In this work, we focus on the harder setting of honest-but-curious gradient inversion attacks. Most existing honest-but-curious attacks formulate gradient inversion as an optimization problem (Zhao et al., 2020; Geiping et al., 2020; Yin et al., 2021; Geng et al., 2021; Zhang et al., 2023; Li et al., 2022; Deng et al., 2021; Balunovic et al., 2022) where the attacker tries to obtain the data which corresponds to a client update that matches the observed one best. While this approach is effective in many domains like images (Geiping et al., 2020; Yin et al., 2021; Geng et al., 2021; Zhang et al., 2023; Li et al., 2022) where the client data is continuous, it has been shown that the associated optimization problem is much harder to solve for domains where client inputs are discrete. Some prior works have attempted to alleviate this issue by relying on various continuous relaxation (Balunovic et al., 2022; Vero et al., 2023) to the discrete optimization problem with some success.
+
+In contrast to such approaches, recent research has demonstrated that exact gradient inversion is possible for both continuous (Dimitrov et al., 2024) and discrete inputs (Petrov et al., 2024) in certain neural architectures. Notably, DAGER (Petrov et al., 2024) showed that when dealing with a large but countable number of options for the client input data, the low-rank structure of gradient updates in fully connected layers can be leveraged to efficiently test all possibilities and identify the true input data. GRAIN extends this theory to GNN layers, exploiting the discrete nature of the unknown to the attacker adjacency matrix $\mathbf{A}$ to simultaneously recover the client input features and graph structure, under the assumption of discrete input features. This addresses a critical challenge in graph-specific gradient inversion, where the interdependence between the recovery of the client feature matrix $\mathbf{X}$ and the adjacency matrix $\mathbf{A}$ renders traditional optimization-based attacks ineffective. Unlike DAGER, however, the structure of GNNs only allows for the recovery of the local graph structure using this approach. To overcome this, we further introduce a DFS-based algorithm that combines local graph structures into a single graph, enabling the recovery of the full client input data.
+
+# 3 BACKGROUND AND NOTATION
+
+Threat Model GRAIN is a honest-but-curious gradient inversion attack executed by a malicious FL server that aims to recover the clients' private data. As such, the server is assumed to know the weight updates sent to clients and the corresponding responses received from them. Following most existing gradient inversion attacks (Deng et al., 2021; Balunovic et al., 2022; Vero et al., 2023;
+
+Geiping et al., 2020), we also assume knowledge of the client data structure, including the semantic meaning, value ranges, and normalization of individual input features. This is well-justified as the server needs to enforce consistency in input representations across clients to ensure correct training.
+
+As GRAIN represents the first gradient inversion attack on GNNs, it targets the most traditional federated protocol, FedSGD (McMahan et al., 2017), and the most commonly used GNN architectures — GCN and GAT. Further, as GRAIN is based on our extension to Thm. 3.1, introduced by Petrov et al. (2024), it makes two additional assumptions: (i) the number of nodes in the client graphs is smaller than the embedding dimension of the client GNN layers; and (ii) all input node features in the client graphs are discrete. We denote by $m$ the total number of features, by $\mathcal{F}_i$ the set of possible values for the $i$ -th feature, and by $\mathcal{F} = \mathcal{F}_1 \times \mathcal{F}_2 \times \dots \times \mathcal{F}_m$ the set of all possible feature vectors. As we show in Sec. 6, these assumptions cover many realistic use cases of GNNs.
+
+Graph Terminology Next, we introduce our graph notations. By $\mathcal{V}$ we denote the set of possible graph nodes, where each node $v\in \mathcal{V}$ is associated with a given feature vector. For an undirected graph $\mathcal{G} = (V,E)$ with node set $V\subset \mathcal{V}$ of size $n = |V|$ and edge set $E$ , we denote the degree of a node $v\in V$ with $\deg_{\mathcal{G}}(v)$ . Further, for a pair of vertices $v_{s},v_{e}\in V$ , the distance $\mathrm{dist}(v_s,v_e)$ denotes the number of edges in the shortest path connecting $v_{s}$ to $v_{e}$ . We introduce the notion of a $k$ -hop neighborhood of a node $v$ , defined by the subgraph $\mathcal{N}_{\mathcal{G}}^{k}(v) = (V_{v}^{k},E_{v}^{k})\subset \mathcal{G}$ consisting of all nodes $V_{v}^{k} = \{v^{\prime}\in V\mid \mathrm{dist}(v,v^{\prime})\leq k\}$ in the graph at a distance $\leq k$ from $v$ and the edges between them that can be traversed from $v$ in $\leq k$ steps $E_v^k = \{e = (v_1,v_2)\in E\mid v_1\in V(\mathcal{N}_{\mathcal{G}}^{k - 1}(v)),v_2\in V_v^k\}$ with $\mathcal{N}_{\mathcal{G}}^{0}(v) = \{v\}$ . Finally, we will call a triplet $(V_v^k,E_v^k,v)$ associated with the $k$ -hop neighborhood around $v$ in $\mathcal{G}$ the building block $\mathcal{G}_v^k$ with center $v$ .
+
+Graph Neural Networks Graph Neural Networks (GNNs) extend traditional neural networks to handle graph-structured data by leveraging the edges between nodes through message passing. Each GNN layer captures complex relationships between nodes by combining information from their neighbors and the graph's structural properties. This allows the model to learn richer node embeddings and gain insights into the graph's topology. In particular, the $l^{\mathrm{th}}$ GNN layer takes as an input a matrix $\pmb{X}^{l}\in \mathbb{R}^{n\times d}$ of $d$ -dimensional node features for each node $v\in V$ and performs a combination of messages passing and non-linearity to produce the node features of the next layer $\pmb{X}^{l + 1}$ :
+
+$$
+\boldsymbol {X} ^ {l + 1} = \sigma (\boldsymbol {Z} ^ {l}) = \sigma (\boldsymbol {A} ^ {l} \boldsymbol {Y} ^ {l}) = \sigma (\boldsymbol {A} ^ {l} \boldsymbol {X} ^ {l} \boldsymbol {W} ^ {l}), \tag {1}
+$$
+
+where $\mathbf{A}^l\in \mathbb{R}^{n\times n}$ is a weighted adjacency matrix, $\pmb{W}^{l}\in \mathbb{R}^{d\times d^{\prime}}$ is the weight matrix, $\pmb{Y}^{l}\in \mathbb{R}^{n\times d^{\prime}}$ is the output to the linear layer, and $\sigma$ is an activation function. For GCNs, the adjacency weights are calculated using the respective node degrees, while for GATs they are determined by the attention mechanism. We denote the input features matrix with $\pmb{X}^{0}$ , and abuse the notation $\pmb{X}_v^l$ to denote the row of $\pmb{X}^{l}$ corresponding to the node $v\in V$ . We consider $L$ -layer GNNs, where we denote with $f_{l}$ the function that maps the input graph to the output of the $l^{\mathrm{th}}$ layer for $l = 0,1,2,\ldots ,L - 1$ .
+
+Gradient Filtering in Linear Layers Recently, DAGER (Petrov et al., 2024) showed that one can leverage the gradients of the network loss $\mathcal{L}$ w.r.t. the weights $W^{l}$ of the $l^{\mathrm{th}}$ linear layer $\frac{\partial\mathcal{L}}{\partial W^l}$ to search for the correct set of inputs $X^{l}$ to the layer among a discrete set of possibilities via filtering enabled by the low-rankness of the weight updates. We restate the theoretical findings below:
+
+Theorem 3.1. If $n < d$ and if the matrix $\frac{\partial \mathcal{L}}{\partial Y^l}$ is of full rank, then $\operatorname{rowspan}(X^l) = \operatorname{colspan}\left(\frac{\partial \mathcal{L}}{\partial W^l}\right)$ .
+
+To verify whether an input vector $\mathbf{z}$ can be a part of the client input, DAGER performs a spancheck by measuring the distance between $\mathbf{z}$ and the subspace spanned by the column vectors of $\frac{\partial \mathcal{L}}{\partial \mathbf{W}^T}$ :
+
+$$
+d (\boldsymbol {z}, \frac {\partial \mathcal {L}}{\partial \boldsymbol {W} ^ {l}}) := \| \boldsymbol {z} - \operatorname {p r o j} (\boldsymbol {z}, \operatorname {c o l s p a n} (\frac {\partial \mathcal {L}}{\partial \boldsymbol {W} ^ {l}})) \| _ {2}.
+$$
+
+We say $z$ can be a part of the $l$ -th layer input if $d(z, \frac{\partial \mathcal{L}}{\partial W^l}) < \tau$ for a chosen threshold $\tau$ . In our work, we will extend Thm. 3.1 to Eq. 1, in particular applying it to the linear layer $\pmb{Y}^l = \pmb{X}^l \pmb{W}^l$ .
+
+# 4 OVERVIEW OF GRAIN
+
+Next, we provide a high-level overview of GRAIN, visualized in Fig. 1. GRAIN a gradient inversion attack designed to reconstruct graph-structured client training data in FL assuming an honest-but-curious adversary and is based on the key observation that due to the architecture of GNNs, the
+
+
+Figure 1: Overview of GRAIN. GRAIN first recovers the input nodes $\mathcal{T}_0^*$ by filtering through the cross-product $\mathcal{T}_0$ of all possible feature values, e.g., all atom types $\mathcal{F}_1$ and all number of bonds $\mathcal{F}_2$ . It then iteratively combines and filters them into a set of larger building blocks $\mathcal{T}_B^*$ up to a degree $L$ . Finally, it reconstructs the input graph by combining building blocks from $\mathcal{T}_B^*$ in a DFS manner.
+
+input embedding of a node $v$ at layer $l$ can be influenced only by the original input embeddings of the nodes in the $l$ -hop neighborhood of $v$ . Therefore, given any $l$ -hop neighborhood, we can obtain the corresponding embedding of its center $v$ and use our spancheck, inspired by Thm. 3.1 and shown in Thm. 5.1, to check whether the neighborhood is a possible subgraph of the input graph $\mathcal{G}$ or not.
+
+Filtering We leverage this subgraph checking procedure to create the filtering stage of GRAIN. In particular, we first generate the node proposal set $\mathcal{T}_0$ consisting of all nodes the can be obtained using the known to the attacker sets of possible feature values $\mathcal{F}_i$ . We then apply the span checks layer-by-layer starting from $\mathcal{T}_0$ . At each layer $l$ , we "glue" the $(l - 1)$ -hop building blocks recovered from the previous filtering iteration into the set of possible $l$ -hop neighbourhoods, denoted $\mathcal{T}_l$ in Fig. 1, which are then filtered using Thm. 5.1 to produce the set of consistent $l$ -hop building blocks $\mathcal{T}_l^*$ . Finally, at layer $L$ a final consistency check is performed to obtain the final set of $L$ -hop building blocks $\mathcal{T}_B^*$ .
+
+Graph Building In the second stage, we perform graph building where we combine the $L$ -hop building blocks in $\mathcal{T}_B^*$ using a DFS-based approach to obtain the final graph reconstruction. To do this, at each node of the DFS tree, we "glue" a building block at a graph node that does not yet have enough neighbors to match their degree. Here, we use that the degree of a node is a widely used node feature for training GNNs (Hamilton et al., 2017; Xu et al., 2018; Cui et al., 2022), and is thus known by the attacker at this stage. When we cannot extend the graph further, we compute its gradient and compare it to the client gradient. If they do not match, we backtrack and try a different path. Otherwise, we terminate the DFS successfully and return the reconstructed graph.
+
+# 5 GRAIN: EXACT GRAPH RECONSTRUCTION FROM GRAIDENTS
+
+We now present the technical details of GRAIN. First, in Sec. 5.1, we explain the key operation of graph gluing. Then, in Sec. 5.2, we present Thm. 5.1 that adapts Thm. 3.1 to GNN layers and Thm. 5.3 that enables GRAIN to locally recover graph structures. These theoretical developments allow for the
+
+
Algorithm 1 The GRAIN algorithm
1: function GRAIN(T0, ∂L/∂W, τ, f, C)
2: TL*←GENERATEBBS(T0, ∂L/∂W, τ, f)
3: TB*←STRUCTUREFILTER(TL*, ∂L/∂W)
4: return RECONSTRUCTGRAPH(TB*, ∂L/∂W, C)
+
+efficient removal of proposal elements from $\mathcal{T}_l$ , which fail the span check and hence cannot be a subgraph of the input, as we detail in Sec. 5.3. Finally, in Sec. 5.4 we demonstrate our graph building, which recovers the entire graph from the filtered set of possible subgraphs $\mathcal{T}_B^*$ using DFS.
+
+# 5.1 GRAPH GLUING
+
+In this section we describe the process of gluing a $l$ -hop building block $\mathcal{B} = (V^B, E^B, c^B)$ to a graph $\mathcal{G} = (V, E)$ at a vertex $c \in V$ . The resulting set of graphs $\mathbb{G}$ contains all possible ways of attaching the non-overlapping parts of $\mathcal{B}$ to $\mathcal{G}$ at $c$ , as shown in Fig. 2. To this end, we combine the 2 graphs by correctly matching equivalent nodes between them based on their features. In particular,
+
+
+(a) GCN vs GAT reconstructability (on CiteSeer)
+
+
+(b) Impact of low-rankness of the adjacency matrix on reconstructability for GCNs for synthetic data (left), molecules (middle), and citation networks (right)
+
+
+Figure 3: Ablation studies on how the data and architecture affect reconstructability
+
+
+
+we return the empty set if the center of the building block $v'$ and the chosen node $v$ from the graph have different features. The same holds if the $l$ -hop neighborhood of the chosen node does not match a subgraph of the building block. In all other cases we return the set of all possible graphs resulting from the gluing $\mathbb{G} = \mathrm{glue}(\mathcal{G},\mathcal{B},v)$ . We describe how to efficiently perform gluing in App. A.3.
+
+# 5.2 THEORETICAL FOUNDATIONS OF THE SPANCHECK FILTERING
+
+Span check for GNN layers We now state our main result extending Thm. 3.1 to GNN layers. The proof is in App. A.2.
+
+Theorem 5.1. If $n < d$ , $X_i^l \in \mathrm{colspan}(\frac{\partial\mathcal{L}}{\partial\boldsymbol{W}^l})$ if and only if $\frac{\partial\mathcal{L}}{\partial Y_i^l} \notin \mathrm{rowspan}(\frac{\partial\hat{\mathcal{L}}}{\partial Y_i^l})$ , where $\frac{\partial\hat{\mathcal{L}}}{\partial Y_i^l}$ denotes the matrix $\frac{\partial\mathcal{L}}{\partial Y^l}$ with its $i$ -th row removed.
+
+
+Figure 2: Glueing visualization
+
+This important generalization of the theory presented in DAGER provides an exact condition for recovering individual input vectors $\mathbf{X}_i^l$ under any output gradient $\frac{\partial\mathcal{L}}{\partial\mathbf{Y}^l}$ . In particular, when $\frac{\partial\mathcal{L}}{\partial\mathbf{Y}^l}$ is full-rank, the theorem recovers the statement of Thm. 3.1. Otherwise, intuitively, the theorem states that we lose recoverability for inputs $\mathbf{X}_i^l$ for which the corresponding row in $\frac{\partial\mathcal{L}}{\partial\mathbf{Y}^l}$ is linearly dependent of the rest of the rows in $\frac{\partial\mathcal{L}}{\partial\mathbf{Y}^l}$ . The empirical experiments, illustrated in Fig. 3a showcase that $\frac{\partial\mathcal{L}}{\partial\mathbf{Y}^l}$ is almost certainly full-rank for GATs, enabling the span check to accurately filter the entire input, making Thm. 3.1 still applicable most of the time. However, in general $\frac{\partial\mathcal{L}}{\partial\mathbf{Y}^l}$ can exhibit low-rankness, which limits the recovery of the entire input. In particular, Fig. 3b shows that for GCNs for small graphs the full-rankness assumption is violated. To this end, we present the following corollary (proven in App. A.2) which outlines the implications of Thm. 5.1 specifically for GCNs:
+
+Corollary 5.2. For $\frac{\partial\mathcal{L}}{\partial Z^l}$ of full-rank, $n < d$ , if the (possibly normalized) adjacency matrix at layer $l$ , $\mathbf{A} \in \mathbb{R}^{n \times n}$ , $\mathbf{X}_i^l \in \mathrm{colspan}(\frac{\partial\mathcal{L}}{\partial\mathbf{W}^l})$ if and only if $\mathbf{A}_i^T \notin \mathrm{colspan}(\hat{\mathbf{A}}_i)$ . Further, if $\mathbf{A}$ is full-rank, then $\mathbf{X}_i^l \in \mathrm{colspan}(\frac{\partial\mathcal{L}}{\partial\mathbf{W}^l})$ for all $i = 1, 2, \ldots, n$ .
+
+i.e. when $A$ is full-rank, all feature vectors at layer $l$ are recoverable via the spancheck. If this isn't the case, according to the main theorem we still recover most, but not all. In Fig. 3b and App. C.3 we demonstrate that even when $A$ is significantly rank-deficient, the majority of $X^l$ can still be recovered under the GCN setting. Our experiments on real-world datasets show that even in these cases GRAIN is able to partially recover the graph. Next we explain how we propagate our proposed building blocks through the GNN layers in order to be able to apply Thm. 5.1 to filter them.
+
+Building block propagation In order to be able to apply Thm. 5.1 to filter a generated $l$ -hop building block at the $l$ -th layer we need to reconstruct its corresponding input embedding vector $\mathbf{X}_j^l$ to the $l$ -th layer. We now state our key result allowing us to recover this input vector.
+
+Theorem 5.3. For GNNs satisfying Asm. A.1, propagating a correctly reconstructed building block $\mathcal{G}_v^l$ centred at $v$ through the first $l$ GNN layers recovers the original embedding of $v$ at layer $l$ :
+
+$$
+f _ {l - 1} \left(\mathcal {G} _ {v} ^ {l}\right) [ j ] = X _ {i} ^ {l},
+$$
+
+where $i$ is the index of $v$ in the adjacency matrix of the original input graph $\mathcal{G}$ and $j$ is the index of $v$ in the adjacency matrix of $\mathcal{G}_v^l$ .
+
+Intuitively, this shows that a correctly recovered $l$ -hop neighborhood is sufficient to compute the embeddings of $v$ at layer $l$ , enabling the span check filter at this layer. The proof is available in App. A.2, alongside a proof that GCNs and GATs satisfy Asm. A.1.
+
+# 5.3 SUBGRAPH FILTERING
+
+Next, we begin our attack with the creation of the $L$ -hop building blocks and reduce the search space via the span check mechanism. Even though GRAIN is applicable to any type of discrete features, we describe our methodology for one-hot encoded ones for notational convenience.
+
+Recovering the single node feature vectors in $\mathcal{T}_0^*$ We now describe how to recover the single node client feature vectors, that is the 0-hop neighborhoods in $\mathcal{T}_0^*$ . We note that the direct enumeration approach by DAGER is often infeasible for graph data. To this end, instead of performing span checks on the entire input vectors, we do partial span checks on partial vectors, iteratively adding dimensions in order to control the complexity. Specifically, we first take the dimensions corresponding to a subset of features and filter those. To further constrain the search space, we then keep adding dimensions corresponding other features, followed by another filtering. We note the soundness of this partial filtering is covered by Thm. 5.1, as performing the spancheck on a subspace is less restrictive compared to the full span check. Pseudocode and further explanations are provided App. A.4.
+
+Creating 1-hop building blocks $\mathcal{T}_1^*$ We first define the extension $\mathrm{ext}(v)$ of a node $v$ to be the set of all 1-hop building blocks that can be constructed by attaching exactly $\deg(v)$ nodes from $\mathcal{T}_0^*$ to $v$ . We note that we do not attach nodes $w \in \mathcal{T}_0^*$ to $v$ if the feature degree of $w$ is 0, that is $\deg(w) = 0$ . The set of all possible 1-hop building blocks $\mathcal{T}_1 = \bigcup_{v \in \mathcal{T}_0^*} \mathrm{ext}(v)$ is then defined as the set of all possible 1-hop neighborhoods that can be constructed by extending node from $\mathcal{T}_0^*$ . Thm. 5.3 then allows us to exactly recover the first
+
+Algorithm 2 Filtering using the spancheck
+
+
1:
function FILTER(Tl, ∂L/∂Wl, τ, fl-1)
2:
Tl* ← {}
3:
for G in Tl do
4:
v ← center(G)
5:
if d(fl-1(G)v, ∂L/∂Wl) < τ then
6:
Tl* ← Tl* ∪ {G}
7:
return TL*
+
+layer embedding for the center of each neighborhood. We are hence able to filter $\mathcal{T}_1$ by applying Thm. 5.1 on $\frac{\partial\mathcal{L}}{\partial W^1}$ to achieve the reduced set of 1-hop building blocks $\mathcal{T}_1^*$ , as shown in Alg. 2.
+
+Creating $l$ -hop building blocks $\mathcal{T}_l^*$ For a building block $\mathcal{B} \in \mathcal{T}_l^*$ , we define the dangling nodes $\mathrm{dang}(\mathcal{B})$ as the set of all nodes $v \in \mathcal{B}$ such that $\deg(v)$ (the ground-truth degree of the node) is greater than the number of its neighbors. We extend the $l$ -hop building blocks $\mathcal{B} \in \mathcal{T}_l^*$ by calculating all possible gluings of 1-hop building blocks $\mathcal{B}' \in \mathcal{T}_1^*$ to all dangling nodes of $\mathcal{B}$ . This is shown in lines 10-16 of Alg. 3. The resulting set is then called $\mathcal{T}_{l+1}$ , which is then filtered by applying Thm. 5.1 on $\frac{\partial \mathcal{L}}{\partial W^{l+1}}$ to achieve the reduced set of $l+1$ -hop building blocks $\mathcal{T}_{l+1}^*$ . We repeat the process explained above until we reach the desired $L$ -hop neighborhoods, with the final spancheck performed on the first linear layer of the commonly used readout classification head.
+
+
Algorithm 3 Creating the degree-L building blocks
1: function GENERATEBBS(\{F_i\}_{i∈{[1,f]}, ∂L/∂W,τ,f})
2: T0*← FILTERNODES(\{F_i\}, ∂L/∂W0,τ)
3: T1← {}
4: for v in T0* do
5: T1← T1 ∪ ext(v, T0*)
6: T1*← FILTER(T1, ∂L/∂W1,τ,f0)
7: for l← 1,..., L-1 do
8: Tl+1← {}
9: for G in Tl* do
10: S← {G}
11: for v in dang(G) do
12: S'← {}
13: for G', G' in S × T1* do
14: S'← S' ∪ GLUE(G, G'B, v, l)
15: S← S'
16: Tl+1← Tl+1 ∪ S
17: Tl+1← FILTER(Tl+1, ∂L/∂Wl+1,τ,fl-1)
18: return TL*
+
+# Additional structure-based filtering
+
+To further restrict the proposal set of building blocks, we perform a consistency check to rule out blocks that cannot be part of the ground truth graph. Specifically, for every building block $\mathcal{B} \in \mathcal{T}_L^*$ and for every dangling node in it $v \in \mathrm{dang}(\mathcal{B})$ we assert that there exists a building block in $\mathcal{T}_L^*$ that we can glue it at $v$ to $\mathcal{B}$ . If this is not the case, we know that either $\mathcal{B}$ is the input graph (which we check by computing the gradients produced by $\mathcal{B}$ ), or it cannot be part of the ground truth graph and remove it from $\mathcal{T}_L^*$ . We denote the resulting set $\mathcal{T}_B^*$ .
+
+# 5.4 GRAPH BUILDING
+
+Finally, we describe how we leverage depth-first search to combine the filtered set of building blocks $\mathcal{T}_B^*$ into our final graph reconstruction.
+
+Specifically, each node of our DFS exploration tree represents a partially reconstructed client graph $\mathcal{G}_{\mathrm{curr}}$ and at each branch we choose an arbitrary dangling node $v\in \mathcal{G}_{\mathrm{curr}}$ (Line 7 in Alg. 4) and generate all possible graphs $\mathbb{G} = \mathrm{glue}(\mathcal{G}_{\mathrm{curr}},\mathcal{B},v)$ that can be created by gluing a building block $\mathcal{B}\in \mathcal{T}_B^*$ at $v$ (Line 8 in Alg. 4). This is done by iterating over all the building blocks in $\mathcal{T}_B^*$ , checking for each one if it is possible to glue it to $\mathcal{G}_{\mathrm{curr}}$ and if so, saving the extended graph as a new branch. The pseudocode for the branching is provided in App. A.6. During branching, we also take care of recovering possible cycles within the recon
+
+
Algorithm 4 DFS reconstruction
1: function DoDFS(TB*, ∂L/∂W, Gcurr, C)
2: if |dang(Gcurr)| == 0 then
3: return ΔGcurr, Gcurr
4:
5: GTOP, dTOP ← ∅, ∞
6: Bord ← Order(TB*)
7: v ← Sample{v ∈ dang(Gcurr)}
8: Gnew ← Branch(Bord, Gcurr, v)
9: for G in Gnew do
10: d', G' ← DoDFS(TB*, ∂L/∂W, G, C)
11: if d' == 0 then
12: return 0, G'
13: else if dTOP > d' then
14: dTOP, GTOP ← d', G'
15: return dTOP, GTOP
+
+structions by overlapping nodes in $\mathcal{G}_{\mathrm{curr}}$ that might coincide. This is also elaborated on in App. A.6. If $\mathcal{G}_{\mathrm{curr}}$ has no more dangling nodes, we calculate the distance between its and the client gradients:
+
+$$
+\Delta_ {\mathcal {G}} = \min _ {c \in \mathcal {C}} \| \frac {\partial \mathcal {L} (\mathcal {G} , c)}{\partial \boldsymbol {W}} - \frac {\partial \mathcal {L}}{\partial \boldsymbol {W}} \| _ {F}, \tag {2}
+$$
+
+where $\mathcal{C}$ is the set of all possible labels and $\| \cdot \| _F$ is the standard Frobenius norm. If $\Delta_{\mathcal{G}_{\mathrm{curr}}} = 0$ the algorithm terminates early with correct graph (Line 12 in Alg. 4). Otherwise, we return the best possible reconstruction in gradient distance (Lines 9-14 in Alg. 4).
+
+Building block ordering A key factor in the performance of the algorithm is the order in which we visit nodes of the exploration tree. We use heuristic ordering based on a score $S(\mathcal{B})$ we define for every building block $\mathcal{B} \in \mathcal{T}_B^*$ . We first define the score $S_v(\mathcal{B})$ to be equal to the lowest span check distance $d(\mathcal{G}, \frac{\partial \mathcal{L}}{\partial W^L})$ of a building block $\mathcal{B}$ that can be glued to $\mathcal{G}$ at $v$ . The score for the entire block is then calculated as the sum of the vertex scores $S(\mathcal{B}) = \sum_{v} S_v(\mathcal{B})$ . Intuitively, this score represents how compatible any building block from $\mathcal{T}_B^*$ is with the other building blocks that passed the spanchecks. Again, intuitively, the building blocks which are part of the input will be more compatible with the other building blocks from the input than potential false positives.
+
+Uniqueness heuristic In some settings, such as social or citation networks we notice that the feature vectors of different nodes are almost surely unique. In these settings, we leverage a heuristic which during reconstruction always overlaps any two nodes with the same features. Further, in these settings we never try to glue the same building block twice, as $L$ -hop neighborhoods are analogically unique. The heuristic drastically reduces the search space and the time for convergence of GRAIN.
+
+# 6 EVALUATION
+
+In this section we evaluate GRAIN's performance against prior gradient leakage methods.
+
+We begin by detailing our experimental setup and the baseline attacks considered, along with introducing a novel set of metrics, specifically designed to jointly assess the differences in node features and graph topology between the true client graphs and their reconstructions. The experimental results demonstrate GRAIN's substantial improvements over existing attacks, achieving superior reconstruction accuracy and versatility. Namely, we demonstrate that GRAIN remains effective across a wide range of architectural changes, GNN model types, data modalities, and task scenarios.
+
+# 6.1 EVALUATION METRIC
+
+We found it necessary to design our own set of metrics, as prior graph-related similarity measurements were not suitable for evaluating gradient inversion attacks. A discussion on the desired qualities of the metrics, and the reasoning behind their design can be found in App. B.
+
+To this end, we introduce the Graph Similarity Metrics (GSM) - a set of metrics designed to evaluate the similarity of a pair of graphs $\mathcal{G}$ and $\hat{\mathcal{G}}$ under the name GSM-N, the details of which we showcase
+
+in App. B. A key highlight of GSM is that it assesses structures of varying globality, while ensuring the metric is invariant to graph isomorphism through rigorous node matching.
+
+We utilise 3 separate instances of the metric - namely for $N = 0,1,2$ , where larger-hop neighborhoods are used to capture more structural information. It is important to note that all measurements are scaled by a factor of $\frac{\min(|\mathcal{V}|,|\hat{\mathcal{V}}|)}{\max(|\mathcal{V}|,|\hat{\mathcal{V}}|)}$ to penalize reconstructions of incorrect size. We further report the percentage of exactly reconstructed graphs, denoted by FULL in the result tables.
+
+To measure the perceived reconstruction quality and compare it to our GSM set of metrics, as well as to confirm that our metrics are fair with respect to the baseline attacks, we further conducted a human evaluation study. In Tab. 1, we show that our metrics are highly correlated with human perception. Further details about how this study was conducted are shown in App. C.
+
+# 6.2 EXPERIMENTAL SETUP
+
+Next, we describe our experimental setup, including the architecture of the attacked models, the client datasets used, and the hardware required by the attacker.
+
+Table 1: Comparison of GSM and human evaluation.
+
+
GSM-0
GSM-1
GSM-2
Human
GRAIN
72.6
67.8
66.9
70.6
DLG
24.2
10.5
12.0
6.5
+
+Architecture details Unless otherwise specified, all of our attacks are applied on 2-layer GNNs $(L = 2)$ with a hidden embedding dimension $d' = 300$ and a ReLU activation. For GAT experiments 2-headed attention was used (adapting GRAIN to GATs with more heads is analogous). All networks also feature a 2-layer feedforward network for performing the readout — a common depth for GNNs Kipf & Welling (2016). Given the depth restrictions, we recover building blocks up to layer 2, with the first readout layer being used for the relevant filtering of the largest blocks. In Tab. 10, we show that our attack is robust with respect to changes in these architectural parameters.
+
+Evaluation datasets We evaluate on three different types of graph data - chemical data, citation and social networks. For the chemical experiments, we evaluate on molecule property prediction data, where molecules are represented as graphs and each node is a given atom. We follow the common convention to omit hydrogen atoms in the graphs. Each node is embedded by concatenating the one-hot encodings of 8 features (Xu et al., 2018; Wu et al., 2020), namely the atom type, formal charge, number of bonds, chirality, number of bonded hydrogen atoms, atomic mass, aromaticity and hybridization (Rong et al., 2020). We evaluate GRAIN on 3 well-known chemical datasets - Tox21, Clintox, and BBBP, introduced by the MoleculeNet benchmark (Wu et al., 2018).
+
+For the citation networks experiments, we apply GRAIN on the CiteSeer(Giles et al., 1998) dataset, which features a single graph with 3312 nodes representing scientific publications classified into one of six classes. The edges between them represent citations, and the features of any node is a 0/1-valued word vector of length 3703 indicating the absence/presence of a keyword in the abstract.
+
+Finally, for the social network experiments we use the Pokec(Rossi & Ahmed, 2015) dataset, containing 1.6 million nodes (users), where connections represent friendship between users. We chose discrete node features where every feature with frequency less than $1\%$ was categorized as "Other", as these entries usually contain irrelevant outliers. This resulted in 36 total discrete features.
+
+To simulate a federated learning environment, in the latter two settings we sample subgraphs of a given size from the datasets for each of the FL clients and use cluster classification objective, where each subgraph is classified as the most common class among the comprising nodes. We chose the sampling distribution: 20 graphs with 1-10 nodes, 40 graphs with 10-20 nodes, 30 graphs with 20-30 nodes, and 10 graphs with 30-40 nodes, closely mirroring the distribution of the Tox21 dataset.
+
+Computational requirements We provide an efficient GPU implementation, where each experiment has been run on a NVIDIA L4 Tensor Core GPU with less than 40GB of CPU memory.
+
+# 6.3 BASELINE ATTACKS
+
+We adapt the DLG attack (Zhu et al., 2019), a standard continuous attack, and TabLeak, an attack purposefully designed for recovering discrete tabular data. As described in (Vero et al., 2023), all input features are first passed through an initial sigmoid layer to ensure they are in the interval (0,
+
+Table 2: Results (in %) of experiments on the 3 dataset types - Tox21 (chemical), CiteSeer (citation), Pokec (social). Here "+" refers to the baseline attack with the input adjacency matrix given.
+
+
GCN
GAT
GSM-0
GSM-1
GSM-2
FULL
Time [h]
GSM-0
GSM-1
GSM-2
FULL
Time [h]
Tox21
GRAIN
86.9+4.2
83.9+5.2
82.6+5.7
68.0±1.7
14.3
92.9+3.8
90.7+5.0
89.9+5.8
75.0±1.8
10.8
DLG
31.8+4.3
20.3+5.5
22.8+5.6
1.0±0.2
3.3
96.0±0.32
9.3+4.9
6.5+4.1
2.0±0.3
4.2
DLG+A
54.7+3.9
60.1+4.6
76.7+3.6
1.0±0.2
3.1
96.5±0.34
69.7+4.1
81.3+3.6
2.0±0.3
4.5
TabLeak
25.1+5.1
12.4+5.5
10.8+3.6
1.0±0.2
13.1
73.7+2.6
7.2+5.0
10.0±4.8
1.0±0.2
6.0
TabLeak+A
55.6+3.9
57.7+4.1
73.8+2.8
1.0±0.2
12.3
75.1+2.5
74.9+2.1
84.2+1.5
1.0±0.2
6.0
CiteSeer
GRAIN
62.5+7.7
31.0+8.0
31.6+8.1
20.0±0.8
2.5
79.3+4.7
69.1+6.1
69.6+6.2
61.0±1.6
2.1
DLG
65.7+1.6
0.0+0.0
0.1+0.1
0.0±0.0
25.6
65.7+1.6
0.0+0.0
0.0+0.0
0.0±0.0
26.3
DLG+A
65.7+1.6
0.0+0.0
0.0+0.0
0.0±0.0
26.8
65.7+1.6
0.0+0.0
0.0+0.0
0.0±0.0
28.2
TabLeak
65.2+2.5
0.0+0.0
0.3+0.4
0.0±0.0
172.7
65.0+2.4
0.0+0.0
0.0+0.0
0.0±0.0
177.4
TabLeak+A
65.3+2.4
0.0+0.0
0.0+0.0
0.0±0.0
172.9
65.1+2.4
0.0+0.0
0.0+0.0
0.0±0.0
171.5
Popec
GRAIN
58.3+5.9
30.7+7.9
35.8+8.3
15.0±0.8
0.3
97.2+1.6
93.5+3.4
96.3+1.9
79.0±1.8
0.5
DLG
38.1+1.2
0.0+0.0
7.9+1.8
0.0±0.0
0.6
35.8+1.2
0.0+0.0
0.1+0.1
0.0±0.0
1.2
DLG+A
37.4+1.2
0.2+0.3
26.3+2.1
0.0±0.0
0.5
37.7+1.1
0.1+0.1
16.9+1.9
0.0±0.0
1.0
TabLeak
37.1+1.4
0.1+0.1
2.9+1.5
0.0±0.0
6.6
37.0+1.1
0.0+0.0
1.1+0.9
0.0±0.0
12.3
TabLeak+A
37.9+1.3
0.5+0.5
20.1+2.8
0.0±0.0
5.7
37.7+1.4
0.3+0.3
23.4+1.8
0.0±0.0
11.4
+
+
+Figure 4: Examples molecule reconstructions. Multivalent interactions are not recovered, as they are not considered by the GNN.
+
+
+
+
+
+
+
+1). Similarly, we ensure the adjacency matrix $\mathbf{A}$ is symmetric by optimizing over the upper triangle, and apply a softmax operation over the dummy labels to convert them to probabilities. Finally, we generate a prediction graph by connecting all nodes $v_{i}, v_{j}$ corresponding to $\sigma(\mathbf{A})_{ij} \geq 0.5$ . Additionally, we test both baselines when they are given the correct adjacency matrix $\mathbf{A}$ . In all cases we provide the attack with the correct number of nodes to ensure that $\mathbf{X}$ and $\mathbf{A}$ have the correct shape. We demonstrate that, even when the baselines have a significant amount of prior knowledge, GRAIN significantly outperforms them (see Fig. 4 and Tab. 2).
+
+# 6.4 EXPERIMENTAL RESULTS
+
+Next, we evaluate the baselines and GRAIN and show that GRAIN outperforms the existing baselines across all defined metrics. Further, GRAIN is applicable across a variety of datasets and settings, including being depth- and width-agnostic, and far more scalable and robust. In all measurements we quote the mean value of the metric, as well as the $95\%$ confidence interval around it, measured by generating 10,000 random sample sets via bootstrapping.
+
+Main experiments We first apply the algorithms DLG, TabLeak and GRAIN to the 3 types of dataset on both the GCN and GAT architectures. We observe in Tab. 2 that GRAIN achieves a much higher partial reconstruction rate (up to $96\%$ ) compared to any baseline. This remains true even when the baseline is informed about the input adjacency matrix $\mathbf{A}$ . Without $\mathbf{A}$ , baseline performance notably drops with neighborhood size, showing the baselines' inability to recover the structure. Beyond partial reconstruction, GRAIN is further able to recover up to $80\%$ of the dataset exactly, while the baselines achieve this only in the case of very small graphs. Further, GRAIN closely matches TabLeak's runtime and is much faster than all baselines with the node uniqueness heuristic. For visual inspection, we also include a comparison of a fully reconstructed molecule in Fig. 4, with further examples in App. C.
+
+As shown, GRAIN can also be effectively applied to both architectures, consistently achieving a higher score on the GAT architecture. This increase happens because as we showed in Fig. 3a, $\frac{\partial\mathcal{L}}{\partial Y^t}$ is almost certainly full-rank, where Cor. 5.2 enables the direct recovery of all inputs.
+
+For the Tox21 baseline experiments we used a LBFGS optimizer for more stable and higher quality results. However, for CiteSeer and Pokec, where the client input space is much larger, we instead ran SGD due to time constraints. In App. C.3, we show results with LBFGS on 10 times fewer samples.
+
+Table 3: Comparison of GRAIN and baselines on chemical datasets for GCNs on graphs of size $n$ .
+
+
n≤15
16≤n≤25
26≤n
GSM-0
GSM-2
FULL
GSM-0
GSM-2
FULL
GSM-0
GSM-2
FULL
GRAIN
93.0+3.4-5.4
91.6+3.8-6.3
81.9±1.7
81.7+3.9-4.8
74.8+5.8-6.3
43.6±1.1
50.1+6.8-7.1
39.2+8.5-7.7
5.1±0.6
DLG
27.4+4.2-3.8
13.3+5.7-4.6
1.0±0.2
25.5+3.9-3.5
16.7+5.2-4.4
0.9±0.2
25.4+4.8-4.3
14.8+6.4-5.3
0.0±0.0
DLG+A
52.1+3.1-3.3
71.3+3.1-3.9
1.0±0.2
53.7+3.2-3.5
75.3+3.0-3.7
0.9±0.2
53.0+4.3-4.8
72.6+4.1-5.8
0.0±0.0
TabLeak
30.3+5.0-4.4
15.4+5.8-4.8
1.9±0.3
15.7+3.0-2.2
2.1+2.2-1.1
0.0±0.0
13.0+3.3-2.3
2.8+4.1-1.9
0.0±0.0
TabLeak+A
53.9+4.0-4.2
72.9+3.4-3.9
1.9±0.3
57.1+3.1-3.5
71.4+2.9-3.6
0.0±0.0
56.1+2.9-3.3
74.4+2.3-3.1
0.0±0.0
+
+Table 4: Reconstruction results in % for GRAIN on Citeseer and GATs for different ablations.
+
+
GSM-0
GSM-1
GSM-2
FULL
Default
79.3+4.7
69.1+6.1
69.6+6.2
61.0 ± 1.6
-6.3
-6.4
-6.0
No degree
59.7+6.8
42.7+6.3
43.2+6.4
32.0 ± 1.1
-7.2
-6.6
-6.6
No heuristic
64.6+3.5
52.1+4.7
52.4+4.6
44.0 ± 1.3
-4.2
-5.3
-5.2
+
+Table 5: Reconstruction results in % for GRAIN on Tox21 for GCNs in various settings
+
+
GSM-0
GSM-1
GSM-2
FULL
Default
86.9+4.2-5.7
83.9+5.2-6.9
82.6+5.7-7.4
68.0±1.7
σ=GELU
82.0+5.3-6.7
79.1+6.0-7.4
78.4+6.2-8.0
61.0±1.6
Pre-trained
73.5+6.4-7.4
70.0+7.3-7.7
68.6+7.6-8.3
49.0±1.4
Node Class.
88.0+3.8-5.4
85.5+4.6-6.5
84.9+5.0-6.6
66.0±1.6
+
+Effect of graph size on reconstruction In Tab. 3 and Tab. 12 we show how GRAIN performs on graphs of different sizes under the same setting as our main experiments (for GCNs and GATs respectively). In the chemical setting (Tab. 3) molecules are divided into groups of $n \leq 15$ , $16 \leq n \leq 25$ or $n \geq 26$ nodes, aggregated across the 3 chemical datasets. We notice that GRAIN significantly outperforms the baselines for smaller graphs, but the performance decreases on the largest groups in both the chemical and the social networks setting due to timeouts (15 minutes) during graph building. That said, the social network setting (Tab. 12), allows us to apply the node uniqueness heuristic, allowing us to scale to much larger graphs of size up to $n = 60$ nodes. Further, our work still manages to reconstruct a fraction of the large graphs exactly, which is impossible for the baseline models, even in the more difficult chemical setting (discussed in App. D).
+
+Ablation studies We analyze the impact of our design choices and heuristics on GRAIN in Tab. 4. Removing the node in-degree from the feature set and enumerating all possibilities during filtering still enabled exact recovery of $30\%$ of graphs but caused substantial degradation. A similar, though less severe, drop occurs without the node uniqueness heuristic (Sec. 5.4), highlighting the key role of data-specific heuristics in strengthening the attack. We also show that GRAIN's stability is unaffected by architecture parameters and thresholds. As demonstrated in App. C.3, network width and depth have minimal impact, provided the embedding dimension exceeds the number of graph nodes $(d > n)$ . Additionally, the $\tau$ threshold remains robust, with values between $10^{-4}$ and $10^{-2}$ yielding nearly identical filtering performance.
+
+Additional experiments We provide additional experiments showcasing GRAIN's performance in different miscellaneous settings in Tab. 5. First, we replace the ReLU activation function in the GCN by a GELU and report that GRAIN achieves similar results, showing our flexibility with respect to different activations. Furthermore, while prior work has shown that gradient inversion becomes significantly more difficult on pre-trained models (Geiping et al., 2020), GRAIN still manages to reconstruct around $50\%$ of molecules exactly. Finally, we achieve consistently strong results in the node classification task, assuming ground-truth labels are known, which can be easily recovered using methods like Zhao et al. (2020).
+
+# 7 CONCLUSION
+
+We introduced GRAIN, the first gradient inversion attack for Graph Neural Networks capable of accurately recovering graphs from shared gradients. By leveraging the rank-deficiency of the GNN layers, we developed an efficient framework for extracting and filtering subgraphs of the input graph, which are iteratively combined to reconstruct the original graph.
+
+Our results showed GRAIN achieves an exact reconstruction rate of up to $80\%$ for graph classification. We introduced new metrics to evaluate partial graph reconstructions and demonstrated that GRAIN significantly outperforms prior work. Moreover, GRAIN maintains high reconstruction quality across different architectures, parameters, and settings, and can scale to much larger graphs.
+
+In summary, our paper is the first to demonstrate that GNN training in a federated learning setting poses data privacy risks. We believe that this is a promising initial step towards identifying these vulnerabilities and developing effective defense mechanisms.
+
+# ACKNOWLEDGMENTS
+
+INSAIT, Sofia University "St. Kliment Ohridski". Partially funded by the Ministry of Education and Science of Bulgaria's support for INSAIT as part of the Bulgarian National Roadmap for Research Infrastructure.
+This project was supported with computational resources provided by Google Cloud Platform (GCP).
+This work has been done as part of the EU grant ELSA (European Lighthouse on Secure and Safe AI, grant agreement no. 101070617). Views and opinions expressed are however those of the authors only and do not necessarily reflect those of the European Union or European Commission. Neither the European Union nor the European Commission can be held responsible for them.
+The work has received funding from the Swiss State Secretariat for Education, Research and Innovation (SERI).
+
+# REFERENCES
+
+László Babai. Graph isomorphism in quasipolynomial time. In Proceedings of the forty-eighth annual ACM symposium on Theory of Computing, pp. 684-697, 2016.
+Mislav Balunovic, Dimitar Dimitrov, Nikola Jovanović, and Martin Vechev. Lamp: Extracting text from gradients with language model priors. Advances in Neural Information Processing Systems, 35:7641-7654, 2022.
+Franziska Boenisch, Adam Dziedzic, Roei Schuster, Ali Shahin Shamsabadi, Ilia Shumailov, and Nicolas Papernot. When the curious abandon honesty: Federated learning is not private. arXiv, 2021.
+Hong-Min Chu, Jonas Geiping, Liam H Fowl, Micah Goldblum, and Tom Goldstein. Panning for gold in federated learning: Targeted text extraction under arbitrarily large-scale aggregation. *ICLR*, 2023.
+Hejie Cui, Zijie Lu, Pan Li, and Carl Yang. On positional and structural node features for graph neural networks on non-attributed graphs. In Proceedings of the 31st ACM International Conference on Information & Knowledge Management, pp. 3898–3902, 2022.
+Jieren Deng, Yijue Wang, Ji Li, Chao Shang, Hang Liu, Sanguthevar Rajasekaran, and Caiwen Ding. Tag: Gradient attack on transformer-based language models. arXiv preprint arXiv:2103.06819, 2021.
+Dimitar I Dimitrov, Maximilian Baader, Mark Niklas Müller, and Martin Vechev. Spear: Exact gradient inversion of batches in federated learning. arXiv preprint arXiv:2403.03945, 2024.
+Liam Fowl, Jonas Geiping, Steven Reich, Yuxin Wen, Wojtek Czaja, Micah Goldblum, and Tom Goldstein. Decepticons: Corrupted transformers breach privacy in federated learning for language models. ICLR, 2022a.
+Liam H. Fowl, Jonas Geiping, Wojciech Czaja, Micah Goldblum, and Tom Goldstein. Robbing the fed: Directly obtaining private data in federated learning with modified models. In ICLR, 2022b.
+Andras Frank. On kuhn's hungarian method—a tribute from hungary. *Naval Research Logistics* (NRL), 52(1):2-5, 2005.
+Jonas Geiping, Hartmut Bauermeister, Hannah Droge, and Michael Moeller. Inverting gradients-how easy is it to break privacy in federated learning? Advances in neural information processing systems, 33:16937-16947, 2020.
+Jiahui Geng, Yongli Mou, Feifei Li, Qing Li, Oya Bayan, Stefan Decker, and Chunming Rong. Towards general deep leakage in federated learning. arXiv, 2021.
+C. Lee Giles, Kurt D. Bollacker, and Steve Lawrence. Citeseer: an automatic citation indexing system. In Proceedings of the Third ACM Conference on Digital Libraries, DL '98, pp. 89-98, New York, NY, USA, 1998. Association for Computing Machinery. ISBN 0897919653. doi: 10.1145/276675.276685. URL https://doi.org/10.1145/276675.276685.
+
+Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. Advances in neural information processing systems, 30, 2017.
+Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
+Harlin Lee, Andrea L Bertozzi, Jelena Kovacevic, and Yuejie Chi. Privacy-preserving federated multi-task linear regression: A one-shot linear mixing approach inspired by graph regularization. In ICASSP 2022-2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 5947-5951. IEEE, 2022.
+Zhuohang Li, Jiaxin Zhang, Luyang Liu, and Jian Liu. Auditing privacy defenses in federated learning via generative gradient leakage. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10132-10142, 2022.
+Chin-Yew Lin. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pp. 74-81, 2004.
+Guannan Lou, Yuze Liu, Tiehua Zhang, and Xi Zheng. Stfl: A temporal-spatial federated learning framework for graph neural networks. arXiv preprint arXiv:2111.06750, 2021.
+Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Artificial intelligence and statistics, pp. 1273-1282. PMLR, 2017.
+Liang Peng, Nan Wang, Nicha Dvornek, Xiaofeng Zhu, and Xiaoxiao Li. Fedni: Federated graph learning with network inpainting for population-based disease prediction. IEEE Transactions on Medical Imaging, 42(7):2032-2043, 2022.
+Ivo Petrov, Dimitar I. Dimitrov, Maximilian Baader, Mark Niklas Müller, and Martin T. Vechev. DAGER: exact gradient inversion for large language models. CoRR, abs/2405.15586, 2024. doi: 10.48550/ARXIV.2405.15586. URL https://doi.org/10.48550/arXiv.2405.15586.
+Le Trieu Phong, Yoshinori Aono, Takuya Hayashi, Lihua Wang, and Shiho Moriai. Privacy-preserving deep learning via additively homomorphic encryption. IEEE Trans. Inf. Forensics Secur., (5), 2018.
+Yu Rong, Yatao Bian, Tingyang Xu, Weiyang Xie, Ying Wei, Wenbing Huang, and Junzhou Huang. Self-supervised graph transformer on large-scale molecular data. Advances in neural information processing systems, 33:12559-12571, 2020.
+Ryan A. Rossi and Nesreen K. Ahmed. The network data repository with interactive graph analytics and visualization. In AAAI, 2015. URL https://networkrepository.com.
+Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61-80, 2009. doi: 10.1109/TNN.2008.2005605.
+Mark Vero, Mislav Balunović, Dimitar Iliev Dimitrov, and Martin Vechev. Tableak: Tabular data leakage in federated learning. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pp. 35051-35083. PMLR, 2023.
+Yuxin Wen, Jonas Geiping, Liam Fowl, Micah Goldblum, and Tom Goldstein. Fishing for user data in large-batch federated learning via gradient magnification. In ICML, 2022.
+Zhenqin Wu, Bharath Ramsundar, Evan N Feinberg, Joseph Gomes, Caleb Geniesse, Aneesh S Pappu, Karl Leswing, and Vijay Pande. Moleculenet: a benchmark for molecular machine learning. Chemical science, 9(2):513-530, 2018.
+Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and S Yu Philip. A comprehensive survey on graph neural networks. IEEE transactions on neural networks and learning systems, 32(1):4-24, 2020.
+Han Xie, Jing Ma, Li Xiong, and Carl Yang. Federated graph classification over non-iid graphs. Advances in neural information processing systems, 34:18839-18852, 2021.
+
+Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? arXiv preprint arXiv:1810.00826, 2018.
+Hongxu Yin, Arun Mallya, Arash Vahdat, Jose M. Alvarez, Jan Kautz, and Pavlo Molchanov. See through gradients: Image batch recovery via grad inversion. In CVPR, 2021.
+Chenhan Zhang, Shuyu Zhang, JQ James, and Shui Yu. Fastgnn: A topological information protected federated learning approach for traffic speed forecasting. IEEE Transactions on Industrial Informatics, 17(12):8464-8474, 2021.
+Chi Zhang, Zhang Xiaoman, Ekanut Sotthiwat, Yanyu Xu, Ping Liu, Liangli Zhen, and Yong Liu. Generative gradient inversion via over-parameterized networks in federated learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 5126-5135, 2023.
+Bo Zhao, Konda Reddy Mopuri, and Hakan Bilen. idlg: Improved deep leakage from gradients. arXiv preprint arXiv:2001.02610, 2020.
+Ligeng Zhu, Zhijian Liu, and Song Han. Deep leakage from gradients. Advances in neural information processing systems, 32, 2019.
+Wei Zhu, Jiebo Luo, and Andrew D White. Federated learning of molecular properties with graph neural networks in a heterogeneous setting. *Patterns*, 3(6), 2022.
+
+# A ADDITIONAL TECHNICAL DETAILS
+
+# A.1 TABLE OF NOTATIONS
+
+For convenience, we add a table of notations containing brief definitons for all symbols used in our work.
+
+Table 6: Table of notations used in the technical description of GRAIN.
+
+
Symbol
Definition
Symbol
Definition
G=(V,E)
Graph with nodes V and edges E
n
# of nodes in the graph
Al
Possibly weighted adjacency ma-trix at layer l
dist(vs,ve)
# edges in shortest path connecting nodes vs,ve∈V
Nck(v)
k-hop neighborhood in graph Gwith center node v
L
Loss
degG(v)
Degree of node v in graph G
deg(v)
Degree of node v as given by its feature
Xi
Input to theith GNN layer
Xvi
i-th layer input feature of node v
Wi
Weights of theith layer
d'
Hidden dimension size
L
Number of GNN layers
m
Number of features
fi
Function mapping the input graph to the output of theith layer
τ
Span check distance threshold
F
F1 ×··· × Fm - set of all possible feature combinations
Fi
Set of values for theith feature
Tl
Proposal set of l-hop building blocks
Tl*
Filtered set of l-hop building blocks
TB*
Final set of filtered building blocks
σ
Activation function
ΔG
Distance between the gradients of Gand observed gradients
dbest
Gradient distance of the best re-constructed graph
GSM-N(G,hat)
Similarity between N-hop neighbors of G andhat
Gbest
The best reconstructed graph.
+
+# A.2 DEFERRED PROOFS
+
+# A.2.1 SPAN CHECK PROOF
+
+Here we show the proof of Thm. 5.1, which we restate here for convenience:
+
+Theorem 5.1. If $n < d$ , $X_i^l \in \mathrm{colspan}(\frac{\partial\mathcal{L}}{\partial\pmb{W}^l})$ if and only if $\frac{\partial\mathcal{L}}{\partial\pmb{Y}_i^l} \notin \mathrm{rowspan}(\frac{\partial\hat{\mathcal{L}}}{\partial\pmb{Y}_i^l})$ , where $\frac{\partial\hat{\mathcal{L}}}{\partial\pmb{Y}_i^l}$ denotes the matrix $\frac{\partial\mathcal{L}}{\partial\pmb{Y}^l}$ with its $i$ -th row removed.
+
+Proof. For notational clarity, we omit the layer index $l$ in our proof. We separate the proof in 3 steps:
+
+- Step 1: $\mathbf{X}_i^T \in \operatorname{colspan}(\frac{\partial\mathcal{L}}{\partial W})$ if and only if there is a vector $\alpha_{i}$ , such that $\frac{\partial\mathcal{L}}{\partial Y}\alpha_{i} = e_{i}$ , where $e_i$ is the $i$ -th standard basis vector.
+- Step 2: There is a vector $\alpha_{i}$ , such that $\frac{\partial\mathcal{L}}{\partial\pmb{Y}}\alpha_{i} = e_{i}$ if and only if $\mathrm{null}(\frac{\partial\hat{\mathcal{L}}}{\partial\pmb{Y}_i})\nsubseteq \mathrm{null}(\frac{\partial\mathcal{L}}{\partial\pmb{Y}_i})$
+- Step 3: $\mathrm{null}(\frac{\partial\hat{\mathcal{L}}}{\partial\mathbf{Y}_i})\nsubseteq \mathrm{null}(\frac{\partial\mathcal{L}}{\partial\mathbf{Y}_i})$ is equivalent to $\frac{\partial\mathcal{L}}{\partial\mathbf{Y}_i}\notin \mathrm{rowspan}(\frac{\partial\hat{\mathcal{L}}}{\partial\mathbf{Y}_i})$
+
+Step 1 $(X_{i}^{T}\in \mathrm{colspan}(\frac{\partial\mathcal{L}}{\partial W})\iff \exists \alpha_{i}.\frac{\partial\mathcal{L}}{\partial Y}\alpha_{i} = e_{i})$ ..
+
+$(\Rightarrow)$ First, we begin by expressing $\frac{\partial\mathcal{L}}{\partial W}$ using the following common result from Petrov et al. (2024):
+
+$$
+\frac {\partial \mathcal {L}}{\partial \pmb {W}} = \pmb {X} ^ {T} \frac {\partial \mathcal {L}}{\partial \pmb {Y}},
+$$
+
+implying that $\mathbf{X}_i^T \in \operatorname{colspan}(\mathbf{X}^T \frac{\partial \mathcal{L}}{\partial \mathbf{Y}}) = \operatorname{rowspan}(\frac{\partial \mathcal{L}}{\partial \mathbf{Y}}^T \mathbf{X})$ . This can be rewritten as $\exists \alpha_i \cdot \alpha_i^T \frac{\partial \mathcal{L}^T}{\partial \mathbf{Y}} \mathbf{X} = \mathbf{X}_i^T$ . Assuming $\mathbf{X} \in \mathbb{R}^{n \times d}$ is full-rank, then there exists a right-inverse $\mathbf{X}^{-R}$ , as $\operatorname{rank}(\mathbf{X}) = n < d$ .
+
+$$
+\alpha_ {i} ^ {T} \frac {\partial \mathcal {L}}{\partial \boldsymbol {Y}} ^ {T} \boldsymbol {X} \boldsymbol {X} ^ {- R} = \boldsymbol {X} _ {i} ^ {T} \boldsymbol {X} ^ {- R} \Rightarrow \alpha_ {i} ^ {T} \frac {\partial \mathcal {L}}{\partial \boldsymbol {Y}} ^ {T} = e _ {i} ^ {T} \iff \frac {\partial \mathcal {L}}{\partial \boldsymbol {Y}} \alpha_ {i} = e _ {i}
+$$
+
+It is notable that $\mathbf{X}$ not being full-rank still allows for all nodes with feature vectors in $\mathbf{X}$ to pass the span check, however it is possible that some hallucinated inputs might also pass the check.
+
+(Left)
+
+$$
+\begin{array}{l} \frac {\partial \mathcal {L}}{\partial \boldsymbol {Y}} \alpha_ {i} = e _ {i} \iff \\ \alpha_ {i} ^ {T} \frac {\partial \mathcal {L}}{\partial \boldsymbol {Y}} ^ {T} = e _ {i} ^ {T} \iff \\ \alpha_ {i} ^ {T} \frac {\partial \mathcal {L}}{\partial \pmb {Y}} ^ {T} X = X _ {i} ^ {T} \\ \end{array}
+$$
+
+Thus $\mathbf{X}_i^T \in \mathrm{rowspan}(\frac{\partial\mathcal{L}}{\partial\mathbf{Y}}^T\mathbf{X}) = \mathrm{colspan}(\mathbf{X}^T\frac{\partial\mathcal{L}}{\partial\mathbf{Y}}) = \mathrm{colspan}(\frac{\partial\mathcal{L}}{\partial\mathbf{W}})$ . Therefore $\mathbf{X}_i^T \in \mathrm{colspan}(\frac{\partial\mathcal{L}}{\partial\mathbf{W}})$ .
+
+Step 2 $(\exists \alpha_{i}. \frac{\partial \mathcal{L}}{\partial Y} \alpha_{i} = e_{i} \iff \mathrm{null}(\frac{\partial \mathcal{L}}{\partial Y_{i}}) \nsubseteq \mathrm{null}(\frac{\partial \mathcal{L}}{\partial Y_{i}}))$ : First, for both directions of the proof, we can separate $\frac{\partial \mathcal{L}}{\partial Y} \alpha_{i} = e_{i}$ into 2 different requirements:
+
+$$
+\frac {\partial \mathcal {L}}{\partial \mathbf {Y} _ {i}} \alpha_ {i} = \mathbf {0} \tag {3}
+$$
+
+$$
+\frac {\partial \mathcal {L}}{\partial \mathbf {Y} _ {i}} \alpha_ {i} = 1 \tag {4}
+$$
+
+$(\Rightarrow)$ Assuming the existence of $\alpha_{i}$ with $\frac{\partial\mathcal{L}}{\partial\pmb{Y}_i}\alpha_i = e_i$ , we know that Eq. 3 and Eq. 4 hold. It is evident with $\alpha_{i}\in \mathrm{null}(\frac{\partial\mathcal{L}}{\partial\pmb{Y}_{i}})$ but $\alpha_{i}\notin \mathrm{null}(\frac{\partial\mathcal{L}}{\partial\pmb{Y}_{i}})$ that $\mathrm{null}(\frac{\partial\mathcal{L}}{\partial\pmb{Y}_i})\not\subset\mathrm{null}(\frac{\partial\mathcal{L}}{\partial\pmb{Y}_i})$
+$(\Leftarrow)$ First of all, we note that $\frac{\partial\mathcal{L}}{\partial Y_i}\in \mathbb{R}^{1\times d}$ has rank 1, as $\frac{\partial\mathcal{L}}{\partial Y_i}$ contains a non-zero entry under normal training conditions. Therefore, $\frac{\partial\mathcal{L}}{\partial Y_i}$ has nullity $(\frac{\partial\mathcal{L}}{\partial Y_i}) = n - 1$ due to the rank-nullity theorem. $\mathrm{null}(\frac{\partial\mathcal{L}}{\partial Y_i})\not\subseteq\mathrm{null}(\frac{\partial\mathcal{L}}{\partial Y_i})$ implies that there exists an $\alpha_{i}^{\prime}\in \mathrm{null}(\frac{\partial\mathcal{L}}{\partial Y_i})$ , such that $\alpha_{i}^{\prime}\notin \mathrm{null}(\frac{\partial\mathcal{L}}{\partial Y_i})$ (since nullity $(\frac{\partial\mathcal{L}}{\partial Y_i}) = n - 1 < n$ this set is non-empty). For that $\alpha_{i}$ , the following hold:
+
+$$
+\begin{array}{l} \frac {\partial \hat {\mathcal {L}}}{\partial \mathbf {Y} _ {i}} \alpha_ {i} ^ {\prime} = \mathbf {0} \\ \frac {\partial \mathcal {L}}{\partial Y _ {i}} \alpha_ {i} ^ {\prime} = c \\ \end{array}
+$$
+
+Therefore, if we take $\alpha_{i} = \frac{1}{c}\alpha_{i}^{\prime}$ , $\alpha_{i}$ would satisfy both (2) and (3), giving us a valid solution.
+
+Step 3: $(\mathrm{null}(\frac{\partial\mathcal{L}}{\partial Y_i})\nsubseteq \mathrm{null}(\frac{\partial\mathcal{L}}{\partial Y_i})\iff \frac{\partial\mathcal{L}}{\partial Y_i}\notin \mathrm{rowspan}(\frac{\partial\mathcal{L}}{\partial Y_i}))$ First of all, the statement is equivalent to negating both sides, or $\mathrm{null}(\frac{\partial\mathcal{L}}{\partial Y_i})\subseteq \mathrm{null}(\frac{\partial\mathcal{L}}{\partial Y_i})\iff \frac{\partial\mathcal{L}}{\partial Y_i}\in \mathrm{rowspan}(\frac{\partial\mathcal{L}}{\partial Y_i})$ , which can be shown by the following steps:
+
+$$
+\begin{array}{l} \mathrm {n u l l} (\frac {\partial \hat {\mathcal {L}}}{\partial \boldsymbol {Y} _ {i}}) \subseteq \mathrm {n u l l} (\frac {\partial \mathcal {L}}{\partial \boldsymbol {Y} _ {i}}) \iff \mathrm {n u l l} (\frac {\partial \mathcal {L}}{\partial \boldsymbol {Y} _ {i}}) ^ {C} \subseteq \mathrm {n u l l} (\frac {\partial \hat {\mathcal {L}}}{\partial \boldsymbol {Y} _ {i}}) ^ {C} \\ \Longleftrightarrow \operatorname {r o w s p a n} \left(\frac {\partial \mathcal {L}}{\partial \boldsymbol {Y} _ {i}}\right) \subseteq \operatorname {r o w s p a n} \left(\frac {\partial \hat {\mathcal {L}}}{\partial \boldsymbol {Y} _ {i}}\right) \\ \Longleftrightarrow \frac {\partial \mathcal {L}}{\partial \boldsymbol {Y} _ {i}} \in \operatorname {r o w s p a n} \left(\frac {\partial \hat {\mathcal {L}}}{\partial \boldsymbol {Y} _ {i}}\right) \\ \end{array}
+$$
+
+Here we used that the complementary subspace of the null space of matrix is the rowspan of the matrix $\mathrm{null}(M)^C = \mathrm{rowspan}(M)$ . The last step follows from that the fact that $\frac{\partial\mathcal{L}}{\partial\mathbf{Y}_i}$ is a single common vector, and therefore all vectors in colspan $(\frac{\partial\mathcal{L}}{\partial\mathbf{Y}_i})$ are of the form $\lambda \frac{\partial\mathcal{L}}{\partial\mathbf{Y}_i}$ . This concludes our proof.
+
+
+
+We extend this by presenting the proof for Cor. 5.2:
+
+Corollary 5.2. For $\frac{\partial\mathcal{L}}{\partial\pmb{Z}^l}$ of full-rank, $n < d$ , if the (possibly normalized) adjacency matrix at layer $l$ , $\pmb {A}\in \mathbb{R}^{n\times n}$ , $\pmb{X}_i^l\in \mathrm{colspan}(\frac{\partial\mathcal{L}}{\partial\pmb{W}^l})$ if and only if $\pmb{A}_i^T\notin \mathrm{colspan}(\hat{\pmb{A}}_i)$ . Further, if $\pmb{A}$ is full-rank, then $\pmb{X}_i^l\in \mathrm{colspan}(\frac{\partial\mathcal{L}}{\partial\pmb{W}^l})$ for all $i = 1,2,\ldots ,n$ .
+
+Proof. For notational clarity, we omit the layer index $l$ in our proof.
+
+From $\mathbf{Z} = \mathbf{A}\mathbf{Y}$ , by applying the following common result from Petrov et al. (2024) (replacing $\mathbf{W}$ with $\mathbf{Y}$ , and $\mathbf{Y}$ with $\mathbf{Z}$ ), we obtain:
+
+$$
+\frac {\partial \mathcal {L}}{\partial \pmb {Y}} = \pmb {A} ^ {T} \frac {\partial \mathcal {L}}{\partial \pmb {Z}}
+$$
+
+Therefore, $\frac{\partial\mathcal{L}}{\partial\mathbf{Y}_i} = \mathbf{A}_i^T\frac{\partial\mathcal{L}}{\partial\mathbf{Z}}$ . We will now prove that if $\frac{\partial\mathcal{L}}{\partial\mathbf{Z}}$ is full-rank, then $\mathbf{A}_i^T\notin \operatorname {colspan}(\hat{\mathbf{A}}_i)\iff \frac{\partial\mathcal{L}}{\partial\mathbf{Y}_i}\notin \operatorname {rowspan}(\frac{\partial\hat{\mathcal{L}}}{\partial\mathbf{Y}_i})$ . This is equivalent to proving the converse, or $\mathbf{A}_i^T\in \operatorname {colspan}(\hat{\mathbf{A}}_i)\iff \frac{\partial\mathcal{L}}{\partial\mathbf{Y}_i}\in \operatorname {rowspan}(\frac{\partial\hat{\mathcal{L}}}{\partial\mathbf{Y}_i})$
+
+$(\Rightarrow) \mathbf{A}_i^T \in \mathrm{colspan}(\hat{\mathbf{A}}_i)$ implies that there exist coefficients $\alpha_1, \alpha_2, \dots, \alpha_n$ , such that:
+
+$$
+\boldsymbol {A} _ {i} ^ {T} = \sum_ {j = \{1, 2, \dots , N \} \backslash \{i \}} \alpha_ {j} \boldsymbol {A} _ {j} ^ {T},
+$$
+
+Multiplying both sides by $\frac{\partial\mathcal{L}}{\partial\pmb{Z}}$ gives:
+
+$$
+\boldsymbol {A} _ {i} ^ {T} \frac {\partial \mathcal {L}}{\partial \boldsymbol {Z}} = \sum_ {j = \{1, 2, \dots , N \} \backslash \{i \}} \alpha_ {j} \boldsymbol {A} _ {j} ^ {T} \frac {\partial \mathcal {L}}{\partial \boldsymbol {Z}} \iff \frac {\partial \mathcal {L}}{\partial \boldsymbol {Y} _ {i}} = \sum_ {j = \{1, 2, \dots , N \} \backslash \{i \}} \alpha_ {j} \frac {\partial \mathcal {L}}{\partial \boldsymbol {Y} _ {j}} \iff \frac {\partial \mathcal {L}}{\partial \boldsymbol {Y} _ {i}} \in \mathrm {r o w s p a n} (\frac {\partial \hat {\mathcal {L}}}{\partial \boldsymbol {Y} _ {i}})
+$$
+
+$(\Leftarrow)$ We can similarly rewrite $\frac{\partial\mathcal{L}}{\partial Y_i}\in \mathrm{rowspan}(\frac{\partial\mathcal{L}}{\partial Y_i})$ as:
+
+$$
+\frac {\partial \mathcal {L}}{\partial \mathbf {Y} _ {i}} = \sum_ {j = \{1, 2, \dots , N \} \backslash \{i \}} \alpha_ {j} \frac {\partial \mathcal {L}}{\partial \mathbf {Y} _ {j}} \iff \mathbf {A} _ {i} ^ {T} \frac {\partial \mathcal {L}}{\partial \mathbf {Z}} = \sum_ {j = \{1, 2, \dots , N \} \backslash \{i \}} \alpha_ {j} \mathbf {A} _ {j} ^ {T} \frac {\partial \mathcal {L}}{\partial \mathbf {Z}}
+$$
+
+As $\frac{\partial\mathcal{L}}{\partial\pmb{Z}}$ is full-rank, then there exists a right-inverse $\frac{\partial\mathcal{L}}{\partial\pmb{Z}}^{-R}$ . Multiplying on both sides gives:
+
+$$
+\boldsymbol {A} _ {i} ^ {T} \frac {\partial \mathcal {L}}{\partial \boldsymbol {Z}} \frac {\partial \mathcal {L}}{\partial \boldsymbol {Z}} ^ {- R} = \sum_ {j = \{1, 2, \dots , N \} \backslash \{i \}} \alpha_ {j} \boldsymbol {A} _ {j} ^ {T} \frac {\partial \mathcal {L}}{\partial \boldsymbol {Z}} \frac {\partial \mathcal {L}}{\partial \boldsymbol {Z}} ^ {- R} \Longleftrightarrow
+$$
+
+$$
+\boldsymbol {A} _ {i} ^ {T} = \sum_ {j = \{1, 2, \dots , N \} \backslash \{i \}} \alpha_ {j} \boldsymbol {A} _ {j} ^ {T} \iff \boldsymbol {A} _ {i} ^ {T} \in \operatorname {c o l s p a n} (\hat {\boldsymbol {A}} _ {i})
+$$
+
+From here, we can now apply Thm. 5.1, which gives us that $\mathbf{X}_i \in \mathrm{colspan}(\frac{\partial\mathcal{L}}{\partial\mathbf{W}})$ if and only if $\mathbf{A}_i^T \notin \mathrm{colspan}(\hat{\mathbf{A}}_i)$ . If $\mathbf{A}$ is full-rank, then $\mathbf{A}_i^T \notin \mathrm{colspan}(\hat{\mathbf{A}}_i)$ for all $i = 1,2,\dots ,n$ , implying that $\mathbf{X}_i \in \mathrm{colspan}(\frac{\partial\mathcal{L}}{\partial\mathbf{W}})$ for all $i$ . This concludes the proof.
+
+# A.2.2 EMBEDDING RECOVERY PROOF
+
+In this section, first we formally state Asm. A.1 on which Thm. 5.3 is based. Next, using it we provide a proof for Thm. 5.3. Finally, we prove that Asm. A.1 is satisfied for common GNN architectures, such as GCNs and GATs.
+
+For simplicity, in the rest of the section we will denote the node of $\mathcal{G}$ corresponding to the $i^{\mathrm{th}}$ row of the embedding matrices $\pmb{X}_i^l$ with $v_{i}$ .
+
+Assumption A.1. The output corresponding to the node $v_{i}$ of the $l$ -th layer of the GNN, $X_{i}^{l + 1}$ , is independent on $X_{j}^{l}$ for $\forall v_{j} \notin \mathcal{N}_{\mathcal{G}}^{1}(v_{i})$ .
+
+The assumption intuitively states that for most popular GNNs the embeddings of a node only depends on the embeddings of its neighbourhood on the previous layer. Using this, we now present the proof of Thm. 5.3, restating it for convenience:
+
+Theorem 5.3. For GNNs satisfying Asm. A.1, propagating a correctly reconstructed building block $\mathcal{G}_v^l$ centred at $v$ through the first $l$ GNN layers recovers the original embedding of $v$ at layer $l$ :
+
+$$
+f _ {l - 1} \left(\mathcal {G} _ {v} ^ {l}\right) [ j ] = X _ {i} ^ {l},
+$$
+
+where $i$ is the index of $v$ in the adjacency matrix of the original input graph $\mathcal{G}$ and $j$ is the index of $v$ in the adjacency matrix of $\mathcal{G}_v^l$ .
+
+Proof. First we will show that the embedding $\mathbf{X}_i^l$ is independent of the embeddings of any nodes that do not belong in the $l$ -hop neighborhood of $v$ . For $l = 1$ this follows immediately from Asm. A.1. For $l = 2$ , we know that $\mathbf{X}_i^2$ is only dependent on the embeddings $\mathbf{X}_k^1$ of the neighboring nodes $v_k \in \mathcal{N}_{\mathcal{G}}^1(v)$ by applying Asm. A.1. However, the embeddings $\mathbf{X}_k^1$ themselves only depend on the embeddings of the nodes in the 1-hop neighborhood of $v_k$ . Therefore, the only nodes that can influence $\mathbf{X}_i^2$ are $v$ , its neighbors, and the neighbors of its neighbors, which exactly comprise the 2-hop neighborhood of $v$ . Similarly, we can show that $\mathbf{X}_i^l$ is independent of the embeddings of any nodes that are not part of the $l$ -hop neighborhood of $v$ by induction.
+
+We now take the full graph $\mathcal{G}$ and remove all edges starting or ending at nodes not in $\mathcal{G}_v^l$ , and set their feature values to 0, obtaining $\hat{\mathcal{G}}$ . As shown above, this implies the output of $f_{l-1}$ for $\mathcal{G}$ at $v$ is the same as the one for $\hat{\mathcal{G}}$ . Note that applying the network on $\hat{\mathcal{G}}$ is the same as applying it to $\mathcal{G}_v^l$ except for few the additional embeddings produced for the disconnected nodes. By reindexing we arrive at our formula.
+
+
+
+Finally, we prove our assumption Asm. A.1 holds for all GNN architectures considered in this paper:
+
+Theorem A.2. Asm. A.1 holds for GCNs
+
+Proof. For GCN models, the formula for computing the $i^{\mathrm{th}}$ embedding at layer $l + 1$ , $\mathbf{X}_i^{l + 1}$ , can be expressed as:
+
+$$
+\boldsymbol {X} _ {i} ^ {l + 1} = \sigma \left(\sum_ {v _ {j} \in \mathcal {N} _ {\mathcal {G}} ^ {1} (v _ {i})} \boldsymbol {A} _ {i, j} ^ {l} \mathbf {W} ^ {l} \boldsymbol {X} _ {j} ^ {l}\right)
+$$
+
+where $A_{i,j}^{l}$ is the normalized strength of the connection between $v_{i}$ and $v_{j}$ at layer $l$ given by:
+
+$$
+\boldsymbol {A} _ {i, j} ^ {l} = \frac {1}{\sqrt {\operatorname* {d e g} (v _ {i}) \operatorname* {d e g} (v _ {j})}}.
+$$
+
+Assuming the degrees of the nodes $v_{j} \in \mathcal{N}_{\mathcal{G}}^{1}(v_{i})$ are known, $X_{i}^{l + 1}$ is independent on $X_{j}^{l}$ for $v_{j} \notin \mathcal{N}_{\mathcal{G}}^{1}(v_{i})$ . We note that for a correctly recovered $l$ -hop neighbourhood around $v$ , the degrees of all nodes in the $(l - 1)$ -hop neighbourhood around $v$ can be recovered exactly, while for the remaining nodes one can provide a sound lower bound for their degree. Assuming a sound guess on the upper bound on the largest degree in the graph, this allows to recover the degrees of the remaining nodes via enumeration starting from these computed lower bounds. Further, if the input features $X_{i}^{0}$ of $v_{i}$ contain information about the node degree of $v_{i}$ , this information can be easily incorporated to reduce the computational overhead of the enumeration.
+
+Theorem A.3. Asm. A.1 holds for GATs
+
+Proof. For GAT models, the formula for computing the $i^{\text{th}}$ embedding at layer $l + 1$ , $\pmb{X}_i^{l + 1}$ , can similarly be expressed as:
+
+$$
+\boldsymbol {X} _ {i} ^ {l + 1} = \sigma \left(\sum_ {v _ {j} \in \mathcal {N} _ {\mathcal {G}} ^ {1} (v _ {i})} \boldsymbol {A} _ {i, j} ^ {l} \mathbf {W} ^ {l} \boldsymbol {X} _ {j} ^ {l}\right)
+$$
+
+where $A_{i,j}^{l}$ is the attention coefficient between $v_{i}$ and $v_{j}$ at layer $l$ given by:
+
+$$
+\boldsymbol {A} _ {i, j} ^ {l} = \frac {\exp \left(\text {L e a k y R e L U} \left((\mathbf {a} ^ {l}) ^ {T} [ \mathbf {W} ^ {l} \boldsymbol {X} _ {i} ^ {l} \| \mathbf {W} ^ {l} \boldsymbol {X} _ {j} ^ {l} ]\right)\right)}{\sum_ {v _ {k} \in \mathcal {N} _ {\mathcal {G}} ^ {1} (v _ {i})} \exp \left(\text {L e a k y R e L U} \left((\mathbf {a} ^ {l}) ^ {T} [ \mathbf {W} ^ {l} \boldsymbol {X} _ {i} ^ {l} \| \mathbf {W} ^ {l} \boldsymbol {X} _ {k} ^ {l} ]\right)\right)}
+$$
+
+and $a^l$ is a vector of attention parameters.
+
+As $\pmb{X}_i^{l+1}$ only depends on $\pmb{W}^l, \pmb{A}_{i,j}^l$ and $\pmb{X}_j^l$ to be calculated for $v_j \in \mathcal{N}_{\mathcal{G}}^1(v_i)$ , and $\pmb{A}_{i,j}^l$ itself also only depends on $\pmb{X}_j^l$ and $\pmb{W}^l$ , we show that $\pmb{X}_i^{l+1}$ is independent on $\pmb{X}_j^l$ for $v_j \notin \mathcal{N}_{\mathcal{G}}^1(v_i)$ .
+
+# A.3 GLUING ALGORITHM
+
+In order to establish the gluing operation, we need to first define how we determine which nodes in $\mathcal{G}$ and $\mathcal{G}^B$ can potentially match, so that the building block is glued correctly. This can be achieved recursively, by ensuring that:
+
+- For every pair of matched nodes, their features must be exactly equal.
+- The center of $\mathcal{G}^B - c^B$ matches the center of attaching $c$ .
+- For a node $v \in V$ of $\mathcal{G}$ and its match $v_{B} \in V^{B}$ , every one of its neighbors $v'$ ( $(v, v') \in E$ ) has to match a neighbor $v_{B}'$ of $v_{B}$ ( $(v_{B}, v_{B}') \in E^{B}$ ).
+
+This recursive definition can be satisfied by exploring the possible matchings from the center $c$ outwards. In particular, we explore the $i$ -hop neighborhoods one by one for $i = 1,2,\dots ,l$ . We try all possible matchings $v_{B}$ for the given node $v$ , such that their features match, and the matches of its neighbors (in particular those which have already been traversed) are also connected to $v_{B}$ (Line 7).
+
+After all possible matchings are generated, it is easy to substitute any nodes in the original graph with those in the building block, in order to obtain the set of all possible gluings (Lines 13-16)
+
+Algorithm 5 Gluing a graph with a building block
+1: function GLUE( $\mathcal{G}, \mathcal{G}^B, c, l$ )
+2: $\hat{M} \gets \{\{(c, c^B)\}\}$
+3: for $i = 1, 2, \dots, l$ do
+4: for $v \in \{v|\mathrm{dist}(c, v) = i\}$ do
+5: $\hat{M}_{\mathrm{new}} \gets \{\}$
+6: for $\mathcal{M} \in \hat{M}$ do
+7: $\hat{M}_{\mathrm{new}} \gets \hat{M}_{\mathrm{new}} \times \{(v, v_B) | X_v = X_{v_B} \land \cap_{(v, v') \in E, (v', v'_B) \in \mathcal{M}} (v_B, v'_B) \in E^B\}$
+8: $\hat{M} \gets \hat{M}_{\mathrm{new}}$
+9: $\mathbb{G} \gets \{\}$
+10: for $\mathcal{M} \in \hat{M}$ do
+11: $\hat{V} \gets V \setminus \mathcal{N}_{\mathcal{G}}^l(c) \cup V_B$
+12: $\hat{E} \gets E^B$
+13: for $(v, v') \in E$ do
+14: $v = v_B$ if $\exists v_B.(v, v_B) \in \mathcal{M}$ else $v$
+15: $v' = v'_B$ if $\exists v'_B.(v', v'_B) \in \mathcal{M}$ else $v'$
+16: $\hat{E} \gets \hat{E} \cup \{(v, v')\}$
+17: $\mathbb{G} \gets \mathbb{G} \cup \{(\hat{V}, \hat{E})\}$
+18: return $\mathbb{G}$
+
+# A.4 FEATURE-BY-FEATURE FILTERING ALGORITHM
+
+Algorithm 6 Filtering nodes feature-by-feature
+1: function FILTERNODES( $\{\mathcal{F}_i\}_{i \in \{1, \dots, m\}}, \frac{\partial \mathcal{L}}{\partial W_0}, \tau$ )
+2: $\{\mathcal{T}_{0,i}^*\}_{i \in \{1, \dots, m\}}, d_{sum} \gets \{\emptyset\}_{i \in \{1, \dots, m\}}, |\mathcal{F}_1|$
+3: for $k \in \{1, \dots, m\}$ do
+4: $\mathcal{T}_{0,k}^* \gets \mathcal{T}_{0,k-1}^* \times \mathcal{F}_k$
+5: $d_{sum} \gets d_{sum} + |\mathcal{F}_k|$
+6: if $d_{sum} > \text{rank}(\frac{\partial \mathcal{L}}{\partial W_0})$ then ▷ This is a requirement for the filtering to work
+7: $\mathcal{T}_{0,k}^* \gets \text{FILTER}(\mathcal{T}_{0,k}, \frac{\partial \mathcal{L}}{\partial W_0}[: d_{sum}], \tau, \lambda v.\mathbf{X}_v^0)$
+8: return $\mathcal{T}_{0,m}^*$
+
+Here we describe how we build and filter 0-hop neighborhoods, i.e. the single node client feature vectors. While DAGER directly enumerates and filters all possible text input feature vectors, for many graph data applications this procedure is impractical. To this end, we instead recover the node features one-by-one, as described next.
+
+For the first feature, we generate all partial input vectors associated with the values in $\mathcal{F}_1$ and then filter them to create the set of consistent partial input vectors $\mathcal{T}_{0,1}^*$ . To do so, we apply our span-check on the truncated input layer gradients $\frac{\partial\mathcal{L}}{\partial W^0}[:|\mathcal{F}_1|]$ corresponding to the input entries of the first feature. This is possible since, by Thm. 5.1, the truncated $i$ -th row of $\mathbf{X}$ , $\mathbf{X}[i,:|\mathcal{F}_1|]$ , is in $\mathrm{colspan}(\frac{\partial\mathcal{L}}{\partial W^0}[:|\mathcal{F}_1|])$ . For each subsequent feature, we similarly filter the set of vectors corresponding to combinations between a partially recovered vector in $\mathcal{T}_{0,i-1}^*$ and a value in $\mathcal{F}_i$ by applying Thm. 5.1 to obtain the set of consistent partial input vectors up to feature $i\mathcal{T}_{0,i}^*$ . Finally, we obtain $\mathcal{T}_0^* = \mathcal{T}_{0,m}^*$ . A pseudocode for this approach is provided in Alg. 6.
+
+# A.5 STRUCTURE-BASED FILTERING ALGORITHM
+
+Algorithm 7 Structure filtering algorithm
+1: function STRUCTUREFILTER $(T_L^*,\frac{\partial L}{\partial W})$
+2: for $\mathcal{G}\in \mathcal{T}_L^*$ do
+3: if $\Delta_{\mathcal{G}} = = 0$ then
+4: return $\mathcal{G}$
+5: CanGlue $\leftarrow$ True
+6: for $v\in V$ do
+7: if $\exists \mathcal{G}^B\in \mathcal{T}_L^*. \mathrm{glue}(\mathcal{G},\mathcal{G}^B,v)$ then
+8: CanGlue $\leftarrow$ False
+9: break
+10: if CanGlue then
+11: $\mathcal{T}_B^* \gets \mathcal{T}_B^* \cup \{\mathcal{G}\}$
+12: return $\mathcal{T}_B^*$
+
+# A.6 DEPTH-FIRST SEARCH IMPLEMENTATION
+
+We present the pseudocode for branching the DFS tree:
+
+Cycles exploration After every step of gluing possible building blocks from $\mathcal{T}_B^*$ to $\mathcal{G}_{\mathrm{curr}}$ at node $v$ (line 5 in Alg. 8), we enumerate all sets $S$ of pairs $(v_{1} \in \mathcal{G}_{\mathrm{curr}}, v_{2} \notin \mathcal{G}_{\mathrm{curr}})$ of vertices of any graph $\mathcal{G}' \in \mathbb{G}$ such that the features of $v_{1}$ and $v_{2}$ match (line 9 in Alg. 8). For every such set $S$ , we additionally consider for exploration the graph $\hat{\mathcal{G}}' = \mathrm{overlap}(\mathcal{G}', S)$ created by overlapping each pair of vertices in $S$ (line 10 in Alg. 8). Intuitively, this allows us to reconstruct any cycle of the input graph. All valid overlaps, including those with $S = \emptyset$ , where the graph remains unchanged, are then added as branches of the search space (line 8 in Alg. 4).
+
+Algorithm 8 Generate graphs for branch
+1: function BRANCH( $T_B^*$ , $G_{\text{curr}}, v$ )
+2: $G_{\text{new}} \gets \{\}$
+3:
+4: for $B \in T_B^*$ do
+5: $G \gets \text{glue}(G_{\text{curr}}, B, v)$
+6: if $G \neq \emptyset$ then
+7: $G_{\text{new}} \gets G_{\text{new}} \cup G$
+8: for $G' \in G$ do
+9: for $S \subseteq \{V(G') \setminus V(G_{\text{curr}})\} \times V(G_{\text{curr}})$ do
+10: $G_{\text{new}} \gets G_{\text{new}} \cup \{\text{overlap}(G', S)\}$
+11:
+12: return $G_{\text{new}}$
+
+Node overlapping In this paragraph, we describe how the overlapping function (used in line 10 in Alg. 8) works. Given a graph $\mathcal{G}'$ and a set of pairs of nodes $S$ , if some pair has two nodes with different node feature vectors, the function returns an empty graph. Otherwise, for each pair $(v_{1}, v_{2}) \in S$ we modify the current graph by deleting $v_{2}$ and connect add an edge between $v_{1}$ and any node that was previously a neighbor of $v_{2}$ but not $v_{1}$ . After doing these overlaps for every pair of nodes in $S$ , the new graph is returned.
+
+# B THE GSM METRIC
+
+We designed the GSM set of metrics so that they satisfy the following three qualities:
+
+- The metric should be efficiently computable in polynomial time
+- It should capture both structural and feature-wise information
+- Isomorphic graphs should be guaranteed to achieve a $100\%$ score
+
+To this end, we define $\mathrm{GSM - N}_F(\mathcal{G},\hat{\mathcal{G}})$ under a set of functions $F = \{F_k\}_{k = 1}^N$ , where for all $k$ $F_{k}:\mathcal{G}\to \mathbb{R}^{|\mathcal{V}| \times d}$ is a function that aggregates the feature vectors for each $k$ -hop neighborhood. This allows us to measure the similarities in features across increasingly larger subgraphs, which capture the structure around each node. In our case we utilise a randomly initialised $\geq k$ -layer GCN to achieve such a mapping.
+
+We note that a precise evaluation of the metric requires for us to match the 2 graphs as accurately as possible. Since exact matching of graphs has no known polynomial-time algorithm (Babai, 2016), we match the graph nodes by applying the Hungarian matching algorithm (Frank, 2005) for minimizing a cost function $C$ that captures the feature difference across (0-5)-hop neighborhoods:
+
+$$
+\boldsymbol {C} _ {i j} = \sum_ {k = 0} ^ {2} \sum_ {m = 1} ^ {d} (F _ {k} (\mathcal {G}) - F _ {k} (\hat {\mathcal {G}})) _ {m} ^ {2}
+$$
+
+We can hence define:
+
+$$
+\operatorname {G S M - N} _ {F} (\mathcal {G}, \hat {\mathcal {G}}) = \left\{ \begin{array}{l l} \operatorname {F 1 - S c o r e} (F _ {N} (\mathcal {G}), F _ {N} (\hat {\mathcal {G}})) & \text {i f F _ {N} (\mathcal {G}) - d i s c r e t e} \\ R ^ {2} (F _ {N} (\mathcal {G}), F _ {N} (\hat {\mathcal {G}})) & \text {i f F _ {N} (\mathcal {G}) - c o n t i n u o u s} \end{array} \right.
+$$
+
+First of all, the NP-complete nature of the subgraph isomorphism problem makes it difficult to do any subgraph or full-graph matching, which we tackle by utilising the hidden states of a GCN to create an approximate matching between nodes. The method described above ensures that for isomorphic graphs, the correct k-hop neighborhoods will be matched and the GSM-k metric will achieve a perfect score.
+
+The second requirement is rarely satisfied by metrics defined in the literature (i.e. the edit distance), as comparison studies on coloured graphs are limited. Our solution to these problems was inspired by the ROUGE set of metrics (Lin, 2004), used for evaluation of textual similarity. Instead of
+
+comparing sequences such as unigrams or bigrams like ROUGE, we instead compute continuous properties of graphs on the scale of different k-hop neighbourhoods. This rationale allows us to compare both node-based and structural properties using a simple methodology.
+
+# C ADDITIONAL EXPERIMENTS
+
+Here we present additional experiments that are not part of the main text.
+
+# C.1 HUMAN EVALUATION FOR THE GSM SET OF METRICS
+
+We performed a human evaluation, where 3 experts in Graph Theory and Chemistry were shown 120 sample reconstructions of molecules, as given by DLG and GRAIN. The samples were shuffled, and the participants were tasked to assign a score from 0 to 10, with the following instructions:
+
+"Thank you for agreeing to participate in this study on the quality of graph reconstructions! We have gathered a set of graphs, coupled with the best-effort reconstruction. Please give each pair a score of 0-10, where 0 is a complete lack of similarity, and 10 is a perfect match. When assigning a score, take into account the structure of the two graphs, as well as the atom type for matching atoms, and also be wary that 2 graphs might be isomorphic, but have different pictures. Please disregard the connections between atoms, as the methods we used do not recover any edge properties. Give your, as best as possible, score on how similar the graphs are with respect to these properties."
+
+Reconstructed samples from both GRAIN and DLG were shuffled and anonymized before being presented to the participants. We report the average scores for each algorithm, multiplied by a factor of 10 to match the order of magnitude of the GRAPH metrics, and present the results in Tab. 1. We observe very good correlation between our metrics and the reported human scores, even though our metrics are slightly more lenient to completely wrong reconstructions, compared to the evaluators. This leniency provides a slight advantage to the baseline attacks when measured using our metrics, as the baselines fail catastrophically more often.
+
+Based on these studies, we also show in Tab. 7 that our partial reconstructions are deemed more significant than what the metric suggests, likely meaning that there are examples which present significant information leakage. In contrast, high-scoring examples from the DLG attacks have been rated as essentially uninformative.
+
+Table 7: Score discrepancy examples between human evaluators and the GRAPH set of metrics. G-1 stands for the GRAPH-1 metric.
+
+
GT
GRAIN
G-1
Study
GT
DLG
G-1
Study
62.0
93.3
CH2NH2CH2OH2Mo Nd
52.7
10.0
41.3
63.3
CH2OCH2OH
61.0
23.3
33.5
56.7
CH2OH CH2OH
41.0
0.0
+
+Additional examples of molecule reconstructions comparing GRAIN, DLG, and TabLeak are shown in Fig. 5. In this set of examples, the first 3 columns show the exact reconstruction of the input. We also highlight that in cases where GRAIN does not managed to recover the entire graph, the attack can reconstruct subgraphs of the input (4th column), and a more realistic approximation otherwise (5th column).
+
+
+Figure 5: Examples of molecule reconstructions compared between GRAIN, DLG, and TabLeak.
+
+# C.2 ADDITIONAL CHEMICAL DATASETS
+
+Table 8: Results (in %) of main experiments on 3 biochemical datasets - Tox21, Clintox, BBBP. Here "+" refers to the baseline attack with the input adjacency matrix given.
+
+
GSM-0
GSM-1
GSM-2
FULL
Runtime[h]
Tox21
GRAIN
86.9+4.2
83.9+5.2
82.6+5.7
68.0 ± 1.7
14.3
DLG
31.8+4.5
20.3+5.5
22.8+6.6
1.0 ± 0.2
3.3
DLG +A
54.7+3.9
60.1+4.6
76.7+3.6
1.0 ± 0.2
3.1
TabLeak
25.1+5.1
12.4+5.5
10.8+5.6
1.0 ± 0.2
13.1
TabLeak +A
55.6+3.9
57.7+4.1
73.8+2.8
1.0 ± 0.2
12.3
Clintox
GRAIN
73.7+5.7
68.4+6.7
66.8+7.0
36.0 ± 1.2
24.1
DLG
24.0+4.1
10.3+4.8
12.2+5.5
1.0 ± 0.2
3.5
DLG +A
52.5+3.2
52.6+4.1
72.3+3.2
1.0 ± 0.2
3.2
TabLeak
17.6+3.7
6.0+4.0
5.4+4.2
1.0 ± 0.2
15.2
TabLeak +A
54.0+3.4
52.0+3.8
62.8+3.3
1.0 ± 0.2
14.5
BBBP
GRAIN
71.7+5.9
66.8+6.9
64.9+7.2
38.0 ± 1.2
23.7
DLG
22.6+3.6
8.8+4.9
10.0+5.3
0.0 ± 0.0
3.9
DLG +A
51.6+3.1
50.1+3.8
70.6+3.1
0.0 ± 0.0
3.1
TabLeak
17.6+3.8
6.3+3.8
4.7+3.7
0.0 ± 0.0
12.6
TabLeak +A
59.1+3.1
59.4+3.6
71.9+2.9
0.0 ± 0.0
12.5
+
+In this section, we present our results on additional chemical datasets, namely Clintox and BBBP (Wu et al., 2018). We highlight in Tab. 8 that GRAIN generalizes across all settings, retaining
+
+its increased performance over the baseline attacks. We reaffirm that we achieve these results despite running for time comparable to the one of Tableak.
+
+# C.3 ADDITIONAL ABLATION STUDIES
+
+We perform additional ablation studies on various assumptions and parameters, demonstrating their effects on GRAIN. In particular, we observe how architectural changes might affect our performance, or how properties of the data might influence reconstructability.
+
+Table 9: Results (in %) of main experiments with the LBFGS optimizer. Here "+" refers to the baseline attack with the input adjacency matrix given.
+
+
GCN
GAT
GSM-0
GSM-1
GSM-2
FULL
Min/Rec
GSM-0
GSM-1
GSM-2
FULL
Min/Rec
CiteSeer
GRAIN
62.5+7.7-8.2
31.0+8.0-7.8
31.6+8.1-8.1
20.0±0.8
1.5
79.3+4.7-6.3
69.1+6.1-6.4
69.6+6.2-6.0
61.0±1.6
0.8
DLG
67.7+3.9-3.7
0.0+0.0-0.0
0.3+0.5-0.3
0.0±0.0
24.8
67.7+3.9-3.7
0.0+0.0-0.0
0.0+0.0-0.0
0.0±0.0
31.0
DLG+A
67.7+4.1-3.7
0.0+0.0-0.0
0.0+0.0-0.0
0.0±0.0
29.9
67.7+4.0-3.7
0.0+0.0-0.0
0.0+0.0-0.0
0.0±0.0
27.7
TabLeak
67.7+3.9-3.7
0.0+0.0-0.0
0.0+0.0-0.0
0.0±0.0
158.8
67.7+3.9-3.8
0.0+0.0-0.0
0.0+0.0-0.0
0.0±0.0
153.0
TabLeak+A
67.7+4.0-3.7
0.0+0.0-0.0
0.0+0.0-0.0
0.0±0.0
202.0
67.7+4.0-3.7
0.0+0.0-0.0
0.0+0.0-0.0
0.0±0.0
148.7
Popec
GRAIN
58.3+5.9-5.9
50.7+7.9-7.8
55.8+8.3-7.9
15.0±0.8
0.1
97.2+1.6-1.9
93.5+3.4-4.2
96.3+1.9-2.3
79.0±1.8
0.2
DLG
44.6+6.8-6.2
11.3+16.0-11.3
13.7+20.1-13.7
0.0±0.0
37.8
44.7+2.3-2.3
2.2+3.1-2.2
0.0+0.0-0.0
0.0±0.0
26.3
DLG+A
48.7+12.7-8.6
39.1+18.7-16.9
51.8+15.9-15.8
1.0±0.2
38.5
57.4+3.7-3.9
69.5+3.6-4.0
88.6+2.0-2.1
0.0±0.0
21.6
TabLeak
49.6+8.7-6.6
8.2+12.0-8.2
5.6+9.3-5.6
0.0±0.0
177.5
50.8+12.4-8.9
13.9+13.5-12.3
7.9+11.9-7.9
0.0±0.0
204.5
TabLeak+A
49.9+4.1-4.3
38.1+5.8-5.9
58.9+6.1-6.6
0.0±0.0
216.0
52.6+3.3-3.3
68.1+4.1-3.9
82.7+4.0-4.9
0.0±0.0
254.5
+
+Effect of optimizer on baseline results In our main experiments we presented results for the CiteSeer and Pokec datasets with the baselines running an SGD optimizer. In Tab. 9, we present results with the more stable LBFGS optimizer averaged across 10 reconstructions due to time limits. We see that the baselines show better performance, however, GRAIN still outperforms them and is less resource-consuming, requiring up to $100 \times$ less runtime.
+
+Effect of model parameters on reconstruction quality First, in Tab. 10 and Tab. 11 we demonstrate the performance of GRAIN under modifying the model parameters. We observe that neither changing in the number of layers nor the hidden dimension size of the GCN substantially affects the performance of GRAIN, while reaffirming the significant improvement over the baselines, even when they are given the graph connections as prior knowledge. We note that we only utilise the first 2 GCN layers even when $L > 2$ , showing the robustness of our method.
+
+Additionally, we note that GRAIN is not significantly impacted by the embedding dimension $d'$ , as long as $n < d'$ , consequently achieving similar scores, particularly for small graphs. We show the exact results in Tab. 11.
+
+Effect of span check threshold on filtering capabilities We now investigate the effect of the choice for the $\tau$ threshold, used for filtering inputs using the span check method. We measure the ratio between the number of nodes and 1-hop building blocks that pass the filter, and the actual number of these blocks. We explore different values of $\tau$ in the range $[10^{-6}, 1]$ , and evaluate this metric on 10 randomly chosen samples from the Tox21 dataset. We show in Fig. 6 that any $\tau \in [10^{-4}, 10^{-2}]$ results in essentially the same filtering results, and that thresholds in this interval perfectly recover the correct 1-hop building blocks.
+
+Adjacency matrix low-rankness effect on reconstructability Further, in Fig. 3b we looked into how the rank-deficiency of the adjacency matrix $A$ affects how much of the input GRAIN might be able to recover. For different sizes of $A$ , we measure what the Monte-Carlo probability of $A$ being full-rank, and the fraction of nodes we can recover, as computed per Thm. 5.1. This was done for synthetic graphs, where we sampled 100,000 symmetric binary matrices with varying probability of every 2 nodes being connected, as well as for all molecular graphs in the chemical datasets Clintox, Tox21 and BBBP. We show that Thm. 5.1 is crucial for understanding why GRAIN is effective, despite the probability of $A$ being full-rank being low. In particular, we highlight in Fig. 3b that GRAIN can recover an increasing fraction of nodes as $A$ grows.
+
+Table 10: Results (in %) of GRAIN and the baselines in cases of different model parameters. Here $L$ is the number of GCN layers and ${d}^{\prime }$ is the model’s width. $L = 2,{d}^{\prime } = {300}$ is the original setting.
+
+
GSM-0
GSM-1
GSM-2
FULL
L=2,d'=300(default)
GRAIN
86.9+4.2-5.7
83.9+5.2-6.9
82.6+5.7-7.4
68.0±1.7
DLG
31.8+4.5-4.3
20.3+5.5-4.8
22.8+6.6-5.6
1.0±0.2
DLG+A
54.7+3.9-4.2
60.1+4.6-5.2
76.7+3.6-4.8
1.0±0.2
TabLeak
25.1+5.1-4.3
12.4+5.5-4.3
10.8+5.6-3.9
1.0±0.2
TabLeak+A
55.6+3.9-3.9
57.7+4.1-4.6
73.8+2.8-3.5
1.0±0.2
L=3,d'=300
GRAIN
82.5+5.7-7.7
80.7+6.3-7.7
80.4+6.2-7.8
63.0±1.6
DLG
20.3+4.3-3.4
7.8+5.1-3.3
8.2+5.3-3.4
1.0±0.2
DLG+A
43.0+3.7-3.6
48.0+4.3-4.5
66.0+3.7-4.6
1.0±0.2
TabLeak
16.5+3.8-2.9
8.8+4.4-3.1
8.0+4.3-3.0
1.0±0.2
TabLeak+A
47.5+4.0-4.2
48.1+4.8-5.0
62.9+4.3-4.4
1.0±0.2
L=4,d'=300
GRAIN
83.9+5.5-7.4
82.8+5.9-7.7
82.8+6.0-7.9
64.0±1.6
DLG
14.1+3.8-2.8
4.0+4.7-2.2
4.8+4.9-2.6
1.0±0.2
DLG+A
39.1+3.7-3.8
37.0+5.3-5.4
55.6+5.0-5.7
1.0±0.2
TabLeak
12.0+3.4-1.9
2.1+4.3-1.4
3.4+4.0-1.7
1.0±0.2
TabLeak+A
30.0+4.7-4.0
27.3+5.9-5.1
51.1+4.9-5.3
1.0±0.2
L=2,d'=200
GRAIN
84.6+4.6-6.4
81.4+5.8-6.9
80.5+5.9-7.2
62.0±1.6
DLG
30.8+4.5-4.1
18.9+5.8-4.9
22.2+6.7-5.4
1.0±0.2
DLG+A
50.3+4.2-4.2
53.4+5.3-5.9
68.7+4.9-6.1
3.0±0.4
TabLeak
22.1+4.8-3.7
10.3+5.3-3.6
8.9+5.5-3.6
1.0±0.2
TabLeak+A
55.0+4.8-5.0
62.1+4.9-5.9
76.7+3.6-4.7
1.0±0.2
L=2,d'=400
GRAIN
85.2+4.6-6.1
81.5+5.4-7.1
80.1+6.1-7.5
63.0±1.6
DLG
35.1+4.9-4.7
26.1+6.4-5.6
25.0+6.9-6.0
1.0±0.2
DLG+A
57.6+3.9-4.3
61.7+4.7-5.5
72.5+4.3-5.5
2.0±0.3
TabLeak
28.5+4.5-4.0
17.1+5.4-4.4
12.9+5.4-4.0
1.0±0.2
TabLeak+A
61.7+3.6-3.7
62.6+3.6-4.4
76.3+2.9-3.3
1.0±0.2
+
+Table 11: Results (in %) of GRAIN with different embedding dimensions across a range of graph sizes
+
+
n≤15
16≤n≤25
26≤n
GSM-0
GSM-2
FULL
GSM-0
GSM-2
FULL
GSM-0
GSM-2
FULL
d=300
93.0+3.4-5.4
91.6+3.8-6.3
81.9±1.7
81.7+3.9-4.8
74.8+5.8-6.3
43.6±1.1
50.1+6.8-7.1
39.2+8.5-7.7
5.1±0.6
d=128
92.1+3.2-5.0
92.3+3.9-5.7
79.3±1.6
81.4+4.0-4.8
75.1+5.7-6.6
43.6±1.1
49.3+7.2-6.5
38.8+8.7-7.6
5.1±0.6
d=64
92.2+3.0-5.5
92.0+4.0-5.9
79.3±1.6
81.3+4.1-4.7
75.5+5.8-6.5
43.6±1.1
48.6+7.4-6.5
37.9+9.0-7.7
5.1±0.6
d=32
92.2+3.0-5.5
91.7+3.6-6.5
79.3±1.6
81.7+4.0-4.4
73.8±6.1
43.6±1.1
15.3+2.8-4.4
13.3+2.5-3.9
0.0±0.0
+
+# D LIMITATIONS
+
+GRAIN is the first algorithm to advance the field of gradient inversion for graph data, and we see significant potential for further development. However, our attack method currently assumes that the FL protocol includes node degree as a node feature. While this assumption holds in many GNN settings, relaxing it leads to reduced performance. Improving performance under relaxed assumptions is an important direction for future research.
+
+Another key area for improvement is reducing the computational complexity of GRAIN, enabling it to scale to larger graphs and graphs with nodes of higher degree. We believe this to be a promising future direction, as there are many potential optimizations that could enhance the algorithm's
+
+Table 12: Results (in %) of GRAIN tested on the Pokec social network dataset (Rossi & Ahmed, 2015). 20 subgraphs were sampled for each of the size ranges 25-30, 30-40, 40-50 and 50-60
+
+
n
GSM-0
GSM-1
GSM-2
FULL
Runtime[h]
25-30
98.3+0.2-0.4
95.1+0.5-1.1
96.8+0.4-0.9
17/20
0.17
30-40
83.1+2.3-3.4
61.6+3.1-3.0
79.4+2.7-3.6
5/20
0.46
40-50
69.3+3.2-3.8
38.0+4.7-4.3
59.2+3.7-4.0
2/20
0.64
50-60
32.7+4.8-3.9
23.3+4.2-3.5
41.2+4.6-4.1
3/20
0.43
Total
70.9+6.2-6.5
55.6±7.2
69.2+6.4-6.6
27/80
1.70
+
+efficiency. Particularly promising is using data priors that have the potential to severely reduce the number of span checks that need to be performed by efficiently filtering impossible subgraphs.
+
+Additionally, GRAIN relies on the assumption that the GNN architecture satisfies Asm. A.1. While this assumption holds for widely used GNNs like GCN and GAT, adapting our algorithm to support other GNN types is left for future work.
+
+Moreover, as discussed in Sec. 5, GRAIN requires that $n < d'$ to maintain the low-rank nature of gradient updates. While this is a limitation, we believe it applies to many real-world scenarios, meaning that practical FL settings remain vulnerable to privacy risks.
+
+Another assumption GRAIN depends on is that the weighted adjacency matrix $\mathbf{A}$ is high-rank, with full reconstruction possible only if $\mathbf{A}$ is full-rank. While this holds for GAT architectures, it is not always true for GCNs as presented in Fig. 3b. Relaxing the full-rankness
+
+Figure 6: Ablation study on the span check filtering threshold $\tau$ .
+
+
+
+assumption would be a crucial step toward better understanding privacy risks in FL for GNNs.
+
+Finally, we leave the investigation of potential defenses against GRAIN as well as more complex federated learning protocols such as Federated Averaging for future work.
\ No newline at end of file
diff --git a/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/images.zip b/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..bad4943bd39dec77784069605bd9b5073844564b
--- /dev/null
+++ b/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:32f9de78f953f617f3e285b43422f78da11649fb9979fce469ef2d13f5da9ab5
+size 1223689
diff --git a/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/layout.json b/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..c683e228faefe7fb822dbfc9a4e71926ec6b5477
--- /dev/null
+++ b/ICLR/2025/GRAIN_ Exact Graph Reconstruction from Gradients/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:991da112b6c342aa7d3552c2246ff71e01f747a6a3cfc5445ca7c349603a4c88
+size 1095279
diff --git a/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/a2ef67e2-66e1-4dd1-8016-60b6fa9e1b23_content_list.json b/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/a2ef67e2-66e1-4dd1-8016-60b6fa9e1b23_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..83225187fd6b091f1e89190a967586655ba46cbf
--- /dev/null
+++ b/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/a2ef67e2-66e1-4dd1-8016-60b6fa9e1b23_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:83755db4ac19c159f8ecb07daf6889d6c3dea9c6a08de8854172bb4f6f5d3cc2
+size 135778
diff --git a/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/a2ef67e2-66e1-4dd1-8016-60b6fa9e1b23_model.json b/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/a2ef67e2-66e1-4dd1-8016-60b6fa9e1b23_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..259498bd4ab7e8b6975b936612e7589da54f26ec
--- /dev/null
+++ b/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/a2ef67e2-66e1-4dd1-8016-60b6fa9e1b23_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a3b0b81ee590dd33b45e1e12ea8f027ca65d372f1e4125c0fe0c65c2566d79e8
+size 157194
diff --git a/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/a2ef67e2-66e1-4dd1-8016-60b6fa9e1b23_origin.pdf b/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/a2ef67e2-66e1-4dd1-8016-60b6fa9e1b23_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..32dce02deedb0de6cb24467cc92529c3accccf96
--- /dev/null
+++ b/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/a2ef67e2-66e1-4dd1-8016-60b6fa9e1b23_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2b2bad028324fb2673ae4f53c45e57599c6ea09e77c8f78bedca69ba0d7a62a1
+size 14161966
diff --git a/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/full.md b/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..9e0c846eb56ea9989fbfefb94c6e636831bf118e
--- /dev/null
+++ b/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/full.md
@@ -0,0 +1,431 @@
+# GROOT-2: WEAKLY SUPERVISED MULTIMODAL INSTRUCTION FOLLOWING AGENTS
+
+Shaofei Cai $^{1,2}$ ; Bowei Zhang $^{3}$ ; Zihao Wang $^{1,2}$ , Haowei Lin $^{1,2}$
+
+Xiaojian Ma $^{5}$ , Anji Liu $^{4}$ , Yitao Liang $^{1\dagger}$
+
+$^{1}$ Institute for Artificial Intelligence, Peking University
+
+$^{2}$ School of Intelligence Science and Technology, Peking University
+
+3School of Electronics Engineering and Computer Science, Peking University
+
+4Computer Science Department, University of California, Los Angeles
+
+$^{5}$ Beijing Institute for General Artificial Intelligence (BIGAI)
+
+{caishaofei,zhangbowei,zhwang}@stu.pku.edu.cn,xiaojian.ma@ucla.edu
+
+{linhaowei,yitaol}@pku.edu.cn, liuanji@cs.ucla.edu
+
+# ABSTRACT
+
+Developing agents that can follow multimodal instructions remains a fundamental challenge in robotics and AI. Although large-scale pre-training on unlabeled datasets (no language instruction) has enabled agents to learn diverse behaviors, these agents often struggle with following instructions. While augmenting the dataset with instruction labels can mitigate this issue, acquiring such high-quality annotations at scale is impractical. To address this issue, we frame the problem as a semi-supervised learning task and introduce GROOT-2, a multimodal instructable agent trained using a novel approach that combines weak supervision with latent variable models. Our method consists of two key components: constrained selfimitating, which utilizes large amounts of unlabeled demonstrations to enable the policy to learn diverse behaviors, and human intention alignment, which uses a smaller set of labeled demonstrations to ensure the latent space reflects human intentions. GROOT-2's effectiveness is validated across four diverse environments, ranging from video games to robotic manipulation, demonstrating its robust multimodal instruction-following capabilities.
+
+
+Figure 1: By feeding a mixture of demonstrations and some multimodal labels, we learn GROOT-2, a human-aligned agent capable of understanding multimodal instructions and adaptable to various environments, ranging from video games to robot manipulation, including Atari, Minecraft, Language Table, and Simpler Env.
+
+# 1 INTRODUCTION
+
+Developing policies that can follow multimodal instructions to solve open-ended tasks in open-world environments is a long-standing challenge in robotics and AI research. With the advancement of large-scale pretraining (Brown et al., 2020; Baker et al., 2022; Brohan et al., 2022), the research paradigm for instruction-following policies has shifted from reinforcement learning to supervised
+
+
+Figure 2: The ELBO Objective of the VAE and Latent Space Spectrum. We define a spectrum based on $R = \frac{BC}{BC + KL}$ , where $R = 0$ corresponds to "mechanical imitation" and $R = 1$ to "posterior collapse." At low $R$ , latent vector $z$ directly outputs action sequences without considering observations ( $BC \to 0$ ). As $R$ increases, $z$ represents high-level task information, such as specific object interactions. At $R = 1$ , $z$ provides no beneficial information for decision-making.
+
+learning. In a supervised learning approach, researchers collect large amounts of demonstration data and annotate each demonstration with multimodal instructions—such as videos (Duan et al., 2017; Jang et al., 2022), texts (Padalkar et al., 2023; Lynch et al., 2023), and episode returns (Chen et al., 2021)—using hindsight relabeling. In theory, the instruction-following capability of such policies improves as the dataset grows. However, annotating demonstrations with high-quality multimodal labels is prohibitively expensive, making it challenging to scale these methods in practice.
+
+Another line of work (Lynch et al., 2020c; Ajay et al., 2020; Cai et al., 2023b) avoids the need for additional human annotations by learning from demonstration-only data in a self-supervised manner. These approaches leverage latent variable generative models (Kingma & Welling, 2013) to jointly learn an encoder and a latent-conditioned policy. The resulting policy is capable of completing multiple tasks specified by a reference video (Cai et al., 2023b). While a reference video is generally expressive enough to represent various tasks, the inherent ambiguity in videos can lead to a learned latent space that is misaligned with human intention. For example, the encoder module may capture the dynamics between adjacent frames in a video, thereby learning a latent representation of the action sequence—a process we refer to as "mechanical imitation." While this latent space accurately reconstructs the target action sequence, the resulting latent representation is difficult for human users to leverage during policy deployment. Another potential issue is "posterior collapse," where the latent space collapses to a single point and loses its influence over the policy during inference. We attribute this mismatch between training and inference to the absence of direct supervision for aligning the latent space with human intention. As illustrated in Figure 2, an ideal controllable latent-induced policy space must strike a balance between these two extremes.
+
+We present GROOT-2 (refer to Figure 1), a multimodal intractable agent developed using a latent variable model under weak supervision. To unify the training pipeline, we encode instructions from all modalities as distributions over the latent space. The training objectives consist of two key components: (1) constrained self-imitating, which utilizes large amounts of unlabeled demonstrations to enable the latent-conditioned policy to learn diverse behaviors; and (2) human intention alignment, which uses relatively small sets of multimodal labels to align the latent space with human intentions. Specifically, we apply the maximum log-likelihood method in the latent space for alignment. The underlying principle is that the latent embedding encoded by multimodal labels should also be sampled from the distribution learned from the corresponding video. Our approach is both general and flexible, as demonstrated through evaluations across four diverse environments—ranging from video games to robotic manipulation—including Atari Games (Bellemare et al., 2013), Minecraft (Johnson et al., 2016), Language Table Lynch et al. (2023), and Simpler Env (Li et al., 2024). These experiments highlight GROOT-2's robust ability to follow multimodal instructions, with extensive tests showing that scaling up either unlabeled or labeled demonstrations further enhances performance.
+
+# 2 BACKGROUND AND PROBLEMS
+
+# 2.1 LATENT VARIABLE MODELS ENABLE CONTROLLABLE BEHAVIOR GENERATION
+
+In recent years, the GPT series (Radford, 2018; Radford et al., 2019; Brown et al., 2020) has demonstrated impressive capabilities in controllable text generation. Its success can be attributed to
+
+self-supervised pretraining and the advantageous properties of natural language. A natural language paragraph contains rich dependencies between sentences. For instance, the title of an article sets the central theme for its body, and the response in a question-answer or dialogue is highly correlated with the preceding text. This characteristic enables large language models, trained via next-token prediction, to achieve controllable text generation through prompts during inference. Unfortunately, such strong correlations do not exist between low-level actions. A desired behavior may not have a necessary preceding trajectory segment. Thus, it isn't easy to prompt a pre-trained policy model to generate a desired behavior. Instead, the generation of actions depends on an underlying latent intention variable. A natural approach is to employ latent variable generative models to jointly model trajectory data and the latent variables that drive them, allowing for controllable behavior generation by manipulating the latent variables during inference. Next, we will elaborate on how latent variable models model trajectory data.
+
+As a classic latent variable generative model, Variational Autoencoder (VAE, Kingma & Welling (2013)) has been widely used in fields such as image generation and text generation. With the development of the offline pretraining paradigm, recent years have seen an increasing number of works utilizing VAE to model trajectory data. Typically, its architectures consist of three components: a posterior encoder, a prior encoder, and a policy decoder. The posterior encoder, $q(z|\tau)$ , encodes a specific behavioral trajectory $\tau = (\mathbf{o}_{1:N},\mathbf{a}_{1:N})$ and generates a posterior distribution over the latent space. When the action sequence can be accurately inferred from the observation sequence (Baker et al., 2022; Zhang et al., 2022)—i.e., when the inverse dynamics model of the environment $p_{\mathrm{IDM}}(\mathbf{a}_{1:N}|\mathbf{o}_{1:N})$ is easily learned—the action sequence can be excluded from the posterior's input (Cai et al., 2023b), thus reducing the distribution condition to $\mathbf{o}_{1:N}$ . The prior encoder, $p(z|\mathbf{o}_{1:k})$ , generates a distribution over the latent space based on the history of observations, where $k$ denotes the length of the observation window. When $k = 0$ , the prior distribution is independent of historical observations and is typically assumed to follow a standard normal distribution $\mathcal{N}(0;1)$ . The decoder, $\pi (\mathbf{a}_t|\mathbf{o}_{1:t},z)$ , is generally a latent-conditioned policy that takes in the environment's observations along with a specific latent variable to predict the next action to be executed. According to variational inference theory, we can optimize the VAE's modeling capabilities by maximizing the Evidence Lower Bound (ELBO)
+
+$$
+\mathcal {L} _ {\mathrm {E L B O}} = \mathbb {E} _ {z \sim q (z | \mathbf {o} _ {1: N})} \left[ \sum_ {t = k} ^ {N} - \log \pi (\mathbf {a} _ {t} | \mathbf {o} _ {1: t}, z) \right] + D _ {\mathrm {K L}} (q (z | \mathbf {o} _ {1: N}) \| p (z | \mathbf {o} _ {\leq k})). \tag {1}
+$$
+
+There are generally three main objectives for using VAE to model trajectory data: (1) Modeling multimodal behaviors (Lynch et al., 2020a; Mees et al., 2022): For instance, when trajectory data is collected from different individuals, the variations in action sequences across different behavior modes can be substantial. Directly applying a naive behavior cloning algorithm may result in poor modeling performance. Introducing an additional latent variable to differentiate between behavior modes can help mitigate conflicts between them during training. (2) Skill discovery (Xu et al., 2023; Gupta et al., 2019): Complex trajectory data is often composed of various skills. A VAE can abstract action sequences in a self-supervised manner, enabling skill reuse in downstream tasks, such as accelerating the exploration process in reinforcement learning (Pertsch et al., 2021; Ajay et al., 2020). (3) Following reference videos to complete open-ended tasks (also known as one-shot demonstration learning, Cai et al. (2023b)): This approach aims to leverage the learned posterior encoder to recognize the underlying intention behind a reference video and encode it as a latent, which can then drive a policy to complete the specified task in a novel deployment. It points to a way to pre-train instruction-following policies using unlabeled trajectory data. We primarily focus on the third objective in the following paragraphs.
+
+# 2.2 MODELING BEHAVIORS WITH VAE LEADS TO AMBIGUOUS LATENT SPACE
+
+Several studies on VAE (Alemi et al., 2018; Abeer et al., 2024) have pointed out that the Pareto frontier of the ELBO contains an infinite number of solutions for the latent space, a phenomenon we refer to as latent space ambiguity. To facilitate understanding, we provide an informal illustration in Figure 2, which shows several possible latent spaces when a VAE is used to model behaviors, all having similar ELBO values. We differentiate these latent spaces using the ratio $R = \frac{BC}{BC + KL}$ , where $R = 0$ and $R = 1$ represent two extremes of the latent space. When $R$ approaches 0, the latent condition contains much information, nearly dictating every action of the policy's behavior. We
+
+
+Figure 3: Comparison of Policies with Different Latent Spaces. The reference video depicts digging for diamonds. A policy that mechanically imitates the trajectory falls into lava, while one aligned with human intention avoids lava and successfully reaches the diamonds.
+
+refer to this as mechanical imitation, where the VAE effectively degenerates into an Autoencoder (AE). Conversely, when $R$ approaches 1, the latent loses its ability to control the policy's output, a phenomenon known as posterior collapse (Fang et al., 2019; Pagnoni et al., 2018), in which the VAE reduces to an Auto-regressive (AR) model. Intuitively, as $R$ increases, the information encoded in the latent space becomes more high-level, and the policy relies more on environmental feedback (observations) to make decisions that align with the dataset's distribution. On the other hand, when $R$ is smaller, the policy tends to down-weight the environment's observations.
+
+Not all latent spaces effectively support following a reference video. As shown in Figure 3, the gap between the environment state in the reference video and during policy deployment requires the posterior encoder to extract intentions independent of environmental dynamics. For instance, in the Minecraft task "mining a diamond underground," a reference video may show a player walking forward and mining a diamond. If the latent encodes only the trajectory sketch, the policy might fail by colliding with obstacles in the deployment environment. This mismatch occurs because humans interpret the video as "mining the diamond" rather than copying specific actions. Aligning the latent space with human intentions is critical for improving policy steerability.
+
+# 3 ALIGNING POLICY LEARNERS WITH WEAK SUPERVISION
+
+We explore the development of instructable agents based on latent variable models. To avoid "latent space ambiguity", we introduce human intention knowledge into the generative pretraining process of the policy model to assist in shaping the latent space. As multimodal labels associated with demonstrations carry rich human intention details, we propose a weakly supervised policy learning algorithm to leverage large amounts of unlabeled demonstration data to learn the latent space while using a small amount of multimodal labeled data to align the latent space with human intention. Ultimately, this enables instructions from all modalities to be unified within the same latent space. Next, we will elaborate on the dataset collection, training pipeline, and inference procedure.
+
+Dataset Collection. We can collect two types of training data from the web: a large set of unlabeled demonstrations $\mathcal{D}_{\mathrm{dem}} = \{(\mathbf{o}_{1:N},\mathbf{a}_{1:N})\}$ and a relatively small set of annotated demonstrations $\mathcal{D}_{\mathrm{lab}} = \{(\mathbf{o}_{1:N},\mathbf{a}_{1:N},\mathbf{w}_{1:M})\}$ , where $\mathbf{o}$ is the image observation provided by the environment, $\mathbf{a}$ is the action taken by the policy, $\mathbf{w}$ is the word token, $N$ is the length of a demonstration, $M$ is the length of an annotation sentence. The annotation sentence can be multimodal, such as a language sentence (with $M\geq 1$ ) or a scalar of the episode return (with $M = 1$ ), which explains the behavior or outcome of the demonstration from a human's perspective. Since the annotation data is expensive to collect, we have $|\mathcal{D}_{\mathrm{lab}}|\ll |\mathcal{D}_{\mathrm{dem}}|$ .
+
+Training Pipeline. Our goal is to learn a shared latent space $\mathcal{Z}$ , per-modal instruction encoders $e(z|c)$ and a latent-conditioned policy $\pi (\mathbf{a}_t|\mathbf{o}_{\leq t},z)$ . Leveraging past observations is essential for a policy to make decisions in a partially observable environment such as Minecraft (Johnson et al., 2016). We call the learned policy model GROOT-2, whose training pipeline is shown in Figure 4. For an unlabeled demonstration $(\mathbf{o}_{1:N},\mathbf{a}_{1:N})$ , we use the encoder module to produce a prior distribution $e(z|\mathbf{o}_1)$ and a posterior distribution $e(z|\mathbf{o}_{1:N})$ . Using the reparameterization trick (Kingma & Welling, 2013), we sample the latent $z$ from the posterior distribution $e(z|\mathbf{o}_{1:N})$ and train the policy model, conditioned on $z$ and $\mathbf{o}_{1:t}$ , to reconstruct the entire action sequence causally. To limit the information presented in
+
+
+Figure 4: Pipeline for Constructing a Training Batch for GROOT-2. Each batch includes two sample types: (1) demonstration-only samples for learning a latent-conditioned policy (Constrained Self-Imitating); and (2) labeled samples (text or expected returns) for aligning the latent space with human intentions (Human Intention Alignment). The sample ratio varies by dataset distribution.
+
+the latent space, we introduce an auxiliary KL divergence term in the objective:
+
+$$
+\mathcal {L} _ {\mathrm {d e m}} (\mathbf {o}, \mathbf {a}) = \mathbb {E} _ {z \sim e (z | \mathbf {o} _ {1: N})} \left[ \sum_ {t = 1} ^ {N} - \log \pi \left(\mathbf {a} _ {t} \mid \mathbf {o} _ {1: t}, z\right) \right] + \beta_ {1} D _ {\mathrm {K L}} \left(e (z | \mathbf {o} _ {1: N}) \| e (z | \mathbf {o} _ {1})\right). \tag {2}
+$$
+
+This allows the model to leverage demonstration-only data to enhance the complexity of the latent space, a process we refer to as "constrained self-imitating." For a labeled demonstration $(\mathbf{o}_{1:N}, \mathbf{a}_{1:N}, \mathbf{w}_{1:M})$ , we pass the label $\mathbf{w}_{1:M}$ through the encoder module to obtain a latent distribution and train the policy model to reconstruct the action sequence based on the latent $z$ sampled from this distribution $e(z|\mathbf{w}_{1:M})$ . This allows human knowledge to be modeled in the latent space. Further, to make the encoder understand demonstration $\mathbf{o}_{1:N}$ just like humans, we introduce an auxiliary MLE term: maximize the log-likelihood of $e(z|\mathbf{o}_{1:N})$ given the latent $z$ sampled from $e(z|\mathbf{w}_{1:M})$ . Unlike the prior behavior cloning term, the aligning term can be quickly calculated in closed form. This process is referred to as "human intention alignment":
+
+$$
+\mathcal {L} _ {\mathrm {l a b}} (\mathbf {o}, \mathbf {a}, \mathbf {w}) = \mathbb {E} _ {z \sim e (z | \mathbf {w} _ {1: M})} \left[ \sum_ {t = 1} ^ {N} - \log \pi \left(\mathbf {a} _ {t} \mid \mathbf {o} _ {1: t}, z\right) \right] - \beta_ {2} \mathbb {E} _ {z \sim \operatorname {s g} [ e (z | \mathbf {w} _ {1: M}) ]} \left[ \log e (z | \mathbf {o} _ {1: N}) \right], \tag {3}
+$$
+
+where $\mathrm{sg}[\cdot ]$ denotes stop gradient operation. The MLE-based alignment objective ensures that the latent sampled from the label-conditioned distribution $e(z|w_{1:M})$ can also be sampled from its video-conditioned distribution $e(z|o_{1:N})$ . The final loss function combines the two objectives:
+
+$$
+\mathcal {L} \left(\mathcal {D} _ {\mathrm {d e m}}, \mathcal {D} _ {\mathrm {l a b}}\right) = \mathbb {E} _ {\left(\mathbf {o}, \mathbf {a}\right) \sim \mathcal {D} _ {\mathrm {d e m}}} \left[ \mathcal {L} _ {\mathrm {d e m}} (\mathbf {o}, \mathbf {a}) \right] + \mathbb {E} _ {\left(\mathbf {o}, \mathbf {a}, \mathbf {w}\right) \sim \mathcal {D} _ {\mathrm {l a b}}} \left[ \mathcal {L} _ {\mathrm {l a b}} (\mathbf {o}, \mathbf {a}, \mathbf {w}) \right]. \tag {4}
+$$
+
+Specific implementation details, such as the model design choice, can be found in the Appendix A.
+
+Inference Procedure. GROOT-2 supports two types of instructions during inference: (1) visual-based instruction – the user can either retrieve a demonstration from the dataset as a reference video or manually record a reference video to serve as the condition for the policy; (2) label-based instruction – the user can input a text sentence or specify an expected return as the condition (depending on the label modality used during the model's training). We tested them in the following experiments.
+
+# 4 CAPABILITIES AND ANALYSIS
+
+We aim to address the following questions: (1) How does GROOT-2 perform in open-world video games and robotic manipulation? (2) Can GROOT-2 follow instructions beyond language and video? (3) What insights can be gained from visualizing the learned latent space? (4) How does GROOT-2 scale with labeled and unlabeled trajectories? (5) What is the impact of backbone initialization on performance? (6) How do language and video losses influence performance?
+
+Environment and Benchmarks. We conduct experiments across four types of representative environments: classical 2D game-playing benchmarks on Atari (Bellemare et al., 2013), 3D open-world gameplaying benchmarks on Minecraft (Johnson et al., 2016; Lin et al., 2023), and Robotics benchmarks on Language Table simulator (Lynch et al., 2023) and Simpler Env simulator(Li et al.,
+
+
+(a) Atari
+
+
+(b) Minecraft
+Figure 5: Diverse visual environments used in the experiments. We test our GROOT-2 on both video games (simple Atari games and the complex Minecraft game) and robotic manipulation environments (Language Table and Simpler Env). Minecraft is a partially observable open-ended environment, while others are fully observable.
+
+
+(c) Language Table
+
+
+(d) Simpler Env
+
+Table 1: Results on the Open-World Minecraft Benchmark. This benchmark includes 8 task families and 100 tasks. Each task is evaluated 30 times across three seeds, and the average success rate is calculated per task family. For example, Combat (16) indicates 16 tasks in the Combat family.
+
+
Methods
Prompt
Combat (16)
Hunt (10)
Ride (4)
Breed (8)
Craft (20)
Mine (20)
Interact (10)
Plant (12)
VPT
N/A
11±3
20±4
7±2
2±0
4±1
7±2
21±6
22±7
STEVE-1
lang
12±3
9±2
54±8
4±2
5±2
6±3
53±9
33±8
STEVE-1
visual
15±4
10±3
38±9
6±2
6±2
10±4
40±8
43±7
GROOT-1
visual
18±5
28±8
26±6
12±3
15±4
22±7
57±8
75±6
GROOT-2
lang
40±7
43±5
46±6
22±6
18±3
37±5
55±4
75±9
GROOT-2
visual
37±4
48±7
51±4
20±4
27±3
36±7
63±6
77±7
+
+2024), illustrated in Figure 5. These four simulators are used to evaluate whether GROOT-2 can be effectively steered by returns (Chen et al., 2021; Mnih et al., 2015), reference videos (Cai et al., 2023b; Jang et al., 2022), and textual instructions (Brohan et al., 2022; 2023).
+
+Results on the Open-World Minecraft Benchmark. To evaluate policy models in Minecraft, we used the contractor dataset from Baker et al. (2022), containing 160M frames. According to the meta information, labeled trajectories account for approximately $35\%$ of the total data. We extended the Minecraft SkillForge Benchmark (Cai et al., 2023b) from 30 to 100 tasks, grouped into eight families: Combat, Hunt, Ride, Breed, Craft, Mine, Interact, and Plant. Details are in the Appendix C. We compared GROOT-2 with three baselines: (1) VPT (Baker et al., 2022), a foundational model trained on YouTube data via imitation learning, lacking instruction-following; (2) STEVE-1 (Lifshitz et al., 2023), which supports text and future image-conditioned instructions; and (3) GROOT-1 (Cai et al., 2023b), a self-supervised model using reference videos as instructions. Key findings from Table 1 are as follows: (1) GROOT-2 (visual) consistently outperforms GROOT-1 across all task categories, with particularly notable gains in mob interaction tasks like Combat and Hunt. Comparing trajectories on Hunt, GROOT-1 mechanically repeats "attack" actions, while GROOT-2 actively tracks objects, showing that text data enhances object-centric understanding and better aligns with human intentions. (2) GROOT-2 (text) performs similarly to GROOT-2 (visual) across most tasks, demonstrating that language and visual modalities share task knowledge. This enables the model to leverage both modalities for improved task completion. This highlights the advantage of combining multimodal data for better alignment with human intentions and improved policy performance.
+
+Results on the Language Table benchmark. To assess GROOT-2's multimodal instruction following capabilities in the context of Robotic Table Manipulation, we utilized the Google Language Table as our testing platform and compared it with methods such as LAVA (Lynch et al., 2023), RT-1 (Brohan et al., 2022), GROOT-1 (Cai et al., 2023b). We utilize a dataset provided by Lynch et al. (2023) comprising 100M trajectories. We removed the text labels from half of the trajectories in the dataset, creating a $1:1$ ratio of labeled to unlabeled trajectories. Given that the Language Table environment comes with five task families, all of which are instructed solely through language, we curated five reference videos for each task with relatively clear intentions to evaluate the model's ability to comprehend video instructions. Detailed specifics are provided in the appendix D. The experimental results are shown in the Table 2. We observed that: (1) GROOT-2 leads by an absolute success rate of $4\%$ following text-based instructions compared, likely due to GROOT-2's more
+
+Table 2: Results on the Language Table Benchmark. We reported success rates (in %) within 200 steps for each instruction modality, averaging over 250 rollouts. Results are averaged over 3 seeds with mean and stderr. “-” indicates missing data. The percentages in parentheses indicate the proportion of labels used.
+
+
Task Family
BC-Zero
LAVA
RT-1
GROOT-1
GROOT-2 (50%)
GROOT-2 (100%)
lang
lang
lang
visual
lang
visual
lang
visual
block to block
-
90±2
-
8±2
84±9
78±9
86±8
82±7
block to absolute loc
-
72±4
-
10±3
70±8
68±8
76±6
70±8
block to block relative loc
-
72±3
-
4±1
74±9
64±7
76±8
62±6
block to relative loc
-
64±4
-
8±2
82±5
78±6
84±6
80±4
separate two blocks
-
94±2
-
12±2
98±1
96±2
98±0
98±0
Overall
72±3
78±4
74±13
8±2
82±8
76±7
84±6
78±8
+
+Table 3: Results on the Simpler Env Benchmark. We report the success rate (in %) of the video-instruction and language-instruction following for each model on 3 task families. The percentages in parentheses indicate the proportion of labels used.
+
+
Methods
Prompt
Pick Coke Can
Move Near
Open/Close Printer
H-Pose
V-Pose
S-Pose
Avg
Avg
Open
Close
Avg
RT-1-X
lang
57
20
70
49
32
7
52
29
Octo-base
lang
5
0
1
1
3
0
2
1
GROOT-2 (50%)
visual
42
18
52
37
35
29
30
30
lang
52
20
50
41
42
27
33
30
GROOT-2 (100%)
visual
40
22
47
36
35
27
33
30
lang
53
23
52
42
45
27
35
31
+
+refined model architecture design. We mark the results of RT-2 in gray here, as it uses significantly more training data than ours. (2) The performance of GROOT-2 in following video instructions dropped by approximately $6\%$ compared to text instructions, possibly due to the ambiguity of the reference videos, where a "block to block" type video could be interpreted as a "block to relative location" type task. (3) GROOT-1 struggled to understand the intentions conveyed by the reference videos. We observed that GROOT-1 imitated a reference video's trajectory sketch rather than their colors and shapes. This further underscores the importance of introducing language annotations for some trajectory data as a crucial method to align with human intentions.
+
+Results on the Simpler Env Benchmark. We utilized the Simpler Env (Li et al., 2024) simulation of the Google Robot environment to evaluate the policy's capability in controlling complex robotic arms. GROOT-2 is trained on the OpenX dataset (Collaboration et al., 2023). We erased the text labels from half of the dataset's trajectories, achieving a 1:1 balance between labeled and unlabeled data. We evaluated three types of tasks: Pick Coke Can, Move Near, and Open/Close Printer. Following Li et al. (2024); Brohan et al. (2023), we set up multiple variants for each task. For instance, the Pick Coke Can task involved three different poses for the Coke can; in the Move Near task, the layout and types of objects varied; and in the Open/Close Printer task, the drawer had three layers from top to bottom. We compared GROOT-2 with baseline methods such as RT-1 (Brohan et al., 2022), and Octo (Octo Model Team et al., 2024). Among these, RT-1-X is an efficient language-conditioned transformer-based policy trained on the entire OpenX (Collaboration et al., 2023) dataset, which can be considered the performance boundary that GROOT-2 can achieve. As shown in Table 3, we found that GROOT-2 (lang) and GROOT-2 (visual) achieved comparable performance to the RT-1-X model across all three tasks. This indicates that our method retains language control capabilities and imbues the policy with equivalent visual instruction control abilities.
+
+# Can GROOT-2 Follow Instructions Beyond Language and Video, Like Episode Returns?
+
+We evaluated GROOT-2's steerability and performance on four Atari games (Breakout, Demon Attack, Hero, and Name This Game). Datasets from Agarwal et al. (2020), containing approximately 10M frames per game, were used. Episode returns were normalized to $\mu = 0$ , $\sigma = 1$ .
+
+For training, we constructed a dataset with $30\%$ labeled trajectories (returns) and $70\%$ unlabeled data. Using this dataset, we trained GROOT (wsl) (weakly supervised learning). For comparison, GROOT (ssl) was trained on the same dataset without return labels in a fully self-supervised manner.
+
+
+
+
+Figure 6: Comparison of Weakly Supervised (WSL) and Self-Supervised (SSL) Learning on 4 Atari Games. Policies are evaluated under return and reference video conditions. For return conditioning, normalized returns are input into the encoder, while for video conditioning, videos with similar returns (error $< 0.05$ ) are used.
+Figure 7: t-SNE Visualization of Learned Latent Spaces on Four Atari Games. The first row shows results under self-supervised learning, while the second row displays GROOT-2's performance under weakly supervised learning. Points represent reference videos, with shapes indicating games and colors denoting episode returns. The first four columns compare individual games, and the last column shows a mixed-game comparison.
+
+Both models were jointly trained across the four games. During inference, we evaluated policy performance in following reference videos sampled from the test set with normalized returns $\{-1,0, + 1\}$ using 20 samples per category. Results (Figure 6) show: (1) GROOT (ssl) can recognize behavioral quality in reference videos, constructing a rough intention space even without labeled guidance. (2) Labeled data significantly improved GROOT (wsl)'s ability to understand video instructions, with the greatest gains in Hero and Name This Game. We also evaluated GROOT (wsl) on return-style instructions with normalized rewards $\{-1,0, + 1\}$ . The similarity between video and reward-conditioned performance suggests the video encoder and reward encoder share the same intention space. The Atari experiments aim to evaluate GROOT-2's performance on modalities beyond language and video, rather than maximizing scores, distinguishing it from traditional offline RL methods.
+
+# What Does the Visualization of the Learned Latent Space Reveal?
+
+We applied t-SNE to visualize embeddings from randomly sampled reference videos. Each point in Figure 7 represents a unique video, with shapes denoting game environments and colors indicating episode returns. The first row illustrates results for GROOT (ssl), where videos in Breakout, Demon Attack, and Name This Game are classified into two categories based on episode return magnitudes, suggesting that the self-supervised algorithm distinguishes only significant score differences. In contrast, GROOT (ssl) shows poor clustering and limited steerability in the Hero game. The second row shows results for GROOT (wsl), which captures continuous variations in video behavior quality across all games. As shown in the fifth column, embeddings from different environments follow a continuous pattern aligned with reward labels, indicating a shared latent space that promotes cross-environment knowledge transfer.
+
+# How Does Scaling Up Unlabeled Trajectories Impact Performance?
+
+We trained four GROOT-2 variants with $0\%$ , $25\%$ , $50\%$ , and $100\%$ unlabeled data in Minecraft. Performance was tested on five Minecraft tasks (Chop Tree, Hunt Animals, Combat Enemies, Open Chest, Climb Mountain) and scored relative to skilled human players. For example, if a human collects 20.0 logs in 600 steps and GROOT-2 collects 15.0, the score is 0.75. Results (Figure 8) show consistent improvement with more unlabeled data, with the $100\%$ variant achieving a $5 \times$ gain in the
+
+
+Figure 8: Performance Comparison on Unlabeled Demonstrations. Human-normalized task scores are averaged over 20 rollouts across 5 Minecraft tasks to evaluate the agent's reference-video following ability.
+
+Climb Mountain task over the $0\%$ version. It is worth noting that the Climb Mountain and Open Chest tasks do not have language instructions in the training set.
+
+# How Does Scaling Up Labeled Trajectories Impact Performance?
+
+To evaluate the impact of labeled trajectory proportions in the training set on the instruction-following capabilities of GROOT-2, we conducted experiments on the Language Table benchmark. The total number of trajectories remained constant across different dataset configurations, with only the proportion of trajectories containing text labels varying. Figure 9 reports the success rate achieved by GROOT-2 conditioned on language. At low labeled data proportions (0% - 25%), the success rate rapidly increased from 10% to 65%, indicating that labeled data significantly influences model performance.
+
+
+Figure 9: Ablation Study on Labeled Trajectories in the Language Table.
+
+However, as the labeled data proportion increased to $50\% - 80\%$ , the success rate plateaued, rising slightly from $82\%$ to $83\%$ , demonstrating diminishing marginal gains from additional labeled data. Therefore, under resource constraints, a labeled data proportion of $50\%$ may represent the optimal balance between performance and cost.
+
+# How Does Backbone Initialization Affect Performance?
+
+We evaluated different initializations for ViT (random, ImageNet, CLIP) and BERT (random, BERT, CLIP) on the Language Table Benchmark. For randomly initialized models, both backbones were unfrozen during training. According to Table 4, CLIP initialization yielded the best results for ViT, followed by ImageNet, with minimal difference between them, while random initialization performed worst. For BERT, CLIP and standard BERT initialization performed similarly, both surpassing random initialization. Initializing vision and language encoders with CLIP parameters improves policy performance and reduces training time.
+
+
Backbone
ViT
ViT
ViT/BERT
BERT
BERT
Weights
-
ImageNet
CLIP
-
BERT
SR (in %)
76±10
80±11
82±8
79±12
81±8
+
+Table 4: Ablation study on the backbone initialization.
+
+
Variants
-Lab
baseline
-Ldem
baseline
Prompt
vision
vision
lang
lang
SR (in %)
10±2
76±7
12±3
82±8
+
+Table 5: Ablation on ${\mathcal{L}}_{\text{lab }}$ and ${\mathcal{L}}_{\text{dem }}$ objectives.
+
+# How Does Language and Video Losses Impact Performance?
+
+The $\mathcal{L}_{\mathrm{lab}}$ loss significantly enhances the model's understanding of reference videos, as observed in the Language Table environment. We compared a variant without $\mathcal{L}_{\mathrm{lab}}$ loss to the full GROOT-2 model, both trained on the same scale of the Language Table dataset, and tested their ability to follow reference videos using standard evaluation scripts. As shown in Table 5, the variant without $\mathcal{L}_{\mathrm{lab}}$ loss failed to complete any tasks. Further analysis of its output videos revealed that it mechanically mimicked the arm movement trajectories in the reference videos, completely ignoring object colors and shapes, which is inconsistent with human understanding of the reference videos.
+
+The $\mathcal{L}_{\mathrm{dem}}$ loss is indispensable in the GROOT-2 architecture. Removing $\mathcal{L}_{\mathrm{dem}}$ causes the pipeline to degrade into an autoencoder when processing unlabeled data. Without constraints on the latent encoding, the model tends to learn the video encoder as an inverse dynamics model, encoding low-level action sequences in latent $z$ instead of high-level task information, thereby significantly reducing the behavior cloning loss. Additionally, Table 5 show that removing $\mathcal{L}_{\mathrm{dem}}$ causes the language encoder's latent $z$ to collapse, leading to a dramatic drop in task success rates.
+
+# 5 RELATED WORKS
+
+Learning Policies Across Diverse Domains. Developing policies for sequential control tasks in real and virtual environments poses significant challenges. Research spans domains such as robotic manipulation (Yu et al., 2019; Lynch et al., 2023), video games (Bellemare et al., 2013; Guss et al., 2019), and embodied navigation (Hong et al., 2020; Savva et al., 2019; Huang et al., 2023), with approaches categorized into reinforcement learning (RL) and imitation learning (IL) based on reward function reliance. For video games with dense rewards (e.g., ALE platform (Bellemare et al., 2013)), online RL algorithms can achieve superhuman performance (Mnih et al., 2015; Badia et al., 2020) but suffer from low efficiency, risky interactions, and limited generalization. These challenges restrict their applicability to physical (Padalkar et al., 2023) or embodied environments (Guss et al., 2019), where rewards and cheap interactions are unavailable. IL, as a supervised learning paradigm, addresses these issues through batch efficiency and scalability with large datasets, leveraging Transformer architectures (Zhang & Chai, 2021; Pashevich et al., 2021; Jang et al., 2022). The RT-X series (Brohan et al., 2022; 2023; Padalkar et al., 2023) advances robotic manipulation by training Transformers on large expert demonstration datasets, achieving strong zero-shot generalization. Similarly, Baker et al. (2022) developed a Transformer-based policy for Minecraft using internet-scale gameplay data, solving the diamond challenge. Building on this, Schmidhuber (2019) frames RL as supervised learning, while Chen et al. (2021); Lee et al. (2022) introduce "decision transformers" to model joint distributions of rewards, states, and actions from offline data, highlighting the potential for unified policy learning within Transformers.
+
+Learning Policies to Follow Instructions. Enabling policies to follow instructions is key to building general-purpose agents. A common approach involves using language annotations from offline demonstrations to train language-conditioned policies (Abramson et al., 2020; Brohan et al., 2022; Reed et al., 2022; Cai et al., 2023a; Huang et al., 2023; Raad et al., 2024; Wang et al., 2023a;b), leveraging the compositionality of natural language for generalization. However, obtaining high-quality annotations is costly. An alternative uses anticipated outcomes as instructions. Majumdar et al. (2022) trained an image-goal conditioned navigation policy via hindsight relabeling (HER) (Andrychowicz et al., 2017) and aligned goal spaces with text. Similarly, Lifshitz et al. (2023) used this strategy for open-ended tasks in Minecraft. Generative latent variable models offer another solution, using label-free demonstrations to train plan-conditioned policies (Lynch et al., 2020b; Ajay et al., 2020). Extending this, Cai et al. (2023b) applied a posterior encoder to interpret reference videos in Minecraft. Policy learning with weak supervision remains less explored. Lynch & Sermanet (2020) proposed a shared latent space conditioned on language and HER-generated goal images, while Jang et al. (2022) replaced goal images with video labels under full supervision. Jain et al. (2024) trained robots using human videos as task representations but required extensive paired videotrajectory data. Myers et al. (2023) combined labeled and unlabeled trajectories, aligning start-goal pairs with language via contrastive learning, effective for Table Manipulation but limited in handling complex tasks or generalizing to partially observable environments like Minecraft.
+
+# 6 CONCLUSIONS, LIMITATIONS AND FUTURE WORKS
+
+This paper investigates the joint learning of a latent intention space and a multimodal instruction-following policy under weak supervision. We identify the "latent space ambiguity" issue in latent variable generative models when handling text-free trajectory data, arising from the absence of direct human guidance in shaping the latent space. To address this, we propose a weakly supervised algorithm for training GROOT-2. Evaluations across four diverse environments, from video games to robotic manipulation, demonstrate GROOT-2's generality and flexibility in following multimodal instructions. However, GROOT-2's reliance on trajectory data for training limits its applicability to video data, which lacks action labels. Considering the abundance and diversity of video data available online compared to trajectory data, extending the weak supervision framework to leverage both play and trajectory data would be a promising avenue for future work.
+
+# 7 ACKNOWLEDGEMENTS
+
+This work is funded in part by the National Key R&D Program of China #2022ZD0160301.
+
+# REFERENCES
+
+ANM Nafiz Abeer, Nathan M Urban, M Ryan Weil, Francis J Alexander, and Byung-Jun Yoon. Multi-objective latent space optimization of generative molecular design models. *Patterns*, 2024.
+Josh Abramson, Arun Ahuja, Iain Barr, Arthur Brussee, Federico Carnevale, Mary Cassin, Rachita Chhaparia, Stephen Clark, Bogdan Damoc, Andrew Dudzik, et al. Imitating interactive intelligence. arXiv preprint arXiv:2012.05672, 2020.
+Rishabh Agarwal, Dale Schuurmans, and Mohammad Norouzi. An optimistic perspective on offline reinforcement learning. In International Conference on Machine Learning, pp. 104-114. PMLR, 2020.
+Anurag Ajay, Aviral Kumar, Pulkit Agrawal, Sergey Levine, and Ofir Nachum. Opal: Offline primitive discovery for accelerating offline reinforcement learning. arXiv preprint arXiv:2010.13611, 2020.
+Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katie Millican, Malcolm Reynolds, Roman Ring, Eliza Rutherford, Serkan Cabi, Tengda Han, Zhitao Gong, Sina Samangooei, Marianne Monteiro, Jacob Menick, Sebastian Borgeaud, Andy Brock, Aida Nematzadeh, Sahand Sharifzadeh, Mikolaj Binkowski, Ricardo Barreira, Oriol Vinyals, Andrew Zisserman, and Karen Simonyan. Flamingo: a visual language model for few-shot learning. ArXiv, abs/2204.14198, 2022. URL https://api-semanticscholar.org/CorpusID:248476411.
+Alexander Alemi, Ben Poole, Ian Fischer, Joshua Dillon, Rif A Saurous, and Kevin Murphy. Fixing a broken elbo. In International conference on machine learning, pp. 159-168. PMLR, 2018.
+Marcin Andrychowicz, Dwight Crow, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Joshua Tobin, P. Abbeel, and Wojciech Zaremba. Hindsight experience replay. ArXiv, abs/1707.01495, 2017. URL https://api_semanticscholar.org/CorpusID:3532908.
+Adria Puigdomenech Badia, Bilal Piot, Steven Kapturowski, Pablo Sprechmann, Alex Vitvitskyi, Zhaohan Daniel Guo, and Charles Blundell. Agent57: Outperforming the atari human benchmark. In International conference on machine learning, pp. 507-517. PMLR, 2020.
+Bowen Baker, Ilge Akkaya, Peter Zhokhov, Joost Huizinga, Jie Tang, Adrien Ecoffet, Brandon Houghton, Raul Sampedro, and Jeff Clune. Video pretraining (vpt): Learning to act by watching unlabeled online videos. ArXiv, abs/2206.11795, 2022. URL https://apisemantic scholar.org/CorpusID:249953673.
+Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47: 253-279, 2013.
+Anthony Brohan, Noah Brown, Justice Carbajal, Yevgen Chebotar, Joseph Dabis, Chelsea Finn, Keerthana Gopalakrishnan, Karol Hausman, Alexander Herzog, Jasmine Hsu, Julian Ibarz, Brian Ichter, Alex Irpan, Tomas Jackson, Sally Jesmonth, Nikhil J. Joshi, Ryan C. Julian, Dmitry Kalashnikov, Yuheng Kuang, Isabel Leal, Kuang-Huei Lee, Sergey Levine, Yao Lu, Utsav Malla, Deeksha Manjunath, Igor Mordatch, Ofir Nachum, Carolina Parada, Jodilyn Peralta, Emily Perez, Karl Pertsch, Jornell Quiambao, Kanishka Rao, Michael S. Ryoo, Grecia Salazar, Pannag R. Sanketi, Kevin Sayed, Jaspiar Singh, Sumedh Anand Sontakke, Austin Stone, Clayton Tan, Huong Tran, Vincent Vanhoucke, Steve Vega, Quan Ho Vuong, F. Xia, Ted Xiao, Peng Xu, Sichun Xu, Tianhe Yu, and Brianna Zitkovich. Rt-1: Robotics transformer for real-world control at scale. ArXiv, abs/2212.06817, 2022. URL https://api_semanticscholar.org/CorpusID: 254591260.
+Anthony Brohan, Noah Brown, Justice Carbajal, Yevgen Chebotar, Xi Chen, Krzysztof Choromanski, Tianli Ding, Danny Driess, Avinava Dubey, Chelsea Finn, et al. Rt-2: Vision-language-action models transfer web knowledge to robotic control. arXiv preprint arXiv:2307.15818, 2023.
+
+Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, T. J. Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeff Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. ArXiv, abs/2005.14165, 2020. URL https://api-semanticscholar.org/CorpusID:218971783.
+Shaofei Cai, Zihao Wang, Xiaojian Ma, Anji Liu, and Yitao Liang. Open-world multi-task control through goal-aware representation learning and adaptive horizon prediction. 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 13734-13744, 2023a. URL: https://apisemantic scholar.org/CorpusID:256194112.
+Shaofei Cai, Bowei Zhang, Zihao Wang, Xiaojian Ma, Anji Liu, and Yitao Liang. Groot: Learning to follow instructions by watching gameplay videos. In The Twelfth International Conference on Learning Representations, 2023b.
+Lili Chen, Kevin Lu, Aravind Rajeswaran, Kimin Lee, Aditya Grover, Michael Laskin, P. Abbeel, A. Srinivas, and Igor Mordatch. Decision transformer: Reinforcement learning via sequence modeling. In Neural Information Processing Systems, 2021. URL https://api.sementicscholar.org/CorpusID:235294299.
+Open X-Embodiment Collaboration, Abby O'Neill, Abdul Rehman, Abhiram Maddukuri, Abhishek Gupta, Abhishek Padalkar, Abraham Lee, Acorn Pooley, Agrim Gupta, Ajay Mandlekar, Ajinkya Jain, Albert Tung, Alex Bewley, Alex Herzog, Alex Irpan, Alexander Khazatsky, Anant Rai, Anchit Gupta, Andrew Wang, Andrey Kolobov, Anikait Singh, Animesh Garg, Aniruddha Kembhavi, Annie Xie, Anthony Brohan, Antonin Raffin, Archit Sharma, Arefeh Yavyar, Arhan Jain, Ashwin Balakrishna, Ayzaan Wahid, Ben Burgess-Limerick, Beomjoon Kim, Bernhard Scholkopf, Blake Wulfe, Brian Ichter, Cewu Lu, Charles Xu, Charlotte Le, Chelsea Finn, Chen Wang, Chenfeng Xu, Cheng Chi, Chenguang Huang, Christine Chan, Christopher Agia, Chuer Pan, Chuyuan Fu, Coline Devin, Danfei Xu, Daniel Morton, Danny Driess, Daphne Chen, Deepak Pathak, Dhruv Shah, Dieter Buchler, Dinesh Jayaraman, Dmitry Kalashnikov, Dorsa Sadigh, Edward Johns, Ethan Foster, Fangchen Liu, Federico Ceola, Fei Xia, Feiyu Zhao, Felipe Vieira Frujeri, Freek Stulp, Gaoyue Zhou, Gaurav S. Sukhatme, Gautam Salhotra, Ge Yan, Gilbert Feng, Giulio Schiavi, Glen Berseth, Gregory Kahn, Guangwen Yang, Guanzhi Wang, Hao Su, Hao-Shu Fang, Haochen Shi, Henghui Bao, Heni Ben Amor, Henrik I Christensen, Hiroki Furuta, Homer Walke, Hongjie Fang, Huy Ha, Igor Mordatch, Iija Radosavovic, Isabel Leal, Jacky Liang, Jad Abou-Chakra, Jaehyung Kim, Jaimyn Drake, Jan Peters, Jan Schneider, Jasmine Hsu, Jeannette Bohg, Jeffrey Bingham, Jeffrey Wu, Jensen Gao, Jiaheng Hu, Jiajun Wu, Jialin Wu, Jiankai Sun, Jianlan Luo, Jiayuan Gu, Jie Tan, Jihoon Oh, Jimmy Wu, Jingpei Lu, Jingyun Yang, Jitendra Malik, João Silverioo. Joey Hejna Jonathan Booher Jonathan Thompson Jonathan Yang Jordi Salvador Joseph J. Lim Junhyek Han Kaiyuan Wang Kanishka Rao Karl Pertsch Karol Hausman Keegan Go Keerthana Gopalakrishnan Ken Goldberg Kendra Byrne Kenneth Oslund Kento Kawaharazuka Kevin Black Kevin Lin Kevin Zhang Kiana Ehsani Kiran Lekkala Kirsty Ellis Krishan Rana Krishnan Srinivasan Kuan Fang Kunal Pratap Singh Kuo-Hao Zeng Kyle Hatch Kyle Hsu Laurent Itti Lawrence Yunliang Chen Lerrel Pinto Li Fei-Fei Liam Tan Linxi "Jim" Fan Lionel Ott Lisa Lee Luca Weihs Magnum Chen Marion Lepert Marius Memmel Masayoshi Tomizuka Masha Itkina Mateo Guaman Castro Max Spero Maximilian Du Michael Ahn Michael C. Yip Mingtong Zhang Mingyu Ding Minho Heo Mohan Kumar Srirama Mohit Sharma Moo Jin Kim Naoaki Kanazawa Nicklas Hansen Nicolas Heess Nikhil J Joshi Niko Suenderhauf Ning Liu Norman Di Palo Nur Muhammad Mahi Shafiullah Oier Mees Oliver Kroemer Osbert Bastani Pannag R Sanketi Patrick "Tree" Miller Patrick Yin Paul Wohlhart Peng Xu Peter David Fagan Peter Mitrano Pierre Sermanet Pieter Abbeel Priya Sundaresan Qiuyu Chen Quan Vuong Rafael Rafailov Ran Tian Ria Doshi Roberto Mart'in-Mart'in Rohan Baijal Rosario Scalise Rose Hendrix Roy Lin Runjia Qian Ruohan Zhang Russell Mendonca Rutav Shah Ryan Hoque Ryan Julian Samuel Bustamante Sean Kirmani Sergey Levine Shan Lin Sherry Moore Shikhar Bahl Shivin Dass Shubham Sonawani Shuran Song Sichun Xu Siddhant Haldar Siddharth Karamcheti Simeon Adebola Simon Guist Soroush Nasiriany Stefan Schaal Stefan Welker Stephen Tian Subramanian Ramamoorthy Sudeep Dasari Suneel Belkhale Sungjae Park Suraj Nair Suvir Mirchandani Takayuki Osa Tanmay Gupta Tatsuya Harada Tatsuya Matsushima Ted
+
+Xiao, Thomas Kollar, Tianhe Yu, Tianli Ding, Todor Davchev, Tony Z. Zhao, Travis Armstrong, Trevor Darrell, Trinity Chung, Vidhi Jain, Vincent Vanhoucke, Wei Zhan, Wenxuan Zhou, Wolfram Burgard, Xi Chen, Xiangyu Chen, Xiaolong Wang, Xinghao Zhu, Xinyang Geng, Xiyuan Liu, Xu Liangwei, Xuanlin Li, Yansong Pang, Yao Lu, Yecheng Jason Ma, Yejin Kim, Yevgen Chebotar, Yifan Zhou, Yifeng Zhu, Yilin Wu, Ying Xu, Yixuan Wang, Yonatan Bisk, Yongqiang Dou, Yoonyoung Cho, Youngwoon Lee, Yuchen Cui, Yue Cao, Yueh-Hua Wu, Yujin Tang, Yuke Zhu, Yunchu Zhang, Yunfan Jiang, Yunshuang Li, Yunzhu Li, Yusuke Iwasawa, Yutaka Matsuo, Zehan Ma, Zhuo Xu, Zichen Jeff Cui, Zichen Zhang, Zipeng Fu, and Zipeng Lin. Open X-Embodiment: Robotic learning datasets and RT-X models. https://arxiv.org/abs/2310.08864, 2023.
+Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Jan 2019. doi: 10.18653/v1/p19-1285. URL http://dx.doi.org/10.18653/v1/p19-1285.
+Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. ArXiv, abs/1810.04805, 2019. URL https://api.sementicscholar.org/CorpusID:52967399.
+Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. ArXiv, abs/2010.11929, 2020. URL https://api(semanticscholar.org/CorpusID:225039882.
+Yan Duan, Marcin Andrychowicz, Bradly Stadie, OpenAI Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. Advances in neural information processing systems, 30, 2017.
+Le Fang, Chunyuan Li, Jianfeng Gao, Wen Dong, and Changyou Chen. Implicit deep latent variable models for text generation. arXiv preprint arXiv:1908.11527, 2019.
+Abhishek Gupta, Vikash Kumar, Corey Lynch, Sergey Levine, and Karol Hausman. Relay policy learning: Solving long-horizon tasks via imitation and reinforcement learning. arXiv preprint arXiv:1910.11956, 2019.
+William H. Guss, Brandon Houghton, Nicholay Topin, Phillip Wang, Cayden Codel, Manuela M. Veloso, and Ruslan Salakhutdinov. Minerl: A large-scale dataset of minecraft demonstrations. In International Joint Conference on Artificial Intelligence, 2019. URL https://api-semanticscholar.org/CorpusID:199000710.
+Yicong Hong, Qi Wu, Yuankai Qi, Cristian Rodriguez-Opazo, and Stephen Gould. Vln-bert: A recurrent vision-and-language bert for navigation. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1643-1653, 2020. URL https://api_semanticscholar.org/CorpusID:227228335.
+Jiangyong Huang, Silong Yong, Xiaojian Ma, Xiongkun Linghu, Puhao Li, Yan Wang, Qing Li, Song-Chun Zhu, Baoxiong Jia, and Siyuan Huang. An embodied generalist agent in 3d world. arXiv preprint arXiv:2311.12871, 2023.
+Vidhi Jain, Maria Attarian, Nikhil J Joshi, Ayzaan Wahid, Danny Driess, Quan Vuong, Pannag R Sanketi, Pierre Sermanet, Stefan Welker, Christine Chan, et al. Vid2robot: End-to-end video-conditioned policy learning with cross-attention transformers. arXiv preprint arXiv:2403.12943, 2024.
+Eric Jang, Alex Irpan, Mohi Khansari, Daniel Kappler, Frederik Ebert, Corey Lynch, Sergey Levine, and Chelsea Finn. Bc-z: Zero-shot task generalization with robotic imitation learning. ArXiv, abs/2202.02005, 2022. URL https://api-semanticscholar.org/CorpusID: 237257594.
+
+Matthew Johnson, Katja Hofmann, Tim Hutton, and David Bignell. The malmo platform for artificial intelligence experimentation. In International Joint Conference on Artificial Intelligence, 2016. URL https://apisemantic scholar.org/CorpusID:9953039.
+Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. CoRR, abs/1312.6114, 2013. URL https://api.sementicscholar.org/CorpusID:216078090.
+Kuang-Huei Lee, Ofir Nachum, Mengjiao Sherry Yang, Lisa Lee, Daniel Freeman, Sergio Guadarrama, Ian Fischer, Winnie Xu, Eric Jang, Henryk Michalewski, et al. Multi-game decision transformers. Advances in Neural Information Processing Systems, 35:27921-27936, 2022.
+Xuanlin Li, Kyle Hsu, Jiayuan Gu, Karl Pertsch, Oier Mees, Homer Rich Walke, Chuyuan Fu, Ishikaa Lunawat, Isabel Sieh, Sean Kirmani, Sergey Levine, Jiajun Wu, Chelsea Finn, Hao Su, Quan Vuong, and Ted Xiao. Evaluating real-world robot manipulation policies in simulation. arXiv preprint arXiv:2405.05941, 2024.
+Shalev Lifshitz, Keiran Paster, Harris Chan, Jimmy Ba, and Sheila A. McIlraith. Steve-1: A generative model for text-to-behavior in apache.org/CorpusID:258999563.
+Haowei Lin, Zihao Wang, Jianzhu Ma, and Yitao Liang. Mcu: A task-centric framework for open-ended agent evaluation in apache. arXiv preprint arXiv:2310.08367, 2023.
+Jiasen Lu, Christopher Clark, Sangho Lee, Zichen Zhang, Savya Khosla, Ryan Marten, Derek Hoiem, and Aniruddha Kembhavi. Unified-io 2: Scaling autoregressive multimodal models with vision, language, audio, and action. arXiv preprint arXiv:2312.17172, 2023.
+Corey Lynch and Pierre Sermanet. Language conditioned imitation learning over unstructured data. arXiv preprint arXiv:2005.07648, 2020.
+Corey Lynch, Mohi Khansari, Ted Xiao, Vikash Kumar, Jonathan Tompson, Sergey Levine, and Pierre Sermanet. Learning latent plans from play. In Conference on robot learning, pp. 1113-1132. PMLR, 2020a.
+Corey Lynch, Mohi Khansari, Ted Xiao, Vikash Kumar, Jonathan Tompson, Sergey Levine, and Pierre Sermanet. Learning latent plans from play. In Conference on robot learning, pp. 1113-1132. PMLR, 2020b.
+Corey Lynch, Mohi Khansari, Ted Xiao, Vikash Kumar, Jonathan Tompson, Sergey Levine, and Pierre Sermanet. Learning latent plans from play. In Conference on robot learning, pp. 1113-1132. PMLR, 2020c.
+Corey Lynch, Ayzaan Wahid, Jonathan Tompson, Tianli Ding, James Betker, Robert Baruch, Travis Armstrong, and Pete Florence. Interactive language: Talking to robots in real time. IEEE Robotics and Automation Letters, 2023.
+Arjun Majumdar, Gunjan Aggarwal, Bhavika Devnani, Judy Hoffman, and Dhruv Batra. Zson: Zero-shot object-goal navigation using multimodal goal embeddings. ArXiv, abs/2206.12403, 2022. URL https://api-semanticscholar.org/CorpusID:250048645.
+Oier Mees, Lukas Hermann, and Wolfram Burgard. What matters in language conditioned robotic imitation learning over unstructured data. IEEE Robotics and Automation Letters, 7(4):11205-11212, 2022.
+Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin A. Riedmiller, Andreas Kirkeby Fidjeland, Georg Ostrovski, Stig Petersen, Charlie Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518:529-533, 2015. URL https://api-semanticscholar.org/CorpusID:205242740.
+
+Vivek Myers, Andre Wang He, Kuan Fang, Homer Rich Walke, Philippe Hansen-Estruch, Ching-An Cheng, Mihai Jalobeanu, Andrey Kolobov, Anca Dragan, and Sergey Levine. Goal representations for instruction following: A semi-supervised language interface to control. In Conference on Robot Learning, pp. 3894-3908. PMLR, 2023.
+Octo Model Team, Dibya Ghosh, Homer Walke, Karl Pertsch, Kevin Black, Oier Mees, Sudeep Dasari, Joey Hejna, Charles Xu, Jianlan Luo, Tobias Kreiman, You Liang Tan, Lawrence Yunliang Chen, Pannag Sanketi, Quan Vuong, Ted Xiao, Dorsa Sadigh, Chelsea Finn, and Sergey Levine. Octo: An open-source generalist robot policy. In Proceedings of Robotics: Science and Systems, Delft, Netherlands, 2024.
+Abhishek Padalkar, Acorn Pooley, Ajinkya Jain, Alex Bewley, Alex Herzog, Alex Irpan, Alexander Khazatsky, Anant Rai, Anikait Singh, Anthony Brohan, et al. Open x-embodiment: Robotic learning datasets and rt-x models. arXiv preprint arXiv:2310.08864, 2023.
+Artidoro Pagnoni, Kevin Liu, and Shangyan Li. Conditional variational autoencoder for neural machine translation. arXiv preprint arXiv:1812.04405, 2018.
+Alexander Pashevich, Cordelia Schmid, and Chen Sun. Episodic transformer for vision-and-language navigation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 15942-15952, 2021.
+Karl Pertsch, Youngwoon Lee, and Joseph Lim. Accelerating reinforcement learning with learned skill priors. In Conference on robot learning, pp. 188-204. PMLR, 2021.
+Maria Abi Raad, Arun Ahuja, Catarina Barros, Frederic Besse, Andrew Bolt, Adrian Bolton, Bethanie Brownfield, Gavin Buttimore, Max Cant, Sarah Chakera, et al. Scaling instructable agents across many simulated worlds. arXiv preprint arXiv:2404.10179, 2024.
+Alec Radford. Improving language understanding by generative pre-training. 2018.
+Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
+Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning, 2021. URL https://api_semanticscholar.org/CorpusID: 231591445.
+Scott Reed, Konrad Zolna, Emilio Parisotto, Sergio Gomez Colmenarejo, Alexander Novikov, Gabriel Barth-Maron, Mai Gimenez, Yury Sulsky, Jackie Kay, Jost Tobias Springenberg, et al. A generalist agent. arXiv preprint arXiv:2205.06175, 2022.
+Manolis Savva, Abhishek Kadian, Oleksandr Maksymets, Yili Zhao, Erik Wijmans, Bhavana Jain, Julian Straub, Jia Liu, Vladlen Koltun, Jitendra Malik, et al. Habitat: A platform for embodied ai research. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 9339-9347, 2019.
+Juergen Schmidhuber. Reinforcement learning upside down: Don't predict rewards - just map them to actions. ArXiv, abs/1912.02875, 2019. URL https://api_semanticscholar.org/ CorpusID:208857600.
+Gemini Team, Rohan Anil, Sebastian Borgeaud, Yonghui Wu, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut, Johan Schalkwyk, Andrew M Dai, Anja Hauth, et al. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805, 2023.
+Zihao Wang, Shaofei Cai, Guanzhou Chen, Anji Liu, Xiaojian Shawn Ma, and Yitao Liang. Describe, explain, plan and select: interactive planning with llms enables open-world multi-task agents. Advances in Neural Information Processing Systems, 36, 2023a.
+Zihao Wang, Shaofei Cai, Anji Liu, Yonggang Jin, Jinbing Hou, Bowei Zhang, Haowei Lin, Zhaofeng He, Zilong Zheng, Yaodong Yang, et al. Jarvis-1: Open-world multi-task agents with memory-augmented multimodal language models. arXiv preprint arXiv:2311.05997, 2023b.
+
+Mengda Xu, Zhenjia Xu, Cheng Chi, Manuela Veloso, and Shuran Song. Xskill: Cross embodiment skill discovery. In Conference on Robot Learning, pp. 3536-3555. PMLR, 2023.
+Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan C. Julian, Karol Hausman, Chelsea Finn, and Sergey Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. ArXiv, abs/1910.10897, 2019. URL https://api_semanticscholar.org/CorpusID:204852201.
+Qihang Zhang, Zhenghao Peng, and Bolei Zhou. Learning to drive by watching youtube videos: Action-conditioned contrastive policy pretraining. In European Conference on Computer Vision, 2022. URL https://api_semanticscholar.org/CorpusID:250626771.
+Yichi Zhang and Joyce Chai. Hierarchical task learning from language instructions with unified transformers and self-monitoring. arXiv preprint arXiv:2106.03427, 2021.
+
+# A IMPLEMENTATION DETAILS
+
+# A.1 MODEL ARCHITECTURE
+
+This section outlines the architectural design choices employed in our approach. GROOT-2 utilizes a Transformer encoder-decoder architecture, augmented with a probabilistic latent space. We detail the components of the model in a structured sequence: extract representations, encode instructions, and decode actions.
+
+Extract Representations. This paragraph elaborates on the backbone networks used to extract representations from various data modalities. We denote the modalities of image observation, language instruction, and expected returns as $o_{1:N}$ , $w_{1:M}$ , and $r$ , respectively. For vision inputs, we utilize a pre-trained Vision Transformer (ViT) (Dosovitskiy et al., 2020) initialized with CLIP (Radford et al., 2021) weights. Specifically, the $t$ -step image observation $o_t$ is resized to $224 \times 224$ and processed to extract $7 \times 7$ patch embeddings $x_t^o = \left\langle x_{t,[1]}^o, \dots, x_{t,[49]}^o \right\rangle$ . The video representation $x^v$ is then composed of the averages of these embeddings across the video frames, denoted as $x^v = \langle \mathrm{avg}(x_1^o), \dots, \mathrm{avg}(x_N^o) \rangle$ , where $\mathrm{avg}(\cdot)$ refers to spatial average pooling to minimize computational overhead and $N$ represents the video length. Textual inputs are processed using the BERT encoder (Devlin et al., 2019) of the CLIP model. Rather than utilizing the [CLS] token as the final representation, we retain all word embeddings generated by BERT as $x^w = \left\langle x_{[1]}^w, \dots \right\rangle$ . The BERT model parameters are kept frozen during training. For the scalar-form modality of expected returns, we employ a simple Multi-Layer Perceptron (MLP) to process these values, represented as $x^r \gets \mathrm{MLP}(r)$ . These embeddings are then forwarded to subsequent modules.
+
+Encode Multimodal Instructions with Non-Causal Transformer. Recent works (Reed et al., 2022; Lu et al., 2023; Team et al., 2023) have demonstrated the Transformer's effectiveness in capturing both intra-modal and inter-modal relationships, which inspires us to adopt a unified Transformer encoder for encoding multimodal instructions. This approach offers two significant advantages: (1) It eliminates the need for designing separate architectures and tuning hyperparameters for each modality. (2) It promotes the sharing of underlying representations across different modalities. Instructions are represented as a sequence of embeddings. Before encoding, each embedding is augmented with a modality-specific marker. For instance, video instructions are represented as $\langle x_1^v + [\mathrm{VID}], \dots, x_N^v + [\mathrm{VID}] \rangle$ , where [VID] is a learnable embedding.
+
+Decode Action with Causal Transformer. Given a latent $z$ and a temporal sequence of perceptual observations $o_{1:t}$ , the policy aims to predict the next action $a_t$ . Following prior works (Baker et al., 2022; Cai et al., 2023b; Raad et al., 2024), we employ the Transformer-XL model (Dai et al., 2019) in our policy network, which enables causal attention to past memory states and facilitates smooth predictions. Additionally, we utilize the shared vision backbone to extract vision representations, thereby representing perceptual inputs as $x_{1:t}^o$ . A significant challenge with this approach is low efficiency: each new observation $x_t^o$ adds up to 49 tokens to the input sequence, substantially increasing memory and computational demands. To address this issue, we introduce a pre-fusion mechanism inspired by Abramson et al. (2020); Lynch et al. (2023); Alayrac et al. (2022). Specifically, we deploy a lightweight cross-attention module XATTN(q = :, kv = ) to perform spatial pooling on $x_t^o$ , using $z$ as the query and $\left\langle x_{t,[1]}^o,\dots ,x_{t,[49]}^o\right\rangle$ as the keys and values:
+
+$$
+x _ {t} ^ {z} \leftarrow \mathrm {X A T T N} \left(\mathbf {q} = z; \mathbf {k v} = x _ {t, [ 1 ]} ^ {o}, \dots , x _ {t, [ 4 9 ]} ^ {o}\right). \tag {5}
+$$
+
+This pre-fusion mechanism not only reduces the sequence length but also enhances the integration of perceptual and latent representations. Utilizing the latent-fused representations $x_{1:t}^{z}$ as the input sequence, we articulate the action decoding process in an autoregressive manner:
+
+$$
+a _ {t} \leftarrow \operatorname {T r a n s f o r m e r X L} \left(x _ {1} ^ {z}, \dots , x _ {t} ^ {z}\right). \tag {6}
+$$
+
+# A.2 HYPER-PARAMETERS
+
+Hyper-parameters for training GROOT-2 are shown in Table 6.
+
+Table 6: Hyperparameters for training GROOT-2.
+
+
Hyperparameter
Value
Optimizer
AdamW
Weight Decay
0.001
Learning Rate
0.0000181
Warmup Steps
2000
Number of Workers
4
Parallel Strategy
ddp
Type of GPUs
NVIDIA A800
Parallel GPUs
8
Accumulate Gradient Batches
1
Batch Size/GPU (Total)
16 (128)
Training Precision
bf16
Input Image Size
224 × 224
Visual Backbone
ViT/32
Encoder Transformer
minGPT (w/o causal mask)
Decoder Transformer
TransformerXL
Number of Encoder Blocks
8
Number of Decoder Blocks
4
Hidden Dimension
1024
Trajectory Chunk size
128
Attention Memory Size
256
β1
0.1
β2
0.1
+
+# B ATARI
+
+Environment Description. Atari 2600 games contain a lot of diverse video games, which is a widespread benchmark to evaluate the decision-making capability of an agent. The Atari games do not inherently support multitasking concepts; agents are typically tasked with optimizing for the highest possible rewards. However, an advanced human player can deliberately control their gameplay level and achieve any potential score. The ability to "control scores" is generally considered a higher intelligence level compared with merely "winning the game". Therefore, this paper does not emphasize the highest absolute score an agent can achieve in the Atari environment. Instead, it focuses on evaluating the agent's ability to follow instructions in the form of videos and "desired cumulative rewards" and to perform at the appropriate level. Especially when videos serve as conditions, the agent needs to infer the player's level demonstrated in the reference gameplay, which poses a significant challenge for the current agents. To our knowledge, this setting has not been explored by previous works.
+
+Observation and Action Spaces. We utilize the popular Arcade Learning Environment (ALE) as our testing platform, where the original observation image provided is $210 \times 160$ , and the action space consists of 18 discrete actions defined by the joystick controller. Following previous works, the observation images are typically resized to $84 \times 84$ grayscale images. In implementing GROOT-v2, we employ the ViT/32 model initialized with OpenAI's pre-trained CLIP model. The observation image, $84 \times 84$ , is resized to a resolution of $224 \times 224$ before being fed into the model for unification. During the training process, the ViT backbone is jointly fine-tuned. The TransformerXL architecture used for the decoder has its memory set to a horizon of 128.
+
+Training Dataset. We utilize the trajectories from the Replay Buffer generated during the training of agents using the DQN algorithm on Atari, provided by Google, as our source of training data. We access this data through the interface provided in the d4rl-atai project at GitHub*. Specifically, the trajectory data for each game consists of three parts: mixed, medium, and expert, representing the environment interaction data from 0-1M steps, 9M-10M steps, and the final 1M steps of a training session, respectively. We construct training data of 10M steps for each Atari game, with the proportions of mixed, medium, and expert data being 2:5:3. During training, we use a single model to
+
+
+Figure B.1: Distribution of episode returns for each Atari game.
+
+fit 35 selected game environments on Atari. Considering the significant differences in absolute scores across different games, we standardize the reward scores. Specifically, we calculate the cumulative reward scores for each complete trajectory and adjust them to a mean of 0 and a standard deviation of 1 using the formula $R \leftarrow (R - \mu) / \sigma$ , which represents the game level corresponding to that trajectory. Figure B.1 illustrates the episode return distributions for each Atari game. Subsequently, each trajectory is segmented into 128-step fragments with the same label.
+
+Complete Results. We selected trajectory data from 35 Atari games, totaling 350 million frames, to train GROOT-2, with $30\%$ of the data labeled with returns and the remaining $70\%$ containing only image observations and actions, aligning with the setup for weakly supervised training. After the model converged, we tested GROOT-2's ability to follow return-format and video-format instructions across these 35 games. When testing return-format instructions, we chose three samples within the normalized returns space: $\{-1,0,1\}$ . For video-format instructions, we randomly sampled a segment of 128 frames from the test data with normalized rewards within the range of $\{-1,0,1\}$ , allowing a deviation of $\pm 0.05$ . Each instruction was tested 40 times, with the results depicted in Figure B.2. We observed the following: (1) In the majority of games, GROOT-2's performance showed a clear positive correlation with the game level corresponding to the instructions. (2) In certain games (such as Pong, Seaquest, Skiing, Wizard of Wor), video-format instructions yielded better control over the agent than return-format instructions. Conversely, in games like Amidar, Battle Zone, and Zaxxon, return-format instructions demonstrated significantly superior control compared to video-format instructions.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure B.2: IQM scores (with $95\%$ confidence interval) of GROOT-2 which is jointly trained on 35 Atari games. GROOT-2 can understand both the returns-format instructions and video-format instructions on most of the games. The performance of the GROOT-2 exhibits a positive correlation with the game level corresponding to the provided instructions.
+
+
+
+
+
+
+
+
+
+# C MINECRAFT
+
+Environment Description. Minecraft is a 3D sandbox game with a global monthly active user base of 100 million. It features procedurally generated worlds of unlimited size and includes dozens of biomes such as plains, forests, jungles, and oceans. The game grants players a high degree of freedom to explore the entire world. The mainstream gameplay includes gathering materials, crafting items, constructing structures, farming land, engaging in combat mobs, and treasure hunting, among others. In this game, players need to face situations that are highly similar to the real world, making
+
+judgments and decisions to deal with various environments and problems. One can easily specify a task with a natural language description or a demonstration video. Therefore, Minecraft is an ideal environment to test how an agent behaves in an open-world environment.
+
+Observation and Action Spaces. We use the combination of 1.16.5 version MineRL (Guss et al., 2019) and MCP-Reborn† as our testing platform, which is consistent with the environment used by VPT (Baker et al., 2022) STEVE-1 (Lifshitz et al., 2023) and GROOT-1 (Cai et al., 2023b). Mainly because this platform preserves observation and action space that is consistent with human players to the fullest extent. On the one hand, this design brings about high challenges, as agents can only interact with the environment using low-level mouse and keyboard actions, and can only observe visual information like human players without any in-game privileged information. The Minecraft simulator first generates an RGB image with dimensions of $640 \times 360$ during the rendering process. Before inputting to the agent, we resize the image to $224 \times 224$ to enable the agent to see item icons in the inventory and important details in the environment. When the agent opens the GUI, the simulator also renders the mouse cursor normally. The RGB image is the only observation that the agent can obtain from the environment during inference. It is worth noting that to help the agent see more clearly in extremely dark environments, we have added a night vision effect for the agent, which increases the brightness of the environment during nighttime. Our action space is almost identical to that of humans, except for actions that involve inputting strings. It consists of two parts: the mouse and the keyboard. The mouse movement is responsible for changing the player's camera perspective and moving the cursor when the GUI is opened. The left and right buttons are responsible for attacking and using items. The keyboard is mainly responsible for controlling the agent's movement. To avoid predicting null action, we used the same joint hierarchical action space as Baker et al. (2022), which consists of button space and camera space. Button space encodes all combinations of keyboard operations and a flag indicating whether the mouse is used, resulting in a total of 8461 candidate actions. The camera space discretizes the range of one mouse movement into 121 actions. Therefore, the action head of the agent is a multi-classification network with 8461 dimensions and a multi-classification network with 121 dimensions.
+
+Training Dataset. The contractor data is a Minecraft offline trajectory dataset provided by Baker et al. (2022), which is recorded by professional human players. In this dataset, human players play the game while the system records the image sequence $o_{1:N}$ , action sequence $a_{1:N}$ , and metadata $e_{1:N}$ generated by the players. Excluding frames containing empty actions, the dataset contains 1.6 billion frames with a duration of approximately 2000 hours. The metadata records the 7 kinds of events triggered by the agent in the game at each timestep, i.e. craft item, pickup, mine block, drop item, kill entity, use item, and custom. We augment each event with a text description using the OpenAI chatGPT service. To construct trajectory data with textual labels, we enumerate all timesteps within the trajectory where an event occurs. From this point, we count 112 frames backward and 16 frames forward to form a segment of 128 frames. The textual label for this segment is derived from the text associated with the event. It is important to note that many events occur frequently; for example, when the player is mining a tunnel, the event "mine block: cobblestone" is triggered on average twice per second. To address this issue, if a segment generated by an event overlaps with a previously generated segment, it is skipped. Each event collects a maximum of 2000 segments, and across all 1518 events, 414,387 segments are included. It is noteworthy that a significant amount of duplication persists within these segments, as a single segment may encompass multiple events.
+
+# D LANGUAGE TABLE
+
+Environment Description. Language Table (Lynch et al., 2023) is a comprehensive evaluation suite proposed by the Google for assessing a robot's ability to follow natural language instructions to solve Table Manipulation tasks. It includes a dataset, environment, benchmarks, and a baseline policy. The evaluation benchmark encompasses over 87,000 diverse behaviors and more than 600,000 trajectories annotated with text instruction. In addition to data from real environments, the suite also provides a simulator akin to a real environment along with corresponding simulated data.
+
+Observation and Action Spaces. Language Table's simulated environment resembles the real-world tabletop manipulation scenario, which consists of an xArm6 robot, constrained to move in a 2D plane with a cylindrical end-effector, in front of a smooth wooden board with a fixed set of 8 plastic blocks,
+
+
+Figure C.3: GROOT-2 can infer the intention behind the reference video and follow it to complete tasks. The left visualizes three reference videos along with their textual descriptions. The right figure displays the policy's rollout trajectories when conditioned on the reference videos. The white dashed line represents the arm's movement trajectory, and the red dashed circle highlights the arm's final position.
+
+comprising 4 colors and 6 shapes. In both simulation and real collection, they use high-rate human teleoperation with a 3rd person view (line-of-sight in real). Actions are 2D delta Cartesian setpoints, from the previous setpoint to the new one. They batch collected training and inference data to 5hz observations and actions.
+
+Training Dataset. We use the training trajectories from the official Language Table repository. An oracle script generates the trajectories and covers all 5 task families, each containing 20M trajectories, in a total of 100M trajectories. The dataset names are: language-table-blocktoblock-oracle-sim, language-table-blocktoblockrelative-oracle-sim, language-table-blocktoabsolute-oraclesim, language-table-blocktorelative-oracle-sim, language-table-separate-oracle-sim.
+
+Task Definition. The evaluation benchmark consists of 5 task families (block2block, block2abs, block2rel, block2blockrel, separate), totaling 696 distinct task variants. We report the success rate of the agent within 200 steps on each task as the final metric. Considering that the Language Table inherently includes instructions in the language modality for its 5 task families, we have curated a set of reference videos for each task family, each with relatively clear intentions, to serve as a video instruction set. This is done to evaluate the model's ability to comprehend video instructions. The details are in Table 7. We visualize some examples when conditioning GROOT-2 on reference videos in Figure C.3.
+
+# E SIMPLER ENV
+
+Environment Description. Simpler Env is a physical simulator proposed by Li et al. (2024), efficient, scalable, and informative complements to real-world evaluations. It can be used to evaluate diverse sets of rigid-body tasks (non-articulated / articulated objects, tabletop / non-tabletop tasks), with many intra-task variations (e.g., different object combinations; different object/robot positions and orientations), for each of two robot embodiments (Google Robot and WidowX).
+
+Observation and Action Spaces. The observation and action spaces of Simpler Env are the same as the Language Table. The action sequence is expected to be a 6D end-effector pose trajectory with a gripper flag indicating the open/close status. Before feeding the image observation into the policy, we resize the image to a $224 \times 224$ resolution.
+
+Table 7: Sampled reference videos to build video instruction set.
+
+
Task Family
Video Description
block to block
put the red moon to the blue moon
block to block
put the blue moon towards the yellow star
block to block
slide the red pentagon close to the green cube
block to block
slide the green star to the red moon
block to block
put the green cube next to the red pentagon
block to absolute location
slide the blue cube to the upper left corner
block to absolute location
push the blue moon to the top left of the board
block to absolute location
move the red moon to the bottom left
block to absolute location
slide the yellow star to the right side of the board
block to absolute location
push the yellow pentagon to the left side
block to block relative location
move the green star to the left side of the yellow pentagon
block to block relative location
push the green star diagonally up and to the right of the green cube
block to block relative location
put the red moon to the bottom left side of the yellow star
block to block relative location
slide the yellow pentagon to the bottom left side of the red pentagon
block to block relative location
slide the blue cube to the top of the blue moon
block to relative location
push the green cube right
block to relative location
slide the yellow pentagon downwards and to the right
block to relative location
push the blue cube somewhat to the left
block to relative location
move the blue moon to the right
block to relative location
slide the red pentagon up
separate
pull the yellow pentagon apart from the blue moon
separate
pull the green star apart from the yellow star
separate
pull the blue cube apart from the blue moon and red pentagon
separate
move the blue cube away from the yellow star
separate
move the green star away from the yellow pentagon
\ No newline at end of file
diff --git a/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/images.zip b/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6897b9db282f7f5b407f1dfd3262069b533d723a
--- /dev/null
+++ b/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:03508d49cb01d30dd02f25858aae1e36f77c85a08cea7802a8fdf013ddb45a05
+size 1264612
diff --git a/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/layout.json b/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..5fa282635105e5e7072db342fc864e12261266c1
--- /dev/null
+++ b/ICLR/2025/GROOT-2_ Weakly Supervised Multimodal Instruction Following Agents/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:be972a2dd7df45ad18a5fef7b30e2001d2b7613f8cfefde918b414d3d9b6aadd
+size 614518
diff --git a/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/14e2689c-ecda-4b8a-b03a-5f1a3713c9e2_content_list.json b/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/14e2689c-ecda-4b8a-b03a-5f1a3713c9e2_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..693dea22ca2cb0c737901092b76d331c7bf838e3
--- /dev/null
+++ b/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/14e2689c-ecda-4b8a-b03a-5f1a3713c9e2_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c76c8cdb80c6065b3b4fc54030bc5da6d694b10e57cc0ac8569ccf9d26a79686
+size 170123
diff --git a/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/14e2689c-ecda-4b8a-b03a-5f1a3713c9e2_model.json b/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/14e2689c-ecda-4b8a-b03a-5f1a3713c9e2_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..9918e2852f1e9a2e2ac534e282839c2bdcb37671
--- /dev/null
+++ b/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/14e2689c-ecda-4b8a-b03a-5f1a3713c9e2_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4f4c670b07e59590e18bff20e2465ae2faf9de330a02b49b3f4f0c9b68327fec
+size 191989
diff --git a/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/14e2689c-ecda-4b8a-b03a-5f1a3713c9e2_origin.pdf b/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/14e2689c-ecda-4b8a-b03a-5f1a3713c9e2_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ef1de9b3592871126906d05883e0334f8d35473f
--- /dev/null
+++ b/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/14e2689c-ecda-4b8a-b03a-5f1a3713c9e2_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e19d83c4ee020939d25dbe2c53ca4f15b12f3181c64020d3186d181d40eb292a
+size 1731755
diff --git a/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/full.md b/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..94b2deb98a7de31f7f27901ecc5353a60db07877
--- /dev/null
+++ b/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/full.md
@@ -0,0 +1,586 @@
+# GREATER: GRADIENTS OVER REASONING MAKES SMALLER LANGUAGE MODELS STRONG PROMPT OPTIMIZERS
+
+Sarkar Snigdha Sarathi Das† Ryo Kamoi† Bo Pang‡ Yusen Zhang†
+Caiming Xiong‡ Rui Zhang†
+†The Pennsylvania State University Salesforce Research
+{sfd5525, rmz5227}@psu.edu
+
+# ABSTRACT
+
+The effectiveness of large language models (LLMs) is closely tied to the design of prompts, making prompt optimization essential for enhancing their performance across a wide range of tasks. Many existing approaches to automating prompt engineering rely exclusively on textual feedback, refining prompts based solely on inference errors identified by large, computationally expensive LLMs. Unfortunately, smaller models struggle to generate high-quality feedback, resulting in complete dependence on large LLM judgment. Moreover, these methods fail to leverage more direct and finer-grained information, such as gradients, due to operating purely in text space. To this end, we introduce GREATER, a novel prompt optimization technique that directly incorporates gradient information over task-specific reasoning. By utilizing task loss gradients, GREATER enables self-optimization of prompts for open-source, lightweight language models without the need for costly closed-source LLMs. This allows high-performance prompt optimization without dependence on massive LLMs, closing the gap between smaller models and the sophisticated reasoning often needed for prompt refinement. Extensive evaluations across diverse reasoning tasks including BBH, GSM8k, and FOLIO demonstrate that GREATER consistently outperforms previous state-of-the-art prompt optimization methods, even those reliant on powerful LLMs. Additionally, GREATER-optimized prompts frequently exhibit better transferability and, in some cases, boost task performance to levels comparable to or surpassing those achieved by larger language models, highlighting the effectiveness of prompt optimization guided by gradients over reasoning. Code of GREATER is available at: https://github.com/psunlpgroup/Greater.
+
+# 1 INTRODUCTION
+
+Large Language Models (LLMs) have demonstrated impressive performance across various task domains (Brown, 2020; Achiam et al., 2023; Reid et al., 2024). However, these models are known to exhibit prompt sensitivity, a phenomenon where slight variations in input prompts can lead to significant differences in output quality (Lu et al., 2021; Madaan & Yazdanbakhsh, 2022; Zhao et al., 2021; Reynolds & McDonell, 2021; Wei et al., 2022; Kojima et al., 2022). Consequently, prompt design has emerged as a critical factor in achieving optimal LLM performance. As the popularity of LLMs has surged, "Prompt Engineering" has become a focal point of attention in the field. Traditionally, this process has been carried out by domain experts who iteratively query expensive LLMs until the desired response is obtained. However, this manual approach is time-consuming and resource-intensive, prompting researchers to explore more efficient alternatives. Recent research has focused on Automated Prompt Engineering (Zhou et al., 2022), which aims to systematically search for prompts that improve target task performance. Following this line of research, (Pryzant et al., 2023; Ye et al., 2023) improved upon it by resorting to computationally expensive stronger LLMs to reason about failure causes in smaller, efficient LLMs deployed in practical tasks. Pryzant et al. (2023) termed this feedback as "textual gradient", since this feedback is leveraged to improve the prompts iteratively.
+
+
+$\times$ Rely on Larger LMs judgement and refinement
+$\times$ Limited Transferability to smaller models
+
+Textual Feedback based Prompt Optimization
+Our GreaTer Prompt Optimization Based on Loss Gradient
+Figure 1: Comparison of textual feedback-based prompt optimization and GREATER. Left: textual feedback relies entirely on a larger language model's judgments. Right: GREATER avoids external large, proprietary models, using token suggestions from a small model and guiding prompt token selection with loss gradients. GREATER incorporates model reasoning by first generating reasoning, then applying an extraction prompt to obtain answer logits for computing loss gradients. This "gradient over reasoning" approach optimizes using direct signals rather than relying on language model feedback.
+
+X Requires Larger Proprietary LMs
+X Suboptimal Performance in smaller models
+$\checkmark$ Optimization directed by loss gradient, a more direct signal
+- Does not require larger LMs for prompt optimization
+GreaTer Performance in smaller models
+GreaTer Transferability to smaller models
+
+Despite showing promising performance, the primary limitation of this category of prompt optimization is the reliance on massive LLMs like GPT-4 for optimizing smaller model performance. Smaller LLMs used in practice rely on large models like GPT-4 for optimization, as these big models generate the "textual gradients" needed to refine and transfer knowledge. (Zhang et al., 2024) found that smaller LMs are incapable of generating such optimization feedback, further emphasizing the dependence on large models. Thus, enhancing smaller models depends on the computational power of larger ones. Additionally, the optimization process increases computational costs due to the need for sizeable prompt length due to multiple task samples, and heavy dependence on the optimizer LLM's judgment may result in less reliable outcomes.
+
+To mitigate these issues, we propose GREATER that allows smaller LLMs to optimize prompts using true gradients (i.e., numerical loss gradients) without resorting to larger models. Figure 1 (right) gives an overview of our approach. GREATER leverages "gradient over reasoning" for more accurate prompt improvement direction. GREATER first calculates the forward token probabilities to generate a small number of probable token candidates at the selected position conditioned on the input. Then, it utilizes the LLM to generate the reasoning for problem solution, and extracts the final answer logits for calculating the loss. Finally, we leverage the gradient calculated for the probable token candidates to select the best tokens for optimization. Our technique innovates by tackling token discreteness while integrating reasoning chains, crucial for limited datasets like Big Bench Hard (Suzgun et al., 2022), which provide final labels without explicit reasoning paths.
+
+GREATER shows strong prompt optimization performance, where optimized prompt often delivers performance equivalent to larger LLMs in solving the task. In our experiments, we selected Llama-3-8B-Instruct (Meta, 2024) and Gemma-2-9B-it (Team et al., 2024), two highly popular smaller language models that are proven to be also very useful in solving different tasks. Across a wide variety of selected BBH (Suzgun et al., 2022) tasks, mathematical reasoning task GSM8k, and first-order logic task, FOLIO (Han et al., 2022), GREATER shows up to $8.9\%$ performance improvement over SOTA prompt optimization technique on average in BBH suite of tasks. Moreover, GREATER optimized prompts perform on par or better than GPT-4 optimized prompts (Ye et al., 2023), demonstrating superior performance without resorting to larger proprietary LLMs.
+
+# 2 RELATED WORK
+
+LLMs as Prompt Optimizers. Recently, significant attention has been brought to the prospect of LLMs as prompt optimizers for less powerful models. This line of work was first proposed by Zhou et al. (2022) by prompting LLMs with input-output pairs to infer the instruction. Pryzant et al. (2023) formalized the term "textual gradient" to refer to textual feedback based optimization. Here the authors introduced the use of mini-batches of data to create a natural language feedback. These
+
+gradients critique the current prompt, mimicking the role of numerical gradient in optimization. Later, a large body of works has improved upon it by using optimization logic in text space (Yang et al., 2023; Yuksekgonul et al., 2024), meta-prompt engineering (Ye et al., 2023), agent-based learning and reasoning (Wang et al., 2023; Liu et al., 2024; Shinn et al., 2024), external trained model (Cheng et al., 2023), evolutionary algorithms (Guo et al., 2023; Liu et al., 2024), etc. Hu et al. (2024) introduced ZOPO, leveraging Gaussian processes inspired by the Neural Tangent Kernel to systematically explore local optima in prompt optimization using zeroth-order methods. Other approaches like programming model (Khattab et al., 2023), editing (Prasad et al., 2022), and reinforcement learning (Deng et al., 2022) are also notable. These techniques usually rely on reasoning and judgment from larger LMs to improve the performance of smaller LMs. In other words, the larger model can share its knowledge through the optimized prompt which helps smaller models achieve performance uplift. Therefore, to get strong results with smaller, more lightweight language models, prompts must be optimized using powerful, expensive, closed-source models, as smaller models are inadequate at this optimization on their own (Zhang et al., 2024).
+
+Prompt Tuning. Prompt-tuning has been explored in prior works as task-specific continuous vectors tuned by gradient-based methods to improve task performance (Li & Liang, 2021; Lester et al., 2021; Qin & Eisner, 2021; Gao et al., 2020). Discrete prompts on the other hand involve searching for discrete vocabulary tokens through gradients (Shin et al., 2020; Shi et al., 2022). These approaches can be further extended for visual prompt tuning (Wen et al., 2024), where the authors optimize hard text based prompts through efficient gradient-based optimization. A fundamental flaw in these methods stems from the fact that these methods are typically only suitable for classification tasks or tasks with fixed input-output structures, as they rely on predefined templates and verbalizers. Reasoning tasks on the other hand require complex analytical reasoning chains, e.g., Big-Bench-Hard (Suzgun et al., 2022), which leads to the final output, where using a fixed template verbalizer is incompatible and impractical.
+
+Jailbreaking LLMs. Gradient-based search methods have also been applied to find trigger prompts that bypass LLM alignment-based filtering and generate harmful responses (Zou et al., 2023). These methods have been further refined to improve readability and effectiveness by including perplexity regularization and constrained-decoding (Guo et al., 2021; Alon & Kamfonas, 2023; Liu et al., 2023; Guo et al., 2024). Similar to prompt tuning, these methods also adhere to a simple input-output structure. The target output typically is an affirmative response "Sure here is", without emphasis on the reasoning chain.
+
+# 3 PROBLEM DEFINITION
+
+We formally define the problem of prompt optimization to lay the foundation of the optimization target. Given a language model $f_{\mathrm{LLM}}$ , and a small representative task dataset, $\mathcal{D}_{task} = \{(x_1, y_1), \ldots, (x_n, y_n)\}$ , the goal of prompt optimization is to find a prompt $p^*$ such that:
+
+$$
+p ^ {*} = \arg \max _ {p} \sum_ {(x, y) \in \mathcal {D} _ {\text {t a s k}}} m \left(f _ {\mathrm {L L M}} (x; p), y\right) \tag {1}
+$$
+
+where $f_{\mathrm{LLM}}(x;p)$ is the output from task language model $f_{\mathrm{LLM}}$ upon channeling the input $x$ with the prompt $p$ , and $m(\cdot)$ is the evaluation function for this task.
+
+Textual Feedback Based Prompt Optimization. As shown in the left part of Figure 1, to search for $p^*$ , previous prompt optimization methods based on textual feedback use an optimizer model $f_{\text{optimizer}}$ which is usually substantially larger and more expensive than $f_{\text{LLM}}$ (Zhou et al., 2022; Ye et al., 2023; Pryzant et al., 2023). Conceptually, $f_{\text{optimizer}}(m(f_{\text{LLM}}(x;p), y)) | (x,y) \in \mathcal{D}_{\text{task}}$ drives the optimization process by assessing and providing feedback for refining the prompt. Therefore, finding $p^*$ primarily relies on the capabilities of $f_{\text{optimizer}}$ and its hypothesis for prompt refinement.
+
+# 4 OUR METHOD
+
+While Section 3 provides the formal explanation of prompt optimization, it's important to understand the role of reasoning in this process. A well-crafted prompt gives clear problem-solving instructions
+
+
+Figure 2: Overall workflow of GREATER. (i) The language model $f_{\mathrm{LLM}}$ generates token candidates by conditioning on input samples. (ii) $f_{\mathrm{LLM}}$ uses task input and current prompt to generate reasoning and extract final answer logits. (iii) The logits are used to calculate loss and compute gradient over generated reasoning with respect to the candidate tokens. These gradients determine the selection of candidate token to update the current position of the current prompt.
+
+that guide the language model to think through the problem in a specific way, helping it arrive at a valid answer. Our method, GREATER, is built on this principle. As shown in Figure 2, GREATER begins by analyzing task examples to propose potential token candidates, essentially exploring different ways to solve the task. The task input and prompts are then used to generate reasoning steps, from which the final answer and loss are extracted. By applying gradients over the generated reasoning, GREATER refines the candidate selection, ensuring it follows the optimal path for improved performance.
+
+# 4.1 METHOD OVERVIEW
+
+Given an input $x$ and a prompt $p = [p_1, p_2, p_3, \ldots]$ consisting of several tokens $p_i$ , $f_{\text{LLM}}$ generates the reasoning chain, $r \sim f_{\text{LLM}}(x \odot p)$ for the input ( $\odot$ for concatenation). Then, we can extract the final answer from $r$ by prompting $f_{\text{LLM}}$ with a formatted extractor prompt $p_{\text{extract}}$ , e.g., "Therefore, the final answer ( $NUMBER$ ) is $". Consequently, this produces the final answer logits, $y' = f_{\text{LLM}}(x \odot p \odot r \odot p_{\text{extract}})$ . We define our loss function as:
+
+$$
+\mathcal {L} = \mathcal {L} _ {C E} \left(f _ {\mathrm {L L M}} \left(x \odot p \odot r \odot p _ {\text {e x t r a c t}}\right), y\right) \tag {2}
+$$
+
+In Eq. 2, for a fixed $p_{\mathrm{extract}}$ and $x$ , only $p$ will affect the loss; therefore we can calculate $\left.\frac{\partial\mathcal{L}}{\partial p}\right|_{x,p_{\mathrm{extract}}}$ . This loss gradient takes the reasoning into account, making it a more direct signal to drive the prompt optimization process. Therefore, this "gradient over reasoning" can be a highly potent alternative to current textual feedback based prompt optimization that entirely relies on massive LLM feedback. Note that, in Eq. 2, the entire chain is equivalent to one single forward pass through $f_{\mathrm{LLM}}$ , since key values from reasoning generation can be cached and utilized during logit extraction.
+
+We sequentially apply GREATER optimization in each token position $p_i$ of $p$ . GREATER first employs a Candidate Proposal (Section 4.2) stage, where it uses language model-guided forward probabilities to generate potential token candidates for optimized prompt. Subsequently, the current prompt is channeled through LLM, $f_{\mathrm{LLM}}$ for solution generation, and then answer logits extraction (Section 4.3). Using these logits, we can calculate the loss and gradient with respect to the small number of prompt token candidates which we use for token selection. (Section 4.4). This process can be applied over all the prompt token positions repeatedly.
+
+In the following subsections, we discuss each stage of GREATER to optimize prompt token $p_i$ at position $i$ . Algorithm 1 shows all the steps in GREATER. This process is sequentially applied over all the positions repeatedly until convergence.
+
+# 4.2 PROMPTTOKENCANDIDATEPROPOSAL
+
+For optimizing prompt token $p_i$ , we first leverage the task language model (LM) $f_{\mathrm{LLM}}$ probabilities to propose candidates for the position. For a sample input $x_j \in \mathcal{D}_{task}$ , we can calculate the top- $k$ probabilities for candidate token proposals:
+
+$$
+\operatorname {c a n d} _ {i, j} = \operatorname {t o p} - k [ f _ {\mathrm {L L M}} (\cdot | x _ {j} \odot p _ {1}, p _ {2}, \dots , p _ {i - 1}) ] \tag {3}
+$$
+
+Algorithm 1 GREATER
+1: Input: Initial Prompt $p_{\mathrm{init}} = (p_1, p_2, p_3, \ldots)$ , Task Dataset $\mathcal{D}_{\mathrm{task}} = (X, Y)$ , Language Model $f_{\mathrm{LLM}}$ , Extractor Prompt $p_{\mathrm{extract}}$
+2: Output: Optimized Prompt $p^*$
+3: $p, p^*, L_{\mathrm{best}} \gets p_{\mathrm{init}}, p_{\mathrm{init}}, \infty$
+4: position, $i \gets 0$
+5: for $t \gets 1$ to $T$ do
+6: // Candidate Proposal Stage
+7: candidates $i \gets \bigcap_{x_j \in \mathcal{D}_q} \text{cand}_{i,j}$ , where $\mathcal{D}_q \subset \mathcal{D}_{\mathrm{task}}$
+8: Compute one-hot token indicator $\epsilon_i$ for candidates
+9: // Reasoning Generation and Extraction
+10: Calculate logits, $\hat{Y} \gets \{f_{\mathrm{LLM}}(x \odot p \odot f_{\mathrm{LLM}}(x \odot p) \odot p_{\mathrm{extract}}) | x \in \mathcal{D}\}$
+and Logits (From Eqn. 5)
+11: // Gradient Over Reasoning driven Candidate Selection
+12: Compute total Loss $\mathcal{L}(\hat{Y}, Y)$ for $\mathcal{D}$ and $\frac{\partial \mathcal{L}}{\partial \epsilon_i}$
+13: // select top- $\mu$ tokens with gradients and find the candidate with the lowest loss
+14: selections $i \gets \text{token}[\text{top-} \mu(-\frac{\partial \mathcal{L}}{\partial \epsilon_i})]$ , where $\mu = 3$
+15: $p_i, \mathcal{L}_{\min} \gets \arg \min_{c \in \text{selections}_i} \sum_{(x,y) \in \mathcal{D}} \mathcal{L}(f_{\mathrm{LLM}}(x \odot p_{i}), y)$
+candidate, assuming arg min also returns min\_loss
+16: if $\mathcal{L}_{\min} < L_{\mathrm{best}}$ then
+17: $L_{\mathrm{best}} \gets L_{\mathrm{min}}$
+18: $p^* \gets p$
+19: $i \gets (i + 1) \mod \text{length}(p_{\mathrm{init}})$
+20: return $p^*$
+
+Therefore, we take top- $k$ tokens from $f_{\mathrm{LLM}}$ conditioning on $x_{j}$ followed by the previous tokens from the optimized prompt. We calculate $\mathrm{cand}_{i,j}$ for a randomly sampled set of $q$ inputs, $\mathcal{D}_q \subset \mathcal{D}_{\mathrm{task}}$ . Since we want the token candidates to be relevant for all samples in the task, token candidates for position $i$ will incorporate candidates for all samples, so
+
+$$
+\operatorname {c a n d i d a t e s} _ {i} = \bigcap_ {x _ {j} \in \mathcal {D} _ {q}} \operatorname {c a n d} _ {i, j} \tag {4}
+$$
+
+Equation 4 gives $\mathrm{candidates}_i$ , a set of promising token candidates for position $i$ . Since $\mathrm{candidates}_i$ are suggested by LM and conditioned on the inputs, they are representative of the problem domain and more interpretable. Therefore, gradient mass will be calculated only for a small number of promising token candidates, $\epsilon_i$ , preventing it from being dispersed over the entire vocabulary.
+
+One-Hot Token Indicators. As shown in Figure 2 (i), a one-hot token indicator $\epsilon_{i}$ is created for only candidates $i$ and the current token $p_i$ , with a value of one only for $p_i$ and zeros for all other candidates. Concurrently, from the original LM embedding table, we extract only the rows that correspond to $\epsilon_{i}$ to create a subset of the original embedding table, $E$ . This table is then multiplied by the one-hot indicator $\epsilon_{i}$ , allowing the input to be passed through $f_{\mathrm{LLM}}$ .
+
+# 4.3 REASONING GENERATION AND EXTRACTION
+
+A straightforward way of calculating loss and subsequently taking gradient over it is to only consider the output of $f_{\mathrm{LLM}}(x \odot p)$ and taking cross-entropy loss of the output token to that of the ground truth. However, this completely ignores the role of reasoning as discussed before, whereas modern language models require the generation of a complex reasoning chain to generate correct output (Wei et al., 2022). Therefore, simply considering $f_{\mathrm{LLM}}(y|x \odot p)$ would give us the wrong objective to optimize, which in turn will give incorrect gradient information.
+
+Consequently, in this stage, we first generate a reasoning $r \sim f_{\mathrm{LLM}}(x \odot p)$ . In $r$ , the language model generates reasoning to derive the final answer. To compute the loss accurately, we must extract the answer logits and compare with the ground truth label. A simple way to do that is to get $f_{\mathrm{LLM}}$ logits when conditioned on the input, reasoning, followed by a formatted extractor prompt, $p_{\mathrm{extract}}$ .
+
+$$
+\hat {y} = f _ {\mathrm {L L M}} \left(x \odot p \odot r \odot p _ {\text {e x t r a c t}}\right) \tag {5}
+$$
+
+Equation 5 results in LM logits that consider the reasoning generated from the current prompt $p$ . Therefore, it better represents the reasoning chain making it suitable for loss calculation.
+
+# 4.4 GRADIENT OVER REASONING DRIVEN CANDIDATE SELECTION
+
+Equation 5 gives us the logits $\hat{y}$ that incorporate reasoning chain information originating from current $p$ . Therefore, we can optimize the cross-entropy loss as below. Additionally, we add the perplexity regularization term $\mathcal{L}_{perpl}$ to promote the interpretability of the optimized prompt similar to (Zou et al., 2023; Guo et al., 2024).
+
+$$
+\mathcal {L} _ {\mathrm {C E}} = \text {c r o s s - e n t r o p y} (\hat {y}, y), \mathcal {L} _ {\text {p e r p l}} = \exp \left(- \frac {1}{| p |} \sum_ {i = 1} ^ {| p |} \log f _ {\mathrm {L L M}} \left(p _ {i} \mid x, p _ {< i}\right)\right), \mathcal {L} = \mathcal {L} _ {\mathrm {C E}} + \lambda \mathcal {L} _ {\text {p e r p l}} \tag {6}
+$$
+
+However, the perplexity term is less important in our case given that we are optimizing only over the top- $k$ candidates suggested by the LM. Consequently, the candidate proposal stage handles most of the interpretability duties.
+
+Upon calculating the loss $\mathcal{L}$ , we can do a backward pass to calculate the gradient over the generated reasoning with respect to one-hot token indicator $\epsilon_{i}$ . As $\frac{\partial\mathcal{L}}{\partial\epsilon_i}$ gives us the gradient directions for each of the token candidates in Equation 4, the token replacement at position $i$ is given by:
+
+$$
+p _ {i} = \operatorname {t o k e n} \left[ \arg \max \left(- \frac {\partial \mathcal {L}}{\partial \epsilon_ {i}}\right) \right] \tag {7}
+$$
+
+In practice, we select the top-three candidate tokens with the highest negative gradients and evaluate the token replacement with a forward pass on the training set. This ensures the robustness of the replacement selection process leading to higher performance from optimization.
+
+# 5 EXPERIMENTS
+
+In this section, we demonstrate that GREATER is highly effective in prompt optimization delivering substantial performance improvement across different tasks. Section 5.1 describes the experiment setup. Section 5.2 presents the main results of the GREATER performance with smaller language models. In Section 5.3, we compare GREATER prompts optimized by smaller language models against the prompts optimized by larger proprietary language models using state-of-the-art baseline methods. Section 5.4 performs an ablation study on the effectiveness of gradient over reasoning in GREATER. Section 5.5 demonstrates the transferability of GREATER prompts. Section 5.6 shows some case studies.
+
+# 5.1 EXPERIMENT SETUP
+
+Datasets. To evaluate the efficacy of our approach, we use GSM8K (Cobbe et al., 2021), Big-Bench-Hard (BBH) (Suzgun et al., 2022), and FOLIO (Han et al., 2022) benchmark datasets for diverse reasoning tasks in mathematics, commonsense, and logical reasoning. For GSM8K, we used the same test split as (Cobbe et al., 2021). For BBH, we used the similar split setting as (Yuksekgonul et al., 2024). For FOLIO, we evaluate the natural language reasoning with the first-order logic task for the evaluation which also requires complex reasoning capabilities. We used the natural language reasoning task with premises text, conclusion text to infer the labels, and we use the validation set of the updated version of FOLIO1. More details about these are given in Appendix A.1.
+
+Models. To demonstrate that our approach can generalize to different backbone language models, we choose two strong and widely-used open-source language models: Llama-3-8B (Meta, 2024) and Gemma-2-9B (Team et al., 2024). For both models, we use the instruction tuned versions $^{2,3}$ .
+
+Table 1: Overall results. GREATER brings substantial performance improvements across different reasoning tasks, demonstrating its efficacy in prompt optimization with smaller models. It considerably outperforms state-of-the-art prompt optimization methods. Detailed prompts and results with breakdown across all the tasks are shown in Appendix H and Appendix I.
+
+
Method
Gemma-2-9B
Llama-3-8B
GSM8K
BBH
FOLIO
GSM8K
BBH
FOLIO
ZS-CoT (Kojima et al., 2022)
88.6
71.7
65.0
79.6
62.2
58.6
APE (Zhou et al., 2022)
88.6
71.7
67.5
79.9
63.1
57.6
APO (Pryzant et al., 2023)
88.6
72.3
63.1
81.1
62.7
58.6
PE2 (Ye et al., 2023)
88.6
68.9
62.1
80.1
61.5
62.6
TextGrad (Yuksekgonul et al., 2024)
87.8
72.9
67.5
78.5
58.5
56.2
GREATER
89.4
76.6
69.1
82.6
68.7
62.6
+
+Baselines. We compare with state-of-the-art prompt optimization baselines: APE (Zhou et al., 2022), APO (Pryzant et al., 2023), PE2 (Ye et al., 2023), TextGrad (Yuksekgonul et al., 2024) where we use them on Llama-3-8B and Gemma-2-9B for optimization. In addition, we also show the efficacy of our approach by comparing against the prompts optimized by massive proprietary LLMs (e.g., GPT-4, PaLM-2-L) using APE, APO, PE2, TextGrad, OPRO (Yang et al., 2023), EvoPrompt (Guo et al., 2023).
+
+# 5.2 OVERALL RESULTS
+
+We evaluate the performance of GREATER in comparison to state-of-the-art baselines, including APE, APO, PE2, TextGrad, and the original zero-shot chain-of-thought approach (Kojima et al., 2022), across the GSM8K, BBH, and FOLIO benchmarks. Table 1 highlights the significant and consistent improvements achieved by GREATER over state-of-the-art prompt optimization methods, especially when optimizing prompts using lightweight language models. Across both Gemma-2-9B and Llama-3-8B, GREATER demonstrates remarkable stability and outperforms the baselines. This is particularly noteworthy given the high variability in performance seen in these textual feedback methods, which tend to be unreliable with smaller models due to increased prompt sensitivity. For instance, while TextGrad performs reasonably well on BBH with Gemma-2-9B, it falters significantly with Llama-3-8B. In contrast, GREATER delivers outstanding results across the board, excelling across diverse tasks. Note that, in the FOLIO dataset, GREATER performs on par with PE2 (Ye et al., 2023), suggesting that the model has likely reached its performance ceiling, leaving minimal room for further improvement.
+
+# 5.3 COMPARISON WITH PROMPTS OPTIMIZED BY LARGER PROPRIETARY MODELS
+
+Besides optimization performance in lightweight language models, we also evaluate the efficacy of GREATER optimized prompt compared with the prompts optimized by massive LLMs. These massive models, like GPT-4 and PaLM-2-L, inherently possess deeper knowledge of complex reasoning tasks and often provide richer guidance in their optimized prompts, making them strong baselines to compare with. In Table 2, we compare the performance of GREATER optimized prompt to that of APE (optimized by GPT-4), APO (optimized by GPT-4), PE2 (optimized by GPT-4), OPRO (optimized by PaLM-2-L), EvoPrompt(optimized by GPT-3.5). We use GSM8K, and five randomly selected tasks from BBH to compare the performance of these prompts. We see that in both Llama-3-8B and Gemma-2-9B, GREATER optimized prompts perform substantially better and robustly compared to the baseline prompts optimized with massive LLMs. The consistency in performance uplift makes GREATER a viable choice to boost task performance in reasoning tasks with lightweight language models.
+
+# 5.4 ABLATION OF GRADIENT OVER REASONING
+
+As outlined in Section 4.3 and Section 4.4, a core feature of GREATER is the concept of Gradient Over Reasoning. Conventional gradient-based optimization methods rely solely on the target answer labels to compute the loss and gradients, overlooking the crucial role that reasoning
+
+Table 2: Comparison of GREATER with prompts optimized by larger proprietary LLMs. GREATER performs on par with or notably better than prompts optimized by GPT 4 and PaLM-2-L across GSM8K and five randomly chosen BBH tasks using Llama-3-8B and Gemma-2-9B. EvoPrompt does not report its prompts on GSM8K. Here, Target Model: Llama-3-8B and Method (Optimized by): APE (GPT-4) indicates that Llama-3-8B was used for prompt evaluation while the prompt was optimized by GPT-4 with APE.
+
+
Target Model
Method (Optimized by)
GSM8K
BBH (5 randomly chosen tasks)
movie_rec.
object_count.
tracking_five.
hyperbaton
causal
Average
Llama-3-8B
APE (GPT-4)
80.7
50
82
50
76
56
62.8
EvoPrompt (GPT-3.5)
-
48
74
42
68
48
56.0
APO (GPT-4)
81.1
56
68
49
75
51
59.8
PE2 (GPT-4)
81.5
48
82
45
79
49
60.6
OPRO (PaLM-2-L)
82.3
60
78
40
70
57
61.0
GREATER (Llama-3-8B)
82.6
57
90
70
84
57
71.6
Gemma-2-9B
APE (GPT-4)
89.2
48
61
83
83
60
67.0
EvoPrompt (GPT-3.5)
-
51
70
82
83
61
69.4
APO (GPT-4)
89.3
52
84
72
82
59
69.8
PE2 (GPT-4)
89.6
50
65
71
84
64
66.8
OPRO (PaLM-2-L)
89.0
50
58
76
81
58
64.6
GREATER (Gemma2-9B)
89.4
56
87
85
88
61
75.4
+
+
+Figure 3: Ablation study on "Gradient Over Reasoning" in GREATER. Gradient calculation without reasoning causes notable performance drops, showing the importance of reasoning for gradients.
+
+plays in this process. To highlight the significance of incorporating reasoning into gradient calculations, we conducted a comparative analysis of GREATER with and without applying Gradient Over Reasoning, while keeping all other steps identical. For this experiment, we optimized with both Llama-3-8B and Gemma-2-9B on two BBH tasks: movierecommendation and tracking_shuffled Objects_five Objects task. Figure 3 shows the comparison between with and without gradient over reasoning. It clearly demonstrates a substantial performance drop when Gradient Over Reasoning is omitted. Fundamentally, from Equation 5, removing the reasoning generation part $r$ equates to calculating an incorrect objective function, which will drive gradient-based token selection to diverge from the optimal solution.
+
+# 5.5 PROMPT TRANSFERABILITY
+
+We conduct further experiments to evaluate the transferability of GREATER optimized prompt. In Section 5.5.1, we first evaluate the transferability of GREATER prompt between two smaller language models, Llama-3-8B and Gemma-2-9B, by evaluating the performance of Gemma-2-9B optimized prompts on Llama-3-8B, and vice-versa. Next, in Section 5.5.2, we evaluate the transferability of prompts from a smaller model (Llama-3-8B) to a much larger model (Gemma-2-27B).
+
+Table 3: Transferability of Llama-3-8B optimized prompts to Gemma-2-9B (Upper) and vice versa (Lower). The results demonstrate that prompts produced by GREATER exhibit strong transferability compared with those produced by other state-of-the-art prompt optimization methods.
+
+
Target Model
Method (Optimized by)
BBH (5 randomly chosen tasks)
movie_rec.
object_count.
tracking_five.
hyperbaton
causal_judgement
Average
Llama-3-8B → Gemma-2-9B
Llama-2-9B
TextGrad (Llama-3)
53
78
56
84
63
66.8
APO (Llama-3)
53
84
68
84
58
69.4
PE2 (Llama-3)
54
84
68
82
60
69.6
GREATER (Llama-3)
55
90
85
91
60
76.2
APO (GPT-4)
52
84
72
82
59
69.8
Gemma-2-9B → Llama-3-8B
Llama-3-8B
TextGrad (Gemma-2)
35
29
49
65
36
42.8
APO (Gemma-2)
54
69
48
71
53
59.0
PE2 (Gemma-2)
56
69
49
50
53
55.4
GREATER (Gemma-2)
58
87
56
70
52
64.6
APO (GPT-4)
56
68
49
75
51
59.8
+
+Table 4: Transferability of Llama-3-8B optimized prompts to Gemma-2-27B. The results demonstrate that GREATER optimized prompts exhibit strong transferability from smaller to larger language models.
+
+
Target Model
Method (Optimized by)
BBH (5 randomly chosen tasks)
movie_rec.
object_count.
tracking_five.
hyperbaton
causal_judgement
Average
Llama-3-8B → Gemma-2-27B
PE2 (Llama-3)
59
92
83
73
54
72.2
APO (Llama-3)
53
92
83
72
58
71.6
Ours (Llama-3)
59
91
86
82
57
75.0
APO (GPT-4)
64
92
81
77
58
74.4
+
+# 5.5.1 TRANSFER BETWEEN GEMMA-2 AND LLAMA-3
+
+As shown in Table 3, GREATER exhibits exceptional transferability across smaller models compared to other methods. Notably, prompts optimized by GREATER significantly outperform even APO prompts, which were optimized using GPT-4, as reported by Pryzant et al. (2023). This distinction is particularly important, as it highlights that GREATER optimized prompts are not only more effective but also better suited for broader, more generalized use across smaller models. These results clearly emphasize the efficacy and versatility of our approach.
+
+# 5.5.2 TRANSFER TO LARGER MODELS
+
+To assess the transferability of GREATER-optimized prompts to much larger models, we evaluated their efficacy using the Gemma-2-27B model. As demonstrated in Table 4, the GREATER-optimized prompts continue to exhibit strong performance when compared to baseline methods. However, a notable observation is that the performance gap between GREATER and the baselines narrows as the model size increases. Additionally, we notice that APO GPT-4 optimized prompts yield similar performance with GREATER across various tasks, often resulting in closely matched outcomes.
+
+Tables 3 and 4 reveal that optimized prompts enable smaller models to achieve performance comparable to larger ones, highlighting an efficient approach to maximize model capabilities without relying on resource-intensive models.
+
+# 5.6 CASE STUDY
+
+One of the key characteristics of GREATER is that the generated prompts tend to be more varied and innovative compared to the textual feedback-based SOTA baselines. As noted in Table 11 and Table 14, the optimized prompts from traditional approaches are often verbose variations of the original query or standard Chain of Thought (CoT) prompts. In contrast, GREATER prompts frequently
+
+Table 5: Example prompts (abridged) generated by GREATER and APO. GREATER prompts guide structured ways to solve tasks, leading to improved task performance compared to traditional Chain of Thought (CoT) prompts and their variations often generated by textual feedback-based optimization methods like APO. More examples can be found in the Appendix H and I.
+
+
Task
Optimized Prompt by GREATER
Optimized Prompt by APO
llama3-formal_fallacies
Use formal notation and and think step ...
Analyze the argument step by step consid-ering premises, logical ...
llama3-causal_judgement
Use causal diagram...
Analyze the situation by identifying the di-rect and indirect causes ...
llama3-object_counting
Use only addition. Add think step by ...
Let's think step by step.
llama3-naïve
Use your reasoning here. I would like numbers assigned.. to.. To represent mov-ing
Analyze the instructions step by step, consid-dering each action's ...
llama3-sports-understanding
Use the context or a sentence similar prior knowledge. Assume you a journalist, I would have been covering NHL hockey in Min- nesota before joining this assignment to report sports.
Assess the plausibility of the sentence, considering both literal and figurative meanings, as well as context and domain knowledge. Evaluate the sentence's coher-ence and relevance to the given context ...
gemma-multistep_arithmetic_two
Use parentheses and and the step wise or-oder...
Let's think step by step.
gemma-date_understanding
Use your format Excel formula for this an-swer to find it...
Let's think step by step.
gemma_reasoning_colored
Use your logic. Please answer. person ...
Analyze the given text and answer ...
+
+provide highly insightful guidelines that better aid in problem-solving. Table 5 demonstrates a selection of abridged prompts generated by GREATER and APO. For tasks like formal_fallacies and causalUnderstanding, GREATER prompts encourage logical analysis rather than mere language-based reasoning, which enhances performance. Similarly, in the object_counting and navigate tasks, the prompts simplify the original problem by converting it into a more straightforward mathematical task, leading to significant improvements. More interestingly, in the sports_understanding task, the prompt promotes agentic behavior, encouraging the model to take an active role in solving the task. Additionally, for multistep_arithmetic_two, the prompt focuses on parentheses to avoid errors in computation, in date_understanding task it instructs to convert into a programming problem (by using Excel formula), and in reasoning-about-colored_objects focuses on logical analysis. These prompts are comparatively more interesting than prompts generated by textual feedback (e.g. APO) where most prompts only show verbose instruction regarding the original question, without any guidance of how to solve the problem. They also demonstrate that GREATER prompts do more than just provide basic instructions—they offer clear and practical strategies tailored to each task. By helping the model think about problems in a more structured and systematic way, GREATER leads to better problem-solving and improved performance compared to traditional methods.
+
+While GREATER generates highly effective and innovative prompts, they may occasionally exhibit minor grammatical issues or a more informal tone compared to standard prompts. For instance, the navigate task and multistep_arithmetic_two task in Table 5 reflect such characteristics. However, these issues can be mitigated by adjusting the Top- $k$ parameter in Equation 3. Incorporating dynamic Top- $k$ selection could further enhance the naturalness and accuracy of the prompts.
+
+# 6 CONCLUSION
+
+We present GREATER, a novel gradient-guided prompt optimization technique that enhances performance without relying on massive proprietary LLMs. GREATER proposes token candidates using sample inputs, generates reasoning, and extracts final answer logits to compute loss and gradients. This "Gradient over Reasoning" provides a strong signal for selecting optimal candidates, enabling significant performance gains on tasks like BBH, GSM8K, and FOLIO, outperforming state-of-the-art textual feedback-based methods for smaller models. Additionally, GREATER prompts demonstrate notable transferability across smaller models and often match the performance of larger models. Future directions include integrating GREATER with textual feedback-based methods for more robust and effective prompt optimization.
+
+# ACKNOWLEDGMENT
+
+This work is supported in part by NSF grant 2338418.
+
+# REFERENCES
+
+Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
+Gabriel Alon and Michael Kamfonas. Detecting language model attacks with perplexity. arXiv preprint arXiv:2308.14132, 2023.
+Tom B Brown. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020.
+Jiale Cheng, Xiao Liu, Kehan Zheng, Pei Ke, Hongning Wang, Yuxiao Dong, Jie Tang, and Minlie Huang. Black-box prompt optimization: Aligning large language models without model training. arXiv preprint arXiv:2311.04155, 2023.
+Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
+Mingkai Deng, Jianyu Wang, Cheng-Ping Hsieh, Yihan Wang, Han Guo, Tianmin Shu, Meng Song, Eric P Xing, and Zhiting Hu. Rlprompt: Optimizing discrete text prompts with reinforcement learning. arXiv preprint arXiv:2205.12548, 2022.
+Tianyu Gao, Adam Fisch, and Danqi Chen. Making pre-trained language models better few-shot learners. arXiv preprint arXiv:2012.15723, 2020.
+Chuan Guo, Alexandre Sablayrolles, Hervé Jégou, and Douwe Kiela. Gradient-based adversarial attacks against text transformers. arXiv preprint arXiv:2104.13733, 2021.
+Qingyan Guo, Rui Wang, Junliang Guo, Bei Li, Kaitao Song, Xu Tan, Guoqing Liu, Jiang Bian, and Yujiu Yang. Connecting large language models with evolutionary algorithms yields powerful prompt optimizers. arXiv preprint arXiv:2309.08532, 2023.
+Xingang Guo, Fangxu Yu, Huan Zhang, Lianhui Qin, and Bin Hu. Cold-attack: Jailbreaking llms with stealthiness and controllability. arXiv preprint arXiv:2402.08679, 2024.
+Simeng Han, Hailey Schoelkopf, Yilun Zhao, Zhenting Qi, Martin Riddell, Wenfei Zhou, James Coady, David Peng, Yujie Qiao, Luke Benson, et al. Folio: Natural language reasoning with first-order logic. arXiv preprint arXiv:2209.00840, 2022.
+Wenyang Hu, Yao Shu, Zongmin Yu, Zhaoxuan Wu, Xiangqiang Lin, Zhongxiang Dai, See-Kiong Ng, and Bryan Kian Hsiang Low. Localized zeroth-order prompt optimization. arXiv preprint arXiv:2403.02993, 2024.
+Omar Khattab, Arnav Singhvi, Paridhi Maheshwari, Zhiyuan Zhang, Keshav Santhanam, Sri Vardhamanan, Saiful Haq, Ashutosh Sharma, Thomas T Joshi, Hanna Moazam, et al. Dspy: Compiling declarative language model calls into self-improving pipelines. arXiv preprint arXiv:2310.03714, 2023.
+Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. Large language models are zero-shot reasoners. Advances in neural information processing systems, 35:22199-22213, 2022.
+Brian Lester, Rami Al-Rfou, and Noah Constant. The power of scale for parameter-efficient prompt tuning. arXiv preprint arXiv:2104.08691, 2021.
+Xiang Lisa Li and Percy Liang. Prefix-tuning: Optimizing continuous prompts for generation. arXiv preprint arXiv:2101.00190, 2021.
+
+Shengcai Liu, Caishun Chen, Xinghua Qu, Ke Tang, and Yew-Soon Ong. Large language models as evolutionary optimizers. In 2024 IEEE Congress on Evolutionary Computation (CEC), pp. 1-8. IEEE, 2024.
+Xiaogeng Liu, Nan Xu, Muhao Chen, and Chaowei Xiao. Autodan: Generating stealthy jailbreak prompts on aligned large language models. arXiv preprint arXiv:2310.04451, 2023.
+Yao Lu, Max Bartolo, Alastair Moore, Sebastian Riedel, and Pontus Stenetorp. Fantastically ordered prompts and where to find them: Overcoming few-shot prompt order sensitivity. arXiv preprint arXiv:2104.08786, 2021.
+Aman Madaan and Amir Yazdanbakhsh. Text and patterns: For effective chain of thought, it takes two to tango. arXiv preprint arXiv:2209.07686, 2022.
+AI Meta. Introducing meta llama 3: The most capable openly available llm to date. Meta AI, 2024.
+Archiki Prasad, Peter Hase, Xiang Zhou, and Mohit Bansal. Grips: Gradient-free, edit-based instruction search for prompting large language models. arXiv preprint arXiv:2203.07281, 2022.
+Reid Pryzant, Dan Iter, Jerry Li, Yin Tat Lee, Chenguang Zhu, and Michael Zeng. Automatic prompt optimization with gradient descent" and beam search. arXiv preprint arXiv:2305.03495, 2023.
+Guanghui Qin and Jason Eisner. Learning how to ask: Querying lms with mixtures of soft prompts. arXiv preprint arXiv:2104.06599, 2021.
+Machel Reid, Nikolay Savinov, Denis Teplyashin, Dmitry Lepikhin, Timothy Lillicrap, Jeanbaptiste Alayrac, Radu Soricut, Angeliki Lazaridou, Orhan Firat, Julian Schrittwieser, et al. Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context. arXiv preprint arXiv:2403.05530, 2024.
+Laria Reynolds and Kyle McDonell. Prompt programming for large language models: Beyond the few-shot paradigm. In *Extended abstracts of the 2021 CHI conference on human factors in computing systems*, pp. 1-7, 2021.
+Weijia Shi, Xiaochuang Han, Hila Gonen, Ari Holtzman, Yulia Tsvetkov, and Luke Zettlemoyer. Toward human readable prompt tuning: Kubrick's the shining is a good movie, and a good prompt too? arXiv preprint arXiv:2212.10539, 2022.
+Taylor Shin, Yasaman Razeghi, Robert L Logan IV, Eric Wallace, and Sameer Singh. Autoprompt: Eliciting knowledge from language models with automatically generated prompts. arXiv preprint arXiv:2010.15980, 2020.
+Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. Advances in Neural Information Processing Systems, 36, 2024.
+Mirac Suzgun, Nathan Scales, Nathanael Scharli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc V Le, Ed H Chi, Denny Zhou, et al. Challenging big-bench tasks and whether chain-of-thought can solve them. arXiv preprint arXiv:2210.09261, 2022.
+Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, et al. Gemma 2: Improving open language models at a practical size. arXiv preprint arXiv:2408.00118, 2024.
+Xinyuan Wang, Chenxi Li, Zhen Wang, Fan Bai, Haotian Luo, Jiayou Zhang, Nebojsa Jojic, Eric P Xing, and Zhiting Hu. Prompt: Strategic planning with language models enables expert-level prompt optimization. arXiv preprint arXiv:2310.16427, 2023.
+Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824-24837, 2022.
+Yuxin Wen, Neel Jain, John Kirchenbauer, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Hard prompts made easy: Gradient-based discrete optimization for prompt tuning and discovery. Advances in Neural Information Processing Systems, 36, 2024.
+
+Chengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu, Quoc V Le, Denny Zhou, and Xinyun Chen. Large language models as optimizers. arXiv preprint arXiv:2309.03409, 2023.
+Qinyuan Ye, Maxamed Axmed, Reid Pryzant, and Fereshte Khani. Prompt engineering a prompt engineer. arXiv preprint arXiv:2311.05661, 2023.
+Mert Yuksekgonul, Federico Bianchi, Joseph Boen, Sheng Liu, Zhi Huang, Carlos Guestrin, and James Zou. Textgrad: Automatic" differentiation" via text. arXiv preprint arXiv:2406.07496, 2024.
+Tuo Zhang, Jinyue Yuan, and Salman Avestimehr. Revisiting opro: The limitations of small-scale llms as optimizers. arXiv preprint arXiv:2405.10276, 2024.
+Zihao Zhao, Eric Wallace, Shi Feng, Dan Klein, and Sameer Singh. Calibrate before use: Improving few-shot performance of language models. In International conference on machine learning, pp. 12697-12706. PMLR, 2021.
+Yongchao Zhou, Andrei Ioan Muresanu, Ziwen Han, Keiran Paster, Silviu Pitis, Harris Chan, and Jimmy Ba. Large language models are human-level prompt engineers. arXiv preprint arXiv:2211.01910, 2022.
+Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J Zico Kolter, and Matt Fredrikson. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043, 2023.
+
+# A BENCHMARK DATASETS, MODELS, AND BASELINES
+
+In this section, we discuss the details of Datasets, Models, and Baselines.
+
+# A.1 DATASETS
+
+As discussed in Section 5.1, we use GSM8K (Cobbe et al., 2021), BBH (Suzgun et al., 2022), and FOLIO (Han et al., 2022) datasets. For GSM8K, we used 100/100 for train/dev set, and original test set of 1319 size. Then, for BBH datasets, we used 21 selected BBH tasks as in Table 11 and Table 14. This covers almost all types of tasks in BBH dataset. We skip word_sorting and dycklanguages tasks from our evaluation since we found that the smaller LLM outputs are very difficult to reliably evaluate due to highly inconsistent output pattern. Finally, for logical_deduction and tracking_shuffled Objects, we select five objects tasks as representative of the tasks. For all tasks we use 50/100/100 train/dev/test splits similar to (Yuksekgonul et al., 2024).
+
+Finally for the FOLIO dataset, we used the latest version of FOLIO (Han et al., 2022) for our evaluation. We use the natural language reasoning task with premises text, conclusion text to infer the labels. The original validation split (203 rows) are used for the evaluation of FOLIO, whereas 50/100 samples are taken for train and dev set respectively out of the original train split.
+
+# A.2 MODELS
+
+As described in experimentation setup, we only used Llama-3-8B-Instruct and Gemma-2-9B-it in our experiments due to their smaller footprint and strong performance. However, in several tasks Gemma-2-9B-it shows markedly stronger performance than Llama-3-8B, although the memory requirements for Gemma-2-9B-it is substantially higher. As we have shown, stronger models get lesser benefit from prompt optimization, as good prompts only offset for lower capabilities of weaker models. Across our experiments, we also notice substantial improvement in Llama-3-8B-Instruct, whereas the margin gets narrower for the stronger Gemma-2-9B-it.
+
+# A.3 BASELINES
+
+Our primary baselines are APO (Pryzant et al., 2023), iterative APE (Kojima et al., 2022), PE2 (Ye et al., 2023), TextGrad (Yuksekgonul et al., 2024). For APO, iterative APE, and PE2 we use the
+
+original implementation by (Ye et al., 2023) for benchmarking. And we used TextGrad's own library for evaluating their results. Other than that, we also compared against original Zero-Shot CoT (Wei et al., 2022), and the larger model optimized reported prompts from APE, APO, PE2, OPRO (Yang et al., 2023), EvoPrompt (Guo et al., 2023).
+
+# B ADDITIONAL EXPERIMENTATION DETAILS
+
+As shown in Algorithm 1, we run GREATER for $T = 105$ steps with $k = 10$ for top- $k$ , $q = 5$ and $\lambda = 0.2$ (in Eq. 6). While Algorithm 1 shows fixed length prompt optimization, we allow dynamic prompt. To attain that, we look for the presence of ending token in the last position. If no ending token is found, we continue the optimization process by adding a placeholder token and optimizing over it. As ending token is encountered we move over to the first position for optimization. We run all our experiments on 2X NVIDIA A100 80GB GPUs.
+
+# C PERFORMANCE COMPARISON WITH OTHER GRADIENT-BASED METHODS
+
+GREATER leverages the Gradient Over Reasoning chain to identify the optimal prompt required for enhancing task performance. Previous works, such as Shin et al. (2020), utilized gradient-guided search to discover trigger tokens for improving performance in relatively straightforward tasks like sentiment analysis and natural language inference. This concept has also been extended to text-to-image tasks by incorporating gradient-based learning in embedding spaces (Wen et al., 2024). However, these approaches are limited to simpler tasks and fail to address tasks requiring complex reasoning. As demonstrated in Table 6, GREATER-optimized prompts deliver a substantial performance boost compared to prior methods that do not incorporate the reasoning chain.
+
+Table 6: Comparison of performance in movie Recommendation and tracking_shuffledobjects_five_objects for prompts optimized on Llama-3-8B and Gemma-2-9B. The results demonstrate that prompts optimized by GREATER outperform other methods across both models.
+
+
Method
Llama-3-8B
Gemma-2-9B
movie_rec.
tracking_five
movie_rec.
tracking_five
AutoPrompt (Shin et al., 2020)
51
38
50
73
PEZ (Wen et al., 2024)
42
35
45
73
GREATER
56
70
57
86
+
+# D COMPLEXITY COMPARISON: GREATER VS. TEXT-BASED FEEDBACK APPROACHES
+
+Assume each sample contains $L$ input-output tokens on average.
+
+# FOR GREATER
+
+Operations Per Sample:
+
+- Forward Pass: $O(L^2)$
+- Backward Pass: $O(L^2)$
+
+- Total Complexity:
+
+- For $N$ samples, one forward pass, and one backward pass are performed per sample in a single iteration.
+- Total complexity:
+
+$$
+N \cdot O (L ^ {2}) = O (N L ^ {2})
+$$
+
+# FOR TEXT-BASED FEEDBACK APPROACHES
+
+# - Overview:
+
+- No backpropagation stage.
+- Each iteration involves, evaluating all samples, identifying incorrect samples ( $n$ incorrect samples), and chaining incorrect samples into a single sequence to generate feedback.
+
+# - Complexity Breakdown:
+
+- First Forward Pass:
+
+$$
+O (N L ^ {2})
+$$
+
+- Feedback Generation:
+
+* Incorrect samples (n) are chained together.
+* Chained length: $n \cdot L$ .
+* Feedback generation complexity:
+
+$$
+O ((n L) ^ {2}) = O (n ^ {2} L ^ {2})
+$$
+
+- Total Complexity:
+
+$$
+O (N L ^ {2}) + O (n ^ {2} L ^ {2})
+$$
+
+# - Behavior Based on Task Difficulty:
+
+- Simple Tasks $(n\to 0)$ ..
+
+$$
+\text {T o t a l C o m p l e x i t y} \rightarrow O (N L ^ {2})
+$$
+
+- Difficult Tasks $(n\to N)$ ..
+
+$$
+\text {T o t a l C o m p l e x i t y} \rightarrow O (N L ^ {2}) + O (N ^ {2} L ^ {2}) = O (N ^ {2} L ^ {2})
+$$
+
+# COMPARISON
+
+- GreaTer Complexity: $O(NL^2)$ (consistent).
+- Text-Based Feedback Complexity: Can scale up to $O(N^2 L^2)$ .
+
+This complexity difference is also translated into real-world performance. In movie_recommendations task, GREATER is required to be optimized for $\sim 5$ hours, whereas TextGrad (Yuksekgonul et al., 2024) required a total of $\sim 14$ hours for prompt optimization in our own setup.
+
+# E PROMPT OPTIMIZATION VS. FEW-SHOT IN-CONTEXT LEARNING
+
+In-context learning has proven to be highly effective for reasoning tasks in large language models. This raises the question of whether prompt optimization provides any advantages over in-context learning for smaller models. In Figure 4, we compare the performance of five-shot in-context learning with zero-shot reasoning using an optimized prompt from GREATER in Llama3-8B-Instruct. The results demonstrate that GREATER offers a significant performance improvement over five-shot reasoning. Moreover, using an optimized prompt eliminates the need for repeated
+
+
+Figure 4: Efficacy of GREATER in zero-shot setting compared to five-shot inference with Llama-3-8B-Instruct.
+
+input-output examples during inference, leading to greater efficiency.
+
+Table 7: Impact of Initialization Prompt. We can see that different initialization has resulted in different optimized prompt, however they offer comparable performance.
+
+
Initialization Prompt
Optimized Prompt
Score
Default (Use proper logical ...)
Use movie ratings data available here above movies for reference. This HOFF has an interesting analysis based solely on options to options based on movies ratings. Expect from the other movies you are asked, choose option from those mentioned below.
56
Misleading (Use no thinking just feeling.)
Use one one-liner and explain stepwise for why. ONLY READING IS ALLOWABLE AND NO CHATTYchat OR EXCL.
55
+
+Table 8: Performance comparison across selected BBH tasks for Llama-3.2-1B (target model for evaluation) with prompts optimized by different methods. The results demonstrate that prompts optimized by GREATER outperform other optimized prompts.
+
+
Method (Optimized By)
movie_rec.
causal_judgement
hyperbaton
tracking_five
object_count.
AVG
APO (GPT4)
23
45
61
24
51
40.8
PE2 (GPT4)
27
54
69
21
59
46.0
iAPE (GPT4)
32
57
53
15
41
39.6
GREATER (Llama-3.2-1B)
46
69
62
24
67
53.6
+
+# F EFFECT OF INITIALIZATION
+
+For GREATER, we start with a fixed prompt: "Use proper logical reasoning and think step by step. Finally, give the actual correct answer." This fixed initialization is convenient for adapting to various tasks. However, we also explore whether using a different initialization affects performance. To test this, we conduct a small-scale experiment with Llama-3-8B on the BBH-movie-recommendation task. Table 7 highlights the impact of different prompt initializations on optimization. As shown, a completely misleading initialization leads to a vastly different optimized prompt. However, both prompts result in very similar performance, despite solving the task in different ways. While the default initialization produces a prompt that leverages movie ratings and genre information from databases, the misleading prompt emphasizes concise explanations. Despite these contrasting approaches, both deliver comparable outcomes.
+
+# G PROMPT OPTIMIZATION PERFORMANCE IN VERY SMALL LANGUAGE MODEL: LLAMA-3.2-1B-INSTRUCT
+
+While we primarily focused on two popular small language models - Llama-3-8B-Instruct and Gemma-2-9B-it, it is also interesting to see how GREATER perform for even smaller LLM - namely Llama-3.2-1B-Instruct. Given that is one of the smallest modern language models, getting good task performance out of it just by optimizing prompt can be very useful for real world task deployment. As we can see in Table 8, GREATER optimized prompts perform significantly better than prompts optimized by GPT-4 with other methods. This clearly shows the efficacy of GREATER in prompt optimization even with very small language models.
+
+Table 9: Optimized Prompts for LLama-3-8B-Instruct on GSM8K dataset.
+
+
Method
Optimized Prompt
Score
TextGrad
You will answer a mathematical reasoning question. Think step by step. The last line of your response should be of the following format: ’Answer: VALUE’ where VALUE is a numerical value.
78.5
APE
Work in sequence: Complete each task in order, tackling one task at a time, and only moving on to the next once it’s finished.
79.9
APO
Break down complex problems into smaller, logical steps, considering mathematical operations, variable relationships, and implicit rules. Provide a clear, sequential solution, accounting for nuanced language and context.
81.1
PE2
Break down complex problems into smaller, manageable steps, and solve them step by step.
80.1
GREATER
Use your knowledge reasoning and think step by step. Finally give the actual correct answer.
82.6
+
+# H PROMPT OPTIMIZATION RESULTS: LLAMA-3-8B-INSTRUCT
+
+# H.1 GSM8K AND FOLIO: OPTIMIZED PROMPTS
+
+In Table 9 and Table 10, we first show the optimized prompts with Llama-3-8B-Instruct on GSM8K and FOLIO dataset respectively. As we can see, GREATER performs on par or better than all the baselines in every scenario.
+
+Table 10: Optimized Prompts for LLama-3-8B-Instruct on FOLIO dataset.
+
+
Method
Optimized Prompt
Score
TextGrad
You will answer a reasoning question by identifying the essential information, making specific conclusions, and providing nuanced and detailed reasoning. Think critically and systematically, focusing on the most relevant details, and avoid unnecessary complexity...
56.2
APE
Tackle it incrementally!
57.6
APO
Analyze the premises step by step, identifying specific details, assumptions, and ambiguities. Draw a logical conclusion based on the evidence provided, considering multiple perspectives and potential counterarguments, while accounting for scope, context, and edge cases.
58.6
PE2
Analyze the statement based on the provided premise, determining whether it is true, false, or uncertain. Consider all relevant information to reach a logical conclusion.
62.6
GREATER
Use of logical deductions to show if your conclusion matches an appropriate option you chose from multiple options above by explaining how to determine whether the given conclusion follows from the given information above by explaining each step taken during the process.
62.6
+
+# H.2 BIG BENCH HARD (BBH): OPTIMIED PROMPTS AND DETAILED RESULTS
+
+Figure 5 shows that GreaTer outperforms state-of-the-art (SOTA) prompt optimization methods, including APO (Pryzant et al., 2023), TextGrad (Yuksekgonul et al., 2024), APE (Zhou et al., 2022), and PE2 (Ye et al., 2023), across $71.4\%$ to $85\%$ of tasks. A full breakdown of these results is provided in Figure 6. Upon closer inspection, it becomes evident that GREATER consistently matches or surpasses the performance of other SOTA methods, highlighting the robustness and reliability of our approach. In contrast, other methods show markedly less consistency due to their sole reliance on LLM judgment.
+
+
+Figure 5: Win/Draw/Loss Comparison of GREATER and SOTA prompt optimization techniques APO, TextGrad, APE, and PE2 in optimization with Llama-3-8B-Instruct. GREATER maintains a significant winning margin over these methods, highlighting its effectiveness in optimization.
+
+Finally, Table 11 presents all the optimized prompts generated by the baseline methods and our proposed approach. TextGrad prompts are truncated due to their excessive length, making them challenging to fit on a page, which may also explain their inconsistent performance.
+
+Table 11: List of optimized prompts for BBH tasks by different prompt optimization methods with Llama-3-8B-Instruct.
+
+
Method
Optimized Prompt
formal_fallacies
PE2
Determine the validity of the given argument.
APE
Simplify and analyze.
TextGrad
You will answer a reasoning question by explicitly identifying the key relationships between the premises and the conclusion, and explaining how they lead to the conclusion. Use clear and concise language to facilitate understanding, and...
APO
Analyze the argument step by step, considering premises, logical connections, and conditional statements. Identify the conclusion and evaluate its validity, considering sufficient and necessary conditions, counterexamples, and alternative scenarios.
GREATER
Use formal notation and and think step by step. Finally give the actual correct answer.
salient Translation_error misdetection
PE2
Identify the type of error in the translation from German to English. n Source: [insert source text] nTranslation: [insert translation] nError type: [one of the following] n(A) Modifiers or Adjectives n(B) Numerical Values n(C) Negation...
APE
Clarify your thoughts, break it down step by step.
TextGrad
You will answer a reasoning question by providing a detailed analysis of the original text and the translation. Think step by step, considering multiple possible explanations for the error. Clearly explain how each step leads...
+
+Continued on next page
+
+
Method
Optimized Prompt
APO
Analyze the translation error by carefully reading the original sentence and iden-tifying the specific mistake. Consider the exact words, phrases, and grammatical structures to determine the correct error type from the options.
GREATER
Use your answer reasoning as if I had step. I would be taking correct answer.
tracking_shuffled_objects_five.objects
PE2
Let's think step by step.
APE
Take it one step at a time: Focus on one task, complete it, then move on to the next.
TextGrad
You will answer a reasoning question by providing a step-by-step breakdown of the process. Use vivid and descriptive language to describe the events, and make sure to highlight the key connections and relationships between each...
APO
Let's think step by step.
GREATER
Use this process as an explanation stepwise for each step until you get to as given above Alice has got originally the following as follows.
causal_judgement
PE2
What action(s) led to the outcome? Let's break it down step by step.
APE
Break down your thinking into clear, consecutive steps.
TextGrad
You will answer a reasoning question by explicitly connecting the events and outcomes, considering multiple perspectives and potential counterarguments, and providing nuanced explanations that take into account the context in which the events occurred. Think...
APO
Analyze the situation by identifying the direct and indirect causes, considering multiple perspectives, and evaluating counterfactuals. Provide a clear and concise answer, taking into account the context and nuances of the situation. Focus on the...
GREATER
Use causal diagram. The correct option ask about whether there the variable C of about whether a specific cause is sufficient. The answer a causal relationship between C to D if the probability P that C occurs given E changes.
booleanExpressions
PE2
Evaluate logical expressions step by step, considering the order of operations and specific values. Break down expressions into parts, and evaluate each part using 'or', 'and', and 'not' rules.
APE
Analyze and simplify.
TextGrad
You will answer a reasoning question by breaking down the expression into smaller, manageable parts. Provide a concise and clear explanation, using precise and concise language to describe the logical operations used to arrive at...
APO
Evaluate the boolean expression by following PEMDAS and applying boolean logic rules (AND, OR, NOT). Handle parentheses carefully. Consider edge cases and provide a step-by-step explanation of your reasoning, including any assumptions made.
GREATER
Use this statement with a conditional if know what is the value True of and what Not False means. Or not True and also boolean. In explain your.
object_counting
PE2
Let's think step by step.
APE
Break it down, step by step.
+
+Continued on next page
+
+
Method
Optimized Prompt
TextGrad
You will answer a reasoning question about counting objects. Think step by step, considering the context of the question and using it to inform your answer. Be explicit in your counting process, breaking it down...
APO
Let's think step by step.
GREATER
Use only addition. Add think step by step. Finally give the actual correct answer.
navigate
PE2
Check if the instructions return to the starting point by calculating the total number of steps taken.
APE
Clarify your thoughts, analyze step by step.
TextGrad
You will answer a reasoning question by breaking down the problem step-by-step and providing explicit explanations for each step. Think carefully about the instructions and consider alternative scenarios. Use clear and precise language to describe...
APO
Analyze the instructions step by step, considering each action's effect on your position. Use logical reasoning to determine if you return to the starting point.
GREATER
Use your reasoning here. I would like numbers assigned.. to.. To represent moving.
sports-understanding
PE2
Assess the plausibility of the sentence. Is it likely to be true or fictional?
APE
Break down the task into manageable parts, examining each element thoroughly.
TextGrad
You will answer a reasoning question by providing a clear and concise step-by-step breakdown of your thought process, focusing on the most relevant and concrete evidence to support your claims. Consider alternative explanations and counterarguments...
APO
Assess the plausibility of the sentence, considering both literal and figurative meanings, as well as context and domain knowledge. Evaluate the sentence's coherence and relevance to the given context.
GREATER
Use the context or a sentence similar prior knowledge. Assume you a journalist, I would have been covering NHL hockey in Minnesota before joining this assignment to report sports.
reasoning_about_colored Objects
PE2
Analyze the input and options step by step to identify the correct answer.
APE
Break down into simpler components.
TextGrad
You will answer a reasoning question by carefully analyzing the problem statement, identifying the relevant information, and using logical deductions to arrive at a solution. Use precise and accurate language to describe your thought process,...
APO
Let's think step by step.
GREATER
Use this problem type as inspiration! which option best represents amu, the answer of all my are known.
multistep_arithmetic_two
PE2
Evaluate step-by-step and provide the correct answer, following the order of operations (PEMDAS).
APE
Decompose and analyze each part carefully.
+
+Continued on next page
+
+
Method
Optimized Prompt
TextGrad
You will answer a reasoning question by providing a clear, step-by-step break-down of your thought process, using simple language and avoiding ambiguity. Focus on the key steps and simplify the intermediate calculations. Use descrip-tive variable...
APO
Evaluate the expression by following PEMDAS, handling parentheses, and accu-rately calculating with negative numbers. Break down complex expressions into simpler steps and provide the final answer.
GREATER
Use PEMAS reasoning here and step by the. STEP to the actual number result and explain what PEMAS means by each step of how I would evaluate this ex-pression correctly according follow these step wise...
date-understanding
PE2
Let's think step by step.
APE
Analyze step-by-step.
TextGrad
You will answer a reasoning question by breaking it down into manageable steps, focusing on simplicity and clarity in your reasoning. Provide a concise and clear explanation of your thought process, avoiding unnecessary conversions and...
APO
Let's think step by step.
GREATER
Use the date today which will not would give us an error. solution is given as answer date is correct the option data and the current month and year to get to previous and current month of year to determine what the current data will look.
ruin_names
PE2
Identify the humorous edit of this artist or movie name. Choose an option that cleverly replaces a word or plays on words with the original name. Options may include the correct answer.
APE
Break it down, step by step.
TextGrad
You will answer a reasoning question by providing a step-by-step analysis of the options, highlighting the unique features and characteristics of each humorous edit. Consider the linguistic and cognitive factors that contribute to humor, such...
APO
Imagine a creative reinterpretation of the original name. Think outside the box and come up with a clever edit that's unexpected yet amusing. Consider tone, context, and audience when selecting the most humorous and engaging...
GREATER
Use your logical reasoning to make this, not brute force checking CONTEXT is provided below.
movie_recommendation
PE2
Find a movie that shares similar elements with the given films, considering nar- rative structure, memorable characters, genre blending, strong protagonists, and emotional impact.
APE
Calmly analyze, think critically.
TextGrad
You will answer a reasoning question by analyzing the given movies and identify- ing the most suitable match. Think step-by-step, focusing on the most distinctive features that connect the input movies, such as unique plot twists,...
APO
Analyze the movies' tone, genre, and style, considering action, drama, and com- edy elements. Identify the most fitting movie from the options that shares these characteristics, focusing on overall themes and elements rather than individual features.
+
+Continued on next page
+
+
Method
Optimized Prompt
GREATER
Use movie ratings data available here above movies for reference. ThisHOFF has an interesting analysis based solely options to options based movies ratings expect from the other movies you are asked ones mentioned here you...
web_of Lies
PE2
Evaluate statements about the truthfulness of others in a chain of lies or truth-telling. Determine if speakers are telling the truth or lying, considering each statement and the speaker's integrity.
APE
Let's take it one step at a time: analyze the task into smaller, manageable chunks, and then tackle each chunk individually to achieve a clear and focused approach.
TextGrad
You will answer a reasoning question by specifying the scope of 'the truth' and using explicit language to connect each step in your reasoning. Focus on essential steps and consider alternative perspectives. Use direct and...
APO
Analyze each statement individually, considering the speaker's truthfulness and potential contradictions. Determine the truth or falsehood of each statement, then use this information to evaluate the final statement.
GREATER
Use only statement reasoning. Let step ick. We need to step out from here to figure this one out step out step out step out from each of those.
disambiguation_qa
PE2
Identify the antecedent of the pronoun, considering sentence structure and context. If ambiguous, provide evidence to support your answer.
APE
Clarify thoughts, analyze step by step.
TextGrad
You will answer a reasoning question by providing a step-by-step explanation of your thought process, considering the context, syntax, and semantics of the sentence, as well as the relationships between the entities mentioned. Use linguistic...
APO
Analyze the sentence and identify the antecedent of the pronoun. Consider the context, relationships between entities, and potential ambiguity. Provide a clear explanation for your answer, highlighting any relevant details that support your conclusion.
GREATER
Use is possible reasoning for either answer by step. Finally, the actual correct answer may also not have an explicit mention of logical_deduction_five Objects
PE2
Determine the correct order of objects based on logical relationships and statements provided.
APE
Break down and examine each stage carefully.
TextGrad
You will answer a reasoning question by breaking down the information into clear and concise steps. Use specific and unambiguous language to describe the relationships between the objects. Consider using diagrams or illustrations to help...
APO
Carefully analyze each statement, considering relationships between objects and logical implications. Eliminate options that contradict the statements. Recognize and resolve contradictions. Consider word order and syntax to ensure accurate conclusions.
GREATER
Use elimination logical reasoning and think step by step. Finally give the actual correct answer.
snarks
+
+Continued on next page
+
+
Method
Optimized Prompt
PE2
Identify the sarcastic statement and explain the irony, mocking tone, and intended meaning. Consider language that is ironic, mocking, or opposite of what is meant.
APE
Break down the task into smaller steps, and let's tackle each one individually.
TextGrad
You will answer a reasoning question by considering multiple factors and providing a detailed, step-by-step analysis. Think critically about the context, speaker's intent, and audience's perspective. Pay particular attention to the tone and language used...
APO
Let's think step by step.
GREATER
Use your common reasoning and judgment, by step. Finally give the actual correct answer.
geometric_shapes
PE2
Identify the quadrilateral or geometric shape drawn by this SVG path element.
APE
Analyze and simplify.
TextGrad
You will answer a reasoning question by analyzing the path's overall shape, examining how the individual segments contribute to the path's geometry, and provide more context and domain-specific knowledge about SVG path elements, such as...
APO
Analyze the SVG path element, focusing on both line segments and curves. Identify the starting and ending points, and recognize patterns in the movement. Consider the overall path structure and geometric properties to determine the...
GREATER
Use your best answer from the I. answer the options. assistantiveassistance-sassistantative be a mathematical object with vertices. If there be represented by the path.
hyperbaton
PE2
Identify the correct adjective order in the given sentence. Adjectives typically follow a specific order: opinion, shape, size, material, etc., with exceptions and context-dependent variations.
APE
Organize your ideas, simplify them.
TextGrad
You will answer a reasoning question. Think step by step. Provide explicit explanations for each step. Consider breaking down complex concepts into smaller, more manageable parts. When analyzing the sentence, pay close attention to the...
APO
Analyze the adjective order in each sentence, considering context, typical order of opinion, adverb role, and exceptions. Provide the correct sentence with adjectives in the most natural and idiomatic order.
GREATER
Use the reasoning and examples you would step. Finally give the actual correct answer.
penguins_in_a_table
PE2
Count step by step and find the answer.
APE
Unpack your ideas, review thoroughly.
TextGrad
You will answer a reasoning question by following a structured approach. Think step by step, considering the most critical information and alternative explanations. Use precise language and clarify the scope of the question. Organize your...
APO
Let's think step by step.
+
+Continued on next page
+
+
Method
Optimized Prompt
GREATER
Use this to solve this puzzle step by step. Finally give the actual correct answer.
temporal_sequences
PE2
Find the time windows when the person was not busy or occupied to visit the location, considering their schedule.
APE
Dissect and analyze the information.
TextGrad
You will answer a reasoning question by identifying the most plausible answer, explicitly stating assumptions and considering alternative explanations. Clearly explain how each piece of evidence supports your conclusion, and provide spe-cific and precise language...
APO
Let's think step by step.
GREATER
Use the timeline provided and answer step by step. Finally give the actual correct answer.
+
+# I PROMPT OPTIMIZATION RESULTS: GEMMA-2-9B-IT
+
+# I.1 GSM8K AND FOLIO: OPTIMIZED PROMPTS
+
+In Table 12 and Table 13, we first show the optimized prompts with Llama-3-8B-Instruct on GSM8K and FOLIO dataset respectively. As we can see, GREATER performs on par or better than all the baselines in every scenario.
+
+Table 12: Optimized Prompts for Gemma-2-9B-it on GSM8K dataset
+
+
Method
Optimized Prompt
Score
TextGrad
You will answer a mathematical reasoning question. Think step by step.
87.8
APE
Let's think step by step.
88.6
APO
Let's think step by step.
88.6
PE2
Let's think step by step.
88.6
GREATER
Use these logical reasoning process steps and explain Step. step. Here is correct answer.
89.4
+
+Table 13: Optimized Prompts for Gemma-2-9B-it on FOLIO dataset
+
+
Method
Optimized Prompt
Score
TextGrad
You will answer a reasoning question. Think step by step, carefully considering all provided information and identifying any potential contradictions or ambiguities. When evaluating statements about preferences, ...
67.5
APE
Divide the problem into manageable chunks.
67.5
APO
(empty prompt)
63.1
PE2
Given the premises, determine the certainty of the following statement. Choose from: * Conclusive True * Conclusive False * Uncertain
62.1
GREATER
Use logic or reasoning and think step by step. Finally give the actual correct answer.
68.5
+
+# I.2 BIG BENCH HARD (BBH): OPTIMIZED PROMPTS AND DETAILED RESULTS
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 6: Full performance breakdown across 21 BBH tasks of GREATER and SOTA prompt optimization techniques APO, TextGrad, APE, and PE2 in optimization with Llama-3-8B.
+
+Table 14: List of optimized prompts for BBH tasks by different prompt optimization methods with Gemma-2-9B-it.
+
+
Method
Optimized Prompt
multistep_arithmetic_two
PE2
Let's think step by step and calculate the result.
APE
Let's think step by step.
TextGrad
You will answer a reasoning question. Remember to follow the order of operations (PEMDAS/BODMAS) when solving the problem step-by-step. Think step-by-step, clearly outlining each operation you perform. Begin by simplifying any expressions within parentheses. Then,...
APO
Let's think step by step.
GREATER
Use parentheses, and and the step wise order. Solve for the correct answer.
+
+Continued on next page
+
+
Method
Optimized Prompt
reasoning_about_colored Objects
PE2
Let's think step by step to determine the answer.
APE
Break this down into smaller, easier-to-handle sections.
TextGrad
You will answer a reasoning question. Your goal is to determine the answer to the question based on the provided information and explain your thought process clearly. Present your reasoning in the most concise and...
APO
Analyze the given text and answer the question. Provide a brief explanation of your reasoning, listing the steps you took.
GREATER
Use your logic. Please answer. person. Yout answer. A B.
geometric_shapes
PE2
Analyze the SVG path data in the 'd' attribute and identify the most specific geometric shape it represents, considering commands like 'M', 'L', and others.
APE
Break this down into smaller parts.
TextGrad
You will analyze the provided SVG path element and determine the shape it re-resents. Consider the number of line segments (L commands) and their connec-tions to identify the shape. Look for patterns in the coordinates...
APO
(empty)
GREATER
Use an logical reasoning and think step by step. Finally give the actual correct answer.
sports-understanding
PE2
Let's think step-by-step and assess the plausibility of the following sentence.
APE
Can we break this down into smaller steps?
TextGrad
You will evaluate the plausibility of statements based on the provided context and established rules and mechanisms of football. When evaluating plausibil-ity, consider the relationship between the statement and the broader context of a football...
APO
Evaluate the plausibility of this sentence, considering both general knowledge and the context of sports. Think about whether such an event is realistically possible.
GREATER
Use your understanding to explain the step by step. Finally give the actual correct answer.
disambiguation_qa
PE2
Let's think step by step. Select the option that correctly identifies the antecedent of the pronoun.
APE
Walk me through this process step by step.
TextGrad
You will answer a reasoning question. Think step by step, paying close attention to the grammatical structure of the sentence and identify the function of each word. When encountering pronouns, clearly explain which noun or...
APO
Identify the noun or phrase that the pronoun 'they' refers to in each sentence. Choose the most specific and accurate antecedent. If ambiguous, select 'Am- biguous'.
GREATER
Use of logical connection instead think step by step. Finally give the actual cor-rect answer.
ruin_names
+
+Continued on next page
+
+
Method
Optimized Prompt
PE2
Let's think step by step.
APE
Let's think step by step.
TextGrad
You will analyze humorous edits of artist or movie names, assuming your audience is [specify target demographic]. \n\n**Key Humor Components:**\n\n**Incongruity:** Juxtaposing clashing or unexpected elements.\n* **Surprise:** Unexpected twists or...
APO
Identify the **most humorous** edit of the given artist or movie name. Focus on **creative wordplay** and **unexpected twists** , not just phonetic changes.
GREATER
Use your logic, not change spelling. punny play with existing names to get the answer.
hyperbaton
PE2
Let's identify the sentence with the incorrect adjective order:
APE
Explain each step separately.
TextGrad
Your primary goal is to clearly and accurately explain the reasoning behind the correct answer. First, discuss the relevant grammatical principles at play when arranging adjectives in a sentence. Then, apply these principles to the...
APO
Let's think step by step.
GREATER
Use your knowledge to and think step by step. Finally give the actual correct answer.
causal_judgement
PE2
Analyze the scenario and determine if the person's action was a direct cause of the event. Explain your reasoning.
APE
Divide the problem into manageable chunks.
TextGrad
You will answer a causation question, demonstrating a nuanced understanding of cause-and-effect relationships. Consider complex interactions between multiple factors, analyze situations with indirect or delayed effects, and evaluate the role of probability and likelihood in...
APO
What single action was the most immediate cause of the stated outcome?
GREATER
Use proper causal reasoning . step through step. Finally give the actual correct answer.
booleanExpressions
PE2
Evaluate the truth value of the following logical expression, showing your reasoning step-by-step:
APE
Let's think step by step.
TextGrad
You will answer a reasoning question involving logical expressions. Analyze the problem logically, providing a thorough explanation of how each logical operator (and, or, not) influences the truth value of the expression. Use clear examples...
APO
Let's think step by step.
GREATER
Use logical truth tables. method or truth operations. And. Or or The. following statements evaluate each.
object_counting
PE2
Let's think step by step.
APE
Let's think step by step.
+
+Continued on next page
+
+
Method
Optimized Prompt
TextGrad
You will answer a reasoning question. Clearly calculate the answer to the question. \n\List all the relevant elements involved in the calculation. Then, using those elements, perform the calculation to find the answer...
APO
Let's think step by step.
GREATER
Use counting maths. I see that is more that a single. I have more then ten because there more the number.
movie_recommendation
PE2
Let's identify a movie with a similar genre to Braveheart, Dances with Wolves, Pulp Fiction, and Schindler's List.
APE
Break this down into smaller, easier-to-handle parts.
TextGrad
You will answer a reasoning question by identifying the movie most similar to a given set. To arrive at your answer, follow these steps:\n\nApo
Classify the movie option most similar in genre to the given film list. Choose the best fit.
GREATER
Use only reasoning and reasoning based logic. I chose option. I think the film that fits the listed criteria but is more readily availabke on common viewing services.
formal_fallacies
PE2
Let's think step by step.
APE
Let's think step by step.
TextGrad
You will answer a reasoning question. Your task is to determine if the conclusion *logically follows* from the premises, regardless of whether the conclusion is true in the real world. Think step-by-step and clearly articulate...
APO
Let's think step by step.
GREATER
Use modus ponenis incorrectly because step is incorrect for some premises. Invalid due because.
salient_translation_error misdetection
PE2
Let's think step by step.\nIdentify the error type in these translations: Named Entities, Numerical Values, Modifiers or Adjectives, Negation or Antonyms, Facts, or Dropped Content.
APE
Break this down into smaller steps.
TextGrad
You will answer a reasoning question based on a text passage. Carefully compare the source text and the provided translation, paying close attention to the meaning of individual words and phrases. Identify any words or...
APO
Remember, a good prompt for a zero-shot classifier should be:\n\nApo
Define the task and the expected output format.\n*Grounded in the...
GREATER
Use the following based on this information, using a specific error category as an example.
penguins_in_a_table
PE2
Let's think step by step to answer the following question:
APE
Let's think step by step.
+
+Continued on next page
+
+
Method
Optimized Prompt
TextGrad
Your task is to answer a reasoning question by carefully analyzing the provided information. Pay close attention to the specific details and facts presented in the text. Identify the key pieces of information that are...
APO
Let's think step by step.
GREATER
Use the provided context, ,and explaining. The answer and explain the solution is process in a simple step. step guide for someone just leering about coding Python.
tracking_shuffled.objectsfive.objects
PE2
Let's trace the changes in partners step-by-step to determine the final state.
APE
Explain it step by step.
TextGrad
Your goal is to determine the final state of a given scenario by carefully analyzing a series of steps. Pay close attention to each step and track how items or values change hands. After detailing...
APO
Let's think step by step.
GREATER
Use logic series or process or best method this. Following each series.
date understands
PE2
Let's think step by step.
APE
Let's think step by step.
TextGrad
You will answer a reasoning question. Think step by step, paying close attention to any date formats presented in the question. Ensure your reasoning clearly reflects how you interpret and manipulate dates based on their...
APO
Let's think step by step.
GREATER
Use your format Excel formula for this answer to find it . It have gotten some.
web_of Lies
PE2
Let's think step by step to determine the answer.
APE
Explain each step individually.
TextGrad
You will answer a reasoning question. Analyze the information carefully and identify the key relationships and deductions that lead to the solution. Express your reasoning concisely, highlighting the most important connections. Use clear and direct...
APO
Let's think step by step.
GREATER
Use proper logical reasoning and think step by step. Finally give the actual correct answer.
snarks
PE2
Let's think step by step. Identify the most sarcastic statement.
APE
Decompose the problem into manageable subtasks.
TextGrad
You will answer a reasoning question. Think step by step. The last line of your response should be of the following format: 'Answer: $VALUE' where VALUE is a numerical value.
APO
Let's think step by step.
GREATER
Use a logical reasoning and think step by step. Finally give the actual correct answer.
+
+Continued on next page
+
+
Method
Optimized Prompt
temporal_sequences
PE2
Given the following information about [person's name]'s day, determine the time slot(s) when they could have gone to the coffee shop, which closes at 7pm.
APE
Walk me through the process, step by step.
TextGrad
You will answer a reasoning question. Break down the problem into smaller steps, identifying key pieces of information and eliminating possibilities based on the given facts. Present your reasoning in a clear, step-by-step manner, explicitly...
APO
(empty)
GREATER
Use process logic, and eliminate options by considering what we do the actual correct answer.
logical_deduction_five Objects
PE2
Let's think step-by-step to determine the position of the specified object within the sequence.
APE
Let's think step by step.
TextGrad
Your goal is to determine the position of a specific item within a described arrangement. You will be presented with a set of statements describing the arrangement and a question about the position of a...
APO
Let's think step by step.
GREATER
Use elimination process, use this information, to eliminate choices sufficient in-formation, eliminate to the. correct answer choice correct.
navigate
PE2
Let's think step-by-step and determine your final position relative to the starting point based on these instructions.
APE
Let's think step by step.
TextGrad
You will answer a reasoning question involving changes in position or state. \n* For each movement, clearly state the direction (e.g., '3 steps to the left') along with the number of steps.\n* Assume...
APO
Let's think step by step.
GREATER
Use proper mathematical logic, explaining step by step. Finally give the actual correct answer.
+
+
+Figure 7: Win/Draw/Loss Comparison of GREATER and SOTA prompt optimization techniques APO, TextGrad, APE, and PE2 in optimization with Gemma-2-9B-it. GREATER maintains winning margin over these methods, highlighting its effectiveness in optimization.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 8: Full performance breakdown across 21 BBH tasks of GREATER and SOTA prompt optimization techniques APO, TextGrad, APE, and PE2 in optimization with Gemma-2-9B.
\ No newline at end of file
diff --git a/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/images.zip b/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..b1b60290685dd9992f9e8165d1aec6646412d3b1
--- /dev/null
+++ b/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:47cbb6fe18cb35efe024ee8acaf46f0960399fab615050def41e7deee3f58b77
+size 4358221
diff --git a/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/layout.json b/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..14a59de1162fd6399452b7355bf0646cecbabbbc
--- /dev/null
+++ b/ICLR/2025/GReaTer_ Gradients Over Reasoning Makes Smaller Language Models Strong Prompt Optimizers/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d0549911bd1bada61c1d95205ab28cb89ef5c4a16e901032dfd572fa75997a5f
+size 720199
diff --git a/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/61d7f8ac-a778-446f-82d6-3caa6dea27e4_content_list.json b/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/61d7f8ac-a778-446f-82d6-3caa6dea27e4_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..f26d491cf37735c5901de771097dcbb6bbcd840a
--- /dev/null
+++ b/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/61d7f8ac-a778-446f-82d6-3caa6dea27e4_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fb1f13a3b338e5e3fdaf7e02034953cfaa12746bc5cc07b515a9df05048f4cda
+size 129125
diff --git a/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/61d7f8ac-a778-446f-82d6-3caa6dea27e4_model.json b/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/61d7f8ac-a778-446f-82d6-3caa6dea27e4_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f72588af3f62609bd81eea6c4a3c790fc3c8692a
--- /dev/null
+++ b/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/61d7f8ac-a778-446f-82d6-3caa6dea27e4_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ed701994ce3be35195ae97fa7c0c1f29d6d68b9938d564fb47cb32dfa5b3530d
+size 165678
diff --git a/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/61d7f8ac-a778-446f-82d6-3caa6dea27e4_origin.pdf b/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/61d7f8ac-a778-446f-82d6-3caa6dea27e4_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..08c323fa98feb8c8bf1a740acb1140c739ce6f5a
--- /dev/null
+++ b/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/61d7f8ac-a778-446f-82d6-3caa6dea27e4_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b2e9055cbf57441c0a18c9459d2dd9f033551c9947561aee044fb4062bfc27a9
+size 44241777
diff --git a/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/full.md b/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f4e338b7b91807bb57bab03df3f2cc2d16274cdd
--- /dev/null
+++ b/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/full.md
@@ -0,0 +1,559 @@
+# GS-CPR: EFFICIENT CAMERA POSE REFINEMENT VIA 3D GAUSSIAN SPLATTING
+
+Changkun Liu $^{1*}$ Shuai Chen $^{2}$ Yash Bhalgat $^{2}$ Siyan Hu $^{1}$ Ming Cheng $^{3}$
+
+Zirui Wang² Victor Adrian Prisacariu² Tristan Braud¹
+
+$^{1}$ HKUST $^{2}$ University of Oxford $^{3}$ Dartmouth College
+
+
+t=0
+
+
+t=30
+
+
+t=50
+
+
+t=0
+
+
+t=1
+
+
+ACE
+
+
+Iterative Neural Refinement
+ACE + GS-CPR (ours)
+
+
+One-shot GS-CPR (ours)
+Marepo
+Marepo + GS-CPR (ours)
+Figure 1: GS-CPR refines pose predictions of state-of-the-art APR and SCR models in a one-shot manner, achieving greater accuracy compared to the iterative neural refinement method, such as NeFeS (Chen et al., 2024a). Each subfigure is divided by a diagonal line, with the bottom left part rendered using the estimated/refined pose and the top right part displaying the ground truth image.
+
+
+
+# ABSTRACT
+
+We leverage 3D Gaussian Splatting (3DGS) as a scene representation and propose a novel test-time camera pose refinement (CPR) framework, GS-CPR. This framework enhances the localization accuracy of state-of-the-art absolute pose regression and scene coordinate regression methods. The 3DGS model renders high-quality synthetic images and depth maps to facilitate the establishment of 2D-3D correspondences. GS-CPR obviates the need for training feature extractors or descriptors by operating directly on RGB images, utilizing the 3D foundation model, MASt3R, for precise 2D matching. To improve the robustness of our model in challenging outdoor environments, we incorporate an exposure-adaptive module within the 3DGS framework. Consequently, GS-CPR enables efficient one-shot pose refinement given a single RGB query and a coarse initial pose estimation. Our proposed approach surpasses leading NeRF-based optimization methods in both accuracy and runtime across indoor and outdoor visual localization benchmarks, achieving new state-of-the-art accuracy on two indoor datasets. The project page is available at: https://xrim-lab.github.io/GS-CPR/.
+
+# 1 INTRODUCTION
+
+Camera relocalization, the task of determining the 6-DoF camera pose within a given environment based on a query image, is critical for numerous applications, including robotics, autonomous vehicles, augmented reality, and virtual reality. Current methods for camera pose estimation primarily fall into the categories of structure-based approaches and absolute pose regression (APR) techniques. Classic structure-based pipelines (Dusmanu et al., 2019; Sarlin et al., 2019; Taira et al., 2018; Noh et al., 2017; Sattler et al., 2016; Sarlin et al., 2020; Lindenberger et al., 2023) rely on 2D-3D correspondences between a point cloud and the reference image. Another class of structure-based
+
+methods - Scene Coordinate Regression (SCR) (Brachmann et al., 2017; 2023; Wang et al., 2024a; Brachmann & Rother, 2021) - uses neural networks for direct regression of 2D-3D correspondences. These 2D-3D correspondences are fed into Perspective-n-Point (PnP) (Gao et al., 2003) for pose estimation. APR methods (Kendall et al., 2015; Wang et al., 2019; Chen et al., 2021; Shavit et al., 2021) employ neural networks to infer camera poses from query images directly. While APR approaches offer fast inference times, they often struggle with accuracy and generalization (Sattler et al., 2019; Liu et al., 2024a). SCR methods generally achieve higher accuracy but at the cost of increased computational complexity.
+
+
+Figure 2: Overview of GS-CPR. We assume the availability of a pre-trained pose estimator $\mathcal{F}$ and a pre-trained 3DGS model $\mathcal{H}$ of the scene. For a query image $I_q$ , we first obtain an initial estimated pose $\hat{p}$ from the pose estimator $\mathcal{F}$ . Our goal is to output a refined pose $\hat{p'}$ .
+
+Given the above limitations, there has been a growing interest in pose refinement methods to enhance the accuracy of the initial pose estimates of an underlying pose-estimation method. Recent approaches have leveraged Neural Radiance Fields (NeRF) (Mildenhall et al., 2020) for this purpose. For instance, NeFeS (Chen et al., 2024a) proposes a test-time refinement pipeline. However, it offers limited improvements in accuracy and suffers from slow convergence due to the computational demands of NeRF rendering and the requirement for backpropagation through the pose estimation model. Furthermore, a recent NeRF-based localization method - CrossFire (Moreau et al., 2023) - establishes explicit 2D-3D matches using features rendered from NeRF. However, training a customized scene model together with the scene-specific localization descriptor is required, and it exhibits lower accuracy compared to classic structure-based methods.
+
+To address the challenges of slow convergence, limited accuracy, and the need for training customized feature descriptors, we propose a novel test-time pose refinement framework, termed GS-CPR, as illustrated in Figure 1 and Figure 2. GS-CPR employs 3D Gaussian Splatting (3DGS) (Kerbl et al., 2023) for scene representation and leverages its high-quality, fast novel view synthesis (NVS) capabilities to render images and depth maps. This facilitates the efficient establishment of 2D-3D correspondences between the query image and the rendered image, based on the initial pose estimate from the underlying pose estimator (e.g., APR, SCR). We incorporate an exposure-adaptive module into the 3DGS model to improve its robustness to the domain shift between the query image and the rendered image. Secondly, our method operates directly on RGB images, utilizing the 3D vision foundation model MASt3R (Leroy et al., 2024) for precise matching, eliminating the need for training scene-specific feature extractors or descriptors (Chen et al., 2024a; Moreau et al., 2023). This significantly accelerates our method compared to iterative NeRF-based refinement methods (Chen et al., 2024a) and makes our framework easier to deploy than CrossFire (Moreau et al., 2023) and its variants (Zhou et al., 2024; Liu et al., 2023; Zhao et al., 2024).
+
+Lastly, we conduct comprehensive quantitative evaluations and ablation studies on the 7Scenes (Glocker et al., 2013; Shotton et al., 2013), 12Scenes (Valentin et al., 2016), and Cambridge Landmarks (Kendall et al., 2015) benchmarks. GS-CPR significantly enhances the pose estimation accuracy of both APR and SCR methods across these benchmarks, achieving new state-of-the-art accuracy on the two indoor datasets. Unlike previous NeRF-based methods (Chen et al., 2024a),
+
+which fail to improve SCR methods, such as ACE (Brachmann et al., 2023), our method offers substantial improvements and outperforms other leading NeRF-based methods (Germain et al., 2022; Moreau et al., 2023; Zhou et al., 2024; Liu et al., 2023; Zhao et al., 2024).
+
+# 2 RELATED WORK
+
+Pose Estimation without 3D Representation. A straightforward approach for coarse pose estimation is using image retrieval (Arandjelovic et al., 2016; Ge et al., 2020; Gordo et al., 2017) to average poses from top-retrieved images, but this lacks precision. Absolute Pose Regression (APR) methods (Kendall et al., 2015; Kendall & Cipolla, 2016; 2017; Wang et al., 2019; Chen et al., 2021; 2022; Shavit et al., 2021; Chen et al., 2024b; Lin et al., 2024) directly regress a pose from a query image using trained models, bypassing 3D representations and geometric relationships. Despite being fast, APR methods suffer in accuracy and generalization (Sattler et al., 2019; Liu et al., 2024a) compared to structure-based techniques. LENS (Moreau et al., 2022) enhances APR by augmenting views with NeRF, but matching the accuracy of 3D structure-based methods remains challenging. To improve APR methods' accuracy, we used 3DGS as a 3D representation and utilized its geometry information to optimize the initial prediction.
+
+Structure-based Pose Estimation. Classical 3D structure-based methods, like the hierarchical localization pipeline (HLoc) (Dusmanu et al., 2019; Sarlin et al., 2019; Taira et al., 2018; Noh et al., 2017; Sattler et al., 2016; Sarlin et al., 2020; Lindenberger et al., 2023), predict camera poses using a point cloud and a database of reference images, requiring descriptor storage and 2D-3D correspondence through image retrieval. In contrast, Scene Coordinate Regression (SCR) methods (Brachmann et al., 2017; 2023; Wang et al., 2024a; Brachmann & Rother, 2021) directly regress 2D-3D correspondences using neural networks and apply PnP (Gao et al., 2003) and RANSAC (Fischler & Bolles, 1981) for pose estimation. Our GS-CPR eliminates the need for reference images and descriptor databases by using a 3DGS model for scene representation, further optimizing SCR outputs like ACE (Brachmann et al., 2023).
+
+NeRF-based Pose Estimation. NeRF-based pose estimation methods (Chen et al., 2024a; Yen-Chen et al., 2021; Lin et al., 2023) rely on iterative rendering and pose updates, leading to slow convergence and limited accuracy. While NeFeS (Chen et al., 2024a) improves APR pose estimation, it faces difficulties in enhancing SCR results and suffers from long refinement runtime. HR-APR (Liu et al., 2024a) speeds up optimization by $30\%$ , but the average runtime of each query still takes several seconds on a high-performance GPU. Other NeRF-based methods like FQN (Germain et al., 2022), CrossFire (Moreau et al., 2023), NeRFLoc (Liu et al., 2023), and NeRFMatch (Zhou et al., 2024) improve positioning by establishing 2D-3D matches but require specialized feature extractors and suffer from slow rendering and quality issues.
+
+3DGS-based Pose Estimation. With the NVS field transitioning from NeRF to 3DGS, methods proposed by Sun et al. (2023) and Botashev et al. (2024) refine camera poses in an inefficient iterative manner by inverting 3DGS, following iNeRF (Yen-Chen et al., 2021). In contrast, 6DGS (Bortolon et al., 2024) achieves a one-shot estimate by projecting rays from an ellipsoid surface, avoiding iteration. Although both methods use 3DGS for visual localization, neither has been tested on large benchmarks (Kendall et al., 2015; Valentin et al., 2016) or compared with mainstream methods like SCR and APR. We propose an approach using 3DGS for 2D-3D correspondences, similar to CrossFire (Moreau et al., 2023), but without requiring training feature extractors or feature matchers. Our method generates high-quality synthetic images and employs direct 2D-2D matching, making it faster and easier to deploy than previous NeRF-based methods such as NeFeS, CrossFire, and other variants (Germain et al., 2022; Zhou et al., 2024; Liu et al., 2023; 2024a; Zhao et al., 2024).
+
+# 3 PROPOSED METHOD
+
+GS-CPR is a test-time camera pose refinement framework. We assume the availability of a pretrained pose estimator and a 3DGS model of the scene. For a query image, we first obtain an initial estimated pose from the pose estimator. Our goal is to output a refined pose.
+
+Given a query image $I_{q} \in \mathbb{R}^{H \times W \times 3}$ with camera intrinsics $K \in \mathbb{R}^{3 \times 3}$ , a pose estimator $\mathcal{F}$ (typically an APR or SCR model) predicts an initial 6-DoF pose $\hat{p} = [\hat{\mathbf{t}} | \hat{\mathbf{R}}]$ , where $\hat{\mathbf{t}} \in \mathbb{R}^3$ and $\hat{\mathbf{R}} \in \mathbb{R}^{3 \times 3}$
+
+represent the estimated translation and rotation respectively. Subsequently, for the viewpoint $\hat{p}$ , a pretrained 3DGS model $\mathcal{H}$ renders an image $\hat{I}_r \in \mathbb{R}^{H \times W \times 3}$ and a depth map $\hat{I}_d \in \mathbb{R}^{H \times W \times 1}$ . We use an exposure-adaptive affine color transformation (ACT) module $\mathcal{E}$ during this rendering process to enhance the robustness of our model to challenging outdoor environments (see Section 3.1). A matcher $\mathcal{M}$ then establishes dense 2D-2D correspondences between $I_q$ and $\hat{I}_r$ . Then we can establish the 2D-3D matches based on $\hat{I}_q$ and $\hat{I}_d$ (see Section 3.2). Finally, we obtain the refined pose $\hat{p}'$ from these 2D-3D matches (see Section 3.2). An overview of our framework is depicted in Figure 2. We also explore a faster pose refinement framework without 2D-3D matches depicted in Figure 3 (see Section 3.3).
+
+# 3.1 3DGS TEST-TIME EXPOSURE ADAPTATION
+
+Existing literature (Kerbl et al., 2023; Lu et al., 2024) shows that 3DGS achieves high-quality novel view renderings but assumes training and testing without significant photometric distortions. In visual relocalization, mapping and query sequences often differ in lighting due to varying times, weather, and exposure. This creates a significant appearance gap between 3DGS renderings and query images, negatively impacting 2D-2D matching performance.
+
+To address this issue, we apply an exposure-adaptive affine color transformation module $\mathcal{E}$ (Chen et al., 2022; 2024a) to 3DGS, allowing the 3DGS to adaptively render appearances during testing and accurately reflect the exposure of $I_{q}$ . Specifically, we use a 4-layer MLP that takes the luminance histogram of the query image as input and produces a 3x3 matrix $\mathbf{Q}$ along with a 3-dimensional bias vector $\mathbf{b}$ . These outputs are then directly applied to the rendered pixels of the 3DGS as shown in Equation 1, ensuring a closer match to the exposure of the query image.
+
+$$
+\hat {\mathbf {C}} (\mathbf {r}) = \mathbf {Q} \hat {\mathbf {C}} _ {\text {r e n d}} (\mathbf {r}) + \mathbf {b}, \tag {1}
+$$
+
+where $\hat{\mathbf{C}} (\mathbf{r})$ is the final per-pixel color and $\hat{\mathbf{C}}_{\mathrm{rend}}(\mathbf{r})$ is the rendered per-pixel color obtained from the 3DGS model $\mathcal{H}$
+
+# 3.2 POSE REFINEMENT WITH 2D-3D CORRESPONDENCES
+
+GS-CPR estimates the camera pose by establishing 2D-3D correspondences between the query image $I_{q}$ and the scene representation. This process involves the following steps:
+
+2D-2D Matching. First, an image $\hat{I}_r$ is rendered from the initial estimated viewpoint $\hat{p}$ . A Matcher $\mathcal{M}$ is then used to establish 2D-2D pixel correspondences $C_{q,r}$ between the query image $I_q$ and the rendered image $\hat{I}_r$ . In our implementation, the matcher $\mathcal{M}$ is a recently released 3D vision foundation model, MASt3R (Leroy et al., 2024). MASt3R demonstrates strong robustness for 2D-2D matching across image pairs with the sim-to-real domain gap.
+
+3D Coordinate Map Generation. Simultaneously, we use our trained 3DGS model $\mathcal{H}$ to render a depth map $\hat{I}_d$ from the viewpoint $\hat{p}$ . We modify the rasterization engine of 3DGS to render the depth map as follows:
+
+$$
+\hat {I} _ {d} = \sum_ {i \in N} d _ {i} \alpha_ {i} \prod_ {j = 1} ^ {i - 1} (1 - \alpha_ {j}), \tag {2}
+$$
+
+where $d_{i}$ is the z-depth of each Gaussian in the viewspace and $\alpha_{i}$ is the learned opacity multiplied by the projected 2D covariance of the $i^{th}$ Gaussian. In our framework, ground truth depth maps are not required for supervision during training of the 3DGS model $\mathcal{H}$ . Using the rendered depth map $\hat{I}_d$ , camera intrinsics $K$ , and pose $\hat{p}$ , we obtain the 3D coordinate map $X_r^d \in \mathbb{R}^{H \times W \times 3}$ for the rendered image $\hat{I}_r$ .
+
+Establishing 2D-3D Correspondences. By combining the 2D-2D correspondences $C_{q,r}$ with the 3D coordinate map $X_r^d$ , we establish 2D-3D correspondences between $I_q$ and the scene. For each matched pixel in $I_q$ , we obtain its corresponding 3D coordinate from $X_r^d$ .
+
+Pose Refinement. Finally, we obtain the refined pose $\hat{p}^{\prime}$ by feeding these 2D-3D correspondences into a PnP (Gao et al., 2003) solver with RANSAC (Fischler & Bolles, 1981) loop. This process
+
+does not require backpropagation through the pose estimator $\mathcal{F}$ or the 3DGS model $\mathcal{H}$ , ensuring efficient computation and enabling its usage with any black-box pose estimator model.
+
+Using 2D-3D correspondences, coupled with $\mathrm{PnP} + \mathrm{RANSAC}$ , provides a robust pose refinement that is much faster and more accurate than methods relying solely on rendering and comparison (Yen-Chen et al., 2021; Lin et al., 2023; Sun et al., 2023). Furthermore, our method eliminates the requirement of training specialized feature descriptors that previous approaches (Chen et al., 2024a; Moreau et al., 2023; Chen et al., 2022; Zhao et al., 2024) rely on for robustness.
+
+# 3.3 FASTER ALTERNATIVE WITH RELATIVE POST ESTIMATION
+
+
+Figure 3: Overview of GS-CPRrel. Different from GS-CPR in Figure 2 (highlight with the red box), we use $\hat{I}_d$ to recover the scale $s$ of $\mathbf{t}_{\mathrm{rel}}$ . Then we calculate the refined pose $\hat{p}^{\prime}$ based on $\mathbf{R}_{\mathrm{rel}}$ and $s\mathbf{t}_{\mathrm{rel}}$ without matching.
+
+While GS-CPR provides high accuracy through 2D-3D correspondences, we also explore an alternative approach that prioritizes computational efficiency. This variant, which we call $\mathrm{GS - CPR}_{\mathrm{rel}}$ , utilizes MASt3R's point map registration capabilities to estimate relative pose without matching. Figure 3 shows an overview of the $\mathrm{GS - CPR}_{\mathrm{rel}}$ approach.
+
+Specifically, MASt3R generates point maps $\mathbf{P}_q$ and $\mathbf{P}_r$ for both the query image $I_q$ and the rendered image $\hat{I}_r$ and predicts the relative rotation $\mathbf{R}_{\mathrm{rel}}$ and translation $\mathbf{t}_{\mathrm{rel}}$ between the two images. However, this relative pose predicted by MASt3R needs to be aligned to the scene's scale $s$ . We recover the scale by aligning the point map $\mathbf{P}_r$ with the depth map $\hat{I}_d$ rendered from the 3DGS model $\mathcal{H}$ . The final refined pose $\hat{p}^{\prime}$ is computed as:
+
+$$
+\hat {p} ^ {\prime} = \left[ \hat {\mathbf {R}} ^ {\prime} \mid \hat {\mathbf {t}} ^ {\prime} \right] = \left[ \mathbf {R} _ {\mathrm {r e l}} \hat {\mathbf {R}} \mid \mathbf {R} _ {\mathrm {r e l}} \hat {\mathbf {t}} + s \mathbf {t} _ {\mathrm {r e l}} \right], \tag {3}
+$$
+
+where $\hat{\mathbf{R}},\hat{\mathbf{t}}$ are the initial rotation and translation estimates. As shown in Table 5 and 6, GS-CPRrel offers a trade-off between speed and accuracy, making it ideal for rapid refinement of APR methods like DFNet (Chen et al., 2022).
+
+# 4 EXPERIMENTS
+
+# 4.1 EVALUATION SETUP
+
+Datasets. We evaluate the performance of GS-CPR across three widely used public visual localization datasets. The 7Scenes dataset (Glocker et al., 2013; Shotton et al., 2013) comprises seven indoor scenes with volumes ranging from $1 - 18\mathrm{m}^3$ . The 12Scenes dataset (Valentin et al., 2016) features 12 larger indoor scenes, with volumes spanning from $14 - 79\mathrm{m}^3$ . The Cambridge Landmarks dataset (Kendall et al., 2015) represents large-scale outdoor scenarios, characterized by challenges such as moving objects and varying lighting conditions between query and training images.
+
+Evaluation Metrics. We report two types of metrics to compare the performance of different methods. The first metric is the median translation and rotation error. The second metric is the recall rate, which measures the percentage of test images localized within $a$ cm and $b^{\circ}$ .
+
+Baselines. In our experiment, to demonstrate the improvement capabilities of our framework, we use the initial estimates of APR and SCR methods as our baseline. We employ our method on top of
+
+Table 1: Comparisons on 7Scenes dataset. The median translation and rotation errors $(\mathrm{cm} / {}^{\circ})$ of different methods. The best results are in bold (lower is better). Second best results are indicated with an underline. NRP stands for Neural Rendering-based Pose Estimation.
+
+
+
+the prevailing APR methods, DFNet (Chen et al., 2022) and Marepo (Chen et al., 2024b), as well as a well-known SCR method, ACE (Brachmann et al., 2023), as the pose estimator $\mathcal{F}$ . We follow the default settings of these pose estimators to obtain the initial pose prior for each query image1. The term $APR/SCR + GS-CPR$ denotes the one-shot refinement. A similar naming convention applies to $APR/SCR + GS-CPR_{rel}$ . We also include a comparison here with the state-of-the-art NeRF-based methods (Chen et al., 2024a; Moreau et al., 2023; Zhou et al., 2024; Liu et al., 2024a; Germain et al., 2022; Zhao et al., 2024; Liu et al., 2023) and MCLoc (Trivigno et al., 2024), which is a pose refinement framework agnostic to scene representation. MCLoc provides results using 3DGS models as scene representations for the 7Scenes and Cambridge datasets.
+
+Implementation Details. GT Poses: For both the 7Scenes and 12Scenes datasets, we adopt the SfM ground truth (GT) provided by Brachmann et al. (2021). As demonstrated in NeFeS (Chen et al., 2024a), SfM GT can render superior geometric details compared to dSLAM GT for the 7Scenes dataset. Gaussian Splating: For the training of the 3DGS model of each scene, we utilize the sparse point cloud of training frames generated by COLMAP (Schonberger & Frahm, 2016) as the initial input. We select Scaffold-GS (Lu et al., 2024) as our 3DGS representation, incorporating modifications detailed in Sections 3.1 and 3.2 to adapt exposure and enable depth rendering. Scaffold-GS reduces redundant Gaussians while delivering high-quality rendering compared to the vanilla 3DGS (Kerbl et al., 2023). For the exposure-adaptive ACT module, we follow the default setting in Chen et al. (2024a), computing the query image's histogram in the YUV color space and binning the luminance channel into 10 bins. In addition, we apply temporal object filtering to filter out moving objects in the dynamic scene using an off-the-shelf method (Cheng et al., 2022), leading to better accuracy in scene reconstruction quality and pixel-matching performance. Training Details: We employ the official pre-trained MAsT3R (Leroy et al., 2024) model without fine-tuning for 2D-2D matching and resize all images to 512 pixels on their largest dimension. The modified Scaffold-GS model is trained for each scene with 30,000 iterations on an NVIDIA A6000 GPU. We implement our framework with PyTorch (Paszke et al., 2019). Additional details can be found in the Appendix A.1 and A.2.
+
+# 4.2 LOCALIZATION ACCURACY
+
+We conduct quantitative experiments on three datasets to evaluate the improved localization accuracy of our framework compared to the APR and SCR methods.
+
+7Scenes Dataset. Using the 7Scenes dataset, we evaluate the performance of DFNet, Marepo, and ACE with GS-CPR. Table 1 demonstrates that GS-CPR significantly reduces pose estimation errors for DFNet, Marepo, and ACE with one-shot refinement. Table 2 shows that GS-CPR significantly improves the proportion of query images below $5\mathrm{cm}$ , $5^{\circ}$ and $2\mathrm{cm}$ , $2^{\circ}$ pose error. It is worth noting
+
+Table 2: We report the average percentage $(\%)$ of frames below a $(5\mathrm{cm},5^{\circ})$ and $(2\mathrm{cm},2^{\circ})$ pose error across 7Scenes. IR denotes image retrieval.
+
+
Methods
Avg. ↑ [5cm, 5°]
Avg. ↑ [2cm, 2°]
APR
DFNet
43.1
8.4
Marepo
84.0
33.7
IR+SfM points
HLoc (SP + SG) (Sarlin et al., 2020; 2019)
95.7
84.5
DVLAD+R2D2 (Torii et al., 2015; Revaud et al., 2019)
95.7
87.2
SCR
DSAC*
97.8
80.7
ACE
97.1
83.3
GLACE
95.6
82.2
NRP
DFNet + NeFeS50
78.3
45.9
HR-APR
76.4
40.2
NeRFMatch
78.4
-
NeRFLoc (Liu et al., 2023)
89.5
-
DFNet + GS-CPR (ours)
94.2
76.5
Marepo + GS-CPR (ours)
99.4
89.6
ACE + GS-CPR (ours)
100
93.1
+
+Table 3: Comparisons on Cambridge Landmarks dataset. We report the median translation and rotation errors $(\mathrm{cm} / {}^{\circ})$ of different methods. Best results are in bold (lower is better) among the NRP approaches.
+
+
Methods
Kings Hospital
Shop Church
Avg. ↓ [cm/°]
IR + SfM points
HLoc (SP+SG) (k=1)
13/0.22
18/0.38
6/0.25
9/0.28
12/0.28
HLoc (SP+SG) (k=10)
11/0.2
15/0.31
4/0.21
7/0.22
9/0.24
APR
PoseNet
93/2.73
224/7.88
147/6.62
237/5.94
175/5.79
MS-Transformer
85/1.45
175/2.43
88/3.20
166/4.12
129/2.80
LENS (Moreau et al., 2022)
33/0.5
44/0.9
27/1.6
53/1.6
39/1.15
DFNet
73/2.37
200/2.98
67/2.21
137/4.02
119/2.90
PMNet (Lin et al., 2024)
68/1.97
103/1.31
58/2.10
133/3.73
90/2.27
SCR
ACE
29/0.38
31/0.61
5/0.3
19/0.6
21/0.47
GLACE1
20/0.32
20/0.41
5/0.22
9/0.3
14/0.32
NRP
FQN-MN
28/0.4
54/0.8
13/0.6
58/2
38/1
CrossFire
47/0.7
43/0.7
20/1.2
39/1.4
37/1
DFNet + NeFeS302
37/0.64
98/1.61
17/0.60
42/1.38
49/1.06
DFNet + NeFeS50
37/0.54
52/0.88
15/0.53
37/1.14
35/0.77
HR-APR
36/0.58
53/0.89
13/0.51
38/1.16
35/0.78
MCLoc
31/0.42
39/0.73
12/0.45
26/0.8
27/0.6
DFNet + GS-CPR (ours)
23/0.32
42/0.74
10/0.36
27/0.62
26/0.51
ACE + GS-CPR (ours)
20/0.29
21/0.40
5/0.24
13/0.40
15/0.33
+
+1 We report the accuracy based on official open-source models (Wang et al., 2024a).
+2 Results of DFNet $^+$ NeFeS30 taken from Liu et al. (2024a).
+
+that $\mathrm{ACE} + \mathrm{GS}$ -CPR outperforms HLoc (Superpoint (DeTone et al., 2018) + Superglue (Sarlin et al., 2020)), indicating that 3DGS has the potential to replace traditional point-clouds in visual localization pipelines. Figure 4 (a) shows that after refinement using our GS-CPR, the rendered image of the estimated pose better matches the real image.
+
+Cambridge Landmarks Dataset. We conduct a quantitative evaluation by deploying DFNet and ACE with GS-CPR. Marepo is not included in this comparison due to the absence of an official model for this dataset. Table 3 demonstrates that GS-CPR significantly reduces pose estimation errors for both DFNet and ACE. Specifically, the accuracy of DFNet + GS-CPR with one-shot optimization significantly surpasses that of CrossFire and DFNet + NeFeS with 30 and even 50 steps of optimization (see Table 3). This result fully demonstrates the efficiency of our GS-CPR. On the Kings College scene, DFNet + GS-CPR outperforms ACE after our refinement. ACE + GS-CPR consistently improves ACE accuracy across all four scenes. Refining the pose using our method results in a rendered image that aligns more accurately with the ground truth image as illustrated in Figure 4 (c).
+
+12Scenes Dataset. We conduct the quantitative evaluation using Marepo and ACE with GS-CPR. The former works (Brachmann et al., 2023; Wang et al., 2024a) report the percentage of frames below a $5\mathrm{cm}, 5^{\circ}$ pose error. Since SCR methods have already achieved good results with this metric, in this paper we use a more stringent standard $(2\mathrm{cm}, 2^{\circ})$ and report the median translation and
+
+Table 4: We report the average accuracy $(\%)$ of frames meeting a $[5\mathrm{cm},5^{\circ}]$ , $[2\mathrm{cm},2^{\circ}]$ pose error threshold, and the median translation and rotation errors $(\mathrm{cm} / {}^{\circ})$ across 12Scenes.
+
+
Methods
Avg. Err ↓ [cm/°]
Avg. ↑ [5cm, 5°]
Avg. ↑ [2cm, 2°]
Marepo
2.1/1.04
95
50.4
DSAC*
0.5/0.25
99.8
96.7
ACE
0.7/0.26
100
97.2
GLACE
0.7/0.25
100
97.5
Marepo + GS-CPR (ours)
0.7/0.28
98.9
90.9
ACE + GS-CPR (ours)
0.5/0.21
100
98.7
+
+Table 5: We report the average accuracy $(\%)$ of frames meeting a $[5\mathrm{cm},5^{\circ}]$ pose error threshold, and the median translation and rotation errors $(\mathrm{cm} / {}^{\circ})$
+
+
Datasets
7Scenes
Cambridge
Methods
Avg. Acc ↑ [5cm, 5°]
Avg. Err ↓ [cm/°]
Avg. Err ↓ [cm/°]
DFNet
43.1
6/1.93
119/2.9
DFNet + GS-CPRrel (ours)
80.5
2.7/0.38
55/0.57
DFNet + GS-CPR (ours)
94.2
1.1/0.34
26/0.51
ACE
97.1
1.1/0.34
21/0.47
ACE + GS-CPRrel (ours)
79.9
2.8/0.43
47/0.54
ACE + GS-CPR (ours)
100
0.8/0.25
15/0.33
+
+rotation errors $(\mathrm{cm} / {}^{\circ})$ . Table 4 shows that GS-CPR significantly improves the percentage of query images below $2\mathrm{cm}$ , $2^{\circ}$ pose error and median pose error for Marepo and ACE. Figure 4 (b) shows that after refinement using our GS-CPR, the rendered image with our pose estimation aligns better with the real image.
+
+GS-CPR vs. $\mathrm{GS - CPR}_{\mathrm{rel}}$ . We compare GS-CPR, a pose refinement framework that uses 2D-3D correspondence, with $\mathrm{GS - CPR}_{\mathrm{rel}}$ , a faster alternative that uses relative pose from MASt3R. Both frameworks are evaluated on 7Scenes and Cambridge Landmarks datasets using DFNet and ACE predictions. Table 5 shows that $\mathrm{GS - CPR}_{\mathrm{rel}}$ achieves notable accuracy improvement with DFNet on both indoor and outdoor datasets, though it is less effective than GS-CPR. However, $\mathrm{GS - CPR}_{\mathrm{rel}}$ is significantly faster than GS-CPR and other NeRF-based methods, as discussed in Section 4.3. While $\mathrm{GS - CPR}_{\mathrm{rel}}$ improves coarse pose estimates from APR methods like DFNet, it struggles with accurate pose estimates from SCR methods. For ACE, $\mathrm{GS - CPR}_{\mathrm{rel}}$ results in performance degradation because our pose refinement relies on the relative pose estimator MASt3R, which struggles to provide more accurate relative pose estimates when the ACE-predicted pose is sufficiently close to the GT pose. Higher median rotation and translation errors in Table 5 compared to GS-CPR indicate that scale recovery is not the only challenge for $\mathrm{GS - CPR}_{\mathrm{rel}}$ , as rotation is scale-independent.
+
+
+ACE
+
+
+ACE + GS-CPR (Ours)
+
+
+ACE
+
+
+ACE + GS-CPR (Ours)
+
+
+ACE
+
+
+ACE + GS-CPR (Ours)
+
+
+Marepo
+(a) 7Scenes
+Figure 4: Our GS-CPR enhances pose predictions for Marepo, DFNet, and ACE. Each subfigure is divided by a diagonal line, with the bottom left part rendered using the estimated/refined pose and the top right part displaying the ground truth image. Patches highlighting visual differences are emphasized with green insets for enhanced visibility.
+
+
+Marepo + GS-CPR (Ours)
+
+
+Marepo
+(b) 12Scenes
+
+
+Marepo + GS-CPR (Ours)
+
+
+DFNet
+(c) Cambridge
+
+
+DFNet + GS-CPR (Ours)
+
+Table 6: Runtime Analysis (test on Cambridge Landmarks).
+
+
Methods
CrossFire
DFNet + NeFeS50
HR-APR
MCLoc
DFNet + GS-CPRrel (ours)
DFNet + GS-CPR (ours)
ACE + GS-CPR (ours)
Avg. ↓ [cm/°]
37/1.0
35/0.8
35/0.8
27/0.6
55/0.6
26/0.5
15/0.3
Avg. ↓ time (s)
0.3
10
8.5
2.4
0.08
0.18
0.19
+
+Table 7: Results of different matchers (LoFTR (Sun et al., 2021), DUSt3R (Wang et al., 2024b), and MASt3R (Leroy et al., 2024)) on the 7Scenes dataset. GS-CPR ${}^{\mathrm{L}}$ denotes using LoFTR as the matcher $\mathcal{M}$ ,GS-CPR ${}^{\mathrm{D}}$ denotes using DUSt3R as $\mathcal{M}$ ,and GS-CPR ${}^{\mathrm{M}}$ denotes using MASt3R as $\mathcal{M}$ . The table presents median translation and rotation errors $\left( {\mathrm{{cm}}/{}^{ \circ }}\right)$ of the different methods.
+
+
Methods
Marepo
+ GS-CPRL
+ GS-CPRD
+ GS-CPRM
ACE
+ GS-CPRL
+ GS-CPRD
+ GS-CPRM
Avg. ↓ [cm/°]
2.9/1.04
1.5/0.40
2.1/0.7
0.9/0.28
1.1/0.34
1.0/0.31
1.5/0.6
0.8/0.25
+
+# 4.3 RUNTIME ANALYSIS
+
+We evaluate the runtime of the proposed framework using an NVIDIA GeForce RTX 4090 GPU. On average, 3DGS rendering takes $3.7\mathrm{ms}$ on the 7Scenes dataset and $12\mathrm{ms}$ on the Cambridge Landmarks dataset (due to higher scene complexity and image resolution). MASt3R relative pose estimation takes $71\mathrm{ms}$ . MASt3R matching takes an additional $42\mathrm{ms}$ , and $\mathrm{PnP} + \mathrm{RANSAC}$ takes another $52\mathrm{ms}$ . As a result, our GS-CPRrel only adds $71\mathrm{ms}$ to the inference time of the pose estimator $\mathcal{F}$ , and our GS-CPR adds less than $180\mathrm{ms}$ overhead. All time measurements are averaged over 1,000 runs. We compare the runtime and accuracy with other methods in Table 6. On the Cambridge Landmarks dataset, MCLoc requires an average of $2.4\mathrm{s}$ per query with 80 iterations (Trivigno et al., 2024). In contrast, our ACE+GS-CPR with one-shot optimization only takes $0.19\mathrm{s}$ per query. Therefore, in terms of efficiency and improvement, our GS-CPR is better than MCLoc when using 3DGS as scene representation. Although GS-CPRrel is less accurate than GS-CPR, it is more efficient. GS-CPRrel provides a feasible solution to pose refinement when the time budget is important.
+
+# 4.4 ABLATION STUDY
+
+In this section, we first demonstrate the rationale behind selecting MAST3R as the matcher $\mathcal{M}$ in GS-CPR. Subsequently, we show that ACT effectively reduces the domain gap between the query image and the rendered image, thereby enhancing the refinement accuracy.
+
+Different Matchers. We compare three matching methods: LoFTR (Sun et al., 2021), DUSt3R (Wang et al., 2024b), and MASt3R – within GS-CPR in the 7Scenes dataset. For DUSt3R and MASt3R, we resize all images to 512 pixels in their largest dimension. For LoFTR, we use the pre-trained model for indoor scenes and maintain the frames in the 7Scenes dataset at $640 \times 480$ . As shown in Table 7, Marepo + GS-CPR and ACE + GS-CPR using MAST3R as $\mathcal{M}$ achieve the highest improvement. Conversely, ACE + GS-CPR using DUSt3R does not yield any improvement. Marepo + GS-CPR using DUSt3R and Marepo/ACE + GS-CPR using LoFTR show a lower improvement compared to MAST3R. These results validate our choice of design to use MAST3R as a matcher $\mathcal{M}$ .
+
+Affine Color Transformation. To enhance the robustness of the 3DGS model in image rendering and to reduce the domain gap between the rendered image and the query image, we incorporated an ACT module into the Scaffold-GS model, as described in Section 3.1. Figure 5 illustrates the improvement in image rendering quality with the ACT module applied. The performance enhancement of GS-CPR from the ACT module is demonstrated in Table 8. On the Cambridge Landmarks dataset, employing the ACT module in the DFNet + GS-CPR setup reduces both the average median translation and rotation errors.
+
+# 4.5 DISCUSSION
+
+In this section, we provide additional insights and discussions of our design choices.
+
+Replace Feature Descriptors. Given that 3DGS can render high-quality synthetic images $\hat{I}_r$ in real-time, we show that using a pre-trained 3D foundation model, MAST3R, can directly establish accurate 2D-2D correspondences $C_{q,r}$ between $I_q$ and $\hat{I}_r$ with a sim-to-real domain gap. As demon
+
+Table 8: Ablation study for ACT module on Cambridge Landmarks dataset. We report the median translation and rotation errors $(\mathrm{cm} / {}^{\circ})$
+
+
Methods
Kings Hospital
Shop Church
Avg. ↓ [cm/°]
DFNet + GS-CPR (w/o. ACT)
34/0.46
54/0.84
12/0.34
DFNet + GS-CPR (w. ACT)
23/0.32
42/0.74
10/0.36
27/0.62
26/0.51
+
+
+(a) Ground Truth
+
+
+Figure 5: Benefit of the ACT module. A regular 3DGS model tends to render images based on the lighting conditions and the appearance of its training frames, as demonstrated by the synthetic view of Scaffold-GS in (b). However, in challenging visual localization datasets, such as ShopFacade in the Cambridge Landmarks, some query frames may have different exposures compared to the training frames. (c) Our proposed Scaffold-GS + ACT can adaptively adjust the exposure based on the query's histogram.
+
+
+(b)Scaffold-GS/PSNR:16.5 dB
+(c) Ours/PSNR:18.4 dB
+
+strated in Section 4.2, GS-CPR achieves significantly higher accuracy than NeRF-based refinement pipelines that rely on feature rendering. Direct RGB matching makes our framework more compact, reduces runtime, eliminates the need for training additional neural radiance features, and simplifies both deployment and usage.
+
+Efficient and Effective Pose Refinement. As a pose estimator, DFNet provides less accurate predictions than Marepo and ACE, but NeFeS reports the best results over DFNet. To ensure a fair comparison with NeFeS, we present examples in Figure 6 illustrating that our GS-CPR outperforms NeFeS in both efficiency and effectiveness. With only one-shot optimization, our GS-CPR achieves higher accuracy than NeFeS with 50 optimization iterations when combined with DFNet on both the indoor 7Scenes and outdoor Cambridge Landmarks datasets. This superior performance is due to our method's leverage of 3D geometry (depth rendering) of the representation, unlike previous NeRF-based refinement methods (Chen et al., 2024a; Yen-Chen et al., 2021) that use only 2D feature/photometric information in an iterative process, rendering candidate poses and comparing them with the target image. Additional discussion can be found in the Appendix A.3.
+
+
+(a) 7Scenes
+Figure 6: A comparison between DFNet + GS-CPR and DFNet + $\mathrm{NeFeS}_{50}$ .
+
+
+
+
+(b) Cambridge
+
+
+
+# 5 CONCLUSION
+
+We present GS-CPR, a novel test-time camera pose refinement framework leveraging 3DGS for scene representation to improve the localization accuracy of state-of-the-art APR and SCR methods. GS-CPR enables one-shot pose refinement using only a single RGB query and a coarse initial pose estimate from APR and SCR methods. Our approach outperforms existing NeRF-based optimization methods in both accuracy and runtime across various indoor and outdoor visual localization benchmarks, achieving new state-of-the-art accuracy on two indoor datasets. These results demonstrate the effectiveness and efficiency of our proposed framework.
+
+# REFERENCES
+
+Relja Arandjelovic, Petr Gronat, Akihiko Torii, Tomas Pajdla, and Josef Sivic. Netvlad: Cnn architecture for weakly supervised place recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 5297-5307, 2016.
+Matteo Bortolon, Theodore Tsesmelis, Stuart James, Fabio Poiesi, and Alessio Del Bue. 6dgs: 6d pose estimation from a single image and a 3d gaussian splatting model. arXiv preprint arXiv:2407.15484, 2024.
+Kazii Botashev, Vladislav Pyatov, Gonzalo Ferrer, and Stamatios Lefkimmiatis. Gsloc: Visual localization with 3d gaussian splattering. In 2024 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 5664-5671. IEEE, 2024.
+Eric Brachmann and Carsten Rother. Visual camera re-localization from rgb and rgb-d images using dsac. IEEE transactions on pattern analysis and machine intelligence, 44(9):5847-5865, 2021.
+Eric Brachmann, Alexander Krull, Sebastian Nowozin, Jamie Shotton, Frank Michel, Stefan Gumhold, and Carsten Rother. Dsac-differentiable ransac for camera localization. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 6684-6692, 2017.
+Eric Brachmann, Martin Humenberger, Carsten Rother, and Torsten Sattler. On the limits of pseudo ground truth in visual camera re-localisation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 6218-6228, 2021.
+Eric Brachmann, Tommaso Cavallari, and Victor Adrian Prisacariu. Accelerated coordinate encoding: Learning to relocalize in minutes using rgb and poses. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 5044-5053, 2023.
+Shuai Chen, Zirui Wang, and Victor Prisacariu. Direct-posenet: absolute pose regression with photometric consistency. In 2021 International Conference on 3D Vision (3DV), pp. 1175-1185. IEEE, 2021.
+Shuai Chen, Xinghui Li, Zirui Wang, and Victor A Prisacariu. Dfnet: Enhance absolute pose regression with direct feature matching. In Computer Vision-ECCV 2022: 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Proceedings, Part X, pp. 1-17. Springer, 2022.
+Shuai Chen, Yash Bhalgat, Xinghui Li, Jia-Wang Bian, Kejie Li, Zirui Wang, and Victor Adrian Prisacariu. Neural refinement for absolute pose regression with feature synthesis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 20987-20996, 2024a.
+Shuai Chen, Tommaso Cavallari, Victor Adrian Prisacariu, and Eric Brachmann. Map-relative pose regression for visual re-localization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 20665-20674, 2024b.
+Bowen Cheng, Ishan Misra, Alexander G Schwing, Alexander Kirillov, and Rohit Girdhar. Masked-attention mask transformer for universal image segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 1290–1299, 2022.
+Daniel DeTone, Tomasz Malisiewicz, and Andrew Rabinovich. Superpoint: Self-supervised interest point detection and description. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pp. 224-236, 2018.
+Mihai Dusmanu, Ignacio Rocco, Tomas Pajdla, Marc Pollefeys, Josef Sivic, Akihiko Torii, and Torsten Sattler. D2-net: A trainable cnn for joint description and detection of local features. In Proceedings of the iee/cvf conference on computer vision and pattern recognition, pp. 8092-8101, 2019.
+Martin A Fischler and Robert C Bolles. Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography. Communications of the ACM, 24 (6):381-395, 1981.
+
+Xiao-Shan Gao, Xiao-Rong Hou, Jianliang Tang, and Hang-Fei Cheng. Complete solution classification for the perspective-three-point problem. IEEE transactions on pattern analysis and machine intelligence, 25(8):930–943, 2003.
+Yixiao Ge, Haibo Wang, Feng Zhu, Rui Zhao, and Hongsheng Li. Self-supervising fine-grained region similarities for large-scale image localization. In European Conference on Computer Vision, 2020.
+Hugo Germain, Daniel DeTone, Geoffrey Pascoe, Tanner Schmidt, David Novotny, Richard Newcombe, Chris Sweeney, Richard Szeliski, and Vasileios Balntas. Feature query networks: Neural surface description for camera pose refinement. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 5071-5081, 2022.
+Ben Glocker, Shahram Izadi, Jamie Shotton, and Antonio Criminisi. Real-time rgb-d camera relocalization. In 2013 IEEE International Symposium on Mixed and Augmented Reality (ISMAR), pp. 173-179. IEEE, 2013.
+A. Gordo, J. Almazan, J. Revaud, and D. Larlus. End-to-end learning of deep visual representations for image retrieval. *IJCV*, 2017.
+Martin Humenberger, Yohann Cabon, Noé Pion, Philippe Weinzaepfel, Donghwan Lee, Nicolas Guérin, Torsten Sattler, and Gabriela Csurka. Investigating the role of image retrieval for visual localization: An exhaustive benchmark. International Journal of Computer Vision, 130(7):1811-1836, 2022.
+Jianhao Jiao, Jinhao He, Changkun Liu, Sebastian Aegidius, Xiangcheng Hu, Tristan Braud, and Dimitrios Kanoulas. Litevloc: Map-lite visual localization for image goal navigation. arXiv preprint arXiv:2410.04419, 2024.
+Alex Kendall and Roberto Cipolla. Modelling uncertainty in deep learning for camera relocalization. In 2016 IEEE international conference on Robotics and Automation (ICRA), pp. 4762-4769. IEEE, 2016.
+Alex Kendall and Roberto Cipolla. Geometric loss functions for camera pose regression with deep learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 5974-5983, 2017.
+Alex Kendall, Matthew Grimes, and Roberto Cipolla. Posenet: A convolutional network for real-time 6-dof camera relocalization. In Proceedings of the IEEE international conference on computer vision, pp. 2938-2946, 2015.
+Bernhard Kerbl, Georgios Kopanas, Thomas Leimkuhler, and George Drettakis. 3d gaussian splatting for real-time radiance field rendering. ACM Trans. Graph., 42(4):139-1, 2023.
+Vincent Leroy, Yohann Cabon, and Jérôme Revaud. Grounding image matching in 3d with mast3r. In European Conference on Computer Vision, pp. 71-91. Springer, 2024.
+Jingyu Lin, Jiaqi Gu, Bojian Wu, Lubin Fan, Renjie Chen, Ligang Liu, and Jieping Ye. Learning neural volumetric pose features for camera localization. In European Conference on Computer Vision, pp. 198-214. Springer, 2024.
+Yunzhi Lin, Thomas Müller, Jonathan Tremblay, Bowen Wen, Stephen Tyree, Alex Evans, Patricio A Vela, and Stan Birchfield. Parallel inversion of neural radiance fields for robust pose estimation. In 2023 IEEE International Conference on Robotics and Automation (ICRA), pp. 9377-9384. IEEE, 2023.
+Philipp Lindenberger, Paul-Edouard Sarlin, and Marc Pollefeys. Lightglue: Local feature matching at light speed. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 17627-17638, 2023.
+Changkun Liu, Shuai Chen, Yukun Zhao, Huajian Huang, Victor Prisacariu, and Tristan Braud. Hrapr: Apr-agnostic framework with uncertainty estimation and hierarchical refinement for camera relocalisation. In 2024 IEEE International Conference on Robotics and Automation (ICRA), pp. 8544–8550. IEEE, 2024a.
+
+Changkun Liu, Jianhao Jiao, Huajian Huang, Zhengyang Ma, Dimitrios Kanoulas, and Tristan Braud. Air-hloc: Adaptive retrieved images selection for efficient visual localisation. arXiv preprint arXiv:2403.18281, 2024b.
+Jianlin Liu, Qiang Nie, Yong Liu, and Chengjie Wang. Nerf-loc: Visual localization with conditional neural radiance field. In 2023 IEEE International Conference on Robotics and Automation (ICRA), pp. 9385–9392. IEEE, 2023.
+Tao Lu, Mulin Yu, Linning Xu, Yuanbo Xiangli, Limin Wang, Dahua Lin, and Bo Dai. Scaffolds: Structured 3d gaussians for view-adaptive rendering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 20654-20664, 2024.
+Ben Mildenhall, Pratul P Srinivasan, Matthew Tancik, Jonathan T Barron, Ravi Ramamoorthi, and Ren Ng. Nerf: Representing scenes as neural radiance fields for view synthesis. In European Conference on Computer Vision, pp. 405-421. Springer, 2020.
+Arthur Moreau, Nathan Piasco, Dzmitry Tsishkou, Bogdan Stanciulescu, and Arnaud de La Fortelle. Lens: Localization enhanced by nerf synthesis. In Conference on Robot Learning, pp. 1347-1356. PMLR, 2022.
+Arthur Moreau, Nathan Piasco, Moussab Bennehar, Dzmitry Tsishkou, Bogdan Stanciulescu, and Arnaud de La Fortelle. Crossfire: Camera relocalization on self-supervised features from an implicit representation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 252-262, 2023.
+Hyeonwoo Noh, Andre Araujo, Jack Sim, Tobias Weyand, and Bohyung Han. Large-scale image retrieval with attentive deep local features. In Proceedings of the IEEE international conference on computer vision, pp. 3456-3465, 2017.
+Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019.
+Jerome Revaud, Cesar De Souza, Martin Humenberger, and Philippe Weinzaepfel. R2d2: Reliable and repeatable detector and descriptor. Advances in neural information processing systems, 32, 2019.
+Paul-Edouard Sarlin, Cesar Cadena, Roland Siegwart, and Marcin Dymczyk. From coarse to fine: Robust hierarchical localization at large scale. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12716–12725, 2019.
+Paul-Edouard Sarlin, Daniel DeTone, Tomasz Malisiewicz, and Andrew Rabinovich. Superglue: Learning feature matching with graph neural networks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 4938-4947, 2020.
+Paul-Edouard Sarlin, Mihai Dusmanu, Johannes L Schonberger, Pablo Speciale, Lukas Gruber, Viktor Larsson, Ondrej Miksik, and Marc Pollefeys. Lamar: Benchmarking localization and mapping for augmented reality. In European Conference on Computer Vision, pp. 686-704. Springer, 2022.
+Torsten Sattler, Bastian Leibe, and Leif Kobbelt. Efficient & effective prioritized matching for large-scale image-based localization. IEEE transactions on pattern analysis and machine intelligence, 39(9):1744-1756, 2016.
+Torsten Sattler, Qunjie Zhou, Marc Pollefeys, and Laura Leal-Taixe. Understanding the limitations of cnn-based absolute camera pose regression. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 3302-3312, 2019.
+Johannes L Schonberger and Jan-Michael Frahm. Structure-from-motion revisited. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4104-4113, 2016.
+Yoli Shavit, Ron Ferens, and Yosi Keller. Learning multi-scene absolute pose regression with transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 2733-2742, 2021.
+
+Jamie Shotton, Ben Glocker, Christopher Zach, Shahram Izadi, Antonio Criminisi, and Andrew Fitzgibbon. Scene coordinate regression forests for camera relocalization in rgb-d images. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2930-2937, 2013.
+Jiaming Sun, Zehong Shen, Yuang Wang, Hujun Bao, and Xiaowei Zhou. Loftr: Detector-free local feature matching with transformers. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 8922-8931, 2021.
+Yuan Sun, Xuan Wang, Yunfan Zhang, Jie Zhang, Caigui Jiang, Yu Guo, and Fei Wang. ictomma: Inverting 3d gaussians splatting for camera pose estimation via comparing and matching. arXiv preprint arXiv:2312.09031, 2023.
+Hajime Taira, Masatoshi Okutomi, Torsten Sattler, Mircea Cimpoi, Marc Pollefeys, Josef Sivic, Tomas Pajdla, and Akihiko Torii. Inloc: Indoor visual localization with dense matching and view synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7199-7209, 2018.
+Akihiko Torii, Relja Arandjelovic, Josef Sivic, Masatoshi Okutomi, and Tomas Pajdla. 24/7 place recognition by view synthesis. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1808-1817, 2015.
+Gabriele Trivigno, Carlo Masone, Barbara Caputo, and Torsten Sattler. The unreasonable effectiveness of pre-trained features for camera pose refinement. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12786-12798, 2024.
+Julien Valentin, Angela Dai, Matthias Nießner, Pushmeet Kohli, Philip Torr, Shahram Izadi, and Cem Keskin. Learning to navigate the energy landscape. In 2016 Fourth International Conference on 3D Vision (3DV), pp. 323-332. IEEE, 2016.
+Bing Wang, Changhao Chen, Chris Xiaoxuan Lu, Peijun Zhao, Niki Trigoni, and Andrew Markham. Atloc: Attention guided camera localization. arXiv preprint arXiv:1909.03557, 2019.
+Fangjinhua Wang, Xudong Jiang, Silvano Galliani, Christoph Vogel, and Marc Pollefeys. Glace: Global local accelerated coordinate encoding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 21562-21571, 2024a.
+Shuzhe Wang, Vincent Leroy, Yohann Cabon, Boris Chidlovskii, and Jerome Revaud. Dust3r: Geometric 3d vision made easy. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 20697-20709, 2024b.
+Lin Yen-Chen, Pete Florence, Jonathan T Barron, Alberto Rodriguez, Phillip Isola, and Tsung-Yi Lin. inerf: Inverting neural radiance fields for pose estimation. In 2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 1323-1330. IEEE, 2021.
+Boming Zhao, Luwei Yang, Mao Mao, Hujun Bao, and Zhaopeng Cui. Pnerfloc: Visual localization with point-based neural radiance fields. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pp. 7450-7459, 2024.
+Qunjie Zhou, Maxim Maximov, Or Litany, and Laura Leal-Taixe. The nefrect match: Exploring nerf features for visual localization. In European Conference on Computer Vision, pp. 108-127. Springer, 2024.
+
+# A APPENDIX
+
+# A.1 GT POSES DETAILS
+
+In Section 4.2, we report evaluation results based on the SfM ground truth (GT) poses for the 7Scenes dataset, as these poses can render higher quality images (Chen et al., 2024a). Since NeFeS (Chen et al., 2024a) demonstrates the superior accuracy of SfM poses using NeRF as the scene representation, we provide a quantitative comparison in Table 9 and illustrative rendering examples of 3DGS in Figure 7. These results affirm that SfM poses are more accurate, leading to higher quality rendered images and depth maps when using 3DGS. We utilize pre-built COLMAP models from Brachmann et al. (2021) for 7Scenes and 12Scenes datasets, and the models from HLoc toolbox (Sarlin et al., 2019) for the Cambridge landmarks dataset. For the 7Scenes dataset, we enhance the accuracy of the sparse point cloud by utilizing dense depth maps provided by the dataset, combined with the HLoc toolbox and rendered depth maps (Brachmann & Rother, 2021).
+
+Table 9: Qualitative comparison between the 3DGS models implemented in Section 4.1 trained by dSLAM GT poses and SfM GT poses. We report the average PSNR (dB) for the test frames in each scene. The best results are in bold (higher is better).
+
+
dSLAM GT
SfM GT
Scenes
avg. PSNR ↑
avg. PSNR ↑
chess
19.6
23.1
fire
19.8
21.2
heads
18.4
19.7
office
19.4
21.7
pumpkin
20.3
23.2
redkitchen
18.5
21.4
stairs
19.7
20.1
avg.
19.4
21.5
+
+
+(a) dSLAM GT
+
+
+(b) SfM GT
+Figure 7: Render performance example (dSLAM GT vs. SfM GT). The 3DGS model trained with SfM GT poses (b) renders superior geometric details compared to the dSLAM 3DGS (a) for the same query image, particularly in the chessboard and pieces area.
+
+# A.2 SEMANTIC SEGMENTATION WHEN BUILDING 3DGS
+
+To handle challenges in outdoor datasets, we apply temporal object filtering to filter out moving objects in the dynamic scene using an off-the-shelf method (Cheng et al., 2022), leading to better accurate scene reconstruction quality and pixel-matching performance. We show examples of semantic segmentation in Figure 8 and its effect on novel view synthesis (NVS) results in Figure 9. This approach, together with ACT, allows our 3DGS models to provide more robust and better rendering results.
+
+
+
+
+Figure 8: Example of masking on the ShopFacade scene. Top: original images; Bottom: corresponding semantic masks.
+
+
+
+
+
+
+GT image
+
+
+(a) w. Seg Mask + w. ACT
+
+
+(b) w/o. Seg Mask + w. ACT
+
+
+GT image
+
+
+(c) w. Seg Mask + w. ACT
+
+
+(d) w/o. Seg Mask + w/o. ACT
+Figure 9: Rendering performance comparison. The 3DGS model trained with segmentation masks renders superior geometric details and fewer artifacts compared to the model trained without masks.
+
+# A.3 THE ADVANTAGES OF GS-CPR OVER OTHER APPROACHES
+
+Advantages over render and comapre methods: Methods (Yen-Chen et al., 2021; Lin et al., 2023; Chen et al., 2024a; Sun et al., 2023; Trivigno et al., 2024) leverage only the geometric information of the representation for rendering but do not use it for 2D-3D matching. Consequently, they offer limited accuracy gains and are hindered by slow convergence and high computational costs due to iterative rendering. While NeFeS (Chen et al., 2024a) reduces rendering time and cost by using feature maps and feature loss rather than photometric loss, its accuracy potential remains lower than methods employing 2D-3D matches from original RGB images due to the loss of information in feature maps.
+
+Advantages over structure-based methods: Classical 3D structure-based methods, such as HLoc (Dusmanu et al., 2019; Sarlin et al., 2019; Taira et al., 2018; Noh et al., 2017; Sattler et al., 2016; Sarlin et al., 2020; Lindenberger et al., 2023), estimate camera poses using a 3D SfM point cloud and a reference image database. HLoc requires storing a descriptor database and retrieving the top- $k$ most similar images for 2D-3D correspondences, typically requiring $k = 5$ to 40 images for robust localization (Humenberger et al., 2022; Sarlin et al., 2022; Leroy et al., 2024). Our approach offers two key advantages: (1) While HLoc requires $k$ matching operations, our GS-CPR only requires one, and its single-shot pose optimization surpasses the accuracy of traditional HLoc. (2) For
+
+challenging queries, even the top-1 retrieved image may have limited overlap with the query (Liu et al., 2024b). However, since GS-CPR performs NVS based on APR and SCR predictions, the rendered images exhibit a greater overlapping region with the query, leading to more accurate matches. We provide examples in Figure 10. The key insight is that both image retrieval and ACE pose-based retrieval are restricted to identifying queries within a limited reference pool. In contrast, our approach theoretically allows for an unlimited reference pool. (3) Using 3DGS instead of sparse point clouds for scene representation enables the domain shift of the rendered image according to the query's exposure through a learning approach, offering greater flexibility.
+
+System design analysis: Our approach goes beyond simply combining 3DGS and MASt3R. As outlined in Section 3.2, our method leverages the matching components of MASt3R to eliminate the need for training extra features to match image pairs with a sim-to-real domain gap—a common limitation of other NeRF-based pose estimation techniques. However, relying solely on MASt3R with reference images fails to deliver accurate metric translation due to the lack of scale information and cannot build 2D-3D matches for absolute pose estimation. This limitation arises because MASt3R is unable to generate metric 3D points within the pre-built global coordinate system. For instance, Jiao et al. (2024) addresses this problem in robotics tasks by incorporating a depth camera. To resolve this challenge, 3DGS in our framework serves a critical function by rendering metric depth, enabling accurate 2D-3D matching. Besides, the rendered view generated by 3DGS from SCR and APR poses aligns much better than normal image retrieval from fixed reference images. This integration is important in recovering precise scale and achieving robust and accurate pose estimation with sufficient matches. By combining the strengths of these components, our framework addresses current limitations.
+
+# A.4 SUPPLEMENTARY VISUALIZATION
+
+To complement our quantitative analysis, we present additional results in Figure 11 that provide a qualitative perspective on pixel-wise alignment using NVs based on 3DGS across three datasets. A video is also included in the supplementary material.
+
+# A.5 FAILURE CASES AND LIMITATION
+
+One limitation of our method lies in its dependency on the accuracy of the initial pose estimates provided by the pose estimator. When the initial pose is highly inaccurate, the overlap between the rendered images and the query image is insufficient to establish reliable 2D-3D correspondences for accurate pose estimation. As shown in Figure 12, GS-CPR cannot refine the DFNet's initial pose in this case because it is too far away from the GT pose.
+
+Following Section 4.5 of NeFeS (Chen et al., 2024a), we conduct quantitative experiments to evaluate the limitations of GS-CPR. Specifically, we introduce random perturbations to the ground truth poses of test frames on the ShopFacade scene, applying fixed magnitudes of rotational and translational errors independently. The results after pose refinement using GS-CPR are presented in Table 10 and Table 11. Our framework can improve the accuracy when rotation error $< 50^{\circ}$ and translation error $< 8$ meters, respectively. In contrast, NeFeS achieves accuracy improvements only for rotational errors under $35^{\circ}$ and translational errors below 4 meters. These findings highlight that our method significantly expands the optimization range, enhancing its robustness to larger pose perturbations.
+
+Table 10: Average rotation error after refinement by GS-CPR.
+
+
Jitter-magnitude (°)
5
10
20
30
40
50
55
60
Avg. Rot. Error (°)
0.23
0.23
0.27
0.35
0.6
7
26
83
+
+Table 11: Average translation error after refinement by GS-CPR.
+
+
Jitter-magnitude (m)
1
2
3
4
5
6
8
10
Avg. Trans. Error (m)
0.19
0.38
0.51
0.88
1.13
2.0
3.1
10.7
+
+
+seq-01/frame-000138
+query
+
+
+seq-03/frame-000056
+top-1 retrieved image by NetVLAD
+
+
+seq-03/frame-000089
+top-1 retrieved image based on ACE's pose
+
+
+The rendered image based on ACE's pose
+
+
+query and the retrieved image (NetVLAD): 1623
+
+
+query and the retrieved image (ACE): 1258
+
+
+query and the rendered image (ACE): 2966
+
+
+seq-09/frame000441
+query
+
+
+(a) Stairs
+seq-03/frame-000847
+top-1 retrieved image by NetVLAD
+
+
+seq-08/frame-000402
+top-1 retrieved image based on ACE's pose
+The rendered image based on ACE's pose
+
+
+
+
+query and the retrieved image (NetVLAD): 2387
+
+
+query and the retrieved image (ACE): 1640
+
+
+query and the rendered image (ACE): 2921
+
+
+seq-04/frame000375
+query
+
+
+(b) Office
+seq-05/frame-000516
+top-1 retrieved image by NetVLAD
+
+
+seq-13/frame-000788
+top-1 retrieved image based on ACE's pose
+The rendered image based on ACE's pose
+
+
+
+
+query and the retrieved image (NetVLAD): 2255
+Figure 10: The image rendered from the pose estimator's predictions exhibits a greater overlapping region with the query image than the one retrieved by NetVLAD (Arandjelovic et al., 2016) and the one retrieved by ACE's pose. We use MASt3R as the matcher. Since the matches are very dense, we show the number of matches but only visualize $20\%$ of the matches.
+
+
+query and the retrieved image (ACE): 6
+(c) Redkitchen
+
+
+
+
+query and the rendered image (ACE): 2970
+
+
+DFNet
+
+
+DFNet + GS-CPR (Ours)
+
+
+Marepo
+
+
+Marepo+ GS-CPR (Ours)
+
+
+ACE
+
+
+ACE + GS-CPR (Ours)
+
+
+ACE
+
+
+ACE + GS-CPR (Ours)
+
+
+DFNet + NeFeS50
+
+
+DFNet + GS-CPR (Ours)
+
+
+Figure 11: Each subfigure is divided by a diagonal line, with the bottom left part rendered using the estimated/refined pose and the top right part displaying the ground truth image. Patches highlighting visual differences are emphasized with green insets for enhanced visibility.
+
+
+DFNet + NeFeS 50
+DFNet + GS-CPR (Ours)
+
+
+DFNet
+Figure 12: Failure case example. Each subfigure is divided by a diagonal line, with the bottom left part rendered using the estimated/refined pose and the top right part displaying the ground truth image.
+
+
+DFNet +GS-CPR
+
+This paper demonstrates the effectiveness of our framework on commonly used datasets and benchmarks. However, reconstructing high-quality 3DGS models for large scenes remains a significant challenge. Exploring the application of this framework to large-scale scenes for accurate visual camera relocalization is a promising avenue for future work.
+
+Table 12: We report the average accuracy $(\%)$ of frames meeting a $[5\mathrm{cm},5^{\circ}]$ , $[2\mathrm{cm},2^{\circ}]$ pose error threshold, and the median translation and rotation errors $(\mathrm{cm} / {}^{\circ})$ across 7Scenes and 12Scenes.
+
+
Datasets
Methods
Avg. Err ↓ [cm/°]
Avg. ↑ [5cm, 5°]
Avg. ↑ [2cm, 2°]
7Scenes
GLACE
1.2/0.36
95.6
82.2
GLACE + GS-CPR (ours)
0.8/0.27
99.5
90.7
12Scenes
GLACE
0.7/0.25
100
97.5
GLACE + GS-CPR (ours)
0.5/0.21
100
98.9
+
+Table 13: Comparisons on Cambridge Landmarks dataset. We report the median translation and rotation errors $(\mathrm{cm} / {}^{\circ})$ of different methods.
+
+
Methods
Kings Hospital Shop Church|Avg. ↓ [cm/°]
GLACE1
20/0.32
20/0.41
5/0.22
9/0.3
14/0.32
GLACE2
19/0.3
17/0.4
4/0.2
9/0.3
12/0.3
GLACE + GS-CPR (ours)
17/0.28
18/0.34
5/0.21
8/0.28
12/0.28
+
+1 Accuracy based on official open-source models (Wang et al., 2024a).
+2 Accuracy reported in the paper (Wang et al., 2024a).
+
+# A.6 SUPPLEMENTARY EXPERIMENTS
+
+GLACE (Wang et al., 2024a) is an enhanced version of ACE tailored for large-scale outdoor scenes, while exhibiting nearly identical accuracy in indoor environments compared to ACE. We present the results of GLACE + GS-CPR in Tables 12 and 13 to provide supplementary results for evaluating the performance of our approach. GS-CPR significantly improves GLACE accuracies in two of the three datasets (7scenes and 12scenes), demonstrating the effectiveness of our method. On the Cambridge Landmarks dataset, we achieve comparable results, with a slight edge in rotational error.
\ No newline at end of file
diff --git a/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/images.zip b/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..223abf7174c35a0d2820f929fa882b7db9bfdb1d
--- /dev/null
+++ b/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:43972c86e421c478405539d11c5c753d5b53f8e05fe9d2c2bc9024a6571d5651
+size 1124901
diff --git a/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/layout.json b/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..f47208cb74cff85b9f1532005cbe2e2d6e6d2fc2
--- /dev/null
+++ b/ICLR/2025/GS-CPR_ Efficient Camera Pose Refinement via 3D Gaussian Splatting/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:da97239430027d26abdcf0a739a11019839b6c77b2dda1c86535b9e04d2c24c5
+size 784377
diff --git a/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/172482e3-974d-4e97-bd2e-0aeb23bedef8_content_list.json b/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/172482e3-974d-4e97-bd2e-0aeb23bedef8_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..641004c33c5d7586ff24023278d88bed9eb54737
--- /dev/null
+++ b/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/172482e3-974d-4e97-bd2e-0aeb23bedef8_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b6c0f7bd8d5c016af0b4d192f30678ef2e8b81d9501c7a5303dddd536078809a
+size 90351
diff --git a/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/172482e3-974d-4e97-bd2e-0aeb23bedef8_model.json b/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/172482e3-974d-4e97-bd2e-0aeb23bedef8_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..c12d644f55bc4d44c976fd35ccda3bdd02474f22
--- /dev/null
+++ b/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/172482e3-974d-4e97-bd2e-0aeb23bedef8_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:321336f396216a8e9bf10608d1cfa50c674f9647ca30a03ed9f399750af8a23b
+size 108624
diff --git a/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/172482e3-974d-4e97-bd2e-0aeb23bedef8_origin.pdf b/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/172482e3-974d-4e97-bd2e-0aeb23bedef8_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c37247beaa2026ed12e32b928c5d20354f4d3f23
--- /dev/null
+++ b/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/172482e3-974d-4e97-bd2e-0aeb23bedef8_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3c2e78ebe98b86d519a8fce13401d6d8d944399b8f9d1ef0916a3e947b5672ae
+size 10154314
diff --git a/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/full.md b/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e3c4fd70371cacf4daa382e3693f16c8790c65c7
--- /dev/null
+++ b/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/full.md
@@ -0,0 +1,369 @@
+# GS-LIDAR: GENERATING REALISTIC LIDAR POINT CLOUDS WITH PANORAMIC GAUSSIAN SPLATTING
+
+Junzhe Jiang, Chun Gu, Yurui Chen, Li Zhang*
+
+School of Data Science, Fudan University
+
+https://github.com/fudan-zvg/GS-LiDAR
+
+
+
+
+
+
+Figure 1: GS-LiDAR achieves superior LiDAR simulation quality for novel view synthesis while maintaining fast training and rendering speed.
+
+
+
+# ABSTRACT
+
+LiDAR novel view synthesis (NVS) has emerged as a novel task within LiDAR simulation, offering valuable simulated point cloud data from novel viewpoints to aid in autonomous driving systems. However, existing LiDAR NVS methods typically rely on neural radiance fields (NeRF) as their 3D representation, which incurs significant computational costs in both training and rendering. Moreover, NeRF and its variants are designed for symmetrical scenes, making them ill-suited for driving scenarios. To address these challenges, we propose GS-LiDAR, a novel framework for generating realistic LiDAR point clouds with panoramic Gaussian splatting. Our approach employs 2D Gaussian primitives with periodic vibration properties, allowing for precise geometric reconstruction of both static and dynamic elements in driving scenarios. We further introduce a novel panoramic rendering technique with explicit ray-splat intersection, guided by panoramic LiDAR supervision. By incorporating intensity and ray-drop spherical harmonic (SH) coefficients into the Gaussian primitives, we enhance the realism of the rendered point clouds. Extensive experiments on KITTI-360 and nuScenes demonstrate the superiority of our method in terms of quantitative metrics, visual quality, as well as training and rendering efficiency.
+
+# 1 INTRODUCTION
+
+Captured data in driving scenarios is critically important, as it serves to train and simulate autonomous driving systems. However, the collection of driving data is both costly and inefficient.
+
+This underscores the necessity for a LiDAR simulation algorithm capable of generating realistic Li-DAR data more efficiently. A common approach in the field is to reconstruct 3D street scenes from sparse data, which can then be used to generate novel view data. Most previous works (Xie et al., 2023b; Yang et al., 2024a; Chen et al., 2023a; Yan et al., 2024) have concentrated on novel view synthesis for cameras. These approaches use RGB images captured by vehicle-mounted cameras as input to reconstruct 3D scenes and render images from novel perspectives. Although significant progress has been made in camera-based novel view synthesis, the simulation of LiDAR remains underexplored. Due to the inherent sparsity of LiDAR point clouds, the challenge lies in accurately reconstructing 3D scenes using only LiDAR data. Furthermore, LiDAR sensors do not capture all emitted beams, as factors such as the reflective properties of objects affect beam reception, leading to point cloud dropout, which further increases the difficulty of 3D scene reconstruction.
+
+Traditional LiDAR simulation methods can be broadly classified into two categories: virtual environment modeling (Dosovitskiy et al., 2017; Shah et al., 2018; Koenig & Howard, 2004) and reconstruction-based approaches (Manivasagam et al., 2020; Li et al., 2023; Guillard et al., 2022). The former involves creating 3D virtual worlds using physics engines and handcrafted 3D assets, though these simulators are constrained by the limited diversity and high cost of generating 3D assets. Additionally, there remains a significant domain gap between simulations and the real world. In contrast, reconstruction-based methods aim to address these limitations by reconstructing 3D assets from real-world captured data. However, the complexity of multi-step algorithms in this category limits their practical application in industry.
+
+In recent years, neural radiance field (NeRF) (Mildenhall et al., 2020) has emerged as a foundational technique in the field of 3D reconstruction. With its effective implicit representation and high-quality volumetric rendering, NeRF has been proposed as a novel approach for LiDAR simulation. NeRF-LiDAR (Zhang et al., 2024) utilizes real images and LiDAR data to learn a Neural Radiance Field, generating point clouds and rendering semantic labels. On the other hand, LiDAR-NeRF (Tao et al., 2023) introduces a novel LiDAR view synthesis task, which uses only LiDAR data as input to reconstruct a 3D scene. However, LiDAR-NeRF is limited to modeling static scenes, whereas dynamic vehicles and pedestrians are common in driving scenarios. To address this, LiDAR4D (Zheng et al., 2024) introduces a hybrid 4D representation for novel space-time LiDAR view synthesis. Although these NeRF-based methods mark significant progress compared to traditional techniques, they suffer from slow training and rendering speeds, a limitation inherent to NeRF. Furthermore, efficient NeRF-based architectures like HashGrid (Müller et al., 2022), designed for symmetrical scenes, are not well-suited for driving scenarios.
+
+In this paper, we propose GS-LiDAR, a novel framework for generating realistic LiDAR point clouds using panoramic Gaussian splatting. While 3D Gaussian splatting struggles with geometric modeling and tends to overfit sparse views, we leverage view-consistent 2D Gaussian primitives Huang et al. (2024) for more accurate geometric representation. Moreover, considering the dynamic nature of driving scenarios, we introduce periodic vibration properties Chen et al. (2023a) into the Gaussian primitives, enabling the uniform representation of various objects and elements in dynamic environments. Focusing on the task of novel LiDAR view synthesis, we introduce a novel panoramic rendering process to facilitate fast and efficient rendering of panoramic depth maps using 2D Gaussian primitives. Through carefully designed ray-splat intersections, the resulting panoramic depth maps are geometrically accurate and view-consistent. Each Gaussian is assigned additional LiDAR-specific attributes, such as view-dependent intensity and ray-drop probability, which are aggregated into intensity maps and ray-drop maps through alpha-blending in the splatting process. By using ground-truth LiDAR range maps and intensity maps for supervision, GS-LiDAR can effectively simulate LiDAR point clouds. As illustrated in Figure 1, GS-LiDAR achieves superior LiDAR simulation quality in novel LiDAR view synthesis and significantly outperforms the previous state-of-the-art method, LiDAR4D (Zheng et al., 2024), in both training and rendering speed.
+
+We conduct extensive experiments to evaluate the effectiveness of our method on two major benchmarks: KITTI-360 (Liao et al., 2022) and nuScenes (Caesar et al., 2020). For static scenes, we test our approach on the KITTI-360 dataset, achieving a substantial $10.7\%$ reduction in the RMSE metric compared to the leading competitor, LiDAR4D (Zheng et al., 2024). For dynamic scenes, our method outperforms LiDAR4D, with RMSE reductions of $11.5\%$ on KITTI-360 and $13.1\%$ on nuScenes. Moreover, our approach demonstrated significantly faster training and rendering times than previous NeRF-based methods, with a speedup of 1.67 times in training and a notable increase of 31 times in rendering LiDAR novel views compared to LiDAR4D.
+
+Our contributions are summarized as follows: (1) We propose GS-LiDAR, a novel differentiable framework for generating realistic LiDAR point clouds. (2) We employ 2D Gaussian primitives with periodic vibration properties, enabling precise geometric reconstruction of various objects and elements in dynamic scenarios. (3) We introduce a novel panoramic rendering technique based on 2D Gaussian primitives, with geometrically accurate ray-splat intersection, where the rendered panoramic maps are supervised by the ground-truth data. (4) Extensive experiments demonstrate the superiority of our method across quantitative metrics, visual quality, as well as training and rendering speeds, when compared to previous approaches.
+
+# 2 RELATED WORK
+
+Novel view synthesis Novel view synthesis (NVS) is a critical and challenging aspect of 3D reconstruction. Since the advent of neural radiance fields (NeRF) (Mildenhall et al., 2020), there have been significant advancements in 3D reconstruction and NVS. NeRF utilizes a multi-layer perceptron (MLP) to model geometric shapes and view-dependent appearances, rendering through volume rendering. NeRF has demonstrated that implicit radiance fields can effectively learn scene representations and synthesize high-quality novel views. Despite its profound impact, NeRF faces notable challenges, including slow rendering speeds and aliasing. To address these issues, various research efforts (Barron et al., 2021; 2022; 2023; Hu et al., 2023; Reiser et al., 2021; Yu et al., 2021; Reiser et al., 2023; Hedman et al., 2021; Yariv et al., 2023; Chen et al., 2023c; 2022; Müller et al., 2022; Liu et al., 2020; Sun et al., 2022; Chen et al., 2023b; Fridovich-Keil et al., 2022) have developed variants that focus on enhancing rendering quality as well as accelerating training and rendering speeds. Recently, 3D Gaussian splatting (3DGS) (Kerbl et al., 2023) has introduced a point-based 3D scene representation that innovatively combines high-quality alpha-blending with rapid rasterization. 3DGS has been swiftly extended to various domains to enhance its rendering capabilities (Xie et al., 2023a; Huang et al., 2024; Gao et al., 2024) and its potential to represent dynamic scenes (Yang et al., 2024b; Yan et al., 2024; Zielonka et al., 2023; Chen et al., 2023a). In this paper, we adopt 2D Gaussian primitives with periodic vibration properties as scene representation to characterize the accurate geometry of both static and dynamic elements.
+
+LiDAR simulation Traditional simulators can be classified into two categories. The first type of method (Dosovitskiy et al., 2017; Shah et al., 2018; Koenig & Howard, 2004) utilizes physics engines to generate LiDAR point clouds through ray casting within handcrafted virtual environments. However, these simulators are limited by their diversity and the high cost of 3D assets, and they exhibit a significant domain gap when compared to real-world data. In contrast, the second type of methods (Manivasagam et al., 2020; Li et al., 2023; Guillard et al., 2022) have sought to address these limitations by reconstructing scenes from real data for simulation. For instance, LiDARsim (Manivasagam et al., 2020) and PCGen (Li et al., 2023) utilize a multi-step, data-driven approach to simulate point clouds from real data. However, the complexity of these multiple steps impacts their applicability and scalability. More recent works (Tao et al., 2023; Zhang et al., 2024; Zheng et al., 2024; Xue et al., 2024; Tao et al., 2024; Wu et al., 2024) have utilized NeRF for scene reconstruction and LiDAR simulation, achieving higher quality and more reliable results. However, NeRF is time-consuming due to its implicit representation and exhaustive ray marching. Moreover, NeRF and its variants are mostly designed for symmetrical scenes, making them ill-suited to the driving scenarios. To this end, GS-LiDAR employs the explicit representation of Gaussian splatting, which enables efficient and flexible LiDAR simulation.
+
+# 3 METHOD
+
+In this section, we propose GS-LiDAR, a novel framework for generating realistic LiDAR point clouds with Gaussian splatting. We begin by introducing the necessary background on 3D Gaussian splatting in Section 3.1. For geometrically accurate reconstruction and the modeling of both static and dynamic elements, we employ 2D Gaussian primitives with periodic vibration properties as our scene representation, as outlined in Section 3.2. To integrate LiDAR supervision, we propose an innovative panoramic rendering technique with explicit ray-splat intersection, described in Section 3.3. Next, we detail the LiDAR modeling approach, including the rendering of depth maps,
+
+
+Figure 2: Overview of the GS-LiDAR framework: GS-LiDAR is based on 2D Gaussian primitives with periodic vibration properties, allowing for dynamic modeling of position and opacity along with accurate geometry. At a given timestamp, Gaussians query their states and utilize the proposed panoramic Gaussian splatting technique to render panoramic maps of depth, ray-drop, and intensity. For each ray and Gaussian primitive, we calculate their intersection to obtain the depth and $\alpha$ , ensuring more geometrically consistent renderings. The results are subsequently refined by a well-trained U-Net to further enhance the quality of the point clouds.
+
+intensity maps, and ray-drop probability maps, in Section 3.4. Finally, in Section 3.5, we discuss the various functions used to optimize the scenes. An overview of our pipeline is provided in Figure 2.
+
+# 3.1 PRELIMINARY: 3D GAUSSIAN SPLATTING
+
+3D Gaussian splatting (3DGS) (Kerbl et al., 2023) employs a set of anisotropic Gaussian primitives to represent a static 3D scene, which is subsequently rendered vis differentiable splatting. By utilizing a tile-based rasterizer, this approach facilitates the real-time rendering of novel views with high visual fidelity. Each Gaussian primitive is characterized by a position vector $\pmb{\mu} \in \mathbb{R}^3$ , a covariance matrix $\pmb{\Sigma} \in \mathbb{R}^{3 \times 3}$ , an opacity parameter $o \in (0,1)$ , and color $\pmb{c} \in \mathbb{R}^3$ modeled by spherical harmonics (SH). The influence $\mathcal{G}(\pmb{x})$ of a given Gaussian primitive on a spatial position $\pmb{x}$ is defined by an unnormalized Gaussian function:
+
+$$
+\mathcal {G} (\boldsymbol {x}) = \exp \left(- \frac {1}{2} \left(\boldsymbol {x} - \boldsymbol {\mu}\right) ^ {\top} \boldsymbol {\Sigma} ^ {- 1} \left(\boldsymbol {x} - \boldsymbol {\mu}\right)\right). \tag {1}
+$$
+
+To render an image, the 3D Gaussian primitives are initially transformed into the camera coordinate system via the view transformation matrix $\mathbf{W}$ . Following this transformation, each Gaussian primitive is projected onto the image plane through a local affine transformation $\mathbf{J}$ , which maps the 3D structure into 2D image space. The 2D covariance matrix $\boldsymbol{\Sigma}'$ of the projected Gaussian primitive in camera coordinates is computed as: $\boldsymbol{\Sigma}' = \boldsymbol{J}\boldsymbol{W}\boldsymbol{\Sigma}\boldsymbol{W}^\top\boldsymbol{J}^\top$ . The final rendering process employs alpha-blending, wherein the color $c$ of a target pixel is obtained by aggregating the contribution $\mathcal{G}'$ of each relevant projected 2D Gaussian, proceeding from front to back:
+
+$$
+\boldsymbol {c} = \sum_ {k = 1} ^ {K} \boldsymbol {c} _ {k} o _ {k} \mathcal {G} _ {k} ^ {\prime} \prod_ {j = 1} ^ {k - 1} \left(1 - o _ {j} \mathcal {G} _ {j} ^ {\prime}\right), \tag {2}
+$$
+
+where $k$ denotes the index of a Gaussian primitive, with $K$ representing the total number of Gaussian primitives in the scene.
+
+# 3.2 PERIODIC VIBRATION 2D GAUSSIAN
+
+Given the constant presence of moving vehicles and pedestrians in driving scenarios, we aim to utilize a unified representation to model the various objects and elements within the scene. We employ 2D Gaussian primitives (Huang et al., 2024) with periodic vibration properties (Chen et al., 2023a) to accurately capture surface behavior across both space and time. For a 2D Gaussian defined by its central point $\pmb{\mu} \in \mathbb{R}^3$ , an opacity parameter $o \in [0,1]$ , two principal tangential vectors $\pmb{t}_u \in \mathbb{R}^3$ and $\pmb{t}_v \in \mathbb{R}^3$ , and a scaling vector $\pmb{s} = (s_u, s_v) \in \mathbb{R}^2$ , we introduce additional learnable attributes that govern the variation of its central point and opacity. These include the vibrating direction
+
+
+
+
+Figure 3: Our LiDAR coordinate system and two ways of depth rendering. The mean depth refers to the weighted average of each depth using the rendering weights, while the median depth is defined as the maximum depth with transparency, i.e., $\prod_{j=1}^{k-1}(1 - o_j\mathcal{G}_j)$ , no greater than 0.5.
+
+$\pmb{v} \in \mathbb{R}^3$ , life peak $\tau \in \mathbb{R}$ , and time decay rate $\beta \in \mathbb{R}$ :
+
+$$
+\tilde {\boldsymbol {\mu}} (t) = \boldsymbol {\mu} + \frac {l}{2 \pi} \cdot \sin \left(\frac {2 \pi (t - \tau)}{l}\right) \cdot \boldsymbol {v}, \tag {3}
+$$
+
+$$
+\tilde {o} (t) = o \cdot \exp \left(- \frac {1}{2} (t - \tau) ^ {2} \beta^ {- 2}\right), \tag {4}
+$$
+
+where $\tilde{\mu}(t)$ represents the vibrating motion around $\pmb{\mu}$ and $\tau$ , and $\tilde{o}(t)$ represents the decayed opacity. The hyper-parameter $l$ denotes the cycle length, which serves as a prior for the scene. Each equipped with a simple motion, the Gaussian primitives can join up to represent any complex motion of dynamic elements in a relay manner. The influence $\mathcal{G}$ of each 2D Gaussian disk is defined within its local tangent plane in world space:
+
+$$
+\mathcal {G} (u, v) = \exp \left(- \frac {u ^ {2} + v ^ {2}}{2}\right), \tag {5}
+$$
+
+where $(u, v)$ are the coordinates within the local tangent plane space (UV space). The transformation from UV space to screen space is parameterized as:
+
+$$
+\boldsymbol {x} (u, v) = \boldsymbol {W} (\tilde {\boldsymbol {\mu}} (t) + s _ {u} \boldsymbol {t} _ {u} u + s _ {v} \boldsymbol {t} _ {v} v) = \boldsymbol {W} \boldsymbol {H} (u, v, 1) ^ {\top}, \tag {6}
+$$
+
+$$
+\text {w h e r e} \boldsymbol {H} = \left[ \begin{array}{c c c} s _ {u} \boldsymbol {t} _ {u} & s _ {v} \boldsymbol {t} _ {v} & \tilde {\boldsymbol {\mu}} (t) \\ 0 & 0 & 1 \end{array} \right] \in \mathbb {R} ^ {4 \times 3}. \tag {7}
+$$
+
+Here, $\pmb{W} \in \mathbb{R}^{4 \times 4}$ represents the view transformation matrix, and $\pmb{x} = (x, y, z, 1)^{\top}$ denotes the homogeneous coordinates in sensor space.
+
+# 3.3 PANORAMIC GAUSSIAN SPLATTING
+
+LiDAR emits laser pulses and measures the time-of-flight (ToF) to determine object distances, as well as the intensity of reflected light. Spinning LiDAR provides a 360-degree horizontal field of view $(-\pi ,\pi)$ and a limited vertical field of view $\mathrm{(VFOV_{min},VFOV_{max})}$ , allowing it to perceive the environment with a specific angular resolution. The angular configuration within the LiDAR coordinate system is depicted in Figure 3. Given the pixel coordinates of a point on the range image $(\xi ,\eta)$ , the corresponding radian angles can be computed using the following equation:
+
+$$
+\binom {\phi} {\theta} = \binom {(2 \xi - W) \pi W ^ {- 1}} {\eta H ^ {- 1} \left(\mathrm {V F O V} _ {\max } - \mathrm {V F O V} _ {\min }\right) + \mathrm {V F O V} _ {\min }} \tag {8}
+$$
+
+where $(W, H)$ represent the width and height of the range image, respectively. A homogeneous point in the LiDAR coordinate system can then be determined from $(\phi, \theta)$ as follows: $\pmb{x} = (x, y, z, 1)^{\top} = (r \sin \theta \sin \phi, -r \cos \theta, r \sin \theta \cos \phi, 1)^{\top}$ , where $r = \sqrt{x^2 + y^2 + z^2}$ denotes the distance from the point to the center of the LiDAR.
+
+Ray-splat intersection We define the ray as the intersection of two orthogonal homogeneous planes, $\pmb{h}_x = (\cos \phi, 0, -\sin \phi, 0)^\top$ and $\pmb{h}_y = (\cos \theta \sin \phi, \sin \theta, \cos \theta \cos \phi, 0)^\top$ , characterized by their normal vectors. These satisfy the conditions $\pmb{h}_x^\top \pmb{x} = 0$ and $\pmb{h}_y^\top \pmb{x} = 0$ . Consequently, given
+
+
+Figure 4: Panoramic Gaussian rasterization details. (a) Our method employs tile-based sorting and rendering. For panoramic ray maps, we first transform the epipolar coordinate system into the pixel coordinate system. The pixel map is then divided into small tiles, and within each tile, Gaussian primitives are sorted based on their distance to the LiDAR origin. (b) During pixel rendering, the $\alpha$ and depth are computed by calculating the intersection between the ray and the Gaussian primitive.
+
+
+
+the ray angles $(\phi, \theta)$ , the ray-splat intersection $(u, v)$ is determined by solving the following linear equations:
+
+$$
+\left[ \boldsymbol {h} _ {x}, \boldsymbol {h} _ {y} \right] ^ {\top} \boldsymbol {W} \boldsymbol {H} (u, v, 1) ^ {\top} = 0. \tag {9}
+$$
+
+Let $[\pmb{R},\pmb{h}] = [\pmb{h}_x,\pmb{h}_y]^\top \pmb{W}\pmb{H}$ , where $\pmb{R} \in \mathbb{R}^{2 \times 2}$ and $\pmb{h} \in \mathbb{R}^2$ . From this, we can solve for $u$ and $v$ as follows:
+
+$$
+\left( \begin{array}{l} u \\ v \end{array} \right) = - \boldsymbol {R} ^ {- 1} \boldsymbol {h}. \tag {10}
+$$
+
+# 3.4 LIDAR RENDERING
+
+In the novel LiDAR view synthesis task, LiDAR point clouds, which include intensity values, can be projected to panoramic range maps and intensity maps. To simulate LiDAR point clouds, we assign each Gaussian a view-dependent intensity value $\lambda$ and a view-dependent ray-drop probability $\rho$ , both of which are modeled using spherical harmonics.
+
+Depth map Considering the ray-splat intersection within the LiDAR coordinate system, the depth value corresponds to the distance $r$ from the intersection point to the center of the LiDAR. Based on Equation 7 and the conversion between $(x,y,z)$ and $(\phi ,\theta)$ , we have:
+
+$$
+\left(r \sin \theta \sin \phi , - r \cos \theta , r \sin \theta \cos \phi , 1\right) ^ {\top} = \boldsymbol {W} \boldsymbol {H} (u, v, 1) ^ {\top}. \tag {11}
+$$
+
+By multiplying $(\sin \theta \sin \phi, -\cos \theta, \sin \theta \cos \phi, 0)$ on both sides, the distance $r$ can be computed as:
+
+$$
+r = (\sin \theta \sin \phi , - \cos \theta , \sin \theta \cos \phi , 0) \boldsymbol {W} \boldsymbol {H} (u, v, 1) ^ {\top}. \tag {12}
+$$
+
+Although we calculate the intersection of each ray with the Gaussian primitives, we still adopt the tile-based rendering method proposed in 3D Gaussian splatting Kerbl et al. (2023) to achieve efficient rendering. As illustrated in Figure 4, we first transform the epipolar coordinates into pixel coordinates and sort the Gaussian primitives within each tile. For pixel rendering, the $\alpha$ and depth are determined based on the intersection results.
+
+During the training process, we utilize both the mean depth and the median depth, and supervise them using the projected ground truth range map as follows:
+
+$$
+R _ {\text {m e a n}} = \sum_ {k = 1} ^ {K} r _ {k} o _ {k} \mathcal {G} _ {k} \prod_ {j = 1} ^ {k - 1} \left(1 - o _ {j} \mathcal {G} _ {j}\right), \tag {13}
+$$
+
+$$
+R _ {\text {m e d i a n}} = \max \left\{r _ {k} \left| \prod_ {j = 1} ^ {k - 1} \left(1 - o _ {j} \mathcal {G} _ {j}\right) > 0. 5 \right. \right\}, \tag {14}
+$$
+
+$$
+\mathcal {L} _ {\mathrm {d}} = \left\| R _ {\text {m e a n}} - R _ {\mathrm {g t}} \right\| _ {1} + \left\| R _ {\text {m e d i a n}} - R _ {\mathrm {g t}} \right\| _ {1}. \tag {15}
+$$
+
+
+Figure 5: Comparison of 3D LiDAR point cloud. GS-LiDAR produces a more cohesive LiDAR point cloud compared to LiDAR-NeRF (Tao et al., 2023) and LiDAR4D (Zheng et al., 2024).
+
+Table 1: State-of-the-art comparison on KITTI-360 Static Scene Sequence. We color the top results as best and second best.
+
+
Method
Point Cloud
Depth
Intensity
CD↓
F-score↑
RMSE↓
MedAE↓
LPIPS↓
SSIM↑
PSNR↑
RMSE↓
MedAE↓
LPIPS↓
SSIM↑
PSNR↑
LiDARsim (Manivasagam et al., 2020)
2.2249
0.8667
6.5470
0.0759
0.2289
0.7157
21.7746
0.1532
0.0506
0.2502
0.4479
16.3045
NKSR (Huang et al., 2023)
0.5780
0.8685
4.6647
0.0698
0.2295
0.7052
22.5390
0.1565
0.0536
0.2429
0.4200
16.1159
PCGen (Li et al., 2023)
0.2090
0.8597
4.8838
0.1785
0.5210
0.5062
24.3050
0.2005
0.0818
0.6100
0.1248
13.9606
LiDAR-NeRF (Tao et al., 2023)
0.0923
0.9226
3.6801
0.0667
0.3523
0.6043
26.7663
0.1557
0.0549
0.4212
0.2768
16.1683
LiDAR4D (Zheng et al., 2024)
0.0894
0.9264
3.2370
0.0507
0.1313
0.7218
27.8840
0.1343
0.0404
0.2127
0.4698
17.4529
GS-LiDAR (Ours)
0.0847
0.9236
2.8895
0.0411
0.0997
0.8454
28.8807
0.1211
0.0359
0.1630
0.5756
18.3506
+
+Intensity map LiDAR intensity refers to the strength of the laser pulse upon its return to the receiver, which is influenced by material properties, surface characteristics, distance, and the incident angle. Intensity data contributes to terrain analysis, facilitates the differentiation of various features, and enhances the classification and precision of point cloud data. Similar to the rendering of mean depth, we aggregate the intensity map $I$ using alpha-blending: $I = \sum_{k=1}^{K} \lambda_k o_k \mathcal{G}_k \prod_{j=1}^{k-1} (1 - o_j \mathcal{G}_j)$ , which is subsequently supervised by the ground truth intensity:
+
+$$
+\mathcal {L} _ {\text {i n t}} = \left\| I - I _ {\mathrm {g t}} \right\| _ {1}. \tag {16}
+$$
+
+Ray-drop probability map LiDAR ray-drop refers to the phenomenon where some laser pulses do not return to the sensor after striking surfaces, often due to obstructions, absorption by vegetation, or unfavorable angles of incidence. Through alpha-blending, we get a ray-drop probability map from Gaussians: $P_{\mathrm{gs}} = \sum_{k=1}^{K} \rho_k o_k \mathcal{G}_k \prod_{j=1}^{k-1} (1 - o_j \mathcal{G}_j)$ . Additionally, since the LiDAR ray-drop is also related to the characteristics of the LiDAR itself, we introduce a learnable prior $P_{\mathrm{prior}}$ for the ray-drop. The final ray-drop probability map is expressed as: $P = P_{\mathrm{prior}} + (1 - P_{\mathrm{prior}}) P_{\mathrm{gs}}$ , which is supervised by the ground truth mask using a binary cross-entropy loss:
+
+$$
+\mathcal {L} _ {\mathrm {d r o p}} = \operatorname {B C E} (P, P _ {\mathrm {g t}}). \tag {17}
+$$
+
+However, this modeling of ray-drop does not account for factors such as distance to the sensor, potentially leading to unreliable results. To mitigate this issue, following NeRF-LiDAR (Zhang et al., 2024), we utilize a U-Net (Ronneberger et al., 2015) with residual connections to globally refine the ray-drop mask, thereby preserving consistent patterns across regions. Specifically, the U-Net takes the rendered ray-drop probability map $P$ , depth map $R_{\mathrm{mean}}$ , and intensity map $I$ as inputs, and outputs the refined ray-drop mask $P_{\mathrm{unet}}$ . After training the Gaussians, we continue optimizing the U-Net by supervising the refined ray-drop mask using the same loss function as in Equation 17.
+
+# 3.5 LOSS FUNCTION
+
+To achieve accurate geometry and align the 2D splats with surfaces, we integrate the depth distortion loss and normal consistency loss from 2DGS Huang et al. (2024). Additionally, we employ the chamfer distance loss (Fan et al., 2017) to minimize the disparity between our simulated LiDAR point clouds and the ground truth data.
+
+Depth distortion The depth distortion loss aims to reduce the distance between ray-splat intersections, encouraging the 2D Gaussian primitives to concentrate on the surface:
+
+$$
+\mathcal {L} _ {\text {d i s t}} = \sum_ {i, j} \omega_ {i} \omega_ {j} \left(r _ {i} - r _ {j}\right) ^ {2}, \tag {18}
+$$
+
+where $\omega_{i}$ represents the blending weight of the $i$ -th intersection, and $r_i$ denotes the depth of the intersection points.
+
+Table 2: State-of-the-art comparison on KITTI-360 dataset. We color the top results as best and second best.
+
+
Method
Point Cloud
Depth
Intensity
CD↓
F-score↑
RMSE↓
MedAE↓
LPIPS↓
SSIM↑
PSNR↑
RMSE↓
MedAE↓
LPIPS↓
SSIM↑
PSNR↑
LiDARsim (Manivasagam et al., 2020)
3.2228
0.7157
6.9153
0.1279
0.2926
0.6342
21.4608
0.1666
0.0569
0.3276
0.3502
15.5853
NKSR (Huang et al., 2023)
1.8982
0.6855
5.8403
0.0996
0.2752
0.6409
23.0368
0.1742
0.0590
0.3337
0.3517
15.2081
PCGen (Li et al., 2023)
0.4636
0.8023
5.6583
0.2040
0.5391
0.4903
23.1675
0.1970
0.0763
0.5926
0.1351
14.1181
LiDAR-NeRF (Tao et al., 2023)
0.1438
0.9091
4.1753
0.0566
0.2797
0.6568
25.9878
0.1404
0.0443
0.3135
0.3831
17.1549
D-NeRF (Pumarola et al., 2021)
0.1442
0.9128
4.0194
0.0508
0.3061
0.6634
26.2344
0.1369
0.0440
0.3409
0.3748
17.3554
TiNeuVox-B (Fang et al., 2022)
0.1748
0.9059
4.1284
0.0502
0.3427
0.6514
26.0267
0.1363
0.0453
0.4365
0.3457
17.3535
K-Planes (Fridovich-Keil et al., 2023)
0.1302
0.9123
4.1322
0.0539
0.3457
0.6385
26.0236
0.1415
0.0498
0.4081
0.3008
17.0167
LiDAR4D (Zheng et al., 2024)
0.1089
0.9272
3.5256
0.0404
0.1051
0.7647
27.4767
0.1195
0.0327
0.1845
0.5304
18.5561
GS-LiDAR (Ours)
0.1085
0.9231
3.1212
0.0340
0.0902
0.8553
28.4381
0.1161
0.0313
0.1825
0.5914
18.7482
+
+Table 3: State-of-the-art comparison on nuScenes dataset. The notations are consistent with the KITTI-360 Table 2 above.
+
+
Method
Point Cloud
Depth
Intensity
CD↓
F-score↑
RMSE↓
MedAE↓
LPIPS↓
SSIM↑
PSNR↑
RMSE↓
MedAE↓
LPIPS↓
SSIM↑
PSNR↑
LiDARsim Manivasagam et al. (2020)
12.1383
0.6512
10.5539
0.3572
0.1871
0.5653
17.7841
0.0659
0.0115
0.1160
0.5170
23.7791
NKSIR Huang et al. (2023)
11.4910
0.6178
9.3731
0.5763
0.2111
0.5637
18.7774
0.0680
0.0119
0.1290
0.5031
23.4905
PCGen Li et al. (2023)
2.1998
0.6341
8.8364
0.4011
0.1792
0.5440
19.2799
0.0768
0.0147
0.1308
0.4410
22.4428
LiDAR-NeRF Tao et al. (2023)
0.3225
0.8576
7.1566
0.0338
0.0702
0.7188
21.2129
0.0467
0.0076
0.0483
0.7264
26.9927
D-NeRF Pumarola et al. (2021)
0.3296
0.8513
7.1089
0.0368
0.0789
0.7130
21.2594
0.0467
0.0080
0.0492
0.7180
26.9951
TiNeuVox-B Fang et al. (2022)
0.3920
0.8627
7.2093
0.0290
0.1549
0.6873
21.0932
0.0462
0.0080
0.1294
0.7107
26.8620
K-Planes Fridovich-Keil et al. (2023)
0.2982
0.8887
6.7960
0.0209
0.1218
0.7258
21.6203
0.0438
0.0076
0.1127
0.7364
27.4227
LiDAR4D (Zheng et al., 2024)
0.2443
0.8915
6.7831
0.0258
0.0569
0.7396
21.7189
0.0426
0.0071
0.0459
0.7498
27.7977
GS-LiDAR (Ours)
0.2382
0.9055
5.8925
0.0198
0.0708
0.8394
22.2482
0.0415
0.0067
0.0627
0.7291
27.7420
+
+Normal consistency Since our approach is based on 2D Gaussian primitives, it is crucial to ensure that all 2D splats are locally aligned with the actual surfaces. To achieve this, we align the rendered normal map $N$ with the pseudo-normal map $\tilde{N}$ , which is computed from the gradients of the depth maps:
+
+$$
+\mathcal {L} _ {\mathrm {n}} = 1 - \boldsymbol {N} ^ {\top} \tilde {\boldsymbol {N}}. \tag {19}
+$$
+
+Chamfer distance loss We also incorporate chamfer distance to introduce explicit geometric constraints from the input LiDAR point clouds. By back-projecting both the rendered and ground truth range images into 3D point clouds, $S_{\mathrm{render}}$ and $S_{\mathrm{gt}}$ , respectively, we minimize the distance between the two point clouds using the chamfer distance (Fan et al., 2017):
+
+$$
+\mathcal {L} _ {\mathrm {c h}} = \mathrm {C D} \left(\boldsymbol {S} _ {\text {r e n d e r}}, \boldsymbol {S} _ {\mathrm {g t}}\right). \tag {20}
+$$
+
+The overall loss function is defined as:
+
+$$
+\mathcal {L} = \lambda_ {\mathrm {d}} \mathcal {L} _ {\mathrm {d}} + \lambda_ {\text {i n t}} \mathcal {L} _ {\text {i n t}} + \lambda_ {\text {d r o p}} \mathcal {L} _ {\text {d r o p}} + \lambda_ {\text {d i s t}} \mathcal {L} _ {\text {d i s t}} + \lambda_ {\mathrm {n}} \mathcal {L} _ {\mathrm {n}} + \lambda_ {\text {c h}} \mathcal {L} _ {\text {c h}}. \tag {21}
+$$
+
+# 4 EXPERIMENT
+
+# 4.1 EXPERIMENT SETUP
+
+Datasets We conduct extensive experiments on both dynamic and static scenes using the KITTI-360 (Liao et al., 2022) and nuScenes (Caesar et al., 2020) datasets, with the dynamic scenes featuring a significant number of moving vehicles. The KITTI-360 dataset employs a 64-beam LiDAR with a vertical field of view (FOV) of 26.4 degrees and an acquisition frequency of $10\mathrm{Hz}$ . Following LiDAR4D (Zheng et al., 2024), we select 51 consecutive frames as a single scene and hold out 4 samples at 10-frame intervals for novel view synthesis (NVS) evaluation. For the nuScenes dataset, the LiDAR system uses 32 beams with a 40-degree vertical FOV and a $20\mathrm{Hz}$ acquisition frequency. To ensure consistency with KITTI-360, we maintain a sampling frequency of $10\mathrm{Hz}$ . We also provide the results on the Waymo (Sun et al., 2020) dataset in Appendix A.2.
+
+Competitors We evaluate our method alongside recent data-driven approaches LiDARsim (Manivasagam et al., 2020) and PCGen (Li et al., 2023). Additionally, we compare our results with the perscense optimized reconstruction method NKSR (Huang et al., 2023), LiDAR-NeRF (Tao et al., 2023) and the state-of-the-art method, LiDAR4D (Zheng et al., 2024). We also include competitive dynamic neural radiance field methods, such as D-NeRF (Pumarola et al., 2021), K-Planes (Fridovich-Keil et al., 2023), and TiNeuVox (Fang et al., 2022), for comparison.
+
+
+Figure 6: Comparison of the rendered depth map with competitors.
+
+
+Figure 7: Comparison of the rendered intensity map with competitors.
+
+Metrics We employ a comprehensive set of evaluation metrics for assessing point cloud, depth, and intensity measurements. Chamfer distance (Fan et al., 2017) is used to quantify the 3D geometric discrepancy between the generated and ground-truth point clouds based on nearest neighbors. Additionally, we report the F-score with a $5\mathrm{cm}$ error threshold. For pixel-level error analysis of projected LiDAR range maps, we introduce Root Mean Square Error (RMSE) and Median Absolute Error (MedAE). Furthermore, we utilize LPIPS (Zhang et al., 2018), SSIM (Wang et al., 2004), and PSNR to assess image-level error on depth and intensity.
+
+Implementation details We randomly sample $1 \times 10^{6}$ LiDAR points for point initialization. For the loss function and regularization terms, we use the following coefficients: $\lambda_{\mathrm{d}} = 10$ , $\lambda_{\mathrm{int}} = 0.05$ , $\lambda_{\mathrm{drop}} = 0.05$ , $\lambda_{\mathrm{dist}} = 0.1$ , $\lambda_{\mathrm{n}} = 0.1$ , and $\lambda_{\mathrm{ch}} = 0.1$ . All experiments are conducted on a single NVIDIA RTX A6000 GPU, with a total of 30,000 iterations, taking approximately 1.5 hours to produce the final results. The rendering speed reaches up to 11 frames per second (FPS).
+
+# 4.2 EVALUATION ON STATIC SCENES
+
+Table 1 provides the quantitative results for static scenes in KITTI-360 dataset across all methods. GS-LiDAR outperforms the competitors on most metrics. Notably, there is a $5.3\%$ reduction in the Chamfer distance of the simulated point cloud, a $10.7\%$ reduction in the RMSE of simulated
+
+Table 4: Ablation studies on various components of GS-LiDAR.
+
+
Method
Point Cloud
Depth
Intensity
CD↓
F-score↑
RMSE↓
MedAE↓
LPIPS↓
SSIM↑
PSNR↑
RMSE↓
MedAE↓
LPIPS↓
SSIM↑
PSNR↑
GS-LiDAR
0.1085
0.9231
3.1212
0.0340
0.0902
0.8553
28.4381
0.1161
0.0313
0.1825
0.5914
18.7482
w/o ray-splat intersection
3.1605
0.5091
6.6871
0.2367
0.4828
0.5754
21.5918
0.2320
0.1170
0.5166
0.1976
12.7069
w/o periodic vibration
0.1333
0.9100
3.1738
0.0359
0.0946
0.8577
28.2876
0.1162
0.0342
0.2166
0.5849
18.7288
w/o median depth loss
0.1254
0.9125
3.1414
0.0347
0.0941
0.8574
28.3567
0.1163
0.0313
0.1831
0.5902
18.7262
w/o depth distortion loss
0.1237
0.9229
3.2016
0.0341
0.0908
0.8567
28.2854
0.1176
0.0314
0.1842
0.5833
18.7078
w/o normal consistency loss
0.1158
0.9230
3.1993
0.0344
0.0908
0.8556
28.3852
0.1165
0.0314
0.1850
0.5887
18.7085
w/o chamfer distance loss
0.1152
0.9227
3.1354
0.0341
0.0907
0.8559
28.3892
0.1167
0.0341
0.1811
0.5911
18.7383
w/o ray-drop refinement
0.1121
0.9223
4.0791
0.0424
0.1952
0.7433
26.1083
0.1346
0.0384
0.2477
0.4569
17.4541
+
+depth, and a $9.8\%$ reduction in the RMSE of simulated intensity. As shown in Figure 5, GS-LiDAR produces a more cohesive LiDAR point cloud, which can be attributed to the accurate range maps generated by the proposed panoramic Gaussian splatting technique.
+
+
+Figure 8: Comparison of w/ and w/o ray-splat intersection. A more detailed discussion is provided in Appendix A.1.
+
+# 4.3 EVALUATION ON DYNAMIC SCENES
+
+To further validate the effectiveness of GS-LiDAR, we conduct LiDAR synthesis evaluations on dynamic scenes from the KITTI-360 and nuScenes datasets. For the KITTI-360 dataset, as shown in Table 2, our method demonstrates superior performance, achieving a $0.3\%$ reduction in chamfer distance for simulated point cloud, a $11.4\%$ reduction in RMSE for simulated depth, and a $2.8\%$ reduction in RMSE for simulated intensity. As illustrated in Figure 6 and Figure 7, GS-LiDAR achieves significantly better visual quality in simulated depth and intensity maps compared to competitors. This improvement is primarily due to the use of 2D Gaussian primitives with periodic vibration properties, enabling precise modeling of both static and dynamic geometries. For the nuScenes dataset, as shown in Table 3, GS-LiDAR also showcases notable performance, with a $2.5\%$ reduction in chamfer distance for simulated point cloud, a $13.1\%$ reduction in RMSE for simulated depth, and a $2.6\%$ reduction in RMSE for simulated intensity.
+
+# 4.4 ABLATION STUDY
+
+We provide quantitative ablation studies on various components of GS-LiDAR in Table 4. As shown in Figure 8, we find that the use of ray-splat intersection enhances the capability of GS-LiDAR in modeling the surface of the scene, and a more detailed discussion is provided in Appendix A.1. For the "w/o ray-splat intersection" case, we implement a basic 3D Gaussian splatting approach by adapting the projection calculation method specifically for panoramic maps. The integration of periodic vibration properties further improves GS-LiDAR's capability in handling dynamic elements. Regularization terms, including median depth loss, depth distortion loss, and chamfer distance loss, contribute to the improved quality of the simulated LiDAR point clouds. Additionally, the ray-drop refinement technique improves the accuracy of the ray-drop mask, resulting in substantial gains in the metrics for simulated depth and intensity.
+
+# 5 CONCLUSION
+
+We present GS-LiDAR, a novel framework designed to generate realistic LiDAR point clouds. To uniformly model the accurate surface of various elements in driving scenarios, we employ 2D Gaussian primitives with periodic vibration properties. Furthermore, we propose a novel panoramic Gaussian splatting technique with explicit ray-splat intersection for fast and efficient rendering of panoramic depth maps. By incorporating intensity and ray-drop SH coefficients into the Gaussian primitives, we enhance the realism of the rendered point clouds, making them more closely resemble actual LiDAR data. Our method significantly surpasses previous NeRF-based approaches in both computational speed and simulation quality on the KITTI-360 and nuScenes datasets.
+
+# ACKNOWLEDGMENT
+
+This work was supported in part by National Natural Science Foundation of China (Grant No. 62376060).
+
+# REFERENCES
+
+Jonathan T. Barron, Ben Mildenhall, Matthew Tancik, Peter Hedman, Ricardo Martin-Brualla, and Pratul P. Srinivasan. Mip-nerf: A multiscale representation for anti-aliasing neural radiance fields. In ICCV, 2021.
+Jonathan T. Barron, Ben Mildenhall, Dor Verbin, Pratul P. Srinivasan, and Peter Hedman. Mip-nerf 360: Unbounded anti-aliased neural radiance fields. In CVPR, 2022.
+Jonathan T Barron, Ben Mildenhall, Dor Verbin, Pratul P Srinivasan, and Peter Hedman. Zip-nerf: Anti-aliased grid-based neural radiance fields. In ICCV, 2023.
+Holger Caesar, Varun Bankiti, Alex H Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. nuscenes: A multimodal dataset for autonomous driving. In CVPR, 2020.
+Anpei Chen, Zexiang Xu, Andreas Geiger, Jingyi Yu, and Hao Su. Tensorf: Tensorial radiance fields. In ECCV, 2022.
+Yurui Chen, Chun Gu, Junzhe Jiang, Xiatian Zhu, and Li Zhang. Periodic vibration gaussian: Dynamic urban scene reconstruction and real-time rendering. arXiv preprint, 2023a.
+Zhang Chen, Zhong Li, Liangchen Song, Lele Chen, Jingyi Yu, Junsong Yuan, and Yi Xu. Neurbf: A neural fields representation with adaptive radial basis functions. In ICCV, 2023b.
+Zhiqin Chen, Thomas Funkhouser, Peter Hedman, and Andrea Tagliasacchi. Mobilenerf: Exploiting the polygon rasterization pipeline for efficient neural field rendering on mobile architectures. In CVPR, 2023c.
+Alexey Dosovitskiy, German Ros, Felipe Codevilla, Antonio Lopez, and Vladlen Koltun. Carla: An open urban driving simulator. In CoRL, 2017.
+Haoqiang Fan, Hao Su, and Leonidas J Guibas. A point set generation network for 3d object reconstruction from a single image. In CVPR, 2017.
+Jiemin Fang, Taoran Yi, Xinggang Wang, Lingxi Xie, Xiaopeng Zhang, Wenyu Liu, Matthias Nießner, and Qi Tian. Fast dynamic radiance fields with time-aware neural voxels. In SIGGRAPH Asia, 2022.
+Sara Fridovich-Keil, Alex Yu, Matthew Tancik, Qinhong Chen, Benjamin Recht, and Angjoo Kanazawa. Plenoxels: Radiance fields without neural networks. In CVPR, 2022.
+Sara Fridovich-Keil, Giacomo Meanti, Frederik Rahbaek Warburg, Benjamin Recht, and Angjoo Kanazawa. K-planes: Explicit radiance fields in space, time, and appearance. In CVPR, 2023.
+Jian Gao, Chun Gu, Youtian Lin, Hao Zhu, Xun Cao, Li Zhang, and Yao Yao. Relightable 3d gaussian: Real-time point cloud relighting with brdf decomposition and ray tracing. In ECCV, 2024.
+Benoit Guillard, Sai Vemprala, Jayesh K Gupta, Ondrej Miksik, Vibhav Vineet, Pascal Fua, and Ashish Kapoor. Learning to simulate realistic lidars. In IROS, 2022.
+Peter Hedman, Pratul P Srinivasan, Ben Mildenhall, Jonathan T Barron, and Paul Debevec. Baking neural radiance fields for real-time view synthesis. In ICCV, 2021.
+Wenbo Hu, Yuling Wang, Lin Ma, Bangbang Yang, Lin Gao, Xiao Liu, and Yuewen Ma. Tri-miprf: Tri-mip representation for efficient anti-aliasing neural radiance fields. In ICCV, 2023.
+
+Binbin Huang, Zehao Yu, Anpei Chen, Andreas Geiger, and Shenghua Gao. 2d gaussian splatting for geometrically accurate radiance fields. In ACM SIGGRAPH, 2024.
+Jiahui Huang, Zan Gojcic, Matan Atzmon, Or Litany, Sanja Fidler, and Francis Williams. Neural kernel surface reconstruction. In CVPR, 2023.
+Bernhard Kerbl, Georgios Kopanas, Thomas Leimkuhler, and George Drettakis. 3d gaussian splatting for real-time radiance field rendering. ACM TOG, 2023.
+Nathan Koenig and Andrew Howard. Design and use paradigms for gazebo, an open-source multirobot simulator. In IROS, 2004.
+Chenqi Li, Yuan Ren, and Bingbing Liu. Pcgen: Point cloud generator for lidar simulation. In ICRA, 2023.
+Yiyi Liao, Jun Xie, and Andreas Geiger. Kitti-360: A novel dataset and benchmarks for urban scene understanding in 2d and 3d. IEEE TPAMI, 2022.
+Lingjie Liu, Jiatao Gu, Kyaw Zaw Lin, Tat-Seng Chua, and Christian Theobalt. Neural sparse voxel fields. NeurIPS, 2020.
+Sivabalan Manivasagam, Shenlong Wang, Kelvin Wong, Wenyuan Zeng, Mikita Sazanovich, Shuhan Tan, Bin Yang, Wei-Chiu Ma, and Raquel Urtasun. Lidarsim: Realistic lidar simulation by leveraging the real world. In CVPR, 2020.
+Ben Mildenhall, Pratul P Srinivasan, Matthew Tancik, Jonathan T Barron, Ravi Ramamoorthi, and Ren Ng. Nerf: Representing scenes as neural radiance fields for view synthesis. In ECCV, 2020.
+Thomas Müller, Alex Evans, Christoph Schied, and Alexander Keller. Instant neural graphics primitives with a multiresolution hash encoding. ACM TOG, 2022.
+Albert Pumarola, Enric Corona, Gerard Pons-Moll, and Francesc Moreno-Noguer. D-nerf: Neural radiance fields for dynamic scenes. In CVPR, 2021.
+Christian Reiser, Songyou Peng, Yiyi Liao, and Andreas Geiger. Kilonerf: Speeding up neural radiance fields with thousands of tiny mlps. In ICCV, 2021.
+Christian Reiser, Rick Szeliski, Dor Verbin, Pratul Srinivasan, Ben Mildenhall, Andreas Geiger, Jon Barron, and Peter Hedman. Merf: Memory-efficient radiance fields for real-time view synthesis in unbounded scenes. ACM TOG, 2023.
+Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In MICCAI, 2015.
+Shital Shah, Debadeepta Dey, Chris Lovett, and Ashish Kapoor. Airsim: High-fidelity visual and physical simulation for autonomous vehicles. In Field and Service Robotics: Results of the 11th International Conference, 2018.
+Cheng Sun, Min Sun, and Hwann-Tzong Chen. Direct voxel grid optimization: Super-fast convergence for radiance fields reconstruction. In CVPR, 2022.
+Pei Sun, Henrik Kretzschmar, Xerxes Dotiwalla, Aurelien Chouard, Vijaysai Patnaik, Paul Tsui, James Guo, Yin Zhou, Yuning Chai, Benjamin Caine, Vijay Vasudevan, Wei Han, Jiquan Ngiam, Hang Zhao, Aleksei Timofeev, Scott Ettinger, Maxim Krivokon, Amy Gao, Aditya Joshi, Yu Zhang, Jonathon Shlens, Zhifeng Chen, and Dragomir Anguelov. Scalability in perception for autonomous driving: Waymo open dataset. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020.
+Tang Tao, Longfei Gao, Guangrun Wang, Peng Chen, Dayang Hao, Xiaodan Liang, Mathieu Salzmann, and Kaicheng Yu. Lidar-nerf: Novel lidar view synthesis via neural radiance fields. arXiv preprint, 2023.
+Tang Tao, Guangrun Wang, Yixing Lao, Peng Chen, Jie Liu, Liang Lin, Kaicheng Yu, and Xiaodan Liang. Alignmif: Geometry-aligned multimodal implicit field for lidar-camera joint synthesis. In CVPR, 2024.
+
+Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE TIP, 2004.
+Hanfeng Wu, Xingxing Zuo, Stefan Leutenegger, Or Litany, Konrad Schindler, and Shengyu Huang. Dynamic lidar re-simulation using compositional neural fields. In CVPR, 2024.
+Tianyi Xie, Zeshun Zong, Yuxing Qiu, Xuan Li, Yutao Feng, Yin Yang, and Chenfanfu Jiang. Phys-gaussian: Physics-integrated 3d gaussians for generative dynamics. arXiv preprint, 2023a.
+Ziyang Xie, Junge Zhang, Wenye Li, Feihu Zhang, and Li Zhang. S-nerf: Neural radiance fields for street views. In ICLR, 2023b.
+Weiyi Xue, Zehan Zheng, Fan Lu, Haiyun Wei, Guang Chen, and Changjun Jiang. Geonlf: Geometry guided pose-free neural lidar fields. arXiv preprint, 2024.
+Yunzhi Yan, Haotong Lin, Chenxu Zhou, Weijie Wang, Haiyang Sun, Kun Zhan, Xianpeng Lang, Xiaowei Zhou, and Sida Peng. Street gaussians for modeling dynamic urban scenes. In ECCV, 2024.
+Jiawei Yang, Boris Ivanovic, Or Litany, Xinshuo Weng, Seung Wook Kim, Boyi Li, Tong Che, Danfei Xu, Sanja Fidler, Marco Pavone, et al. Emernerf: Emergent spatial-temporal scene decomposition via self-supervision. In ICLR, 2024a.
+Zeyu Yang, Hongye Yang, Zijie Pan, Xiatian Zhu, and Li Zhang. Real-time photorealistic dynamic scene representation and rendering with 4d gaussian splatting. In ICLR, 2024b.
+Lior Yariv, Peter Hedman, Christian Reiser, Dor Verbin, Pratul P. Srinivasan, Richard Szeliski, Jonathan T. Barron, and Ben Mildenhall. Bakedsdf: Meshing neural sdfs for real-time view synthesis. arXiv preprint, 2023.
+Alex Yu, Ruilong Li, Matthew Tancik, Hao Li, Ren Ng, and Angjoo Kanazawa. *PlenOctrees for real-time rendering of neural radiance fields*. In ICCV, 2021.
+Junge Zhang, Feihu Zhang, Shaochen Kuang, and Li Zhang. Nerf-lidar: Generating realistic lidar point clouds with neural radiance fields. In AAAI, 2024.
+Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In CVPR, 2018.
+Zehan Zheng, Fan Lu, Weiyi Xue, Guang Chen, and Changjun Jiang. Lidar4d: Dynamic neural fields for novel space-time view lidar synthesis. In CVPR, 2024.
+Wojciech Zielonka, Timur Bagautdinov, Shunsuke Saito, Michael Zollhöfer, Justus Thies, and Javier Romero. Drivable 3d gaussian avatars. arXiv preprint, 2023.
+
+# A APPENDIX
+
+# A.1 RAY-SPLAT INTERSECTION
+
+Although 3DGS performs well in camera image rendering, it is not suitable for panoramic LiDAR rendering. This limitation arises from the complexity of transforming 3D spatial points into LiDAR range map, which makes it challenging for the Jacobian matrix of the transformation to accurately approximate the effects of such a transformation. Given a point $(x,y,z)$ in the camera space, its corresponding radian angles $(\phi ,\theta)$ can be calculated as:
+
+$$
+\binom {\phi} {\theta} = \binom {a t a n 2 (x, z)} {a t a n 2 \left(\sqrt {x ^ {2} + z ^ {2}}, - y\right)} \tag {22}
+$$
+
+By combining this with Equation 8 from the paper, we can derive the projection of this point onto the LiDAR range map, resulting in its pixel coordinates $(\xi ,\eta)$ as:
+
+$$
+\binom {\xi} {\eta} = \left( \begin{array}{c} \frac {W}{2 \pi} a t a n 2 (x, z) + \frac {W}{2} \\ H \frac {a t a n 2 (\sqrt {x ^ {2} + z ^ {2}} , - y) - \mathrm {V F O V} _ {\operatorname* {m i n}}}{(\mathrm {V F O V} _ {\operatorname* {m a x}} - \mathrm {V F O V} _ {\operatorname* {m i n}})} \end{array} \right) \tag {23}
+$$
+
+Thus, the Jacobian matrix can be computed as follows:
+
+$$
+J = \left( \begin{array}{c c c} \tilde {W} \frac {z}{x ^ {2} + z ^ {2}} & 0 & - \tilde {W} \frac {x}{x ^ {2} + z ^ {2}} \\ - \tilde {H} \frac {x y}{\sqrt {x ^ {2} + z ^ {2}} \left(x ^ {2} + y ^ {2} + z ^ {2}\right)} & \tilde {H} \frac {\sqrt {x ^ {2} + z ^ {2}}}{\left(x ^ {2} + y ^ {2} + z ^ {2}\right)} & - \tilde {H} \frac {y z}{\sqrt {x ^ {2} + z ^ {2}} \left(x ^ {2} + y ^ {2} + z ^ {2}\right)} \end{array} \right) \tag {24}
+$$
+
+where $\tilde{W} = \frac{W}{2\pi}$ and $\tilde{H} = \frac{H}{\mathrm{VFOV}_{\mathrm{max}} - \mathrm{VFOV}_{\mathrm{min}}}$ .
+
+We tile the plane with 2D and 3D Gaussian primitives of different colors and render their color and depth. As illustrated in Figure 9, we can observe that for 3D Gaussian primitives, due to the poor approximation of the Jacobian for the projection transformation, the originally tightly arranged points become scattered, which also leads to the discontinuity in depth shown in Figure 8 of the paper. In contrast, the 2D Gaussian primitives, being based on ray intersection without approximation, exhibit the desired effect.
+
+
+Figure 9: Ray-splat intersection v.s. 3D Gaussian splatting.
+
+# A.2 EXPERIMENTS ON WAYMO DATASET
+
+We additionally conducted experiments on sequences selected by PVG (Chen et al., 2023a) from the Waymo (Sun et al., 2020) dataset. Since methods like LiDAR4D (Zheng et al., 2024) have not been implemented on the Waymo dataset, we only report our own results in Table 5. The experimental results are consistent with those of KITTI-360 and nuScenes across the evaluation metrics, showing the scalability and generalization ability of our method. We have also additionally visualized LiDAR point clouds from the Waymo dataset in Figure 10 and Figure 11, showcasing the generalization ability of our approach again.
+
+Table 5: Metrics on Waymo dataset.
+
+
Method
Point Cloud
Depth
Intensity
CD↓
F-score↑
RMSE↓
MedAE↓
LPIPS↓
SSIM↑
PSNR↑
RMSE↓
MedAE↓
LPIPS↓
SSIM↑
PSNR↑
GS-LiDAR (Ours)
0.2382
0.9055
5.8925
0.0198
0.0708
0.8394
22.2482
0.0415
0.0067
0.0627
0.7291
27.7420
+
+
+Figure 10: Comparison of the rendered depth and intensity map with ground truth. The first two rows depict the depth maps, while the subsequent two rows illustrate the intensity maps.
+
+
+Figure 11: The visualization of LiDAR point clouds in three-dimensional space.
\ No newline at end of file
diff --git a/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/images.zip b/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..a80b99726f0f01e01e1fc61c57767ba51db0b91b
--- /dev/null
+++ b/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:05c8eacdc868ff6ce1ced4db05b41c6bcfe6a313492293f0b5ad02ccfa411b77
+size 1227029
diff --git a/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/layout.json b/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..2fbb2c023acb80ea3f4c4a5695814386e751cf1b
--- /dev/null
+++ b/ICLR/2025/GS-LiDAR_ Generating Realistic LiDAR Point Clouds with Panoramic Gaussian Splatting/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:22a5c7f99b0cf59e5c1e7217675f1c6af20bf1fea2c42366e70d21312c0285ff
+size 437661
diff --git a/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/8e46dd6f-4224-49b5-b204-55313fc6a887_content_list.json b/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/8e46dd6f-4224-49b5-b204-55313fc6a887_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a80a18b65d74b976444e9618f23ffac720a55641
--- /dev/null
+++ b/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/8e46dd6f-4224-49b5-b204-55313fc6a887_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:36de583e9e6d0ad16f5eccf7dfed35ff18ea1243fffd59a5ec6320ff1c8df08b
+size 271801
diff --git a/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/8e46dd6f-4224-49b5-b204-55313fc6a887_model.json b/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/8e46dd6f-4224-49b5-b204-55313fc6a887_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..be6201b01d287d0c71ea4bc26fee683e17887c22
--- /dev/null
+++ b/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/8e46dd6f-4224-49b5-b204-55313fc6a887_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:98d4f0de8d48fc0515bb0e42fea49ed889a29729a0c739f8ae194bbf2bdb37c0
+size 321421
diff --git a/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/8e46dd6f-4224-49b5-b204-55313fc6a887_origin.pdf b/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/8e46dd6f-4224-49b5-b204-55313fc6a887_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f9c8bb91d4ab553fba93d869af7b259323ac648a
--- /dev/null
+++ b/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/8e46dd6f-4224-49b5-b204-55313fc6a887_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9f5d82f78ce1f960e153a71f55fd644aaca9a08cca9cf2998211c8da5dc6f2c6
+size 37164278
diff --git a/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/full.md b/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..402ffb8b7aed7e69ccbf66d0fcb0fe56b2dec2c6
--- /dev/null
+++ b/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/full.md
@@ -0,0 +1,1190 @@
+# GSBA $^{\text{K}}$ : top-K GEOMETRIC SCORE-BASED BLACK-BOX ATTACK
+
+Md Farhamdur Reza $^{1*}$ ; Richeng Jin $^{2*}$ ; Tianfu Wu $^{1}$ & Huaiyu Dai $^{1}$
+
+$^{1}$ NC State University $^{2}$ Zhejiang University
+
+{mreza2, tianfu_wu, hdai}@ncsu.edu richengjin@zju.edu.cn
+
+# ABSTRACT
+
+Existing score-based adversarial attacks mainly focus on crafting top-1 adversarial examples against classifiers with single-label classification. Their attack success rate and query efficiency are often less than satisfactory, particularly under small perturbation requirements; moreover, the vulnerability of classifiers with multi-label learning is yet to be studied. In this paper, we propose a comprehensive surrogate free score-based attack, named geometric score-based black-box attack (GSBA $^{\text{K}}$ ), to craft adversarial examples in an aggressive top-K setting for both untargeted and targeted attacks, where the goal is to change the top-K predictions of the target classifier. We introduce novel gradient-based methods to find a good initial boundary point to attack. Our iterative method employs novel gradient estimation techniques, particularly effective in top-K setting, on the decision boundary to effectively exploit the geometry of the decision boundary. Additionally, GSBA $^{\text{K}}$ can be used to attack against classifiers with top-K multi-label learning. Extensive experimental results on ImageNet and PASCAL VOC datasets validate the effectiveness of GSBA $^{\text{K}}$ in crafting top-K adversarial examples.
+
+# 1 INTRODUCTION
+
+Deep neural networks (DNNs) are vulnerable to adversarial examples (Goodfellow et al., 2014; Moosavi-Dezfooli et al., 2016; Jia et al., 2022). In white-box attacks (Szegedy et al., 2013; Carlini & Wagner, 2017; Moosavi-Dezfooli et al., 2016; Madry et al., 2017), an adversary possesses complete access to the internal structure and parameters of the target DNN, whereas in black-box attacks, this information is not available, making them more practical in real-world scenarios. Black-box attacks can be of two types: transfer-based (Dong et al., 2018; Wang & He, 2021; Wang et al., 2024; Li et al., 2020c; Wei et al., 2023) and query-based, where the former crafts adversarial examples exploiting a surrogate model, and the latter makes queries for the outputs from the target classifier to craft adversarial examples intended to deceive it. Within query-based black-box attacks, two subcategories exist: decision-based (Chen et al., 2020; Ma et al., 2021; Reza et al., 2023) and score-based (Guo et al., 2019a; Ilyas et al., 2018b;a; Andriushchenko et al., 2020) attacks. In the former, the adversary has access to the top-1 predicted label from the target model, while in the latter, the adversary can retrieve the full set of prediction probabilities for all classes.
+
+Numerous endeavors have been undertaken towards effective score-based black-box attacks (Chen et al., 2017; Bhagoji et al., 2018; Ilyas et al., 2018a; Guo et al., 2019a) against classifiers with single-label multi-class classification, where the classifiers' goal is to predict the top-1 classification label corresponding to an input. Score-based adversarial attacks can be either gradient-based (Ilyas et al., 2018a;b; Chen et al., 2017; Bhagoji et al., 2018), or gradient-free (Andriushchenko et al., 2020; Guo et al., 2019a; Li et al., 2020b). Gradient-based methods rely on small perturbations in the gradient direction to steer the input towards the adversarial region, while gradient-free methods use some predefined random directions for the same purpose. While Square Attack (Andriushchenko et al., 2020), in score-based setting, offers state-of-the-art performance, it suffers from low success rates and query inefficiency, particularly when constrained by small perturbation thresholds.
+
+In recent years, leveraging the geometry of the decision boundary has proven to enhance the efficiency and effectiveness of decision-based black-box attacks (Liu et al., 2019; Rahmati et al., 2020; Reza et al., 2023). Geometric decision-based attacks, starting from a random point on the decision boundary, iteratively refine the adversarial example exploring this boundary. However, such efforts
+
+are largely lacking for score-based attacks. A simple comparison between the usual approach of existing score-based attacks and the state-of-the-art decision-based attack CGBA (Reza et al., 2023) in finding adversarial examples considering a linear boundary in a 2D space is shown in Fig. 1. Considering imperfect gradient estimation, the geometric-based attack CGBA finds a better adversarial example along a semicircular path, starting from a random boundary point $\boldsymbol{x}_{b_0}$ , by exploring the decision boundary. This raises an important open question: can the geometric properties of high-dimensional image space boundaries be harnessed to advance the field of score-based attacks?
+
+Traditionally, adversarial attacks have predominantly focused on generating top-1 adversarial examples against single-label multi-class classifiers for untargeted and/or targeted attacks, wherein a well-crafted adversarial example replaces the single true label of the input image with an arbitrary label for untargeted attacks and a specific target label for targeted attacks. However, in numerous real-world applications such as web search engines, image annotation, recommendation systems, and computer vision APIs like Google Cloud Vision, Microsoft Azure Computer Vision, Amazon Rekognition, and IBM Watson Visual Recognition, the top-K predictions provide valuable information about the input. Thus, recently, a couple of white-box attacks (Zhang & Wu, 2020; Hu et al., 2021; Tursynbek et al., 2022; Paniagua et al., 2023) have been proposed in an aggressive top-K setting where the top-K prediction labels of an input are replaced by an arbitrary set of mutually exclusive wrong labels for untargeted attacks (Tursynbek et al., 2022), and by a
+
+
+(a)
+
+
+(b)
+Figure 1: (a) Traditional score-based attack approach: adversarial example $\pmb{x}_{adv}$ is generated by iteratively adding perturbations in the direction of the estimated gradient or random directions with source $\pmb{x}_s$ . Perturbations are weighted based on the increase in confidence toward the adversarial region. (b) Geometric-based approach CGBA (Reza et al., 2023) in finding a better adversarial example exploring the decision boundary.
+
+given set of target labels for targeted attacks (Zhang & Wu, 2020; Paniagua et al., 2023). Among these attacks, $\mathrm{T}_k\mathrm{ML}$ AP (Hu et al., 2021) targets classifiers with multi-label learning, where the classifiers' goal is to learn multiple meaningful true labels from an image. These white-box attacks, having full access to the target classifier, can calculate the true gradient to navigate towards the adversarial region and craft top- $K$ adversarial examples with high attack success rate (ASR), demonstrating the underlying vulnerability of DNNs. However, this task becomes much more challenging in the more practical black-box setting with only predicted probabilities of all classes are available, as we lack accurate intermediate gradients for navigation in the high-dimensional continuous space. In this case, identifying an initial boundary point satisfying the top- $K$ target-label constraints may be akin to finding a needle in an ocean. On top of that, we need to further refine the obtained adversarial example to meet the perturbation threshold constraint across the highly irregular adversarial region.
+
+To address the aforementioned challenges, we introduce a comprehensive query-efficient geometric score-based top-K black-box attack, $\mathrm{GSBA}^{\mathrm{K}}$ , that employs distinct approaches to approximate gradients by querying the target classifier, aiming to efficiently identify good initial boundary points for both untargeted and targeted attacks rather than starting from a random boundary point as done by geometric decision-based attacks. However, the obtained initial boundary points, utilizing the estimated gradient direction, often significantly deviate from the optimal. Thus, we further
+
+
+Figure 2: Crafted top-2 adversarial examples against Inception-V3 (Szegedy et al., 2016) with top-2 multi-label learning on the PASCAL VOC 2012 dataset (Everingham et al., 2015) by considering the best and worst target-label sets (Sec. 5.2). The prediction order based on confidence scores of the benign input is: [person, dog, cow, potted plant, horse, chair, car, dining table, bottle, sofa, cat, tv/monitor, bicycle, sheep, boat, motor-bike, bird, bus, train, aeroplane].
+
+introduce more accurate gradient estimation techniques at boundary points by leveraging the prediction probabilities. Guided by the estimated gradient on the decision boundary, $\mathrm{GSBA}^{\mathrm{K}}$ conducts a boundary point search along a semicircular trajectory, motivated by the state-of-the-art (SOTA) decision-based attack CGBA (Reza et al., 2023), to explore the decision boundary and further optimize the perturbation. $\mathrm{GSBA}^{\mathrm{K}}$ is designed to perform attacks not only on traditional single-label multi-class classification problems but also on classifiers with top- $K$ multi-label learning capabilities; see Fig. 2 for crafted top-2 adversarial examples. The contributions of this paper are summarized as follows:
+
+- We propose $\mathrm{GSBA}^{\mathrm{K}}$ , a comprehensive and query-efficient geometric score-based attack in an aggressive top- $K$ setting. $\mathrm{GSBA}^{\mathrm{K}}$ incorporates novel gradient estimation techniques to locate a better initial boundary point and leverages the geometric properties of decision boundaries to enhance both query efficiency and attack versatility.
+- In the difficult top- $K$ targeted attack, our gradient estimators assess the impact of each query on the individual target classes and assign adaptive weights based on their significance.
+- We adapt the SOTA score-based Square Attack (SA) (Andriushchenko et al., 2020) to the top-K setting to serve as a baseline. Comprehensive experiments on ImageNet (Deng et al., 2009) and PASCAL VOC 2012 (Everingham et al., 2015) datasets against popular classifiers underscore the efficacy of $\mathrm{GSBA}^{\mathrm{K}}$ in handling both top-1 and complicated top-K, including multi-label learning scenario, across untargeted and targeted settings.
+
+# 2 RELATED WORK
+
+Black-box adversarial attacks. The top-1 classification label is the sole piece of information available to an adversary in decision-based attacks. These attacks can be either gradient-free (Brendel et al., 2018; Brunner et al., 2019; Li et al., 2021; Dong et al., 2019; Maho et al., 2021) or they can involve estimating the gradient on the decision boundary (Chen et al., 2020; Li et al., 2020a; Rahmati et al., 2020; Reza et al., 2023). Based on the use of the geometric properties of the decision boundary, decision-based adversarial attacks can also be categorized as geometric decision-based adversarial attacks (Rahmati et al., 2020; Maho et al., 2021; Ma et al., 2021; Wang et al., 2022; Reza et al., 2023). While Tangent Attack (Ma et al., 2021) considers the decision boundary as a virtual hemisphere to refine the boundary point, Triangle Attack (Wang et al., 2022) used the triangle inequality to refine it. GeoDA (Rahmati et al., 2020) and SurFree (Maho et al., 2021) focus on the hyperplane boundary, with GeoDA using estimated gradient information to execute the attack, while SurFree is gradient-free. In contrast, CGBA (Reza et al., 2023) demonstrates the difference in curvature of the decision boundaries for untargeted and targeted attacks, based on which algorithms are proposed that go beyond the simplified hyperplane boundary model and exploit the distinct curvatures of the decision boundary for improved attack performance.
+
+In score-based attacks, an adversary avails itself of the information of prediction probabilities of all the classes when querying the target classifier. Although most score-based attacks operate without surrogate models, some approaches (Guo et al., 2019b; Cheng et al., 2019; Yang et al., 2020) incorporate surrogate models to improve efficiency. Among the surrogate free attacks, ZOO (Chen et al., 2017) employs the finite difference method with dimension-wise estimation to approximate the gradient, requiring $2d$ queries per iteration, where $d$ is the dimension of the image. To improve the query efficiency of gradient estimation, (Bhagoji et al., 2018) reduces the search space using PCA of the input data, while AutoZOOM (Tu et al., 2019) samples noise from the low-dimensional latent space of a trained auto-encoder. NES (Ilyas et al., 2018a) uses finite differences through natural evolution strategies for gradient estimation. In the quest for further improved query efficiency, Bandits (Ilyas et al., 2018b) incorporates two priors: a time-dependent prior and a data-dependent prior. All the aforementioned gradient-based attacks iteratively add noise toward the estimated gradient direction to craft adversarial examples. SimBA (Guo et al., 2019a), however, queries along a set of orthonormal directions to obtain adversarial perturbations. Despite its simplicity, SimBA outperforms the gradient-based methods. PPBA (Li et al., 2020b) introduces a projection and probability-driven untargeted attack, focusing on reducing the solution space by employing a low-frequency constrained sensing matrix to enhance query efficiency. Conversely, SA (Andriushchenko et al., 2020) samples a small block of noise at some random locations of the image and add the noise with the image if it increases the confidence towards the adversarial region. There is another line of research that crafts sparse adversarial examples (Croce & Hein, 2019; Croce et al., 2022), focusing on attacks that limit the number of perturbed pixels to minimize detection. Nevertheless, SA offers SOTA performance
+
+in crafting untargeted and targeted top-1 adversarial examples satisfying $\ell_2$ -norm constraint among the existing surrogate-free score-based attacks (Li et al., 2024).
+
+Top-K white-box attacks. Up to date, the vast majority of adversarial attacks in literature have been focused on the top-1 setting, except for some pioneering white-box attacks. An ordered top-K white-box attack is proposed in (Zhang & Wu, 2020), which uses an adversarial distillation framework in crafting adversarial examples by minimizing the Kullback-Leibler divergence between the prediction probability distribution and the adversarial distribution. $\mathrm{T}_k\mathrm{ML}$ (Hu et al., 2021) proposes a white-box method to create top-K untargeted and targeted adversarial perturbation for the multi-label learning problem. The DeepFool attack (Moosavi-Dezfooli et al., 2016) that was proposed for top-1 adversarial examples is extended in (Tursynbek et al., 2022) to compute top-K untargeted adversarial examples. Moreover, (Paniagua et al., 2023) introduces a quadratic programming method to learn ordered top-K adversarial examples that addresses attack constraints within the feature embedding space. (Mahmood & Elhamifar, 2024) proposes a framework for crafting semantically consistent adversarial attacks on multi-label models using a consistent target set.
+
+# 3 THREAT MODEL
+
+Consider a classifier $P(\pmb{x}): [0,1]^{C_h \times W \times H} \to [0,1]^C$ , where $C_h, W, H$ are the channel, width, height of an arbitrary input $\pmb{x}$ , and $C$ denotes the number of output classes. The classifier outputs prediction probabilities for all classes in response to a query. To be more precise, $P_c(\pmb{x})$ represents the probability that $\pmb{x}$ belongs to class $c$ , with the constraint that $\sum_{c=1}^C P_c(\pmb{x}) = 1$ . For a given input $\pmb{x}$ , the set of top- $K$ predicted labels by the classifier can be expressed as follows:
+
+$$
+\hat {\mathcal {Y}} _ {K} (\boldsymbol {x}) = \left\{\underset {c \in [ C ]} {\left[ \operatorname {a r g s o r t} P _ {c} (\boldsymbol {x}) \right] _ {i}} \right\} _ {i = 1} ^ {K}, \tag {1}
+$$
+
+where $\arg \operatorname{sort}_{c\in [C]}$ returns indices of sorted elements in decreasing order of probability, and $[C] = \{1,2,\dots,C\}$ denotes the label set. For instance, $[\arg \operatorname{sort}_{c\in [C]}P_c(\pmb{x})]_i$ contains the label index of the class with the $i^{th}$ highest prediction probability.
+
+An adversary's objective is to generate an imperceptible adversarial example, without using surrogate models, from a benign input image $\boldsymbol{x}_s$ which is correctly classified by the classifier. While the true label set of $\boldsymbol{x}_s$ for the classic single-label multi-class classification problem is expressed as $\mathcal{C}_s = \hat{\mathcal{Y}}_1(\boldsymbol{x}_s)$ , for top-K multi-label learning it is expressed as $\mathcal{C}_s = \hat{\mathcal{Y}}_K(\boldsymbol{x}_s)$ . In a score-based attack, having the information of the prediction probabilities by querying the target classifier, the adversary aims to identify a unit direction $\hat{\Theta}$ in which $\boldsymbol{x}_s$ is moved into the adversarial region with minimal perturbation. A query $\boldsymbol{x}_q = \boldsymbol{x}_s + \boldsymbol{r}(\hat{\Theta})$ in the direction $\hat{\Theta}$ is considered in the adversarial region if $\mathbb{1}(\boldsymbol{x}_q) = 1$ , where $\boldsymbol{r}(\hat{\Theta}) = \| \boldsymbol{x}_q - \boldsymbol{x}_s\|_2\hat{\Theta}$ represents the perturbation added in the direction $\hat{\Theta}$ . The indicator function $\mathbb{1}(\boldsymbol{x}_q)$ informs whether the query $\boldsymbol{x}_q$ falls within the adversarial region or not. For an untargeted attack, aiming to move the true label set outside the top-K predicted classes, the query success indicator function takes the following form:
+
+$$
+\mathbb {1} \left(\boldsymbol {x} _ {q}\right) = \left\{ \begin{array}{l l} 1, & \text {i f} \mathcal {C} _ {s} \not \subset \hat {\mathcal {Y}} _ {K} \left(\boldsymbol {x} _ {q}\right) \\ - 1, & \text {o t h e r w i s e .} \end{array} \right. \tag {2}
+$$
+
+In contrast, a targeted attack seeks to replace the top- $K$ predictions of the input $\mathbf{x}_s$ with a predefined set of $K$ target classes, $\mathcal{Y}_K^{(t)}\subset [C]\setminus \mathcal{C}_s$ . Thus, the query success indicator function for a targeted attack is:
+
+$$
+\mathbb {1} \left(\boldsymbol {x} _ {q}\right) = \left\{ \begin{array}{l l} 1, & \text {i f} \hat {\mathcal {Y}} _ {K} \left(\boldsymbol {x} _ {q}\right) = \mathcal {Y} _ {K} ^ {(t)} \\ - 1, & \text {o t h e r w i s e .} \end{array} \right. \tag {3}
+$$
+
+If $\hat{\Theta}^*$ represents the optimal direction to obtain the desired adversarial image $\pmb{x}_{adv} = \pmb{x}_s + \pmb{r}(\hat{\Theta}^*)$ , the optimization problem can be formulated as:
+
+$$
+\hat {\boldsymbol {\Theta}} ^ {*} = \underset {\hat {\boldsymbol {\Theta}}} {\arg \min } \| \boldsymbol {r} (\hat {\boldsymbol {\Theta}}) \| _ {2}, \quad \text {s . t .} \mathbb {1} \left(\boldsymbol {x} _ {s} + \boldsymbol {r} (\hat {\boldsymbol {\Theta}})\right) = 1. \tag {4}
+$$
+
+# 4 OUR PROPOSED GSBAK
+
+The proposed GSBA $^{\text{K}}$ , guided by the approximated gradient direction in crafting adversarial examples, involves three key steps, as depicted in Fig. 3: (a) Estimating the gradient in the non-adversarial region to approach the decision boundary iteratively to find a better initial boundary point; (b) Esti-
+
+
+(a) Step 1
+
+
+(b) Step 2
+Figure 3: (a) Estimated gradient $\hat{g}_{\boldsymbol{x}_s}$ on source image $\boldsymbol{x}_s$ using Eq. 9 for targeted and Eq. 10 for un-targeted attacks in the non-adversarial region; (b) Approximated gradient $\hat{g}_{\boldsymbol{x}_{b_n}}$ at a decision boundary point $\boldsymbol{x}_{b_n}$ using Eq. 12 for targeted and Eq. 13 for untargeted attacks; and (c) Subsequent boundary point $\boldsymbol{x}_{b_{n + 1}}$ search in the 2D plane spanned by $(\hat{g}_{\boldsymbol{x}_{b_n}},\hat{\psi}_n)$ , where $\hat{\psi}_n$ denotes direction of $\boldsymbol{x}_{b_n}$ from $\boldsymbol{x}_s$ . While the light green and the light orange regions indicate non-adversarial and adversarial regions, respectively, the dark green (dark orange) arrows indicate directions to increase (decrease) confidence toward the adversarial region.
+
+
+(c) Step 3
+
+mating the gradient at the boundary point by leveraging the prediction scores; (c) Finding the next boundary point with reduced perturbation along a semicircular trajectory under the guidance by the estimated gradient on decision boundary. The key novelty of $\mathbf{GSBA}^{\mathbf{K}}$ is its ability to more accurately estimate gradients both within the adversarial region and at the decision boundary in the aggressive top- $K$ setting, enabling efficient boundary exploration to enhance ASR.
+
+To estimate the gradient around a point $\pmb{x}$ in image space, we generate $I_{n}$ number of noise samples $\{z_i\}_{i=1}^{I_n}$ from the low-frequency Discrete Cosine Transformation (DCT) subspace and exploit the prediction probabilities of $\pmb{x} + \pmb{z}_i$ ; $\forall z_i \in \{z_i\}_{i=1}^{I_n}$ from the target classifier. The DCT subspace encapsulates critical information of an image, including the gradient information (Guo et al., 2018; Li et al., 2020a) (for more, please refer to Appendix F).
+
+For a top- $K$ targeted attack with the constraint of a target-label set $\mathcal{Y}_K^{(t)}$ , to indicate the impact of an added $z_i$ to $x$ on a specific target class $c \in \mathcal{Y}_K^{(t)}$ , we exploit the following information:
+
+$$
+w _ {\boldsymbol {x}, c, \boldsymbol {z} _ {i}} := P _ {c} (\boldsymbol {x} + \boldsymbol {z} _ {i}) - P _ {c} (\boldsymbol {x}), \tag {5}
+$$
+
+where a positive (or negative) value of $w_{\boldsymbol{x},c,\boldsymbol{z}_i}$ indicates the increase (or decrease) in confidence towards the target class $c$ due to the added $\boldsymbol{z}_i$ to $\boldsymbol{x}$ . For any query $\boldsymbol{x}_q$ , let $v_K = [\arg \operatorname{sort}_{j \in [C] \setminus \mathcal{C}_s} P_j(\boldsymbol{x}_q)]_K$ denote the index of the class other than $\mathcal{C}_s$ with the $K$ -th largest prediction probability. Additionally, let $c_s = \arg \max_{j \in \mathcal{C}_s} P_j(\boldsymbol{x}_q)$ denote the source class with the highest prediction probability. For a top- $K$ untargeted attack, where adversarial queries can take any set of top- $K$ classes from $[C] \setminus \mathcal{C}_s$ , the adversarial region becomes significantly broader. Thus, we exploit the following information for an untargeted attack:
+
+$$
+F _ {\boldsymbol {x} _ {q}} := P _ {v _ {K}} \left(\boldsymbol {x} _ {q}\right) - P _ {c _ {s}} \left(\boldsymbol {x} _ {q}\right), \tag {6}
+$$
+
+where $\{x\mid F_x > 0\}$ indicates the adversarial region. With this a higher positive value of $F_{\pmb{x}_q}$ implies a more confident $\pmb{x}_q$ in the adversarial region than the non-adversarial counterpart.
+
+# 4.1 GRADIENT ESTIMATION IN NON-ADVERSARIAL REGION
+
+Finding a good initial boundary point $\pmb{x}_{b_0}$ is crucial for the success of a geometric attack. Unlike geometric decision-based attacks (Chen et al., 2020; Reza et al., 2023), which locate $\pmb{x}_{b_0}$ employing a random direction for the untargeted attack, and a binary search between the source image and a random target image for the targeted attack, our approach utilizes estimated gradient directions to find a better $\pmb{x}_{b_0}$ . We estimate the gradient $\pmb{g}_{\pmb{x}_s}$ at $\pmb{x}_s$ by querying around it and iteratively shift the query sample in the gradient direction $\hat{\pmb{g}}_{\pmb{x}_s} := \pmb{g}_{\pmb{x}_s} / \| \pmb{g}_{\pmb{x}_s} \|_2$ using a fixed step size $\epsilon$ to locate $\pmb{x}_{b_0}$ .
+
+In targeted attacks, estimating the gradient inside the non-adversarial region at a point $\boldsymbol{x}_{b_0}'$ is challenging as it involves finding the direction towards the narrow adversarial region constraint by the target-label set $\mathcal{Y}_K^{(t)}$ . Querying within the non-adversarial region around $\boldsymbol{x}_{b_0}'$ will result in all queries being non-adversarial, as in Fig. 3a. Since the adversarial objective is to continuously increase the confidence of the target classes, to estimate gradient at $\boldsymbol{x}_{b_0}'$ , the adversary may target the region $\{\boldsymbol{x}_{b_0}' + \boldsymbol{z}_i|(\min_{c\in \mathcal{Y}_K^{(t)}}P_c(\boldsymbol{x}_{b_0}' + \boldsymbol{z}_i) - \min_{c\in \mathcal{Y}_K^{(t)}}P_c(\boldsymbol{x}_{b_0}') > 0\}$ that ensures a gradient direction to enhance the minimum confidence among the target classes. Thus, we define the following indicator function to check whether a query around $\boldsymbol{x}_{b_0}'$ satisfies the adversary's goal:
+
+$$
+\phi_ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}} \left(\boldsymbol {z} _ {i}\right) := \left\{ \begin{array}{l l} 1, & \text {i f} \min _ {c \in \mathcal {Y} _ {K} ^ {(t)}} P _ {c} \left(\boldsymbol {x} _ {b _ {0}} ^ {\prime} + \boldsymbol {z} _ {i}\right) - \min _ {c \in \mathcal {Y} _ {K} ^ {(t)}} P _ {c} \left(\boldsymbol {x} _ {b _ {0}} ^ {\prime}\right) > 0 \\ - 1, & \text {o t h e r w i s e .} \end{array} \right. \tag {7}
+$$
+
+However, all the queries that satisfy $\phi_{\boldsymbol{x}_{b_0}'}(\boldsymbol{z}_i) = 1$ are not equally effective. For instance, for a top-3 targeted attack, consider the prediction probabilities with the target classes from the target classifier for $\boldsymbol{x}_{b_0}'$ as $\{0.12, 0.13, 0.1\}$ . Assume, $\boldsymbol{z}_1$ changes these probabilities to $\{0.13, 0.14, 0.11\}$ , while $\boldsymbol{z}_2$ modifies these to $\{0.11, 0.12, 0.11\}$ . While both $\boldsymbol{z}_1$ and $\boldsymbol{z}_2$ enhance the minimum confidence among the target classes (i.e., $\phi_{\boldsymbol{x}_{b_0}'}(\boldsymbol{z}_i) = 1$ for both), $\boldsymbol{z}_1$ has a greater impact as it improves confidence across all target classes. To indicate the impact of the added $\boldsymbol{z}_i$ to $\boldsymbol{x}_{b_0}'$ on a particular target class $c \in \mathcal{Y}_K^{(t)}$ , we introduce the following indicator function
+
+$$
+\chi_ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}, c, \boldsymbol {z} _ {i}} = \left\{ \begin{array}{l l} 1, & \text {i f} \phi_ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}} (\boldsymbol {z} _ {i}) w _ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}, c, \boldsymbol {z} _ {i}} > 0 \\ 0, & \text {o t h e r w i s e ,} \end{array} \right. \tag {8}
+$$
+
+where $w_{\pmb{x}_{b_0}^{\prime},c,\pmb{z}_i}$ is defined in Eq. 5. Note that $\chi_{\pmb{x}_{b_0}^{\prime},c,\pmb{z}_i} = 1$ includes the query that satisfies $\phi_{\pmb{x}_{b_0}^{\prime}} = -1$ with a decreased confidence on $c, i.e., w_{\pmb{x}_{b_0}^{\prime},c,\pmb{z}_i} < 0$ , which will be included in gradient estimate, as experimentally it is observed that, with a very high probability, $\chi_{\pmb{x}_{b_0}^{\prime},c,\pmb{z}_i} = \chi_{\pmb{x}_{b_0}^{\prime},c, - \pmb{z}_i}$ satisfies. Thus, the gradient in the non-adversarial region for the top- $K$ targeted attack can be estimated as:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}} = \sum_ {i = 1} ^ {I _ {0}} \left(\sum_ {c \in \mathcal {Y} _ {K} ^ {(t)}} \chi_ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}, c, \boldsymbol {z} _ {i}}\right) \cdot \left(\sum_ {c \in \mathcal {Y} _ {K} ^ {(t)}} w _ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}, c, \boldsymbol {z} _ {i}} \chi_ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}, c, \boldsymbol {z} _ {i}}\right) \cdot \boldsymbol {z} _ {i}, \tag {9}
+$$
+
+where $\sum_{c\in \mathcal{Y}_K^{(t)}}\chi_{\pmb{x}_{b_0}^{\prime},c,\pmb{z}_i}$ counts the number of target classes with increased (or decreased) confidence when $\phi_{\pmb{x}_{b_0}^{\prime}}(\pmb{z}_i) = 1$ (or $\phi_{\pmb{x}_{b_0}^{\prime}}(\pmb{z}_i) = -1$ ), and $\sum_{c\in \mathcal{Y}_K^{(t)}}w_{\pmb{x}_{b_0}^{\prime},c,\pmb{z}_i}\chi_{\pmb{x}_{b_0}^{\prime},c,\pmb{z}_i}$ captures the change in confidence of these classes. Eq. 9 provides a gradient direction that effectively increases the confidence of the minimum prediction probability among $\mathcal{Y}_K^{(t)}$ and iteratively finds a boundary point $\pmb{x}_{b_0}$ . It is effective in finding $\pmb{x}_{b_0}$ as it considers the impact of $\pmb{z}_i$ on each of the target classes in $\mathcal{Y}_K^{(t)}$ and assigns weight to $\pmb{z}_i$ accordingly. Additional analysis, showing the impact of each component in Eq. 9 and the rationale behind it, is provided in Appendix A.1.
+
+Turning to untargeted attacks, querying around $\pmb{x}_{b_0}'$ result in $F_{\pmb{x}_{b_0}' + \pmb{z}_i} < 0$ ; $\forall \pmb{z}_i \in \{\pmb{z}_i\}_{i=1}^{I_0}$ due to the reason discussed above. Thus, having a wider adversarial region, to estimate the gradient at $\pmb{x}_{b_0}'$ , we consider the impact of $\pmb{z}_i$ on the enhancement of confidence towards the adversarial region relative to the non-adversarial counterpart. This gradient can be approximated as:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}} = \sum_ {i = 1} ^ {I _ {0}} \left(F _ {\boldsymbol {x} _ {b _ {0}} ^ {\prime} + \boldsymbol {z} _ {i}} - F _ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}}\right) \cdot \boldsymbol {z} _ {i}, \tag {10}
+$$
+
+where $F_{\boldsymbol{x}_{b_0}^{\prime} + \boldsymbol{z}_i} - F_{\boldsymbol{x}_{b_0}^{\prime}} > 0$ signifies increased confidence towards the adversarial region in relative to the non-adversarial region, due to perturbed $\boldsymbol{x}_{b_0}^{\prime} + \boldsymbol{z}_i$ compared to $\boldsymbol{x}_{b_0}^{\prime}$ , and vice versa. This strategy leverages the available prediction probabilities, enhancing the possibility of finding a good $\boldsymbol{x}_{b_0}$ for the untargeted attack such that $\hat{\mathcal{Y}}_K(\boldsymbol{x}_{b_0}) \in [C] \setminus \mathcal{C}_s$ .
+
+# 4.2 GRADIENT ESTIMATION ON DECISION BOUNDARY
+
+Gradient estimation on the decision boundary plays a pivotal role in our proposed approach. For a targeted attack, the gradient is estimated at a boundary point $\boldsymbol{x}_{b_n}$ by querying around it in each iteration to find the next boundary point $\boldsymbol{x}_{b_{n+1}}$ with reduced perturbation. However, estimating the gradient for top-K targeted attacks with a narrow adversarial region is still complicated. Not all adversarial queries contribute equally to this goal. Some queries may behave anomalously, leading to a reduction in confidence across all target classes, while others may improve confidence for only a subset of the target classes. Ideally, the most effective queries are those that increase confidence across all the target classes. For instance, consider that the prediction probabilities of the target classes $\mathcal{Y}_3^{(t)}$ , for a top-3 attack, at $\boldsymbol{x}_{b_n}$ are $\{P_c(\boldsymbol{x}_{b_n})\}_{c \in \mathcal{Y}_3^{(t)}} = \{0.10, 0.08, 0.12\}$ . After applying three random perturbations, the resulting prediction probabilities are $[\{P_c(\boldsymbol{x}_{b_n} + \boldsymbol{z}_i)\}_{c \in \mathcal{Y}_3^{(t)}}]_{i=1}^3 = [\{0.09, 0.07, 0.11\}, \{0.09, 0.07, 0.15\}, \{0.11, 0.09, 0.13\}]$ ; $\mathbb{1}(\boldsymbol{x}_{b_n} + \boldsymbol{z}_i) = 1, \forall i \in [3]$ . In this example, the first perturbation is anomalous, as it reduces the overall confidence in the target classes. The second perturbation biases the result towards a particular class, while the third perturbation increases confidence in all target classes, making it the most effective for achieving the adversarial goal. Thus,
+
+Algorithm 1: GSBAK
+1 Input: benign image $x_{s}$ query budget $Q$ , base query number $I_0$ , step size $\epsilon$ , tolerance $\tau$
+2 Output: adversarial image $x_{adv}$
+3 $x_{b_0}^{\prime} = x_s,Q^{\prime} = 1$
+4 while $\mathbb{1}(\pmb{x}_{b_0}^{\prime}) = -1$ do
+5 $\begin{array}{r}\hat{\pmb{g}}_{\pmb{x}_{b_0}^{\prime}} = \pmb{g}_{\pmb{x}_{b_0}^{\prime}} / \| \pmb{g}_{\pmb{x}_{b_0}^{\prime}}\| _2 \end{array}$ based on Eq. 9 and Eq. 10 for targeted and untargeted attacks, respectively, using $I_0$ queries.
+6 $x_{b_0}' = x_{b_0}' + \epsilon *\hat{g}_{x_{b_0}'}$ $Q^{\prime} = Q^{\prime} + I_{0} + 1$
+7 $x_{b_0},Q_{bin}\gets \mathrm{BinarySearch}(x_s,x_{b_0}',\mathbb{1}(.),\tau)$
+8 $Q^{\prime} = Q^{\prime} + Q_{bin}$ n=0.
+9 while $Q^{\prime}\leq Q$ do
+10 estimate $\hat{g}_{\pmb{x}_{b_n}} = g_{\pmb{x}_{b_n}} / \| g_{\pmb{x}_{b_n}}\| _2$ based on Eq. 12 for targeted and Eq. 13 for untargeted attacks using $\lfloor I_0\sqrt{n + 1}\rfloor$ queries.
+11 direction of the boundary point from the source image: $\hat{\psi}_n = \frac{\pmb{x}_{b_n} - \pmb{x}_s}{\|\pmb{x}_{b_n} - \pmb{x}_s\|_2}$ as shown in Fig. 3c.
+12 $x_{b_{n + 1}},Q_{bs}\gets$ next boundary point along a semi-circular path guided by $\hat{g}_{\pmb{x}_{b_n}}$ and $\hat{\psi}_n$ , and corresponding query cost, as discussed in CGBA (Reza et al., 2023).
+13 $Q^{\prime} = Q^{\prime} + \lfloor I_0\sqrt{n + 1}\rfloor +Q_{bs}$ n=n+1.
+14 return: $x_{adv} = x_{bn}$
+
+we also propose an effective gradient estimation technique on a decision boundary point by leveraging the available information for the challenging top- $K$ setting that filters out anomalous queries and assigns greater weight to perturbations that have a higher impact on achieving the adversarial goal. Now, we introduce an indicator function that assesses whether the query $\boldsymbol{x}_{b_n} + \boldsymbol{z}_i$ is adversarial and leads to increased confidence to the class $c \in \mathcal{Y}_K^{(t)}$ :
+
+$$
+\zeta_ {\boldsymbol {x} _ {b _ {n}}, c, \boldsymbol {z} _ {i}} = \left\{ \begin{array}{l l} 1, & \text {i f} \mathbb {1} \left(\boldsymbol {x} _ {b _ {n}} + \boldsymbol {z} _ {i}\right) w _ {\boldsymbol {x} _ {b _ {n}}, c, \boldsymbol {z} _ {i}} > 0 \\ 0, & \text {o t h e r w i s e .} \end{array} \right. \tag {11}
+$$
+
+Similar to Eq. 8, it also includes the non-adversarial queries $(\mathbb{1}(\pmb{x}_{b_n} + \pmb{z}_i) = -1)$ while $w_{\pmb{x}_{b_n},c,\pmb{z}_i} < 0$ , which will be incorporated in the gradient estimate by flipping the sign of $\pmb{z}_i$ . The gradient for the intricate top- $K$ targeted attack is thus estimated as:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b n}} = \sum_ {i = 1} ^ {I _ {n}} \left(\sum_ {c \in \mathcal {Y} _ {K} ^ {(t)}} \zeta_ {\boldsymbol {x} _ {b n}, c, \boldsymbol {z} _ {i}}\right) \cdot \left(\sum_ {c \in \mathcal {Y} _ {K} ^ {(t)}} w _ {\boldsymbol {x} _ {b n}, c, \boldsymbol {z} _ {i}} \zeta_ {\boldsymbol {x} _ {b n}, c, \boldsymbol {z} _ {i}}\right) \cdot \boldsymbol {z} _ {i}. \tag {12}
+$$
+
+Here, $\sum_{c\in \mathcal{Y}_K^{(t)}}\zeta_{\boldsymbol{x}_{b_n},c,\boldsymbol{z}_i}$ and $\sum_{c\in \mathcal{Y}_K^{(t)}}w_{\boldsymbol{x}_{b_n},c,\boldsymbol{z}_i}\zeta_{\boldsymbol{x}_{b_n},c,\boldsymbol{z}_i}$ are weights assigned to $\boldsymbol{z}_i$ to estimate the gradient. The former counts the number of target classes for which $\mathbb{1}(\boldsymbol{x}_{b_n} + \boldsymbol{z}_i)w_{\boldsymbol{x}_{b_n},c,\boldsymbol{z}_i} > 0$ , while the latter captures the strength of increased (or decreased) confidence towards the adversarial region if the query is adversarial (or non-adversarial). Additionally, $\sum_{c\in \mathcal{Y}_K^{(t)}}\zeta_{\boldsymbol{x}_{b_n},c,\boldsymbol{z}_i} = 0$ indicates the query is anomalous. The proposed method offers improved gradient estimation by emphasizing the impact of the added noise $\boldsymbol{z}_i$ on each of the target classes comparing the prediction probabilities of the boundary point $\boldsymbol{x}_{b_n}$ and the perturbed $\boldsymbol{x}_{b_n} + \boldsymbol{z}_i$ . It assigns more weight to $\boldsymbol{z}_i$ in estimating the gradient, if $\boldsymbol{z}_i$ impacts more target classes in $\mathcal{Y}_K^{(t)}$ , while filtering out anomalous queries that do not correctly contribute to the adversarial goal. For a more detailed discussion of the rationale behind Eq. 12, including the impact of each component in it on gradient estimation and comparisons with other possible choices of gradient estimation, please refer to Appendix A.2.
+
+In an untargeted attack, since the attack transitions from a small set of source classes to any top- $K$ classes in $[C] \setminus \mathcal{C}_s$ , the likelihood of anomalous queries is greatly reduced. In this scenario, it suffices to evaluate the impact of the added noise $z_i$ based on how effectively it enhances confidence toward the adversarial region compared to its non-adversarial counterpart. Under this setting, the gradient can be can be straightforwardly approximated as:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {n}}} = \sum_ {i = 1} ^ {I _ {n}} F _ {\boldsymbol {x} _ {b _ {n}} + \boldsymbol {z} _ {i}} \cdot \boldsymbol {z} _ {i}. \tag {13}
+$$
+
+The larger the positive value of $F_{\boldsymbol{x}_{b_n} + \boldsymbol{z}_i}$ , the greater the confidence shift towards the adversarial region relative to the non-adversarial one, and more weight is assigned to $\boldsymbol{z}_i$ if the change is higher. Note, Eq. 13 also incorporates $\boldsymbol{z}_i$ , which results in non-adversarial queries $(F_{\boldsymbol{x}_{b_n} + \boldsymbol{z}_i} < 0)$ and
+
+
+(a) $r_{th} = 2$ , Untargeted
+
+
+Figure 4: ASR(\%) vs. queries in crafting top-1 adv. examples against ResNet-50 on ImageNet.
+
+
+(b) $r_{th} = 4$ , Untargeted
+(c) $r_{th} = 4$ Targeted
+
+
+(d) $r_{th} = 6$ Targeted
+
+weights them accordingly, as it is highly probable that $F_{\mathbf{x}_{b_n} + \mathbf{z}_i} < 0 \Rightarrow F_{\mathbf{x}_{b_n} - \mathbf{z}_i} > 0$ . The impact of non-adversarial queries on attack performance is discussed in Appendix A.3.
+
+The steps of $\mathrm{GSBA}^{\mathrm{K}}$ are outlined in Algorithm 1. Line 4-Line 6 are used to iteratively shift $\pmb{x}_s$ into the adversarial region with a step size $\epsilon$ . Then, a binary search between the obtained point inside the adversarial region and $\pmb{x}_s$ is conducted to locate the initial boundary point $\pmb{x}_{b_0}$ within a certain tolerance $\tau$ . From Line 9-Line 13, $\mathrm{GSBA}^{\mathrm{K}}$ iteratively finds boundary point with reduced perturbation using the similar semicircular boundary as CGBA (Reza et al., 2023) guided by the proposed estimated gradient $\hat{g}_{\pmb{x}_{b_n}}$ on the decision boundary for both untargeted and targeted attacks. The code of our attack is available at https://github.com/Farhamdur/GSBA-K.
+
+# 5 EXPERIMENTS
+
+In this section, we first outline the baselines, evaluation metrics, and hyperparameters employed for both the baselines and $\mathrm{GSBA^K}$ . Subsequently, we present the experimental results on ImageNet, which contains 1,000 classes, and the PASCAL VOC 2012 dataset, which includes 20 classes, illustrating the efficacy of $\mathrm{GSBA^K}$ in executing top- $K$ attacks. The limitations and potential negative impacts of $\mathrm{GSBA^K}$ are addressed in the supplementary material.
+
+Baselines, evaluation metrics and hyperparameters. To evaluate the performance of $\mathrm{GSBA}^{\mathrm{K}}$ , we choose score-based attacks SimBA-DCT (Guo et al., 2019a), PPBA (Li et al., 2020b) and SA (Andriushchenko et al., 2020) as baselines. To the best of our knowledge, SA offers SOTA performance in score-based setting. The baselines are only designed to craft top-1 adversarial examples against classifiers with single-label multi-class classification. While SA and SimBA-DCT can generate both untargeted and targeted adversarial examples, PPBA is restricted to untargeted attacks. Nonetheless, the proposed $\mathrm{GSBA}^{\mathrm{K}}$ is versatile in crafting top-K adversarial examples for both untargeted and targeted attacks, and both single-label and multi-label learning. To have a strong baseline in the top-K setting, we adapt the loss function of SA (Andriushchenko et al., 2020) for both untargeted and targeted attacks, enabling its application in crafting top-K adversarial examples, coined as $\mathrm{SA}^{\mathrm{K}}$ . For untargeted attacks, we modify the loss function in (Andriushchenko et al., 2020) to $L(f(\pmb{x}_q), c_s) = f_{c_s}(\pmb{x}_q) - f_{v_K}(\pmb{x}_q)$ , where $c_s$ and $v_K$ are defined in Sec. 4. Likewise, for targeted attacks, the loss function is modified to $L(f(\pmb{x}_q), \mathcal{Y}_K^{(t)}) = -\min_{j \in \mathcal{Y}_K^{(t)}} f_j(\pmb{x}_q) + \max_{j \in [C] \setminus \mathcal{Y}_K^{(t)}} f_j(\pmb{x}_q)$ for $K > 1$ . This adaptation enables the effective crafting of top-K adversarial examples using $\mathrm{SA}^{\mathrm{K}}$ .
+
+We evaluate our method primarily using the metric Attack Success Rate (ASR). An attack is deemed successful if it crafts an adversarial example below a specified $\ell_2$ -norm perturbation threshold, $r_{th}$ , using queries within the allocated budget, $Q$ . The lower the $r_{th}$ , the more queries are required to make an attack successful, and vice versa. We also assess the effectiveness of an attack using the median $\ell_2$ -norm of the perturbation. A lower median perturbation value across all crafted adversarial examples within the allocated query budget indicates greater attack effectiveness.
+
+Baseline implementations leverage the codes provided by the respective authors, with some suitable parameter adjustments. While SA accounts for constraints both in $Q$ and $r_{th}$ in defining attack success, SimBA-DCT and PPBA only consider the constraint in $Q$ , potentially giving a false sense of success. Empirically, it is observed that the crafted perturbations in the default setting of SimBA-DCT and PPBA are often large and suffer from low ASR for a small $r_{th}$ . To address this, we set $\epsilon = 0.1$ for SimBA-DCT and $\rho = 0.001$ for PPBA, where $\epsilon$ and $\rho$ control the magnitude of noises added at each query step for the respective methods, while retaining other parameters at their default settings. For SOTA SA, we use the default parameters. In the case of GSBA $^{\mathrm{K}}$ , we use reduced-dimensional frequency subspace with a dimension reduction factor $f = 4$ to sample low-frequency noise $\{z_i\}$ . We set the base query number $I_0 = 30$ , step size $\epsilon = 6$ , and tolerance $\tau = 0.0001$ .
+
+Table 1: ASR(%) for different perturbation thresholds ( $r_{th}$ ) and query budgets ( $Q$ ) against ResNet-50 on ImageNet.
+
+
Attack Type
Untargeted Attack
Targeted Attack
Q
1000
5000
10000
20000
30000
5000
10000
20000
30000
top-1
SA1GSBA1
rth=1
26.5
50.2
58.1
71.2
76.1
rth=2
3.2
8.1
16.2
22.0
29.6
29.2
61.4
76.8
84.5
87.9
8.4
23.4
47.5
62.4
69.9
SA1GSBA1
rth=2
50.7
75.8
85.6
93.6
96.3
rth=4
19.3
35.5
55.5
70.4
79.6
50.4
85.3
94.6
98.7
99.3
36.3
71.6
92.2
97.3
98.6
SA1GSBA1
rth=4
75.2
95.6
98.8
99.7
99.8
rth=6
37.4
60.1
84.5
91.3
94.0
74.9
98.0
99.6
100.0
100.0
63.2
90.5
99.2
99.9
100.0
top-2
SA2GSBA2
rth=1
10.3
28.9
41.2
48.7
55.4
rth=2
0.9
3.1
6.6
12.9
16.0
12.8
40.5
55.5
69.7
74.8
2.5
9.8
26.8
39.1
46.8
SA2GSBA2
rth=2
30.7
56.1
69.1
78.8
85.0
rth=4
7.6
19.1
32.2
44.8
52.4
25.6
68.7
83.7
94.9
97.2
16.6
45.1
75.6
87.6
92.0
SA2GSBA2
rth=4
55.4
84.1
93.8
98.0
98.9
rth=6
19.9
36.6
57.5
67.4
73.0
50.5
89.2
97.2
99.5
100.0
36.7
71.6
92.4
97.1
98.2
top-3
SA3GSBA3
rth=1
5.2
17.4
27.9
37.0
44.5
rth=2
0.8
1.1
2.4
4.0
5.1
5.7
30.5
47.1
63.4
67.8
0.9
4.8
14.8
26.5
33.8
SA3GSBA3
rth=2
19.8
45.9
56.8
68.3
72.3
rth=4
3.7
9.3
19.3
27.0
31.8
17.3
62.6
77.3
90.2
93.9
8.2
27.3
55.5
71.2
78.8
SA3GSBA3
rth=4
46.8
77.7
88.5
94.8
97.4
rth=6
10.1
22.3
33.2
44.6
51.1
43.1
84.8
95.0
99.1
99.6
21.9
49.2
77.8
88.7
92.8
top-4
SA4GSBA4
rth=1
2.5
12.6
18.6
26.9
30.0
rth=2
0.5
0.8
1.2
1.6
2.9
3.6
24.7
40.5
56.8
61.3
0.4
1.5
9.9
15.7
22.0
SA4GSBA4
rth=2
14.3
37.4
50.5
62.9
66.8
rth=4
1.4
3.1
11.5
16.6
19.7
12.4
55.6
72.3
85.3
92.6
4.3
15.0
39.2
55.7
63.4
SA4GSBA4
rth=4
41.3
72.6
82.1
92.2
95.1
rth=6
5.0
10.9
22.2
29.0
33.9
34.2
78.6
93.7
98.9
99.4
10.1
35.0
61.5
74.4
81.4
+
+# 5.1 RESULTS AGAINST SINGLE-LABEL MULTI-CLASS CLASSIFICATION
+
+We assess $\mathrm{GSBA}^{\mathrm{K}}$ by conducting attacks against three widely used pre-trained classifiers—ResNet-50 (He et al., 2016), ResNet-101 (He et al., 2016), and VGG-16 (Simonyan & Zisserman, 2014) trained for multi-class classification on the ImageNet (Deng et al., 2009) dataset. The pre-trained ResNet-50, ResNet-101 and VGG-16 models are sourced from PyTorch. In the case of untargeted attacks against a classifier on ImageNet, we randomly select 1000 images that are correctly classified by the respective classifier. For targeted attacks, we create 1000 sets of images, each comprising a benign image $\pmb{x}_s$ and a target image $\pmb{x}_t$ . The top- $K$ target labels are extracted from the target image $\hat{\mathcal{Y}}_K(\pmb{x}_t)$ . The input image size for all classifiers on the ImageNet dataset is set as $3 \times 224 \times 224$ .
+
+Comparison with top-1 baselines. We compare the performance of the proposed GSBA1 with SimBA-DCT (Guo et al., 2019a), PPBA (Li et al., 2020b) and SA (Andriushchenko et al., 2020) in crafting top-1 adversarial examples against classifiers with multi-class classification. Fig. 4 depicts the variation of ASR against ResNet-50 on ImageNet with differing query budgets across various $r_{th}$ values. From Fig. 4, for untargeted attacks, the ASR of SA is comparable with GSBA1 for $r_{th} = 4$ and reaches around $100\%$ ASR. However, GSBA1 offers better ASR than SA with reduced $r_{th}$ . Experimentally, it is observed that with a higher value of $r_{th}$ than 4, both SA and GSBA1 converge faster towards the $100\%$ ASR. Conversely, for targeted attacks, GSBA1 outperforms the baseline by a considerable margin in ASR. Additional results for other classifiers are provided in Appendix B.
+
+Results on crafting top-K adversarial examples. The ASR in crafting up to top-4 adversarial examples for both untargeted and targeted attacks against the ResNet-50 classifier on the ImageNet dataset is presented in Table 1, considering different query budgets and perturbation threshold $r_{th}$ . The corresponding curves for ResNet-50, with $r_{th} = 2$ for untargeted attacks and $r_{th} = 4$ for targeted attacks, are depicted in Fig. 5. The obtained ASR for different $r_{th}$ and query budgets against other regular classifiers are given in Appendix C. Additional
+
+
+(a) Untargeted
+
+
+(b) Targeted
+Figure 5: $\mathrm{ASR}(\%)$ versus queries for the attack against ResNet-50 on ImageNet.
+
+evaluations against a number of robust classifiers are provided in Appendix D. We choose $\mathrm{SA}^{\mathrm{K}}$ for the performance comparison, as it offers SOTA performance in the top-1 setting.
+
+In the context of untargeted attacks, it is noteworthy that while the ASR is comparable to $\mathrm{SA}^{\mathrm{K}}$ when the query budget is relatively low, the proposed GSBA $^{\mathrm{K}}$ method notably outperforms $\mathrm{SA}^{\mathrm{K}}$ as the query budget increases. Furthermore, for a given query budget and fixed $K$ , the relative ASR of GSBA $^{\mathrm{K}}$ compared to $\mathrm{SA}^{\mathrm{K}}$ increases as $r_{th}$ decreases. Additionally, with a fixed query budget and $r_{th}$ , the relative ASR of GSBA $^{\mathrm{K}}$ compared to $\mathrm{SA}^{\mathrm{K}}$ improves as $K$ increases. For the targeted attack, by contrast, GSBA $^{\mathrm{K}}$ demonstrates significantly higher ASR compared to $\mathrm{SA}^{\mathrm{K}}$ across the board,
+
+
+(a) Untargeted; Query budget $= 2000$
+Table 2: ASR(%) against Inception-V3 with top-2 multi-label learning on the PASCAL VOC 2012 dataset.
+
+
+(b) Targeted; Query budget $= 20000$
+Figure 6: Different top-K adversarial examples against ResNet50 for a benign input.
+
+
Target type
Best
Random
Worst
\( r_{th} \)
Q
10000
20000
30000
40000
10000
20000
30000
40000
10000
20000
30000
40000
top-1
4
\( SA^1 \)
79.0
89.0
92.0
94.0
32.0
42.0
49.0
58.0
10.0
17.0
22.0
28.0
\( GSBA^1 \)
81.0
92.0
94.0
96.0
41.0
57.0
70.0
75.0
15.0
42.0
54.0
63.0
6
\( SA^1 \)
91.0
94.0
96.0
96.0
47.0
60.0
68.0
73.0
20.0
31.0
39.0
46.0
\( GSBA^1 \)
89.0
97.0
99.0
99.0
56.0
73.0
77.0
84.0
34.0
59.0
72.0
78.0
8
\( SA^1 \)
94.0
98.0
100.0
100.0
52.0
67.0
76.0
79.0
27.0
39.0
51.0
59.0
\( GSBA^1 \)
94.0
98.0
99.0
99.0
62.0
76.0
84.0
85.0
45.0
68.0
78.0
80.0
top-2
4
\( SA^2 \)
32.0
51.0
58.0
66.0
6.0
9.0
12.0
15.0
0.0
0.0
1.0
3.0
\( GSBA^2 \)
40.0
65.0
78.0
83.0
9.0
28.0
48.0
53.0
5.0
26.0
46.0
53.0
6
\( SA^2 \)
51.0
73.0
77.0
82.0
11.0
23.0
27.0
32.0
2.0
8.0
10.0
11.0
\( GSBA^2 \)
53.0
80.0
83.0
89.0
24.0
44.0
53.0
62.0
17.0
50.0
57.0
67.0
8
\( SA^2 \)
67.0
80.0
84.0
87.0
15.0
25.0
41.0
46.0
7.0
14.0
19.0
21.0
\( GSBA^2 \)
64.0
82.0
89.0
93.0
31.0
55.0
62.0
69.0
29.0
54.0
65.0
75.0
+
+specifically in crafting adversarial examples with reduced perturbation. Moreover, $\mathrm{GSBA}^{\mathrm{K}}$ achieves substantially higher ASR than $\mathrm{SA}^{\mathrm{K}}$ in crafting top- $K$ targeted adversarial examples with higher $K$ . The crafted adversarial examples and their corresponding perturbation with different $K$ for a benign input are depicted in Fig. 6. For additional top- $K$ adversarial examples and detailed insights, please refer to Appendix H.
+
+# 5.2 ATTACK AGAINST MULTI-LABEL LEARNING
+
+We employ the proposed GSBA $^{\text{K}}$ to attack against top- $K$ multi-label learning, a task aimed at identifying the top $K$ prediction labels for a given input. To execute an attack against a target model with top- $K$ multi-label learning, we use Inception-V3 (Szegedy et al., 2016), obtained from the GitHub repository of (Hu et al., 2021). This model is pre-trained on ImageNet (Deng et al., 2009) and fine-tuned on the PASCAL VOC 2012 dataset (Everingham et al., 2015). We focus on targeted top- $K$ attacks, and categorize the possible target sets into three types: best, random, and worst. For a benign input, the best target labels refer to a set of $K$ labels, excluding true labels, with the highest prediction scores; conversely, the worst target labels denote those with the lowest prediction scores, and Random target labels represent a set of $K$ randomly selected mutually exclusive labels, excluding true labels. To perform the top- $K$ attacks, we use 100 benign samples with $K$ true labels from the PASCAL VOC 2012 validation set and perform attacks considering the aforementioned three categories of target sets. The input images are resized to $3 \times 300 \times 300$ dimensions before being fed into the target model.
+
+Table 2 demonstrates the ASR in crafting top-1 and top-2 adversarial examples for different query budgets and perturbation thresholds, considering the best, random and the worst target label sets. As seen from these results, $\mathrm{GSBA}^{\mathrm{K}}$ outperforms $\mathrm{SA}^{\mathrm{K}}$ across the board. Specifically, with the consideration of random and worst target labels, $\mathrm{GSBA}^{\mathrm{K}}$ notably outperforms $\mathrm{SA}^{\mathrm{K}}$ . Importantly, while $\mathrm{SA}^2$ fails to converge to the desired perturbation for the worst target labels within the given query budgets, $\mathrm{GSBA}^2$ maintains a significantly higher ASR. From Table 1 and Table 2, ASR decreases as $K$ increases. The impact of higher $K$ on ASR is detailed in Appendix E, while the effect of varying reduced-dimensional frequency subspaces for sampling $\mathbf{z}_i$ explored in Appendix F.
+
+# 6 CONCLUSION
+
+In this work, we propose a geometric score-based attack, $\mathrm{GSBA}^{\mathrm{K}}$ , to effectively generate strong top- $K$ untargeted and targeted adversarial examples against classifiers with both single-label multi-class classification and multi-label learning tasks. It introduces novel gradient estimation techniques for the challenging top- $K$ setting, efficiently finding the initial boundary point and effectively exploiting the decision boundary to iteratively refine the adversarial example by leveraging the estimated gradient direction. Experiments on large-scale benchmark datasets demonstrate that $\mathrm{GSBA}^{\mathrm{K}}$ offers state-of-the-art performance and would be a strong baseline in crafting top- $K$ adversarial examples.
+
+# ACKNOWLEDGEMENTS
+
+This work was supported in part by the US National Science Foundation under grants CNS-1824518 and ECCS-2203214. T. Wu is partly supported by ARO Grant W911NF1810295, NSF IIS-1909644, ARO Grant W911NF2210010, NSF IIS-1822477, NSF CMMI-2024688 and NSF IUSE-2013451. R. Jin is supported by the National Key R&D Program of China under Grant No. 2024YFE0200804. The views and conclusions expressed in this work are those of the authors and do not necessarily reflect the official policies or endorsements, either expressed or implied, of ARO, NSF, or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright annotation thereon. The authors sincerely appreciate the constructive feedback provided by the anonymous reviewers and area chairs.
+
+# REFERENCES
+
+Maksym Andriushchenko, Francesco Croce, Nicolas Flammarion, and Matthias Hein. Square attack: a query-efficient black-box adversarial attack via random search. In European conference on computer vision, pp. 484-501. Springer, 2020.
+Arjun Nitin Bhagoji, Warren He, Bo Li, and Dawn Song. Practical black-box attacks on deep neural networks using efficient query mechanisms. In Proceedings of the European conference on computer vision (ECCV), pp. 154-169, 2018.
+Wieland Brendel, Jonas Rauber, and Matthias Bethge. Decision-based adversarial attacks: Reliable attacks against black-box machine learning models. In International Conference on Learning Representations, 2018.
+Thomas Brunner, Frederik Diehl, Michael Truong Le, and Alois Knoll. Guessing smart: Biased sampling for efficient black-box adversarial attacks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 4958-4966, 2019.
+Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017, IEEE symposium on security and privacy (sp), pp. 39-57. IEEE, 2017.
+Jianbo Chen, Michael I Jordan, and Martin J Wainwright. Hopskipjumpattack: A query-efficient decision-based attack. In 2020 IEEE symposium on security and privacy (sp), pp. 1277-1294. IEEE, 2020.
+Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In Proceedings of the 10th ACM workshop on artificial intelligence and security, pp. 15-26, 2017.
+Shuyu Cheng, Yinpeng Dong, Tianyu Pang, Hang Su, and Jun Zhu. Improving black-box adversarial attacks with a transfer-based prior. Advances in neural information processing systems, 32, 2019.
+Francesco Croce and Matthias Hein. Sparse and imperceivable adversarial attacks. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 4724-4732, 2019.
+Francesco Croce, Maksym Andriushchenko, Naman D Singh, Nicolas Flammarion, and Matthias Hein. Sparse-rs: a versatile framework for query-efficient sparse black-box adversarial attacks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pp. 6437-6445, 2022.
+Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248-255, 2009.
+Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, and Jianguo Li. Boosting adversarial attacks with momentum. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 9185-9193, 2018.
+Yinpeng Dong, Hang Su, Baoyuan Wu, Zhifeng Li, Wei Liu, Tong Zhang, and Jun Zhu. Efficient decision-based black-box adversarial attacks on face recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7714-7722, 2019.
+
+Mark Everingham, SM Ali Eslami, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The Pascal visual object classes challenge: A retrospective. International journal of computer vision, 111:98-136, 2015.
+Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv preprint arXiv:1811.12231, 2018.
+Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
+Chuan Guo, Jared S Frank, and Kilian Q Weinberger. Low frequency adversarial perturbation. arXiv preprint arXiv:1809.08758, 2018.
+Chuan Guo, Jacob Gardner, Yurong You, Andrew Gordon Wilson, and Kilian Weinberger. Simple black-box adversarial attacks. In International Conference on Machine Learning, pp. 2484-2493. PMLR, 2019a.
+Yiwen Guo, Ziang Yan, and Changshui Zhang. Subspace attack: Exploiting promising subspaces for query-efficient black-box attacks. Advances in Neural Information Processing Systems, 32, 2019b.
+Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770-778, 2016.
+Dan Hendrycks, Norman Mu, Ekin D Cubuk, Barret Zoph, Justin Gilmer, and Balaji Lakshminarayanan. Augmix: A simple data processing method to improve robustness and uncertainty. arXiv preprint arXiv:1912.02781, 2019.
+Shu Hu, Lipeng Ke, Xin Wang, and Siwei Lyu. $\mathrm{T}_k$ ml-ap: Adversarial attacks to top-k multi-label learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 7649-7657, 2021.
+Andrew Ilyas, Logan Engstrom, Anish Athalye, and Jessy Lin. Black-box adversarial attacks with limited queries and information. In International conference on machine learning, pp. 2137-2146. PMLR, 2018a.
+Andrew Ilyas, Logan Engstrom, and Aleksander Madry. Prior convictions: Black-box adversarial attacks with bandits and priors. arXiv preprint arXiv:1807.07978, 2018b.
+Jinyuan Jia, Wenjie Qu, and Neil Gong. Multiguard: Provably robust multi-label classification against adversarial examples. Advances in Neural Information Processing Systems, 35:10150-10163, 2022.
+Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016.
+Huichen Li, Xiaojun Xu, Xiaolu Zhang, Shuang Yang, and Bo Li. Qeba: Query-efficient boundary-based blackbox attack. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 1221-1230, 2020a.
+Jie Li, Rongrong Ji, Hong Liu, Jianzhuang Liu, Bineng Zhong, Cheng Deng, and Qi Tian. Projection & probability-driven black-box attack. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 362-371, 2020b.
+Jie Li, Rongrong Ji, Peixian Chen, Baochang Zhang, Xiaopeng Hong, Ruixin Zhang, Shaoxin Li, Jilin Li, Feiyue Huang, and Yongjian Wu. Aha! adaptive history-driven attack for decision-based black-box models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 16168-16177, 2021.
+Maosen Li, Cheng Deng, Tengjiao Li, Junchi Yan, Xinbo Gao, and Heng Huang. Towards transferable targeted attack. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 641-649, 2020c.
+
+Yanjie Li, Bin Xie, Songtao Guo, Yuanyuan Yang, and Bin Xiao. A survey of robustness and safety of 2d and 3d deep learning models against adversarial attacks. ACM Computing Surveys, 56(6): 1-37, 2024.
+Yujia Liu, Seyed-Mohsen Moosavi-Dezfooli, and Pascal Frossard. A geometry-inspired decision-based attack. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 4890-4898, 2019.
+Chen Ma, Xiangyu Guo, Li Chen, Jun-Hai Yong, and Yisen Wang. Finding optimal tangent points for reducing distortions of hard-label attacks. Advances in Neural Information Processing Systems, 34:19288-19300, 2021.
+Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.
+Hassan Mahmood and Ehsan Elhamifar. Semantic-aware multi-label adversarial attacks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 24251-24262, 2024.
+Thibault Maho, Teddy Furon, and Erwan Le Merrer. Surfree: a fast surrogate-free black-box attack. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10430-10439, 2021.
+Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2574-2582, 2016.
+Thomas Paniagua, Ryan Grainger, and Tianfu Wu. Quadattack: A quadratic programming approach to learning ordered top- $k$ adversarial attacks. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
+Ali Rahmati, Seyed-Mohsen Moosavi-Dezfooli, Pascal Frossard, and Huaiyu Dai. Geoda: a geometric framework for black-box adversarial attacks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 8446-8455, 2020.
+Md Farhamdur Reza, Ali Rahmati, Tianfu Wu, and Huaiyu Dai. Cgba: Curvature-aware geometric black-box attack. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 124-133, 2023.
+Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
+Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013.
+Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818-2826, 2016.
+Florian Tramér, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick McDaniel. Ensemble adversarial training: Attacks and defenses. arXiv preprint arXiv:1705.07204, 2017.
+Chun-Chen Tu, Paishun Ting, Pin-Yu Chen, Sijia Liu, Huan Zhang, Jinfeng Yi, Cho-Jui Hsieh, and Shin-Ming Cheng. Autozoom: Autoencoder-based zeroth order optimization method for attacking black-box neural networks. In Proceedings of the AAAI conference on artificial intelligence, volume 33, pp. 742-749, 2019.
+Nurislam Tursynbek, Aleksandr Petiushko, and Ivan Oseledets. Geometry-inspired top-k adversarial perturbations. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 3398-3407, 2022.
+
+Kunyu Wang, Xuanran He, Wenxuan Wang, and Xiaosen Wang. Boosting adversarial transferability by block shuffle and rotation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 24336-24346, 2024.
+Xiaosen Wang and Kun He. Enhancing the transferability of adversarial attacks through variance tuning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 1924-1933, 2021.
+Xiaosen Wang, Zeliang Zhang, Kangheng Tong, Dihong Gong, Kun He, Zhifeng Li, and Wei Liu. Triangle attack: A query-efficient decision-based adversarial attack. In European Conference on Computer Vision, pp. 156-174. Springer, 2022.
+Zhipeng Wei, Jingjing Chen, Zuxuan Wu, and Yu-Gang Jiang. Enhancing the self-universality for transferable targeted attacks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 12281-12290, 2023.
+Jiancheng Yang, Yangzhou Jiang, Xiaoyang Huang, Bingbing Ni, and Chenglong Zhao. Learning black-box attackers with transferable priors and query feedback. Advances in Neural Information Processing Systems, 33:12288-12299, 2020.
+Zekun Zhang and Tianfu Wu. Learning ordered top-k adversarial attacks via adversarial distillation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 776-777, 2020.
+
+# Appendix
+
+In this supplementary material, we provide the rationale for the design of proposed gradient estimation techniques for complicated top- $K$ scenarios in Appendix A. Additionally, we conduct an ablation study to assess the impact of non-adversarial queries on gradient estimation, and the influence of gradient-based initialization on performance, which are also discussed in Appendix A. The additional results showing the comparison of the proposed GSBA1 with top-1 baselines are given in Appendix B, while the performance comparison between GSBAK and SAK against ResNet-101 (He et al., 2016) and VGG-16 (Simonyan & Zisserman, 2014), and several robust single-label multi-class classifiers can be found in Appendix C and Appendix D, respectively. The impact of larger $K$ on the performance of GSBAK is reported in Appendix E. A brief discussion of the noise sampling process from a low-dimensional frequency space is presented in Appendix F, while potential negative impacts and limitations of GSBAK are covered in Appendix G. Finally, a number of crafted adversarial examples against single-label multi-class classification and multi-label learning are depicted in Appendix H.
+
+# A ABLATION STUDY
+
+In this section, we present an ablation study to analyze the design of the proposed gradient estimation techniques presented in Eq. 9 and Eq. 12, which estimate gradients within the adversarial regions and on the decision boundary, respectively, for the top- $K$ targeted attack. We also examine the influence of non-adversarial queries on gradient estimation at the decision boundary and how this influences the performance of the proposed attack. Furthermore, we demonstrate that our gradient-based initial boundary-finding method significantly improves attack performance when compared to random boundary point initialization.
+
+# A.1 DETAILED BREAKDOWN OF EQ. 9
+
+Finding a good initial boundary point $\boldsymbol{x}_{b_0}$ for the targeted attack is a difficult task as it requires satisfying the constraint $\hat{\mathcal{Y}}_K(\boldsymbol{x}_{b_0}) = \mathcal{Y}_K^{(t)}$ . In this section, we analyze how each component in Eq. 9 contributes to gradient estimation at a point $\boldsymbol{x}_{b_0}'$ inside the non-adversarial region to locate $\boldsymbol{x}_{b_0}$ for the targeted attack. To evaluate the effectiveness of the proposed gradient estimation, we also compare it with alternative possible methods for estimating the gradient at $\boldsymbol{x}_{b_0}'$ , providing justification for the selection of our proposed approach.
+
+Method-1: The gradient at $\boldsymbol{x}_{b_0}'$ can be estimated by comparing the prediction probabilities for $\boldsymbol{x}_{b_0}'$ with those of the perturbed queries around it. The gradient estimation is given by:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}} = \sum_ {i = 1} ^ {I _ {0}} \left(\min _ {j \in \mathcal {Y} _ {K} ^ {(t)}} P _ {j} \left(\boldsymbol {x} _ {b _ {0}} ^ {\prime} + \boldsymbol {z} _ {i}\right) - \min _ {j \in \mathcal {Y} _ {K} ^ {(t)}} P _ {j} \left(\boldsymbol {x} _ {b _ {0}} ^ {\prime}\right)\right) \cdot \boldsymbol {z} _ {i}. \tag {14}
+$$
+
+In this method, we estimate $\hat{g}_{\boldsymbol{x}_{b_0}'}$ by comparing the minimum prediction probabilities of the target classes at $\boldsymbol{x}_{b_0}'$ with the minimum of those due to the added noise. The positive difference of $\min_{j\in \mathcal{Y}_K^{(t)}}P_j(\boldsymbol{x}_{b_0}' + \boldsymbol{z}_i) - \min_{j\in \mathcal{Y}_K^{(t)}}P_j(\boldsymbol{x}_{b_0}')$ ensures the increased confidence of the target class with minimum confidence.
+
+Method-2: Inspired by the CW (Carlini & Wagner, 2017) adversarial objective, another possible approach could be as follows:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}} = \sum_ {i = 1} ^ {I _ {0}} \left(L \left(\boldsymbol {x} _ {b _ {0}} ^ {\prime} + \boldsymbol {z} _ {i}\right) - L \left(\boldsymbol {x} _ {b _ {0}} ^ {\prime}\right)\right) \cdot \boldsymbol {z} _ {i}, \tag {15}
+$$
+
+where $L(\boldsymbol{x}_{b_0}') = \min_{c \in \mathcal{Y}_K^{(t)}} P_c(\boldsymbol{x}_{b_0}') - \max_{c \notin \mathcal{Y}_K^{(t)}} P_c(\boldsymbol{x}_{b_0}')$ . This formulation leverages the difference between the minimum probability among the target classes and the maximum probability of non-target classes to calculate the gradient.
+
+Method-3: This method is solely based on only considering the impact of the first weight factor, $\sum_{c\in \mathcal{Y}_K^{(t)}}\chi_{\boldsymbol{x}_{b_0}^\prime ,c,\boldsymbol {z}_i}$ , in Eq. 9, which counts the number of target classes with increased confidence when $\phi_{\boldsymbol{x}_{b_0}^\prime}(\boldsymbol {z}_i) = 1$ , or the number of target classes with decreased confidence when $\phi_{\boldsymbol{x}_{b_0}^\prime}(\boldsymbol {z}_i) =$
+
+Table 3: Caparison of different gradient estimations with the proposed gradient in Eq. 9 to locate the initial boundary for top- $K$ targeted attacks.
+
+
Grad Estimator
l2(median)
Q(median)
l2(mean)
Q(mean)
top-1
Method-1
9.82
1802.50
10.01
2131.12
Method-3
11.30
2439.00
11.46
2811.12
Method-4
9.82
1802.50
10.01
2131.12
Proposed
9.82
1802.50
10.01
2131.12
top-2
Method-1
12.17
2950.50
12.64
3439.31
Method-3
12.74
3074.50
13.14
3693.56
Method-4
11.98
2733.50
12.59
3429.07
Proposed
12.12
2750.50
12.57
3352.49
top-3
Method-1
14.06
4258.00
14.83
4920.10
Method-3
14.12
4159.50
14.76
4899.33
Method-4
14.01
4175.00
14.71
4753.59
Proposed
13.70
3896.00
14.30
4452.22
top-4
Method-1
17.20
5818.00
26.99
6862.56
Method-3
16.10
5151.50
16.77
5995.36
Method-4
16.60
5322.00
17.28
6505.02
Proposed
15.24
4640.00
16.17
5666.69
top-5
Method-1
19.68
7368.00
20.27
9153.95
Method-3
17.39
6097.00
18.77
7305.30
Method-4
18.06
6779.00
19.12
8364.68
Proposed
17.14
5709.50
18.03
7042.50
+
+-1. Using only this factor, the gradient is estimated as:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}} = \sum_ {i = 1} ^ {I _ {0}} \left(\sum_ {c \in \mathcal {Y} _ {K} ^ {(t)}} \chi_ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}, c, \boldsymbol {z} _ {i}}\right) \cdot \phi_ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}} \left(\boldsymbol {z} _ {i}\right) \cdot \boldsymbol {z} _ {i}, \tag {16}
+$$
+
+where the indicator function $\phi_{\pmb{x}_{b_0}'}(z_i)$ is defined in Eq. 7.
+
+Method-4: This method focuses on the second weight factor $\sum_{c\in \mathcal{Y}_K^{(t)}}w_{\boldsymbol{x}_{b_0}^\prime ,c,\boldsymbol{z}_i}\chi_{\boldsymbol{x}_{b_0}^\prime ,c,\boldsymbol{z}_i}$ , in Eq. 9 to estimate the gradient at $\boldsymbol{x}_{b_0}^\prime$ . It computes the weight associated with $\boldsymbol{z}_i$ by summing the changes in prediction probabilities of the classes $c\in \mathcal{Y}_K^{(t)}$ either with increased confidence when $\phi_{\boldsymbol{x}_{b_0}^\prime}(\boldsymbol{z}_i) = 1$ or with decreased in confidence when $\phi_{\boldsymbol{x}_{b_0}^\prime}(\boldsymbol{z}_i) = -1$ . The gradient estimation using Method-4 is given as follows:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}} = \sum_ {i = 1} ^ {I _ {0}} \left(\sum_ {c \in \mathcal {Y} _ {K} ^ {(t)}} w _ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}, c, \boldsymbol {z} _ {i}} \cdot \chi_ {\boldsymbol {x} _ {b _ {0}} ^ {\prime}, c, \boldsymbol {z} _ {i}}\right) \cdot \boldsymbol {z} _ {i}. \tag {17}
+$$
+
+Comparative analysis. We compare the performance of the aforementioned gradient estimation methods with our proposed gradient estimation to show its effectiveness in finding the initial boundary $\boldsymbol{x}_{b_0}$ . To conduct the comparison, we randomly selected 100 test samples from the ImageNet (Deng et al., 2009) dataset and measured the median and mean query counts required to locate $\boldsymbol{x}_{b_0}$ as well as the median and mean $\ell_2$ -distance of obtained boundary points from the corresponding source images by performing attacks against ResNet50 (He et al., 2016). The results are demonstrated in Table 3. We exclude Method-2 which is based on CW adversarial objective, as experimentally it is observed that it often fails to find $\boldsymbol{x}_{b_0}$ in aggressive top-K setting. This is because $L(\boldsymbol{x}_{b_0}' + \boldsymbol{z}_i) - L(\boldsymbol{x}_{b_0}') > 0$ doesn't mean that it increases the confidence towards the adversarial reason, and vice versa. One possible reason among numerous reasons of failure of Method-2 could be, because of the added $\boldsymbol{z}_i$ with $\boldsymbol{x}_{b_0}'$ , while $\min_{c\in \mathcal{Y}_K^{(t)}}P_c(\boldsymbol{x}_{b_0}' + \boldsymbol{z}_i)\approx \min_{c\in \mathcal{Y}_K^{(t)}}P_c(\boldsymbol{x}_{b_0}')$ , $\max_{c\not\in\mathcal{Y}_K^{(t)}}P_c(\boldsymbol{x}_{b_0}' + \boldsymbol{z}_i) < \max_{c\not\in\mathcal{Y}_K^{(t)}}P_c(\boldsymbol{x}_{b_0}')$ along with an enhanced confidence among classes $c\in [C]\setminus \mathcal{Y}_K^{(t)}$ that doesn't meet the goal to find the direction to enhance the confidence towards the adversarial region.
+
+In the top-1 setting, Method-1, Method-4 and the proposed gradient estimation offer the same strong performance in locating the initial boundary, as these methods converge to the same expression in this setting. However, from Table 3, the efficiency of Method-1 diminishes as $K$ increases. The performance deterioration is because Method-1 compares $\min_{c \in \mathcal{Y}_K^{(t)}} P_c(\boldsymbol{x}_{b_0}' + \boldsymbol{z}_i)$
+
+and $\min_{c\in \mathcal{Y}_K^{(t)}}P_c(\pmb{x}_{b_0}')$ , but fails to account for the influence of $z_{i}$ on all target classes $c\in \mathcal{Y}_K^{(t)}$ . In contrast, Method-3 and Method-4 incorporate the impact of $z_{i}$ on each of the target classes. While Method-3 counts the number of target classes with increased (or decreased) confidence when $\phi_{\pmb{x}_{b_0}'}(\pmb{z}_i) = 1$ (or $\phi_{\pmb{x}_{b_0}'}(\pmb{z}_i) = -1$ ), Method-4 considers the strength of these classes. As demonstrate in Table 3, the query efficiency of Method-3 increases with higher $K$ , and the Method-4 is query efficient than Method-1 in locating $\pmb{x}_{b_0}$ for $K > 1$ . Nevertheless, the proposed gradient estimation method, which takes account of both Method-3 and Method-4, demonstrates superior performance in locating the initial boundary $\pmb{x}_{b_0}$ .
+
+# A.2 DETAILED BREAKDOWN OF EQ. 12
+
+The proposed gradient estimation for the top- $K$ targeted attack at a decision boundary point, $\pmb{x}_{b_n}$ , involves two key components: the count of target classes with increased (or decreased) confidence $\sum_{c\in \mathcal{Y}_K^{(t)}}\zeta_{\pmb{x}_{b_n},c,\pmb{z}_i}$ and the sum of the increased (or decreased) prediction probability of these classes presented as $\sum_{c\in \mathcal{Y}_K^{(t)}}w_{\pmb{x}_{b_n},c,\pmb{z}_i}\zeta_{\pmb{x}_{b_n},c,\pmb{z}_i}$ if the query is adversarial (or non-adversarial). Before delving into the impact of these components on attack performance, we explore alternative possible gradient estimation approaches.
+
+Approach 1: In this scenario, we consider a more challenging setting for the gradient estimation, where an adversary only knows whether a query is within the adversarial region without obtaining prediction probabilities from the classifier as employed by CGBA (Reza et al., 2023). The estimated gradient on $\boldsymbol{x}_{b_n}$ in this challenging setting is expressed as:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {n}}} = \sum_ {i = 1} ^ {I _ {n}} \mathbb {1} \left(\boldsymbol {x} _ {b _ {n}} + \boldsymbol {z} _ {i}\right) \cdot \boldsymbol {z} _ {i}. \tag {18}
+$$
+
+**Approach 2:** In this approach, the adversary has access to prediction probabilities of all the classes, and the gradient estimation is done by summing the changes in predictions of all the target classes in $\mathcal{Y}_K^{(t)}$ . The gradient estimation using this approach is given as:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {n}}} = \sum_ {i = 1} ^ {I _ {n}} \left(\sum_ {c \in \mathcal {Y} _ {K} ^ {(t)}} w _ {\boldsymbol {x} _ {b _ {n}}, c, \boldsymbol {z} _ {i}}\right) \cdot \boldsymbol {z} _ {i}, \tag {19}
+$$
+
+where $w_{\boldsymbol{x}_{b_n},c,\boldsymbol{z}_i} = P_c(\boldsymbol{x}_{b_n} + \boldsymbol{z}_i) - P_c(\boldsymbol{x}_{b_n})$ is defined in Eq. 5. More weight is assigned to $\boldsymbol{z}_i$ , if the aggregated change across $\mathcal{Y}_K^{(t)}$ is higher.
+
+Approach 3: To estimate the gradient at the boundary point $\boldsymbol{x}_{b_n}$ , we may compare the minimum confidence among the target classes in $\mathcal{V}_K^{(t)}$ at $\boldsymbol{x}_{b_n}$ with that of the queries around it by adding noise $\boldsymbol{z}_i$ to $\boldsymbol{x}_{b_n}$ , and it can be represented as:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {n}}} = \sum_ {i = 1} ^ {I _ {n}} \left(\min _ {c \in \mathcal {Y} _ {K} ^ {(t)}} P _ {c} \left(\boldsymbol {x} _ {b _ {n}} + \boldsymbol {z} _ {i}\right) - \min _ {c \in \mathcal {Y} _ {K} ^ {(t)}} P _ {c} \left(\boldsymbol {x} _ {b _ {n}}\right)\right) \cdot \boldsymbol {z} _ {i}. \tag {20}
+$$
+
+This gradient estimator estimates the direction to enhance the minimum confidence among $\mathcal{V}_K^{(t)}$ .
+
+Approach 4: Having the access to the prediction probabilities of all the classes, the misclassification objective of the popular Carlini-Wagner (CW) (Carlini & Wagner, 2017) can be adapted to estimate the gradient at $\boldsymbol{x}_{b_n}$ for the top- $K$ attack, and it is given as follows:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {n}}} = \sum_ {i = 1} ^ {I _ {n}} \left(\min _ {c \in \mathcal {Y} _ {K} ^ {(t)}} P _ {c} \left(\boldsymbol {x} _ {b _ {n}} + \boldsymbol {z} _ {i}\right) - \max _ {c \notin \mathcal {Y} _ {K} ^ {(t)}} P _ {c} \left(\boldsymbol {x} _ {b _ {n}} + \boldsymbol {z} _ {i}\right)\right) \cdot \boldsymbol {z} _ {i}. \tag {21}
+$$
+
+Approach 5: The CW adversarial objective in optimizing the $\ell_2$ -norm of perturbation is originally given in terms of logits $\mathcal{L}$ of the classifier that is related with the prediction probabilities for a given input $\pmb{x}$ as: $P(\pmb{x}) = \mathrm{softmax}(\mathcal{L}(\pmb{x}))$ . With the access of logits, Eq. 21 can be rewritten as:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {n}}} = \sum_ {i = 1} ^ {I _ {n}} \left(\min _ {c \in \mathcal {Y} _ {K} ^ {(t)}} \mathcal {L} _ {c} \left(\boldsymbol {x} _ {b _ {n}} + \boldsymbol {z} _ {i}\right) - \max _ {c \notin \mathcal {Y} _ {K} ^ {(t)}} \mathcal {L} _ {c} \left(\boldsymbol {x} _ {b _ {n}} + \boldsymbol {z} _ {i}\right)\right) \cdot \boldsymbol {z} _ {i}. \tag {22}
+$$
+
+
+(a) top-1
+
+
+(b) top-2
+Figure 7: Comparing the variation of $\ell_2$ -norm of perturbations with queries of different gradient estimation approaches on the decision boundary with our proposed gradient estimation in Eq. 12 in crafting diverse top- $K$ targeted adversarial examples.
+
+
+(c) top-3
+
+
+(d) top-4
+
+Approach 6: Considering only the first component of the weight to $\mathbf{z}_i$ in Eq. 12, the estimated gradient can be expressed as:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {n}}} = \sum_ {i = 1} ^ {I _ {n}} \left(\sum_ {c \in \mathcal {Y} _ {K} ^ {(t)}} \zeta_ {\boldsymbol {x} _ {b _ {n}}, c, \boldsymbol {z} _ {i}}\right) \cdot \mathbb {1} \left(\boldsymbol {x} _ {b _ {n}} + \boldsymbol {z} _ {i}\right) \cdot \boldsymbol {z} _ {i}, \tag {23}
+$$
+
+where $\sum_{c\in \mathcal{Y}_K^{(t)}}\zeta_{\boldsymbol{x}_{b_n},c,\boldsymbol{z}_i}$ counts the number of target classes with increased (or decreased) confidence towards the adversarial region if the query $\boldsymbol{x}_{b_n} + \boldsymbol{z}_i$ is adversarial (or non-adversarial).
+
+Approach 7: In this case, we consider the second component of the weight to $\mathbf{z}_i$ in Eq. 12, which aggregates the changes in confidence of the classes $c \in \mathcal{V}_K^{(t)}$ such that $\zeta_{\mathbf{x}_{b_n},c,\mathbf{z}_i} = 1$ , to estimate the gradient at $\mathbf{x}_{b_n}$ . Thus,
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {n}}} = \sum_ {i = 1} ^ {I _ {n}} \left(\sum_ {c \in \mathcal {Y} _ {K} ^ {(t)}} w _ {\boldsymbol {x} _ {b _ {n}}, c, \boldsymbol {z} _ {i}} \cdot \zeta_ {\boldsymbol {x} _ {b _ {n}}, c, \boldsymbol {z} _ {i}}\right) \cdot \boldsymbol {z} _ {i}. \tag {24}
+$$
+
+Comparative analysis. We present a comparative analysis of the aforementioned gradient estimation approaches with our proposed gradient estimation, as expressed in Eq. 12, on the decision boundary for targeted attacks. To facilitate the comparison, we randomly choose 100 images from the ImageNet (Deng et al., 2009) dataset and perform attacks against the popular pre-trained ResNet-50 (He et al., 2016) classifier. For a particular top-K and a source image, all the attacks using different estimation techniques start from a same randomly chosen initial boundary point.
+
+In Fig. 7a, it is evident that all attacks utilizing prediction probabilities for gradient estimation outperform Approach-1, which solely relies on the classifier's decision to estimate the gradient for crafting top-1 adversarial examples. In this top-1 setting, the gradient estimation with Approach-6 closely resembles that of the decision-based (Approach-1). The weight associated with $\mathbf{z}_i$ using Approach-6 reduces to $(\zeta_{\mathbf{x}_{b_n},y_t,\mathbf{z}_i}\mathbb{1}(\mathbf{x}_{b_n} + \mathbf{z}_i)) \in \{-1,0,1\}$ , where $y_t$ is the target label. The key advantage of gradient estimation using Approach-6 is that it excludes anomalous queries—those are non-adversarial but increase the confidence toward the target class, and vice versa. In multi-class classification problems, there might be scenarios, for a target class $y_t$ , though $P_{y_t}(\mathbf{x}_{b_n} + \mathbf{z}_i) - P_{y_t}(\mathbf{x}_{b_n}) > 0$ , the query $\mathbf{x}_{b_n} + \mathbf{z}_i$ is still non-adversarial $(P_c(\mathbf{x}_{b_n} + \mathbf{z}_i) > P_{y_t}(\mathbf{x}_{b_n} + \mathbf{z}_i)$ for a $c \in [C] \setminus \{y_t\}$ ). Since the decision-based approach (Approach-1) treats all queries equally by assigning unit absolute value weights of either -1 or 1 to $\mathbf{z}_i$ based on whether a query is adversarial, irrespective of considering the discussed phenomenon, the inclusion of anomalous queries negatively impacts the performance of the attack using it.
+
+In the top-1 setting, attacks with Approach-2, Approach-3, Approach-7, and the proposed gradient estimation offer quite strong performance. Approach-2 and Approach-3, essentially reduce to the same expression in top-1 setting, account for all queries by evaluating the increase or decrease in confidence toward the target class from the decision boundary, using this change in confidence as a weight for $z_{i}$ . Both Approach-7 and the proposed method (essentially both reduce to the same expression under top-1 setting) also assign weights based on the change in confidence, similar to Approach-2 and Approach-3, but they exclude anomalous queries. However, Approach-2 and Approach-3 still perform comparably to the proposed gradient estimation method, as the weights associated with the anomalous queries are relatively small. Now, turning to Approach-4 and Approach-5, which are based on CW adversarial objective, gradient esti
+
+mation using these approaches is not optimal. With these approaches, on the decision boundary, $\min_{c\in \mathcal{Y}_K^{(t)}}P_c(\boldsymbol{x}_{b_n} + \boldsymbol{z}_i) - \max_{c\notin \mathcal{Y}_K^{(t)}}P_c(\boldsymbol{x}_{b_n} + \boldsymbol{z}_i) > 0\Rightarrow \mathbb{1}(\boldsymbol{x}_{b_n} + \boldsymbol{z}_i))$ , and vice versa. Thus, there are no difficulties with anomalous queries. The possible reasons behind this sub-optimal performance by these approaches because the weights that are calculated based on the difference between the minimum prediction score among the target classes and the maximum prediction score among the other classes. This weighting does not accurately reflect the increase in confidence toward the target class from the decision boundary, leading to less effective gradient estimations.
+
+Turning to Figs. 7b, 7c and 7d, we observed that when $K > 1$ , Approach-2, which sums the changes in prediction probability across all target classes in $\mathcal{Y}_K^{(t)}$ , performs well for top-1 attacks but suffers a significant performance drop, even bellow Approach-1, when $K$ increases. The degradation in performance for Approach-2 is attributed to the fact that the likelihood of $\sum_{c\in \mathcal{Y}_K^{(t)}}w_{x_b,c,z_i} > 0$ when the query $x_{b_n} + z_i$ is adversarial decreases with the increase of $K$ , while the expectation is with an adversarial query, the weight assigned to $z_i$ should be positive. Consequently, as $K$ grows, gradient estimation with Approach-2 becomes less accurate and struggles to converge. Likewise, Approach-3 also suffers from a similar performance drop with $K$ . This is because, on the decision boundary, the difference between $\min_{c\in \mathcal{Y}_K^{(t)}}P_c(\boldsymbol{x}_{b_n} + \boldsymbol{z}_i)$ and $\min_{c\in \mathcal{Y}_K^{(t)}}P_c(\boldsymbol{x}_{b_n})$ does not carry too much information of whether the query $x_{b_n} + z_i$ is adversarial. The probability of $\min_{c\in \mathcal{Y}_K^{(t)}}P_c(\boldsymbol{x}_{b_n} + \boldsymbol{z}_i) - \min_{c\in \mathcal{Y}_K^{(t)}}P_c(\boldsymbol{x}_{b_n}) > 0$ when a query is adversarial reduces as well with higher $K$ using this approach that enhances the likelihood of the anomalous queries. Approaches based on the CW adversarial objective, such as Approach-4 and Approach-5, continue to exhibit sub-optimal performance for higher $K$ due to the issues previously discussed.
+
+For Approach-6 and Approach-7—where Approach-6 counts the number of target classes with increased (or decreased) confidence if the query is adversarial (or non-adversarial), and Approach-7 sums the confidence increases (or decreases) for these classes—while Approach-6 consistently outperforms all other aforementioned approaches for higher $K$ , Approach-7 outperforms those when $K$ is smaller. For a query at $x_{b_n}$ with added $z_i$ on the decision boundary, these approaches focus on the impact of $z_i$ on each of the target classes rather than looking at a whole. For example, they do not consider the impact of $z_i$ on the class arg $\min_{c \in \mathcal{Y}_K^{(t)}} P_c(x_{b_n} + z_i)$ , but all classes in $\mathcal{Y}_K^{(t)}$ . They assign more weight to $z_i$ in estimating gradient, if it impacts more target classes. By incorporating the indicator function $\zeta_{x_{b_n}, c, z_i}$ , they exclude queries that are adversarial but do not positively impact any $c \in \mathcal{Y}_K^{(t)}$ . Notably, our proposed gradient estimation method, which integrates the strengths of both Approach-6 and Approach-7, outperforms all other approaches when $K > 1$ .
+
+# A.3 IMPACT OF NON-ADVERSARIAL QUERIES
+
+The proposed GSBA $^{\text{K}}$ calculates gradients by incorporating both adversarial and non-adversarial queries. When estimating gradients at a boundary point $\boldsymbol{x}_{b_n}$ , if a query $\boldsymbol{x}_q = \boldsymbol{x}_{b_n} + \boldsymbol{z}_i$ is non-adversarial due to added noise $\boldsymbol{z}_i$ , GSBA $^{\text{K}}$ incorporates this noise by inverting it and scaling it with the absolute value of the weights assigned to $\boldsymbol{z}_i$ in Eq. 12 for targeted attacks and Eq. 13 for untargeted attacks. Eq. 13 can be rewritten as follows:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {n}}} = \sum_ {i = 1} ^ {I _ {n}} | F _ {\boldsymbol {x} _ {b _ {n}} + \boldsymbol {z} _ {i}} | \mathbb {1} \left(\boldsymbol {x} _ {b _ {n}} + \boldsymbol {z} _ {i}\right) \boldsymbol {z} _ {i}. \tag {25}
+$$
+
+Likewise, Eq. 12 can be rewritten as:
+
+$$
+\boldsymbol {g} _ {\boldsymbol {x} _ {b _ {n}}} = \sum_ {i = 1} ^ {I _ {n}} \left(\sum_ {c \in \mathcal {Y} _ {K} ^ {(t)}} \zeta_ {\boldsymbol {x} _ {b _ {n}}, c, \boldsymbol {z} _ {i}}\right) \mid \sum_ {c \in \mathcal {Y} _ {K} ^ {(t)}} w _ {\boldsymbol {x} _ {b _ {n}}, c, \boldsymbol {z} _ {i}} \zeta_ {\boldsymbol {x} _ {b _ {n}}, c, \boldsymbol {z} _ {i}} | \mathbb {1} (\boldsymbol {x} _ {b _ {n}} + \boldsymbol {z} _ {i}) \boldsymbol {z} _ {i}. \tag {26}
+$$
+
+Fig. 8 compares the performance of the proposed attack in crafting top-1 adversarial examples when estimating gradients using both adversarial and non-adversarial queries versus considering only adversarial queries for both untargeted and targeted attacks. These experiments are conducted against the ResNet-50 (He et al., 2016) classifier using 100 correctly classified images from ImageNet (Deng et al., 2009). While Fig. 8a and Fig. 8c depict the obtained median $\ell_2$ -norm of perturbation for different query budget for untargeted and targeted attacks, respectively, Fig. 8b and Fig. 8d demonstrate the corresponding attack success rate (ASR) with a perturbation threshold $r_{th} = 2$ and $r_{th} = 4$
+
+
+(a) Untargeted
+
+
+Figure 8: Impact of non-adversarial queries in estimating the gradients at decision boundary on crafting top-1 untargeted and targeted adversarial examples against ResNet-50.
+
+
+(b) Untargeted, $r_{th} = 2$
+(c) Targeted
+
+
+(d) Targeted, $r_{th} = 4$
+
+for untargeted and targeted attacks, respectively. The results clearly demonstrate that incorporating both adversarial and non-adversarial queries in gradient estimation results in improved performance compared to not considering non-adversarial queries in gradient estimation.
+
+# A.4 IMPACT OF GRADIENT-BASED SEARCH FOR INITIAL BOUNDARY POINT
+
+Geometric attacks start by finding an initial boundary point and then iteratively reduce the perturbation by utilizing the decision boundary's geometry. In literature, untargeted decision-based attacks find the initial boundary point in a random direction, while targeted attacks find it by using BinarySearch between the source and an image with the target class. Instead of employing a random direction or binary search to locate the initial boundary point, the proposed $\mathrm{GSBA}^{\mathrm{K}}$ employs the estimated gradient direction for both untargeted and targeted attacks. Fig. 9 demonstrates the significant improvement in the median $\ell_{2}$ -norm
+
+of perturbation in crafting 100 top-1 adversarial examples against the ResNet-50 classifier using the gradient-based initial boundary finding approach for both untargeted and targeted attacks.
+
+
+(a) Untargeted
+Figure 9: Impact of gradient-based initialization against ResNet-50.
+
+
+(b) Targeted
+
+
+
+
+(a) $r_{th} = 2$ , Untargeted
+(e) $r_{th} = 2$ , Untargeted
+
+
+
+
+(b) $r_{th} = 4$ , Untargeted
+(f) $r_{th} = 4$ , Untargeted
+
+
+
+
+(c) $r_{th} = 4$ Targeted
+(g) $r_{th} = 4$ , Targeted
+
+
+
+
+(d) $r_{th} = 6$ Targeted
+(h) $r_{th} = 6$ Targeted
+
+Figure 10: $\mathrm{ASR}(\%)$ versus queries in generating top-1 adversarial examples for different perturbation thresholds utilizing GSBA $^1$ and baseline attacks against single-label multi-class classifiers VGG-16 and ResNet-101 on ImageNet. GSBA $^1$ outperforms the baselines for both the untargeted and targeted attacks.
+
+Table 4: ASR(%) for different perturbation thresholds $\left( {r}_{th}\right)$ and query budgets against VGG-16.
+
+
Attack Type
Untargeted Attack
Targeted Attack
Queries
1000
5000
10000
20000
30000
5000
10000
20000
30000
40000
VGG-16
top-1
SA1GSBA1
rth=1
24.8
49.8
62.4
72.5
77.8
rth=2
1.8
7.0
15.1
24.4
29.8
31.1
64.0
83.0
90.1
91.0
11.2
28.0
52.0
63.4
71.0
SA1GSBA1
rth=2
49.6
77.7
89.9
94.0
96.3
rth=4
17.9
36.4
58.2
69.1
74.6
50.1
91.0
98.0
99.1
99.1
48.1
76.6
94.4
97.1
99.0
SA1GSBA1
rth=4
79.2
95.9
98.1
99.3
99.8
rth=6
38.9
62.5
78.6
84.7
88.8
85.9
97.9
99.0
99.2
100.0
74.7
93.9
99.5
100.0
100.0
top-2
SA2GSBA2
rth=1
9.8
27.9
40.3
54.0
59.7
rth=2
0.4
1.8
5.4
10.9
14.1
14.0
42.1
61.1
72.1
79.0
3.4
11.7
29.3
40.8
47.3
SA2GSBA2
rth=2
29.1
59.4
74.1
83.9
87.9
rth=4
7.5
18.3
35.2
44.6
49.7
37.0
79.9
94.0
97.1
99.0
25.7
50.6
75.0
85.6
89.8
SA2GSBA2
rth=4
62.0
89.7
95.3
97.7
98.3
rth=6
21.6
37.3
55.7
63.4
67.0
63.0
97.0
97.1
99.0
100.0
47.7
74.6
93.0
95.1
96.0
top-3
SA3GSBA3
rth=1
4.9
15.5
26.5
40.5
45.6
rth=2
0.2
0.8
2.4
5.3
8.0
7.9
33.1
49.9
69.0
72.1
1.5
5.8
17.5
24.7
33.2
SA3GSBA3
rth=2
17.8
46.7
62.6
74.8
81.0
rth=4
4.2
11.9
22.4
29.2
32.4
24.0
72.1
87.1
95.1
97.1
11.1
32.7
59.2
70.2
76.0
SA3GSBA3
rth=4
50.4
82.8
91.9
96.0
97.3
rth=6
12.9
24.8
36.0
42.1
47.0
52.1
93.0
97.0
98.0
99.0
26.8
57.1
74.9
83.2
86.3
top-4
SA4GSBA4
rth=1
2.3
12.7
20.4
33.3
38.5
rth=2
0.2
0.3
1.6
3.9
5.1
4.0
23.0
41.9
57.1
62.0
0.8
3.6
11.4
16.2
20.6
SA4GSBA4
rth=2
13.0
41.8
53.9
69.4
75.9
rth=4
2.3
5.9
13.4
19.1
21.3
15.1
58.0
79.0
92.9
93.9
6.7
18.1
40.2
53.2
60.8
SA4GSBA4
rth=4
45.4
78.0
88.7
95.2
96.3
rth=6
6.4
15.7
23.6
31.0
32.8
42.0
89.1
95.9
97.9
98.1
15.0
37.8
60.9
69.7
75.4
+
+Table 5: ASR(%) for different perturbation thresholds ( $r_{th}$ ) and query budgets against ResNet-101.
+
+
Attack Type
Untargeted Attack
Targeted Attack
Queries
1000
5000
10000
20000
30000
5000
10000
20000
30000
40000
ResNet-101
top-1
SA1GSBA1
rth=1
27.3
44.7
52.6
61.8
65.5
rth=2
3.8
6.8
14.1
21.4
25.7
28.2
59.6
72.8
83.4
85.4
8.5
23.0
44.9
59.7
67.9
SA1GSBA1
rth=2
47.3
71.2
81.1
88.9
91.2
rth=4
17.4
34.3
54.4
64.7
69.4
49.1
83.5
93.0
97.5
98.8
32.7
65.7
90.0
96.4
98.0
SA1GSBA1
rth=4
73.0
93.0
97.8
99.2
99.9
rth=6
35.2
55.9
78.8
86.1
90.8
70.9
95.7
99.4
99.8
100.0
58.5
88.6
97.7
99.6
99.7
top-2
SA2GSBA2
rth=1
11.4
24.5
32.6
43.0
44.0
rth=2
1.2
2.6
5.8
8.7
11.1
11.3
38.6
52.9
67.0
73.3
1.9
8.9
24.1
34.8
42.0
SA2GSBA2
rth=2
27.7
53.1
63.4
73.4
77.7
rth=4
7.2
14.3
28.2
39.2
46.5
27.8
66.2
82.5
94.0
96.0
14.8
38.5
67.9
79.4
87.7
SA2GSBA2
rth=4
54.9
82.6
91.2
96.7
97.7
rth=6
14.5
30.9
52.7
62.1
68.1
48.3
87.7
95.8
99.4
99.6
29.8
61.7
88.6
95.0
96.9
top-3
SA3GSBA3
rth=1
6.4
17.3
26.3
35.6
40.5
rth=2
0.9
1.4
2.7
4.1
4.8
6.6
28.7
42.4
58.8
66.6
1.3
4.6
12.5
21.1
28.7
SA3GSBA3
rth=2
19.8
41.5
52.8
63.3
68.1
rth=4
3.3
7.2
15.2
20.3
22.9
16.6
55.3
74.9
88.2
92.1
6.3
22.7
47.6
61.2
72.2
SA3GSBA3
rth=4
43.0
74.0
83.9
92.2
94.4
rth=6
8.7
16.7
29.7
38.9
43.7
38.2
81.8
94.1
98.3
99.5
16.7
41.4
72.7
83.6
89.6
top-4
SA4GSBA4
rth=1
3.8
12.0
17.0
23.1
26.2
rth=2
0.5
0.8
1.3
2.1
2.9
3.4
20.9
35.6
50.2
58.4
0.5
1.4
6.7
12.2
16.9
SA4GSBA4
rth=2
13.6
35.6
46.3
58.4
62.6
rth=4
1.5
5.0
8.1
11.8
14.8
11.9
47.4
69.3
83.4
88.5
2.4
12.5
30.5
44.8
53.5
SA4GSBA4
rth=4
38.3
68.3
79.5
87.9
92.5
rth=6
3.7
9.3
17.3
22.7
28.3
31.8
74.6
90.4
97.2
98.5
8.0
25.3
53.2
70.1
78.7
+
+# B COMPARISON WITH top-1 BASELINES
+
+Fig. 10 depicts the variation of ASR with differing query budgets across various $r_{th}$ values, comparing the performance of GSBA1 with the baselines SimBA-DCT (Guo et al., 2019a), PPBA (Li et al., 2020b) and SA (Andriushchenko et al., 2020) in generating top-1 untargeted and targeted adversarial examples against the VGG-16 (Simonyan & Zisserman, 2014) and ResNet-101 (He et al., 2016) single-label multi-class classifiers on the ImageNet dataset (Deng et al., 2009). The depicted curves are derived from 1000 randomly selected samples correctly classified by the respective classifier. From this figure, GSBA1 shows significantly better ASR in crafting adversarial examples with small perturbation thresholds for untargeted attacks. For targeted attacks, on the other hand, the proposed GSBA1 outperforms the baselines by a considerable margin in ASR performance. The obtained ASR against VGG-16 and ResNet-101 is quite similar to the one obtained for ResNet-50, as demonstrated in the main paper.
+
+
+(a) Untargeted
+
+
+(b) Untargeted
+
+
+(c) Untargeted
+
+
+(d) Targeted
+
+
+(e) Targeted
+
+
+(f) Targeted
+Figure 11: ASR(\%) versus queries in crafting up to top-4 adversarial examples for different perturbation thresholds utilizing $\mathrm{GSBA}^{\mathrm{K}}$ and $\mathrm{SA}^{\mathrm{K}}$ against single-label multi-class classifier VGG-16 on ImageNet. $\mathrm{GSBA}^{\mathrm{K}}$ consistently outperforms the state-of-the-art baseline $\mathrm{SA}^{\mathrm{K}}$ in crafting untargeted adversarial examples, with larger gains when the perturbation threshold is smaller and/or the query budget is larger. Moreover, the relative gain in ASR of $\mathrm{GSBA}^{\mathrm{K}}$ over $\mathrm{SA}^{\mathrm{K}}$ increases with $K$ . For the targeted attack, $\mathrm{GSBA}^{\mathrm{K}}$ offers significantly better ASR than $\mathrm{SA}^{\mathrm{K}}$ across the board.
+
+
+
+
+
+
+
+
+(a) Untargeted
+(d) Targeted
+Figure 12: ASR(\%) versus queries in crafting up to top-4 adversarial examples for different perturbation thresholds utilizing $\mathrm{GSBA}^{\mathrm{K}}$ and $\mathrm{SA}^{\mathrm{K}}$ against single-label multi-class classifier ResNet-101 on ImageNet. $\mathrm{GSBA}^{\mathrm{K}}$ consistently outperforms the state-of-the-art baseline $\mathrm{SA}^{\mathrm{K}}$ in crafting untargeted adversarial examples, with larger gains when the perturbation threshold is smaller and/or the query budget is larger. Moreover, the relative gain in ASR of $\mathrm{GSBA}^{\mathrm{K}}$ over $\mathrm{SA}^{\mathrm{K}}$ increases with $K$ . For the targeted attack, $\mathrm{GSBA}^{\mathrm{K}}$ offers significantly better ASR than $\mathrm{SA}^{\mathrm{K}}$ across the board.
+
+
+(b) Untargeted
+(e) Targeted
+
+
+(c) Untargeted
+(f) Targeted
+
+Table 6: $\mathrm{{ASR}}\left( \% \right)$ by ${\mathrm{{SA}}}^{\mathrm{K}}$ and ${\mathrm{{GSBA}}}^{\mathrm{K}}$ against different robust classifiers.
+
+
Attack
Inc-v3adv
IR-v2ens
RN50IN
RN50fine
RN50Aux
Untargeted
SA1
80.0
63.0
71.0
76.0
63.0
GSBA1
82.0
69.0
81.0
86.0
75.0
SA2
63.0
38.0
50.0
52.0
37.0
GSBA2
72.0
54.0
66.0
65.0
54.0
SA3
51.0
30.0
41.0
43.0
25.0
GSBA3
64.0
44.0
55.0
58.0
44.0
SA4
41.0
26.0
35.0
36.0
20.0
GSBA4
55.0
35.0
46.0
47.0
33.0
SA1
88.0
81.0
90.0
93.0
89.0
GSBA1
94.0
93.0
97.0
100.0
97.0
SA2
79.0
63.0
78.0
79.0
63.0
GSBA2
91.0
85.0
96.0
97.0
97.0
SA3
73.0
58.0
69.0
75.0
54.0
GSBA3
87.0
83.0
95.0
95.0
86.0
SA4
67.0
49.0
58.0
62.0
44.0
GSBA4
86.0
80.0
92.0
95.0
85.0
Targeted
SA1
27.0
15.0
69.0
75.0
55.0
GSBA1
62.0
39.0
95.0
93.0
86.0
SA2
8.0
8.0
39.0
48.0
24.0
GSBA2
35.0
20.0
79.0
78.0
63.0
SA3
2.0
4.0
26.0
30.0
15.0
GSBA3
20.0
13.0
60.0
65.0
42.0
SA4
0.0
5.0
16.0
19.0
10.0
GSBA4
8.0
10.0
42.0
46.0
27.0
SA1
44.0
22.0
94.0
97.0
87.0
GSBA1
96.0
74.0
100.0
100.0
99.0
SA2
15.0
12.0
79.0
78.0
59.0
GSBA2
74.0
51.0
99.0
98.0
98.0
SA3
7.0
7.0
61.0
59.0
34.0
GSBA3
46.0
39.0
94.0
95.0
89.0
SA4
4.0
6.0
46.0
38.0
26.0
GSBA4
32.0
25.0
89.0
93.0
80.0
+
+# C ADDITIONAL RESULTS FOR top-K ON IMAGENET
+
+Table 4 and Table 5 compares the obtained ASR of SOTA baseline $\mathrm{SA}^{\mathrm{K}}$ and proposed GSBA against single-label multi-class classifiers VGG-16 (Simonyan & Zisserman, 2014) and ResNet-101 (He et al., 2016), respectively, for both the untargeted and targeted attacks for different query budgets and perturbation thresholds $r_{th}$ in crafting up to top-4 adversarial examples on ImageNet (Deng et al., 2009). The corresponding curves demonstrating ASR versus query budgets against VGG-16 and ResNet-101 are depicted in Fig. 11 and Fig. 12, respectively.
+
+As can be seen from the results for untargeted attacks, the ASR against VGG-16 and ResNet-101 closely mirrors our findings against ResNet-50. The performance of the proposed $\mathrm{GSBA}^{\mathrm{K}}$ consistently outperforms the state-of-the-art score-based attack $\mathrm{SA}^{\mathrm{K}}$ in crafting adversarial examples, with larger gains when the perturbation threshold is smaller and/or the query budget is larger. When the query budget is small, all black-box attack methods are limited, so no significant gain can be expected; on the other hand, when the allowed perturbation threshold is large, the state-of-the-art method already achieves satisfactory performance, so no significant gain can be expected either. Moreover, the relative gain in ASR of $\mathrm{GSBA}^{\mathrm{K}}$ over $\mathrm{SA}^{\mathrm{K}}$ increases with $K$ . For the targeted attack, $\mathrm{GSBA}^{\mathrm{K}}$ offers significantly better ASR than $\mathrm{SA}^{\mathrm{K}}$ across the board against VGG-16 and ResNet-101 classifiers, as we have seen for ResNet-50.
+
+# D PERFORMANCE AGAINST ROBUST CLASSIFIERS
+
+We compare the performance of the proposed GSBA $^{\text{K}}$ and SA $^{\text{K}}$ against several robust classifiers. These include adversarially-trained Inception-V3 (Kurakin et al., 2016), ensemble-adversarially-trained-ResNet-Inception-V2 (Tramér et al., 2017), and three robustly trained ResNet-50 (RN50): RN50 $_{\text{IN}}$ (Geirhos et al., 2018), RN50 $_{\text{fine}}$ (Geirhos et al., 2018) and RN50 $_{\text{Aux}}$ (Hendrycks et al., 2019). RN50 $_{\text{IN}}$ is trained on a combination of stylized and natural ImageNet, RN50 $_{\text{fine}}$ is fine-tuned with an auxiliary dataset and RN50 $_{\text{Aux}}$ is trained with advanced data augmentation techniques. We assess the performance of these robust models using 100 randomly selected samples from ImageNet for both untargeted and targeted attacks.
+
+Table 6 demonstrates the obtained $\mathrm{ASR}(\%)$ for query budgets of 5000 and 30000 at a perturbation threshold $r_{th} = 2$ for the untargeted attack, and for query budget of 10000 and 40000 considering the perturbation threshold $r_{th} = 8$ for the targeted attack. These results show that $\mathrm{GSBA^K}$ in the top-
+
+Table 7: ASR against ResNet50 on 100 ImageNet images for different top-K targeted attacks with a perturbation threshold $r_{th} = 20$ .
+
+
K
1
3
5
10
15
20
ASR(%)
100.00
100.00
98.00
69.00
36.00
11.00
+
+Table 8: ASR against ResNet50 on 100 ImageNet images for different top- $K$ untargeted attacks with a perturbation threshold ${r}_{th} = {20}$ .
+
+
K
1
5
10
20
30
40
50
ASR(%)
100.00
99.00
84.00
71.00
54.00
43.00
30.00
+
+Table 9: ASR against Inception-V3 on 100 PASCAL VOC images for different top-K targeted attacks considering best target classes with a perturbation threshold $r_{th} = 20$ .
+
+
top-K
1
3
5
7
9
ASR(%)
100.00
82.00
61.00
21.00
2.00
+
+$K$ setting follows a similar pattern to its performance against standard classifiers. Additionally, from this table, adversarially trained classifiers demonstrate greater robustness than the robustly trained classifiers like $\mathrm{RN50_{IN}}$ , $\mathrm{RN50_{fine}}$ , and $\mathrm{RN50_{Aux}}$ .
+
+# E IMPACT OF LARGER $K$ ON ASR
+
+We conduct attacks with higher values of $K$ to evaluate its impact on ASR. As shown in Table 7, we report the ASR against ResNet50 for targeted attacks, where the top- $K$ predicted labels are replaced by the target classes. Table 8 presents the ASR for untargeted attacks on 100 ImageNet images, where the top- $K$ predicted labels of source images are replaced by any $K$ labels other than the top- $K$ source labels. Furthermore, Table 9 illustrates the ASR variation for top- $K$ targeted attacks on Inception-V3 using 100 images from the multi-label PASCAL VOC2012 dataset. From these results, we observe that ASR decreases as $K$ increases, with a sharper decline for targeted attacks. This trend suggests that the proposed black-box attack, which lacks knowledge of the target model, becomes ineffective as $K$ approaches the extreme of $K = C / 2$ under the perturbation constraint, where $C$ is the total number of classification labels.
+
+Table 10: Median $\ell_2$ -norm of perturbations (lower is better) for different query budgets and different dimension reduction factors for top-2 targeted attacks on 100 ImageNet images against ResNet50.
+
+
f
1
2
3
4
6
8
Q=4000
15.82
12.55
11.74
9.29
11.72
10.22
Q=8000
10.30
8.47
7.05
5.72
6.40
6.92
+
+Table 11: ASR(%) with $r_{th} = 20$ for different query budgets and different dimension reduction factors for top-2 targeted attacks on 100 ImageNet images against ResNet50.
+
+
f
1
2
3
4
6
8
Q=4000
47.00
59.00
64.00
72.00
66.00
68.00
Q=8000
89.00
94.00
95.00
99.00
97.00
96.00
+
+# F SAMPLING NOISE FROM LOW-FREQUENCY SUBSPACE
+
+The low-frequency subspace obtained through Discrete Cosine Transformation (DCT) is crucial because it captures essential image information, including the gradient information (Guo et al., 2018; Li et al., 2020a), which are vital for our approach. To sample a noise $\boldsymbol{z}_i \in [0,1]^{C_h \times H \times W}$ from low-frequency subspace, the coefficients of the low-frequency components with dimension $C_h \times \frac{W}{f} \times \frac{H}{f}$ are drawn from a normal distribution with zero mean and $\sigma = 0.0002$ standard deviation while setting the remaining frequency components to zero, and then revert this representation back to the original image space using the Inverse DCT, as discussed in (Guo et al., 2018). This process effectively allows us to generate perturbations that influence the more critical, low-frequency aspects of the image, minimizing disruption to the less important high-frequency details. The parameter $f$ serves as a dimension reduction factor, controlling how much of the frequency space is retained in
+
+the noise sample. For instance, if the dimension of an image is $3 \times 224 \times 224$ , the dimension of the low-frequency space with dimension reduction factor $f = 4$ would be 9408. This corresponds to selecting $6.25\%$ of the frequency components. We choose the dimension reduction factor as $f = 4$ for all our experiments following (Reza et al., 2023; Li et al., 2020a). The median $\ell_2$ -norm of perturbations and ASR for different query budgets and different dimension reduction factors for targeted top-2 attack on 100 images are reported in Table 10 and Table 11, respectively, which conforms with the finding in (Reza et al., 2023) even for top-2 attacks.
+
+# G LIMITATIONS AND POTENTIAL NEGATIVE IMPACTS
+
+Limitations: The proposed GSBA $^{\text{K}}$ is based on querying the target classifier to craft adversarial examples, and it offers query-efficient performance as compared to the baseline attacks. However, crafting top- $K$ adversarial examples, particularly for targeted attacks with larger values of $K$ , still demands a significant number of queries, leaving ample room for further improvement. Moreover, the designs of our untargeted and targeted attacks are based on the assumption of low curvature and high curvature decision boundaries, respectively. However, while the curvature is high when the boundary point is far from the source image, it tends to become flatter as the boundary point comes closer to the source image from the viewpoint of the source image. Additionally, as the proposed attack proceeds with optimizing boundary points on the decision boundary, poor transferability is incurred due to the variation of decision boundaries across classifiers. Thus, a more accurate gradient estimation technique along with adaptive boundary point search can be a future endeavor to improve the performance further. Additionally, efforts can be made to improve the transferability of the geometric adversarial attacks.
+
+Potential societal negative impacts: Adversarial attacks pose significant security risks in real-world machine learning systems due to the potential misuse of adversarial perturbations for malicious purposes. Our proposed black-box $\mathrm{GSBA^K}$ method aims to generate top-K adversarial examples, which can be leveraged for various real-world scenarios, as outlined in the introduction section. While our experiments primarily focus on deceiving image classifiers, the versatility of our approach extends to other domains, such as image annotation, object detection, and recommendation systems, broadening the scope of potential misuse by malicious users. However, it's important to emphasize that our objective is to highlight the vulnerabilities of machine learning systems in aggressive top-K settings, ultimately advocating for the implementation of defense mechanisms to enhance their security against adversarial attacks. One potential defense strategy against our proposed attack involves restricting queries around the decision boundaries.
+
+# H CRAFTED ADVERSARIAL EXAMPLES
+
+In this section, we demonstrate a number of generated top- $K$ adversarial examples and their corresponding perturbation, along with detailed information, for different benign inputs against different classifiers. While Fig. 13, Fig. 14 and Fig. 15 demonstrate crafted untargeted adversarial examples against ResNet-50, VGG-16 and ResNet-101 single-label multi-class classifiers, Fig. 16, Fig. 17 and Fig. 18 display the crafted targeted adversarial examples against these classifiers. Fig. 19 depicts the generated top-2 adversarial examples against a classifier with multi-label learning. The value of $\ell_2$ at the title of each adversarial example demonstrates the $\ell_2$ -norm of the crafted perturbation obtained after spending a given query budget.
+
+
+Source
+
+
+top-1 $\mid \ell_2:0.95$
+
+
+10*perturbation
+
+
+top-2 | $\ell_2\cdot 1.13$
+
+
+10*perturbation
+
+
+top-3 | $\ell_2:1.25$
+
+
+10*perturbation
+
+
+top-4 | $\ell_2\cdot 1.37$
+
+
+10*perturbation
+
+(a) Top-5 predictions of a source image on ResNet-50 are: [cicada, leafhopper, lacewing, fly, grasshopper]. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [dragonfly, cicada, fly, damselfly, lacewing], top-2: [fly, dragonfly, cicada, damselfly, lacewing], top-3: [dragonfly, lacewing, damselfly, cicada, fly], and top-4: [dragonfly, damselfly, lacewing, fly, cicada].
+
+
+Source
+
+
+top-1 | $\ell_2:0.81$
+
+
+10*perturbation
+
+
+top-2 | $\ell_2:0.99$
+
+
+10*perturbation
+
+
+top-3 | $\ell_2:1.03$
+
+
+10*perturbation
+
+
+top-4 | $\ell_2:1.41$
+
+
+10*perturbation
+
+(b) Top-5 predictions of a source image on VGG-16 are: [cicada, leafhopper, grasshopper, lacewing, mantis]. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [leafhopper, cicada, mantis, lacewing, grasshopper], top-2: [leafhopper, mantis, cicada, grasshopper, cricket], top-3: [mantis, leafhopper, grasshopper, cicada, cricket], and top-4: [grasshopper, mantis, leafhopper, lacewing, cicada].
+
+
+Source
+
+
+top-1 | $\ell_2:1.15$
+
+
+10*perturbation
+
+
+top-2 | $\ell_2:1.57$
+
+
+10*perturbation
+
+
+top-3 | $\ell_2:1.89$
+
+
+10*perturbation
+
+
+top-4 | $\ell_2:2.38$
+
+
+10*perturbation
+
+(c) Top-5 predictions of a source image on ResNet-101 are: [cicada, leafhopper, lacewing, cricket, grasshopper]. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [leafhopper, cicada, grasshopper, cricket, lacewing], top-2: [leafhopper, grasshopper, cicada, cricket, mantis], top-3: [grasshopper, leafhopper, cricket, cicada, cockroach], and top-4: [cricket, grasshopper, leafhopper, mantis, cicada].
+
+Figure 13: Crafted top-K untargeted adversarial examples of a source image with ground truth label cicada, utilizing a query budget of 5000, against different single-label multi-class classifiers.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(a) Top-5 predictions of a source image on ResNet-50 are: [redshank, ruddy turnstone, dowitcher, oystercatcher, limpkin]. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [dowitcher, redshank, limpkin, water ouzel, ruddy turnstone], top-2: [dowitcher, limpkin, redshank, black stork, bittern], top-3: [dowitcher, limpkin, red-backed sandpiper, redshank, cicada], and top-4: [dowitcher, limpkin, spoonbill, red-backed sandpiper, redshank].
+
+
+Source
+
+
+top-1 $\mid \ell_2:2.55$
+
+
+top-2 | $\ell_2:3.28$
+
+
+top-3 $\mid \ell_2:3.32$
+
+
+top-4 | $\ell_2:3.45$
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+(b) Top-5 predictions of a source image on VGG-16 are: [redshank, oystercatcher, dowitcher, ruddy turnstone, red-breasted merganser]. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [reddy turnstone, redshank, dowitcher, water ouzel, red-backed sandpiper], top-2: [reddy turnstone, dowitcher, redshank, red-backed sandpiper, water ouzel], top-3: [cicada, water ouzel, ruddy turnstone, redshank, leafhopper], and top-4: [cicada, leafhopper, weevil, water ouzel, redshank].
+
+
+
+
+top-1 | $\ell_2:1.9$
+
+
+top-2 | $\ell_2:3.47$
+
+
+top-3 | $\ell_2:4.88$
+
+
+top-4 | $\ell_2:5.34$
+
+
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+(c) Top-5 predictions of a source image on ResNet-101 are: [redshank, oystercatcher, ruddy turnstone, dowitcher, red-breasted merganser]. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [dowitcher, redshank, ruddy turnstone, limpkin, robin], top-2: [dowitcher, limpkin, redshank, ruddy turnstone, black stork], top-3: [limpkin, dowitcher, bittern, redshank, black stork], and top-4: [dowitcher, partridge, ruffed grouse, brambling, redshank].
+
+Figure 14: Crafted top-K untargeted adversarial examples of a source image with ground truth label redshank, utilizing a query budget of 5000, against different single-label multi-class classifiers.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(a) Top-5 predictions of a source image on ResNet-50 are: [loggerhead, leatherback turtle, hippopotamus, terrapin, mud turtle]. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [leatherback turtle, loggerhead, amphibian, speedboat, conch], top-2: [amphibian, hippopotamus, loggerhead, leatherback turtle, speedboat], top-3: [amphibian, hippopotamus, speedboat, loggerhead, leatherback turtle], and top-4: [amphibian, conch, hippopotamus, speedboat, loggerhead].
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(b) Top-5 predictions of a source image on VGG-16 are: [loggerhead, leatherback turtle, conch, hermit crab, terrapin]. Top-5 predictions of the top-K adversarial examples are as follows: top-1: [conch, loggerhead, hermit crab, leatherback turtle, hippopotamus], top-2: [conch, hermit crab, loggerhead, leatherback turtle, fiddler crab], top-3: [conch, hippopotamus, hermit crab, loggerhead, bathing cap], and top-4: [conch, hermit crab, bathing cap, hippopotamus, loggerhead].
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(c) Top-5 predictions of a source image on ResNet-101 are: [loggerhead, hippopotamus, leatherback turtle, conch, hermit crab]. Top-5 predictions of the top-K adversarial examples are as follows: top-1: [hippopotamus, loggerhead, leatherback turtle, conch, hermit crab], top-2: [hippopotamus, bikini, loggerhead, bathing cap, conch], top-3: [hippopotamus, bikini, bathing cap, loggerhead, swimming trunks], and top-4: [hippopotamus, conch, hermit crab, bikini, loggerhead].
+
+Figure 15: Crafted top-K untargeted adversarial examples of a source image with ground truth label loggerhead, utilizing a query budget of 5000, against different single-label multi-class classifiers.
+
+
+
+
+top-1 | $\ell_2:2.22$
+
+
+top-2 | $\ell_2:3.28$
+
+
+(a) Top-5 predictions of a source image and a target image on ResNet-50 are [Staffordshire bullterrier, American Staffordshire terrier, Boston bull, French bulldog, basenji] and [cicada, leafhopper, lacewing, fly, grasshopper], respectively. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [cicada, Staffordshire bullterrier, American Staffordshire terrier, miniature pinscher, muzzle], top-2: [cicada, leafhopper, American Staffordshire terrier, Staffordshire bullterrier, cricket], top-3: [cicada, lacewing, leafhopper, American Staffordshire terrier, Staffordshire bullterrier], and top-4: [cicada, fly, lacewing, leafhopper, dragonfly].
+
+
+top-3 | $\ell_2:3.26$
+
+
+10*perturbation
+
+
+top-4 | $\ell_2:3.12$
+
+
+10*perturbation
+
+
+
+
+top-1 | $\ell_2:2.18$
+
+
+top-2 | $\ell_2: 2.48$
+
+
+top-3 $|\ell_2:5.91$
+
+
+top-4 | $\ell_2$ : 3.24
+
+
+(b) Top-5 predictions of a source image and a target image on VGG-16 are [Staffordshire bullterrier, American Staffordshire terrier, soccer ball, whippet, tennis ball] and [cicada, leafhopper, grasshopper, lacewing, mantis], respectively. Top-5 predictions of the top-K adversarial examples are as follows: top-1: [cicada, muzzle, Staffordshire bullterrier, miniature pinscher, rhinoceros beetle], top-2: [cicada, leafhopper, rhinoceros beetle, leaf beetle, muzzle], top-3: [grasshopper, leafhopper, cicada, muzzle, cricket], and top-4: [grasshopper, leafhopper, cicada, lacewing, muzzle].
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+
+
+top-1| $\ell_2:2.88$
+
+top-2 $|\ell_2:3.19$
+
+Figure 16: Crafted top-K targeted adversarial examples of a source image with ground truth label Staffordshire bullterrier and a target image with top-1 classification label cicada, utilizing a query budget of 30000, against different single-label multi-class classifiers.
+
+
+top-3 $|\ell_2:4.31$
+
+
+top-4 | $\ell_2:5.25$
+
+
+(c) Top-5 predictions of a source image target image on ResNet-101 are [Staffordshire bullterrier, American Staffordshire terrier, French bulldog, bull mastiff, Boston bull] and [cicada, leafhopper, lacewing, cricket, grasshopper], respectively. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [cicada, Staffordshire bullterrier, American Staffordshire terrier, miniature pinscher, Chihuahua], top-2: [cicada, leafhopper, Staffordshire bullterrier, cricket, American Staffordshire terrier], top-3: [cicada, leafhopper, lacewing, cricket, Staffordshire bullterrier], and top-4: [cricket, cicada, leafhopper, lacewing, grasshopper].
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+Target
+
+
+top-1 | $\ell_2:2.94$
+
+
+top-2 $\mid \ell_2:3.38$
+
+
+top-3 | $\ell_2: 3.6$
+
+
+top-4 | $\ell_2:7.91$
+
+
+(a) Top-5 predictions of a source image and a target image on ResNet-50 are [Staffordshire bullterrier, American Staffordshire terrier, Boston bull, French bulldog, basenji] and [redshank, ruddy turnstone, dowitcher, oystercatcher, limpkin], respectively. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [redshank, Italian greyhound, American Staffordshire terrier, Weimaraner, Staffordshire bullterrier], top-2: [ruddy turnstone, redshank, Italian greyhound, American Staffordshire terrier, Staffordshire bullterrier], top-3: [ruddy turnstone, dowitcher, redshank, American Staffordshire terrier, red-backed sandpiper], and top-4: [ruddy turnstone, redshank, oystercatcher, dowitcher, magpie].
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+
+
+top-1 $\mid \ell_2:2.34$
+
+
+top-2|l2:2.42
+
+
+top-3 $|\ell_2:3.09$
+
+
+top-4 | $\ell_2: 4.95$
+
+
+(b) Top-5 predictions of a source image and a target image on VGG-16 are [Staffordshire bullterrier, American Staffordshire terrier, soccer ball, whippet, tennis ball] and [redshank, oystercatcher, dowitcher, ruddy turnstone, red-breasted merganser], respectively. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [redshank, whippet, Scottish deerhound, American Staffordshire terrier, magpie], top-2: [oystercatcher, redshank, whippet, magpie, European gallinule], top-3: [redshank, oystercatcher, dowitcher, whippet, goose], and top-4: [ruddy turnstone, redshank, oystercatcher, dowitcher, whippet].
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+
+
+top-1 | $\ell_2:2.92$
+
+top-2 | $\ell_2:3.37$
+
+Figure 17: Crafted top-K targeted adversarial examples of a source image with ground truth label Staffordshire bullterrier and a target image with top-1 classification label redshank, utilizing a query budget of 30000, against different single-label multi-class classifiers.
+
+
+top-3 $|\ell_2:3.48$
+
+
+top-4 | $\ell_2:3.71$
+
+
+(c) Top-5 predictions of a source image and a target image on ResNet-101 are [Staffordshire bullterrier, American Staffordshire terrier, French bulldog, bull mastiff, Boston bull] and [redshank, oystercatcher, ruddy turnstone, dowitcher, red-breasted berganser], respectively. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [redshank, American Staffordshire terrier, Staffordshire bullterrier, reel, kelpie], top-2: [oystercatcher, redshank, Staffordshire bullterrier, American Staffordshire terrier, kelpie], top-3: [ruddy turnstone, redshank, oystercatcher, Staffordshire bullterrier, American Staffordshire terrier], and top-4: [redshank, ruddy turnstone, oystercatcher, dowitcher, American Staffordshire terrier].
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+Target
+
+
+top-1 | $\ell_2:2.65$
+
+
+top-2 | $\ell_2: 2.82$
+
+
+top-3 | $\ell_2:4.3$
+
+
+top-4 $|\ell_2:5.53$
+
+
+(a) Top-5 predictions of a source image and a target image on ResNet-50 are [Staffordshire bullterrier, American Staffordshire terrier, Boston bull, French bulldog, basenji] and [loggerhead, leatherback turtle, hippopotamus, terrapin, mud turtle], respectively. Top-5 predictions of the top-K adversarial examples are as follows: top-1: [loggerhead, Staffordshire bullterrier, American Staffordshire terrier, terrapin, leatherback turtle], top-2: [leatherback turtle, loggerhead, Staffordshire bullterrier, American Staffordshire terrier, terrapin], top-3: [leatherback turtle, hippopotamus, loggerhead, Staffordshire bullterrier, terrapin], and top-4: [terrapin, leatherback turtle, hippopotamus, loggerhead, mud turtle].
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+
+
+top-1 | $\ell_2:3.16$
+
+
+top-2 | $\ell_2:3.01$
+
+
+top-3 | $\ell_2:5.7$
+
+
+top-4 | $\ell_2:6.99$
+
+
+(b) Top-5 predictions of a source image and a target image on VGG-16 are [Staffordshire bullterrier, American Staffordshire terrier, soccer ball, whippet, tennis ball] and [loggerhead, leatherback turtle, conch, hermit crab, terrapin], respectively. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [loggerhead, black-and-tan coonhound, terrapin, Staffordshire bullterrier, mud turtle], top-2: [leatherback turtle, loggerhead, terrapin, mud turtle, Staffordshire bullterrier], top-3: [loggerhead, leatherback turtle, conch, terrapin, mud turtle], and top-4: [hermit crab, leatherback turtle, conch, loggerhead, terrapin].
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+
+
+top-1 $\mid \ell_2:2.62$
+
+top-2 | $\ell_2$ : 4.49
+
+Figure 18: Crafted top-K targeted adversarial examples of a source image with ground truth label Staffordshire bullterrier and a target image with top-1 classification label loggerhead, utilizing a query budget of 30000, against different single-label multi-class classifiers.
+
+
+top-3 | $\ell_2:3.76$
+
+
+top-4 | $\ell_2:8.09$
+
+
+(c) Top-5 predictions of a source image and a target image on ResNet-101 are [Staffordshire bullterrier, American Staffordshire terrier, French bulldog, bull mastiff, Boston bull] and [loggerhead, hippopotamus, leatherback turtle, conch, hermit crab], respectively. Top-5 predictions of the top- $K$ adversarial examples are as follows: top-1: [loggerhead, Staffordshire bullterrier, American Staffordshire terrier, mud turtle, terrapin], top-2: [hippopotamus, loggerhead, Staffordshire bullterrier, American Staffordshire terrier, Mexican hairless], top-3: [loggerhead, leatherback turtle, hippopotamus, Staffordshire bullterrier, American Staffordshire terrier], and top-4: [loggerhead, hippopotamus, leatherback turtle, conch, triceratops].
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+10*perturbation
+
+
+Benign input
+
+
+Adv.ex. $|\ell_2:1.7$ (best targets)
+10*Perturbation
+
+
+
+
+Adv.ex. $|\ell_2:4.1$ (random targets)
+10*Perturbation
+
+
+
+
+Adv.ex.1 $\ell_2:5.3$ (worst targets)
+10*Perturbation
+
+
+
+(a) Prediction order of a source image with true label set $\{\text{person, horse}\}$ is: [person, horse, boat, car, dog, bicycle, cow, motorbike, bus, chair, potted plant, bird, bottle, tv/monitor, sheep, cat, train, sofa, dining table, aeroplane]. The best, random and worst target sets are $\{\text{boat, car}\}, \{\text{tv/monitor, sofa}\}$ and $\{\text{dining table, aeroplane}\}$ .
+
+
+Benign input
+
+
+Adv.ex. $|\ell_2:2.7$ (best targets)
+10*Perturbation
+
+
+
+
+Adv.ex. $|\ell_2:4.4$ (random targets)
+
+
+10*Perturbation
+
+
+Adv.ex. $|\ell_2:8.6$ (worst targets)
+10*Perturbation
+
+
+
+(b) Prediction order of a source image with true label set $\{\text{person, dog}\}$ is: [person, dog, sheep, car, horse, bottle, cow, cat, bicycle, potted plant, boat, sofa, chair, tv/monitor, motorbike, bird, train, dining table, bus, aeroplane]. The best, random and worst target sets are $\{\text{sheep, car}\}$ , $\{\text{potted plant, motorbike}\}$ and $\{\text{bus, aeroplane}\}$ .
+
+
+Benign input
+
+
+Adv.ex. $|\ell_2:3.1$ (best targets)
+
+
+10*Perturbation
+
+
+Adv.ex. $|\ell_2:6.3$ (random targets)
+
+
+10*Perturbation
+
+
+Adv.ex. $|\ell_2$ .6.0 (worst targets)
+
+
+10*Perturbation
+
+(c) Prediction order of a source image with true label set {person, bicycle} is: [person, bicycle, bottle, car, chair, potted plant, bus, motorbike, cow, dog, horse, dining table, sofa, cat, train, tv/monitor, boat, sheep, bird, aeroplane]. The best, random and worst target sets are {bottle, car}, {tv/monitor, sofa} and {bird, aeroplane}.
+
+Figure 19: Crafted top-2 adversarial examples for benign inputs with two true labels against Inception-V3 (Szegedy et al., 2016) on PASCAL VOC 2012 dataset (Everingham et al., 2015) with best, random and worst target label sets utilizing a query budget of 30000.
\ No newline at end of file
diff --git a/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/images.zip b/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..664c2c3cf40b70dfe218eec9ebee9e309fcf1e9a
--- /dev/null
+++ b/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6532cb802a242839c26bd76303a7a17f94d186d3f2142ecaa8900e78c3d25df6
+size 2243176
diff --git a/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/layout.json b/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..a8feba4bd08d06772fd815734f45d8f8ce7ea294
--- /dev/null
+++ b/ICLR/2025/GSBA$^K$_ $top$-$K$ Geometric Score-based Black-box Attack/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0f5fba6d64dc8de75df433d44e49bffe6c7702820e1bd93cab3a18347a6f3797
+size 1789115
diff --git a/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/71657297-1c3b-4131-be63-f6c68d7287f0_content_list.json b/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/71657297-1c3b-4131-be63-f6c68d7287f0_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..2211ea4981d6939ce94f07500f3b0c487e901dd7
--- /dev/null
+++ b/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/71657297-1c3b-4131-be63-f6c68d7287f0_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:24a4a9b000ef4fb5c6b52c17b1f8b6af9b64c53b6576b3117c6d3ae991598b6e
+size 115712
diff --git a/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/71657297-1c3b-4131-be63-f6c68d7287f0_model.json b/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/71657297-1c3b-4131-be63-f6c68d7287f0_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..463a2329c696659a9b6f12736c799ded0dafcf25
--- /dev/null
+++ b/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/71657297-1c3b-4131-be63-f6c68d7287f0_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:460eaa914cfd872dd73b5f134ce6d1dc6a74c4e8f7ca85861e66464245a348fd
+size 137747
diff --git a/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/71657297-1c3b-4131-be63-f6c68d7287f0_origin.pdf b/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/71657297-1c3b-4131-be63-f6c68d7287f0_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ae9b70fbcb196e3ebf533b8b1adcfcf22c588185
--- /dev/null
+++ b/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/71657297-1c3b-4131-be63-f6c68d7287f0_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4ab509907b2a61a0cf9247e1725bc81a1ed4d937dee60df955ddf6240094871f
+size 4974913
diff --git a/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/full.md b/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f30c19b6232ae6200f55c648ba94b272edd5cd6c
--- /dev/null
+++ b/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/full.md
@@ -0,0 +1,507 @@
+# GSE: GROUP-WISE SPARSE AND EXPLAINABLE ADVERSARIAL ATTACKS
+
+Shpresim Sadiku $^{1,2}$ , Moritz Wagner $^{1,2}$ & Sebastian Pokutta $^{1,2}$
+
+$^{1}$ Department for AI in Society, Science, and Technology, Zuse Institute Berlin, Germany
+$^{2}$ Institute of Mathematics, Technische Universität Berlin, Germany
+
+{sadiku,wagner,pokutta}@zib.de
+
+# ABSTRACT
+
+Sparse adversarial attacks fool deep neural networks (DNNs) through minimal pixel perturbations, often regularized by the $\ell_0$ norm. Recent efforts have replaced this norm with a structural sparsity regularizer, such as the nuclear group norm, to craft group-wise sparse adversarial attacks. The resulting perturbations are thus explainable and hold significant practical relevance, shedding light on an even greater vulnerability of DNNs. However, crafting such attacks poses an optimization challenge, as it involves computing norms for groups of pixels within a non-convex objective. We address this by presenting a two-phase algorithm that generates group-wise sparse attacks within semantically meaningful areas of an image. Initially, we optimize a quasinorm adversarial loss using the $1/2$ -quasinorm proximal operator tailored for non-convex programming. Subsequently, the algorithm transitions to a projected Nesterov's accelerated gradient descent with 2-norm regularization applied to perturbation magnitudes. Rigorous evaluations on CIFAR-10 and ImageNet datasets demonstrate a remarkable increase in groupwise sparsity, e.g., $50.9\%$ on CIFAR-10 and $38.4\%$ on ImageNet (average case, targeted attack). This performance improvement is accompanied by significantly faster computation times, improved explainability, and a $100\%$ attack success rate.
+
+# 1 INTRODUCTION
+
+Deep neural networks (DNNs) are susceptible to adversarial attacks, where input perturbations deceive the network into producing incorrect predictions (Carlini & Wagner, 2017; Athalye et al., 2018; Zhou et al., 2020; Zhang et al., 2020). These attacks pose serious security risks in real-world systems and raise questions about the robustness of neural classifiers (Stutz et al., 2019). Investigating adversarial attacks is crucial for diagnosing and strengthening DNN vulnerabilities, especially in areas where such attacks have proven effective, including image classification (Chen et al., 2020; Li et al., 2020), image captioning (Xu et al., 2019b), image retrieval (Bai et al., 2020; Feng et al., 2020), question answering (Liu et al., 2020a), autonomous driving (Liu et al., 2019), automatic checkout (Liu et al., 2020b), face recognition (Dong et al., 2019), face detection (Li et al., 2019), etc.
+
+While many methods for crafting adversarial examples focus on $\ell_p$ neighbourhoods with $p \geq 1$ , recent research has explored the intriguing case of $p = 0$ , leading to sparse adversarial attacks. The prevailing approaches for generating sparse adversarial attacks involve solving $\ell_0$ -formulated problems, employing greedy single-pixel selection (Su et al., 2019), local search techniques (Narodytska & Kasiviswanathan, 2016), utilizing evolutionary algorithms (Croce & Hein, 2019), or relaxing $\ell_0$ via the $\ell_1$ ball and applying various algorithms to handle these structures (Carlini & Wagner, 2017; Modas et al., 2019). However, most of these methods only minimize the number of modified pixels and do not constrain the location and the magnitude of the changed pixels. The perturbed pixels can thus exhibit substantial variations in intensity or colour compared to their surroundings, rendering them easily visible (Su et al., 2019). This has motivated the necessity of imposing structure to sparse adversarial attacks by generating group-wise sparse perturbations that are targeted to the main objective in the image (Xu et al., 2019a; Zhu et al., 2021; Imtiaz et al., 2022; Kazemi et al., 2023). Fig. 1 illustrates successful group-wise sparse adversarial examples generated by our proposed algorithm (GSE). This way the generated perturbations are also explainable, i.e., they perturb semantically meaningful pixels in the images, thus enhancing human interpretability.
+
+Unlike traditional attacks that appear as noise to humans but as features to DNNs (Ilyas et al., 2019), this approach bridges the gap between human perception and machine interpretation.
+
+Contributions. $①$ We devise a two-phase approach for creating group-wise sparse adversarial attacks. First, we employ non-convex regularization to select pixels for perturbation, leveraging a combination of the proximal gradient method from (Li & Lin, 2015) and a novel proximity-based pixel selection technique. Then, we apply Nesterov's accelerated gradient descent (NAG) on the chosen pixel coordinates to complete the attack. $②$ Our GSE (Group-wise Sparse and Explainable) attacks outperform state-of-the-art (SOTA) methods on CIFAR-10 and ImageNet datasets, requiring significantly fewer perturbations. We achieve a $50.9\%$ increase in group-wise sparsity on CIFAR-10 and a $38.4\%$ increase on ImageNet (average case, targeted attack), all while maintaining a $100\%$ attack success rate. $③$ Through a quantitative assessment of the alignment between perturbations and salient image regions, we underscore the value of group
+
+wise sparse perturbations for explainability analysis. Specifically, our GSE attacks provide superior explainability over SOTA techniques in both group-wise sparse and traditional sparse attack domains.
+
+
+Original
+
+
+GSE perturbed
+
+
+Changed pixels
+
+
+Figure 1: Adversarial attacks generated by our algorithm. The top row depicts a targeted attack of target label "water bottle", and the bottom row depicts an untargeted attack.
+
+
+
+
+
+# 1.1 RELATED WORK
+
+Recent works have introduced methods for generating group-wise sparse and explainable adversarial attacks. StrAttack (Xu et al., 2019a) represents a structured sparse and explainable adversarial attack, relying on the alternating direction method of multipliers (ADMM). It enforces group-wise sparsity through a dynamic sliding mask designed to extract spatial structures from the image. Similarly, SAPF (Fan et al., 2020) leverages $\ell_p$ -Box ADMM for integer programming to jointly optimize binary selection factors, continuous perturbation magnitudes of pixels, and image sub-regions. FWnucl-group (Kazemi et al., 2023), abbreviated as FWnucl, is another structured sparse adversarial attack. It quantifies the proximity of perturbations to benign images by utilizing the nuclear group norm, capitalizing on the convexity of nuclear group norm balls through the application of a Frank-Wolfe (FW) optimization scheme (Frank & Wolfe, 1956). Homotopy-Attack (Zhu et al., 2021) is a sparse adversarial attack that operates based on the non-monotone accelerated proximal gradient algorithm (nmAPG) (Li & Lin, 2015). It can incorporate group-wise sparsity by segmenting the image pixels using the SLIC superpixel algorithm and applying regularization using the resulting $2,0-$ "norm". We empirically compare our approach to the aforementioned attacks.
+
+New research combines adversarial examples and model explanations, merging key concepts from both areas. On datasets like MNIST (LeCun et al., 1998), (Ignatiev et al., 2019) illustrates a hitting set duality between adversarial examples and model explanations, while (Xu et al., 2019a) shows the correspondence of attack perturbations with discriminative image features. Our attack strategy perturbs regions neighbouring already perturbed pixels, resulting in a shift of the most susceptible pixels of an image due to our initial sparse perturbations. We conduct empirical analysis to examine the overlap between our attacks and salient image regions. To highlight the crucial role of group-wise sparse perturbations in enhancing explainability, we also incorporate SOTA sparse adversarial attacks (Modas et al., 2019; Croce & Hein, 2019) into our experiments.
+
+# 2 ADVERSARIAL ATTACK FORMULATION
+
+Let $\mathcal{X} = [I_{\min}, I_{\max}]^{M \times N \times C}$ represent feasible images, where $M$ and $N$ are the image dimensions (height and width) and $C$ is the number of color channels. Let $\pmb{x} \in \mathcal{X}$ be a benign image with label $l \in \mathbb{N}$ , and $t \in \mathbb{N}$ be a target label, where $t \neq l$ . Additionally, let $\mathcal{L}: \mathcal{X} \times \mathbb{N} \to \mathbb{R}$ be a classification loss function, such as the cross-entropy loss, tailored for a given classifier $\mathcal{C}$ . We introduce a distortion
+
+# Algorithm 1 Forward-Backward Splitting Attack
+
+Require: Image $\pmb{x} \in \mathcal{X}$ , target label $t$ , loss function $\mathcal{L}$ , sparsity parameter $\lambda > 0$ , step sizes $\alpha_{k}$ , number of iterations $K$ .
+
+1: Initialize $\pmb{w}^{(0)}\gets \pmb{0}$
+2: for $k \gets 0, \dots, K - 1$ do
+3: $\pmb{w}^{(k + 1)}\gets \mathrm{prox}_{\alpha_k\lambda \| \cdot \| _p^p}\left(\pmb{w}^{(k)} - \alpha_k\nabla_{\pmb{w}^{(k)}}\mathcal{L}(\pmb {x} + \pmb{w}^{(k)},t)\right)$ {Definition in Eq. (3).}
+4: end for
+5: return $\hat{\pmb{w}} = \pmb{w}^{(K)}$
+
+function $\mathcal{D}:\mathbb{R}^{M\times N\times C}\to \mathbb{R}_{\geq 0}$ . The goal of a targeted adversarial attack is to find an image $\pmb{x}_{\mathrm{adv}}$ to which $\mathcal{C}$ assigns the target label $t$ and that is in close proximity to $\pmb{x}$ according to the function $\mathcal{D}$ . In summary, formulating a targeted adversarial example for the input $\pmb{x}$ can be framed as
+
+$$
+\min _ {\boldsymbol {w} \in \mathbb {R} ^ {M \times N \times C}} \mathcal {L} (\boldsymbol {x} + \boldsymbol {w}, t) + \lambda \mathcal {D} (\boldsymbol {w}), \tag {1}
+$$
+
+where $\lambda > 0$ is a regularization parameter. The untargeted adversarial attack formulation can be found in Appendix A. Note that Eq. (1) is a general framework, and a specific distortion function $\mathcal{D}$ must be defined to generate adversarial examples in practice.
+
+# 2.1 1/2-QUASINORM REGULARIZATION
+
+Sparse adversarial attacks can be generated using quasinorm-regularized methods (Wang et al., 2021), where the distortion function in Eq. (1) is set to $\mathcal{D}(\cdot)\coloneqq \| \cdot \|_p^p$ , leading to the optimization problem
+
+$$
+\min _ {\boldsymbol {w} \in \mathbb {R} ^ {M \times N \times C}} \mathcal {L} (\boldsymbol {x} + \boldsymbol {w}, t) + \lambda \| \boldsymbol {w} \| _ {p} ^ {p}, \tag {2}
+$$
+
+for $0 < p < 1$ . Here $\| \pmb{w}\| _p = (\sum_i|w_i|^p)^{1 / p}$ is only a quasinorm since subadditivity is not satisfied for $p < 1$ . Once Eq. (2) is solved, yielding $\hat{\pmb{w}}\in \arg \min_{\pmb {w}\in \mathbb{R}^{M\times N\times C}}\mathcal{L}(\pmb {x} + \pmb {w},t) + \lambda \| \pmb {w}\| _p^p$ , the adversarial example is given by $\pmb{x}_{\mathrm{adv}} = \mathrm{clip}_{\chi}(\pmb {x} + \hat{\pmb{w}})$ . To obtain $\hat{\pmb{w}}$ , we employ the forward-backward splitting algorithm (Li & Lin, 2015), as detailed in Algorithm 1. In their work, (Cao et al., 2013) derive a closed-form solution for the proximal operator of $\| \cdot \| _p^p$
+
+$$
+\operatorname {p r o x} _ {\lambda \| \cdot \| _ {p} ^ {p}} (\boldsymbol {w}) := \underset {\mathbf {y} \in \mathbb {R} ^ {M \times N \times C}} {\arg \min } \frac {1}{2 \lambda} \| \mathbf {y} - \boldsymbol {w} \| _ {2} ^ {2} + \| \mathbf {y} \| _ {p} ^ {p}, \tag {3}
+$$
+
+for $p = \frac{1}{2}$ . Given that $\| \cdot \|_p^p$ is separable, by (Beck, 2017, Theorem 6.6) it is sufficient to deduce the characterization of $\mathrm{prox}_{\lambda \| \cdot \|_p^p}$ in Eq. (3) when $MNC = 1$ . Each component is thus given by
+
+$$
+\left[ \operatorname {p r o x} _ {\lambda \| \cdot \| _ {p} ^ {p}} (\boldsymbol {w}) \right] _ {i} = \frac {2}{3} w _ {i} \left(1 + \cos \left(\frac {2 \pi}{3} - \frac {2 \phi_ {2 \lambda} (w _ {i})}{3}\right)\right) \mathbb {1} _ {S} (i), \tag {4}
+$$
+
+where
+
+$$
+\phi_ {2 \lambda} (w _ {i}) = \arccos \left(\frac {\lambda}{4} \left(\frac {| w _ {i} |}{3}\right) ^ {- \frac {3}{2}}\right), g (2 \lambda) = \frac {\sqrt [ 3 ]{5 4}}{4} (2 \lambda) ^ {\frac {2}{3}}, S = \{i: | w _ {i} | > g (2 \lambda) \}. \tag {5}
+$$
+
+While the present solution to Eq. (2) for $p = \frac{1}{2}$ can generate highly sparse adversarial perturbations, these perturbations tend to be of large magnitude, making them easily perceptible (Fan et al., 2020). Moreover, this approach does not guarantee that the perturbations will affect the most critical pixels in the image. Our primary objective is to generate group-wise sparse adversarial attacks that are of low magnitude and targeted at the most important regions of the image.
+
+# 2.2 GROUP-WISE SPARSE ADVERSARIAL ATTACKS OF LOW MAGNITUDE
+
+We propose a two-phase method to generate meaningful group-wise sparse adversarial examples with minimal $\ell_2$ -norm perturbation, and enhanced explainability as a natural byproduct (see Sec. 3.4.2).
+
+Step 1: Determine which pixel coordinates to perturb by tuning coefficients $\lambda$ . This step finds the most relevant group-wise sparse pixels to perturb by combining the $1/2$ -quasinorm regularization
+
+of Sec. 2.1 with a novel heuristic approach on $\lambda$ . Instead of a single $\lambda$ , we consider a vector of tradeoff parameters $\lambda \in \mathbb{R}_{\geq 0}^{M \times N \times C}$ for the $1/2$ -quasinorm regularization term, allowing us to adjust each entry individually. Due to Eq. (4), we can formally define the proximal operator to a vector $\lambda \in \mathbb{R}_{\geq 0}^{M \times N \times C}$ of tradeoff parameters
+
+$$
+\left[ \operatorname {p r o x} _ {\lambda \| \cdot \| _ {p} ^ {p}} (\boldsymbol {w}) \right] _ {i, j, c} := \left[ \operatorname {p r o x} _ {\lambda_ {i, j, c} \| \cdot \| _ {p} ^ {p}} (\boldsymbol {w}) \right] _ {i, j, c}. \tag {6}
+$$
+
+In the first $\hat{k}$ iterations, constituting Step 1, we reduce $\lambda_{i,j}$ : for pixels located in proximity to already perturbed pixels (Eq. (10)), thereby making them more susceptible to perturbation.
+
+AdjustLambda. After computing iterate $\pmb{w}^{(k)}$ by forward-backward splitting with Nesterov momentum (line 4 in Algorithm 2), we update $\lambda^{(k)}$ by first building a mask
+
+$$
+\boldsymbol {m} = \operatorname {s i g n} \left(\sum_ {c = 1} ^ {C} | \boldsymbol {w} ^ {(k)} | _ {:,:, c}\right) \in \{0, 1 \} ^ {M \times N}, \tag {7}
+$$
+
+to identify the perturbed pixels. Next, we perform a 2D convolution on $\pmb{m}$ using a square Gaussian blur kernel $\pmb{K} \in \mathbb{R}^{n \times n}$ with appropriate padding, yielding a matrix
+
+$$
+\boldsymbol {M} = \boldsymbol {m} * * \boldsymbol {K} \in [ 0, 1 ] ^ {M \times N}, \tag {8}
+$$
+
+where entries with indices close to non-zero entries of $m$ are non-zero. Appendix B properly defines this operation. From the blurred perturbation mask $M$ , we compute a matrix $\overline{M} \in \mathbb{R}^{M \times N}$ using
+
+$$
+\overline {{M}} _ {i j} = \left\{ \begin{array}{l l} M _ {i j} + 1, & \text {i f} M _ {i j} \neq 0, \\ q, & \text {e l s e}, \end{array} \right. \tag {9}
+$$
+
+for $0 < q \leq 1$ . Finally, we increase (decrease) the tradeoff parameters for pixels situated far from (close to) those previously perturbed by computing new tradeoff parameters
+
+$$
+\lambda_ {i, j,:} ^ {(k + 1)} = \frac {1}{\overline {{M}} _ {i , j}} \lambda_ {i, j,:} ^ {(k)}, \quad \text {w h e r e} i \in \{1, \dots , M \} \text {a n d} j \in \{1, \dots , N \}. \tag {10}
+$$
+
+We thus expand regions with reduced tradeoff parameters over a specified $\hat{k}$ iterations, identifying the most relevant group-wise sparse pixels at coordinates $(i,j)$ , where $\lambda_{i,j,c}^{(k)}$ is lower than the initial value $\lambda_{i,j,c}^{(0)}$ . Unlike existing methods, ours operates independently of predefined structures like pixel partitions. This first step acts only as a heuristic to select the key group-wise sparse pixels, with the proper optimization problem formulated and solved over these selected coordinates in the next step.
+
+Step 2: Solve a low magnitude adversarial attack problem only over the selected coordinates. In the remaining iterations, our algorithm formulates a simplified optimization problem over the pixel coordinates $V$ selected in Step 1 given by
+
+$$
+\min _ {\boldsymbol {w} \in V} \mathcal {L} (\boldsymbol {x} + \boldsymbol {w}, t) + \mu \| \boldsymbol {w} \| _ {2}, \tag {11}
+$$
+
+where $\mu > 0$ (same for all pixels) is a tradeoff parameter controlling $\ell_2$ -norm perturbation magnitude. The subspace $V$ is defined as
+
+$$
+V := \operatorname {s p a n} \left(\left\{e _ {i, j, c} \mid \lambda_ {i, j, c} ^ {(\hat {k})} < \lambda_ {i, j, c} ^ {(0)} \right\}\right) \subseteq \mathbb {R} ^ {M \times N \times C}, \tag {12}
+$$
+
+spanned by standard unit vectors $e_{i,j,c}$ . The projection onto $V$ operates as
+
+$$
+\left[ P _ {V} (\boldsymbol {w}) \right] _ {i, j, c} = \left\{ \begin{array}{l l} \boldsymbol {w} _ {i, j, c}, & \text {i f} e _ {i, j, c} \in V, \\ 0, & \text {o t h e r w i s e .} \end{array} \right. \tag {13}
+$$
+
+Thus, the projection $P_V$ zeros out entries not in $V$ while leaving the others unchanged. We apply projected Nesterov's accelerated gradient descent (NAG) to solve Eq. (11), enabling generation of meaningful group-wise sparse perturbations of low magnitude. In the next iterations, perturbations only affect pixels at coordinates $(i,j)$ where $\lambda_{i,j}^{(\hat{k})}$ is less than the initial $\lambda$ . For most perturbed pixels,
+
+Algorithm 2 GSE: Group-Wise Sparse and Explainable Attack
+Require: Image $\pmb{x} \in \mathcal{X}$ , target label $t$ , loss function $\mathcal{L}$ , regularization parameters $\lambda, \mu > 0$ , step size $\sigma > 0$ , numbers of iterations $\hat{k}$ , $K$ , sequence $\alpha_{k}$ .
+1: Initialize $\pmb{w}^{(0)} \gets \pmb{0}$ , $\lambda^{(0)} \gets \lambda \pmb{1}$ , define $f(\pmb{w}) := \mathcal{L}(\pmb{x} + \pmb{w}, t) + \mu \| \pmb{w} \|_2$
+2: for $k \gets 0, \dots, \hat{k} - 1$ do
+3: $\tilde{\pmb{w}}^{(k+1)} \gets \mathrm{prox}_{\sigma \lambda^{(k)} \| \cdot \|_p^p}(\pmb{w}^{(k)} - \sigma \nabla_{\pmb{w}^{(k)}}(f(\pmb{w}^{(k)})))$
+4: $\pmb{w}^{(k+1)} \gets (1 - \alpha_k) \tilde{\pmb{w}}^{(k+1)} + \alpha_k \tilde{\pmb{w}}^{(k)}$
+5: $\lambda^{(k+1)} \gets \text{AdjustLambda}(\lambda^{(k)}, \pmb{w}^{(k+1)})$
+6: end for
+7: for $k = \hat{k}, \dots, K-1$ do
+8: $\tilde{\pmb{w}}^{(k+1)} \gets \pmb{w}^{(k)} - \sigma \nabla_{\pmb{w}^{(k)}}(f(\pmb{w}^{(k)}))$
+9: $\pmb{w}^{(k+1)} \gets P_V((1 - \alpha_k) \tilde{\pmb{w}}^{(k+1)} + \alpha_k \tilde{\pmb{w}}^{(k)})$
+10: end for
+11: return $\hat{\pmb{w}} = \pmb{w}^{(K)}$
+
+all channels will be affected, as $e_{i,j,c} \in V$ across all channels $c$ . This process is succinctly outlined in Algorithm 2, where we use a sequence $\alpha_{k}$ as in (Nesterov, 1983)
+
+$$
+\beta_ {0} = 0, \quad \beta_ {k} = \frac {1}{2} \left(1 + \sqrt {1 + 4 \beta_ {k - 1} ^ {2}}\right), \quad \alpha_ {k} = \frac {1}{\beta_ {k + 1}} \left(1 - \beta_ {k}\right). \tag {14}
+$$
+
+In our tests, we initially perform a section search to find the maximum $\lambda$ where $\tilde{\boldsymbol{w}}^{(1)}\neq \mathbf{0}$ . Another section search then determines the appropriate $\lambda$ for a successful attack. The projected NAG in Algorithm 2 (solving Eq. (11)) converges as NAG solving an unconstrained problem, since the projection $P_{V}$ acts only within subspace $V$ (see Appendix C for proof).
+
+# 3 EXPERIMENTS
+
+We demonstrate the effectiveness of our proposed GSE attack for crafting group-wise sparse and explainable adversarial perturbations. After outlining experimental setup and defining the relevant comparing metrics, Sec. 3.4 compares our approach with multiple previous SOTA group-wise sparse adversarial attacks. Additionally, Sec. 3.4 covers ablation studies regarding the explainability of such attacks, visualizations, empirical time costs, and success against adversially trained networks.
+
+# 3.1 DATASETS
+
+We experiment on CIFAR-10 (Krizhevsky et al., 2009) and ImageNet (Deng et al., 2009) datasets, analyzing DNNs on 10k randomly selected images from both validation sets. For the classifier $\mathcal{C}$ on CIFAR-10, we train a ResNet20 model (He et al., 2016) for 600 epochs using stochastic gradient descent, with an initial learning rate of 0.01, reduced by a factor of 10 after 100, 250, and 500 epochs. We set the weight decay to $10^{-4}$ , momentum to 0.9, and batch size to 512. For ImageNet, we employ a ResNet50 (He et al., 2016) and a more robust transformer model, ViT_B_16 (Dosovitskiy et al., 2020), both with default weights from the torchvision library. All tests are conducted on a machine with an NVIDIA A40 GPU, and our codes, 10k image indices from the ImageNet validation dataset, and target labels for targeted ImageNet tests are available at https://github.com/wagnermoritz/GSE.
+
+# 3.2 EVALUATION METRICS
+
+Consider $n$ images $\pmb{x}^{(1)},\dots,\pmb{x}^{(n)}$ and the corresponding perturbations $\pmb{w}^{(1)},\dots,\pmb{w}^{(n)}$ , where $\pmb{x}^{(i)},\pmb{x}^{(i)} + \pmb{w}^{(i)}\in \mathcal{X}$ . Among these, let $m_s\leq n$ denote the number of successfully generated adversarial examples $\pmb{x}^{(i)} + \pmb{w}^{(i)}$ . Then, the attack success rate (ASR) is simply defined as $\mathrm{ASR} = m_s / n$ . Assume that the first $m_{s}$ adversarial examples are the successful ones. We compute the average number of changed pixels (ACP) via
+
+$$
+\mathrm {A C P} = \frac {1}{m _ {s} M N} \sum_ {i = 1} ^ {m _ {s}} \| \boldsymbol {m} ^ {(i)} \| _ {0}, \tag {15}
+$$
+
+Table 1: Our attack vs. Homotopy-Attack and SAPF on a ResNet20 classifier for CIFAR-10. Perturbations for every attack were computed for all images sequentially. Due to the extensive computation time of Homotopy-Attack, we tested on a limited sample size of 100.
+
+
Attack
Untargeted
Targeted
ASR
ACP
ANC
\( \ell_2 \)
\( d_{2,0} \)
Time
ASR
ACP
ANC
\( \ell_2 \)
\( d_{2,0} \)
Time
GSE (Ours)
100%
42.5
1.88
0.76
180
2.93s
100%
107
2.56
1.13
301
4.08s
Homotopy
100%
55.3
2.78
0.64
256
499s
100%
113
4.27
1.05
394
754s
SAPF
100%
87.3
4.59
0.41
324
250s
100%
109
4.87
0.78
346
277s
+
+Table 2: Untargeted attacks on ResNet20 classifier for CIFAR-10, and ResNet50 and ViT_B_16 classifiers for ImageNet. Tested on 10k images of each dataset.
+
+
Attack
ASR
ACP
ANC
\( \ell_2 \)
\( d_{2,0} \)
CIFAR-10 ResNet20
GSE (Ours)
100%
41.7
1.66
0.80
177
StrAttack
100%
118
7.50
1.02
428
FWnucl
94.6%
460
1.99
2.01
594
ImageNet ResNet50
GSE (Ours)
100%
1629
8.42
1.50
3428
StrAttack
100%
7265
15.3
2.31
11693
FWnucl
47.4%
13760
3.79
1.81
16345
ImageNet ViT_B_16
GSE (Ours)
100%
941
5.11
1.95
1964
StrAttack
100%
3589
10.8
2.03
8152
FWnucl
57.9%
7515
5.67
3.04
9152
+
+where the perturbation masks $\pmb{m}^{(i)}$ are defined as in Eq. (7). We utilize the ACP instead of the 0-norm since all tested group-wise sparse attacks minimize the ACP. To determine the number of perturbed pixel clusters in $\pmb{x}^{(i)} + \pmb{w}^{(i)}$ , we create a mask $\pmb{m}^{(i)}$ as in Eq. (7) and treat it as a graph where adjacent 1-entries are connected nodes. The number of clusters in the perturbation is equal to the number of disjoint connected subgraphs, which we determine by depth-first search. Averaging this number over all successful examples gives us the average number of clusters (ANC).
+
+The value $\| \pmb{w}\|_{2,0}$ for a perturbation $\pmb{w}$ , as suggested in (Zhu et al., 2021), heavily relies on the pixel partitioning method. Instead, we assess the group-wise sparsity of a perturbation by considering all $n_p$ by $n_p$ pixel patches of an image, rather than only a subset resulting from partitioning. Let $\pmb{w} \in \mathbb{R}^{M \times N \times C}$ , $n_p < M, N$ , and let $\mathcal{G} = \{G_1, \dots, G_k\}$ be a set containing the index sets of all overlapping $n_p$ by $n_p$ patches in $\pmb{w}$ . Then we define
+
+$$
+d _ {2, 0} (\boldsymbol {w}) := \left| \left\{i: \| \boldsymbol {w} _ {G _ {i}} \| _ {2} \neq 0, i = 1, \dots , k \right\} \right|. \tag {16}
+$$
+
+Let $\pmb{x}$ and $\pmb{w}$ represent a vectorized image and its corresponding perturbation in $\mathbb{R}^d$ , respectively. We measure the explainability of perturbations using the interpretability score (IS) (Xu et al., 2019a), derived from the adversarial saliency map (ASM) (Papernot et al., 2016b). For an image $\pmb{x}$ of true class $l$ and a target class $t$ , $\mathrm{ASM}(x, l, t) \in \mathbb{R}^d$ indicates the importance of each feature for classification. The IS is then defined as
+
+$$
+\operatorname {I S} (\boldsymbol {w}, \boldsymbol {x}, l, t) = \frac {\left\| \mathbf {B} (\boldsymbol {x} , l , t) \odot \boldsymbol {w} \right\| _ {2}}{\left\| \boldsymbol {w} \right\| _ {2}}, \quad [ \mathbf {B} (\boldsymbol {x}, l, t) ] _ {i} = \left\{ \begin{array}{l l} 1, & \text {i f} [ \mathrm {A S M} (\boldsymbol {x}, l, t) ] _ {i} > \nu , \\ 0, & \text {o t h e r w i s e}, \end{array} \right. \tag {17}
+$$
+
+where $\nu$ is some percentile of the entries of $\mathrm{ASM}(\pmb{x}, l, t)$ . Note that, when $\mathrm{IS}(\pmb{w}, \pmb{x}, l, t)$ approaches 1, the perturbation primarily targets pixels crucial for the class prediction of the model. For a visual representation of salient image regions, we use the class activation map (CAM) (Zhou et al., 2016). Recall that CAM identifies class-specific discriminative image regions, aiding in visually explaining adversarial perturbations. See Appendix D for more details on ASM, IS, and CAM.
+
+We evaluate all attacks on these metrics in the untargeted and in the targeted setting. For CIFAR-10, the targeted attacks are performed with respect to each wrong label. For the evaluation of the attacks on ImageNet, we choose ten target labels for each image by randomly choosing ten distinct numbers $a_1, \ldots, a_{10} \in \{1, \ldots, 999\}$ and defining the target labels $t_i$ for an image with the true label $l$ by $t_i = l + a_i \mod 1000$ . In the targeted setting, as suggested in (Fan et al., 2020), we give three versions of each metric: best, average, and worst case.
+
+Table 3: Targeted attacks performed on ResNet20 classifier for CIFAR-10, and ResNet50 and ViT_B_16 classifiers for ImageNet. Tested on 1k images from each dataset, 9 target labels for CIFAR-10 and 10 target labels for ImageNet.
+
+
Attack
Best case
Average case
Worst case
ASR
ACP
ANC
\( \ell_2 \)
\( d_{2,0} \)
ASR
ACP
ANC
\( \ell_2 \)
\( d_{2,0} \)
ASR
ACP
ANC
\( \ell_2 \)
\( d_{2,0} \)
CIFAR-10 ResNet20
GSE (Ours)
100%
29.6
1.06
0.68
137
100%
86.3
1.76
1.13
262
100%
162
3.31
1.57
399
StrAttack
100%
78.4
4.56
0.79
352
100%
231
10.1
1.86
534
100%
406
15.9
4.72
619
FWnucl
100%
283
1.18
1.48
515
85.8%
373
2.52
2.54
564
40.5%
495
4.27
3.36
609
ImageNet ResNet50
GSE (Ours)
100%
3516
5.89
2.16
5967
100%
12014
14.6
2.93
16724
100%
21675
22.8
3.51
29538
StrAttack
100%
6579
7.18
2.45
9620
100%
15071
18.0
3.97
20921
100%
26908
32.1
6.13
34768
FWnucl
31.1%
9897
3.81
2.02
11295
7.34%
19356
7.58
3.17
26591
0.0%
N/A
N/A
N/A
N/A
ImageNet ViT_B_16
GSE (Ours)
100%
916
3.35
2.20
1782
100%
2667
7.72
2.87
4571
100%
5920
14.3
3.60
9228
StrAttack
100%
3550
7.85
2.14
5964
100%
8729
17.2
3.50
13349
100%
16047
27.4
5.68
22447
FWnucl
53.2%
5483
4.13
2.77
6718
11.2%
6002
9.73
3.51
7427
0.0%
N/A
N/A
N/A
N/A
+
+(a) ImageNet ViT_B_16
+
+GSE (Ours) StrAttack FWnucl $\mathrm{PGD_0}$ Sparse-RS SAPF
+
+
+(b) CIFAR-10 ResNet20
+Figure 2: IS vs. percentile $\nu$ for targeted versions of GSE vs. five other attacks. Evaluated on an ImageNet ViT_B_16 classifier (a), and CIFAR-10 ResNet20 classifier (b). Tested on 1k images from each dataset, 9 target labels for CIFAR-10 and 10 target labels for ImageNet.
+
+# 3.3 ATTACK CONFIGURATIONS
+
+To find hyperparameters $q, \sigma, \mu$ , and $\hat{k}$ of our algorithm, we run a grid search where ACP + ANC is the objective and ASR = 1.0 the constraint. The exact hyperparameters can be found in Appendix D.1. Regarding StrAttack, we modify the authors' implementation to be compatible with PyTorch, employing the parameters recommended in (Xu et al., 2019a), specifically those from Appendix F. For FWnucl, we implement the nuclear group norm attack in PyTorch, setting $\varepsilon = 5$ . We adjust the implementation of Homotopy-Attack to support group-wise sparsity following (Zhu et al., 2021) and use their recommended parameter settings. For SAPF, we use hyperparameters from (Fan et al., 2020) and choose the sparsity parameter to minimize perturbed pixels while retaining a success rate of $100\%$ . We run all the attacks for a total of 200 iterations.
+
+# 3.4 RESULTS
+
+As shown in Tab. 1, our method significantly outperforms the Homotopy-Attack and SAPF in both targeted and untargeted attacks on CIFAR-10. While Homotopy-Attack and SAPF surpass our method only slightly in the 2-norm perturbation magnitude, this metric is of secondary importance in the group-wise sparse attack setting. In contrast, our method excels in increasing the overall sparsity and group-wise sparsity, all while substantially reducing the cluster count and the computation time. Due to Homotopy-Attack's much slower speed and inability to process batches of images in parallel, we exclude it from further experiments. Additionally, as we couldn't replicate SAPF's ImageNet results due to floating-point overflow during the ADMM update, we also exclude SAPF. We proceed with the more recent Fwnucl and StrAttack in further tests.
+
+
+Figure 3: Visual comparison of successful untargeted adversarial instances generated by our attack, StrAttack, and FWnucl. Adversarial examples are shown in the top row, perturbed pixels highlighted in red in the middle row, and the perturbations in the bottom row. The target model is a ResNet50. Perturbations are enhanced for visibility.
+
+# 3.4.1 EMPIRICAL PERFORMANCE
+
+In Tab. 2 we present untargeted attack results on CIFAR-10 and ImageNet datasets. Notably, our method and StrAttack attain a $100\%$ ASR in both cases. Furthermore, our algorithm significantly outperforms other attacks in terms of ACP. Specifically, our algorithm achieves an average sparsity of $4.1\%$ on CIFAR-10 and $0.5\%$ on ImageNet when attacking a ResNet50 classifier. Additionally, our method demonstrates exceptionally high group-wise sparsity, with an increase of $70.2\%$ on CIFAR-10 and $70.7\%$ on ImageNet when attacking a ResNet50 classifier, outperforming the current SOTA.
+
+The results for targeted attacks are presented in Tab. 3, where our method and StrAttack achieve a perfect ASR in both cases. However, FWnucl results in a $0\%$ worst-case ASR on the ImageNet dataset indicating no worst-case results for FWnucl on ImageNet. Our algorithm yields the sparsest perturbations, changing on average only $8.4\%$ of the pixels in CIFAR-10 images and $13.4\%$ of the pixels in ImageNet images when attacking a ResNet50 classifier. Moreover, our method achieves remarkable group-wise sparsity, with a significant decrease of $d_{2,0}$ by $50.9\%$ on CIFAR-10 and $20\%$
+
+on ImageNet when attacking a ResNet50 classifier, while maintaining the lowest magnitude of attacks measured by the 2-norm. While GSE is outperformed by a SOTA attack (FWnucl) only in the number of clusters for ImageNet, this remains insignificant considering FWnucl's high ACP and low ASR compared to our method. Furthermore, replicating experiments with a ViT_B_16 classifier in Tab. 2 and Tab. 3 demonstrates our algorithm's substantial margin over SOTA, achieving a $73.8\%$ $(55.6\%)$ increase in sparsity and $76\%$ $(38.4\%)$ in group-wise sparsity in the untargeted (targeted) setting, while also attaining the lowest perturbation norm. Additional results can be found in Appendix E.1.
+
+# 3.4.2 EXPLAINABILITY
+
+Figure 2 illustrates the IS metric for the targeted attacks across various percentiles of ASM scores for samples from the CIFAR-10 and ImageNet datasets. Notably, the figure highlights that our method consistently achieves higher IS scores compared to other group-wise sparse attacks, especially for higher percentiles $\nu$ . This shows that
+
+
+Figure 4: Targeted adversarial examples generated by GSE. The target is "airship" for the first two rows, and "golf cart" for the last two rows. The attacked model is a VGG19. Perturbations are enhanced for visibility.
+
+Table 4: Comparison of empirical attack computation time per image. In every experiment, all attacks utilize a batch size of 100 images.
+
+
Attack
Untargeted
Targeted
CIFAR-10 ResNet20
ImageNet
CIFAR-10 ResNet20
ImageNet
ResNet50
ViT_B_16
ResNet50
ViT_B_16
GSE (Ours)
0.13s
3.18s
7.05s
0.16s
4.42s
10.3s
StrAttack
0.97s
15.2s
33.6s
1.28s
18.5s
34.2s
FWnucl
0.25s
9.93s
26.0s
0.32s
11.6s
26.2s
+
+Table 5: Comparison of group-wise sparse adversarial attacks for an adversarially trained ResNet50 ImageNet classifier. Tested on 10k ImageNet instances.
+
+
Attack
ASR
ACP
ANC
\( \ell_2 \)
\( d_{2,0} \)
ImageNet
GSE (Ours)
98.5%
14246
9.17
13.9
20990
ResNet50
StrAttack
100%
16163
13.5
13.2
22097
FWnucl
35.1%
26542
8.83
15.6
25956
+
+the perturbations generated by GSE are more focused on the most salient regions of the image. To emphasize group-wise sparsity's pivotal role in enhancing explainability, we include SOTA sparse adversarial attacks like $\mathrm{PGD}_0$ (Croce & Hein, 2019) and Sparse-RS (Croce et al., 2022), all of which are outperformed by the group-wise sparse attack techniques considered. See Appendix E.2 for additional results.
+
+We display the visualizations for untargeted group-wise sparse adversarial examples in Fig. 3, while Fig. 4 presents those for targeted group-wise sparse adversarial examples. Using the CAM technique (Zhou et al., 2016), we demonstrate the alignment between our algorithm's perturbations and localized, class-specific discriminative regions within the images. The generated perturbations effectively encompass the most discriminative areas of the objects, a testament to our algorithm's impressive achievement of explainability. In the perturbation depictions, unperturbed pixels are shown in grey since the perturbations are not required to be non-negative.
+
+# 3.4.3 SPEED COMPARISON
+
+Tab. 4 summarizes the runtime performance of our algorithm vs. SOTA methods. Notably, GSE exhibits significantly faster performance compared to both FWnucl and StrAttack. This speed advantage stems partially from the method used to enforce group-wise sparsity. While StrAttack calculates the Euclidean norm of each pixel group in every iteration and integrates it as regularization using ADMM, FWnucl computes a solution for a nuclear group-norm LMO in each iteration. In contrast, our attack initially computes a solution for the $1/2$ -quasinorm proximal operator in the first $\hat{k}$ iterations. Subsequently, the attack transitions to projected NAG with $\ell_2$ -norm regularization, which is less computationally costly than the methods employed by both StrAttack and FWnucl.
+
+# 3.4.4 GSE AGAINST ADVERSARIALLY TRAINED NETWORKS
+
+In this section, we present further results on the performance of GSE against an adversarially trained DNN, following the method outlined in (Madry et al., 2018), a standard approach for improving DNN robustness to adversarial attacks. Tab. 5 shows the results of group-wise sparse attacks on an adversarially trained ResNet50, using PGD projected onto a 2-norm ball of radius 3, from MadryLab's Robustness package (Engstrom et al., 2019), tested on the ImageNet dataset. Overall, GSE shows superior tradeoffs, achieving competitive accuracy while altering the fewest pixels (ACP), maintaining a favorable ratio of perturbed pixels (ACP) to clusters (ANC), and recording the lowest $d_{2,0}$ . Although FWnucl slightly outperforms GSE in ANC, this is due to its excessive number of perturbed pixels (ACP). StrAttack only marginally surpasses GSE in attack success rate (ASR) and $\ell_2$ -norm. These results suggest that GSE generates perturbations that adversarially robust models struggle to defend against effectively.
+
+# 4 CONCLUSION
+
+We introduced "GSE", a novel algorithm for generating group-wise sparse and explainable adversarial attacks. Our approach is rooted in proximal gradient methods for non-convex programming, featuring additional control over changed pixels, and the use of projected NAG technique to solve optimization problems. Extensive experiments validate that GSE excels in producing group-wise sparse adversarial perturbations, all while simultaneously exhibiting the highest level of sparsity and the shortest computation time. Moreover, GSE excels over existing approaches in terms of quantitative metrics for explainability and offers transparency for visualizing the vulnerabilities inherent in DNNs. This endeavour not only establishes a new benchmark for the research community to evaluate the robustness of deep learning algorithms but also suggests a simple defense strategy: employing the adversarial examples generated by GSE in adversarial training (Madry et al., 2018). For more sophisticated solutions, we advocate further exploration. We anticipate no adverse ethical implications or future societal consequences from our research.
+
+# ACKNOWLEDGEMENTS
+
+This research was partially supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) as part of Germany's Excellence Strategy through the Berlin Mathematics Research Center MATH+ (EXC-2046/1, Project ID: 390685689) and the Research Campus MODAL funded by the German Federal Ministry of Education and Research (BMBF grant number 05M14ZAM).
+
+# REFERENCES
+
+Anish Athalye, Logan Engstrom, Andrew Ilyas, and Kevin Kwok. Synthesizing robust adversarial examples. In International conference on machine learning, pp. 284-293. PMLR, 2018.
+Jiawang Bai, Bin Chen, Yiming Li, Dongxian Wu, Weiwei Guo, Shu-tao Xia, and En-hui Yang. Targeted attack for deep hashing based retrieval. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part I 16, pp. 618-634. Springer, 2020.
+Amir Beck. First-order methods in optimization. SIAM, 2017.
+Wenfei Cao, Jian Sun, and Zongben Xu. Fast image deconvolution using closed-form thresholding formulas of lq (q= 12, 23) regularization. Journal of visual communication and image representation, 24(1):31-41, 2013.
+Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE symposium on security and privacy (sp), pp. 39-57. IEEE, 2017.
+Weilun Chen, Zhaoxiang Zhang, Xiaolin Hu, and Baoyuan Wu. Boosting decision-based black-box adversarial attacks with random sign flip. In European Conference on Computer Vision, pp. 276-293. Springer, 2020.
+Francesco Croce and Matthias Hein. Sparse and imperceivable adversarial attacks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 4724-4732, 2019.
+Francesco Croce, Maksym Andriushchenko, Naman D Singh, Nicolas Flammarion, and Matthias Hein. Sparse-rs: a versatile framework for query-efficient sparse black-box adversarial attacks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pp. 6437-6445, 2022.
+Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248-255. IEEE, 2009.
+Yinpeng Dong, Hang Su, Baoyuan Wu, Zhifeng Li, Wei Liu, Tong Zhang, and Jun Zhu. Efficient decision-based black-box adversarial attacks on face recognition. In proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 7714-7722, 2019.
+
+Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
+Logan Engstrom, Andrew Ilyas, Hadi Salman, Shibani Santurkar, and Dimitris Tsipras. Robustness (python library), 2019. URL https://github.com/MadryLab/robustness.
+Yanbo Fan, Baoyuan Wu, Tuanhui Li, Yong Zhang, Mingyang Li, Zhifeng Li, and Yujiu Yang. Sparse adversarial attack via perturbation factorization. In Proceedings of European Conference on Computer Vision, pp. 35-50. Springer, 2020.
+Yan Feng, Bin Chen, Tao Dai, and Shu-Tao Xia. Adversarial attack on deep product quantization network for image retrieval. In Proceedings of the AAAI conference on Artificial Intelligence, volume 34, pp. 10786-10793, 2020.
+Marguerite Frank and Philip Wolfe. An algorithm for quadratic programming. Naval Research Logistics Quarterly, 3, 1956.
+Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770-778, 2016.
+Alexey Ignatiev, Nina Narodytska, and Joao Marques-Silva. On relating explanations and adversarial examples. Advances in neural information processing systems, 32, 2019.
+Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. Advances in neural information processing systems, 32, 2019.
+Tooba Imtiaz, Morgan Kohler, Jared Miller, Zifeng Wang, Mario Sznaier, Octavia Camps, and Jennifer Dy. Saif: Sparse adversarial and interpretable attack framework. arXiv preprint arXiv:2212.07495, 2022.
+Ehsan Kazemi, Thomas Kerdreux, and Liqiang Wang. Minimally distorted structured adversarial attacks. International Journal of Computer Vision, 131(1):160-176, 2023.
+Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. University of Toronto, 2009.
+Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278-2324, 1998.
+Huan Li and Zhouchen Lin. Accelerated proximal gradient methods for nonconvex programming. In Advances in neural information processing systems, pp. 379-387, 2015.
+Yiming Li, Baoyuan Wu, Yan Feng, Yanbo Fan, Yong Jiang, Zhifeng Li, and Shutao Xia. Toward adversarial robustness via semi-supervised robust training. arXiv preprint arXiv:2003.06974, 2020.
+Yuezun Li, Xin Yang, Baoyuan Wu, and Siwei Lyu. Hiding faces in plain sight: Disrupting ai face synthesis with adversarial perturbations. arXiv preprint arXiv:1906.09288, 2019.
+Aishan Liu, Xianglong Liu, Jiaxin Fan, Yuqing Ma, Anlan Zhang, Huiyuan Xie, and Dacheng Tao. Perceptual-sensitive gan for generating adversarial patches. In Proceedings of the AAAI conference on artificial intelligence, volume 33, pp. 1028-1035, 2019.
+Aishan Liu, Tairan Huang, Xianglong Liu, Yitao Xu, Yuqing Ma, Xinyun Chen, Stephen J Maybank, and Dacheng Tao. Spatiotemporal attacks for embodied agents. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XVII 16, pp. 122-138. Springer, 2020a.
+Aishan Liu, Jiakai Wang, Xianglong Liu, Bowen Cao, Chongzhi Zhang, and Hang Yu. Bias-based universal adversarial patch attack for automatic check-out. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XIII 16, pp. 395-410. Springer, 2020b.
+
+Ze Liu, Han Hu, Yutong Lin, Zhuliang Yao, Zhenda Xie, Yixuan Wei, Jia Ning, Yue Cao, Zheng Zhang, Li Dong, et al. Swin transformer v2: Scaling up capacity and resolution. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 12009-12019, 2022.
+Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In Proceedings of the International Conference on Learning Representations (ICLR), 2018.
+Apostolos Modas, Seyed-Mohsen Moosavi-Dezfooli, and Pascal Frossard. Sparsefool: a few pixels make a big difference. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 9087-9096, 2019.
+Nina Narodytska and Shiva Prasad Kasiviswanathan. Simple black-box adversarial perturbations for deep networks. arXiv preprint arXiv:1612.06299, 2016.
+Yurii Nesterov. A method for solving the convex programming problem with convergence rate $\mathrm{o}(1 / \mathrm{k}^2 2)$ . Proceedings of the USSR Academy of Sciences, 269, 1983.
+Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv preprint arXiv:1605.07277, 2016a.
+Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In 2016 IEEE European symposium on security and privacy (EuroS&P), pp. 372-387. IEEE, 2016b.
+Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition, 2015.
+David Stutz, Matthias Hein, and Bernt Schiele. Disentangling adversarial robustness and generalization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6976-6987, 2019.
+Jiawei Su, Danilo Vasconcellos Vargas, and Kouichi Sakurai. One pixel attack for fooling deep neural networks. IEEE Transactions on Evolutionary Computation, 23(5):828-841, 2019.
+Hao Wang, Xiangyu Yang, and Xin Deng. A hybrid first-order method for nonconvex $\ell_p$ -ball constrained optimization. arXiv preprint arXiv:2104.04400, 2021.
+Kaidi Xu, Sijia Liu, Pu Zhao, Pin-Yu Chen, Huan Zhang, Quanfu Fan, Deniz Erdogmus, Yanzhi Wang, and Xue Lin. Structured adversarial attack: Towards general implementation and better interpretability. In International Conference on Learning Representations, 2019a.
+Yan Xu, Baoyuan Wu, Fumin Shen, Yanbo Fan, Yong Zhang, Heng Tao Shen, and Wei Liu. Exact adversarial attack to image captioning via structured output learning with latent variables. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4135-4144, 2019b.
+Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
+Jingfeng Zhang, Xilie Xu, Bo Han, Gang Niu, Lizhen Cui, Masashi Sugiyama, and Mohan Kankanhalli. Attacks which do not kill training make adversarial learning stronger. In International conference on machine learning, pp. 11278-11287. PMLR, 2020.
+Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2921-2929, 2016.
+Hang Zhou, Dongdong Chen, Jing Liao, Kejiang Chen, Xiaoyi Dong, Kunlin Liu, Weiming Zhang, Gang Hua, and Nenghai Yu. Lg-gan: Label guided adversarial network for flexible targeted attack of point cloud based deep networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10356-10365, 2020.
+
+Mingkang Zhu, Tianlong Chen, and Zhangyang Wang. Sparse and imperceptible adversarial attack via a homotopy algorithm. In International Conference on Machine Learning, pp. 12868-12877. PMLR, 2021.
+
+# APPENDIX
+
+# A UNTARGETED ADVERSARIAL ATTACK FORMULATION
+
+We can easily modify Eq. (1) to generate untargeted adversarial attacks by maximizing the loss $\mathcal{L}$ with respect to the true label $l$
+
+$$
+\max _ {\boldsymbol {w} \in \mathbb {R} ^ {M \times N \times C}} \mathcal {L} (\boldsymbol {x} + \boldsymbol {w}, l) - \lambda \mathcal {D} (\boldsymbol {w}), \tag {18}
+$$
+
+where $\lambda > 0$ is a regularization parameter.
+
+# B GAUSSIAN BLUR KERNEL
+
+Given $\pmb{m} \in \{0,1\}^{M \times N}$ and the square Gaussian blur kernel $\pmb{K} \in \mathbb{R}^{n \times n}$ , the convolution matrix $\pmb{m} * \pmb{K} \in [0,1]^{M \times N}$ is defined via
+
+$$
+[ \boldsymbol {m} * * \boldsymbol {K} ] _ {i, j} = \sum_ {k = - \hat {n}} ^ {\hat {n}} \sum_ {l = - \hat {n}} ^ {\hat {n}} \boldsymbol {K} _ {k + \hat {n} + 1, l + \hat {n} + 1} \cdot \boldsymbol {m} _ {i + k, j + l},
+$$
+
+where $\hat{n} = \lfloor \frac{n}{2}\rfloor$ $\lfloor \cdot \rfloor$ is the floor function, and $n$ is an odd number.
+
+In other words, Gaussian Blur kernel is a weighted mean of the surrounding pixels that gives more weight to the pixel near the current pixel.
+
+Setting $M = m * * K$ and computing the matrix $\overline{M} \in \mathbb{R}^{M \times N}$ as in Eq. (9) via
+
+$$
+\overline {{M}} _ {i j} = \left\{ \begin{array}{l l} M _ {i j} + 1, & \text {i f} M _ {i j} \neq 0, \\ q, & \text {e l s e}, \end{array} \right. \tag {19}
+$$
+
+for $0 < q \leq 1$ , means we increase the tradeoff parameters in Eq. (10) for pixels with a distance greater than $\hat{n} = \left\lfloor \frac{n}{2} \right\rfloor$ from any perturbed pixels.
+
+# C EQUIVALENCE OF PROJECTED NAG IN ALGORITHM 2 TO NAG OF UNCONSTRAINED PROBLEMS
+
+Here we show that the projected NAG in Algorithm 2 has the same properties as NAG solving an unconstrained problem (Eq. (25)), and thus converges as such.
+
+Proof. Consider $d = MNC$ , where our image $\boldsymbol{x} \in [I_{\min}, I_{\max}]^d$ is vectorized. Let $\mathcal{I}$ denote the set that encompasses indices corresponding to entries with $\lambda_{i,j,c}^{(\hat{k})} \geq \lambda_{i,j,c}^{(0)}$ after $\hat{k}$ iterations. Also, let $m := |\mathcal{I}| < d$ . With these considerations, we can formulate the optimization problem in Eq. (11), which arises following iteration $\hat{k}$ , as
+
+$$
+\min _ {\boldsymbol {w} \in \mathbb {R} ^ {d}} \mathcal {L} (\boldsymbol {x} + \boldsymbol {w}, t) + \mu \| \boldsymbol {w} \| _ {2} \tag {20}
+$$
+
+$$
+\begin{array}{l} \text {s . t .} A \boldsymbol {w} = 0, \end{array}
+$$
+
+where $A\in \{0,1\}^{m\times d}$ has rows
+
+$$
+\left(\underbrace {0 , \dots , 0} _ {i - 1 \text {t i m e s}}, \underbrace {0 , \dots , 0} _ {d - i \text {t i m e s}}\right), \quad \forall i \in \mathcal {I}. \tag {21}
+$$
+
+We can eliminate the equality constraints using the nullspace method. Let $H \in \mathbb{R}^{d \times d}$ be an orthogonal matrix and $R \in \mathbb{R}^{m \times m}$ an upper triangular matrix, obtained by QR-decomposition of $A^{\top}$ , i.e.,
+
+$$
+H A ^ {\top} = \left( \begin{array}{c} R \\ 0 \end{array} \right). \tag {22}
+$$
+
+Further let $H = (Y,Z)^{\top}$ , where $Y^{\top} \in \mathbb{R}^{m \times d}$ contains the first $m$ rows of $H$ and $Z \in \mathbb{R}^{d \times \{d - m\}}$ . Because an orthogonal matrix $H$ possesses full rank, both $Y$ and $Z$ also exhibit full rank. Hence we can uniquely write any $\boldsymbol{w} \in \mathbb{R}^d$ as
+
+$$
+\boldsymbol {w} = Y \boldsymbol {w} _ {y} + Z \boldsymbol {w} _ {z} = H ^ {\top} \left( \begin{array}{l} \boldsymbol {w} _ {y} \\ \boldsymbol {w} _ {z} \end{array} \right), \tag {23}
+$$
+
+with $\pmb{w}_y\in \mathbb{R}^m$ $\pmb {w}_z\in \mathbb{R}^{d - m}$ . In particular, for any $\pmb {w}\in \ker A$ we have
+
+$$
+0 = A \boldsymbol {w} = A H ^ {\top} \binom {\boldsymbol {w} _ {y}} {\boldsymbol {w} _ {z}} = \left(R ^ {\top}, 0\right) \binom {\boldsymbol {w} _ {y}} {\boldsymbol {w} _ {z}} = R ^ {\top} \boldsymbol {w} _ {y}. \tag {24}
+$$
+
+Given Eqs. (21) and (22), we can establish that both $A$ and $R$ possess rank $m$ . Consequently, we can represent any $\boldsymbol{w} \in \ker A$ as $Z\boldsymbol{w}_z$ , where $\boldsymbol{w}_z \in \mathbb{R}^{d - m}$ . Denoting the $\boldsymbol{w}_z$ simply by $z$ , we can formulate an unconstrained problem equivalent to Eq. (20)
+
+$$
+\min _ {\boldsymbol {z} \in \mathbb {R} ^ {d - m}} \mathcal {L} (\boldsymbol {x} + Z \boldsymbol {z}, t) + \mu \| Z \boldsymbol {z} \| _ {2}. \tag {25}
+$$
+
+Setting $f(\boldsymbol{w}) = \mathcal{L}(\boldsymbol{x} + \boldsymbol{w}, t) + \mu \| \boldsymbol{w} \|_2$ and $F(z) = f(Zz)$ we get from the update step of NAG
+
+$$
+\begin{array}{l} \boldsymbol {w} _ {k + 1} = Z \boldsymbol {z} _ {k + 1} \\ = Z \left(\left(1 - \alpha_ {k}\right) \left(\boldsymbol {z} ^ {(k)} - \sigma \nabla F (\boldsymbol {z} ^ {(k)})\right) + \alpha_ {k} \left(\boldsymbol {z} ^ {(k - 1)} - \sigma \nabla F (\boldsymbol {z} ^ {(k - 1)})\right)\right) \\ = \left(1 - \alpha_ {k}\right) \left(\boldsymbol {w} ^ {(k)} - \sigma Z Z ^ {\top} \nabla f \left(\boldsymbol {w} ^ {(k)}\right)\right) + \alpha_ {k} \left(\boldsymbol {w} ^ {(k - 1)} - \sigma Z Z ^ {\top} \nabla f \left(\boldsymbol {w} ^ {(k - 1)}\right)\right) \tag {26} \\ = \left(1 - \alpha_ {k}\right) \left(\boldsymbol {w} ^ {(k)} - \sigma P _ {V} (\nabla f (\boldsymbol {w} ^ {(k)}))\right) + \alpha_ {k} \left(\boldsymbol {w} ^ {(k - 1)} - \sigma P _ {V} (\nabla f (\boldsymbol {w} ^ {(k - 1)}))\right) \\ = P _ {V} \left((1 - \alpha_ {k}) \left(\boldsymbol {w} ^ {(k)} - \sigma \nabla f (\boldsymbol {w} ^ {(k)})\right) + \alpha_ {k} \left(\boldsymbol {w} ^ {(k - 1)} - \sigma \nabla f (\boldsymbol {w} ^ {(k - 1)})\right)\right), \\ \end{array}
+$$
+
+where the last equality holds since $\pmb{w}^{(k)},\pmb{w}^{(k - 1)}\in V$ . Thus, the projected NAG in Algorithm 2 shares the properties of NAG solving the unconstrained problem in Eq. (25), ensuring its convergence.
+
+# D EXPLANATION OF ASM, IS, AND CAM EVALUATION METRICS
+
+We provide further details on the ASM, IS, and CAM metrics as outlined in Sec. 3.2 of the paper.
+
+Consider a vectorized image $\pmb{x} \in [I_{\min}, I_{\max}]^d$ with true label $l$ and target label $t$ . Let $Z(\pmb{x})$ represent the logits of a classifier. The adversarial saliency map (ASM) (Papernot et al., 2016b; Xu et al., 2019a) is defined as follows
+
+$$
+\left. \left[ \operatorname {A S M} (\boldsymbol {x}, l, t) \right] _ {i} = \left(\frac {\partial Z (\boldsymbol {x}) _ {t}}{\partial \boldsymbol {x} _ {i}}\right) \left| \frac {\partial Z (\boldsymbol {x}) _ {l}}{\partial \boldsymbol {x} _ {i}} \right| \mathbb {1} _ {S} (i), \right. \tag {27}
+$$
+
+$$
+S = \left\{i \in \{1, \dots , d \} \middle | \frac {\partial Z (\boldsymbol {x}) _ {t}}{\partial \boldsymbol {x} _ {i}} \geq 0 \text {o r} \frac {\partial Z (\boldsymbol {x}) _ {l}}{\partial \boldsymbol {x} _ {i}} \leq 0 \right\}.
+$$
+
+The metric $\mathrm{ASM}(\pmb{x},l,t)\in \mathbb{R}_{\geq 0}^{d}$ provides a measure of importance for each pixel. It is worth noting that a higher ASM value signifies greater pixel significance. We compute a binary mask $\mathbf{B}(\pmb {x},l,t)\in \{0,1\} ^d$ by
+
+$$
+[ \mathbf {B} (\boldsymbol {x}, l, t) ] _ {i} = \left\{ \begin{array}{l l} 1, & \text {i f} [ \operatorname {A S M} (\boldsymbol {x}, l, t) ] _ {i} > \nu , \\ 0, & \text {o t h e r w i s e}, \end{array} \right. \tag {28}
+$$
+
+where $\nu$ is some percentile of the entries of $\mathrm{ASM}(\pmb{x},l,t)$ . Given an adversarial perturbation $\pmb{w}\in \mathbb{R}^d$ , we can now compute the interpretability score (IS) as
+
+$$
+\operatorname {I S} (\boldsymbol {w}, \boldsymbol {x}, l, t) = \frac {\left\| \mathbf {B} (\boldsymbol {x} , l , t) \odot \boldsymbol {w} \right\| _ {2}}{\left\| \boldsymbol {w} \right\| _ {2}}. \tag {29}
+$$
+
+Note that when $\operatorname{IS}(\boldsymbol{w},\boldsymbol{x},l,t)$ approaches 1, the perturbation primarily targets pixels crucial for the class prediction of the model. Conversely, IS scores nearing zero do not lend themselves to meaningful interpretation based on ASM scores.
+
+Let $\mathcal{C}$ be a convolutional neural network classifier and $f_{k}[i,j]$ be the activation of the unit $k$ at the coordinates $(i,j)$ in the last convolutional layer of $\mathcal{C}$ evaluated at $\pmb{x}$ . Then, using global average pooling after the last convolutional layer, the input to the softmax corresponding to label $l$ is
+
+$$
+\sum_ {k} w _ {k} ^ {l} \sum_ {i, j} f _ {k} [ i, j ] = \sum_ {i, j} \sum_ {k} w _ {k} ^ {l} f _ {k} [ i, j ],
+$$
+
+where $w_{k}^{l}$ are the weights corresponding to the label $l$ for unit $k$ . Since $w_{k}^{l}$ indicate the importance of $\sum_{i,j} f_{k}[i,j]$ for class $l$ , the class activation map (CAM) (Zhou et al., 2016) is defined by
+
+$$
+\left[ \mathrm {C A M} _ {l} \right] _ {i, j} = \sum_ {k} w _ {k} ^ {l} f _ {k} [ i, j ],
+$$
+
+and directly indicates the importance of activation at $(i,j)$ for the classification of $\pmb{x}$ as class $l$ . To make the comparison of $\mathrm{CAM}_l$ and $\pmb{x}$ easier, the resulting class activation map is upscaled to the size of $\pmb{x}$ using bicubic interpolation.
+
+# D.1 HYPERPARAMETERS OF THE GSE ALGORITHM
+
+To find $q, \sigma, \mu$ , and $\hat{k}$ , we run a grid search where $\mathrm{ACP} + \mathrm{ANC}$ is the objective and $\mathrm{ASR} = 1.0$ the constraint. Specifically, for CIFAR-10, we set $q = 0.25$ , $\sigma = 0.005$ , $\mu = 1$ , and $\hat{k} = 30$ , while for ImageNet, we use $q = 0.9$ , $\sigma = 0.05$ , $\mu = 0.1$ , and $\hat{k} = 50$ . Due to the significant efficiency of our attack compared to other group-wise sparse attacks, we can easily run a grid search to find appropriate hyperparameters when working with different datasets. The grid search code used to find the hyperparameters for CIFAR-10 and ImageNet is attached in https://github.com/wagnermoritz/GSE.
+
+# E ADDITIONAL EXPERIMENTS
+
+# E.1 EMPIRICAL PERFORMANCE
+
+In this section, we present untargeted and targeted attack results on the CIFAR-10 dataset (Krizhevsky et al., 2009) using a WideResNet classifier (Zagoruyko & Komodakis, 2016) and ImageNet dataset (Deng et al., 2009) using a VGG19 classifier (Simonyan & Zisserman, 2015). Additionally, we include results on the NIPS2017 dataset (available at https://www.kaggle.com/competitions/nips-2017-defense-against-adversarial-attack/data), comprising 1k images of the same dimensionality $(299 \times 299 \times 3)$ as the ImageNet dataset, on which we test the attacks against a VGG19 (Simonyan & Zisserman, 2015) and a ResNet50 (He et al., 2016) classifier. The results in Tab. 6 and Tab. 7 reinforce the findings of Sec. 3.4.1, highlighting GSE's ability to produce SOTA group-wise sparse adversarial attacks.
+
+Table 6: Untargeted attacks on a WideResNet classifier for CIFAR-10, VGG19 classifier for ImageNet, and VGG19 and ResNet50 classifiers for NIPS2017. Tested on 10k images from the CIFAR-10 dataset, 10k images from the ImageNet dataset, and 1k images from the NIPS2017 dataset.
+
+
Attack
ASR
ACP
ANC
\( \ell_2 \)
\( d_{2,0} \)
CIFAR-10 WideResNet
GSE (Ours)
100%
73.1
1.53
0.71
229
StrAttack
100%
78.9
4.76
1.01
289
FWnucl
97.6%
303
1.87
2.28
438
SAPF
100%
95.1
3.96
0.51
292
ImageNet VGG19
GSE (Ours)
100%
813.9
5.43
1.63
1855
StrAttack
100%
3035
8.57
1.78
6130
FWnucl
85.8%
5964
2.46
2.73
7431
NIPS2017 VGG19
GSE (Ours)
100%
973
6.65
1.49
2254
StrAttack
100%
3589
10.1
1.56
6487
FWnucl
90.1%
6099
2.35
2.71
7701
NIPS2017 ResNet50
GSE (Ours)
100%
1332
9.81
1.46
3036
StrAttack
100%
8211
17.1
2.79
13177
FWnucl
48.2%
14571
5.01
1.77
17086
+
+Table 7: Targeted attacks performed a WideResNet classifier for CIFAR-10, VGG19 classifier for ImageNet, and VGG19 and ResNet50 classifiers for NIPS2017. Tested on 1k images from each dataset, 9 target labels for CIFAR-10 and 10 target labels for ImageNet and NIPS2017.
+
+
Attack
Best case
Average case
Worst case
ASR
ACP
ANC
\( \ell_2 \)
\( d_{2,0} \)
ASR
ACP
ANC
\( \ell_2 \)
\( d_{2,0} \)
ASR
ACP
ANC
\( \ell_2 \)
\( d_{2,0} \)
CIFAR-10 WideResNet
GSE (Ours)
100%
49.8
1.04
0.50
141
94.8%
112
1.45
0.81
238
85.2%
234
2.71
1.25
388
StrAttack
100%
61.7
2.32
0.82
244
98.8%
196
6.31
1.64
431
93.1%
398
11.3
3.01
579
FWnucl
100%
210
1.12
1.56
324
82.1%
269
2.11
2.06
390
44.2%
365
3.56
3.58
472
SAPF
100%
85.3
1.97
0.45
223
94.8%
91.9
3.61
0.91
278
75.2%
101
6.25
1.36
371
ImageNet VGG19
GSE (Ours)
100%
1867
6.15
2.54
3818
100%
6580
14.5
3.28
10204
100%
15526
24.8
4.39
20846
StrAttack
100%
4303
6.11
2.88
7013
100%
11568
16.7
3.59
17564
100%
21552
29.8
5.16
30451
FWnucl
56.2%
4612
1.51
2.90
6973
18.3%
9134
2.53
3.65
12050
0.0%
N/A
N/A
N/A
N/A
NIPS2017 VGG19
GSE (Ours)
100%
2155
5.96
2.78
4617
100%
6329
15.4
3.44
11304
100%
15541
25.2
4.19
21581
StrAttack
100%
4197
6.55
2.45
6847
100%
11326
18.5
3.66
17332
100%
21018
34.1
5.38
30103
FWnucl
52.6%
4543
1.82
2.63
5783
14.1%
7517
2.92
3.81
11007
0.0%
N/A
N/A
N/A
N/A
NIPS2017 ResNet50
GSE (Ours)
100%
3505
6.31
2.51
5698
100%
9127
16.2
2.87
15704
100%
20247
27.5
3.12
26574
StrAttack
100%
6344
6.92
2.54
9229
100%
15278
18.6
4.05
21090
100%
27922
33.7
6.51
35927
FWnucl
30.2%
9812
2.49
2.62
12845
11.8%
11512
8.02
3.69
19493
0.0%
N/A
N/A
N/A
N/A
+
+
+Figure 5: IS vs. percentile $\nu$ for targeted versions of GSE vs. four other attacks. Evaluated on an ImageNet VGG19 classifier. Tested on 1k images and 10 target labels for ImageNet.
+
+
+
+# E.2 EXPLAINABILITY
+
+Fig. 5 reinforces the findings of Sec. 3.4.2, demonstrating GSE's consistently higher IS scores compared to both SOTA group-wise sparse and SOTA sparse attacks, while using a VGG19 classifier (Simonyan & Zisserman, 2015) on ImageNet. This underscores that GSE-generated perturbations are more focused on the most salient regions of the image.
+
+# E.3 TRANSFERABILITY
+
+An intriguing application is evaluating the transferability performance (Papernot et al., 2016a) of various group-wise sparse attacks in the black-box setting, assessing whether an attack maintains a high ASR when targeting a different model. From Tab. 8, our GSE attack demonstrates transferability on par with SOTA group-wise sparse methods, outperforming StrAttack in the lower-triangular case and FWnucl in the diagonal case, while achieving a strong balance between in-model and out-model performance. The additional model, Swin-V2-B, is sourced from (Liu et al., 2022).
+
+Table 8: Transferability of targeted attacks on ImageNet.
+
+
Attack
Attacked Model
ResNet50
Swin-V2-B
VGG19
GSE
ResNet50
100%
5.15%
15.4%
Swin-V2-B
8.61%
99.8%
18.3%
VGG19
5.01%
4.26%
100%
StrAttack
ResNet50
100%
5.27%
18.1%
Swin-V2-B
8.72%
100%
19.9%
VGG19
4.95%
4.12%
100%
FWnucl
ResNet50
65.3%
5.30%
20.0%
Swin-V2-B
10.2%
54.9%
19.3%
VGG19
9.62%
6.05%
97.5%
+
+Table 9: Ablation study on $\hat{k}$ for GSE. Tested on with 1,000 samples from the ImageNet dataset and a ResNet50 classifier. All values of $\hat{k}$ lead to an attack success rate of $100\%$ .
+
+
\(\hat{k}\)
10
20
30
40
50
60
70
80
90
100
ACP
1260
1342
1437
1399
1558
1519
1462
1450
1462
1433
ANC
16.3
13.4
10.5
9.69
8.11
6.73
5.90
5.14
4.92
4.36
\(d_{2,0}\)
3529
3559
3442
3387
3356
3265
3048
2814
2773
2656
\(\ell_2\)
1.44
1.42
1.41
1.39
1.43
1.41
1.42
1.40
1.43
1.44
+
+# E.4 ABLATION STUDY ON $\hat{k}$
+
+We conduct an ablation study on $\hat{k}$ to evaluate the impact of Step 1 on GSE attack performance, as shown in Tab. 9. We see that $\hat{k}$ is inversely correlated with the number of clusters (ANC) and group sparsity $(d_{2,0})$ , as anticipated. No significant correlations with other metrics were observed.
\ No newline at end of file
diff --git a/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/images.zip b/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..83f44eddf436f4350f69436cea3a1939f51551fd
--- /dev/null
+++ b/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1b085ff0be498afae111bad18cb62b037600ba4c44967423492c566f82613e39
+size 700972
diff --git a/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/layout.json b/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..a0742998f3d6e17cedb347b5426fc8a83a590429
--- /dev/null
+++ b/ICLR/2025/GSE_ Group-wise Sparse and Explainable Adversarial Attacks/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4e90166367aa2e3329d6616bd9d45607f95c5437ebda0929a4a5cfd53fe65288
+size 684423
diff --git a/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/52aa5938-408d-4b9a-a150-e46a43c31a40_content_list.json b/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/52aa5938-408d-4b9a-a150-e46a43c31a40_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..77dbb62422b517c215cd293d3f45cee0d17b9caf
--- /dev/null
+++ b/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/52aa5938-408d-4b9a-a150-e46a43c31a40_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e6af92b5e350a9767bc77c8733c9c7a0dc8fa4bc79cb21348f59c8dd17f705d9
+size 135597
diff --git a/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/52aa5938-408d-4b9a-a150-e46a43c31a40_model.json b/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/52aa5938-408d-4b9a-a150-e46a43c31a40_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..4d3543209687aa49b7b7168396baf7b95af32810
--- /dev/null
+++ b/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/52aa5938-408d-4b9a-a150-e46a43c31a40_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2fe480c3e4fd0d1f67342429609669984fbe42050020829d41c8f4f440d341d3
+size 160337
diff --git a/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/52aa5938-408d-4b9a-a150-e46a43c31a40_origin.pdf b/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/52aa5938-408d-4b9a-a150-e46a43c31a40_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..7e51d9bc902cf32d0d99167c1e184f01048f3c24
--- /dev/null
+++ b/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/52aa5938-408d-4b9a-a150-e46a43c31a40_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aede741e50ea6a80de258f4b59bd31f06906c9c4e4390b50e8a81b48b0aeea1a
+size 1529822
diff --git a/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/full.md b/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..9fd46868acafbb248560c7c1fc6a9254480a6099
--- /dev/null
+++ b/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/full.md
@@ -0,0 +1,549 @@
+# GSM-SYMBOLIC: UNDERSTANDING THE LIMITATIONS OF MATHEMATICAL REASONING IN LARGE LANGUAGE MODELS
+
+Iman Mirzadeh1 Keivan Alizadeh1 Hooman Shahrokhi2* Oncel Tuzel1 Samy Bengio1 Mehrdad Farajtabar1†
+
+$^{1}$ Apple $^{2}$ Washington State University
+
+# ABSTRACT
+
+Recent advancements in Large Language Models (LLMs) have sparked interest in their mathematical reasoning capabilities. While performance on the widely popular GSM8K benchmark has improved, questions remain about whether reported evaluation metrics are reliable, and reasoning abilities of LLMs have advanced. To overcome the limitations of existing evaluations, we introduce GSM-Symbolic, an improved benchmark created from symbolic templates that allow for the generation of a diverse set of questions. GSM-Symbolic enables more controllable evaluations, providing key insights and more reliable metrics for measuring the reasoning capabilities of models. Our findings reveal that LLMs exhibit noticeable variance when responding to different instantiations of the same question. Specifically, the performance of models declines when only the numerical values in the question are altered in the GSM-Symbolic benchmark. Furthermore, we investigate the fragility of mathematical reasoning in these models and demonstrate that their performance significantly deteriorates as the number of clauses in a question increases. We hypothesize that this decline is due to the fact that current LLMs are not capable of genuine logical reasoning; instead, they attempt to replicate the reasoning steps observed in their training data. When we add a single clause that appears relevant to the question, we observe significant performance drops (up to $65\%$ ) across all state-of-the-art models, even though the added clause does not contribute to the reasoning chain needed to reach the final answer. Overall, our work provides a more nuanced understanding of LLMs' capabilities and limitations in mathematical reasoning.1
+
+# 1 INTRODUCTION
+
+Large Language Models (LLMs) have demonstrated remarkable capabilities across various domains, including natural language processing, question answering, and creative tasks (Gunter et al., 2024; OpenAI, 2023; Dubey et al., 2024; Anil et al., 2023; Abdin et al., 2024; Riviere et al., 2024). Their potential to perform complex reasoning tasks, particularly in coding and mathematics, has garnered significant attention from researchers and practitioners.
+
+However, the question of whether current LLMs are genuinely capable of true logical reasoning remains an important research focus. While some studies highlight impressive capabilities, a closer examination reveals substantial limitations. Literature suggests that the reasoning process in LLMs is probabilistic pattern-matching rather than formal reasoning (Jiang et al., 2024). Although LLMs can match more abstract reasoning patterns, they fall short of true logical reasoning. Small changes in input tokens can drastically alter model outputs, indicating a strong token bias and suggesting that these models are highly sensitive and fragile (Jiang et al., 2024; Shi et al., 2023). Additionally, in tasks requiring the correct selection of multiple tokens, the probability of arriving at an accurate answer decreases exponentially with the number of tokens or steps involved, underscoring their inherent unreliability in complex reasoning scenarios (Schaeffer et al., 2023).
+
+
+Figure 1: Illustration of the GSM-Symbolic template creation process. This dataset serves as a tool to investigate the presumed reasoning capabilities of LLMs, enabling the design of controllable mathematical reasoning evaluations with more reliable metrics. Our results reveal that all state-of-the-art LLMs exhibit significant performance variations, suggesting the fragility or lack of reasoning.
+
+
+
+Mathematical reasoning is a crucial cognitive skill that supports problem-solving in numerous scientific and practical applications. Consequently, the ability of large language models (LLMs) to effectively perform mathematical reasoning tasks is key to advancing artificial intelligence and its real-world applications. The GSM8K (Grade School Math 8K) dataset Cobbe et al. (2021) has emerged as a popular benchmark for evaluating the mathematical reasoning capabilities of LLMs. While it includes simple math questions with detailed solutions, making it suitable for techniques like Chain-of-Thought (CoT) prompting, it provides only a single metric on a fixed set of questions. This limitation restricts comprehensive insights into the models' mathematical reasoning. Moreover, the popularity and prevalence of GSM8K can increase the risk of inadvertent data contamination. Finally, the static nature of GSM8K does not allow for controllable experiments to understand model limitations, such as behavior under varied conditions or changes in question aspects and difficulty levels.
+
+To address these limitations, a more versatile and adaptive evaluation framework is needed—one that can generate diverse question variants and adjust complexity levels to better explore the robustness and reasoning abilities of LLMs. This would facilitate a deeper understanding of the strengths and weaknesses of these models in mathematical reasoning tasks. We make the following contributions:
+
+- We introduce GSM-Symbolic, an enhanced benchmark that generates diverse variants of GSM8K questions using symbolic templates (Sec. 3), as shown in Fig. 1. This enables a more nuanced and reliable evaluation of LLMs' performance across various setups, moving beyond single-point accuracy metrics. Our large-scale study on 25 state-of-the-art open and closed models provides significant insights into LLMs' behavior in mathematical reasoning tasks.
+- We question the reliability of currently reported results on GSM8K and demonstrate that the performance of LLMs can be viewed as a distribution with unwarranted variance across different instantiations of the same question. We show that the performance of all models drops on GSM-Symbolic (Sec. 4.1), hinting at potential data contamination.
+- We show that LLMs exhibit more robustness to changes in superficial elements like proper names but are very sensitive to changes in numerical values (Sec. 4.2). We show that performance degradation and variance increase as the number of clauses increases, indicating that LLMs' reasoning capabilities struggle with increased complexity (Sec. 4.3).
+
+- Finally, we further question the reasoning abilities of LLMs and introduce the GSM-NoOp dataset. By adding seemingly relevant but ultimately irrelevant information to problems, we demonstrate substantial performance drops (up to $65\%$ ) across all state-of-the-art models (Sec. 4.4). This reveals a critical flaw in the models' ability to discern relevant information for problem-solving, likely because their reasoning is not formal not formal in the conventional sense and is mostly based on pattern matching. We show that even when provided with multiple examples of the same question or examples containing similar irrelevant information, LLMs struggle to overcome the challenges posed by GSM-NoOp. This suggests deeper issues in their reasoning processes that cannot be alleviated by in-context shots and needs further investigation.
+
+Overall, our work provides a comprehensive understanding of the limitations of LLMs in mathematical reasoning. Our results emphasize the need for more reliable evaluation methodologies and further research into the reasoning capabilities of large language models.
+
+# 2 BACKGROUND: REASONING & LANGUAGE MODELS
+
+Logical reasoning is a critical trait of intelligent systems, and building intelligent systems capable of such reasoning has long been an important goal in artificial intelligence (Newell & Simon, 1956; Marcus, 2003; Brachman & Levesque, 2004; Legg & Hutter, 2007; Pearl, 2014; Chollet, 2019). Recent advancements in Large Language Models (LLMs) have demonstrated significant potential across various domains; however, their reasoning abilities remain uncertain and inconsistent. Many works have investigated whether LLMs are truly capable of reasoning by examining how these models solve tasks that require logical reasoning.
+
+We define logical reasoning as the process by which an agent (a human or a machine) employs logical steps to achieve a "novel" goal. The emphasis on "novelty" is crucial because it helps distinguish genuine reasoning from mere memorization of solutions or responses, or mimicking the logical steps previously encountered (Gignac & Szodorai, 2024). This distinction aligns with ideas akin to the Chinese Room Argument (Cole, 2024), underscoring the difference between true comprehension and pattern-matching. Furthermore, this definition connects to several established definitions in AI literature. For instance, the "length-generalization" refers to the ability to apply known logical steps on larger inputs. Moreover, in order to successfully apply such logical steps, an agent often requires other skills such "decomposing" a problem into smaller sub-problems, and "composing" logical steps from these sub-problems in order to solve another problem.
+
+One interesting direction focuses on modeling the computation performed by transformers. For example, parallels have been drawn between components such as attention and feed-forward modules and simple computational primitives (Weiss et al., 2021; Zhou et al., 2024). Delétang et al. (2023) demonstrated that transformers fail to generalize on non-regular tasks and showed that structured memory (e.g., memory tape) is necessary for handling complex tasks. This is related to the effectiveness of Chain-of-Thought (CoT) prompting (Wei et al., 2022) and using scratchpads for LLMs as additional memory for intermediate computations. Moreover, Zubic et al. (2025) show theoretically and empirically that Structured State Space Models (SSMs) and Transformers face fundamental limitations in performing function composition and complex reasoning tasks. Overall, current results suggest that while the transformer architecture has limitations and lacks the required expressiveness for solving problems across several complexity classes, these limitations can be alleviated with additional memory (e.g., scratchpads) (Liu et al., 2024). However, this still requires generating vast amounts of tokens to solve a problem (Peng et al., 2024; OpenAI, 2024). While these works provide insights into the theoretical computational complexity of transformers, in practice, it remains unclear whether these LLMs can perform formal logical reasoning to solve tasks.
+
+There is a considerable body of work suggesting that the reasoning process in LLMs is fragile and not formal (Kambhampati, 2024; Valmeekam et al., 2022; 2024; Nezhurina et al., 2024; McCoy et al., 2023; Zhang et al., 2023), even though it appears that these models understand symbols and can work with them to some limited degree (Boix-Adserà et al., 2024). Instead, LLMs likely perform a form of probabilistic pattern-matching and searching to find closest seen data during training without proper understanding of concepts. While this process goes beyond naive memorization of words and the models are capable of searching and matching more abstract reasoning steps, it still falls short of true formal reasoning. For instance, Jiang et al. (2024) show, with statistical guarantees, that most LLMs still struggle with logical reasoning due to strong token
+
+bias, where the reasoning output of the model changes when a single token of input changes. This aligns with our results, which indicate that the performance of models on different instances of the same mathematical question can vary greatly from one instance to another. Li et al. (2024b) prove that a single transformer layer learns a one-nearest neighbor, which could explain why the reasoning of models is highly sensitive to input tokens. Schaeffer et al. (2023) argue that when a task requires emitting multiple tokens correctly, the probability of answering correctly decreases exponentially with the number of tokens. Dziri et al. (2023) represent reasoning tasks as computation graphs and find that full computation subgraphs appear much more frequently in training data for correct predictions than incorrect ones. Razeghi et al. (2022) show a correlation between frequency in training and test performance, supporting the pattern matching hypothesis, while Nezhurina et al. (2024) and McCoy et al. (2023) demonstrate the fragility of reasoning in LLMs on simple tasks.
+
+Our work builds upon these findings by introducing GSM-Symbolic, an improved benchmark using symbolic templates to generate diverse question variants. This allows us to study mathematical reasoning ability beyond a single performance metric. By evaluating performance on different instantiations and difficulty levels, we draw a comprehensive picture of LLMs' reasoning capabilities. Related to this direction, Stolfo et al. (2023) evaluate LLMs on math word problems by measuring sensitivity and robustness to different input interventions and report that models often rely on surface-level cues rather than genuine reasoning, while Hong et al. (2024) developed an ontology and used it to perturb the GSM8K dataset with the aid of LLMs, and Srivastava et al. (2024) purposes functional variant of MATH dataset. Our findings in this work support the hypothesis that current LLMs are not capable of performing formal mathematical reasoning and pave the way for further research.
+
+# 3 GSM-SYMBOLIC
+
+The GSM8K dataset (Cobbe et al., 2021) includes over 8000 grade school math questions and answers, divided into 7473 training and 1319 test examples. As shown in Fig. 1, the questions are relatively simple, requiring knowledge of only the four main arithmetic operations. However, since GSM8K is a single, popular test set, there is a risk of data contamination, and performance may change significantly with minor modifications to the questions. These limitations have led to efforts to generate new datasets and variants. iGSM (Ye et al., 2024) is a math dataset created through a synthetic pipeline that captures parameter dependencies in a hierarchical and graph structure. GSM-IC (Shi et al., 2023) shows that irrelevant context can impair LLM performance, focusing on prompting techniques. Our work, however, suggests a more fundamental issue: LLMs struggle even when given multiple shots of the same question, indicating deeper challenges in problem-solving that cannot be resolved with few-shot prompting or fine-tuning on unseen distractions or variations of the same or different difficulty levels. GSM-Plus (Li et al., 2024a) introduces variants of GSM8K questions but lacks symbolic templates and has a fixed size and difficulty. GSM1K (Zhang et al., 2024) mirrors the style and complexity of GSM8K to identify systematic overfitting in existing models, but it is not publicly available for researchers.
+
+While the mentioned benchmarks offer a single performance metric on a fixed number of questions, we argue that viewing LLM performance as a distribution across various problem instances provides deeper insights. The design of GSM-Symbolic enables the generation of numerous instances and allows for finer control over question difficulty. We believe our paper contributes to this direction by offering a reliable evaluation framework that underscores the importance of generating multiple instances to assess LLMs' mathematical capabilities and their robustness to diverse problem difficulties and augmentations.
+
+# 3.1 TEMPLATE GENERATION
+
+Given a specific example from the test set of GSM8K, we create parsable templates as shown in Fig. 1 (right). The annotation process involves identifying variables, their domains, and necessary conditions to ensure the correctness of both the question and the answer. For instance, since the questions are grade-school level, a common condition is divisibility to ensure the answer is a whole number. We use common proper names (e.g., persons, foods, currencies) to streamline creation. After creating the templates, we apply several automated checks to ensure the annotation process is correct. For example, we verify that none of the original variable values appear in the template.
+
+We also check that the original values satisfy all conditions and that the final answer matches the original question's answer. Once data are generated, 10 random samples per template are reviewed manually. As a final automated check, after evaluating all models, we verify that at least two models answer each question correctly; otherwise, the question is reviewed manually again.
+
+When constructing symbolic templates, we deliberately select numerical ranges that closely align with those in the original GSM8Ktest set. This decision reflects our focus on assessing logical reasoning capabilities rather than arithmetic skills. Our analysis in Appendix A.6 confirms that the expanded ranges remain within boundaries where models maintain their arithmetic accuracy.
+
+# 3.2 EXPERIMENTAL SETUP
+
+While we provide further details on our experimental setup and evaluation in the Appendix, we briefly review the important aspects here:
+
+Models. Throughout this work, we report on more than 20 open models of various sizes, ranging from 2B to 27B. Additionally, we include state-of-the-art closed models such as GPT-4o-mini, GPT-4o, o1-mini, and o1-preview. To conserve space, we present results for a few selected models in each experiment, but the full results for all models are available in Tab. 1 of the Appendix A.2.
+
+Evaluation Setup Overall, for this work, we conducted nearly 500 total evaluations on various setups. To this end, we maintained a manageable dataset size by using 100 templates and generating 50 samples per template, resulting in 5000 total examples for each benchmark. Therefore, we have 50 datasets of 100 examples each, where each example is a mutation of one of the original 100 examples from GSM8K. Unless stated otherwise, we follow a common evaluation setup on GSM8K and other math benchmarks that includes Chain-of-Thought (CoT) prompting with 8-shots with greedy decoding. However, we note that in our preliminary experiments, the number of shots did not significantly change the performance and conclusions. We provide our prompt template in Fig. 9.
+
+# 4 EXPERIMENTS & RESULTS
+
+In this section, we present our main results and postpone complementary findings to the Appendix. We begin our experiments by addressing an important question regarding the reliability of current reported metrics on GSM8K. By studying the distribution of performance on GSM-Symbolic, we demonstrate notable performance variation. More importantly, we observe that the performance of models drops on GSM-Symbolic (Sec. 4.1).
+
+Next, we investigate the fragility of reasoning in LLMs by comparing performance distributions when only proper names are changed versus when values and numbers are altered. Our findings indicate that the original GSM8K performance of models is much closer to the performance distribution when only names are changed. However, performance drops more significantly when values are changed, with this trend continuing as both changes are applied simultaneously (Sec. 4.2). We then examine the impact of question difficulty, as indicated by the number of clauses added to or removed from the questions. Our results show that as the number of clauses increases, average performance drops, and the variance in performance increases consistently across all models (Sec. 4.3).
+
+Finally, in Sec. 4.4, we tackle a more fundamental question: whether the models truly understand the mathematical concepts. We show that, likely due to potential pattern matching and the fact that the training distribution of models included only necessary information for solving questions, adding seemingly relevant clauses to the question that do not impact the reasoning process required to solve it significantly drops the performance of all models.
+
+# 4.1 HOW RELIABLE ARE THE CURRENT GSM8K RESULTS?
+
+As our first experiment, we evaluate the performance of several state-of-the-art models on GSM-Symbolic. The number of samples and difficulty can be adjusted by modifying variable domains, as we will see in subsequent sections. Fig. 2 shows the empirical distribution of the performance of models on GSM-Symbolic computed on these 50 datasets. As shown, all models exhibit a non-negligible variance across different sets. For instance, for the Gemma2-9B, the gap between the worst performance and the best performance is more than $12\%$ , while for Phi-3.5-mini, this gap
+
+
+
+
+
+
+
+
+Figure 2: 8-shot CoT performance across 50 sets generated from GSM-Symbolic templates. All state-of-the-art models exhibit notable variance in accuracy. It is interesting that for the majority of the models, the performance on GSM8K (represented by dashed line) falls on the right side of the distribution, which statistically speaking, should have a very low likelihood.
+
+
+
+
+
+
+Figure 3: The performance of all state-of-the-art models on GSM-Symbolic drops compared to GSM8K. Later, we investigate the factors that impact the performance drops in more depth.
+
+is around $15\%$ . It is interesting that this variation even exists, as the only differences across different instances of each question are the changes in names and values, while the overall reasoning steps needed to solve a question remain the same.
+
+Another noteworthy observation is that the performance (represented by the dashed line in Fig. 2) on the original questions from the 100 examples of GSM8K used as templates is often more than one standard deviation away from the center of the GSM-Symbolic performance distribution, frequently on the right side of the distribution (this holds for 21 out of 25 models). One explanation for this could be data contamination, where some of the test examples from GSM8K inadvertently ended up in the training set of these models, leading to an optimistic bias in performance. Fig. 3 shows the performance drop from GSM8K to GSM-Symbolic for several models. We can see that for models such as Gemma2-9B, Phi-3, Phi-3.5, and Mathstral-7B, the dashed line in Fig. 2 lies on the right side, and the drop in performance is higher than for models such as Llama3-8b and GPT-4o, where the performance on GSM8K is close to the center of the GSM-Symbolic distribution and the drop in performance is negligible. In Appendix A.3, we present further results to support this claim for other models such as Phi-2 and Mistral-7B. These results lead us to investigate the fragility of the reasoning abilities of LLMs in the next section.
+
+
+
+
+
+
+
+
+Figure 4: How sensitive are LLMs when we change only names, only proper numbers, or both names and numbers? Overall, models have noticeable performance variation even if we only change names, but even more when we change numbers or combine these changes.
+
+
+
+
+
+# 4.2 HOW FRAGILE IS MATHEMATICAL REASONING IN LARGE LANGUAGE MODELS?
+
+In the previous sub-section, we observed high performance variation across different sets generated from the same templates, along with a performance degradation compared to the original GSM8K accuracy. This suggests that the perceived reasoning process of language models may not be formal and is hence susceptible to changes. One explanation is that these models attempt to perform a kind of in-distribution pattern-matching, aligning given questions and solution steps with similar ones seen in the training data. As no formal reasoning is involved in this process, it could lead to high variance across different instances of the same question. In this sub-section and the next one, we investigate these observations further and we show that several factors contribute to the performance variation of the models. First, we investigate the impact of the type of change to understand the difference between changing names (e.g., person names, places, foods, currencies, etc.) versus changing numbers (i.e., the values of variables).
+
+Figure 4 demonstrates that while performance variation persists, the variance is lower when changing names compared to numbers. Notably, the original GSM8K accuracy of models is now much closer to the center of the changed proper names distribution, in contrast to changed numbers or both. Furthermore, a gradual shift in the means of distributions from right to left, along with an increase in variance, is evident across almost all models. It is both striking and concerning that such performance variance exists when only changing proper names, as this level of variability would not be expected from a grade-school student with genuine mathematical understanding.
+
+From the results in this section, we observe that by increasing the difficulty of changes (from names to numbers), the performance drops and the variance increases, overall suggesting that the reasoning capabilities of state-of-the-art LLMs are fragile for the aforementioned reasons. Assuming that LLMs are not performing formal reasoning, how important is the question difficulty on the distribution of performance? In the next section, we study this question further.
+
+# 4.3 HOW DOES QUESTION DIFFICULTY AFFECT PERFORMANCE DISTRIBUTION?
+
+The results in the previous subsection motivate us to study the impact of question difficulty on the mean and variance of the performance distribution. To this end, we generate several new templates from the GSM-Symb, as illustrated in Fig. 5. First, by removing one clause, we obtain GSM-Symbolic-Minus-1 or GSM-M1 for short. Similarly, we can add one or two clauses
+
+# Different Levels of GSM-Symbolic Difficulty
+
+GSM-Symbolic-M1: To make a call from a phone booth, you must pay $0.6 for each minute of your call. After 10 minutes, that price drops to$ 0.5 per minute. How much would a 60-minute call cost?
+
+GSM-Symbolic: To make a call from a phone booth, you must pay $0.6 for each minute of your call. After 10 minutes, that price drops to$ 0.5 per minute. How much would a 60-minute call cost?
+
+GSM-Symbolic-P1: To make a call from a hotel room phone, you must pay $0.6 for each minute of your call. After 10 minutes, that price drops to $0.5 per minute. After 25 minutes from the start of the call, the price drops even more to $0.3 per minute. How much would a 60-minute call cost?
+
+GSM-Symbolic-P2: To make a call from a hotel room phone, you must pay $0.6 for each minute of your call. After 10 minutes, the price drops to $0.5 per minute. After 25 minutes from the start of the call, the price drops even more to $0.3 per minute. If your total bill is more than $10, you get a 25% discount. How much would a 60-minute call cost?
+
+
+Figure 5: Modifying the difficulty level of GSM-Symbolic by modifying the number of clauses.
+
+
+
+
+
+
+Figure 6: The impact of increasing the number of clauses on performance: As the difficulty increases from GSM-M1 $\rightarrow$ GSM-Symb $\rightarrow$ GSM-P1 $\rightarrow$ GSM-P2, the distribution of performance shifts to the left (i.e., accuracy decreases), and the variance increases.
+
+
+
+
+
+to the questions to increase the difficulty, resulting in GSM-Symbolic-Plus-1 (GSM-P1) and GSM-Symbolic-Plus-2 (GSM-P2), respectively2.
+
+As shown in Fig. 6, the trend of the evolution of the performance distribution is very consistent across all models: as the difficulty increases, the performance decreases and the variance increases. Note that overall, the rate of accuracy drop also increases as the difficulty increases. This is in line with the hypothesis that models are not performing formal reasoning, as the number of required reasoning steps increases linearly, but the rate of drop seems to be faster. Moreover, considering the pattern-matching hypothesis, the increase in variance suggests that searching and pattern-matching become significantly harder for models as the difficulty increases.
+
+# GSM-NoOp
+
+Oliver picks 44 kiwis on Friday. Then he picks 58 kiwis on Saturday. On Sunday, he picks double the number of kiwis he did on Friday, but five of them were a bit smaller than average. How many kiwis does Oliver have?
+
+ol-mini: Oliver picks kiwis over three days as follows:
+
+- Friday: 44 kiwis
+
+- Saturday: 58 kiwis
+
+- Sunday: Double the number he picked on Friday, which is $2 \times 44 = 88$ kiwis
+
+However, on Sunday, 5 of these kiwis were smaller than average. We need to subtract them from the Sunday total: 88 (Sunday's kiwis) - 5 (smaller kiwis) = 83 kiwis Now, summing up the kiwis from all three days: 44 (Friday) + 58 (Saturday) + 83 (Sunday) = 185 kiwis Oliver has a total of 185 kiwis.
+
+Llama3-8B: Let's break it down step by step:
+
+Oliver picks 44 kiwis on Friday. He picks 58 kiwis on Saturday. On Sunday, he picks double the number of kiwis he did on Friday, which is $2 \times 44 = 88$ kiwis.
+
+Five of the kiwis picked on Sunday are a bit smaller than average, so we subtract 5 from the total number of kiwis picked on Sunday: $88 - 5 = 83$ kiwis. Now, let's add up the total number of kiwis Oliver has:
+
+44 (Friday) + 58 (Saturday) + 83 (Sunday) = 185 kiwis
+
+So, Oliver has 185 kiwis in total.
+
+Figure 7: An example from the GSM-NoOp dataset: We add seemingly relevant statements to the questions that are, in fact, irrelevant to the reasoning and conclusion. However, the majority of models fail to ignore these statements and blindly convert them into operations, leading to mistakes.
+
+# 4.4 CAN LLMS REALLY UNDERSTAND MATHEMATICAL CONCEPTS?
+
+In the previous sections, we studied the impact of type of change and difficulty on the performance distribution. In this section, we demonstrate that models are susceptible to catastrophic performance drops on instances not part of the training distribution, potentially due to their reliance on in-distribution pattern-matching. We introduce GSM-NoOp, a dataset designed to challenge the reasoning capabilities of language models. To create the templates, we add seemingly relevant but ultimately inconsequential statements to GSM-Symbolic templates. Since these statements carry no operational significance, we refer to them as "No-Op".
+
+Fig. 7 illustrates an example from GSM-NoOp. An interesting observation is that models tend to blindly subtract the number of smaller fruits, potentially because their training datasets included similar examples that required conversion to subtraction operations. In the Appendix, we include additional failure cases from GSM-NoOp. Overall, we find that models tend to convert statements to operations without truly understanding their meaning. For instance, a common case we observe is that models interpret statements about "discount" as "multiplication", regardless of the context. This raises the question of whether these models have truly understood the mathematical concepts well enough. Consequently, as shown in Fig. 8a, there is a catastrophic performance decline across all tested models, with the Phi-3-mini model experiencing over a $65\%$ drop, and even stronger models such as o1-preview showing significant declines.
+
+To better understand this performance drop, we conducted another experiment. While our previous evaluations on GSM-P2 used the original 8-shots of GSM8K, here we explore two new scenarios where we change the source of the 8-shots. We report the results in Figures 8b and 8c.
+
+NoOp-Symb (Using GSM-Symbolic shots of the same question): During evaluation, we include 8 different shots of the same question coming from GSM-Symbolic. Hence, each shot provides the required reasoning steps. The target question from GSM-NoOp then presents yet another variation of the same question that is different only in values and the added clause that is inconsequential. This setup should simplify the task by making it clear that the extra information in the target question is irrelevant. However, as shown in Fig. 8b, the performance remains within the standard deviation, even with 8 shots of the same question providing the reasoning chain. Interestingly, Fig. 8c shows that some models can perform significantly better, even though they don't perform nearly as well on GSM8K and GSM-Symbolic. We believe this is a very notable observation.
+
+NoOp-NoOp (Using GSM-NoOp shots of different questions): Here, we provide 8 shots chosen randomly from different questions of GSM-NoOp in the context. These questions share the common
+
+
+(a)
+
+
+
+
+(b)
+
+
+
+
+(c)
+Figure 8: (a) The performance of models drops significantly on GSM-NoOp, with more recent models experiencing a greater decline than older ones. (b) As previously demonstrated, performance on GSM-Symbolic is very close to that on GSM8K. However, on GSM-NoOp, the significant drop in performance cannot be recovered, even when using the exact same question's variation as shots (NoOp-Symb) or when using different questions with different GSM-NoOp that contain No-Op operations (NoOp-NoOp) as shots. (c) Notably, some models that perform significantly worse than those in (b) on GSM8K and GSM-Symbolic show much better performance on NoOp-Symb.
+
+fact that the correct answer should ignore the No-Op statement. We observe that for the Llama-3-8B model, the performance remains the same compared to the original No-Op model, while for the Phi-3 model, performance slightly decreases.
+
+# 5 CONCLUSION
+
+In this work, we have investigated the reasoning capabilities of large language models (LLMs) and the limitations of current evaluations on GSM8K. We introduced GSM-Symbolic, a novel benchmark with multiple variants designed to provide deeper insights into the mathematical reasoning abilities of LLMs. Our extensive study reveals significant performance variability across different instantiations of the same question, challenging the reliability of current GSM8K results that rely on single-point accuracy metrics. We found that while LLMs exhibit some robustness to changes in proper names, they are more sensitive to variations in numerical values. We have also observed the performance of LLMs deteriorating as question complexity increases.
+
+The introduction of GSM-NoOp exposes a critical flaw in LLMs' ability to genuinely understand mathematical concepts and discern relevant information for problem-solving. Adding seemingly relevant but ultimately inconsequential information to the logical reasoning of the problem led to substantial performance drops across models. Importantly, we demonstrate that LLMs struggle even when provided with multiple examples of the same question or examples containing similar irrelevant information. This suggests deeper issues in their reasoning processes that cannot be easily mitigated through few-shot learning or fine-tuning.
+
+Ultimately, our work underscores significant limitations in LLMs' ability to perform genuine mathematical reasoning. The LLMs' high performance variance on different instances of the same question, their significant drop in performance with a slight increase in difficulty, and their sensitivity to inconsequential information indicate that their reasoning is fragile and may be more akin to sophisticated pattern matching rather than true logical reasoning. We believe further research is needed to develop AI systems capable of formal reasoning, moving beyond probabilistic pattern matching to achieve more robust and generalizable problem-solving skills. This remains a critical challenge for the field as we strive to create systems with human-like cognitive abilities or general intelligence.
+
+# ACKNOWLEDGMENTS
+
+The authors would like to thank Max Horton, Fartash Faghri, Moin Nabi, Devi Krishna, and Arsalan Farooq for the valuable feedback and support.
+
+# REFERENCES
+
+Marah I Abdin, Sam Ade Jacobs, Ammar Ahmad Awan, Jyoti Aneja, Ahmed Awadallah, Hany Awadalla, Nguyen Bach, Amit Bahree, Arash Bakhtiari, Harkirat S. Behl, Alon Benhaim, Misha Bilenko, Johan Bjorck, Sébastien Bubeck, Martin Cai, Caio César Teodoro Mendes, Weizhu Chen, Vishrav Chaudhary, Parul Chopra, Allie Del Giorno, Gustavo de Rosa, Matthew Dixon, Ronen Eldan, Dan Iter, Amit Garg, Abhishek Goswami, Suriya Gunasekar, Emman Haider, Junheng Hao, Russell J. Hewett, Jamie Huynh, Mojan Javaheripi, Xin Jin, Piero Kauffmann, Nikos Karampatziakis, Dongwoo Kim, Mahmoud Khademi, Lev Kurilenko, James R. Lee, Yin Tat Lee, Yuanzhi Li, Chen Liang, Weishung Liu, Eric Lin, Zeqi Lin, Piyush Madan, Arindam Mitra, Hardik Modi, Anh Nguyen, Brandon Norick, Barun Patra, Daniel Perez-Becker, Thomas Portet, Reid Pryzant, Heyang Qin, Marko Radmilac, Corby Rosset, Sambudha Roy, Olatunj Ruwase, Olli Saarikivi, Amin Saied, Adil Salim, Michael Santacroce, Shital Shah, Ning Shang, Hiteshi Sharma, Xia Song, Masahiro Tanaka, Xin Wang, Rachel Ward, Guanhua Wang, Philipp Witte, Michael Wyatt, Can Xu, Jiahang Xu, Sonali Yadav, Fan Yang, Ziyi Yang, Donghan Yu, Chengruidong Zhang, Cyril Zhang, Jianwen Zhang, Li Lyna Zhang, Yi Zhang, Yue Zhang, Yunan Zhang, and Xiren Zhou. Phi-3 technical report: A highly capable language model locally on your phone. CoRR, abs/2404.14219, 2024. doi: 10.48550/ARXIV.2404.14219. URL https://doi.org/10.48550/arXiv.2404.14219.
+Rohan Anil, Sebastian Borgeaud, Yonghui Wu, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut, Johan Schalkwyk, Andrew M. Dai, Anja Hauth, Katie Millican, David Silver, Slav Petrov, Melvin Johnson, Ioannis Antonoglou, Julian Schrittwieser, Amelia Glaese, Jilin Chen, Emily Pitler, Timothy P. Lillicrap, Angeliki Lazaridou, Orhan First, James Molloy, Michael Isard, Paul Ronald Barham, Tom Hennigan, Benjamin Lee, Fabio Viola, Malcolm Reynolds, Yuanzhong Xu, Ryan Doherty, Eli Collins, Clemens Meyer, Eliza Rutherford, Erica Moreira, Kareem Ayoub, Megha Goel, George Tucker, Enrique Piqueras, Maxim Krikun, Iain Barr, Nikolay Savinov, Ivo Danihelka, Becca Roelofs, Anaïs White, Anders Andreassen, Tamara von Glehn, Lakshman Yagati, Mehran Kazemi, Lucas Gonzalez, Misha Khalman, Jakub Sygnowski, and et al. Gemini: A family of highly capable multimodal models. CoRR, abs/2312.11805, 2023. doi: 10.48550/ARXIV.2312.11805. URL https://doi.org/10.48550/arXiv.2312.11805.
+Enric Boix-Adserà, Omid Saremi, Emmanuel Abbe, Samy Bengio, Etai Littwin, and Joshua M. Susskind. When can transformers reason with abstract symbols? In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024. URL https://openreview.net/forum?id=STUGfUz8ob.
+Ronald Brachman and Hector Levesque. Knowledge representation and reasoning. Elsevier, 2004.
+François Chollet. On the measure of intelligence. arXiv preprint arXiv:1911.01547, 2019.
+Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
+David Cole. The Chinese Room Argument. In Edward N. Zalta and Uri Nodelman (eds.), *The Stanford Encyclopedia of Philosophy*. Metaphysics Research Lab, Stanford University, Winter 2024 edition, 2024.
+Grégoire Delétang, Anian Ruoss, Jordi Grau-Moya, Tim Genewein, Li Kevin Wenliang, Elliot Catt, Chris Cundy, Marcus Hutter, Shane Legg, Joel Veness, and Pedro A. Ortega. Neural networks and the chomsky hierarchy. In *The Eleventh International Conference on Learning Representations*, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023. URL https://openreview.net/forum?id=WbxHAzkeQcn.
+
+Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, Anirudh Goyal, Anthony Hartshorn, Aobo Yang, Archi Mitra, Archie Sravankumar, Artem Korenev, Arthur Hinsvark, Arun Rao, Aston Zhang, Aurélien Rodriguez, Austen Gregerson, Ava Spataru, Baptiste Rozière, Bethany Biron, Binh Tang, Bobbie Chern, Charlotte Caucheteux, Chaya Nayak, Chloe Bi, Chris Marra, Chris McConnell, Christian Keller, Christophe Touret, Chunyang Wu, Corinne Wong, Cristian Canton Ferrer, Cyrus Nikolaidis, Damien Allonsius, Daniel Song, Danielle Pintz, Danny Livshits, David Esiobu, Dhruv Choudhary, Dhruv Mahajan, Diego Garcia-Olano, Diego Perino, Dieuwke Hupkes, Egor Lakomkin, Ehab AlBadawy, Elina Lobanova, Emily Dinan, Eric Michael Smith, Filip Radenovic, Frank Zhang, Gabriel Synnaeve, Gabrielle Lee, Georgia Lewis Anderson, Graeme Nail, Grégoire Mialon, Guan Pang, Guillem Cucurell, Hailey Nguyen, Hannah Korevaar, Hu Xu, Hugo Touvron, and et al. The llama 3 herd of models. CoRR, abs/2407.21783, 2024. doi: 10.48550/ARXIV.2407.21783. URL https://doi.org/10.48550/arXiv.2407.21783.
+Nouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li, Liwei Jiang, Bill Yuchen Lin, Peter West, Chandra Bhagavatula, Ronan Le Bras, Jena D. Hwang, Soumya Sanyal, Sean Welleck, Xiang Ren, Allyson Ettinger, Zaid Harchaoui, and Yejin Choi. Faith and fate: Limits of transformers on compositionality, 2023.
+Gilles E. Gignac and Eva T. Szodorai. Defining intelligence: Bridging the gap between human and artificial perspectives. Intelligence, 2024. URL https://api-semanticscholar.org/CorpusID:269015060.
+Tom Gunter, Zirui Wang, Chong Wang, Ruoming Pang, Andy Narayanan, Aonan Zhang, Bowen Zhang, Chen Chen, Chung-Cheng Chiu, David Qiu, Deepak Gopinath, Dian Ang Yap, Dong Yin, Feng Nan, Floris Weers, Guoli Yin, Haoshuo Huang, Jianyu Wang, Jiarui Lu, John Peebles, Ke Ye, Mark Lee, Nan Du, Qibin Chen, Quentin Keunebroek, Sam Wiseman, Syd Evans, Tao Lei, Vivek Rathod, Xiang Kong, Xianzhi Du, Yanghao Li, Yongqiang Wang, Yuan Gao, Zaid Ahmed, Zhaoyang Xu, Zhiyun Lu, Al Rashid, Albin Madappally Jose, Alec Doane, Alfredo Bencomo, Allison Vanderby, Andrew Hansen, Ankur Jain, Anupama Mann Anupama, Areeba Kamal, Bugu Wu, Carolina Brum, Charlie Maalouf, Chinguun Erdenebileg, Chris Dulhanty, Dominik Moritz, Doug Kang, Eduardo Jimenez, Evan Ladd, Fangping Shi, Felix Bai, Frank Chu, Fred Hohman, Hadas Kotek, Hannah Gillis Coleman, Jane Li, Jeffrey P. Bigham, Jeffery Cao, Jeff Lai, Jessica Cheung, Jiulong Shan, Joe Zhou, John Li, Jun Qin, Karanjeet Singh, Karla Vega, Kelvin Zou, Laura Heckman, Lauren Gardiner, Margit Bowler, Maria Cordell, Meng Cao, Nicole Hay, Nilesh Shahdadpuri, Otto Godwin, Pranay Dighe, Pushyami Rachapudi, Ramsey Tantawi, Roman Frigg, Sam Davarnia, Sanskruti Shah, Saptarshi Guha, Sasha Sirovica, Shen Ma, Shuang Ma, Simon Wang, Sulgi Kim, Suma Jayaram, Vaishaal Shankar, Varsha Paidi, Vivek Kumar, Xin Wang, Xin Zheng, and Walker Cheng. Apple intelligence foundation language models. CoRR, abs/2407.21075, 2024. doi: 10.48550/ARXIV.2407.21075. URL https://doi.org/10.48550/arXiv.2407.21075.
+Pengfei Hong, Navonil Majumder, Deepanway Ghosal, Somak Aditya, Rada Mihalcea, and Soujanya Poria. Evaluating llms' mathematical and coding competency through ontology-guided interventions. arXiv preprint arXiv:2401.09395, 2024.
+Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de Las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. Mistral 7b. CoRR, abs/2310.06825, 2023. doi: 10.48550/ARXIV.2310.06825. URL https://doi.org/10.48550/arXiv.2310.06825.
+Bowen Jiang, Yangxinyu Xie, Zhuoqun Hao, Xiaomeng Wang, Tanwi Mallick, Weijie J. Su, Camillo J. Taylor, and Dan Roth. A peek into token bias: Large language models are not yet genuine reasoners. CoRR, abs/2406.11050, 2024. doi: 10.48550/ARXIV.2406.11050. URL https://doi.org/10.48550/arXiv.2406.11050.
+Subbarao Kambhampati. Can large language models reason and plan? Annals of the New York Academy of Sciences, 1534:15 - 18, 2024. URL https://api_semanticscholar.org/CorpusID:268249961.
+
+Shane Legg and Marcus Hutter. Universal intelligence: A definition of machine intelligence. *Minds and machines*, 17:391-444, 2007.
+Qintong Li, Leyang Cui, Xueliang Zhao, Lingpeng Kong, and Wei Bi. Gsm-plus: A comprehensive benchmark for evaluating the robustness of llms as mathematical problem solvers. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar (eds.), Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2024, Bangkok, Thailand, August 11-16, 2024, pp. 2961-2984. Association for Computational Linguistics, 2024a. URL https://aclanthology.org/2024.acl-long.163.
+Zihao Li, Yuan Cao, Cheng Gao, Yihan He, Han Liu, Jason M. Klusowski, Jianqing Fan, and Mengdi Wang. One-layer transformer provably learns one-nearest neighbor in context. 2024b. URL https://apisemantic scholar.org/CorpusID:272307690.
+Zhiyuan Liu, Hong Liu, Denny Zhou, and Tengyu Ma. Chain of thought empowers transformers to solve inherently serial problems. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024. URL https://openreview.net/forum?id=3EWTEy9MTM.
+Gary F Marcus. The algebraic mind: Integrating connectionism and cognitive science. MIT press, 2003.
+R. Thomas McCoy, Shunyu Yao, Dan Friedman, Matthew Hardy, and Thomas L. Griffiths. Embers of autoregression: Understanding large language models through the problem they are trained to solve, 2023. URL https://arxiv.org/abs/2309.13638.
+Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Rivière, Mihir Sanjay Kale, Juliette Love, Pouya Tafti, Léonard Hussenot, Aakanksha Chowdhery, Adam Roberts, Aditya Barua, Alex Botev, Alex Castro-Ros, Ambrose Slone, Amélie Héliou, Andrea Tacchetti, Anna Bulanova, Antonia Paterson, Beth Tsai, Bobak Shahriari, Charline Le Lan, Christopher A. Choquette-Choo, Clément Crepy, Daniel Cer, Daphne Ippolito, David Reid, Elena Buchatskaya, Eric Ni, Eric Noland, Geng Yan, George Tucker, George-Cristian Muraru, Grigory Rozhdestvenskiy, Henryk Michalewski, Ian Tenney, Ivan Grishchenko, Jacob Austin, James Keeling, Jane Labanowski, Jean-Baptiste Lespiau, Jeff Stanway, Jenny Brennan, Jeremy Chen, Johan Ferret, Justin Chiu, and et al. Gemma: Open models based on gemini research and technology. CoRR, abs/2403.08295, 2024. doi: 10.48550/ARXIV.2403.08295. URL https://doi.org/10.48550/arXiv.2403.08295.
+Allen Newell and Herbert Simon. The logic theory machine-a complex information processing system. IRE Transactions on information theory, 2(3):61-79, 1956.
+Marianna Nezhurina, Lucia Cipolina-Kun, Mehdi Cherti, and Jenia Jitsev. Alice in wonderland: Simple tasks showing complete reasoning breakdown in state-of-the-art large language models. arXiv preprint arXiv:2406.02061, 2024.
+OpenAI. GPT-4 technical report. CoRR, abs/2303.08774, 2023. doi: 10.48550/ARXIV.2303.08774. URL https://doi.org/10.48550/arXiv.2303.08774.
+OpenAI. Learning to reason with large language models. https://openai.com/index/learning-to-reason-with-llms/, 2024. Accessed: 2024-09-29.
+Judea Pearl. *Probabilistic reasoning in intelligent systems: networks of plausible inference*. Elsevier, 2014.
+Binghui Peng, Srini Narayanan, and Christos H. Papadimitriou. On limitations of the transformer architecture. CoRR, abs/2402.08164, 2024. doi: 10.48550/ARXIV.2402.08164. URL https://doi.org/10.48550/arXiv.2402.08164.
+Yasaman Razeghi, Adam Roberts, Colin Raffel, and Ariel Herbert-Voss. Impact of pretraining term frequencies on few-shot reasoning. arXiv preprint arXiv:2202.08904, 2022.
+
+Morgane Rivière, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, Johan Ferret, Peter Liu, Pouya Tafti, Abe Friesen, Michelle Casbon, Sabela Ramos, Ravin Kumar, Charline Le Lan, Sammy Jerome, Anton Tsitsulin, Nino Vieillard, Piotr Stanczyk, Sertan Girgin, Nikola Momchev, Matt Hoffman, Shantanu Thakoor, Jean-Bastien Grill, Behnam Neyshabur, Olivier Bachem, Alanna Walton, Aliaksei Severyn, Alicia Parrish, Aliya Ahmad, Allen Hutchison, Alvin Abdagic, Amanda Carl, Amy Shen, Andy Brock, Andy Coenen, Anthony Laforge, Antonia Paterson, Ben Bastian, Bilal Piot, Bo Wu, Brandon Royal, Charlie Chen, Chintu Kumar, Chris Perry, Chris Welty, Christopher A. Choquette-Choo, Danila Sinopalnikov, David Weinberger, Dimple Vijaykumar, Dominika Rogozinska, Dustin Herbison, Elisa Bandy, Emma Wang, Eric Noland, Erica Moreira, Evan Senter, Evgenii Eltsyshev, Francesco Visin, Gabriel Rasskin, Gary Wei, Glenn Cameron, Gus Martins, Hadi Hashemi, Hanna Klimczak-Plucinska, Harleen Batra, Harsh Dhand, Ivan Nardini, Jacinda Mein, Jack Zhou, James Svensson, Jeff Stanway, Jetha Chan, Jin Peng Zhou, Joana Carrasqueira, Joana Iljazi, Jocelyn Becker, Joe Fernandez, Joost van Amersfoort, Josh Gordon, Josh Lipschultz, Josh Newlan, Ju-yeong Ji, Kareem Mohamed, Kartikeya Badola, Kat Black, Katie Millican, Keelin McDonell, Kelvin Nguyen, Kiranbir Sodhia, Kish Greene, Lars Lowe Sjösund, Lauren Usui, Laurent Sifre, Lena Heuermann, Leticia Lago, and Lilly McNealus. Gemma 2: Improving open language models at a practical size. CoRR, abs/2408.00118. 2024. doi: 10.48550/ARXIV.2408.00118. URL https://doi.org/10.48550/arXiv.2408.00118.
+Rylan Schaeffer, Brando Miranda, and Sanmi Koyejo. Are emergent abilities of large language models a mirage?, 2023.
+Freda Shi, Xinyun Chen, Kanishka Misra, Nathan Scales, David Dohan, Ed H. Chi, Nathanael Schärli, and Denny Zhou. Large language models can be easily distracted by irrelevant context. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (eds.), International Conference on Machine Learning, ICML 2023, 23-29 July 2023, Honolulu, Hawaii, USA, volume 202 of Proceedings of Machine Learning Research, pp. 31210-31227. PMLR, 2023. URL https://proceedings.mlr.press/v202/shi23a.html.
+Saurabh Srivastava, Annarose M B, Anto P V, Shashank Menon, Ajay Sukumar, Adwaith Samod T, Alan Philipose, Stevin Prince, and Sooraj Thomas. Functional benchmarks for robust evaluation of reasoning performance, and the reasoning gap, 2024. URL https://arxiv.org/abs/2402.19450.
+Alessandro Stolfo, Zhijing Jin, Kumar Shridhar, Bernhard Schoelkopf, and Mrinmaya Sachan. A causal framework to quantify the robustness of mathematical reasoning with language models. In Anna Rogers, Jordan Boyd-Graber, and Naoaki Okazaki (eds.), Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 545-561, 2023. URL https://aclanthology.org/2023.acl-long.32/.
+Karthik Valmeekam, Alberto Olmo Hernandez, Sarath Sreedharan, and Subbarao Kambhampati. Large language models still can't plan (A benchmark for llms on planning and reasoning about change). CoRR, abs/2206.10498, 2022. doi: 10.48550/ARXIV.2206.10498. URL https://doi.org/10.48550/arXiv.2206.10498.
+Karthik Valmeekam, Kaya Stechly, and Subbarao Kambhampati. Lms still can't plan; can lrms? a preliminary evaluation of openai's o1 on planbench. 2024. URL https://api.sementicscholar.org/CorpusID:272770270.
+Jason Wei, Xuezhi Wang, Dale Schuurmans, et al. Chain-of-thought prompting elicits reasoning in large language models. arXiv preprint arXiv:2201.11903, 2022.
+Gail Weiss, Yoav Goldberg, and Eran Yahav. Thinking like transformers. In Marina Meila and Tong Zhang (eds.), Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, volume 139 of Proceedings of Machine Learning Research, pp. 11080-11090. PMLR, 2021. URL http://proceedings.mlr.org/.press/v139/ weiss21a.html.
+
+Tian Ye, Zicheng Xu, Yuanzhi Li, and Zeyuan Allen-Zhu. Physics of language models: Part 2.1, grade-school math and the hidden reasoning process. arXiv preprint arXiv:2407.20311, 2024.
+Honghua Zhang, Liunian Harold Li, Tao Meng, Kai-Wei Chang, and Guy Van den Broeck. On the paradox of learning to reason from data. In Edith Elkind (ed.), Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, IJCAI-23, pp. 3365-3373. International Joint Conferences on Artificial Intelligence Organization, 8 2023. Main Track.
+Hugh Zhang, Jeff Da, Dean Lee, Vaughn Robinson, Catherine Wu, Will Song, Tiffany Zhao, Pranav Raja, Dylan Slack, Qin Lyu, Sean Hendryx, Russell Kaplan, Michele Lunati, and Summer Yue. A careful examination of large language model performance on grade school arithmetic. CoRR, abs/2405.00332, 2024. doi: 10.48550/ARXIV.2405.00332. URL https://doi.org/10.48550/arXiv.2405.00332.
+Hattie Zhou, Arwen Bradley, Etai Littwin, Noam Razin, Amid Saremi, Joshua M. Susskind, Samy Bengio, and Preetum Nakkiran. What algorithms can transformers learn? A study in length generalization. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024. URL https://openreview.net/forum?id=AssluHnmHX.
+Nikola Zubic, Federico Soldà, Aurelio Sulser, and Davide Scaramuzza. Limits of deep learning: Sequence modeling through the lens of complexity theory. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=DhdqML3FdM.
+
+# A APPENDIX
+
+In this appendix, we provide additional details to the main text, including:
+
+- A.1: Detailed experimental setups, including the prompt template.
+A.2: Full results on GSM8K, GSM-Symbolic, and their variants.
+- A.3: Additional results for the distributional performance of several models, similar to the results from Sec. 4.1 in the main text.
+- A.4: Additional results for Sec. 4.3, where we studied the impact of question difficulty. We show that fine-tuning on easier tasks does not necessarily improve performance on more difficult tasks.
+- A.5: A more comprehensive discussion and analysis of performance for OpenAI o1-mini and o1-preview models.
+
+# A.1 DETAILED EXPERIMENTAL SETUP
+
+In this work, all reported evaluations results use 8-shots with chain-of-thought prompting. We use the following prompt format:
+
+# Evaluation Prompt Format
+
+```txt
+// preamble or system instruction
+As an expert problem solver, solve step by step the following mathematical questions.
+// shot-1
+Q:{question}
+A: Let's think step by step.{solution}. The final answer is {final answer}.
+.
+.
+// shot 8
+Q:{question}
+A: Let's think step by step.{solution}. The final answer is {final answer}.
+// target question
+Q:{question}
+A: Let's think step by step.
+```
+
+Figure 9: The prompt format used for evaluations.
+
+Except for the last experiment in Sec. 4.4, we use the original 8 shots from GSM8K. In addition, we allow the models to generate until either their context size limit is reached, they generate one of the end-of-response tokens such as $\langle \langle s \rangle \rangle'$ or $\langle \langle \text{endoftext} \mid \rangle'$ , or they finish answering the current question and move on to generating the next question, indicated by another $\mathsf{Q} : \mathsf{T}'$ generation.
+
+Finally, we note that in all experiments we use greedy decoding to generate responses from models, with one exception: currently, the available APIs for "o1-mini" and "o1-preview" models do not allow controlling the decoding strategy, and it seems that at the time of writing, these models do not perform greedy decoding, as responses to the same prompt change.
+
+# A.2 FULL RESULTS
+
+In Tab. 1, we present the comprehensive performance results of various models, including Gemma (Mesnard et al., 2024), Gemma2 (Rivière et al., 2024), Phi (Abdin et al., 2024), Mistral (Jiang et al., 2023), Llama3 (Dubey et al., 2024), GPT-4o (OpenAI, 2023), and the o1 (OpenAI, 2024) series, on GSM8K and its different variants, GSM-Symbolic.
+
+We report two sets of results for GSM8K: the first column indicates the accuracy on the full test set of GSM8K (comprising 1,319 examples), while the second column shows the accuracy on a subset of 100 questions from the GSM8K test set, which we randomly selected to generate GSM-Symbolic
+
+templates. It is noteworthy that the performance levels across both sets are very similar, with no significant differences observed.
+
+Table 1: Full 8-shot results of all models on GSM8Kand different variants of GSM-Symbolic.
+
+
Model
GSM8K(Full)
GSM8K(100)
Symbolic-M1
Symbolic
Symbolic-P1
Symbolic-P2
Symbolic-NoOp
Gemma2b
12.1
11.0
24.5 (± 3.85)
8.2 (± 2.21)
3.6 (± 2.13)
1.5 (± 1.63)
4.7 (± 1.99)
Gemma2b-it
12.1
11.0
16.2 (± 3.28)
8.2 (± 2.21)
1.5 (± 1.49)
1.5 (± 1.63)
4.1 (± 2.48)
Gemma-7b
53.8
50.0
34.1 (± 4.41)
25.6 (± 3.25)
26.0 (± 5.30)
3.1 (± 1.92)
8.7 (± 2.71)
Gemma-7b-it
29.3
33.0
34.1 (± 4.41)
25.6 (± 3.25)
6.0 (± 3.38)
3.1 (± 1.92)
8.7 (± 2.71)
Gemma2-2b
47.5
46.0
57.2 (± 3.40)
40.1 (± 3.04)
19.5 (± 3.89)
1.3 (± 1.37)
8.8 (± 4.12)
Gemma2-2b-it
47.5
46.0
57.2 (± 3.40)
40.1 (± 3.04)
19.5 (± 3.89)
4.5 (± 1.94)
15.7 (± 3.97)
Gemma2-9b
85.3
87.0
71.2 (± 2.81)
79.1 (± 2.99)
44.0 (± 5.69)
41.8 (± 6.00)
22.3 (± 5.11)
Gemma2-9b-it
85.3
87.0
84.4 (± 2.36)
79.1 (± 2.99)
68.1 (± 4.77)
41.8 (± 6.00)
22.3 (± 5.11)
Gemma2-27b-it
89.7
92.0
90.2 (± 1.86)
88.3 (± 2.56)
80.7 (± 4.07)
63.4 (± 4.14)
30.0 (± 3.39)
Phi-2
56.0
53.0
53.0 (± 3.10)
41.4 (± 3.56)
23.3 (± 4.07)
8.9 (± 3.33)
11.2 (± 3.51)
Phi-3-mini-128k-instruct
83.7
85.0
85.9 (± 2.44)
80.7 (± 2.94)
63.4 (± 5.63)
37.5 (± 5.76)
18.0 (± 3.83)
Phi-3-small-128k-instruct
88.5
89.0
86.4 (± 1.95)
83.7 (± 2.65)
72.0 (± 3.65)
50.7 (± 4.99)
24.5 (± 4.81)
Phi-3-medium-128k-instruct
87.3
89.0
89.6 (± 1.65)
82.5 (± 2.86)
75.8 (± 3.89)
53.1 (± 4.80)
29.4 (± 4.18)
Phi-3.5-mini-instruct
84.9
88.0
87.6 (± 1.98)
82.1 (± 3.38)
64.8 (± 5.43)
44.8 (± 6.32)
22.4 (± 4.03)
Mistral-7b-v0.1
44.5
48.0
55.4 (± 3.18)
41.1 (± 3.36)
17.4 (± 4.82)
5.5 (± 2.55)
16.2 (± 4.43)
Mistral-7b-instruct-v0.1
39.7
42.0
44.9 (± 4.29)
30.5 (± 3.47)
13.1 (± 3.51)
4.0 (± 2.24)
10.1 (± 3.42)
Mistral-7b-v0.3
40.6
44.0
54.0 (± 2.95)
40.0 (± 4.43)
15.6 (± 4.02)
3.9 (± 2.31)
16.7 (± 4.26)
Mistral-7b-instruct-v0.3
56.2
56.0
62.3 (± 2.68)
50.0 (± 3.49)
24.5 (± 4.34)
10.8 (± 3.60)
15.9 (± 4.44)
Mathstral-7b-v0.1
80.1
80.0
82.9 (± 2.87)
74.0 (± 3.49)
57.4 (± 5.20)
35.5 (± 5.07)
20.4 (± 3.58)
Llama3-8b
55.8
61.0
79.5 (± 3.62)
74.6 (± 2.94)
53.8 (± 4.54)
12.3 (± 3.43)
18.6 (± 3.86)
Llama3-8b-instruct
76.0
74.0
79.5 (± 3.62)
74.6 (± 2.94)
53.8 (± 4.54)
28.3 (± 4.37)
18.6 (± 3.86)
GPT-4o-mini
94.2
95.0
92.5 (± 1.63)
91.7 (± 2.02)
81.1 (± 3.05)
72.4 (± 4.57)
54.1 (± 3.85)
GPT-4o
95.2
95.0
94.4 (± 1.62)
94.9 (± 1.87)
93.9 (± 2.59)
88.0 (± 3.43)
63.1 (± 4.53)
o1-mini
95.1
93.0
94.9 (± 1.49)
94.5 (± 1.58)
94.3 (± 2.57)
89.1 (± 3.56)
66.0 (± 4.60)
o1-preview
94.9
96.0
93.6 (± 1.68)
92.7 (± 1.82)
95.4 (± 1.72)
94.0 (± 2.38)
77.4 (± 3.84)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 10: Additional results on performance variation on GSM-Symbolic.
+
+
+
+
+
+# A.3 ADDITIONAL RESULTS ON GSM-SYMBOLIC PERFORMANCE DISTRIBUTIONS
+
+In section 4.1, we have presented results for several models in Fig. 2. Here, we provide additional results showing the performance on GSM-Symbolic for other models also have high variance. Moreover, these models correspond to highest drop.
+
+Another important question regarding our results is measuring the statistical significance3. In this work, we calculate statistical significance using the one-sample t-test to determine whether the 50 different performance results on GSM-Symbolic differ from the original GSM8K score (i.e., the null hypothesis)4. As we can see in Fig. 10, for an overwhelming majority of models (except Llama3-8B and GPT-4o), the results are statistically significant.
+
+# A.4 ABLATION: DOES FINE-TUNING ON EASIER TASKS HELP WITH MORE DIFFICULT TASKS?
+
+In Sec. 4.3, we observed that the performance on GSM-P2 is significantly lower than the performance on GSM-P1. We also argued that it is unlikely that additional fine-tuning or including shots from GSM-P1 would be beneficial. Here, in Fig. 11a, we show that including shots from GSM-P1 does not improve performance compared to the results where shots come solely from GSM8K.
+
+Moreover, in Fig. 11b, we demonstrate that fine-tuning Phi-3.5 on GSM-P1 slightly improves performance on GSM-P1 while decreasing performance on GSM-P2. We have used a set of 50 templates from GSM-P1, separate from the test templates, and generated 10000 examples for finetuning training set.
+
+Overall, while this direction warrants further research, current results suggest that scaling training data will not be helpful in improving the reasoning capabilities of language models.
+
+
+(a)
+
+
+(b)
+Figure 11: Using in-context shots or finetuning on GSM-P1 does not improve performance on GSM-P2: (a) Compared to the case where 8 shots come from GSM8K, when we include shots from GSM-P1 the performance on GSM-P2 does not improve. (b) Finetuning on GSM-P1 can improve performance on GSM-P1 but not on GSM-P2.
+
+# A.5 RESULTS ON O1-PREVIEW AND O1-MINI
+
+The recently released o1-preview and o1-mini models (OpenAI, 2024) have demonstrated strong performance on various reasoning and knowledge-based benchmarks. As observed in Tab. 1, the mean of their performance distribution is significantly higher than that of other open models.
+
+
+In Fig. 12 (top), we illustrate that both models exhibit non-negligible performance variation. When the difficulty level is altered, o1-mini follows a similar pattern to other open models: as the difficulty increases, performance decreases and variance increases.
+
+
+
+
+Figure 12: Results on o1-mini and o1-preview: both models mostly follow the same trend we presented in the main text. However, o1-preview shows very strong results on all levels of difficulty as all distributions are close to each other.
+
+
+
+The o1-preview model demonstrates robust performance across all levels of difficulty, as indicated by the closeness of all distributions. However, it is important to note that both o1-preview and o1-mini experience a significant performance drop on GSM-NoOp. In Fig. 13, we illustrate that o1-preview struggles with understanding mathematical concepts, naively applying the $10\%$ inflation discussed in the question, despite it being irrelevant since the prices pertain to this year. Additionally, in Fig. 14, we present another example highlighting this issue.
+
+Overall, while o1-preview and o1-mini exhibit significantly stronger results compared to current open models—potentially due to improved training data and post-training procedures—they still share similar limitations with the open models.
+
+# GSM-NoOp
+
+Liam wants to buy some school supplies. He buys 24 erasers that now cost $6.75 each, 10 notebooks that now cost $11.0 each, and a realm of bond paper that now costs $19. How much should Liam pay now, assuming that due to inflation, prices were 10% cheaper last year?
+
+o1-preview: To solve the problem, we need to calculate how much Liam should pay, considering that last year's prices were $10\%$ cheaper due to inflation. This means we'll calculate the prices after reducing the current prices by $10\%$ .
+
+Step 1: Calculate last year's prices by reducing the current prices by $10\%$ .
+
+- Eraser price last year: $6.75 × 0.90 = $6.075
+- Notebook price last year: $11.00 × 0.90 = $9.90
+ - Bond paper price last year: $19.00 × 0.90 = $17.10
+
+Step 2: Calculate the total cost using last year's prices.
+
+- Total cost for erasers: 24 erasers $\times$ \ $6.075 = \$ 145.80
+- Total cost for notebooks: 10 notebooks $\times$ \ $9.90 = \$ 99.00
+- Total cost for bond paper: 1 ream × $17.10 = $17.10
+
+Step 3: Sum up all the costs to get the total amount Liam should pay. $145.80 +$ 99.00 + $17.10 = $261.90
+
+Answer:\(261.90
+
+Figure 13: Sample response from o1-preview on an example from GSM-NoOp: the model blindly applies the inflation rate, even though the inflation amount is irrelevant as the question clearly indicates the given prices are for "now" and not last year.
+
+# GSM-NoOp
+
+A loaf of sourdough at the cafe costs $9. Muffins cost $3 each. If we purchase 10 loaves of sourdough and 10 muffins, how much more do the sourdough loaves cost compared to the muffins, if we plan to donate 3 loaves of sourdough and 2 muffins from this purchase?
+
+# o1-preview:
+
+To solve this problem, we need to compare the total cost of the sourdough loaves and muffins after considering the donated items.
+
+Step 1: Calculate the number of items kept after donations.
+
+- Sourdough loaves kept: 10 loaves - 3 donated = 7 loaves
+- Muffins kept: 10 muffins -2 donated $= 8$ muffins
+
+Step 2: Calculate the total cost of the items kept.
+
+- Total cost of sourdough loaves: 7 loaves $\times$ \ $9 = \$ 63
+- Total cost of muffins: 8 muffins $\times$ \ $3 = \$ 24
+
+Step 3: Find the difference in total cost.
+
+- Difference: $63 - $24 = $39
+
+Answer: $39
+
+# o1-mini:
+
+Let's break down the costs step by step to determine how much more the sourdough loaves cost compared to the muffins after accounting for the donations.
+
+1. Initial Purchase Costs
+
+Sourdough Loaves:
+
+Price per loaf: $9
+
+Quantity purchased: 10
+
+Total Cost: 10 loaves * $9 = $90
+
+Muffins:
+
+Price per muffin: $3
+
+Quantity purchased: 10
+
+Total Cost: 10 muffins * $3 = $30
+
+2. Donated Items and Their Value
+
+Donated Sourdough Loaves:
+
+Quantity donated: 3
+
+Value: 3 loaves * $9 = $27
+
+Donated Muffins:
+
+Quantity donated: 2
+
+Value: 2 muffins * $3 = $6
+
+3. Net Costs After Donation
+
+To find the effective cost of what you're actually keeping (i.e., not donating):
+
+Sourdough Loaves:
+
+Quantity kept: 10 purchased - 3 donated = 7
+
+Net Cost: $90 (total) - $27 (donated) = $63
+
+Muffins:
+
+Quantity kept: 10 purchased - 2 donated = 8
+
+Net Cost: $30 (total) - $6 (donated) = $24
+
+4. Difference in Net Costs
+
+Sourdough Loaves: $63
+
+Muffins: $24
+
+Difference: $63 -$ 24 = $39
+
+Conclusion
+
+After accounting for the donations, the sourdough loaves cost $39 more than the muffins.
+
+Figure 14: Sample response from o1-preview and o1-mini on an example from GSM-NoOp: while the donation amount is irrelevant to the price difference, the models subtract the amount we donate.
+
+# A.6 ABLATION: THE IMPACT OF ARITHMETIC ACCURACY
+
+An important question regarding the design of GSM-Symbolic is: when designing templates, "how should the numerical range of the variables be chosen?" and "how much of the performance drop can be attributed to arithmetic mistakes?".
+
+
+Figure 15: Statistics of the number of digits in the final answer for questions in GSM8K-test, GSM-Symbolic, GSM-P1, and GSM-P2. Compared to GSM8K-test, the GSM-Symbolic set shows a slight reduction in the number of questions with 1-digit or 2-digit final answers, and an increase in 3-digit answers. However, overall, the range of numbers does not increase significantly, with a significant majority of the final answers containing fewer than 5 digits.
+
+
+
+
+
+
+
+
+Figure 16: Statistics on the Number ofDigits in Intermediate answers: Compared to GSM8K, GSM-Symbolic and its variants involve operations that result in 3-digit numbers. However, as shown in Fig. 17, modern LLMs are well capable of performing arithmetic within this range.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(d)
+
+
+(e)
+
+
+(f)
+Figure 17: Arithmetic accuracy of Gemma2-9B and Phi3-Medium: (a) and (d) The addition accuracy of the models remains nearly perfect for calculations involving up to 4 digits. Note that, as shown in Fig. 15, the majority of the final answers in GSM-Symbolic and its variants are below 5 digits. (b) and (e) Although GSM-P1 and GSM-P2 have a similar digit-length distribution to GSM-Symbolic, as illustrated in Fig. 15, the performance drop is significant.
+
+Overall, when creating the symbolic templates, we have chosen numerical ranges close to their original values in the GSM8K test set. The rationale behind this choice is that the arithmetic ability of the models is much less important than their logical reasoning capabilities. However, we face a challenge: we need to generate many instances per question. Given that not all values in the range satisfy the conditions and hence won't be selected, we need to slightly increase the numeric range of numbers to ensure enough instances are generated from each template.
+
+However, we show that this adjustment does not push the numerical values into a range where models have low arithmetic accuracy. As observed in Fig. 15:
+
+- Compared to GSM8K, GSM-Symbolic has more 3-digit final answers and fewer 1-digit and 2-digit answers. However, as shown in Fig. 17, modern LLMs such as Gemma2-9B have no difficulty with up to 3-digit addition and multiplication.
+- Even though GSM-P1 and GSM-P2 have a very similar digit distribution to GSM-Symbolic and are mostly within the range that modern LLMs can perform accurate arithmetic (Fig. 17), the performance drop on these benchmarks is very significant (Fig. 17c).
+
+Additionally, Fig. 16 provides statistics on the different operations involved in calculating intermediate answers across various datasets. Here, "intermediate" refers to the result of each intermediate operation throughout the solution process. For example, if a solution step involves $12 \times 6 = 72$ , we categorize this as a two-digit multiplication. We observe that, overall, the distribution of the digit lengths in intermediate answers in Fig. 16, is similar to that in the final answers in Fig. 15.
+
+Moreover, in Fig. 17, we demonstrate that modern Language Learning Models (LLMs) such as Gemma2-9B and Phi3-Medium are capable of nearly perfect addition and subtraction up to a length of 4, as well as achieving very high accuracy in multiplication and division. To this end, for each digit length of the answer, we ask the model in a zero-shot manner what the result of the operation would be. For example, for addition, we use the prompt "What is $x$ plus $y$ ?" and for multiplication, we ask "What is $x$ times $y$ ?", and so on. To reduce the computational burden, we do not check arithmetic accuracy on every possible combination of numbers. However, we ensure that for every digit length and every operation, we have at least 1,000 test cases.
+
+Finally, in Table 2 we report the arithmetic accuracy results of Gemma2-9b-it on a more realistic setup where calculations are extracted from the generated responses. To this end, we extracted parts of the generated responses where the equal sign $(=)$ was generated along with numerical values, and then evaluated whether the left-hand side of the equation had the same numerical value as the right-hand side. As shown in the table, we observe very high arithmetic accuracy, similar to the previous results in this section.
+
+Table 2: Ablation: Arithmetic accuracy of Gemma2-9b-it on different GSM benchmarks.
+
+
Benchmark
1-digit
2-digits
3-digits
4-digits
5-digits
All
GSM8K
99.8
99.1
99.3
96.8
95.9
98.9
GSM-Symbolic
99.7
99.2
97.6
97.2
99.1
98.3
GSM-P1
97.5
98.6
98.7
96.2
99.5
97.4
GSM-P2
96.2
98.6
97.5
96.4
99.2
97.1
+
+Overall, we believe it is unlikely that arithmetic difficulty can account for the significant performance drop on benchmarks such as GSM-P2, which has a very similar distribution to GSM-Symbolic and falls well within the range of fewer than 5 digits that models like Gemma2-9B can handle accurately.
\ No newline at end of file
diff --git a/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/images.zip b/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..232d4375e4232369f5c104f59685672252f9c3a5
--- /dev/null
+++ b/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9183fc8271778947f388b64e39ce643119683b466d7dada6f5ea6ecaefaf832a
+size 1221669
diff --git a/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/layout.json b/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..f877316ef05f810d7e504523a61f2ebffca6ace6
--- /dev/null
+++ b/ICLR/2025/GSM-Symbolic_ Understanding the Limitations of Mathematical Reasoning in Large Language Models/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:03f36ce99b3d346428d85368b422d9d4f99833de0380bdfe58953b7b69c2328e
+size 586983
diff --git a/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/9f83baa2-4828-4306-a7f6-aebb3145b532_content_list.json b/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/9f83baa2-4828-4306-a7f6-aebb3145b532_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..574f2d65b75680d01fd1650f0f337ff603ab37db
--- /dev/null
+++ b/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/9f83baa2-4828-4306-a7f6-aebb3145b532_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b5d47e1dcd7f6bcea722f29402da0fdff0a0810b82be81e47b80278a0e162570
+size 90276
diff --git a/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/9f83baa2-4828-4306-a7f6-aebb3145b532_model.json b/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/9f83baa2-4828-4306-a7f6-aebb3145b532_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..d741350bf45d5244ee6bb3e643e894f7b6e6ca2a
--- /dev/null
+++ b/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/9f83baa2-4828-4306-a7f6-aebb3145b532_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d683bbd5db5a0082c65816bced7107b15fc145195548fe87872a437556ea379a
+size 109603
diff --git a/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/9f83baa2-4828-4306-a7f6-aebb3145b532_origin.pdf b/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/9f83baa2-4828-4306-a7f6-aebb3145b532_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..8cc64999913423cbb2e5d2e4d44b730fcfde081f
--- /dev/null
+++ b/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/9f83baa2-4828-4306-a7f6-aebb3145b532_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b7234f8a7facaef1a38812585977c9a63ce002bac762818331f9d79c48ddd5e2
+size 15485534
diff --git a/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/full.md b/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..8140a515455f0b177809fa762a2e239cafd1e77b
--- /dev/null
+++ b/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/full.md
@@ -0,0 +1,405 @@
+# GTR: IMPROVING LARGE 3D RECONSTRUCTION MODELS THROUGH GEOMETRY AND TEXTURE REFINEMENT
+
+Peiye Zhuang
+
+Songfang Han
+
+Chaoyang Wang
+
+Aliaksandr Siarohin
+
+Jiaxu Zou
+
+Michael Vasilkovsky
+
+Vladislav Shakhrai
+
+Sergei Korolev
+
+Sergey Tulyakov
+
+Hsin-Ying Lee
+
+https://snap-research.github.io/GTR/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Input
+
+
+LRM (Hong et al., 2024)
+
+
+InstantMesh (Xu et al., 2024a)
+
+
+Ours
+Figure 1: Comparison with the baseline methods on the sparse-view reconstruction task. We visualize the novel view results generated from the GSO dataset (Downs et al., 2022) (row 1-3), or a generated image (row 4). Note that for the generated image, we use Zero123++ (Shi et al., 2023) to generate 6 views, which are used as input for InstantMesh (Xu et al., 2024a) and GTR (Ours).
+
+
+Our normals
+
+# ABSTRACT
+
+We propose a novel approach for 3D mesh reconstruction from multi-view images. We improve upon the large reconstruction model LRM (Hong et al., 2024) that use a transformer-based triplane generator and a Neural Radiance Field (NeRF) model trained on multi-view images. We introduce three key components to significantly enhance the 3D reconstruction quality. First of all, we examine the original LRM architecture and find several shortcomings. Subsequently, we introduce respective modifications to the LRM architecture, which lead to improved multi-view image representation and more computationally efficient training. Second, in order to improve geometry reconstruction and enable supervision at full image resolution, we extract meshes from the NeRF in a differentiable manner and fine-tune the NeRF model through mesh rendering. These modifications allow us to achieve state-of-the-art performance on both 2D and 3D evaluation metrics on Google Scanned Objects (GSO) dataset (Downs et al., 2022) and OmniObject3D dataset (Wu et al., 2023). Finally, we introduce a lightweight per-instance texture refinement procedure to better reconstruct complex textures, such as text and portraits on
+
+assets. To address this, we introduce a lightweight per-instance texture refinement procedure. This procedure fine-tunes the triplane representation and the NeRF's color estimation model on the mesh surface using the input multi-view images in just 4 seconds. This refinement achieves faithful reconstruction of complex textures. Additionally, our approach enables various downstream applications, including text/image-to-3D generation.
+
+# 1 INTRODUCTION
+
+The task of generating 3D assets from text or images has wide applications in digital content generation and virtual reality (VR) (Lin et al., 2023a;b). Because of the scarcity of 3D data, efforts have been made to leverage pre-trained large-scale text-to-image diffusion models. Some works learn 3D asset generation from the pre-trained image diffusion models via score distillation techniques (Poole et al., 2023; Wang et al., 2023b;a; Chen et al., 2023; Lin et al., 2023a; Zhu & Zhuang, 2023; Qian et al., 2024), which, however, require from several minutes to several hours for a single asset, since the optimization algorithm requires many iterations. Other works propose to fine-tune image diffusion models into a multi-view image diffusion model (Liu et al., 2023; Shi et al., 2024; Liu et al., 2024; Long et al., 2023) using 3D asset datasets (Deitke et al., 2023). These multi-view images serve as an intermediate 3D representation, which is taken as input by large 3D reconstruction models (LRMs) (Hong et al., 2024; Li et al., 2024; Xu et al., 2024c; Wang et al., 2024; Tang et al., 2024) for asset generation. However, these previous approaches struggle to reconstruct faithful textures and high-quality geometry when using the Marching Cube (MC) algorithm (Lorensen & Cline, 1998). Moreover, after extracting meshes using MC, the texture quality degrades even further.
+
+In contrast, we start developing the feed-forward mesh generation model by carefully examining the standard LRM architecture. First, we observed that DINO features tend to discard high-frequency image details, which are important for the precise reconstruction, from the input images. Thus we replace the pre-trained DINO transformer (Caron et al., 2021) used in previous LRMs (Hong et al., 2024; Li et al., 2024; Xu et al., 2024c; Wang et al., 2024; Tang et al., 2024) with a convolutional encoder for the multi-view images. Moreover, because of the high computation requirements of the transformers, previous methods usually run a transformer at $32^{2}$ triplane resolution and use a deconvolution to upsample this triplane. However, we noticed that reconstruction from standard LRM often exhibits regular grid artifacts (see Fig. 1). We speculate that the nature of these artifacts is similar to grid-shape artifacts observed in 2D deconvolutional generators (Odena et al., 2016). To address this, we replace all deconvolution layers with Pixelshuffle layers (Shi et al., 2016). Finally, we employ two shallow Multi-layer Perceptrons (MLPs) to separately predict density and colors, which is beneficial for our following fine-tuning stages, which we will explain shortly.
+
+Learning meshes is significantly harder than learning a NeRF. Thus, we begin by training this modified architecture using NeRF volume rendering. With the trained NeRF model in place, we proceed to fine-tune the pipeline using mesh rendering (also known as rasterization). To achieve this, we employ Differentiable Marching Cubes (DiffMC) (Wei et al., 2023) to extract meshes from the NeRF density fields by transferring the densities to a signed distance function (SDF) representation. This enables us to render full-resolution images for supervision. Additionally, we employ a depth loss to guide the geometry extraction. Our feed-forward mesh generation pipeline significantly boosts the quality of the reconstructions compared to the results extracted from NeRFs using MC.
+
+While the feed-forward mesh generation pipeline achieves advanced 3D reconstruction quality, it still faces challenges in accurately reconstructing intricate textures, such as text and complex patterns. To address this limitation and further enhance texture quality, we introduce a straightforward yet highly effective texture refinement procedure. Specifically, we fine-tune both the triplane feature and the color estimation model for each instance using sparse multi-view input images. As mentioned before, the shallow and separate density and color estimation models enable efficient updating of colors for surface points on the extracted meshes. In other words, the heavy triplane generator remains fixed in this texture refinement stage. This enables us to achieve rapid optimization, reaching 5 iterations per second on an A100 GPU. Remarkably, our method achieves faithful texture reconstruction with just 20 steps of fine-tuning on 4-view images, requiring a mere 4 seconds on an A100 GPU.
+
+Our proposed approach enables faithful 3D reconstruction from the multi-view input images, as shown in Fig. 1. We conduct a comprehensive comparison of our method with multiple concurrent
+
+
+Figure 2: Overview of our proposed approach for 3D reconstruction. Our pipeline consists of a convolutional decoder $\mathcal{E}$ , a transformer-based triplane generator, $T$ , and a NeRF-based triplane decoder that contains two MLPs, $f_{c}$ and $f_{d}$ , for color and density prediction, respectively. In practice, the triplane resolution is set to 256, and the mesh representation has a grid size resolution of 256.
+
+works (Hong et al., 2024; Xu et al., 2024a; Tang et al., 2024) using the Google Scanned Object (GSO) (Downs et al., 2022) and the OmniObject3D (Wu et al., 2023) datasets, employing various evaluation metrics. For instance, in the 4-view reconstruction task using GSO dataset (Downs et al., 2022), our approach achieves a Peak Signal-to-Noise Ratio (PSNR) of 29.79, a Structural Similarity Index (SSIM) of 0.94 and a Learned Perceptual Image Patch Similarity (LPIPS) score of 0.059.
+
+Extensive experiments show that our feed-forward model achieves superior results compared to the baseline approaches, while our per-instance refinement approach enables further texture improvement on text and complex patterns. See Fig. 1 for visual examples.
+
+We summarize our technical contributions to two key components of multiview-to-3D reconstruction: (1) mesh generation and (2) accurate texture reconstruction. These contributions are outlined as follows:
+
+- We introduce a holistic design for multi-view image to 3D reconstruction to enhance the quality of the generated meshes. This includes modifications to the existing LRM model and fine-tuning the NeRF model with a differentiable mesh representation.
+- We present an efficient per-instance texture refinement process, leveraging input images to enhance texture details.
+
+Furthermore, our model can be adapted to various downstream applications, such as text/image-to-3D generation tasks.
+
+# 2 RELATED WORK
+
+Optimization-based 3D generation aims to use pre-trained large-scale text-to-image diffusion models Rombach et al. (2022); Sahara et al. (2022) for 3D generation, given the insufficient scale and diversity of existing 3D datasets. To distill 3D knowledge from the text-to-image models, a Score Distillation Sampling (SDS) approach and its variants Poole et al. (2023); Wang et al. (2023a;b); Chen et al. (2023); Zhu & Zhuang (2023) have been proposed. In these methods, noise is added to an image rendered from 3D models like NeRFs and subsequently denoised by a pre-trained text-to-image generative model Rombach et al. (2022). The SDS approach aims to minimize the Kullback-Leibler (KL) divergence between a prior noise distribution and the estimated noise distribution from the text-to-image model. However, these SDS-based methods are time-consuming, usually taking up to hours to generate a single instance. Alternatively, feed-forward 3D generation models have been proposed to achieve faster generation.
+
+
+Figure 3: Texture refinement for extracted meshes. We refine the texture by fine-tuning the triplane feature of the asset and the color MLP, $f_{c}$ , using the input images. The learnable components are marked as $\downarrow$ . We use an L2 loss on the images, defined as $\mathcal{L}_{\mathrm{Tex}}$ .
+
+Feed-forward 3D generation has gained increasing attention recently due to its speed advantage. Most existing feed-forward 3D generation pipelines consist of two stages: (i) a text prompt (or a single image) to multi-view generation and (ii) multi-view images to 3D shape reconstruction. In the first stage, multi-view images are generated from text or image input using a multi-view generator Liu et al. (2023); Shi et al. (2024); Liu et al. (2024); Long et al. (2023), which are usually fine-tuned from image or video diffusion generation models Rombach et al. (2022); Blattmann et al. (2023). In the second stage, a 3D instance is reconstructed from input multi-view images. In this case, various 3D representations are used such as neural implicit fields Li et al. (2024); Xu et al. (2024c); Hong et al. (2024), Gaussian Splitting Xu et al. (2024b); Tang et al. (2024), or meshes Wang et al. (2024); Xu et al. (2024a). However, existing methods encounter challenges to either faithfully reconstruct textures when using implicit field representations Li et al. (2024); Xu et al. (2024c); Hong et al. (2024), or difficult to extract explicit geometries when using Gaussian Spatting Xu et al. (2024b); Tang et al. (2024). In this work, we focus on the second stage of the pipeline, i.e., reconstructing 3D shapes from multi-view images. To address those challenges, we propose a novel 3D reconstruction approach that improves the 3D quality through geometry and texture refinement.
+
+Differentiable mesh is a hybrid 3D representation that combines implicit and explicit surface representations, i.e., SDFs and meshes, and is suitable for 3D optimization. Recent popular representations include DMTet, Flexicubes, Differentiable Marching Cubes (DiffMC) Shen et al. (2021; 2023); Wei et al. (2023). In our work, we chose DiffMC Wei et al. (2023) as it doesn't require additional components beyond our existing model pipeline, in contrast to using DMTet and Flexicubes Shen et al. (2021; 2023), where a deformation and a weight prediction net are required.
+
+MVS-based 3D reconstruction aims to generate novel views from sparse-view input images using Multi-view Stereo (MVS) techniques. Classic MVS methods leverage cost volumes Kutulakos & Seitz (2000); Seitz & Dyer (1999), point clouds Stereopsis (2010); Lhuillier & Quan (2005), or depth maps Campbell et al. (2008); Gallup et al. (2007) to learn blending weights for input sparse-view pixels for generating novel views. Recently, learning-based methods Gu et al. (2020); Ma et al. (2021); Wang et al. (2021); Wei et al. (2021); Yi et al. (2020) have been proposed that can generalize to novel scenes. However, these methods require input views to have dense local overlap and struggle to generate 360-degree views of 3D assets. It is even more challenging when input multi-view images are generated without precise pixel-level alignment. Alternatively, in our work, we propose a simple yet effective texture refinement procedure that enables high-quality texture reconstruction from sparse-view input and is robust to synthetic images.
+
+# 3 METHOD
+
+We separate the technical details of our method into three parts. In Sec. 3.1, we explain the modifications made to the existing LRM architecture. In Sec. 3.2, we present a training procedure for our feed-forward mesh generation model. The overview of our feed-forward mesh generation pipeline is illustrated in Fig. 2. Finally, in Sec. 3.3, we introduce our per-instance texture refinement procedure. This procedure is highlighted in Fig. 3.
+
+
+Figure 4: Comparison with the baseline methods on OmniObject3D dataset (Wu et al., 2023). We compare the novel view reconstruction results with the baseline methods. LRM (Hong et al., 2024) takes the front-view image as input while Instantmesh (Xu et al., 2024a) and our method take 4 views.
+
+# 3.1 IMPROVING THE LARGE 3D RECONSTRUCTION ARCHITECTURE
+
+A standard LRM (Hong et al., 2024) architecture consists of an image encoder, a transformer-based triplane generator with a deconvolutional triplane upsampler, and a NeRF-based triplane decoder. In our work, we propose several modifications to the LRM architecture outlined next.
+
+Convolutional image encoder $\mathcal{E}$ . LRM (Hong et al., 2024; Li et al., 2024; Xu et al., 2024c) models typically utilize pre-trained transformer network DiNO ViT (Caron et al., 2021). However, we observe that since DiNO ViT was designed for semantic understanding, it tends to ignore some local details irrelevant to image semantics but required for accurate reconstruction. Thus we propose to replace the DiNO (Caron et al., 2021) architecture with a convolutional encoder. Since this encoder is trained from scratch along with other components it does not exhibit the bias of pre-trained DiNO. An additional advantage of this encoder is that it does not require any modifications to consume additional inputs useful for 3D reconstruction. To this end, we complement the input images with binary foreground mask and Plücker coordinates for camera rays. We show a comparison of the training process using different encoders in Appendix A.
+
+Triplane upsampler $T$ . One of the LRM architecture shortcomings is the tendency to generate grid-shaped artifacts. We attribute this issue to the deconvolution operation utilized in a triplane upsampler. Indeed, to reduce the computational requirements, the original LRM proposed to run a transformer-based triplane generator on $32^2$ resolution and later utilize deconvolution operation to upsample the triplane. The deconvolution operation is widely studied in GAN literature, for example, Odena et al. (Odena et al., 2016) show that for 2D generators deconvolutions are the main source of grid-shaped artifacts. To this end, we replace the deconvolution upsampling with a linear layer followed by a pixelshuffle (Shi et al., 2016). This simple modification helps to alleviate grid-shaped texture artifacts.
+
+NeRF decoders $f_{c}, f_{d}$ . Unlike previous LRMs (Hong et al., 2024; Li et al., 2024), we utilize two separate MLPs, defined as $f_{c}$ and $f_{d}$ , to estimate colors and density, respectively. This modification does not impact performance; however, it serves a more practical purpose. For instance, we can train the color model $f_{c}$ and freeze $f_{d}$ when fine-tuning asset texture, or vice versa if fine-tuning asset geometry.
+
+# 3.2 FEED FORWARD MESH GENERATION MODEL
+
+The optimization through mesh representation may pose a significant challenge. Indeed, the gradients for backpropagation through mesh exist only in a small local neighborhood and, thus, convergence heavily depends on accurate initialization. To tackle this, we develop a two-stage training procedure,
+
+
+Figure 5: Comparison with LGM (Tang et al., 2024) on GSO (Downs et al., 2022) dataset. Both LGM (Tang et al., 2024) and our method take 4-view images as input and reconstruct novel views.
+
+where in the first stage we utilize the volumetric rendering and optimize NeRF, and, in the second stage, we perform geometry refinement by optimizing through a mesh representation.
+
+NeRF training stage. In this stage, we simply optimize our modified architecture (see Sec. 3.1) using a mean squared error (MSE) loss and an LPIPS loss on images, defined as
+
+$$
+\mathcal {L} _ {\mathrm {N e R F}} = \quad \mathcal {L} _ {\mathrm {r g b}} + \lambda_ {\mathrm {p}} \mathcal {L} _ {\mathrm {L P I P S}}, \tag {1}
+$$
+
+where $\lambda_{\mathrm{p}}$ denotes the loss weight.
+
+Geometry refinement with NeRF initialization. In the geometry refinement stage, we fine-tune the entire pipeline using mesh rendering. Specifically, we transfer the density field to an SDF field:
+
+$$
+\operatorname {s d f} = - (d - s), \tag {2}
+$$
+
+where $d$ is the estimated density and $s$ is a pre-defined level set for DiffMC, $s = 10$ , in practice.
+
+Next, we render images, depths, and masks for training via mesh rendering (a.k.a rasterization). We fine-tune the pipeline using an MSE loss and an LPIPS loss on images, MSE losses on depths, masks, and normal maps. Formally, we define the loss as:
+
+$$
+\mathcal {L} _ {\text {M e s h}} = \quad \mathcal {L} _ {\mathrm {r g b}} + \lambda_ {p} \mathcal {L} _ {\text {L P I P S}} + \lambda_ {d} \mathcal {L} _ {\text {d e p t h}} + \lambda_ {m} \mathcal {L} _ {\text {m a s k}} + + \lambda_ {n} \mathcal {L} _ {\text {n o r m a l}} \tag {3}
+$$
+
+where $\lambda_{\mathrm{p}},\lambda_{\mathrm{d}},\lambda_{\mathrm{m}}$ and $\lambda_{n}$ are the loss weights.
+
+# 3.3 TEXTURE REFINEMENT FOR MESH REPRESENTATIONS
+
+Inspired by previous works that utilize the Gaussian Splatting (Tang et al., 2024; Xu et al., 2024b) representation, where colors of the input images can be easily retained in Gaussian features, we notice a disparity in our pipeline, which lacks this color memorization scheme. Thus, we refine the triplane feature of an asset and the color MLP, $f_{c}$ , using the input multi-view images, $I_{\mathrm{cond}}$ , for surface points on the extracted mesh. We illustrate the refinement procedure in Fig. 3. The separated density and color MLPs benefit the texture refinement procedure, as we only fine-tune a single MLP. We use an MSE loss on input images for texture refinement:
+
+$$
+\mathcal {L} _ {\mathrm {T e x}} = \mathcal {L} _ {2} \left(\boldsymbol {I} _ {\text {c o n d}}, \hat {\boldsymbol {I}} _ {\text {c o n d}}\right), \tag {4}
+$$
+
+where $I_{\mathrm{cond}}$ and $\hat{I}_{\mathrm{cond}}$ denote the ground-truth and predicted input images, respectively. Note that at this stage, the image encoder $\mathcal{E}$ and the triplane generator $T$ are fixed and used to generate the initial triplane features of assets. The density estimation MLP, $f_{d}$ , is also fixed and used to extract meshes.
+
+Table 1: Quantitative comparison on GSO dataset (Downs et al., 2022).
+
+
Method
PSNR (↑)
SSIM (↑)
LPIPS (↓)
CD (↓)
IoU (↑)
LRM (Hong et al., 2024)
20.446
0.904
0.126
6.383
0.352
SV3D (Voleti et al., 2024)
22.098
0.898
0.119
1.770
0.682
CRM (Wang et al., 2024)
22.195
0.891
0.150
1.252
0.617
LGM (Tang et al., 2024)
25.227
0.925
0.066
1.373
0.601
InstantMesh (NeRF) (Xu et al., 2024a)
24.740
0.923
0.080
1.101
0.635
InstantMesh (Mesh) (Xu et al., 2024a)
24.444
0.920
0.08
1.115
0.645
Ours (Feed-forward)
28.673
0.946
0.055
0.740
0.708
Ours (Tex. refine)
29.788
0.960
0.047
+
+# 4 EXPERIMENTS
+
+In Sec. 4.1, we explain training datasets, implementation details, and evaluation with the baseline methods. We present both quantitative and qualitative results in Sec. 4.2 and the ablation study in Sec. 4.3. Additional implementation details and comparisons are presented in Appendix.
+
+# 4.1 EXPERIMENT SETTINGS
+
+Dataset: Our model is trained on a 140k asset dataset, which merges the filtered Objaverse dataset (Deitke et al., 2023) with an internal 3D asset dataset. We filter the high-quality Objaverse dataset to retain 26k superior assets of high quality. We render 32 random views for each training asset. In Appendix A, we also provide additional ablation studies with our model trained solely on the Objaverse dataset containing 100k assets.
+
+Implementation Details. In practice, the loss weights are set to $\lambda_{p} = 0.5$ , $\lambda_{d} = 0.5$ , $\lambda_{m} = 1$ and $\lambda_{n} = 1$ . In practice, we found that adding the normal loss can lead to unstable training. Therefore, during the geometry refinement stage, we add the normal loss once the model has stabilized, and we freeze the generator when incorporating the normal loss. Input multi-view images are of 512 resolution. The triplane transformer contains 24 attention blocks with a hidden dimension of 1024. Each attention layer has 16 attention heads and each head has a dimension of 64. During the NeRF training stage, images are rendered at 512 resolution, and the NeRF model is trained using a patch size of $128^2$ . We uniformly sample 256 points along each camera ray. The density and color MLPs consist of 3 and 4 layers, respectively, with a hidden size of 512.
+
+In the NeRF training stage, we use an AdamW optimizer with a learning rate $1e - 4$ and a weight decay of 0.05. Cosine scheduling is employed to gradually reduce the learning rate to 0 after 150k training iterations. We use a batch size of 512 on 32 A100 GPUs. For each asset, we randomly choose 4 views as input and another 4 views for supervision. In the geometry refinement stage, we choose a grid size of 256 during mesh extraction using DiffMC. We use another AdamW optimizer with a learning rate $5e - 5$ . The batch size is 192 on 32 A100 GPUs. For each asset, we randomly choose 4 views as input and another 8 views for supervision. In the per-instance texture refinement stage, the learning rates for the triplane feature and the color MLP, $f_{c}$ , are 0.15 and $1e - 4$ , respectively.
+
+Evaluation. We evaluate our method alongside baseline methods, including LRM (Hong et al., 2024), SVD (Voleti et al., 2024), CRM (Wang et al., 2024), InstantMesh (Xu et al., 2024a), and LGM (Tang et al., 2024) using the Google Scanned Objects (GSO) (Downs et al., 2022) and OmniObject3D (Wu et al., 2023) dataset. We use the identical data lists of the GSO and OmniObject3D dataset and render camera orbits as outlined in Instantmesh (Xu et al., 2024a). Specifically, 300 GSO assets and 130 OmniObject3D assets (from 30 classes) are used for evaluation. We render 20 images for each asset in a trigonometric orbiting trajectory, i.e., maintaining uniform azimuths and elevations in $\{-30^{\circ}, 0^{\circ}, 30^{\circ}\}$ . We use PSNR, SSIM, and LPIPS as image evaluation metrics, while Chamfer Distance (CD) and mIoU are utilized for 3D geometry evaluation. To evaluate 3D geometry, we follow the mesh processing steps in InstantMesh (Xu et al., 2024a). Specifically, we reposition the generated meshes to the origin and align the coordinate system with the ground-truth meshes. We then rescale all meshes into a $[-1, 1]$ cube. We also use Iterative Closest Point (ICP) registration to
+
+Table 2: Quantitative comparison on OmniObject3D dataset (Wu et al., 2023).
+
+
Method
PSNR (↑)
SSIM (↑)
LPIPS (↓)
CD (↓)
IoU (↑)
LRM (Hong et al., 2024)
18.082
0.888
0.125
4.347
0.448
LGM (GS) (Tang et al., 2024)
22.826
0.913
0.068
0.893
0.626
InstantMesh (NeRF) (Xu et al., 2024a)
22.609
0.914
0.076
0.660
0.671
InstantMesh (Mesh) (Xu et al., 2024a)
22.141
0.910
0.079
0.603
0.675
Ours (Feed-forward)
25.372
0.931
0.06
0.504
0.728
Ours (Tex. refine)
25.400
0.937
0.059
+
+align the generated meshes to the ground truth meshes. We sample 16000 points on the asset surface to compute the CD and IoU scores.
+
+# 4.2 RESULTS
+
+Qualitative evaluation. We compare our method with baseline approaches using the GSO (Downs et al., 2022) and OmniObject3D (Wu et al., 2023) datasets in Fig.1, Fig.4-5. We observe that our method achieves more faithful texture reconstruction with finer details and more accurate geometry. For instance, in Fig. 1, our model can generate clear text on the first example and complex texture patterns on the second example. In the third example, our model enables the reconstruction of portraits printed on the asset. In Fig.5, we compare our method with LGM (Tang et al., 2024), which uses Gaussian Splatting as a 3D representation. We observe that while LGM (Tang et al., 2024) can generate high-quality textures, it often tends to generate floating Gaussian points in inaccurate regions, even when the input images are ground-truth multi-view images. In Fig. 11, we present a comparison between our results and those of the concurrent MeshLRM approach(Wei et al., 2024). The visual results indicate that our methods produce outcomes comparable to those achieved by MeshLRM. We present additional visual results in Appendix C.
+
+Quantitative evaluation. We present the evaluation scores for the GSO (Downs et al., 2022) and OmniObject3D (Wu et al., 2023) dataset in Tab. 1 and Tab. 2, respectively. The CD scores are presented by multiplying a rescale factor of 100. Note that both LGM (Tang et al., 2024) and InstantMesh (Xu et al., 2024a) baselines are concurrent works. For InstantMesh (Xu et al., 2024a), we compare both their results using either neural rendering or mesh rendering. Since LRM (Hong et al., 2024) takes a single image as input, we provide a front-view image to it. Our full approach achieves the best evaluation results in 2D and 3D evaluations. We also present the evaluation scores using our feed-forward model, i.e., without the texture refinement procedure. These results still show significant improvements in texture and geometry quality.
+
+Additionally, the LGM (Tang et al., 2024) method serves as a strong baseline as we directly compare against their generated images rather than rendered images from extracted meshes. We note that the baselines that do not incorporate some explicit geometry representation during training typically yield inferior rendering results when extracted to meshes. However, our method achieves better results than their directly generated images. Furthermore, it takes 1 minute to extract meshes using LGM (Tang et al., 2024) from Gaussian Splitting. In contrast, our method enables to generate meshes within 1 second, plus an additional 4 seconds for texture refinement, which in total is still faster than LGM (Tang et al., 2024) inference.
+
+Applications. Our method enables downstream tasks such as text/image-to-3D generation. In this case, we generate multi-view images using pre-trained text-to-image and/or image-to-multiview diffusion models (Rombach et al., 2022; Shi et al., 2023). In practice, we use Zero123++ (Shi et al., 2023) to generate 6-view images as the input for our model. We show the generated results in Fig. 6 and additional results in the Appendix C.
+
+# 4.3 ABLATION STUDY
+
+Geometry refinement. In Fig. 7-8, we compare results generated using NeRF+MC and NeRF with geometry refinement. We observe that directly extracting meshes from the NeRF field using MC leads to blurry texture results and a significant drop on 2D evaluation scores. In contrast, after fine-tuning at the geometry refinement stage, the rendered images show improved high-frequency details. The results in Fig. 9 present that the normal loss significantly improves the surface quality.
+
+
+Figure 6: Image-to-3D generation. Our method can adapt to the text/image-to-3D generation tasks. We visualize the input image (column 1) and generated RGB and normal images from novel views (column 2-7).
+
+
+Figure 7: Ablation study of geometry refinement. On the left, we visualize the comparison between NeRF+MC, NeRF+Geometry refinement, and the ground-truth images. On the right, we present the evaluation scores using NeRF+MC.
+
+
PSNR (↑)
SSIM (↑)
LPIPS (↓)
CD (↓)
IoU (↑)
19.810
0.903
0.116
0.775
0.652
+
+Texture refinement. We visualize the novel view mesh-rendering results generated without and with per-instance texture refinement in Fig. 10. The results of the texture refinement appear to have superior detailed textures on mesh surfaces.
+
+# 5 CONCLUSION
+
+In this work, we introduce GTR, a large 3D reconstruction model that takes multi-view images as input. Our approach enables the generation of high-quality meshes with faithful texture reconstruction within seconds. We achieve this through three key contributions: modifications to the current LRM model architecture, the integration of end-to-end geometry refinement with NeRF initialization, and the implementation of a per-instance texture refinement procedure.
+
+
+NeRF+MC
+
+
+Figure 8: Additional visual comparison with Marching Cube (MC). When the rendering results using MC lack details (marked in red rectangles) and grid artifacts exist on surfaces. In contrast, our geometry refinement achieves better mesh rendering quality and geometry quality than the meshes extracted from NeRFs.
+
+
+Ours
+
+
+
+
+GT
+
+
+
+
+Input
+
+
+$w / o\mathcal{L}_{\mathrm{normal}}$
+
+
+Figure 9: Ablation on the normal loss. The visual results show that using the normal loss could produce higher-quality surfaces.
+
+
+
+
+
+
+Input
+
+
+$w / o\mathcal{L}_{\mathrm{normal}}$
+
+
+
+normal
+
+
+$w / \mathcal{L}_{\mathrm{normal}}$
+
+
+
+$w / \mathcal{L}_{\mathrm{normal}}$
+
+
+$w / o$ Tex.refine
+
+
+$w/$ Tex.refine
+
+
+GT
+
+
+Figure 10: Ablation study of the texture refinement procedure. We visualize the mesh rendering results without (column 1, 4) or with (column 2, 5) the texture refinement procedure, and corresponding ground-truth images (column 3, 6).
+
+
+$w / o$ Tex.refine
+
+
+$w/$ Tex.refine
+GT
+
+
+
+
+GT
+
+
+
+
+MeshLRM
+
+
+
+
+GT
+
+
+
+
+Ours
+
+
+
+
+GT
+Figure 11: Visual comparison with MeshLRM (Wei et al., 2024) on GSO dataset (Downs et al., 2022). Our method generates better (at least comparable) textures with more details than the concurrent work (Wei et al., 2024).
+
+
+
+
+Ours
+
+# REFERENCES
+
+Andreas Blattmann, Tim Dockhorn, Sumith Kulal, Daniel Mendelevitch, Maciej Kilian, Dominik Lorenz, Yam Levi, Zion English, Vikram Voleti, Adam Letts, et al. Stable video diffusion: Scaling latent video diffusion models to large datasets. arXiv preprint arXiv:2311.15127, 2023.
+Neill DF Campbell, George Vogiatzis, Carlos Hernandez, and Roberto Cipolla. Using multiple hypotheses to improve depth-maps for multi-view stereo. In ECCV, 2008.
+Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In ICCV, 2021.
+Rui Chen, Yongwei Chen, Ningxin Jiao, and Kui Jia. *Fantasia3d: Disentangling geometry and appearance for high-quality text-to-3d content creation*. In ICCV, 2023.
+Matt Deitke, Dustin Schwenk, Jordi Salvador, Luca Weihs, Oscar Michel, Eli VanderBilt, Ludwig Schmidt, Kiana Ehsani, Aniruddha Kembhavi, and Ali Farhadi. Objverse: A universe of annotated 3d objects. In CVPR, 2023.
+Laura Downs, Anthony Francis, Nate Koenig, Brandon Kinman, Ryan Hickman, Krista Reymann, Thomas B McHugh, and Vincent Vanhoucke. Google scanned objects: A high-quality dataset of 3d scanned household items. In ICRA, 2022.
+David Gallup, Jan-Michael Frahm, Filippos Mordohai, Qingxiong Yang, and Marc Pollefeys. Real-time plane-sweeping stereo with multiple sweeping directions. In CVPR, 2007.
+Xiaodong Gu, Zhiwen Fan, Siyu Zhu, Zuozhuo Dai, Feitong Tan, and Ping Tan. Cascade cost volume for high-resolution multi-view stereo and stereo matching. In CVPR, 2020.
+Yicong Hong, Kai Zhang, Jieuxiang Gu, Sai Bi, Yang Zhou, Difan Liu, Feng Liu, Kalyan Sunkavalli, Trung Bui, and Hao Tan. Lrm: Large reconstruction model for single image to 3d. In ICLR, 2024.
+Kiriakos N Kutulakos and Steven M Seitz. A theory of shape by space carving. IJCV, 2000.
+Maxime Lhuillier and Long Quan. A quasi-dense approach to surface reconstruction from uncalibrated images. TPAMI, 2005.
+Jiahao Li, Hao Tan, Kai Zhang, Zexiang Xu, Fujun Luan, Yinghao Xu, Yicong Hong, Kalyan Sunkavalli, Greg Shakhnarovich, and Sai Bi. Instant3d: Fast text-to-3d with sparse-view generation and large reconstruction model. In ICLR, 2024.
+Chen-Hsuan Lin, Jun Gao, Luming Tang, Towaki Takikawa, Xiaohui Zeng, Xun Huang, Karsten Kreis, Sanja Fidler, Ming-Yu Liu, and Tsung-Yi Lin. Magic3d: High-resolution text-to-3d content creation. In CVPR, 2023a.
+Chieh Hubert Lin, Hsin-Ying Lee, Willi Menapace, Mengei Chai, Aliaksandr Siarohin, Ming-Hsuan Yang, and Sergey Tulyakov. Infinicity: Infinite-scale city synthesis. In ICCV, 2023b.
+Ruoshi Liu, Rundi Wu, Basile Van Hoorick, Pavel Tokmakov, Sergey Zakharov, and Carl Vondrick. Zero-1-to-3: Zero-shot one image to 3d object. In ICCV, 2023.
+Yuan Liu, Cheng Lin, Zijiao Zeng, Xiaoxiao Long, Lingjie Liu, Taku Komura, and Wenping Wang. Syncdreamer: Generating multiview-consistent images from a single-view image. In ICLR, 2024.
+Xiaoxiao Long, Yuan-Chen Guo, Cheng Lin, Yuan Liu, Zhiyang Dou, Lingjie Liu, Yuexin Ma, Song-Hai Zhang, Marc Habermann, Christian Theobalt, et al. Wonder3d: Single image to 3d using cross-domain diffusion. In CVPR, 2023.
+William E Lorensen and Harvey E Cline. Marching cubes: A high resolution 3d surface construction algorithm. In Seminal graphics: pioneering efforts that shaped the field, pp. 347-353. 1998.
+Xinjun Ma, Yue Gong, Qirui Wang, Jingwei Huang, Lei Chen, and Fan Yu. Epp-mvsnet: Epipolar-assembling based depth prediction for multi-view stereo. In ICCV, 2021.
+
+Augustus Odena, Vincent Dumoulin, and Chris Olah. Deconvolution and checkerboard artifacts. Distill, 2016. doi: 10.23915/distill.00003. URL http://distill.pub/2016/deconv-checkerboard.
+Ben Poole, Ajay Jain, Jonathan T Barron, and Ben Mildenhall. Dreamfusion: Text-to-3d using 2d diffusion. In ICLR, 2023.
+Guocheng Qian, Jinjie Mai, Abdullah Hamdi, Jian Ren, Aliaksandr Siarohin, Bing Li, Hsin-Ying Lee, Ivan Skorokhodov, Peter Wonka, Sergey Tulyakov, et al. Magic123: One image to high-quality 3d object generation using both 2d and 3d diffusion priors. In ICLR, 2024.
+Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In CVPR, 2022.
+Chitwan Sahara, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily L Denton, Kamyar Ghasemipour, Raphael Gontijo Lopes, Burcu Karagol Ayan, Tim Salimans, et al. Photorealistic text-to-image diffusion models with deep language understanding. In NeurIPS, 2022.
+Steven M Seitz and Charles R Dyer. Photorealistic scene reconstruction by voxel coloring. IJCV, 1999.
+Tianchang Shen, Jun Gao, Kangxue Yin, Ming-Yu Liu, and Sanja Fidler. Deep marching tetrahedra: a hybrid representation for high-resolution 3d shape synthesis. In NeurIPS, 2021.
+Tianchang Shen, Jacob Munkberg, Jon Hasselgren, Kangxue Yin, Zian Wang, Wenzheng Chen, Zan Gojcic, Sanja Fidler, Nicholas Sharp, and Jun Gao. Flexible isosurface extraction for gradient-based mesh optimization. TOG, 2023.
+Ruoxi Shi, Hansheng Chen, Zhuoyang Zhang, Minghua Liu, Chao Xu, Xinyue Wei, Linghao Chen, Chong Zeng, and Hao Su. Zero123++: a single image to consistent multi-view diffusion base model. In arXiv preprint arXiv:2310.15110, 2023.
+Wenzhe Shi, Jose Caballero, Ferenc Huszár, Johannes Totz, Andrew P Aitken, Rob Bishop, Daniel Rueckert, and Zehan Wang. Real-time single image and video super-resolution using an efficient sub-pixel convolutional neural network. In CVPR, 2016.
+Yichun Shi, Peng Wang, Jianglong Ye, Mai Long, Kejie Li, and Xiao Yang. Mvdream: Multi-view diffusion for 3d generation. In ICLR, 2024.
+Robust Multiview Stereopsis. Accurate, dense, and robust multiview stereopsis. TPAMI, 2010.
+Jiaxiang Tang, Zhaoxi Chen, Xiaokang Chen, Tengfei Wang, Gang Zeng, and Ziwei Liu. Lgm: Large multi-view gaussian model for high-resolution 3d content creation. arXiv preprint arXiv:2402.05054, 2024.
+Vikram Voleti, Chun-Han Yao, Mark Boss, Adam Letts, David Pankratz, Dmitry Tochilkin, Christian Laforte, Robin Rombach, and Varun Jampani. Sv3d: Novel multi-view synthesis and 3d generation from a single image using latent video diffusion. arXiv preprint arXiv:2403.12008, 2024.
+Fangjinhua Wang, Silvano Galliani, Christoph Vogel, Pablo Speciale, and Marc Pollefeys. Patchmatchnet: Learned multi-view patchmatch stereo. In CVPR, 2021.
+Haochen Wang, Xiaodan Du, Jiahao Li, Raymond A Yeh, and Greg Shakhnarovich. Score jacobian chaining: Lifting pretrained 2d diffusion models for 3d generation. In CVPR, 2023a.
+Zhengyi Wang, Cheng Lu, Yikai Wang, Fan Bao, Chongxuan Li, Hang Su, and Jun Zhu. Prolificdreamer: High-fidelity and diverse text-to-3d generation with variational score distillation. In NeurIPS, 2023b.
+Zhengyi Wang, Yikai Wang, Yifei Chen, Chendong Xiang, Shuo Chen, Dajiang Yu, Chongxuan Li, Hang Su, and Jun Zhu. Crm: Single image to 3d textured mesh with convolutional reconstruction model. arXiv preprint arXiv:2403.05034, 2024.
+
+Xinyue Wei, Fanbo Xiang, Sai Bi, Anpei Chen, Kalyan Sunkavalli, Zexiang Xu, and Hao Su. Neumanifold: Neural watertight manifold reconstruction with efficient and high-quality rendering support. arXiv preprint arXiv:2305.17134, 2023.
+Xinyue Wei, Kai Zhang, Sai Bi, Hao Tan, Fujun Luan, Valentin Deschaintre, Kalyan Sunkavalli, Hao Su, and Zexiang Xu. Meshlrm: Large reconstruction model for high-quality mesh. arXiv preprint arXiv:2404.12385, 2024.
+Zizhuang Wei, Qingtian Zhu, Chen Min, Yisong Chen, and Guoping Wang. Aa-rmvset: Adaptive aggregation recurrent multi-view stereo network. In ICCV, 2021.
+Tong Wu, Jiarui Zhang, Xiao Fu, Yuxin Wang, Jiawei Ren, Liang Pan, Wayne Wu, Lei Yang, Jiaqi Wang, Chen Qian, et al. Omniobject3d: Large-vocabulary 3d object dataset for realistic perception, reconstruction and generation. In CVPR, 2023.
+Jiale Xu, Weihao Cheng, Yiming Gao, Xintao Wang, Shenghua Gao, and Ying Shan. Instantmesh: Efficient 3d mesh generation from a single image with sparse-view large reconstruction models. arXiv preprint arXiv:2404.07191, 2024a.
+Yinghao Xu, Zifan Shi, Wang Yifan, Hansheng Chen, Ceyuan Yang, Sida Peng, Yujun Shen, and Gordon Wetzstein. Grm: Large gaussian reconstruction model for efficient 3d reconstruction and generation. arXiv preprint arXiv:2403.14621, 2024b.
+Yinghao Xu, Hao Tan, Fujun Luan, Sai Bi, Peng Wang, Jiahao Li, Zifan Shi, Kalyan Sunkavalli, Gordon Wetzstein, Zexiang Xu, et al. Dmv3d: Denoising multi-view diffusion using 3d large reconstruction model. In ICLR, 2024c.
+Hongwei Yi, Zizhuang Wei, Mingyu Ding, Runze Zhang, Yisong Chen, Guoping Wang, and Yu-Wing Tai. Pyramid multi-view stereo net with self-adaptive view aggregation. In ECCV, 2020.
+Joseph Zhu and Peiye Zhuang. Hifa: High-fidelity text-to-3d with advanced diffusion guidance. In ICLR, 2023.
+
+We present additional ablation study, limitation, and visual results in the Appendix manuscript. Please also refer to our website demo in the supplementary material for a comprehensive overview.
+
+# A ABLATION STUDY
+
+DiNO encoder. We conduct experiments using different encoders. In Fig. 12 we present the validation PSNR curves during training, when using either our convolutional image encoder or a pre-trained DiNO ViT (Caron et al., 2021). Specifically, our convolutional encoder is a single layer that downsamples input images from 512 to 32. The triplane generator is a self-attention transformer, identical in both settings. We train both models on 8 80G A100 GPUs. We observe that the DiNO experiment did not show improved convergence during the initial iterations. Alternatively, more careful designs could optimize the use of DiNO ViT, which we leave for future study.
+
+Objaverse training dataset. In Fig. 12, we also show the training process with a dataset consisting solely of 100k Objverse (Deitke et al., 2023) images. We did not observe a performance drop in the early stage compared to the other experiments in the figure, which were trained on our mixed dataset.
+
+Vae encoder. In Fig.13, we show preliminary results using a pretrained VAE encoder1 from an SD model (Rombach et al., 2022). To enable the VAE encoder to handle multi-channel input, we separately provide images, masks, and the camera rays to the encoder, then assemble the output features using a convolution layer. Experiments are run on 32 80G A100 GPUs. We observe that using a pretrained VAE encoder leads to better convergence in the early training stage. We attribute this to the good initialization provided by VAEs compared to training the convolutional encoder from scratch.
+
+
+Figure 12: Ablation study on image encoders Figure 13: Ablation study on image encoders (Conv. vs DiNO) and dataset. (Conv. vs VAE).
+
+
+
+# B LIMITATION
+
+Current triplane features at a resolution of 256 are sometimes insufficient to capture fine geometric details. Meanwhile, alternative representations — explicit (e.g., sparse voxels) or implicit (e.g., vector sets) — offer promising avenues for exploration. Additionally, our approach currently requires camera-conditioned input. It would be more advantageous to develop methods capable of handling unposed input. Moreover, our work focuses on object-centric assets, leaving the exploration of complex scenes with composite objects as a valuable direction for future research.
+
+# C ADDITIONAL RESULTS
+
+We show additional results generated by our approach in Fig. 14- 16.
+
+
+Figure 14: Additional visual 3D reconstruction results on GSO (Downs et al., 2022) dataset. The input of our model is 4 orthogonal views. We show the novel view generated RGB images (column 1, 4) and normal images (column 2, 5), and the ground-truth images (column 3, 6).
+
+
+Figure 15: Additional visual 3D reconstruction results on GSO (Downs et al., 2022) dataset. The input of our model is 4 orthogonal views. We show the novel view generated RGB images (column 1, 4) and normal images (column 2, 5), and the ground-truth images (column 3, 6).
+
+
+Figure 16: Additional visual 3D asset generation results. The input images (column 1) are either generated from text using pre-trained text-to-image diffusion models (Rombach et al., 2022) or online generated images.
\ No newline at end of file
diff --git a/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/images.zip b/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6c4e6b2ef924b4866f40a891720a402c340c3d39
--- /dev/null
+++ b/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7c9b59777596089251761e3cefc8b89ec85d54ded45242577fdfadbe9274de7f
+size 1086193
diff --git a/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/layout.json b/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..dfadded572a7e05eb830ce646d4a8345e2aad7ca
--- /dev/null
+++ b/ICLR/2025/GTR_ Improving Large 3D Reconstruction Models through Geometry and Texture Refinement/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:35410f00dbc8eadb50bf939f3743ad9c63e5c4c5b41f029965d32da3348ed53c
+size 470939
diff --git a/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/5e925069-c7da-4e85-b112-75aa213d0734_content_list.json b/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/5e925069-c7da-4e85-b112-75aa213d0734_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..fad0cbd9b77a3918678275ae3f867ca336b27180
--- /dev/null
+++ b/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/5e925069-c7da-4e85-b112-75aa213d0734_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:71c9982676dc5fcd7fb59fd348172d09f002f88c3e295bf7c2cbd8f5e0a95346
+size 304143
diff --git a/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/5e925069-c7da-4e85-b112-75aa213d0734_model.json b/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/5e925069-c7da-4e85-b112-75aa213d0734_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..ffb4e4604cbbc2256032336918bd0c33dc9d2546
--- /dev/null
+++ b/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/5e925069-c7da-4e85-b112-75aa213d0734_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a83b779b70c5a4ba590488457b14713ff4347b342a85dedbc56534619a04b2f3
+size 367276
diff --git a/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/5e925069-c7da-4e85-b112-75aa213d0734_origin.pdf b/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/5e925069-c7da-4e85-b112-75aa213d0734_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..4af93075dac33c5945c6d4e84a0e98af51262fd8
--- /dev/null
+++ b/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/5e925069-c7da-4e85-b112-75aa213d0734_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ccc980f6a18c9a61d8ab73384058f01985c21785bc49fba7afec39d531990a5d
+size 5786228
diff --git a/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/full.md b/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d1e4eb07b275bb3f5005a9262824c8e091eba2b8
--- /dev/null
+++ b/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/full.md
@@ -0,0 +1,1332 @@
+# GUI-WORLD: A VIDEO BENCHMARK AND DATASET FOR MULTIMODAL GUI-ORIENTED UNDERSTANDING
+
+Dongping Chen $^{1*}$ , Yue Huang $^{2*}$ , Siyuan Wu $^{1}$ , Jingyu Tang $^{1}$ , Liuyi Chen $^{1}$ , Yilin Bai $^{1}$ , Zhigang He $^{1}$ , Chenlong Wang $^{1}$ , Huichi Zhou $^{3}$ , Yiqiang Li $^{1}$ , Tianshuo Zhou $^{1}$ , Yue Yu $^{1}$ , Chujie Gao $^{1}$ , Qihui Zhang $^{4}$ , Yi Gui $^{1}$ , Zhen Li $^{1}$ , Yao Wan $^{1\dagger}$ , Pan Zhou $^{1\dagger}$ , Jianfeng Gao $^{5}$ , Lichao Sun $^{6}$
+
+1Huazhong University of Science and Technology, 2University of Notre Dame
+3Imperial College London, 4Peking University, 5Microsoft Research, 6Lehigh University
+{u202112313, wanyao, panzhou}@hust.edu.cn
+
+
+Figure 1: GUI-WORLD: A comprehensive dataset for GUI-oriented capabilities encompasses six scenarios and diverse tasks, offering significant potential for real-world applications.
+
+# ABSTRACT
+
+Recently, Multimodal Large Language Models (MLLMs) have been used as agents to control keyboard and mouse inputs by directly perceiving the Graphical User Interface (GUI) and generating corresponding commands. However, current agents primarily demonstrate strong understanding capabilities in static environments and are mainly applied to relatively simple domains, such as Web or mobile interfaces. We argue that a robust GUI agent should be capable of perceiving temporal information on the GUI, including dynamic Web content and multi-step tasks. Additionally, it should possess a comprehensive understanding of various GUI scenarios, including desktop software and multi-window interactions. To this end, this paper introduces a new dataset, termed GUI-WORLD, which features meticulously crafted Human-MLLM annotations, extensively covering six GUI scenarios and eight types of GUI-oriented questions in three formats. We evaluate the capabilities of current state-of-the-art MLLMs, including Image LLMs and Video LLMs, in understanding various types of GUI content, especially dynamic and sequential content. Our findings reveal that current models struggle with dynamic GUI content without manually annotated keyframes or operation history. On the other hand, Video LLMs fall short in all GUI-oriented tasks given the sparse GUI video dataset. Therefore, we take the initial step of leveraging a fine-tuned Video LLM, GUI-VID, as a GUI-oriented assistant, demonstrating an improved understanding of various GUI tasks. However, due to the limitations in the performance of base LLMs, we conclude that using video LLMs as GUI agents remains a significant challenge. We believe our work provides valuable insights for future research in dynamic GUI content understanding. All the dataset and code are publicly available at: https://gui-world.github.io.
+
+
+Figure 2: Comparative performance of different MLLMs in six scenarios of GUI-WORLD. (a) Performance of four mainstream Image LLMs. (b) Performance of five Video LLMs and our GUIVID. (c) Performance among six methods. See Section 3.2 for more details.
+
+
+
+
+
+# 1 INTRODUCTION
+
+Multimodal Large Language Models (MLLMs), such as GPT-4V(ision) (OpenAI, 2023) and LLaVA (Liu et al., 2023b), have significantly contributed to the development of both vision and language domains (Yin et al., 2024). These models bring forth innovative solutions and paradigms for traditional visual tasks, including visual reasoning (Yang et al., 2023b), medical image interpretation (Li et al., 2024b), and applications in embodied agents (Huang et al., 2023). One particularly promising area is Graphical User Interface (GUI) understanding, which holds significant potential for real-world applications, such as webpage comprehension (Hong et al., 2024; Lai et al., 2024) and navigation by GUI agents (Yang et al., 2023a; Niu et al., 2024; Wang et al., 2024). The key challenges of GUI understanding are twofold: effective GUI agents are expected to (1) possess a deep understanding of GUI elements, including webpage icons, text identified through Optical Character Recognition (OCR), and page layouts, and (2) exhibit an exceptional ability to follow instructions within GUI contexts, such as conducting searches through search engines.
+
+Despite significant progress, as illustrated in Table 1, prior studies on GUI-related datasets and benchmarks suffer the following limitations: (1) Inability to Handle Dynamic Environments. Most studies primarily emphasize the static features of GUI scenarios, often overlooking the importance of enabling MLLMs to effectively handle dynamic information and sequential operations. For instance, an agent's task performance can be disrupted by unexpected elements such as pop-up advertisements, underscoring a gap in handling dynamic sequential tasks. (2) Limited Scenarios. Current research is typically restricted to Web-based or mobile environments, which limits to assess their generalization ability and robustness across scenarios. For instance, GUI-oriented models may need to operate across diverse platforms such as Windows, macOS, Linux, iOS, Android, and eXtended Reality (XR) environments. Operations may sometimes involve multiple windows. Therefore, expanding research to encompass these varied environments will enhance the adaptability and effectiveness.
+
+To mitigate these gaps, this paper introduces GUI-WORLD, a comprehensive dataset containing 12,379 GUI videos, specifically designed to evaluate and enhance the capabilities of GUI agents. This dataset encompasses a wide range of GUI scenarios, including popular websites, desktop and mobile applications across various operating systems, multi-window interactions, as well as XR environments. The data collection process involves sourcing GUI videos from screen recordings and instructional videos on YouTube. Subsequently, we utilize a Human-MLLM collaborative approach to generate a diverse set of captions, complex queries, and multi-round conversation, ultimately constructing GUI-WORLD.
+
+Likewise, we also establish a comprehensive benchmark for GUI understanding, which encompasses nine mainstream MLLMs (e.g., GPT-4o (OpenAI, 2024) and Gemini-1.5-Pro (Team et al., 2023)), five keyframe selection strategies (e.g., UVD (Zhang et al., 2024d)), and six GUI scenarios, aiming to provide a thorough evaluation of the GUI-oriented understanding capabilities of MLLMs. As shown in Section 2, the assessment results indicate that most MLLMs struggle with GUI-WORLD, highlighting their limited dynamic understanding of graphical interfaces and underscoring the need for further enhancement.
+
+Using this dataset, we take the first step to fine-tune a GUI-oriented Video LLM that excels at handling dynamic and sequential GUI tasks, leading to substantial enhancements in the general capabilities and
+
+Table 1: Comparison of GUI datasets and benchmarks. Sem.: semantic instruction level, VL: Vision-Language, Seq.: Tasks for sequential images, Cro.: Cross-app or multi-window tasks, Dyn.: Tasks for dynamic GUI content.
+
+
Dataset
Size
Sem.
VL
Video
Env Type
Task Coverage
Task
Web.
Mob.
Desk.
XR
Seq.
Cro.
Dyn.
Rico (Deka et al., 2017)
72,219
Low
✓
✓
✘
✓
✘
✘
✓
✓
✘
UI Code/Layout Generation
MiniWoB++ (Liu et al., 2018)
100
Low
✓
✘
✓
✘
✘
✘
✘
✘
✘
Web Navigation
Screen2Words (Wang et al., 2021)
22,417
High
✓
✘
✘
✓
✘
✘
✘
✘
✘
UI Summarization
MetaGUI (Sun et al., 2022)
1,125
Low
✓
✘
✘
✓
✘
✘
✓
✘
✘
Mobile Navigation
UGIF (Venkatesh et al., 2022)
523
High
✓
✘
✘
✓
✘
✘
✓
✘
✘
Instruction Following
AITW (Rawles et al., 2023)
715,142
High
✓
✘
✘
✓
✘
✘
✓
✓
✘
GUI Understanding
Ferret-UI (You et al., 2024)
123,702
Low
✓
✘
✘
✓
✘
✘
✘
✘
✘
UI Grounding & Understanding
Spotlight (Li & Li, 2022)
2.5M
Low
✓
✘
✘
✓
✘
✘
✘
✘
✘
GUI Understanding
WebArena (Zhou et al., 2023)
812
Low
✓
✘
✓
✘
✘
✘
✓
✘
✘
Web Navigation
Mind2Web (Deng et al., 2024)
2,350
Both
✓
✓
✓
✘
✘
✘
✓
✘
✘
Web Navigation
OmniAct (Kapoor et al., 2024)
9,802
Low
✓
✘
✓
✘
✓
✘
✓
✘
✘
Code Generation
GUICourse (Chen et al., 2024c)
10.7M
Both
✓
✘
✓
✓
✘
✘
✓
✓
✘
GUI Understanding
MMINA (Zhang et al., 2024e)
1,050
Low
✓
✘
✓
✘
✘
✘
✓
✓
✘
Web Navigation
AgentStudio (Zheng et al., 2024b)
304
High
✓
✘
✓
✘
✓
✘
✓
✓
✘
General Control
OSWorld (Xie et al., 2024)
369
High
✓
✘
✓
✘
✓
✘
✓
✓
✘
General Control
GUI-WORLD (Ours)
12,379
Both
✓
✓
✓
✓
✓
✓
✓
✓
✓
GUI Understanding Instruction Following
+
+showcasing the utility and effectiveness of GUI-WORLD. Additionally, we delve into discussing various factors critical to GUI understanding, including the integration of textual information, the number of keyframes, image resolutions, and vision perception, providing a pioneering and comprehensive study of the GUI domain.
+
+Overall, the key contributions of this paper are threefold:
+
+- A New Dataset. We propose GUI-WORLD, a comprehensive GUI dataset comprising 12,379 videos specifically designed to assess and improve GUI-oriented capabilities of MLLMs, spanning a range of categories and scenarios, including desktop, mobile, and XR environments. It stands as the first GUI-oriented instruction-tuning dataset in video domain.
+- Comprehensive Experiments and Valuable Insights. Our experiments indicate that most existing MLLMs continue to face challenges with GUI-oriented tasks, particularly in sequential and dynamic GUI content. Empirical results suggest that enhancing vision perception, such as more keyframes and higher resolution, can lead to substantial performance improvements in GUI tasks.
+- A Explorative GUI-oriented Video LLM. Based on GUI-WORLD, we propose GUI-VID, a GUI-oriented video LLM with enhanced capabilities to handle various and complex GUI tasks. GUI-VID shows a significant improvement on the benchmark and achieves results comparable to the top-performing models, thereby paving ways for the future of GUI models.
+
+# 2 GUI-WORLD: A DATASET FOR GUI UNDERSTANDING
+
+# 2.1 OVERVIEW
+
+We introduce GUI-WORLD, a comprehensive dataset covering six GUI scenarios including video, human-annotated keyframes, as well as detailed captions and diverse types of QA produced by our data curation framework, aiming at benchmarking and enhancing the general GUI-oriented
+
+
+Figure 3: An overview construction pipeline of GUI-WORLD.
+
+Table 2: The statistics of GUI-WORLD. For Android, we select videos from Rico (Deka et al., 2017) and randomly sample 10 frames. Avg. Frame refers to the average number of frames in each clip, and Avg. Anno. refers to the average number of manually annotated GUI actions.
+
+
Category
Total Videos
Free-form
MCQA
Conversation
Total Frame. (Avg.)
Avg. Anno.
Software
4,720
27,840
9,440
9,440
23,520 (4.983)
7.558
Website
2,499
14,994
4,998
4,998
15,371 (6.151)
6.862
IOS
492
2,952
984
984
2,194 (4.459)
7.067
Multi
475
2,850
950
950
2,507 (5.277)
7.197
XR
393
2,358
786
786
1,584 (4.030)
10.970
Android
3,800
15,199
7,600
7,600
38,000 (10.000)
-
Summary
12,379
76,673
24,758
24,758
83,176 (6.719)
7.463
+
+
+Figure 4: Left: Distribution of the number of keyframes and video lengths. Right: Length distribution for each type of question and its golden answer.
+
+
+
+capabilities. These GUI scenarios encompass desktop operating systems (e.g., macOS, Windows) and mobile platforms (e.g., Android and iOS), websites, software, and even XR (e.g., GUI in Apple Vision Pro (Apple, 2024)). We divide the dataset into a train-test split, each containing 10,702 and 1,677 samples. Discussion for each scenario is referred to Appendix A.1.
+
+As illustrated in Figure 3, the development of GUI-WORLD follows a two-stage process. Further details about video and query statistics are outlined in Table 2, including distributions of keyframe counts, video durations, query lengths, and their corresponding golden answers. Figures 4 and 5 further illustrate these data distributions.
+
+# 2.2 GUIVIDEOCOLLECTIONANDKEYFRAMEANNOTATIONPROCESS
+
+We describe the pipeline for collecting screen recordings from student workers and GUI-related instructional videos from YouTube for GUI-WORLD and the procedures followed to convert these videos into keyframe sequences.
+
+A significant portion of our video data is derived from screen recordings executed by student workers, which can directly reflect real-life GUI usage scenarios. A typical video collection scenario involves assigning a student worker a specific software task. The student begins by familiarizing themselves with the software, followed by recording a series of operations in a short video clip, such as "Sign up", "Sign in", "Create a New Page", and "Invite Other Collaborators" in the software "Notion1
Models
Software
Website
XR
Multi
IOS
Android
Avg.
MC
Free
MC
Free
MC
Free
MC
Free
MC
Free
MC
Free
MC
Free
Image LLMs
LLaVA-OV-7B
56.9%
2.641
48.4%
2.588
59.6%
2.709
52.9%
2.306
58.1%
2.717
24.3%
2.675
50.0%
2.606
Gemini-Pro-1.5
82.9%
3.385
79.2%
3.412
83.3%
3.108
83.4%
3.246
80.3%
3.467
78.5%
3.168
81.3%
3.298
Qwen-VL-Max
75.8%
2.651
75.5%
2.698
77.6%
2.373
66.9%
2.490
74.3%
2.633
74.2%
2.559
74.0%
2.568
GPT-4V
86.0%
3.520
79.8%
3.655
83.4%
3.265
76.9%
3.449
79.9%
3.453
81.3%
3.466
81.2%
3.469
GPT-4o
86.5%
3.644
83.3%
3.740
84.3%
3.285
81.1%
3.654
83.3%
3.558
90.0%
3.561
84.8%
3.573
Video LLMs
ChatUnivi
28.4%
2.389
22.2%
2.349
20.6%
2.161
17.5%
2.275
22.6%
2.337
23.0%
2.390
22.4%
2.317
Minigpt4Video
18.9%
1.475
15.3%
1.520
16.3%
1.362
15.4%
1.457
20.1%
1.501
14.6%
1.342
16.8%
1.443
VideoChat2
45.5%
2.144
42.6%
2.221
44.0%
2.005
40.4%
2.222
40.2%
2.169
44.7%
2.119
42.9%
2.147
Video-LLaVA
52.9%
2.290
52.4%
2.410
44.2%
2.258
45.9%
2.329
49.7%
2.319
51.3%
2.259
49.4%
2.311
GUI-ViD
59.9%
2.847
54.1%
2.957
55.6%
2.764
52.9%
2.861
51.8%
2.773
53.4%
2.572
54.6%
2.796
+
+Table 4: Overall performance in six GUI scenarios for MCQA and Free-form queries. D.C. means detailed caption, and C.C. means concise caption, and $\times$ means no vision input.
+
+
Models
Setting
Software
Website
XR
Multi
IOS
Android
Avg.
Vision
Text
MC
Free
MC
Free
MC
Free
MC
Free
MC
Free
MC
Free
MC
Free
GPT-4V
×
D.C.
85.0%
3.350
83.1%
3.380
82.3%
3.056
84.2%
3.358
81.6%
2.751
81.7%
3.427
83.0%
3.316
×
C.C.
80.7%
3.028
72.2%
3.025
82.8%
2.809
81.3%
3.160
76.5%
2.868
76.4%
2.939
78.3%
2.971
✓
D.C.
82.5%
3.494
83.2%
3.682
85.9%
3.191
83.9%
3.617
80.9%
3.516
84.9%
3.758
83.5%
3.543
+
+Table 5: Detailed scores for free-form tasks in the software-related scenarios. Dyn. refers to queries on dynamic GUI content.
+
+
Models
Caption
Complex Tasks
Conversation
Average
Concise
Detailed
Static
Dyn.
Round 1
Round 2
Image LMs
LLaVA-OV-7B
2.149
1.762
1.868
2.448
2.947
3.492
2.641
Gemini-Pro-1.5
3.306
3.035
2.945
3.093
3.573
3.790
3.298
Qwen-VL-Max
2.474
1.711
2.137
2.433
3.223
3.257
2.651
GPT-4V
3.352
2.509
3.053
3.229
3.928
4.163
3.520
GPT-4o
4.048
3.028
3.125
3.340
4.129
4.318
3.644
Video LMs
ChatUnivi
1.587
1.240
1.705
2.090
2.698
3.366
2.389
Minigpt4Video
1.246
1.073
1.249
1.455
1.494
1.719
1.475
VideoChat2
1.992
1.312
1.812
1.920
2.342
2.720
2.144
Video-LLaVA
1.519
1.241
1.657
1.959
2.587
3.293
2.290
GUI-ViD
3.562
2.058
2.376
2.763
3.080
3.260
2.847
+
+# 3.2 EMPIRICAL RESULTS
+
+Commercial Vision LLMs outperform Open-source Video LLMs in Zero-shot Settings. Commercial vision LLMs, notably GPT-4V and GPT-4o, consistently outperform open-source video LLMs in zero-shot settings. As detailed in Table 3, GPT-4o exhibits superior performance across all GUI scenarios in complex tasks, reflected in its high scores in both multiple-choice and free-form queries, with an average of $84.8\%$ and 3.573. Similarly, Gemini demonstrates strong capabilities in captioning and descriptive tasks within software and iOS environments, scoring 2.836 and 2.936, respectively, as shown in Table 26. Further analysis (Figure 6) reveals that GPT-4V excels in applications with minimal textual content and simple layouts, such as TikTok, health apps, and GitHub. In contrast, its performance drops in more intricate applications like Microsoft ToDo and XR software. As for video LLMs, their significantly poorer performance is attributed to two main factors: their inability to accurately interpret GUI content from user inputs and a lack of sufficient GUI-oriented pre-training, which is evident from their inadequate performance in basic captioning and description tasks. See Appendix D for other metrics and detailed fine-grained performance.
+
+Dynamic GUI Tasks Continue to Challenge MLLMs. In the fine-grained tasks depicted in Table 5, GPT-4V and GPT-4o excel with dynamic GUI content and conversational tasks but struggle with providing detailed descriptions for entire videos and static content. This discrepancy is attributed to minor variations in GUI that significantly impact its semantic meaning. Enhancing the number of keyframes and the granularity of perception might mitigate these issues. Among video LLMs,
+
+Table 6: Performance comparison of keyframe selection methods for GPT-4o: Model-based keyframe identifiers from embodied AI demonstrate comparable performance to human-selected keyframes.
+
+
Settings
Caption
Complex Tasks
Conversation
Average
Concise
Detailed
Static
Dyn.
Round 1
Round 2
Human
3.911
3.031
3.131
3.318
3.981
4.132
3.573
Program
3.643
2.764
2.872
3.052
3.702
3.837
3.300
Linspace
3.749
2.941
3.000
3.077
3.687
3.843
3.440
UVD+vip
3.954
3.105
3.321
3.219
3.944
4.107
3.581
UVD+r3m
3.972
3.121
3.352
3.243
3.975
4.119
3.612
+
+Table 7: The improved performance with higher resolution inputs demonstrates the critical role of vision input in GUI-related tasks.
+
+
Setting
Caption
Complex Tasks
Conversation
Average
Concise
Detailed
Static
Dyn.
Round 1
Round 2
w/o Vision
2.187
1.872
2.486
2.979
3.760
4.059
2.891
Low Resolution
3.672
2.794
2.869
3.150
3.783
4.041
3.394
High Resolution
3.911
3.031
3.131
3.318
3.981
4.132
3.574
+
+ChatUnivi excels in conversational tasks by effectively leveraging contextual nuances, particularly in subsequent rounds, yet it underperforms in caption tasks. In contrast, GUI-VID demonstrates proficiency in dynamic tasks but falls short in both captioning and static content. This gap is linked to deficiencies in backbone pretraining, which lacked comprehensive GUI content crucial for effective vision-text alignment, as evidenced by its poor performance in simple caption task shown in Table 26 and an instruction tuning process failed to fully address these shortcomings.
+
+Vision Perception is Important to Dynamic GUI Content. As demonstrated in Table 7, integrating detailed textual information slightly outperforms purely vision-based inputs or detailed captions, akin to a Chain of Thought (CoT) (Wei et al., 2022) setting. Surprisingly, GPT-4V excels in caption tasks with just detailed captions, providing insights on enhancing specific GUI-oriented tasks through additional textual information. However, it still falls short in more challenging tasks, such as retrieving static or dynamic content. This underscores the critical role of visual perception in GUI environments, where even minor changes can significantly impact outcomes.
+
+Keyframe Selection is Important for GUI-oriented Tasks. Our experiments demonstrate that model-based keyframe identifiers, originally developed for embodied AI applications, perform competitively with human-selected across both basic tasks (e.g., caption) and complex tasks (static and dynamic analysis). As shown in Table 6, GPT-4o exhibits significant performance improvements when utilizing these robotics-inspired model-based keyframe identifiers, with the UVD+VIP approach achieving optimal results. These findings suggest the potential to replace manual keyframe selection with automated approaches. Further analysis reveals that embodied AI keyframe identifiers successfully capture semantic transitions in GUI content, while linspace and program-based selection methods fail to do so, highlighting their particular suitability for GUI-oriented tasks. The substantial performance gaps observed between different selection methods underscore the critical importance of keyframe selection in this domain.
+
+# 4 EXPLORING AND IMPROVING GUI-ORIENTED VIDEO LLMS
+
+# 4.1 METHOD: PROGRESSIVE ENHANCEMENT
+
+We introduce our strategy to enhance the GUI-oriented capabilities of current MLLMs on both static and dynamic GUI content. Inspired by previous studies (Lai et al., 2024; Li et al., 2023b), we structure our methodology into two distinct fine-tuning stages, as illustrated in Figure 7. Initially, we fine-tune the MLLM on simpler tasks, such as description queries and captioning exercises, to instill a basic understanding of GUI elements. Subsequently, building on this foundation, the second stage aims to augment the MLLM's proficiency with more complex and challenging tasks. Our fine-tuning is all based on the Supervised Fine-Tuning (SFT): $\mathcal{L}_{\mathrm{SFT}}(\pi_{\theta}) = -\mathbb{E}_{(x,y)\sim \mathcal{D}}[\log \pi_{\theta}(y\mid x)]$ , where $x$ is the input, $y$ is LLMs' output, and $\pi_{\theta}$ denotes the model parameters that need to be optimized.
+
+Stage-1: Learning Preliminary for GUI Content. The initial phase focuses on aligning GUI content with a pre-trained vision encoder and a base LLM, utilizing GUI videos accompanied by detailed descriptions and captions. This phase aims to embed a robust understanding of fundamental
+
+
+Figure 7: An overview of our fine-tuning architecture, focusing on 1) GUI content alignment and 2) GUI-oriented tasks instruction tuning.
+
+GUI concepts and terminology within the MLLM. By engaging the model in basically captioning various GUI components, the model learns to recognize and articulate the functionalities and visual characteristics of these elements, thereby laying a solid groundwork for GUI knowledge.
+
+Stage-2: Mastering Advanced GUI Capability. Building on the foundational knowledge established in Stage 1, the second stage focuses on advancing the MLLM's proficiency in interacting with GUI elements through more complex tasks. These tasks are designed to simulate real-world scenarios that the MLLM might encounter in GUI environments, which include predicting based on image sequences, engaging in conversations, retrieving both static and dynamic GUI elements, and performing reasoning tasks.
+
+As illustrated in Figure 7, We employ the two-stage training architecture utilizing VideoChat2 (Li et al., 2023b) as our foundational model. Initially, videos and images are encoded using the UMT-L visual encoder (Li et al., 2023d). Subsequently, a QFormer compresses visual tokens into a smaller set of query tokens. Drawing inspiration from (Dai et al., 2023), we enhance the QFormer (Zhang et al., 2024c) by integrating instructions to enable it to extract visual representations pertinent to the given instructions. Additionally, we apply low-rank adaptation (LoRA (Hu et al., 2021)) to base LLM. This model is concurrently fine-tuned with the visual encoder and QFormer using a Vision-grounded Text Generation (VTG) loss: $\mathcal{L}_{\mathrm{VTG}}(\theta) = -\mathbb{E}\left[\log p(y|v;\theta)\right]$ , where $v$ represents the visual tokens derived from the QFormer, and $y$ represents the text output grounded in the visual context.
+
+# 4.2 EXPERIMENTS
+
+Experiment Setups. We use two dataset settings to fine-tune GUI-VID, one with video only, and the other with video and image, detailed in Appendix C. We also vary the number of keyframes (8, 16) fed into GUI-VID. All our experiments are conducted on A800 and 4090 GPUs.
+
+Supreme Enhancement of GUI-VID on Graphic-based Interface After Fine-tuning on GUI-WORLD. As a pioneering study in training video LLMs as screen agents, GUIVID significantly outperforms the baseline model, showing an average improvement of $30\%$ across various tasks and GUI scenarios, even surpassing the commercial vision LLM, QwenVL-Max. This enhancement is particularly notable in captioning and dynamic task that reason over image sequences, where GUI-VID matches the performance of GPT-4V and Gemini-Pro. As depicted in Table 8, our two ablation studies during the fine-tuning phase demonstrate that utilizing GUI image-text captioning data significantly enhances the model's preliminary understanding of GUI elements, outperforming
+
+training that relies solely on videos. Additionally, an increased number of keyframes correlates with improved performance across various scenarios, notably in environments featuring multiple windows and software applications. As shown in Figure 8, our two-stage progressive fine-tuning significantly enhances the performance in all GUI scenarios.
+
+
+Figure 8: Two stages of progressive training enhance GUI ability.
+
+Correlation between GUI Understanding and Other Mainstream GUI Tasks. In our explorative experiments, GUI-VID still fails in some GUI operating tasks via code generation, which is due to the baseline LLM's weak performance and the challenges of code generation instruction fine-tuning. To further demonstrate how GUI understanding capability enhances mainstream GUI-related tasks,
+
+Table 8: The overall results for ablation study on GUI-VID fine-tuning. F.K. and E.K. mean keyframes during the finetuning and evaluation process respectively. I.: Image, V.: Video.
+
+
Baseline
F.K.
E.K.
Data
Software
Website
XR
Multi
IOS
Android
Avg.
I. V.
MC
Free
MC
Free
MC
Free
MC
Free
MC
Free
MC
Free
MC
Free
Baseline
-
8
- -
45.5%
2.144
42.6%
2.221
44.0%
2.005
40.4%
2.222
40.2%
2.169
44.7%
2.119
42.9%
2.147
-
16
- -
45.1%
2.144
41.8%
2.240
41.0%
2.007
40.7%
2.238
39.9%
2.138
44.7%
2.147
42.2%
2.154
GUI-VID
8
8
×✓
58.3%
2.709
53.6%
2.817
62.2%
2.626
54.2%
2.627
53.1%
2.708
54.9%
2.501
56.0%
2.665
✓✓
59.9%
2.856
54.1%
2.925
59.0%
2.751
52.1%
2.837
50.0%
2.756
54.0%
2.571
54.8%
2.782
16
×✓
59.0%
2.709
55.1%
2.821
62.8%
2.645
53.3%
2.624
55.5%
2.727
55.7%
2.501
56.9%
2.671
✓✓
59.9%
2.847
54.1%
2.957
55.6%
2.764
52.9%
2.861
51.8%
2.772
53.4%
2.572
54.6%
2.796
+
+including generating operational code (Cheng et al., 2024) and providing chat assistance (Hong et al., 2024), we conduct experiments as follows (detailed in Appendix D):
+
+- We evaluate our model on Mind2Web-Multimodal (Deng et al., 2024) in both zero-shot and fine-tuning setting. See Appendix D for further details.
+- We conduct human study across 180 videos across 6 scenarios, where annotators will choose preferred responses from two response of different models when acting as GUI assistant (Table 17).
+
+# 5 RELATED WORK
+
+MLLM-based Agents for GUI. Building upon the significant advancements in LLMs (Achiam et al., 2023; Meta, 2023a;b; ai, 2024; Huang et al., 2025) and advanced modality-mixing technologies (Li et al., 2023a; Alayrac et al., 2022), groundbreaking MLLMs such as GPT-4V (OpenAI, 2023) and Gemini-Pro (Team et al., 2023), along with open-source MLLMs like the LLaVA-1.6 series (Liu et al., 2023b;a), CogVLM (Wang et al., 2023b), and Qwen-VL series (Bai et al., 2023), have shown outstanding performance across various tasks (Yu et al.; Liu et al., 2023e; Chen et al., 2024b; Wu et al., 2023; Wake et al., 2023; Zhang et al., 2024b; Zhao et al., 2024; Gui et al., 2024). Venturing beyond text and single image, several studies are now exploring the integration of video modalities for tasks requiring dynamic or sequential visual content (Jin et al., 2023; Li et al., 2023b; Maaz et al., 2023; Lin et al., 2023a). In the GUI domain, leveraging the robust vision perception capabilities of MLLMs, applications such as WebAgents (Hong et al., 2024; Zhang et al., 2024a; Zheng et al., 2024b) and Mobile Agents (Wang et al., 2023a; You et al., 2024; Wang et al., 2021; Li et al., 2020b) have gained popularity for handling everyday tasks like navigation and VQA. Frontier research is also investigating the use of MLLMs as general control agents, such as in playing computer games (Tan et al., 2024; Lin et al., 2023b) and serving as OS copilots (Song et al., 2024; Xie et al., 2024), paving the way for more complex GUI operations.
+
+GUI Benchmark & Dataset. Building upon the foundational work of Rico (Deka et al., 2017), the first mobile GUI video dataset, and AitW (Rawles et al., 2023), which features 715k episodes of sequential images, research has extensively covered mobile (Sun et al., 2022; Li et al., 2020a; Zhang et al., 2023) and web GUI environments (Liu et al., 2024; Zhou et al., 2023; Yao et al., 2022; Koh et al., 2024; Liu et al., 2024b). Mind2Web (Deng et al., 2024) stands out in web-based datasets with over 2,000 tasks from 137 websites across 31 domains. Advances continue into desktop GUIs with new toolkits (Zheng et al., 2024b), benchmarks (Kapoor et al., 2024; Mialon et al., 2023), and frameworks (Zheng et al., 2024a; Liu et al., 2023c; Niu et al., 2024). Research on GUI also transfers from comprehending single images in a static workspace (Hong et al., 2024) to sequential operations or multi-hop scenarios (Xie et al., 2024; Zhang et al., 2024e), challenging the understanding and operation capability of these powerful models.
+
+# 6 CONCLUSION
+
+In this paper, we have introduced GUI-WORLD, a comprehensive GUI-oriented video dataset designed to benchmark and enhance understanding of virtual interfaces, especially sequential and dynamic tasks. This dataset extensively covers six scenarios and various tasks, addressing the previous research gap in comprehensively evaluating models' capabilities in graphic-based understanding. We conduct extensive benchmarks on leading MLLMs and the first video-LLM-based assistant GUI-VID fine-tuned on GUI-WORLD specifically for GUI-oriented content, achieving results comparable to top-performing models, providing detailed insights into enhancing GUI-related capabilities. We believe our work offers valuable insights for future research in dynamic GUI content understanding.
+
+Acknowledgements. Pan Zhou is partially supported by National Natural Science Foundation of China (NSFC) under grant No. 62476107. Dongping Chen and Yao Wan are supported by the Fundamental Research Funds for the Central Universities (HUST: 62400001). We would like to thank Yinuo Liu, Zhengyan Fu, Shilin Zhang, Yu, Tianhe Gu, Haokuan Yuan, and Junqi Wang for their insightful feedback and support.
+
+# REFERENCES
+
+Meta quest 3: New mixed reality vr headset. https://www.meta.com/quest/quest-3.
+Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
+Mistral ai. Mistral ai, 2024. https://mistral.ai/company/.
+Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katherine Millican, Malcolm Reynolds, et al. Flamingo: a visual language model for few-shot learning. Advances in neural information processing systems, 35:23716-23736, 2022.
+Apple. Apple vision pro. https://www.apple.com/apple-vision-pro/, 2024.
+Kirolos Ataallah, Xiaogian Shen, Eslam Abdelrahman, Essam Sleiman, Deyao Zhu, Jian Ding, and Mohamed Elhoseiny. Minigpt4-video: Advancing multimodal llms for video understanding with interleaved visual-textual tokens. arXiv preprint arXiv:2404.03413, 2024.
+Jinze Bai, Shuai Bai, Shusheng Yang, Shijie Wang, Sinan Tan, Peng Wang, Junyang Lin, Chang Zhou, and Jingren Zhou. Qwen-vl: A frontier large vision-language model with versatile abilities. arXiv preprint arXiv:2308.12966, 2023.
+Tony Beltramelli. pix2code: Generating code from a graphical user interface screenshot. In Proceedings of the ACM SIGCHI symposium on engineering interactive computing systems, pp. 1-6, 2018.
+Dongping Chen, Ruoxi Chen, Shilin Zhang, Yinuo Liu, Yaochen Wang, Huichi Zhou, Qihui Zhang, Yao Wan, Pan Zhou, and Lichao Sun. Mllm-as-a-judge: Assessing multimodal llm-as-a-judge with vision-language benchmark. arXiv preprint arXiv:2402.04788, 2024a.
+Lin Chen, Jinsong Li, Xiaoyi Dong, Pan Zhang, Yuhang Zang, Zehui Chen, Haodong Duan, Jiaqi Wang, Yu Qiao, Dahua Lin, et al. Are we on the right way for evaluating large vision-language models? arXiv preprint arXiv:2403.20330, 2024b.
+Wentong Chen, Junbo Cui, Jinyi Hu, Yujia Qin, Junjie Fang, Yue Zhao, Chongyi Wang, Jun Liu, Guirong Chen, Yupeng Huo, et al. Guicourse: From general vision language models to versatile gui agents. arXiv preprint arXiv:2406.11317, 2024c.
+Kanzhi Cheng, Qiushi Sun, Yougang Chu, Fangzhi Xu, Yantao Li, Jianbing Zhang, and Zhiyong Wu. Seeclick: Harnessing gui grounding for advanced visual gui agents. arXiv preprint arXiv:2401.10935, 2024.
+Wenliang Dai, Junnan Li, Dongxu Li, Anthony Meng Huat Tiong, Junqi Zhao, Weisheng Wang, Boyang Albert Li, Pascale Fung, and Steven C. H. Ho. Instructclip: Towards general-purpose vision-language models with instruction tuning. ArXiv, abs/2305.06500, 2023. URL https://api-semanticscholar.org/CorpusID:258615266.
+Biplab Deka, Zifeng Huang, Chad Franzen, Joshua Hibschman, Daniel Afergan, Yang Li, Jeffrey Nichols, and Ranjitha Kumar. Rico: A mobile app dataset for building data-driven design applications. In Proceedings of the 30th annual ACM symposium on user interface software and technology, pp. 845-854, 2017.
+Jasper Dekoninck, Marc Fischer, Luca Beurer-Kellner, and Martin Vechev. Understanding large language models through the lens of dataset generation, 2024. URL https://openreview.net/forum?id=miGpIhquyB.
+
+Xiang Deng, Yu Gu, Boyuan Zheng, Shijie Chen, Sam Stevens, Boshi Wang, Huan Sun, and Yu Su. Mind2web: Towards a generalist agent for the web. Advances in Neural Information Processing Systems, 36, 2024.
+Yi Gui, Zhen Li, Yao Wan, Yemin Shi, Hongyu Zhang, Yi Su, Shaoling Dong, Xing Zhou, and Wenbin Jiang. Vision2ui: A real-world dataset with layout for code generation from ui designs. arXiv preprint arXiv:2404.06369, 2024.
+Wenyi Hong, Weihan Wang, Qingsong Lv, Jiazheng Xu, Wenmeng Yu, Junhui Ji, Yan Wang, Zihan Wang, Yuxiao Dong, Ming Ding, et al. Cogagent: A visual language model for gui agents. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 14281-14290, 2024.
+Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021.
+Jiangyong Huang, Silong Yong, Xiaojian Ma, Xiongkun Linghu, Puhao Li, Yan Wang, Qing Li, Song-Chun Zhu, Baoxiong Jia, and Siyuan Huang. An embodied generalist agent in 3d world. arXiv preprint arXiv:2311.12871, 2023.
+Yue Huang, Chujie Gao, Siyuan Wu, Haoran Wang, Xiangqi Wang, Yujun Zhou, Yanbo Wang, Jiayi Ye, Jiawen Shi, Qihui Zhang, et al. On the trustworthiness of generative foundation models: Guideline, assessment, and perspective. arXiv preprint arXiv:2502.14296, 2025.
+Peng Jin, Ryuichi Takanobu, Caiwan Zhang, Xiaochun Cao, and Li Yuan. Chat-univi: Unified visual representation empowers large language models with image and video understanding. arXiv preprint arXiv:2311.08046, 2023.
+Rodrigo Funabashi Jorge, Márcio Eduardo Delamaro, Celso Gonçalves Camilo-Junior, and Auri Marcelo Rizzo Vincenzi. Test data generation based on gui: A systematic mapping. In International Conference on Software Engineering Advances, 2014. URL https://api.sementicalscholar.org/CorpusID:64041598.
+Raghav Kapoor, Yash Parag Butala, Melisa Russak, Jing Yu Koh, Kiran Kamble, Waseem Alshikh, and Ruslan Salakhutdinov. Omniact: A dataset and benchmark for enabling multimodal generalist autonomous agents for desktop and web. arXiv preprint arXiv:2402.17553, 2024.
+KeplerLab. Katna - video to keyframes and video to image crops utility. https://github.com/keplerlab/katna, 2023. Accessed: 2024-09-07.
+Jing Yu Koh, Robert Lo, Lawrence Jang, Vikram Duvvur, Ming Chong Lim, Po-Yu Huang, Graham Neubig, Shuyan Zhou, Ruslan Salakhutdinov, and Daniel Fried. Visualwebarena: Evaluating multimodal agents on realistic visual web tasks. arXiv preprint arXiv:2401.13649, 2024.
+Ambreen Kousar, Saif Ur Rehman Khan, Shahid Hussain, M. Abdul Basit Ur Rahim, Wen-Li Wang, and Naseem Ibrahim. A systematic review on pattern-based gui testing of android and web apps: State-of-the-art, taxonomy, challenges and future directions. In 2023 25th International Multitopic Conference (INMIC), pp. 1-7, 2023. doi: 10.1109/INMIC60434.2023.10465949.
+Ivans Kulesovs. ios applications testing. 2015. URL https://api_semanticscholar.org/ CorpusID:59015994.
+Hanyu Lai, Xiao Liu, Iat Long Iong, Shuntian Yao, Yuxuan Chen, Pengbo Shen, Hao Yu, Hanchen Zhang, Xiaohan Zhang, Yuxiao Dong, et al. Autowebglm: Bootstrap and reinforce a large language model-based web navigating agent. arXiv preprint arXiv:2404.03648, 2024.
+Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng Li, Hao Zhang, Kaichen Zhang, Yanwei Li, Ziwei Liu, and Chunyuan Li. Llava-onevision: Easy visual task transfer. arXiv preprint arXiv:2408.03326, 2024a.
+
+Chunyuan Li, Cliff Wong, Sheng Zhang, Naoto Usuyama, Haotian Liu, Jianwei Yang, Tristan Naumann, Hoifung Poon, and Jianfeng Gao. Llava-med: Training a large language-and-vision assistant for biomedicine in one day. Advances in Neural Information Processing Systems, 36, 2024b.
+Gang Li and Yang Li. Spotlight: Mobile ui understanding using vision-language models with a focus. arXiv preprint arXiv:2209.14927, 2022.
+Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. In International conference on machine learning, pp. 19730-19742. PMLR, 2023a.
+KunChang Li, Yinan He, Yi Wang, Yizhuo Li, Wenhai Wang, Ping Luo, Yali Wang, Limin Wang, and Yu Qiao. Videochat: Chat-centric video understanding. arXiv preprint arXiv:2305.06355, 2023b.
+Kunchang Li, Yali Wang, Yinan He, Yizhuo Li, Yi Wang, Yi Liu, Zun Wang, Jilan Xu, Guo Chen, Ping Luo, et al. Mvbench: A comprehensive multi-modal video understanding benchmark. arXiv preprint arXiv:2311.17005, 2023c.
+Kunchang Li, Yali Wang, Yizhuo Li, Yi Wang, Yinan He, Limin Wang, and Yu Qiao. Unmasked teacher: Towards training-efficient video foundation models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 19948-19960, 2023d.
+Yang Li, Jiacong He, Xin Zhou, Yuan Zhang, and Jason Baldridge. Mapping natural language instructions to mobile ui action sequences. arXiv preprint arXiv:2005.03776, 2020a.
+Yang Li, Gang Li, Luheng He, Jingjie Zheng, Hong Li, and Zhiwei Guan. Widget captioning: Generating natural language description for mobile user interface elements. arXiv preprint arXiv:2010.04295, 2020b.
+Bin Lin, Yang Ye, Bin Zhu, Jiaxi Cui, Munan Ning, Peng Jin, and Li Yuan. Video-llava: Learning united visual representation by alignment before projection. arXiv preprint arXiv:2311.10122, 2023a.
+Kevin Lin, Faisal Ahmed, Linjie Li, Chung-Ching Lin, Ehsan Azarnasab, Zhengyuan Yang, Jianfeng Wang, Lin Liang, Zicheng Liu, Yumao Lu, et al. Mm-vid: Advancing video understanding with gpt-4v (ision). arXiv preprint arXiv:2310.19773, 2023b.
+Evan Zheran Liu, Kelvin Guu, Panupong Pasupat, Tianlin Shi, and Percy Liang. Reinforcement learning on web interfaces using workflow-guided exploration. In International Conference on Learning Representations (ICLR), 2018. URL https://arxiv.org/abs/1802.08802.
+Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee. Improved baselines with visual instruction tuning, 2023a.
+Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. Visual instruction tuning. In NeurlPS, 2023b.
+Haotian Liu, Chunyuan Li, Yuheng Li, Bo Li, Yuanhan Zhang, Sheng Shen, and Yong Jae Lee. Llava-last: Improved reasoning,OCR,and world knowledge,January 2024a. URL https://llava-v1.github.io/blog/2024-01-30-llava-last/.
+Junpeng Liu, Yifan Song, Bill Yuchen Lin, Wai Lam, Graham Neubig, Yanzhi Li, and Xiang Yue. Visualwebbench: How far have multimodal llms evolved in web page understanding and grounding? arXiv preprint arXiv:2404.05955, 2024b.
+Xiao Liu, Hanyu Lai, Hao Yu, Yifan Xu, Aohan Zeng, Zhengxiao Du, Peng Zhang, Yuxiao Dong, and Jie Tang. Webglm: Towards an efficient web-enhanced question answering system with human preferences. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pp. 4549-4560, 2023c.
+Xiao Liu, Xuanyu Lei, Shengyuan Wang, Yue Huang, Zhuoer Feng, Bosi Wen, Jiale Cheng, Pei Ke, Yifan Xu, Weng Lam Tam, et al. Alignbench: Benchmarking chinese alignment of large language models. arXiv preprint arXiv:2311.18743, 2023d.
+
+Xiao Liu, Tianjie Zhang, Yu Gu, Iat Long Iong, Yifan Xu, Xixuan Song, Shudan Zhang, Hanyu Lai, Xinyi Liu, Hanlin Zhao, et al. Visualagentbench: Towards large multimodal models as visual foundation agents. arXiv preprint arXiv:2408.06327, 2024c.
+Yuan Liu, Haodong Duan, Yuanhan Zhang, Bo Li, Songyang Zhang, Wangbo Zhao, Yike Yuan, Jiaqi Wang, Conghui He, Ziwei Liu, et al. Mmbench: Is your multi-modal model an all-around player? arXiv preprint arXiv:2307.06281, 2023e.
+Xing Han Lu, Zdeněk Kasner, and Siva Reddy. Weblinx: Real-world website navigation with multi-turn dialogue. arXiv preprint arXiv:2402.05930, 2024.
+Yecheng Jason Ma, Shagun Sodhani, Dinesh Jayaraman, Osbert Bastani, Vikash Kumar, and Amy Zhang. Vip: Towards universal visual reward and representation via value-implicit pre-training. arXiv preprint arXiv:2210.00030, 2022.
+Muhammad Maaz, Hanoona Rasheed, Salman Khan, and Fahad Shahbaz Khan. Video-chatgpt: Towards detailed video understanding via large vision and language models. arXiv preprint arXiv:2306.05424, 2023.
+Behrooz Mahasseni, Michael Lam, and Sinisa Todorovic. Unsupervised video summarization with adversarial LSTM networks. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pp. 202-211, 2017.
+Meta. Llama 2, 2023a. https://llama.meta.com/llama2.
+Meta. Llama 3, 2023b. https://llama.meta.com/llama3.
+Grégoire Mialon, Clémentine Fourrier, Craig Swift, Thomas Wolf, Yann LeCun, and Thomas Scialom. Gaia: a benchmark for general ai assistants. arXiv preprint arXiv:2311.12983, 2023.
+Suraj Nair, Aravind Rajeswaran, Vikash Kumar, Chelsea Finn, and Abhinav Gupta. R3m: A universal visual representation for robot manipulation. arXiv preprint arXiv:2203.12601, 2022.
+Hajime Nakajima, Takeshi Masuda, and Ikuya Takahashi. Gui ferret: Gui test tool to analyze complex behavior of multi-window applications. 2013 18th International Conference on Engineering of Complex Computer Systems, pp. 163-166, 2013. URL https://api-semanticscholar.org/CorpusID:837553.
+Runliang Niu, Jindong Li, Shiqi Wang, Yali Fu, Xiyu Hu, Xueyuan Leng, He Kong, Yi Chang, and Qi Wang. Screenagent: A vision language model-driven computer control agent. arXiv preprint arXiv:2402.07945, 2024.
+OpenAI. Chatgpt, 2023. https://openai.com/product/chatgpt.
+OpenAI. Openai models - gpt-4-vision. https://openai.com/research/gpt-4v-system-card, 2023.
+OpenAI. Hello gpt-4o, May 2024. URL https://openai.com/index/hello-gpt-4o/. Accessed: 2024-06-06.
+OpenCV. Opencv. https://opencv.org/.
+Kevin Qinghong Lin, Linjie Li, Difei Gao, Qinchen WU, Mingyi Yan, Zhengyuan Yang, Lijuan Wang, and Mike Zheng Shou. Videogui: A benchmark for gui automation from instructional videos. arXiv e-prints, pp. arXiv-2406, 2024.
+Philipp A. Rauschnabel, Reto Felix, Christian Hinsch, Hamza Shahab, and Florain Alt. What is xr? towards a framework for augmented and virtual reality. Comput. Hum. Behav., 133:107289, 2022. URL https://api_semanticscholar.org/CorpusID:247861674.
+Christopher Rawles, Alice Li, Daniel Rodriguez, Oriana Riva, and Timothy Lillicrap. Android in the wild: A large-scale dataset for android device control. arXiv preprint arXiv:2307.10088, 2023.
+
+Brian K. Sanders, Yuzhong Shen, and Dennis A. Vincenzi. Understanding user interface preferences for xr environments when exploring physics and engineering principles. In International Conference on Applied Human Factors and Ergonomics, 2019. URL https://api.sementicscholar.org/CorpusID:197940610.
+Zirui Song, Yaohang Li, Meng Fang, Zhenhao Chen, Zecheng Shi, and Yuan Huang. Mmac-copilot: Multi-modal agent collaboration operating system copilot. arXiv preprint arXiv:2404.18074, 2024.
+Liangtai Sun, Xingyu Chen, Lu Chen, Tianle Dai, Zichen Zhu, and Kai Yu. Meta-gui: towards multi-modal conversational agents on mobile gui. arXiv preprint arXiv:2205.11029, 2022.
+Weihao Tan, Ziluo Ding, Wentao Zhang, Boyu Li, Bohan Zhou, Junpeng Yue, Haochong Xia, Jiechuan Jiang, Longtao Zheng, Xinrun Xu, et al. Towards general computer control: A multimodal agent for red dead redemption ii as a case study. arXiv preprint arXiv:2403.03186, 2024.
+Gemini Team, Rohan Anil, Sebastian Borgeaud, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut, Johan Schalkwyk, Andrew M Dai, Anja Hauth, Katie Millican, et al. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805, 2023.
+Sagar Gubbi Venkatesh, Partha Talukdar, and Srini Narayanan. Ugif: Ui grounded instruction following. arXiv preprint arXiv:2211.07615, 2022.
+Naoki Wake, Atsushi Kanehira, Kazuhiro Sasabuchi, Jun Takamatsu, and Katsushi Ikeuchi. Gpt-4v (ision) for robotics: Multimodal task planning from human demonstration. arXiv preprint arXiv:2311.12015, 2023.
+Bryan Wang, Gang Li, Xin Zhou, Zhourong Chen, Tovi Grossman, and Yang Li. Screen2words: Automatic mobile ui summarization with multimodal learning. In The 34th Annual ACM Symposium on User Interface Software and Technology, pp. 498-510, 2021.
+Bryan Wang, Gang Li, and Yang Li. Enabling conversational interaction with mobile ui using large language models. In Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems, pp. 1-17, 2023a.
+Junyang Wang, Haiyang Xu, Jiabo Ye, Ming Yan, Weizhou Shen, Ji Zhang, Fei Huang, and Jitao Sang. Mobile-agent: Autonomous multi-modal mobile device agent with visual perception. arXiv preprint arXiv:2401.16158, 2024.
+Weihan Wang, Qingsong Lv, Wenmeng Yu, Wenyi Hong, Ji Qi, Yan Wang, Junhui Ji, Zhuoyi Yang, Lei Zhao, Xixuan Song, et al. CogvIm: Visual expert for pretrained language models. arXiv preprint arXiv:2311.03079, 2023b.
+Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824-24837, 2022.
+Chaoyi Wu, Jiayu Lei, Qiaoyu Zheng, Weike Zhao, Weixiong Lin, Xiaoman Zhang, Xiao Zhou, Ziheng Zhao, Ya Zhang, Yanfeng Wang, et al. Can gpt-4v (ision) serve medical applications? case studies on gpt-4v for multimodal medical diagnosis. arXiv preprint arXiv:2310.09909, 2023.
+Tianbao Xie, Danyang Zhang, Jixuan Chen, Xiaochuan Li, Siheng Zhao, Ruisheng Cao, Toh Jing Hua, Zhoujun Cheng, Dongchan Shin, Fangyu Lei, et al. Osworld: Benchmarking multimodal agents for open-ended tasks in real computer environments. arXiv preprint arXiv:2404.07972, 2024.
+An Yan, Zhengyuan Yang, Wanrong Zhu, Kevin Qinghong Lin, Linjie Li, Jianfeng Wang, Jianwei Yang, Yiwu Zhong, Julian J. McAuley, Jianfeng Gao, Zicheng Liu, and Lijuan Wang. Gpt-4v in wonderland: Large multimodal models for zero-shot smartphone gui navigation. ArXiv, abs/2311.07562, 2023. URL https://api_semanticscholar.org/CorpusID:265149992.
+Xiang Yan, Syed Zulqarnain Gilani, Hanlin Qin, Mingtao Feng, Liang Zhang, and Ajmal Mian. Deep keyframe detection in human action videos. arXiv preprint arXiv:1804.10021, 2018.
+
+Zhao Yang, Jiaxuan Liu, Yucheng Han, Xin Chen, Zebiao Huang, Bin Fu, and Gang Yu. Appagent: Multimodal agents as smartphone users. arXiv preprint arXiv:2312.13771, 2023a.
+Zhengyuan Yang, Linjie Li, Jianfeng Wang, Kevin Lin, Ehsan Azarnasab, Faisal Ahmed, Zicheng Liu, Ce Liu, Michael Zeng, and Lijuan Wang. Mm-react: Prompting chatgpt for multimodal reasoning and action. arXiv preprint arXiv:2303.11381, 2023b.
+Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. Webshop: Towards scalable real-world web interaction with grounded language agents. Advances in Neural Information Processing Systems, 35:20744-20757, 2022.
+Jiayi Ye, Yanbo Wang, Yue Huang, Dongping Chen, Qihui Zhang, Nuno Moniz, Tian Gao, Werner Geyer, Chao Huang, Pin-Yu Chen, et al. Justice or prejudice? quantifying biases in llm-as-a-judge. arXiv preprint arXiv:2410.02736, 2024.
+Shukang Yin, Chaoyou Fu, Sirui Zhao, Ke Li, Xing Sun, Tong Xu, and Enhong Chen. A survey on multimodal large language models. National Science Review, pp. nwae403, 2024.
+Keen You, Haotian Zhang, Eldon Schoop, Floris Weers, Amanda Swearngin, Jeffrey Nichols, Yinfei Yang, and Zhe Gan. Ferret-ui: Grounded mobile ui understanding with multimodal llms. arXiv preprint arXiv:2404.05719, 2024.
+Weihao Yu, Zhengyuan Yang, Linjie Li, Jianfeng Wang, Kevin Lin, Zicheng Liu, Xinchao Wang, and Lijuan Wang. Mm-vet: Evaluating large multimodal models for integrated capabilities. In *Forty-first International Conference on Machine Learning*.
+Haolan Zhan, Yujin Huang, Di Liu, et al. Pairwise gui dataset construction between android phones and tablets. Advances in Neural Information Processing Systems, 36, 2024.
+Chaoyun Zhang, Liquin Li, Shilin He, Xu Zhang, Bo Qiao, Si Qin, Minghua Ma, Yu Kang, Qingwei Lin, Saravan Rajmohan, et al. Ufo: A ui-focused agent for windows os interaction. arXiv preprint arXiv:2402.07939, 2024a.
+Danyang Zhang, Hongshen Xu, Zihan Zhao, Lu Chen, Ruisheng Cao, and Kai Yu. Mobile-Env: An evaluation platform and benchmark for llm-gui interaction. CoRR, abs/2305.08144, 2023. URL https://arxiv.org/abs/2305.08144.
+Qihui Zhang, Chujie Gao, Dongping Chen, Yue Huang, Yixin Huang, Zhenyang Sun, Shilin Zhang, Weiye Li, Zhengyan Fu, Yao Wan, and Lichao Sun. LLM-as-a-coauthor: Can mixed human-written and machine-generated text be detected? In Kevin Duh, Helena Gomez, and Steven Bethard (eds.), Findings of the Association for Computational Linguistics: NAACL 2024, pp. 409-436, Mexico City, Mexico, June 2024b. Association for Computational Linguistics. URL https://aclanthology.org/2024-findings-naacl.29.
+Qiming Zhang, Jing Zhang, Yufei Xu, and Dacheng Tao. Vision transformer with quadrangle attention. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024c.
+Zichen Zhang, Yunshuang Li, Osbert Bastani, Abhishek Gupta, Dinesh Jayaraman, Yecheng Jason Ma, and Luca Weihs. Universal visual decomposer: Long-horizon manipulation made easy. In 2024 IEEE International Conference on Robotics and Automation (ICRA), pp. 6973-6980. IEEE, 2024d.
+Ziniu Zhang, Shulin Tian, Liangyu Chen, and Ziwei Liu. Mmina: Benchmarking multihop multimodal internet agents. arXiv preprint arXiv:2404.09992, 2024e.
+Wei Zhao, Zhitao Hou, Siyuan Wu, Yan Gao, Haoyu Dong, Yao Wan, Hongyu Zhang, Yulei Sui, and Haidong Zhang. NL2Formula: Generating spreadsheet formulas from natural language queries. In Yvette Graham and Matthew Purver (eds.), Findings of the Association for Computational Linguistics: EACL 2024, pp. 2377-2388, St. Julian's, Malta, March 2024. Association for Computational Linguistics. URL https://aclanthology.org/2024-findings-eacl.158.
+Boyuan Zheng, Boyu Gou, Jihyung Kil, Huan Sun, and Yu Su. Gpt-4v (ision) is a generalist web agent, if grounded. arXiv preprint arXiv:2401.01614, 2024a.
+
+Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, et al. Judging llm-as-a-judge with mt-bench and chatbot arena. Advances in Neural Information Processing Systems, 36:46595-46623, 2023.
+Longtao Zheng, Zhiyuan Huang, Zhenghai Xue, Xinrun Wang, Bo An, and Shuicheng Yan. Agentstudio: A toolkit for building general virtual agents. arXiv preprint arXiv:2403.17918, 2024b.
+Shuyan Zhou, Frank F Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Yonatan Bisk, Daniel Fried, Uri Alon, et al. Webarena: A realistic web environment for building autonomous agents. arXiv preprint arXiv:2307.13854, 2023.
+Wangjiang Zhu, Jie Hu, Gang Sun, Xudong Cao, and Yu Qiao. A key volume mining deep framework for action recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1991-1999, 2016.
+
+# Part I
+
+# Appendix
+
+# Table of Contents
+
+A Details of Dataset Construction 19
+
+A.1 Six Main GUI Categories 19
+A.2 Selected Website/Software 21
+A.3 Human Keyframes Annotation Process 22
+
+B Dataset Analysis 23
+
+C Details of Experiments Setups 24
+
+C.1 Fine-tune dataset construction 24
+C.2 Hyperparameter Settings 25
+C.3 Evaluation. 27
+
+D Additional Experiments Results 27
+E Prompts 29
+F Case Study 41
+
+Table 9: Summary of main experiments and results. Task and Scenario are two primary axes that we consider most important to show the evaluation results. The task-specific analysis shows performance across different capabilities such as image captioning, complex QA, and conversation; scenario-specific analysis evaluates performance across various application domains such as XR, iOS, etc.
+
+
Table
Objective
Category
Table 3
Comparative analysis of model performance across six GUI scenarios
Scenario-specific
Table 4
Impact of textual information incorporation on GUI understanding
Scenario-specific
Table 5
Fine-grained evaluation of free-form responses in software tasks
Task-specific
Table 6
Assessment of different keyframe selection strategies
Task-specific
Table 7
Analysis of vision input modalities and quality effects
Task-specific
Table 8
Comprehensive evaluation of GUI-VID and its components
Scenario-specific
+
+# A DETAILS OF DATASET CONSTRUCTION
+
+# A.1 SIX MAIN GUI CATEGORIES
+
+In earlier endeavors pertaining to GUI, such as those involving GUI testing (Kousar et al., 2023; Jorge et al., 2014; Kulesovs, 2015), the focus was segmented into GUIs for Website, Software, IOS and Android platforms. However, as a comprehensive GUI dataset, we include all potential GUI scenarios in our dataset to ensure that our data is the most comprehensive knowledge that the GUI agent needs to learn; we divide these scenarios into six categories:
+
+- Android. This category focuses on the GUI scenarios that occur within the Android operating system, which is predominantly used on smartphones. Android's ubiquity in the mobile market has led to a wide variety of GUI designs and interaction patterns, making it a rich field for study. This category has been the subject of extensive scrutiny in scholarly works such as (Deka et al., 2017; Li et al., 2020a; Rawles et al., 2023; Cheng et al., 2024).
+- Software. This category encapsulates the GUI scenarios arising within software applications, whether they are standalone programs or components of a larger suite. The diversity of software applications, from productivity tools to creative suites, offers a wide range of GUI scenarios for exploration. The literature is rich with research in this area, such as (Zhan et al., 2024).
+- **Website.** This category is concerned with the GUI scenarios that manifest within a web browser. Given the ubiquity of web browsing in modern digital life, this category holds significant relevance. It holds a substantial representation in academic literature, with pioneering papers such as (Deng et al., 2024; Kapoor et al., 2024) proposing excellent GUI datasets for websites.
+- IOS. This category zeroes in on the GUI scenarios that transpire within the iOS operating system, the proprietary system for Apple devices like the iPhone and iPad. The iOS platform is known for its distinct design aesthetics and interaction patterns, providing a unique context for GUI research. A number of studies, such as (Beltramelli, 2018; Yan et al., 2023) make use of GUI information in IOS.
+- Multi-Windows. This category is dedicated to GUI scenarios that necessitate simultaneous interaction with multiple windows, a common occurrence in desktop environments where users often juggle between several applications or documents. Despite the common use of multi-window interaction in everyday GUI usage, there has been relatively little research into this area (Nakajima et al., 2013). The need for efficient multitasking in such scenarios presents unique challenges and opportunities for GUI design and interaction research. As of our knowledge, there are no specific datasets catering to these multi-window GUI scenarios.
+- XR. XR encompasses Virtual Reality (VR), Augmented Reality (AR), and Mixed Reality (MR) (Rauschnabel et al., 2022). Given the advancements in XR technology and the growing accessibility of commercial-grade head-mounted displays (Apple, 2024; Met), XR has emerged as a novel medium for human-computer interaction. This necessitates the exploration of GUI within XR environments. In these scenarios, the GUI takes on a 3D, immersive form (Sanders et al., 2019), demanding the agent to comprehend and navigate a 3D space. The emerging field of XR presents a new frontier for GUI research, with unique challenges and opportunities due to its immersive and interactive nature. To date, as far as we are aware, there are no datasets that specifically address GUI in the realm of XR.
+
+```txt
+"system": "Windows",
+"app": [
+ "edge,bing,steam"
+],
+"region": "partial",
+"goal": "View the submission interface for the dataset and benchmark track of nips 2024.",
+"keyframes": [
+ "frame": 32,
+ "sub_goal": "Click to start downloading, restart downloading lethal company.",
+ "mouse": "click",
+ "keyboard": "none",
+ "keyboardOperation": ""
+},
+"frame": 176,
+"sub_goal": "Click on edge, edge returns to the top of the screen.",
+"mouse": "click",
+"keyboard": "none",
+"keyboardOperation": ""
+},
+"frame": 781,
+"sub_goal": "Click on the hyperlink for dataset and benchmark, preparing to jump.",
+"mouse": "click",
+"keyboard": "none",
+"keyboardOperation": ""
+},
+"frame": 839,
+"sub_goal": "Jump to openreview, loading.",
+"mouse": "click",
+"keyboard": "none",
+"keyboardOperation": ""
+},
+"frame": 1079,
+"sub_goal": "The webpage loaded the submission interface for dataset and benchmark track.",
+"mouse": "none",
+"keyboard": "none",
+"keyboardOperation": ""
+},
+"frame": 1131,
+"sub_goal": "Place the mouse on \\"add a submission\"",
+"mouse": "hover",
+"keyboard": "none",
+"keyboardOperation": ""
+```
+
+Figure 9: Metadata of annotation.
+
+
+(a) Website
+
+
+(b) Software
+
+
+(c) Multi
+
+
+(d) IOS
+
+
+(e) XR
+
+
+(f) Overall
+Figure 10: Detailed breakdown of each app, software, website in GUI-WORLD.
+
+# A.2 SELECTED WEBSITE/SOFTWARE
+
+In our study, we select a diverse range of websites and software to comprehensively evaluate GUI understanding capabilities across various user scenarios. These selections cover essential categories such as social media, productivity tools, online shopping, and educational platforms, providing a broad spectrum of GUI environments.
+
+Figure 10 shows an overall distribution and our selected app, software, and website in GUI-WORLD.
+
+These selections ensure that our study encompasses a wide array of user interactions and GUI complexities, thereby providing a robust evaluation of the current state-of-the-art methods in GUI understanding by MLLMs and comprehensively constructing a high-quality dataset.
+
+Table 10: Comparison of raw answer from GPT-4V and golden answer from humans.
+
+
Raw response from GPT-4V
Golden answer from humans
“Q”: “What subcategories are visible under the ‘Lifestyle’ section in the static GUI content of the video?”
“Q”: “What subcategories are visible under the ‘Lifestyle’ section in the static GUI content of the video?”
“A”: “In the ‘Lifestyle’ section of the telegram.com website, the visible subcategories are ‘Worcester Living’, ‘Faith’, and ‘Food’. These are clearly displayed in a horizontal list just below the main ‘Lifestyle’ category header, indicating different areas of content that users can explore within the lifestyle section.”
“A”: “The ‘Lifestyle’ section of the telegram.com website features visible subcategories such as ‘Worcester Living’, ‘Faith’, and ‘Food’. These are prominently shown in a horizontal list beneath the main ‘Lifestyle’ header, offering users various content areas to explore within the section.”
+
+# A.3 HUMAN KEYFRAMES ANNOTATION PROCESS
+
+Annotator's Information The annotation is conducted by 16 authors of this paper and 8 volunteers independently. As acknowledged, the diversity of annotators plays a crucial role in reducing bias and enhancing the reliability of the benchmark. These annotators have knowledge in the GUI domain, with different genders, ages, and educational backgrounds. The education backgrounds of annotators are above undergraduate. To ensure the annotators can proficiently mark the data, we provide them with detailed tutorials, teaching them how to use software to record videos or edit video clips. We also provide them with detailed criteria and task requirements in each annotation process.
+
+Recording Video. For self-recording videos, we employ OBS3 on the Windows system for screen capturing and the official screen recording toolkit on the Mac/IOS system. This process necessitates human annotators to execute a series of targeted actions within specific websites or applications, which are subsequently captured as raw video footage. We provide a list of software and website for each annotator to first get familiar with then record video that operating on them. For some popular software or website such as chrome, we ask several annotator to record video of it. These actions, commonplace in everyday usage, enhance the reliability of our dataset. Subsequently, the raw videos are segmented into sub-videos, each encapsulating multiple actions (e.g., clicking a button) to achieve a specific objective (e.g., image search). The videos are then processed to extract keyframes annotated with detailed descriptions.
+
+Edition Based on YouTube Videos. For sourcing videos from YouTube, we utilize a search protocol formatted as "[website name/application name] + tutorial" to compile relevant video lists. Human annotators first review these videos to understand the primary operations they depict. These videos are then divided into sub-videos, each containing several actions directed towards a single goal (e.g., image search). Like the self-recorded footage, these segments are processed to isolate keyframes and furnish them with descriptive annotations.
+
+Keyframes Annotation. After obtaining the GUI video clips, human annotators will filter out the keyframes of the operations based on the video content and the mouse and keyboard actions at that time. They will also label the sub-operations or targets between the two keyframes. Once the annotation is complete, the annotators will provide an overall description of the entire video, summarizing the main goal of the human operations in the video. After all the information is annotated, we will use an LLM to refine the text content, reducing any errors made by human annotators and adjusting the sentence structure. The prompt we use for the LLM to polish the human annotations is shown in Figure 11 and Figure 12.
+
+Human-LLM Cooperated Instruction Generation. To curate and refine the golden answer of each video-instruction pair generated by GPT-4V, given that the raw response from GPT-4V may contain harmful content or hallucinations. The role of humans in the golden answer generation process is to enhance the difficulty of the questions and remove harmful and incorrect content, as shown in Table 10.
+
+Human Verifying GPT-4V Annotated Captions. We evaluate the quality of annotations from GPT-4V by selecting 1,000 detailed descriptions and captions generated by GPT-4V, which are
+
+then assessed by human annotators. The high satisfaction rate of $98\%$ underscores the quality and relevance of the GPT-4V annotations.
+
+
+Figure 11: The overall preview of our annotating software.
+
+
+Figure 12: The interface for annotating a keyframe, consists of mouse action, keyboard action, and a short sub-action purpose.
+
+# B DATASET ANALYSIS
+
+In this section, we provide an analysis of the length distribution of QA in each GUI scenario, as illustrated in Figure 13 and Figure 14. Questions focused on sequential and predictional tasks are slightly longer than other types, while the golden answer of static tasks tends to be longer. Length of
+
+Table 11: Examples of diverse question types in GUI-WORLD. (T. - Type)
+
+
T.
Question
Examples
Caption
Detailed Description
Q: Please provide a detailed description of what occurs throughout these sequential GUI images.A: The video shows a user taking the 16 Personalities test on a Windows desktop using the Edge browser...
Summarized Caption
Q: Write a clear description of the video, make sure the key features are well covered.A: Creating a new IT team in Todoist by selecting industry, job function, role, team size, and inviting members.
Static
Layout, Icon Retrieval
Q: What related searches are suggested on the right side of the Bing results for 'emnlp 2024'?A: The suggested related searches shown include 'emnlp 2024 miami', 'eacl 2024 call for papers'...
Textual Retrieval
Q: What is the estimated time to complete the content for Week 2 of the course?A: The estimated time to complete the content for Week 2 of the course is 1 hour...
Interrelations in GUI Content
Q: What is the name of the browser and the tab where the user performs the product search?A: The browser is Microsoft Edge, and the user performs the product search in the eBay tab.
Dynamic
Content Retrieval
Q: What specific action does the user take after turning their head to the left to view the left side of the page?A: After turning their head to the left to view the left side of the page, the user performs...
Prediction
Q: Given the mouse is over 'Add NeurIPS 2024 DB Track Submission', what's the likely next step?A: It would be to click on the 'Add NeurIPS 2024 Datasets and Benchmarks Track Submission' button...
Sequential Reasoning
Q: scrolls down from the 'Moon Gravity', which of the following cheats? A. Change Weather B. Skyfall ...A: [[B]]
+
+Question-answer pair in various GUI scenarios is similarly distributed, with questions in Android environment being slightly shorter, and answers in XR environment being longer.
+
+
+
+
+Software
+
+
+IOS
+
+
+Website
+
+
+Multi
+
+
+XR
+
+
+Figure 13: Length distribution of free-form questions.
+
+
+Software
+Figure 14: Length distribution of answers to free-form questions.
+
+
+IOS
+
+
+Website
+
+
+Multi
+
+
+XR
+
+# C DETAILS OF EXPERIMENTS SETUPS
+
+# C.1 FINE-TUNE DATASET CONSTRUCTION
+
+We use two settings to fine-tune GUI-ViD, one with video-text pairs only, and the other with video-text and image-text pairs, which are all GUI content:
+
+- Video Only. In this setting, we only train GUI-VID with video-text pairs in GUI-WORLD, as shown in Table 12.
+- Video-Image. Inspired by the pre-trained process of Videochat2, we include image-text pairs to help the visual encoder align GUI knowledge. These images are selected from our GUI-WORLD,
+
+
+Figure 15: Statistic of different GUI scenarios in GUI-WORLD.
+
+MetaGUI (Sun et al., 2022), and OmniAct (Kapoor et al., 2024) for high-quality GUI content. Subsequently, we use GPT-4V to generate a detailed description and a concise caption for each image. Finally, we construct a dataset consisting of video-text and image-text pairs for gaining comprehensive GUI-oriented capabilities.
+
+Table 12: Video-only fine-tune dataset.
+
+
Stage
Data types
Amount
1
Detailed Description
14,276
Concise Caption
7,138
2
GUI VQA
21,414
Multiple-Choice QA
14,276
Conversation
7,138
+
+Table 13: Video-image fine-tune dataset.
+
+
Stage
Data types
Source
Type
Amount
1
GUI-WORLD
Video
Detailed Description
14,276
Image
Concise Caption
7,138
Detailed Description
5,555
Concise Caption
5,555
METAGUI
Image
Detailed Description
19,626
Concise Caption
19,626
OmniAct
Detailed Description
260
Concise Caption
260
2
GUI-WORLD
Video
GUI VQA
21,414
Multiple-Choice QA
14,276
Conversation
7,138
+
+# C.2 HYPERPARAMETER SETTINGS
+
+In this section, we will introduce the hyperparameters of MLLMs to facilitate experiment reproducibility and transparency. We divide them into three parts: the inference phase during benchmark and dataset construction, the LLM-as-a-Judge phase, and the fine-tuning phase. All our experiments were conducted on a server equipped with dual A800 and dual 4090 GPUs.
+
+Inference. We empirically study 7 MLLMs, involving 4 Image LLMs and 3 Video LLMs, with their hyperparameters detailed as follows:
+
+- GPT-4V (OpenAI, 2023) & GPT-4o (OpenAI, 2024): We set the temperature and top-p as 0.9, max-token as 2048, and both all images input are set as high quality in Instruction Dataset Construction and benchmarking.
+- Gemini-Pro-1.5 (Team et al., 2023): We use the default settings, which set temperature as 0.4, top-p as 1, and max-token as 2048. It should be noted that during our project, Gemini-Pro-1.5 is
+
+still under the user request limit, which only provides 100 requests per day, making our benchmark difficult. Given that Gemini hasn't launched Pay-as-you-go4, we will include benchmark results on 'Human' setting as soon as possible.
+
+- Qwen-VL-Max (Bai et al., 2023): We use the default settings for Qwen-VL-Max, with top-p as 0.8 and max-token as 2048. Given that the input context window is merely 6,000 for Qwen, we scale the resolution for all images to 0.3.
+- ChatUnivi (Jin et al., 2023): We use ChatUnivi-7B built upon Vicuna-v0-7B and set the max frame as 100, temperature as 0.2, and max-token as 1024.
+- Minigpt4video (Ataallah et al., 2024): We use the suggested settings for this model and the max-frame are set as 45, with only the max-token being modified to 1024.
+- VideoChat2 & GUI-VID (Li et al., 2023c): For a fair comparison, we set the same hyperparameters for VideoChat2 & GUI-VID. We set the max-token as 1024, top- $p$ as 0.9, temperature as 1.0, max-frame as 8/16, repetition penalty as 1.2, and length penalty as 1.2.
+
+LLM-as-a-Judge. We investigate four LLM-as-a-Judge in giving a similarity score for the MLLM's response and ground truth, namely GPT-4 (Achiam et al., 2023), ChatGPT (OpenAI, 2023), LLaMA-3-70b-instruct (Meta, 2023b), and Mixtral-8x22b-instruct-v0.1 (ai, 2024). Hyperparameter settings are detailed as follows:
+
+- GPT-4 & ChatGPT. We set the temperature as 0.6 and others as default.
+- LLaMA-3-70b-instruct. We set the temperature as 0.6, top-p as 0.9, top-k as 50.
+- Mixtral-8x22b-instruct-v0.1. We set top-p as 0.7, top-k as 50, and temperature as 0.7.
+
+Fine-tune. We include several hyperparameter settings in experiment settings and ablation studies, as shown in Table 14.
+
+Table 14: Configuration settings for fine-tuning.
+
+
Config
Setting
input frame
8
input resolution
224
max text length
512
input modal
I. + V.
optimizer
AdamW
optimizer momentum
β1, β2 = 0.9, 0.999
weight decay
0.02
learning rate schedule
cosine decay
learning rate
2e-5
batch size
4
warmup epochs
0.6
total epochs
3
backbone drop path
0
QFormer drop path
0.1
QFormer dropout
0.1
QFormer token
96
flip augmentation
yes
augmentation
MultiScaleCrop [0.5, 1]
+
+Table 15: Evaluating LLM-as-a-Judge as a replacement for human judging in the scoring setting.
+
+
Models
Pearson(↑)
Spearman(↑)
Kendall(↑)
$ per Benchmark(↓)
GPT-4
0.856
0.853
0.793
120$
ChatGPT
0.706
0.714
0.627
12$
Llama-3-70b-instruct
0.774
0.772
0.684
12$
Mixtral-8x22b-instruct-v0.1
0.759
0.760
0.670
15$
+
+Table 16: Performance of GUI-VID when removing data from MetaGUI and OmniAct.
+
+
Models
Software
Website
XR
Multi
IOS
Android
Avg.
MC
Free
MC
Free
MC
Free
MC
Free
MC
Free
MC
Free
MC
Free
VideoChat2
45.50%
2.144
42.60%
2.221
44.00%
2.005
40.40%
2.222
40.20%
2.169
44.70%
2.119
42.90%
2.147
GUI-VID
59.90%
2.847
54.10%
2.957
55.60%
2.764
52.90%
2.861
51.80%
2.773
53.40%
2.572
54.60%
2.796
GUI-VID (w.o. other data)
59.70%
2.811
57.30%
2.844
59.62%
2.853
50.00%
2.799
55.31%
2.769
57.67%
2.547
56.60%
2.767
+
+Table 17: GUI-VID wins more user selection in GUI-related chat assistant experiment.
+
+
Scenarios
GUI-VID
Tie
VideoChat2
Software
82.7%
13.3%
4.0%
Website
86.0%
12.0%
2.0%
XR
88.0%
8.7%
3.3%
Multi
85.3%
10.0%
8.7%
IOS
92.0%
6.0%
2.0%
Android
82.0%
16.0%
2.0%
Average
86.0%
11.0%
3.7%
+
+# C.3 EVALUATION.
+
+Given the complexity of free-form answers in GUI scenarios, the evaluation includes specific positions of GUI elements, textual content, and comparing the response to the golden answer. LLM-as-a-Judge has been widely used in previous studies for complex evaluation tasks (Zheng et al., 2023; Liu et al., 2023d). Therefore, we leverage LLM-as-a-Judge (Zheng et al., 2023) in a similar setting to MM-vet (Yu et al.), which compares the MLLM's response to the golden answer. We carefully evaluate the accessibility of leveraging LLM-as-a-Judge, selecting 1,000 samples covering 6 free-form questions mentioned in our dataset. As shown in Table 15, GPT-4 outperforms other LLMs, exhibiting a better human alignment on providing a similarity score for the response compared to the golden answer, although it is approximately 10 times more expensive than other models.
+
+# D ADDITIONAL EXPERIMENTS RESULTS
+
+Removing Data from MetaGUI and OmniAct. As shown in Table 16, after excluding OmniAct and MetaGUI from the training data, the model showed performance decreases in certain areas while demonstrating notable improvements in others. Specifically, we observed significant enhancements in MCQA tasks and XR-related capabilities. Conversely, models trained with MetaGUI and OmniAct exhibited superior performance on general free-form questions. These experimental results validate that models trained exclusively on GUI-WORLD can achieve highly competitive performance, thereby confirming the exceptional quality of our dataset.
+
+In this section, we first provide an ablation study on keyframe selection methods. Then, we conduct statistics and human preference experiments on correlations of GUI understanding capability to other mainstream GUI-related tasks. Furthermore, we provide detailed, performance on newly released models after our submission of the first version, followed by very detailed results on each task in each GUI scenario.
+
+Ablation Study on Keyframe Identify Methods. Firstly, we show performance on model-based keyframe identify methods in Table 6, with details of UVD+VIP and UVD+R3M in Tables 24 and 25.
+
+Correlation between GUI Understanding and Other Mainstream GUI Tasks. Furthermore, we conduct additional analysis and experiments to show how GUI understanding capability helps mainstream GUI-related tasks, including generating code to operate GUI (Cheng et al., 2024) and assist people through chat (Hong et al., 2024). Both demonstrate the strong correlation between GUI understanding capability and specific tasks for GUI agents.
+
+- We compare the benchmark results on GUI-WORLD with existing benchmarks (Xie et al., 2024; Qinghong Lin et al., 2024; Liu et al., 2024c) for operating on GUI as shown in Table 18, and find
+
+Table 18: Strong Correlation Between Our Benchmark (GUI Understanding) and Other GUI Agent Benchmarks.
+
+
Model
GUI-WORLD
VisualAgentBench
VideoGUI
OS-World
GPT-4o
1
1
1
2
GPT-4V
2
2
2
1
Gemini-1.5-Pro
3
3
3
3
Qwen-VL-Max
4
4
4
/
+
+Table 19: The Performance of Video-LLaVA.
+
+
Scenario
MCQA
Description
Conversation
Dynamic
Static
Caption
Average
XR
0.442
1.100
2.686
2.055
1.808
1.654
2.258
Android
0.513
1.162
2.952
1.858
1.673
1.763
2.259
IOS
0.497
1.143
2.966
1.992
1.680
1.654
2.319
Multi
0.459
1.106
2.863
2.069
1.781
1.772
2.329
Website
0.524
1.183
3.059
2.102
1.736
1.371
2.410
Software
0.529
1.241
2.942
1.958
1.657
1.519
2.290
Average
0.494
1.156
2.911
2.005
1.722
1.622
2.311
+
+that the results generally match, i.e., the stronger the understanding ability, the stronger the agent performance.
+
+- For the definition of chat helping humans, we select 180 videos from the benchmark, choosing 30 videos for each scenario. We ask 5 human annotators to pose the question they most wanted to ask after watching each video. We then use GUI-VID, both before and after fine-tuning, to answer these questions. The human annotators who ask the questions are then asked to indicate which answer is more helpful. The results are shown in Table 17, demonstrating that models trained in GUI understanding are more favored by people when acting as GUI agents.
+
+Performance of Newly Released Models in GUI-WORLD Test Set. We evaluate two latest models, LLaVA-Next-Video-7B-DPO (Liu et al., 2024a) and Video-LLaVA (Lin et al., 2023a). We show their performance in Tables 20 and 19. Our model outperforms these in most tasks, except conversation, likely due to their use of DPO during training.
+
+Performance on MV-Bench. We conducted evaluations on MVBench (Li et al., 2023c) across four models, as shown in Table 21. While our model showed some performance degradation compared to the original model, it still significantly outperformed the other two baseline models. We would like to note that the primary purpose of training GUI-ViD was to demonstrate the effectiveness of our dataset, rather than achieving state-of-the-art performance. Therefore, we did not employ the strongest baseline model or optimal training methodologies, which may have contributed to some catastrophic forgetting. However, given that GUI-ViD is specifically designed for GUI-related tasks, we believe this performance trade-off is acceptable within our research context.
+
+Performance on Mind2Web-Multimodal. We evaluated our model on the Mind2Web-Multimodal dataset (Deng et al., 2024) to demonstrate the effectiveness of fine-tuning on GUI-WORLD. Mind2Web-Multimodal is a multiple-choice GUI benchmark that assesses GUI operation capabilities, where each sample comprises an image, a task description, and response options. Our evaluation included four experimental settings: zero-shot inference using both VideoChat2 and GUI-VID, as well as versions of these models fine-tuned on Mind2Web-Multimodal. We conducted the fine-tuning process for 3 epochs. As shown in Tables 22 and 23, fine-tuning on GUI-WORLD enhances the models' GUI understanding capabilities and improves their performance on operational benchmarks.
+
+Additional Experiment Results on GUI-WORLD. For captioning tasks, Table 26 shows comprehensive experimental results among six scenarios. For scores of LLM-as-a-Judge in a specific task, see Tables 27, 28, 29, 30, and 31. For performance in fine-grain (application level), see Figure 16 for Gemini-Pro and Figure 17 for Qwen-VL-Max.
+
+Table 20: LLaVA-Next-Video-7B-DPO Performance
+
+
Scenarios
MCQA
Description
Conversation
Dynamic
Static
Caption
Average
XR
0.596
1.867
3.123
2.580
2.147
1.987
2.709
Android
0.243
1.675
3.338
2.360
1.980
2.189
2.675
IOS
0.581
1.762
3.229
2.536
2.051
2.017
2.717
Multi
0.355
1.069
2.982
2.437
1.870
2.541
2.541
Website
0.484
1.729
3.123
2.422
1.854
2.004
2.588
Software
0.569
1.762
3.220
2.448
1.868
2.149
2.641
Average
0.471
1.644
3.169
2.464
1.961
2.148
2.645
+
+Table 21: GUI-VID outperforms two mainstream Video LLMs, while slightly lagging behind VideoChat2 on MVBench.
+
+
Category
VideoChat2
GUI-VID
VideoLLaMA
VideoChatGPT
Action Prediction
47.5
39.0
25.5
26.0
Unexpected Action
60.0
57.0
39.0
26.5
Object Existence
58.0
54.0
48.0
54.0
Object Interaction
71.5
51.0
40.5
28.0
Object Shuffle
41.0
30.5
38.0
40.0
Moving Direction
23.0
21.0
22.5
23.0
Action Localization
23.0
30.5
22.5
20.0
Scene Transition
88.0
65.5
43.0
31.0
Action Count
39.5
34.5
34.0
30.5
Moving Count
42.0
29.0
22.5
25.5
Moving Attribute
58.5
53.5
32.5
39.5
State Change
44.5
41.0
45.5
48.5
Character Order
36.5
39.0
32.5
29.0
Egocentric Navigation
35.0
34.0
40.0
33.0
Episodic Reasoning
38.5
37.0
30.0
29.5
Average
47.1
41.1
34.4
32.3
+
+# E PROMPTS
+
+In this section, we provide detailed prompts for models and human annotators. Figure 19 shows the guideline of human annotation, and Figure 18 shows the prompt for leveraging LLMs to refine grammarly mistakes and polish sentence for human annotations. Figures 20, 21, and 22 present the prompt for Human-MLLM collaboration method to generate GUI-orientated tasks. Figure 23 illustrate the prompt for benchmarking MLLMs, different GUI scenarios and different QA type has different prompt. Figure 24 presents the prompt for free-form QA using LLM-as-a-Judge. Figure 25 presents the prompt for multiple-choice QA.
+
+Table 22: Performance of 4 settings in test domain subset of Mind2web-Multimodal.
+
+
Category
ZeroShot
Fine-tuned
VideoChat2
GUI-VID
VideoChat2
GUI-VID
Cooking
21.28%
23.40%
23.40%
26.24%
Education
17.61%
16.61%
24.92%
28.24%
Finance
26.02%
29.59%
26.02%
32.65%
Government
18.80%
18.28%
26.89%
27.42%
Health
17.08%
17.37%
22.58%
26.48%
Home service
19.08%
20.14%
21.55%
28.27%
Housing
12.21%
14.13%
18.20%
21.84%
Job
16.25%
18.00%
20.00%
20.25%
Moving
14.36%
17.44%
20.00%
24.62%
Pet
14.05%
17.97%
21.57%
21.24%
Shipping
13.42%
12.99%
20.78%
20.34%
Social media
22.15%
24.37%
22.78%
29.43%
Weather
27.14%
22.14%
26.43%
20.00%
Overall
17.53%
18.59%
22.37%
25.14%
+
+Table 23: Performance of 4 settings in test website subset of Mind2web-Multimodal.
+
+
Category
ZeroShot
Fine-tuned
VideoChat2
GUI-VID
VideoChat2
GUI-VID
Auto
20.00%
16.00%
19.00%
18.00%
Department
9.52%
11.90%
14.29%
16.67%
Digital
19.73%
19.73%
15.65%
20.41%
Event
34.65%
25.74%
21.78%
22.77%
General
18.32%
18.85%
17.80%
20.94%
Music
16.67%
15.66%
21.69%
24.10%
Other
17.81%
21.92%
27.40%
35.62%
Restaurant
10.70%
14.44%
17.65%
16.58%
Sports
16.98%
18.87%
20.75%
26.42%
Overall
17.94%
17.96%
18.84%
21.20%
+
+Table 24: Detailed Performance of GPT-4o using UVD+ViP Keyframe Identification Method.
+
+
Scenario
MCQA
Description
Conversation
Dynamic
Static
Caption
Average
Software
86.2%
3.297
4.282
3.354
3.478
4.112
3.749
Website
82.0%
3.248
4.155
3.415
3.567
4.074
3.744
XR
84.2%
2.980
3.775
3.034
3.122
3.587
3.347
Multi
82.1%
3.391
4.165
3.466
3.404
3.868
3.659
IOS
86.0%
3.157
4.017
3.353
3.492
4.050
3.648
Mobile
80.7%
2.827
3.871
2.970
3.014
3.844
3.340
Average
83.5%
3.150
4.044
3.265
3.346
3.923
3.581
+
+Table 25: Detailed Performance of GPT-4o using UVD+R3M Keyframe Identification Method.
+
+
Scenario
MCQA
Description
Conversation
Dynamic
Static
Caption
Average
Software
85.8%
3.290
4.273
3.352
3.458
4.134
3.741
Website
82.7%
3.282
4.114
3.460
3.591
4.065
3.746
XR
87.7%
3.010
3.861
3.142
3.161
3.600
3.433
Multi
83.6%
3.237
4.129
3.503
3.417
3.897
3.737
IOS
86.4%
3.165
4.094
3.328
3.480
4.078
3.663
Android
80.6%
2.835
3.876
2.968
3.072
3.865
3.353
Average
84.5%
3.136
4.058
3.292
3.363
3.940
3.612
+
+Table 26: Scores of Caption (Cap.) and Description (Des.) tasks in six GUI scenarios.
+
+
Models
Setting
Software
Website
XR
Multi
IOS
Android
Avg.
Cap.
Des.
Cap.
Des.
Cap.
Des.
Cap.
Des.
Cap.
Des.
Cap.
Des.
Cap.
Des.
Gemini-Pro-1.5
R.
3.659
2.837
3.613
2.860
2.995
2.590
3.276
2.470
3.678
2.936
-
-
3.444
2.739
E.
3.350
2.468
3.159
2.422
2.837
2.279
2.824
2.109
3.394
2.519
3.185
2.312
3.125
2.351
Qwen-VL-Max
R.
2.381
1.758
2.326
1.681
2.172
1.772
2.035
1.463
2.513
1.662
2.141
1.565
2.261
1.650
E.
2.459
1.693
2.317
1.599
2.167
1.638
2.190
1.438
2.189
1.615
2.002
1.429
2.221
1.569
H.
2.474
1.711
2.457
1.698
2.383
1.777
1.910
1.346
2.577
1.795
2.474
1.711
2.360
1.665
GPT-4V
R.
3.579
2.676
3.612
2.699
2.975
2.525
3.281
2.661
3.757
2.775
3.655
2.755
3.479
2.682
E.
3.141
2.301
3.293
2.380
2.471
2.085
3.063
2.324
3.624
2.611
3.201
2.312
3.132
2.335
H.
3.352
2.509
3.702
2.750
3.050
3.556
3.524
2.673
3.670
2.588
-
-
3.460
2.614
GPT-4o
H.
4.048
3.028
4.067
3.233
3.398
2.729
3.869
3.111
4.014
2.993
4.071
3.095
3.911
3.869
ChatUnivi
-
1.587
1.240
1.569
1.254
1.417
1.148
1.575
1.267
1.480
1.146
1.778
1.249
1.568
1.217
Minigpt4Video
-
1.246
1.073
1.200
1.057
1.320
1.106
1.130
1.034
1.190
1.076
1.184
1.061
1.212
1.068
VideoChat2
-
1.992
1.312
1.817
1.307
1.838
1.426
2.222
1.433
2.169
1.270
2.119
1.294
1.900
1.340
GUI-VID
-
3.562
2.085
3.655
2.167
3.747
2.153
3.370
1.742
3.566
2.071
2.662
1.248
3.427
1.911
+
+Table 27: Detailed scores for each tasks in Website scenarios.
+
+
Models
Setting
Static
Sequential
Prediction
Conversation1
Conversation2
Average
Gemini-Pro-1.5
R.
3.279
3.050
3.560
3.579
3.796
3.452
E.
2.983
2.491
3.432
3.405
3.760
3.215
Qwen-VL-Max
R.
2.317
2.271
2.802
2.995
3.069
2.656
E.
2.256
2.198
2.821
2.861
3.144
2.627
H.
2.308
2.078
2.832
3.061
3.358
2.698
GPT-4V
R.
3.461
3.214
3.754
3.778
4.029
3.648
E.
3.197
2.808
3.487
3.717
3.954
3.433
H.
3.498
3.255
3.727
3.731
4.061
3.655
C.C.
1.746
2.738
3.645
3.363
3.632
3.025
D.C.
2.704
2.917
3.686
3.680
3.901
3.380
H.+D.C.
3.313
3.221
3.852
3.850
4.171
3.682
GPT-4o
H.
3.443
3.373
3.672
4.086
4.122
3.740
ChatUnivi
-
1.701
1.668
2.524
2.514
3.338
2.349
Minigpt4Video
-
1.309
1.233
1.766
1.439
1.854
1.520
VideoChat2
-
1.771
1.777
2.288
2.461
2.812
2.221
GUI-VID
-
2.406
2.341
3.544
3.135
3.355
2.957
+
+Table 28: Detailed scores for each tasks in XR scenarios.
+
+
Models
Setting
Static
Sequential
Prediction
Conversation1
Conversation2
Average
Gemini-Pro-1.5
R.
2.892
2.505
3.543
3.222
3.611
3.154
E.
2.814
2.163
3.510
3.108
3.455
3.006
Qwen-VL-Max
R.
2.047
1.968
2.712
2.879
3.132
2.469
E.
2.125
1.973
2.658
2.760
3.029
2.499
H.
1.886
1.920
2.656
2.727
3.012
2.373
GPT-4V
R.
2.934
2.668
3.392
3.291
3.714
3.200
E.
2.222
2.153
3.310
3.151
3.618
2.892
H.
2.893
2.778
3.538
3.364
3.747
3.265
C.C.
1.744
2.412
3.327
3.080
3.485
2.809
D.C.
2.427
2.409
3.518
3.176
3.749
3.056
H.+D.C.
2.775
2.635
3.580
3.235
3.734
3.191
GPT-4o
H.
2.871
2.745
3.370
3.596
3.836
3.285
ChatUnivi
-
1.660
1.420
2.205
2.250
3.270
2.161
Minigpt4Video
-
1.225
1.161
1.610
1.347
1.465
1.362
VideoChat2
-
1.654
1.547
2.192
2.099
2.529
2.005
GUI-VID
-
2.444
2.147
3.347
2.836
3.036
2.764
+
+Table 29: Detailed scores for each tasks in Multi-windows scenarios.
+
+
Models
Setting
Static
Sequential
Prediction
Conversation1
Conversation2
Average
Gemini-Pro-1.5
R.
2.538
2.410
3.296
3.152
3.402
2.959
E.
2.545
2.049
2.972
2.930
3.389
2.777
Qwen-VL-Max
R.
1.793
1.872
2.770
2.897
3.122
2.432
E.
1.866
1.780
2.730
2.627
3.105
2.362
H.
1.884
1.969
2.913
2.689
3.104
2.490
GPT-4V
R.
3.185
2.655
3.745
3.699
3.973
3.452
E.
2.902
2.406
3.636
3.420
3.729
3.219
H.
3.000
2.952
3.801
3.597
3.889
3.449
C.C.
2.097
2.973
3.774
3.331
3.621
3.160
D.C.
2.671
2.979
3.849
3.466
3.822
3.358
H.+D.C.
3.037
3.162
4.079
3.748
4.036
3.617
GPT-4o
H.
3.108
3.106
3.829
4.043
4.188
3.654
ChatUnivi
-
1.658
1.623
2.514
2.384
3.199
2.275
Minigpt4Video
-
1.205
1.186
1.690
1.400
1.801
1.457
VideoChat2
-
1.754
1.774
2.479
2.420
2.699
2.222
GUI-VID
-
2.485
2.067
3.537
2.954
3.247
2.861
+
+Table 30: Detailed scores for each tasks in IOS scenarios.
+
+
Models
Setting
Static
Sequential
Prediction
Conversation1
Conversation2
Average
Gemini-Pro-1.5
R.
3.076
2.637
3.370
3.366
3.615
3.213
E.
2.852
2.356
3.137
3.126
3.566
3.007
Qwen-VL-Max
R.
2.438
2.244
2.923
3.102
3.273
2.779
E.
2.303
2.150
2.614
3.145
3.264
2.659
H.
1.884
1.969
2.913
2.689
3.104
2.490
GPT-4V
R.
3.364
3.080
3.684
3.766
4.184
3.614
E.
3.209
2.774
3.545
3.611
4.006
3.427
H.
3.107
2.830
3.631
3.680
4.011
3.453
C.C.
1.788
2.291
3.511
3.212
3.542
2.868
D.C.
2.751
2.732
3.654
3.642
3.842
3.324
H.+D.C.
3.090
2.965
3.740
3.786
3.994
3.516
GPT-4o
H.
3.183
2.993
3.460
4.050
4.141
3.558
ChatUnivi
-
1.771
1.642
2.408
2.559
3.307
2.337
Minigpt4Video
-
1.291
1.219
1.698
1.556
1.737
1.501
VideoChat2
-
1.955
1.803
2.145
2.315
2.626
2.169
GUI-VID
-
2.262
2.133
3.401
2.843
3.224
2.773
+
+Table 31: Detailed scores for each tasks in Android scenarios.
+
+
Models
Setting
Static
Sequential
Prediction
Conversation1
Conversation2
Average
Gemini-Pro-1.5
E.
2.703
2.460
3.157
3.642
3.881
3.168
Qwen-VL-Max
R.
1.887
1.804
2.398
2.823
3.056
2.309
E.
1.785
1.630
2.311
2.605
3.233
2.277
GPT-4V
R.
3.116
3.047
3.477
3.924
4.008
3.515
E.
2.705
2.470
3.175
3.647
3.885
3.176
C.C.
2.092
2.243
3.139
3.443
3.782
2.939
D.C.
3.015
2.890
3.357
3.883
3.990
3.427
GPT-4o
H.
3.057
3.220
3.373
3.981
4.186
3.561
ChatUnivi
-
1.835
1.654
2.317
2.712
3.433
2.390
Minigpt4Video
-
1.183
1.159
1.507
1.342
1.521
1.342
VideoChat2
-
1.732
1.754
2.125
2.340
2.645
2.119
GUI-VID
-
2.010
1.928
3.053
2.755
3.105
2.572
+
+
+Figure 16: Fine-grained performance of Gemini-Pro-1.5 in each software and website.
+
+
+Figure 17: Fine-grained performance of Qwen-VL-Max in each software and website.
+
+# Refining Human Annotation on Goal and Sub-goal
+
+As an expert in English, please refine the following English instructions (or objectives) into a polished phrase or a concise sentence.
+
+Avoid including irrelevant content and provide the polished output directly.
+
+Here is the English sentence: $\{\mathrm{string}\}$
+
+Figure 18: Refining Human Annotation on Goal and Sub-goal.
+
+# Guideline for Human Annotation
+
+# Main Interface
+
+1. Video List Panel (Left Panel): Displays a list of loaded video files. Each video file is shown with its name for identification.
+2. Video Display Area (Center Panel): Shows the currently selected video for playback and annotation.
+3. Control Settings (Right Panel): Operating System: Select the operating system of the machine where the video was recorded.
+
+Full Screen: Toggle full screen mode for the video display.
+Multi-application?: Indicate if multiple applications in the video.
+Application/Website: Enter the name of the application or website being used in the video.
+
+User Goal: Enter the goal of the user performing the annotation.
+
+4.Playback and Annotation Controls (Bottom Panel)
+
+Annotate: Open a annotation window to add a new keyframe annotation.
+
+Play: Starts or pauses the video playback.
+
+Load Video: Allows you to load a single video file.
+
+Load Video Folder: Allows to load multiple video files from a folder.
+
+Previous Video / Next Video: Navigate through the loaded video files.
+
+Save to JSON: Save the annotations in a JSON format.
+
+# Annotation Window
+
+1. Mouse Action: Select a type of mouse action (e.g. click, drag).
+2. Keyboard Action: Select the type of keyboard action (e.g., typing, key press).
+3. Keyboard Operation Record: Enter details of the keyboard operation, if any.
+4. sub-action Purpose: Describe the purpose of the action being annotated.
+
+# How to Use
+
+# Loading Videos
+
+1. Load Multiple Videos
+
+Click on the Load Video Folder button.
+
+Select the folder containing your video files.
+
+All video files in the folder will be loaded and listed in the Video List Panel.
+
+# Playing Videos
+
+Select a video from the Video List Panel. Click the Play button to start or pause the video.
+
+# Annotating Videos
+
+1. Start Annotation
+
+Pause the video at the desired frame.
+
+Click the Annotate button to open the annotation window.
+
+2. Annotation Window
+
+Select the Mouse Action Type and Keyboard Action Type from the dropdown menus.
+
+If there is a keyboard action, enter the details in the Keyboard Operation Record field.
+
+Describe the action's purpose in the Sub-action Purpose field.
+
+Click OK to save the annotation.
+
+# Saving Annotations
+
+Once all annotations are completed, click the Save to JSON button.
+
+Figure 19: Guideline for Human Annotation.
+
+# (Part 1) GPT-4V Generating GUI-oriented Tasks
+
+You are an AI visual assistant. This is a video of a mobile GUI, which I've divided into multiple frames and sent to you. Please provide a detailed description of what occurs throughout the entire video, focusing on the changes in the GUI elements or scenes rather than static aspects of a single frame. The detailed description should be placed under the key 'Description'. Based on your description, please design the following tasks:
+
+Generate a precise caption for the video. This caption should encapsulate the main activities or changes observed throughout the video sequence. Place this caption under the key 'Caption'.
+
+Create a free-form QA question related to the video's static GUI content, along with its answer. The question should delve into the details or changes in the static GUI elements or scenes captured in the video. The QA task should be nested under the key Static QA, with 'Question' and 'Answer' as subkeys.
+
+Develop a multiple-choice QA question about the video, with four options: one correct answer and three incorrect or irrelevant options. This task should assess the understanding of specific elements retrieval or changes depicted in the video. Structure this task under the key MCQA, with 'Question' detailing the query, 'Options' listing the four choices including one correct answer, and 'Correct Answer' specifying the correct option, denoted, for example, as $\{[[B]]\}$ .
+
+Here are some key information of the video to help you understand the video comprehensively:
+
+System: {item['system']}
+
+Application: {item['app']}
+
+Summary of the video: {item['goal']}
+
+Key Operation/Sub goal in the video: \{[i['sub-goal'] for i in item['keyframes']]\}
+
+Notice: Ensure that the questions you design for these tasks are answerable and the answers can be deduced from the GUI video content. The answerable question should be designed as difficult as possible. The tasks should be unambiguous and the answers must be definitively correct based on your understanding of the video content. Only include questions that have definite answers: (1) one can see the content in the image that the question asks about and can answer confidently; (2) one can determine confidently from the image that it is not in the image. Do not ask any question that cannot be answered confidently.
+
+Each of these tasks should focus on the dynamic aspect of the GUI elements or scenes. Provide detailed answers when answering complex questions. For example, give detailed examples or reasoning steps to make the content more convincing and well-organized. The answers should be in a tone that a visual AI assistant is seeing the image and answering the question.
+
+For the free-form QA tasks, please ensure that the answers are as detailed and lengthy as possible, with no concern for length.
+
+You can include multiple paragraphs if necessary to provide a comprehensive and thorough response. Please structure your response using JSON format and specific keys mentioned in the task requirements.
+
+Figure 20: (Part 1) GPT-4V Generating GUI-oriented Tasks.
+
+# (Part 2) GPT-4V Generating GUI-oriented Tasks.
+
+You are an AI visual assistant. This is a video of a GUI, which I've divided into multiple frames and sent to you. Please provide a detailed description of what occurs throughout the entire video, focusing on the changes in the GUI elements or scenes rather than static aspects of a single frame. The detailed description should be placed under the key 'Description'. Based on your description, please design the following tasks:
+
+A Sequential QA task: Design a question that requires understanding the sequence of GUI element changes or scene transformations in the video. The question should be free-form and necessitate the use of temporal information from the sequential images. The task should be structured under the key Sequential-QA with subkeys 'Question' and 'Answer'.
+
+A Next Stage Prediction task: Formulate a question that asks about the subsequent state or event following a certain frame in the video. The question should be designed in a free-form manner and predict future GUI elements or scene changes, structured under the key Prediction with subkeys 'Question' and 'Answer'.
+
+A two-round dialogue task: Create a dialogue with two rounds of interaction. The first round includes a user instruction and an assistant response, and the second round's user instruction should be based on the response from the first round. Both rounds should be free-form and nested under the key Conversation, with subkeys 'User 1', 'Assistant 1', 'User 2', and 'Assistant 2'.
+
+A reasoning task: Design a multi-choice QA task that requires reasoning to identify the correct answer from four options. This task should test the reasoning ability to infer or deduce information that is not explicitly provided. It should be structured under the key Reasoning, with subkeys 'Question', 'Options', and 'Correct Answer'. Here are some key information of the video to help you understand the video comprehensively: System: {item['system']} Application: {item['app']} Summary of the video: {item['goal']} Key Operation/Sub goal in the video: {{i['sub-goal']} for i in item['keyframes']}
+
+Figure 21: (Part 2) GPT-4V Generating GUI-oriented Tasks.
+
+# (Part 3) GPT-4V Generating GUI-oriented Tasks.
+
+Notice: Ensure that the questions you design for these tasks are answerable and the answers can be deduced from the GUI video content. The answerable question should be designed as difficult as possible. The tasks should be unambiguous and the answers must be definitively correct based on your understanding of the video content. Only include questions that have definite answers: (1) one can see the content in the image that the question asks about and can answer confidently; (2) one can determine confidently from the image that it is not in the image. Do not ask any question that cannot be answered confidently.
+
+Each of these tasks should focus on the dynamic aspect of the GUI elements or scenes, with each answerable task as difficult as possible. Provide detailed answers when answering complex questions. For example, give detailed examples or reasoning steps to make the content more convincing and well-organized. The answers should be in a tone that a visual AI assistant is seeing the image and answering the question.
+
+For the free-form QA tasks, please ensure that the answers are as detailed and lengthy as possible, with no concern for length. You can include multiple paragraphs if necessary to provide a comprehensive and thorough response. Please structure your response using JSON format and specific keys mentioned in the task requirements.
+
+Figure 22: (Part 3) GPT-4V Generating GUI-oriented Tasks.
+
+# Prompts for Benchmarking MLLMs
+
+"XR": "You are an AI visual assistant. Here are sequential images of Mixed-Reality combining GUI interface and real world, which are selected from a GUI video".
+
+"software": "You are an AI visual assistant. Here are sequential GUI interface images of a specific software, which are selected from a GUI video".
+
+"website": "You are an AI visual assistant. Here are sequential GUI interface images of a desktop website, which are selected from a GUI video".
+
+"mobile": "You are an AI visual assistant. Here are sequential GUI mobile interface images, which are selected from a GUI video."
+
+"multi": "You are an AI visual assistant. Here are sequential GUI interface images of interaction among multiple softwares and websites, which are selected from a GUI video.",
+
+"IOS": "You are an AI visual assistant. Here are sequential GUI IOS interface images, which are selected from a GUI video.",
+
+"Sequential-QA": "This is a question about sequential information in sequential images."
+
+"Prediction": "This is a question about predicting the next action base on the previous actions in the sequential images.",
+
+"Reasoning": "This is a multiple choice question with only one correct answer. This question may need multiple steps of reasoning according to the vision information in sequential images".
+
+"Description 1": "Please give me a detail description of these sequential images."
+
+"Description 2": "Offer a thorough analysis of these sequential images",
+
+"Caption": "Please give me a concise caption of these sequential images."
+
+"static QA": "This is a question about static information such as text, icon, layout in these sequential images."
+
+"MCQA": "This is a multiple choice question with only one correct answer. This question may require sequential analysis ability to the vision information in these sequential images."
+
+"Conversation 1": "Act as an assistant to answer the user's question in these sequential images."
+
+"Conversation 2": "This is a multi-turn conversation task. You will be provide the first round conversation and act as an assistant to answer the user's question in the second round according to these sequential images."
+
+Notice = "You can first provide an overall description of these sequential images, and then analyze the user's question according to the sequential images and description. Finally, give an answer based on this description and the image information. Please format your output in a JSON format, with key 'Description' for the description of these sequential images, key 'Analysis' for your analysis on the user's question and key 'Answer' for your answer to the User's question."
+
+Figure 23: Prompts for Benchmarking MLLMs.
+
+# Prompt for LLM-as-a-Judge: Judging Free-form and Conversational Tasks
+
+You are an impartial judge. I will provide you with a question, a 'gold standard' answer, and a response that needs evaluation. Your task is to assess the quality of the response in comparison to the 'gold standard' answer. Please adhere to the following guidelines:
+
+1. Start your evaluation by comparing the response to the 'gold standard' answer. Offer a brief explanation highlighting similarities and differences, focusing on relevance, accuracy, depth, and level of detail.
+2. Conclude your evaluation with a score from 1 to 5, where 1 indicates the response is mostly irrelevant to the 'gold standard' answer, and 5 indicates it is very similar or equivalent.
+3. Present your findings in JSON format, using 'Evaluation' for your textual analysis and 'Score' for the numerical assessment.
+4. Ensure objectivity in your evaluation. Avoid biases and strive for an even distribution of scores across the spectrum of quality. Your scoring must be as rigorous as possible and adhere to the following rules:
+- Overall, the higher the quality of the model's response, the higher the score, with factual accuracy and meeting user needs being the most critical dimensions. These two factors largely dictate the final composite score.
+- If the model's response is irrelevant to the question, contains fundamental factual errors, or generates harmful content, the total score must be 1.
+- If the model's response has no severe errors and is essentially harmless, but of low quality and does not meet user needs, the total score should be 2.
+- If the model's response generally meets user requirements but performs poorly in certain aspects with medium quality, the total score should be 3.
+- If the model's response is close in quality to the reference answer and performs well in all dimensions, the total score should be 4.
+- Only when the model's response surpasses the reference answer, fully addresses the user's problem and all needs, and nearly achieves a perfect score in all dimensions, can it receive a score between 5.
+- As an example, the golden answer could receive a 4-5.
+
+```txt
+Here is the response for you to judge:
+Question: {question}
+Golden Answer: {golden_answer}
+Response: {response}
+Now, directly output your response in json format.
+```
+
+Figure 24: Prompt for LLM-as-a-Judge: Judging Free-form and Conversational Tasks.
+
+# Prompt for LLM-as-a-Judge: Judging Multiple-Choice QA Tasks
+
+You are a helpful assistant tasked with judging a Multiple Choice Question Answering exercise.
+
+I will provide a correct answer with only one option, and a response that requires evaluation.
+
+If the response matches the correct answer, simply output "Yes"; If it does not, output "No".
+
+Please avoid including any irrelevant information.
+
+Here are some examples:
+
+Example 1:
+
+Question: Based on the GUI video, why might the 'Loading' animation continue without reaching the next stage? A. The user has not yet entered their login credentials. B. There is a system update being installed. C. The server is taking time to authenticate the login credentials. D. The 'Log In' button is malfunctioning.
+
+Answer: C
+
+Response: C. The server is taking time to authenticate the login credentials.
+
+Output: Yes
+
+Example 2:
+
+Question: If the user wants to resume the group video call after checking messages, what action should they take? A. Turn their head to the right. B. Close the messaging app interface. C. Say a voice command to switch applications. D.
+
+Turn their head to the left.
+
+Answer: A
+
+Response: B
+
+Output: No
+
+Example 3:
+
+Question: What action does the user take to start playing music in the video? A. Closed the music player application B.
+
+Moved the music player to a new position C. Clicked the play button D. Adjusted the system volume
+
+Answer: [[B]]
+
+Response: C
+
+Output: No
+
+Here is the question, answer, and response for you to judge:
+
+Question: {question}
+
+Answer: {answer}
+
+Response: {response}
+
+Now, directly output "Yes" or "No".
+
+Figure 25: Prompt for LLM-as-a-Judge: Judging Multiple-Choice QA Tasks.
+
+# F CASE STUDY
+
+In this section, we provide detailed case studies for six GUI scenarios, each divided into two parts. The following examples show human-annotated frames and various tasks associated with them:
+
+- Android: Figures 26 and 27.
+- IOS: Figures 28 and 29.
+- Multiple-windows Interaction: Figures 30 and 31.
+- Website: Figures 34 and 35.
+- XR: Figures 36 and 37.
+- Software: Figures 32 and 33.
+
+# (Part 1) Android
+
+
+Figure 26: Case study for Android (part 1).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Description1: "The video starts with a view of a mobile app interface, specifically an Al-Qur'an Indonesia app with a list of Surahs. A user scrolls through the Surah list, selects a specific Surah, and the view transitions to a page displaying the verses in Arabic and their Indonesian translation. The user then returns to the Surah list. Following this, a pop-up appears indicating a configuration process that takes approximately 10-20 seconds. After the configuration, another pop-up notifies of an available update from the Google Play Store, which the user can accept or postpone. The user dismisses this pop-up. The main menu is accessed, showing options such as 'Baca Quran', 'Terakhir Baca', 'Pencarian', 'Jadwal Sholat', and 'Pengaturan'. The user selects the 'Pencarian' option, which leads to a search page. Here, the user is instructed to enter a keyword to search in the translation database. Finally, the user navigates back to the main menu and then to the Surah list once more."
+
+Sequential-QA: 'Question': 'After selecting a specific Surah from the list, what does the user do next before a pop-up notification appears?'
+
+'Answer': 'After selecting a Surah, the user views the verses in Arabic and their Indonesian translation. Then, the user returns to the Surah list before a pop-up notification appears.'
+
+Prediction: 'Question': 'What would likely be the next step in the app interface after the user is directed to the search page?'
+
+'Answer': "After being directed to the search page, the likely next step would be for the user to enter a keyword into the search bar to find a translation or meaning within the app's database."
+
+Conversation: 'User 1': 'I need to find a specific verse in the Quran. How do I search for it?'
+
+'Assistant 1': "You can search for a specific verse by tapping on the 'Pencarian' option in the main menu, which will take you to a search page where you can enter a keyword."
+
+'User 2': 'I see. And how do I get back to the main menu from the search page?'
+
+'Assistant 2': 'To return to the main menu from the search page, you can tap on the back arrow located at the top left corner of the screen.'
+
+Reasoning: 'Question': "If the user wants to read the verses of Surah 'Al-Infitar', what should they do after launching the app?"
+
+Options': ["A. Go to the settings and select 'Al-Infitar'.", "B. Scroll through the Surah list and select 'Al-Infitar'.", "C. Choose the 'Pencarian' option and type 'Al-Infitar'.", "D. Wait for a pop-up and select 'Al-Infitar' from there."]
+
+'Correct Answer': "B. Scroll through the Surah list and select 'Al-Infitar'."
+
+# (Part 2) Android
+
+
+Figure 27: Case study for Android (part 2).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Description2: "The video begins by displaying a mobile GUI with a list of chapters from the Quran in Indonesian. Each chapter has a downward arrow suggesting expandable content. As the video progresses, a popup appears with a loading icon and a message in Indonesian indicating a configuration is in progress, which takes about 10-20 seconds. After this, another popup appears notifying of a new update available on the Google Play Store with options to update or postpone. Subsequently, the screen shows a search interface where users can input keywords for searching within the Quran's translated database. The main menu is then accessed, with options such as 'Read Quran', 'Last Read', 'Search', 'Prayer Schedule', and 'Settings'. The GUI transitions back to the list of chapters, and a specific chapter, At-Takwir, is selected. The video then displays the verses of this chapter, both in Arabic and Indonesian translation, with an option to listen to the audio. Finally, it navigates back to the list of chapters."
+
+Caption: "Navigating through a Quran app's GUI, interacting with chapter lists, update notifications, search function, and viewing specific verses with translations."
+
+Static QA: 'Question': 'What options are available in the main menu of the mobile Quran application?'
+
+'Answer': "The main menu of the mobile Quran application provides several options for the user to choose from. These include 'BACA QURAN' (Read Quran) for accessing the chapters to read, 'TERAKHIR BACA' (Last Read) to resume reading from where the user left off last time, 'PENCARIAN' (Search) to search the Quran's database for specific keywords, 'JADWAL SHOLAT' (Prayer Schedule) to check the prayer times, and 'PENGATURAN' (Settings) to modify app settings. This menu provides a simple and efficient way for users to navigate through the app's features and customize their reading and learning experience."
+
+MCQA: 'Question': 'What happens after the user is notified about the new update available on the Google Play Store?' 'Options': 'A': 'The app closes automatically.', 'B': 'The search interface is displayed.', 'C': 'The list of chapters disappears.', 'D': 'An advertisement for shopping deals is shown.'
+
+'Correct Answer': '[B] The search interface is displayed.'
+
+# (Part 1) IOS
+
+
+Figure 28: Case study for IOS (part 1).
+
+Description1: "The video demonstrates a user navigating through the Khan Academy mobile application under the 'Computing' category. Initially, the user scrolls through the 'Computers and the Internet' section, viewing topics such as 'Digital information,' 'Bits and bytes,' 'The Internet,' and 'Online data security.' The user then scrolls to the bottom, revealing the 'Computing innovations' section and the 'Take Course Challenge' button. Subsequently, the user returns to the previous screen, displaying other computing sections like 'AP®/College Computer Science Principles' and 'Computer science theory.' The user clicks to enter the 'Computer science theory' interface; the content is loading. After the content has loaded, revealing topics like 'Cryptography' and 'Information theory,' the user returns to the previous page and clicks on 'Code.org.'
+
+Caption: "Navigating through computing courses on Khan Academy's mobile application, viewing sections, and attempting to enter 'Computer science theory.'"
+
+Static QA: 'Question': "Which topic appears directly below 'Online data security' in the 'Computers and the Internet' section before scrolling down?"
+
+'Answer': "Before scrolling down, the topic that appears directly below 'Online data security' is 'Computing innovations.' This can be confirmed from the initial frames of the video where the 'Computing innovations' section is partially visible, indicating that it is the next topic in the sequence after 'Online data security.' As the video progresses and the user scrolls down, the full 'Computing innovations' section comes into view, affirming its position in the GUI layout."
+
+MCQA: 'Question': "What action does the user take after viewing the 'Computing innovations' section?"
+
+'Options': ["A) Scrlls up to view 'Digital information' again.", "B) Returns to the previous screen showing different computing sections.", "C) Clicks on the 'Take Course Challenge' button.", "D) Taps on the 'Explore' tab at the bottom of the screen."]
+
+'Correct Answer': '[B] Returns to the previous screen showing different computing sections.'
+
+# (Part 2) IOS
+
+
+Figure 29: Case study for IOS (part 2).
+
+Description2: "The video begins with the user viewing the 'Computers and the Internet' course section within the Khan Academy application. The user scrolls through various subsections such as 'Digital information,' 'Computers,' 'The Internet,' and 'Online data security,' each with a list of topics and a status of possible mastery points. The user continues to scroll down to the 'Computing innovations' section and then further down to a 'Course challenge' prompt. The user then scrolls back up, revealing previously seen sections in reverse order. The user eventually navigates back to the main 'Computing' category screen, showing an overview of all computing-related courses. From there, the user selects 'Computer science theory,' which briefly loads before displaying topics within that course such as 'Cryptography' and 'Information theory.' Following this, the user returns to the main 'Computing' category screen."
+
+Sequential-QA: 'Question': "What action does the user take after scrolling through the 'Online data security' section, and what is displayed as a result of this action?", 'Answer': "After scrolling through the 'Online data security' section, the user scrolls down to the 'Computing innovations' section. As a result of this action, topics such as 'Communication innovations', 'Collaboration innovations', 'Crowdsourcing innovations', and 'Monitoring innovations' are displayed, followed by a 'Course challenge' prompt."
+
+Prediction: 'Question': "If the user were to select the 'Cryptography' section after it was displayed, what kind of content could you predict will be shown next?"
+
+'Answer': "If the user selects the 'Cryptography' section, one could predict that the next content shown would be detailed topics under Cryptography, such as 'Ancient cryptography,' 'Ciphers,'
+
+'Cryptography challenge 101,' 'Modern cryptography,' 'Modular arithmetic,' 'Primality test,' and
+
+'Randomized algorithms,' along with the status of possible mastery points for that section."
+
+Conversation: 'User 1': 'Can you take me to the section about user authentication methods?'
+
+'Assistant 1': "Sure, you will need to scroll down the 'Computers and the Internet' course section until you reach the 'Online data security' subsection, where you will find the topic 'User authentication methods.'"
+
+'User 2': "I scrolled too far down and reached the course challenge. How do I find 'User authentication methods' from here?"
+
+'Assistant 2': "No problem, you'll need to scroll back up past the 'Computing innovations' section until you see the 'Online data security' subsection again. 'User authentication methods' is listed there among other topics."
+
+Reasoning: 'Question': "After browsing through the course topics in 'Computers and the Internet,' the user returns to a broader category view. Based on this behavior, what could be the reason for the user returning to the broader category view?"
+
+'Options': ['A. The user wants to take a course challenge.', 'B. The user is looking for a different computing-related course.', 'C. The application automatically redirected the user.', 'D. The user intends to log out of the Khan Academy application.']
+
+'Correct Answer': 'B'
+
+# (Part 1) Multiple-Windows Interaction
+
+
+Figure 30: Case study for multiple-windows interaction (part 1).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Description1: "The video begins with a Windows desktop displaying multiple open applications, including Steam, OBS Studio, and a web browser with NVIDIA's website loaded. The user starts by clicking on the back page of the browser, which partially obscures the OBS window. Then, the user clicks on the OBS application, bringing it to the forefront. The user minimizes OBS, followed by dragging the Steam window to the center of the screen and minimizing it as well. A new web page is opened in the Edge browser's navigation bar, and the user types 'office' into the search bar. The browser navigates to the Bing search interface, and 'office' is successfully searched."
+
+Caption: 'Navigating and Managing Multiple Applications on Windows Including Steam, OBS Studio, and Edge Browser' Static QA: 'Question': "Which web browser is used in the video and which website is prominently featured before the search for 'office'?"
+
+'Answer': "The web browser used in the video is Microsoft Edge. The prominently featured website before the search for 'office' is NVIDIA's official website where the Download Drivers' page is displayed."
+
+MCQA: 'Question': 'What action is taken after the OBS application is minimized?', 'Options': ['A. The Steam window is closed.'
+
+'B. The Steam window is moved to the center of the screen and minimized.', 'C. The Edge browser is closed.', 'D. A file is opened from the desktop.']
+
+'Correct Answer': '[B] The Steam window is moved to the center of the screen and minimized.'
+
+# (Part 2) Multiple-Windows Interaction
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+'Description2': "The video shows a Windows desktop with several application windows open, including Steam, OBS, and Edge. Initially, the OBS window is partially covering the Edge browser. The user clicks on the Edge browser, bringing it to the foreground, and then minimizes the OBS window, clearing the view. Next, the user moves the Steam window to the center of the screen and minimizes it as well. Afterward, the user opens a new tab in Edge and enters 'office' into the search bar, which leads to a Bing search results page for 'office'. The video ends with the user on the Bing search page with 'office' results displayed."
+
+Sequential-QA: 'Question': 'After moving the Steam window to the center, what did the user do next in the Edge browser?'
+
+'Answer': "After moving the Steam window to the center, the user minimized the Steam application. Then, they opened a new tab in the Edge browser and entered 'office' into the search bar, which led them to the Bing search results page for 'office'."
+
+Prediction: 'Question': "What would be the likely next action the user performs after searching for 'office' on Bing?"
+
+'Answer': "The likely next action the user would perform after searching for 'office' on Bing would be to click on one of the search results to find more information or to visit the Microsoft Office website to purchase or learn more about the office suite."
+
+Conversation: 'User 1': 'Can you minimize the OBS application for a better view of the browser?'
+
+'Assistant 1': 'Certainly, the OBS application has been minimized, providing a clear view of the Edge browser.'
+
+'User 2': 'Great, now can you search for Microsoft Office in the Edge browser?'
+
+'Assistant 2': "Of course, a new tab has been opened in the Edge browser and 'office' has been entered into the search bar. The Bing search results for 'office' are now displayed."
+
+Reasoning: 'Question': 'If the user needs to record gameplay footage next, which application should they interact with and what would be their first step?'
+
+'Options': ["A. They should open the Steam application and click on the 'STORE' tab.", "B. They should open the Edge browser and search for 'game recording software'.", "C. They should reopen the OBS application and click on the 'Start Recording' button.", "D. They should access the Windows Start menu and search for the 'Camera' app."]
+
+'Correct Answer': 'C'
+
+Figure 31: Case study for multiple-windows interaction (part 2).
+
+# (Part 1) Software
+
+
+Figure 32: Case study for software (part 1).
+
+
+
+
+
+Description1: "The video shows a Python 3.7.4 Shell window on a Windows system. The user begins by typing the 'print' function followed by a pair of parentheses. Inside the parentheses, the user types a string, 'Hello World', which is enclosed in double quotes. Upon pressing Enter, the Python Shell executes the command and outputs the text 'Hello World' below the command line, indicating that the code ran successfully without any errors."
+
+Caption: "Executing the print command in Python Shell to display 'Hello World' "
+
+Static QA: "Question": "What version of Python is shown running in the video?"
+
+"Answer": "The version of Python running in the video is Python 3.7.4, as indicated by the text at the top of the Python Shell window."
+
+MCQA: "Question": "What operation does the user perform after typing the print command?"
+
+"Options": ["A. The user saves the file.", "B. The user compiles the code.", "C. The user executes the print command.", "D. The user closes the Python Shell.']
+
+"Correct Answer": "[C]] The user executes the print command."
+
+# (Part 2) Software
+
+
+Figure 33: Case study for software (part 2).
+
+
+
+
+
+
+
+
+
+Descrip
+
+tion2: "The video shows a sequence of a user interacting with the Python Shell on a Windows system. Initially, the shell is open and waiting for input. The user begins by typing 'print' and then corrects the typo by removing the asterisk, typing 'print'. They then type two quotation marks to prepare for a string input. Subsequently, the user moves the cursor between the quotation marks and types 'Hello World' to complete the 'print(Hello World)' command. After pressing enter, the shell executes the command, and the phrase 'Hello World' is outputted below the command prompt."
+
+Sequential-QA: "Question": "Can you describe the sequence of actions the user took to correct the command and output 'Hello World'?"
+
+"Answer": "Certainly. Initially, the user typed 'print*' but realized the asterisk was a mistake. They deleted the asterisk to correct the command to 'print'. Next, they entered two quotation marks to indicate the start of a string. The user then placed the cursor between the quotation marks and typed the string 'Hello World'. Finally, upon pressing enter, the Python Shell executed the command and displayed the output 'Hello World' beneath the command prompt."
+
+Prediction: "Question": "What would be the expected GUI change if the user were to type another command after the 'Hello World' output?"
+
+"Answer": "If the user were to type another command after the 'Hello World' output, the expected GUI change would be that the command prompt indicator '\>>>' would appear on a new line below the 'Hello World' output, signaling readiness for the next command input. Any subsequent command typed by the user would appear after this new prompt, awaiting execution."
+
+Conversation: "User 1": "I want to print a different message in Python. How can I do that?",
+
+"Assistant 1": "To print a different message, you can simply type 'print(Your Message Here)' where 'Your Message Here' is the text you wish to print. Make sure you enclose your message in quotation marks and hit enter to execute the command."
+
+"User 2": "What if I want to print 'Goodbye, World' instead?"
+
+"Assistant 2": "To print 'Goodbye, World', you would type 'print(Goodbye, World)' and press enter. The Python Shell will execute the command and display 'Goodbye, World' as the output below the command prompt."
+
+Reasoning: "Question": "What command did the user execute to get the output in the Python Shell?"
+
+"Options": ["A. print(Hello World)", "B. print(Hello World)", "C. print(Hello World)", "D. echo(Hello World)""]
+
+"Correct Answer": "C",
+
+# (Part 1) Website
+
+
+Figure 34: Case study for website (part 1).
+
+
+
+
+
+'De
+
+scription1: "The video begins with the Google search results page visible on a Windows system browser, displaying the query 'is oatmeal a healthy breakfast'. The mouse cursor scrolls down the page, revealing additional search results, and the 'People also ask' section with related questions. The user then scrolls back up to the top of the page. Next, the cursor moves to the search bar, and the 'X' button is clicked to clear the previous search content, leaving an empty search bar. The browser's suggested searches drop-down menu appears with various related search queries. Finally, the video fades to black, indicating the end of the sequence."
+
+Caption: 'Navigating Google Search Results and Clearing the Search Query on a Windows System Browser'
+
+Static QA: 'Question': "What feature snippet is displayed at the top of the Google search results for the query 'is oatmeal a healthy breakfast'?"
+
+'Answer': "The featured snippet at the top of the Google search results for the query 'is oatmeal a healthy breakfast' is from the Harvard T.H. Chan School of Public Health website. It includes an excerpt stating 'Whether it's steel-cut or rolled, quick-cooking or instant, oatmeal is good for you, experts say|with a few caveats. Oatmeal is rich in fiber, which promotes fullness, eases the insulin response, and benefits gut health. It's also a source of vitamins B and E, and minerals such as magnesium.' This snippet provides a concise summary of the health benefits of oatmeal, according to experts, highlighting its nutritional value and potential impact on fullness and insulin response. The presence of this snippet offers a quick and authoritative answer to the user's query, showcasing Google's ability to extract relevant information from web pages and present it prominently for ease of access."
+
+MCQA: 'Question': 'What action did the user take after reviewing the search results?'
+
+'Options': ['A. The user clicked on one of the search results.', "B. The user scrolled through the 'People also ask' section.", 'C. The user cleared the search content in the search bar.', 'D. The user navigated to a different website.']
+
+'Correct Answer': '[C] The user cleared the search content in the search bar.'
+
+# (Part 2) Website
+
+
+Figure 35: Case study for website (part 2).
+
+
+
+
+
+scription2: "The video shows a sequence of actions on a Google search results page within a web browser on a Windows system. Initially, the mouse cursor moves over a search result discussing the health benefits of oatmeal. Next, the user scrolls down, revealing a 'People also ask' section with questions related to oatmeal and a 'Videos' section showcasing related content. Subsequently, the user scrolls back up to the original position, highlighting the same search result about oatmeal's health benefits. Finally, the user moves the cursor to the search bar and clicks the 'X' to clear the previous search content, resulting in a blank search bar with suggestions and related searches listed below it. The screen then goes black, indicating the end of the video."
+
+Sequential-QA: 'Question': "After reading about oatmeal's health benefits, what section of the page did the user explore next and did they return to read more about the health benefits afterward?" 'Answer': "After reading about the health benefits of oatmeal, the user scrolled down to explore the 'People also ask' section and the 'Videos' section related to oatmeal. Following this, the user scrolled back up to revisit the original search result that discussed the health benefits of oatmeal."
+
+Prediction: 'Question': 'Based on the sequence of events, what action is the user likely to perform after clearing the search bar?' 'Answer': 'After clearing the search bar, the user is likely to type in a new search query or select one of the suggested searches that appear below the search bar.'
+
+Conversation: 'User 1': "I want to find more articles on oatmeal's health benefits. Can you scroll back up?" Assistant 1': "I've scrolled back up and the article on oatmeal's health benefits from the Harvard T.H. Chan School of Public Health is highlighted again."
+
+'User 2': 'Great, now can you clear the search and look for something else?'
+
+'Assistant 2': 'The search content has been cleared, and the search bar is now empty, showing a list of related searches and previous search history suggestions for a new query.'
+
+'Reasoning': 'Question': 'If the user wants to perform a new search after clearing the search bar, which of the following actions would they need to take next?', 'Options': ['A. Scroll down to view more search results'
+
+'B. Type a new query into the search bar', "C. Click on one of the 'People also ask' questions", 'D. Close the browser window'] 'Correct Answer': 'B',
+
+# (Part 1) XR
+
+
+Figure 36: Case study for XR (part 1).
+
+
+
+
+
+
+
+
+
+
+
+scription1: "The video showcases a user navigating through various pages within the Apple Vision Pro browser on a Windows system. Initially, the browser displays the start page with Favorites and Reading List. The user then turns their head to the right, which triggers the transition to view a webpage on the right side. Following this, the user pinches with both hands to exit the page and then pinches with both hands and fingers moving towards the middle to expand the browser's various pages. This reveals multiple open browser tabs side by side. The user continues to turn their head left and right to view different pages on each side. Lastly, the user selects and expands a specific tab to fill the screen, displaying its content."
+
+Caption: 'Navigating through multiple browser pages using head movement and hand gestures in Apple Vision Pro on Windows'
+
+Static QA: 'Question': "What is the main category listed under the Favorites section on the browser's start page?"
+
+'Answer': "The main category listed under the Favorites section on the browser's start page is 'Perplexity', denoted by a unique icon, followed by other favorites like Instagram and various websites."
+
+MCQA: 'Question': 'How does the user switch between different open tabs in the Apple Vision Pro browser?'
+
+'Options': ['A. Using keyboard shortcuts', 'B. Turning their head left and right', 'C. Scrolling with a mouse', 'D. Typing the tab number']
+
+'Correct Answer': '[B] Turning their head left and right'
+
+# (Part 2) XR
+
+
+Figure 37: Case study for XR (part 2).
+
+
+
+
+
+Description2: "The video starts with a full-screen view of a browser interface titled 'Apple Vision Pro' displaying various website thumbnails and bookmarks. The user then turns their head to the right, causing the right side of the browser to come into view. Next, the user looks at a dot at the bottom of the page and pinches with both hands, which causes the browser to exit the full-screen view and shrink to a smaller, windowed mode. The user then performs a pinching motion with both hands, bringing the fingers towards the middle, which causes the browser's various pages to expand, giving an overview of multiple open tabs. The user again turns their head to the right to view the right side page and then to the left to view the left side page. Throughout the video, the GUI elements such as tabs, the address bar, and website thumbnails respond dynamically to the user's head movements and hand gestures."
+
+Sequential-QA: 'Question': 'What action did the user take immediately after turning their head to the right to view the right side page?'
+
+'Answer': 'After turning their head to the right to view the right side page, the user looked at a dot at the bottom of the page and pinched with both hands, which caused the browser to exit full-screen mode and shrink to a smaller windowed interface.'
+
+Prediction: 'Question': 'If the user pinches with both hands and moves their fingers towards the middle after the browser shrinks to a smaller window, what will happen next?'
+
+'Answer': "If the user pinches with both hands and moves their fingers towards the middle after the browser shrinks, the action will cause the browser's various pages to expand, providing an overview of multiple open tabs."
+
+Conversation: 'User 1': 'How do I view all the pages I have open in the browser?'
+
+'Assistant 1': 'You can view all the open pages by pinching with both hands and moving your fingers towards the middle. This will expand the browser and show an overview of all the open tabs.'
+
+'User 2': 'Great, and how can I exit this overview?'
+
+'Assistant 2': 'To exit the overview of open pages, you can look at the dot at the bottom of the page and pinch with both hands. This will exit the overview and return you to the individual page view.'
+
+Reasoning: 'Question': 'How can the user access the options to open a new tab or window from the current state?'
+
+'Options': ['A. Turn their head to the left and select the plus sign.', 'B. Swipe left on the touchpad.', 'C. Turn their head to the right and select the 'Done' button.', 'D. Pinch with both hands to exit the current view and access the toolbar.']
+
+'Correct Answer': 'D'
\ No newline at end of file
diff --git a/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/images.zip b/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..c7563f17bd34bc569989292c07f18b69314eb243
--- /dev/null
+++ b/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d1580540e7623840337af87a2ded9288a15431af0bf6eb9959e06c9eda897040
+size 3137089
diff --git a/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/layout.json b/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..1e7a866cfc6b0742f907879f8c0b31510f3732ba
--- /dev/null
+++ b/ICLR/2025/GUI-World_ A Video Benchmark and Dataset for Multimodal GUI-oriented Understanding/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:483166b6aae7babe1e2ec769584bdd70fdbb68dd0cc2f94dfd47842fe4e2a771
+size 1330750
diff --git a/ICLR/2025/GameArena_ Evaluating LLM Reasoning through Live Computer Games/ba925fdc-7d41-4c5d-af76-7302ce16e379_content_list.json b/ICLR/2025/GameArena_ Evaluating LLM Reasoning through Live Computer Games/ba925fdc-7d41-4c5d-af76-7302ce16e379_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..18ca0dbdface412eaf7ab05290833b28c7c0156a
--- /dev/null
+++ b/ICLR/2025/GameArena_ Evaluating LLM Reasoning through Live Computer Games/ba925fdc-7d41-4c5d-af76-7302ce16e379_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7c87bb0ce94b7f4a2803e6c67500cbeceb8111d771b9bf65372d76895521afcb
+size 202163
diff --git a/ICLR/2025/GameArena_ Evaluating LLM Reasoning through Live Computer Games/ba925fdc-7d41-4c5d-af76-7302ce16e379_model.json b/ICLR/2025/GameArena_ Evaluating LLM Reasoning through Live Computer Games/ba925fdc-7d41-4c5d-af76-7302ce16e379_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..e54522dcdad637350606047c3ef0d25ce8b0d994
--- /dev/null
+++ b/ICLR/2025/GameArena_ Evaluating LLM Reasoning through Live Computer Games/ba925fdc-7d41-4c5d-af76-7302ce16e379_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7e984c3bf8e25c692e5a4fbf40d64877b308790463ded9d629df41c80fdd2171
+size 246983
diff --git a/ICLR/2025/GameArena_ Evaluating LLM Reasoning through Live Computer Games/ba925fdc-7d41-4c5d-af76-7302ce16e379_origin.pdf b/ICLR/2025/GameArena_ Evaluating LLM Reasoning through Live Computer Games/ba925fdc-7d41-4c5d-af76-7302ce16e379_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..9b3c44d76fe1b2c548bebf0948ebaae8dbea8dbd
--- /dev/null
+++ b/ICLR/2025/GameArena_ Evaluating LLM Reasoning through Live Computer Games/ba925fdc-7d41-4c5d-af76-7302ce16e379_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f90384c5bd3b58ae554d88bed4326567b43af8c6efa2f9a186334a8dc6570813
+size 1366158
diff --git a/ICLR/2025/GameArena_ Evaluating LLM Reasoning through Live Computer Games/full.md b/ICLR/2025/GameArena_ Evaluating LLM Reasoning through Live Computer Games/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..94849043f19a245ef7076b0e29c0cf686b2d10d1
--- /dev/null
+++ b/ICLR/2025/GameArena_ Evaluating LLM Reasoning through Live Computer Games/full.md
@@ -0,0 +1,942 @@
+# GAMEAREA: EVALUATING LLM REASONING THROUGH LIVE COMPUTER GAMES
+
+Lanxiang Hu\*1, Qiyu Li\*1, Anze Xie\*1, Nan Jiang1, Ion Stoica2, Haojian Jin\*1, Hao Zhang\*1
+
+1University of California, San Diego
+
+$^{2}$ University of California, Berkeley
+
+# ABSTRACT
+
+Evaluating the reasoning abilities of large language models (LLMs) is challenging. Existing benchmarks often depend on static datasets, which are vulnerable to data contamination and may get saturated over time, or on binary live human feedback that conflates reasoning with other abilities. As the most prominent dynamic benchmark, Chatbot Arena evaluates open-ended questions in real-world settings, but lacks the granularity in assessing specific reasoning capabilities. We introduce GameArena, a dynamic benchmark designed to evaluate LLM reasoning capabilities through interactive gameplay with humans. GameArena consists of three games designed to test specific reasoning capabilities (e.g., deductive and inductive reasoning), while keeping participants entertained and engaged. We analyze the gaming data retrospectively to uncover the underlying reasoning processes of LLMs and measure their fine-grained reasoning capabilities. We collect over 2000 game sessions and provide detailed assessments of various reasoning capabilities for five state-of-the-art LLMs. Our user study with 100 participants suggests that GameArena improves user engagement compared to Chatbot Arena. For the first time, GameArena enables the collection of step-by-step LLM reasoning data in the wild. Our code is available at https://github.com/lmgame-org.
+
+# 1 INTRODUCTION
+
+Recent large language models (LLMs) (e.g., OpenAI's o1 model) have made great strides in performing complex reasoning (OpenAI, 2024a; Luo et al., 2024; Ye et al., 2024a;b; Lightman et al., 2023), but evaluating LLM reasoning capabilities remains challenging. Current methods typically use curated test suites of coding and math problems to assess different reasoning skills (Hao et al., 2024; bench authors, 2023; Cobbe et al., 2021). However, these static benchmarks are vulnerable to data contamination issues (Sainz et al., 2023; Rajore et al., 2024) and can quickly become saturated (Kiela et al., 2021; Perlitz et al., 2024), limiting their effectiveness.
+
+Researchers have been exploring alternative dynamic evaluation approaches. The most prominent attempt is Chatbot Arena (Chiang et al., 2024), a crowdsourced platform that asks users to input arbitrary prompts and compare the responses generated by two different models, producing overall ranking scores based on pairwise comparisons. Nevertheless, these ranking scores may not accurately reflect the models' reasoning capabilities, as they depend on human preferences that can be confounded by various factors. For example, Li et al. (2024) found that response style has a strong effect on the leaderboard performance since humans usually favor detailed and "beautiful" responses, which do not relate to reasoning abilities. Additionally, Chatbot Arena could not assess specific reasoning capabilities such as inductive and deductive reasoning, due to its reliance on open-ended user input and lack of control over the reasoning skills required for the prompts.
+
+We introduce GameArena, a novel dynamic benchmark suite designed to evaluate LLM reasoning through three interactive games with humans. GameArena leverages live human-AI interactions to prevent benchmark saturation. In contrast to Chatbot Arena, GameArena confines the human-AI interactions using designated gaming rules, allowing for better control of the interactions toward
+
+testing LLM's fine-grained reasoning capabilities, including deductive, inductive, abductive, and multi-hop reasoning (Huang & Chang, 2023; Seel, 2011). Additionally, embedding evaluation tasks into games enables a more engaging and enjoyable experience for users, encouraging sustained participation in the evaluation process.
+
+Designing effective games for evaluating LLM reasoning is challenging because they need to provide high-quality reasoning data while keeping gameplay engaging for human players. Therefore, instead of creating entirely new games, we integrate LLMs into existing games, i.e., Akinator, Taboo, and Bluffing, that are fun and require complex reasoning through multi-turn conversations. In these games, the LLM attempts to deduce or extract specific information by synthesizing human responses over multiple rounds, which requires nuanced reasoning capabilities beyond simple natural language processing. For example, in the Akinator game, the LLM asks a series of binary questions to guess the object the human player is thinking of. To win the game, the LLM must demonstrate strong deductive reasoning by analyzing players' responses and narrowing down possibilities to derive the correct object.
+
+In addition to the game outcome, the interaction process also provides rich evaluative potential. During gameplay, the LLM develops a step-by-step reasoning trajectory intrinsically, with each round's decision or action serving as a data point that can be analyzed to assess its reasoning capabilities. To uncover the LLM's hidden reasoning process, we retrospectively analyze the gaming data by asking the LLM to reveal its intermediary thought process at each step.
+
+We evaluated five state-of-the-art LLMs with GameArena. To reduce potential prompt bias, we developed five optimized system prompts using DSPy (Khattab et al., 2024) and randomly selected one for each game session. We collected more than 2000 game sessions and analyzed the data to score each LLM based on capability-specific evaluation metrics. We found Claude 3.5 Sonnet outperformed GPT-4o in most evaluation metrics for reasoning. Mistral-large fell short in most reasoning capabilities and often failed to follow game rules and make predictions on game secrets in all three games.
+
+We conducted comparative studies between GameArena and Chatbot Arena. GameArena was found to be more effective in data collection, with over $85\%$ of game sessions from GameArena containing useful data for evaluating LLM reasoning. In contrast, only less than $5\%$ of conversation sessions from Chatbot Arena yielded meaningful votes for LLM evaluation. Our user study with 100 participants suggested that users preferred evaluating LLMs through games, were more satisfied with the experience, and showed greater interest in participation in GameArena compared to Chatbot Arena.
+
+In this paper, we make the following contributions:
+
+- We build GameArena, the first dynamic benchmark for evaluating specific LLM reasoning capabilities using games that collect human-labeled step-by-step reasoning data.
+- We introduce a new set of data analysis techniques to evaluate LLM reasoning capabilities while controlling variables like system prompt and style variances.
+- We demonstrate the effectiveness of GameArena in comparison with existing baselines when evaluating different capabilities.
+- We will release our gaming data for future research.
+
+# 2 GAMES IN GAMEAREA
+
+GameArena aims to evaluate LLM reasoning capabilities through live games with humans while keeping participants entertained and engaged. GameArena consists of three games, Akinator, Taboo, and Bluffing. For each game, we instruct the LLM to interact with humans according to the game rules. Since these games are designed to require strong reasoning skills, the game performance of LLMs reflects their reasoning capabilities. We first explain the games and how they are associated with LLM reasoning capabilities, followed by a formal formulation of the game workflow.
+
+# 2.1 GAME DESIGN
+
+AI Akinator game (Fig. 1) follows the same rule of the online Akinator game (Akinator, 2024). An LLM attempts to determine what object the player is thinking of by asking up to 20 yes or no
+
+questions. The goal of the LLM is to guess the answer correctly with the fewest number of questions possible. We provide a detailed description of game rules in Appendix A.1.1.
+
+This game presents a controlled setting with a limited number of guesses to evaluate the LLM's deductive and multi-hop reasoning skills. Deductive reasoning (Creswell et al., 2022; Han et al., 2022; Saparov & He, 2023) involves drawing a specific conclusion from a chain of prior premises. In this game, each factual question-answer pair, from general descriptions to specific details, serves as a premise to narrow down possible options. All the premises logically lead to the most probable secret object the user has in mind. Multi-hop reasoning (Yang et al., 2018; Ho et al., 2020) entails connecting multiple pieces of information or reasoning steps to solve a problem. In the Akinator game, the LLMs must employ multi-hop reasoning to synthesize and connect information from multiple rounds. A strong LLM uses multi-hop reasoning to ask insightful questions based on prior knowledge and employs deductive reasoning to quickly narrow down possibilities for each answer.
+
+
+
+Think of an object in your mind. The LLM can ask up to 20 question to guess it.
+
+
+
+
+
+Question 1: Is it bigger than a sandbox?
+
+YES
+
+
+
+
+
+Question 2: Is it alive?
+
+NO
+
+
+
+
+
+Question 7: Is it used for sitting?
+
+YES
+
+
+Figure 2: In the Taboo game, a player has a taboo word that they need to prompt the LLM to say without revealing what the word is.
+
+
+Figure 1: In the Akinator game, a player thinks of an object, and the LLM asks a series of yes-or-no questions to guess the object.
+
+Guess: Are you thinking of a chair?
+
+CORRECT!
+
+
+
+
+
+Your task is to ask the LLM questions that make it includes the target word in its response but fails to guess it correctly.
+
+Your target word is "dairy"
+
+
+
+
+
+What are foods that should be part of a child's diet?
+
+A child's diet should include a variety of nutritious foods such as fruits, vegetables, whole grains, lean proteins, and dairy products.
+
+
+
+
+
+The target word has been uttered. Now make a guess of the secret word.
+
+My guess of the word is: diet. Incorrect! The Player Wins!
+
+
+
+AI Taboo game (Fig. 2). The goal of the human player is to prompt the LLM with questions that will lead the model to say the target word, even though the LLM has been instructed to guess the word and avoid uttering it in its response. We describe the game rules in Appendix A.1.2.
+
+This game evaluates LLM's abductive and multi-hop reasoning skills. Abductive reasoning (Jung et al., 2022; Seel, 2011) involves generating a possible explanation from incomplete information. Throughout the game, the player discloses fragmented and ambiguous information related to the secret word, and the LLM needs to reason the most possible target word based on the limited clues. In rare cases, the LLM's response may directly include the target word, allowing it to guess correctly in the next round. However, most cases require complex reasoning. Strong LLMs use multi-hop reasoning to extract clues from previous prompts and apply abductive reasoning to infer the most likely target word. A detailed example is provided in Appendix E.3.
+
+AI Bluffing game (Fig. 3). The human player aims to convince an LLM model that they are making a true statement. The LLM can ask a player at most five questions to determine whether the player is lying. The rule of the Bluffing game is outlined in Appendix A.1.3.
+
+This game challenges LLMs to detect deception by proposing strategic questions and identifying subtle flaws in the responses of human players using inductive and multi-hop reasoning. Inductive reasoning (Misra et al., 2022; Yang et al., 2022) involves making predictions or drawing conclusions based on a set of observations, where observations are typically empirical and not guaranteed to be true. In this game, the LLM observes multiple question-answer pairs to make a final prediction about the truthfulness of the user's statement. Ideally, a good LLM utilizes multi-hop reasoning to connect clues from existing information, develop effective questioning strategies that maximize information gain and apply inductive reasoning to draw a well-informed conclusion.
+
+# 2.2 GAME FORMULATION
+
+In GameArena, each game session starts with randomly pairing a game $\mathcal{G}$ with a state-of-the-art LLM $f_{k}$ parameterized by $\Theta_{k}$ from a list of candidate models $\{f_k\}$ and one of the candidi
+
+
+
+Make a statement and try to convince an LLM that your statement is true.
+
+Statement: I have been to space.
+
+
+
+Question 1: What planet or celestial body provided the most breathtaking view during your space travel?
+
+I just saw the earth and came back.
+
+
+
+Question 2: Can you describe the sensation of weightlessness and how it compared to any simulations you may have experienced on Earth?
+
+It was crazy - everything was floating in the air, and I felt extremely light.
+
+
+Figure 3: In the Bluffing game, the player makes a statement and responds to a series of questions from the LLM as if the statement is true, trying to trick the LLM into believing it.
+
+Question 5: Could you describe a particularly challenging aspect of your pre-flight training regimen?
+
+I had to sit in a spinny thing with really strong g force.
+
+
+
+I believe your statement is: False because ....
+
+CORRECT!
+
+date system prompts be $\mathbf{x}_{k,p}$ . Let the maximum round limit for $\mathcal{G}$ be $N$ , the ground truth be $\mathbf{g}$ . For each turn $i$ , let $\mathbf{x}_i$ be user's input, $f_{k}$ 's generation at each time step $t$ can be denoted as $\mathbf{y}_{i,t} = f_{k}\left([ \mathbf{x}_{k,p}, \mathbf{x}_{1}, \mathbf{y}_{1}, \dots, \mathbf{x}_{i}, \mathbf{y}_{i,[1:t-1]}; \Theta_{k} \right)$ . We denote the complete output of length $T$ is $\mathbf{y}_i = \mathbf{y}_{i,[1:T]}$ . For each $\mathbf{y}_i$ , there are two possible output types. The first one is an ordinary question or answer in response to user's input to advance the gaming process. The other is a game secret prediction which requires the model to either guess the target word in Akinator and Taboo, or make a prediction on the user statement's truthfulness. We denote the first type as $\mathbf{y}_i$ and the second type as $\mathbf{p}_i$ . The game ends whenever the maximum round limit is reached or the user verifies $\mathbf{p}_i = \mathbf{g}$ . A winner can therefore be decided.
+
+# 3 EVALUATING LLM REASONING THROUGH GAMES
+
+# 3.1 RETROSPECTIVE ANALYSIS
+
+In order to reveal the model's intermediate thought process throughout the game session and assess various reasoning capabilities demonstrated by the model's hidden chain-of-thought (Wei et al., 2022), we conduct a retrospective analysis based on the chat history we collect from the game sessions. To reenact the game trajectory and capture the model's hidden thoughts during the game sessions, we first keep the system prompt, game history, and inference parameters identical to those used during the original gameplay. Then, we prompt the model to generate intermediate outputs, and conduct quantitative and qualitative analysis based on those outputs.
+
+Akinator. The goal of Akinator's retrospective analysis is to assess the model's multi-hop reasoning and deductive reasoning capabilities (Yang et al., 2018; Creswell et al., 2022). After each question-answer round, the model is asked to generate a ranked list of possible objects from its hidden thoughts during the gameplay. The object list prioritizes those it considers most likely based on its reasoning process. For each game session, we then inspect the ranked object lists from all rounds to determine whether the secret object has been correctly identified and its position in the rankings.
+
+Taboo. The retrospective analysis of Taboo aims to evaluate the model's multi-hop reasoning and abductive reasoning capabilities (Yang et al., 2018; Jung et al., 2022). Similar to Akinator, the model is prompted to generate a list of possible target words based on all previous game history after each user prompt. The list of possible words is ranked from the most to least likely by the model.
+
+Bluffing. The Bluffing game's retrospective analysis aims to reflect the model's multi-hop reasoning and inductive reasoning capabilities (Yang et al., 2018; Misra et al., 2022). After the user's statement and each question-answer round, the model is queried to predict the truthfulness of the statement based on the existing game history. For each prediction, the model selects from five possible choices: 1) True, 2) Possibly true, 3) Unknown, 4) Possibly false, or 5) False, and the model always starts from a neutral position with "Unknown" as its default choice. The intermediate predictions reveal the
+
+model's reasoning process and allows us to assess not only its ability to draw correct conclusions but also its capacity to ask strategic questions that consistently advance the game.
+
+# 3.2 EVALUATION METRICS
+
+# 3.2.1 OUTCOME METRICS
+
+An intuitive set of metrics from our gaming data is the gaming outcome. In Akinator and Bluffing, users provide feedback on whether the model made a correct guess, which determines the winner. In Taboo, a ruled-based keyword detection mechanism is used in Taboo to check whether the user has violated the game rules or the model has lost by saying the word. For each game, we track the average number of rounds and the winning rate by calculating $\sum_{i}r_{i} / N_{\mathcal{G}}$ and $\sum_{i}I_{i} / N_{\mathcal{G}}$ , where $N_{\mathcal{G}}$ is the total number of game sessions for game $\mathcal{G}$ , $r_i$ is the number of gaming rounds for each game session, and $I_{i}\in \{0,1\}$ is a binary indicator function of whether the LLM won that session.
+
+# 3.2.2 PROCEDURAL METRICS
+
+In retrospective analysis, for any turn $i$ , as long as $\mathbf{y}_i \neq \mathbf{g}$ , we obtain intermediate results by fixing all the game history $[\mathbf{x}_{k,p},\mathbf{x}_1,\mathbf{y}_1,\dots ,\mathbf{x}_i,\mathbf{y}_i]$ , and ask the model to justify its response $\mathbf{y}_i$ or $\mathbf{p}_i$ using quantifiable data, such as an object list or a truthfulness rank. Consider the justification as $\mathbf{y}_i'$ , we iterate over each game session to collect step-by-step reasoning data $[\mathbf{y}_1',\dots ,\mathbf{y}_N']$ , from where procedural metrics will be calculated for quantitative evaluations and rankings in Table 3.
+
+We developed several metrics to evaluate each reasoning capability (Table 1) based on the model's intermediate outputs from retrospective analysis. Below, we describe how these metrics are mapped to each reasoning capability and how they are computed.
+
+Akinator. Recall rate, top-k recall rate, and disparity ratio reflect the model's multi-hop reasoning capability in Akinator. The recall rate metrics determine how well the model utilizes preceding information by measuring how often the correct object appears in object lists retrieved for each game session during retrospective analysis. In each game session, recall rate represents the proportion of model-proposed object lists that contain the correct object. Top-5 recall rate and top-10 recall rate represent the proportion of object lists where the rank of the correct object is within the top 5 and 10 positions. Higher recall rates imply higher utilization of preceding information, indicating better multi-hop reasoning skills.
+
+Multi-hop reasoning is also reflected through the question quality in Akinator. We use disparity ratio to assess the information gain of a question. In Akinator, high-quality questions should divide the possibilities evenly into two halves (Sasson & Kenett, 2023). Thus, we compute the disparity ratio based on how evenly a model-generated yes/no question can divide the object list proposed one round prior into two categories. Evenly divided object lists have a lower disparity ratio, suggesting higher information gain.
+
+$$
+\text {d i s p a r i t y} = \frac {\left| \operatorname {s i z e} _ {\text {y e s}} - \operatorname {s i z e} _ {\text {n o}} \right|}{\operatorname {s i z e} _ {\text {o b j e c t l i s t}}} \tag {1}
+$$
+
+We use average first appear round and average final rank as indicators for model's deductive capability in Akinator game sessions. Average first appear round refers to the average round number in which the model adds the correct object into the object list. Average final rank is the rank of the correct object in the object list proposed after the last round of conversation. Lower average first appear round means the model is able to draw conclusion on the correct object with less premise. Lower average final rank shows more confidence on the model's choice of correct object. These two metrics both reflect the model's efficiency on deductive reasoning.
+
+Taboo. In the Taboo game, we use recall rates to assess the model's multi-hop reasoning skill. The definition and implication of the recall rates here are the same as those used in the Akinator game. We apply the same formulas on the word lists retrieved from retrospective analysis to compute the recall rates for Taboo game sessions.
+
+Abductive reasoning skill is reflected by the metric of average first appear round and average final rank in Taboo game. Average first appear round is the average round number in which the model adds the correct word into the word list. A lower average first appear round means the model can efficiently find the correct word based on less interaction with users. Average final rank is the rank
+
+of the correct word in the word list proposed after the last round of conversation. A low average final rank implies that the model is more confident with its choice of the correct word. Both metrics indicate the model's abductive reasoning skill.
+
+Table 1: The procedural analysis metrics for the Akinator, Taboo, and Bluffing games and their corresponding model capabilities.
+
+
Akinator
Deductive reasoning
+first appear round avg, final rank
Multi-hop reasoning
+recall rate, top-k recall rate, disparity ratio
Taboo
Abductive reasoning
+first appear round avg, final rank
+
+Bluffing. In the Bluffing game, we use recall rate and consistency rate to evaluate the model's multi-hop reasoning capability. recall rate measures how often the model correctly predicts the truthfulness of the user's statement. consistency rate measures whether consecutive predictions consistently move the game forward in the same logical direction, demonstrating the model's ability to build upon previous information and ask strategic questions. We use two metrics, the Spearman's coefficient (Sedgwick, 2014) and the hopping penalty score to measure consistency rate.
+
+Spearman's rank correlation measures the correlation between the round numbers and the "distance" of judgement from the ground truth. At each round, we rank the five retrospective predictions $\mathbf{y}_i'$ as $j_i \in [1,5]$ , corresponding to the 5-level spectrum spanning from "True" to "False". For each game session, Let $D_i$ be the absolute distance between the intermediate prediction and since the ground truth's rank is $g \in [1,5]$ , we can write the expression in Eq. 2. A negative Spearman's correlation suggests that as rounds progress, the distance between the assistant's judgments and the ground truth decreases and the model's prediction gets consistently more accurate.
+
+$$
+\rho = 1 - \frac {6}{N \left(N ^ {2} - 1\right)} \sum_ {i = 1} ^ {N} d _ {i} ^ {2}, \quad d _ {i} = i - D _ {i}, \quad D _ {i} = \left| j _ {i} - g \right| \tag {2}
+$$
+
+The hopping penalty measures how inconsistent the model's predictions are across consecutive rounds. The smaller the metric is, the better the model is at making consistent progress toward its final prediction, demonstrating stability in questioning strategy and unpredictability in its results. The formula is shown in Eq. 3.
+
+$$
+\text {h o p p i n g} = \frac {1}{N - 1} \sum_ {i = 1} ^ {N - 1} \left| j _ {i + 1} - j _ {i} \right| \tag {3}
+$$
+
+We use average first appear round and average final rank as indicators for model's inductive reasoning capability as they reflect how efficiently the model can make correct predictions in the fewest number of rounds. Average final rank is averaged across all game sessions, and the rank follows the same definition of $D_{i}$ in Eq. 2, but only for the final round.
+
+# 4 EXPERIMENTS
+
+# 4.1 SETUP
+
+GameArena evaluates LLM reasoning using gaming data to compare five SOTA models: GPT-40 (OpenAI, 2024b), Claude 3.5 Sonnet (Anthropic, 2024), Gemini-1.5 Pro (Reid et al., 2024), Mistral Large 2 (Mistral, 2024), and LLaMA-3.1 405B-Instruct (MetaAI, 2024). Over a 10-week period from July 2024 to September 2024, we collect a total of 2240 game sessions using Cloud Research (Hartman et al., 2023) for evaluation. We then conduct retrospective data analysis introduced in Section 3 on the gaming data to obtain outcome metrics and procedure metrics for each model.
+
+Controlling system prompt variance. In GameArena, we develop a system prompt search and optimization pipeline using DSPy (Khattab et al., 2024). This pipeline uses the chain-of-thought module from DSPy and one of the five models acting as the evaluator. The evaluator guide the model to follow the game rules and judges on response quality. The DSPy optimizer learns to bootstrap and
+
+identify effective system prompts. Each optimizer is optimized from a subset of all our gaming data consisting of 200 game sessions. Given a game and one of the five evaluators, the pipeline searches for an optimal system prompt that maximizes the evaluator's judgment on the model's generated questions or answers at each round, resulting in five highly optimized system prompts per game.
+
+# 4.2 DATA EFFICIENCY
+
+We compared the data efficiency of GameArena and Chatbot Arena by analyzing the useful data rates. We obtained real conversation data from the Chatbot Arena Team for the week of August 26th to September 1st and compared it with the data collected by GameArena during the same period. We considered data as useful if it provides meaningful signals that can be used to evaluate models. In Chatbot Arena, data was deemed useful if it included at least one vote (e.g., for left, right, tie, or both bad). For GameArena, we considered the game session useful if the user completed the entire game round and provided feedback on the game outcome (i.e., win or lose).
+
+We found that $86.9\%$ of the data from GameArena were valid and useful, while only $4\%$ of total conversations in Chatbot Arena provided meaningful votes due to its reliance on voluntary participation. Our results suggest that GameArena could improve user engagement through gamification approaches and collect meaningful data for evaluating LLMs more efficiently.
+
+# 4.3 USER STUDY
+
+Participant ratings. We conducted a user study to compare the user experience and willingness to participate in GameArena and Chatbot Arena (Chiang et al., 2024). We recruited 100 participants through Cloud Research (Hartman et al., 2023) and asked them to try both platforms and fill out a survey to provide their feedback. Each participant was randomly assigned a game in GameArena and asked to play at least three rounds. For Chatbot Arena, participants voted on the better responses from two models to their questions. We provided sample questions from MT-Bench (Zheng et al., 2023) for reference, and participants were also free to create their own questions. Participants rated each platform on how much they enjoyed it, how satisfied they were with the experience, and how often they would like to participate on a 5-point Likert scale.
+
+
+Figure 4: Participant rating distributions across different games in GameArena and Chatbot Arena. A lower bar represents a lower proportion of participants expressing a positive attitude. GameArena showed higher user enjoyment, satisfaction and willingness to participate than Chatbot Arena.
+
+Our user study results suggest that GameArena is more engaging and enjoyable for users (Fig. 4). On average, over $70\%$ of users liked the games in GameArena, compared to only $45\%$ who enjoyed voting in Chatbot Arena. Additionally, over $80\%$ of participants reported satisfaction with gameplay experience in GameArena, compared to less than $40\%$ of users felt satisfied about the experience with Chatbot Arena. Participants also expressed stronger willingness to participate in GameArena, with over half of the participants would like to play these game frequently, whereas interest in Chatbot Arena was more evenly distributed across different participation levels.
+
+# 4.4 RANKING RESULTS
+
+Model performance on outcome metrics. The final outcome metrics of the three games are shown in Table 2. The win rates of both claude-3-5-sonnet-20240620 and gpt-4o-2024-08-06 are higher in all three games compared to other models evaluated. The high win rate here reflects the strong overall reasoning ability of the two models.
+
+Table 2: Outcome ranking for each game. Despite with system prompt search and optimization, in many Bluffing games, Mistral-large (Mistral, 2024) fails to follow instructions and make a final prediction on the truthfulness of the users' statements within the 5-round limit. The numerical values are averaged across the five system prompts, with the standard deviation included as the error bar.
+
+
Akinator
Taboo
Bluffing
Model
Avg. Win Rate
Avg. # Round
Avg. Win Rate
Avg. # Round
Avg. Win Rate
Avg. # Round
claude-3-5-sonnet-20240620
0.55±0.11
16.61±1.75
0.61±0.18
3.36±0.88
0.67±0.13
6.00±0.00
gpt-4o-2024-08-06
0.49±0.13
16.36±0.86
0.67±0.11
3.19±0.34
0.58±0.13
5.92±0.18
gemini-1.5-pro
0.51±0.17
16.57±1.49
0.61±0.04
3.74±0.45
0.60±0.18
5.96±0.10
llama-3.1-405b
0.44±0.04
17.15±0.66
0.62±0.18
3.08±0.18
0.44±0.22
5.90±0.27
mistral-large-latest
0.02±0.04
19.99±0.02
0.66±0.13
3.43±0.57
0.0±0.00
6.00±0.00
+
+Table 3: The retrospective analysis results of Akinator, Taboo, and Bluffing game sessions hosted by several SOTA LLMs.
+
+
Akinator
Multi-hop reasoning
Deductive reasoning
Model
Recall Rate (%)
Top 5 Recall Rate (%)
Top 10 Recall Rate (%)
Disparity Ratio (%) ↓
Avg. First
+Appear Round
Avg. Final
+Rank
claude-3-5-sonnet-20240620
27.83
24.58
27.26
0.57
11.63
5.31
gpt-4o-2024-08-06
20.32
17.00
19.57
0.55
11.96
6.64
gemini-1.5-pro
19.79
18.56
19.79
0.58
12.12
5.44
llama-3-405b
15.90
13.72
14.97
0.60
14.67
9.88
mistral-large-latest
6.46
5.90
6.46
0.62
18.07
7.11
+
+
Taboo
Multi-hop reasoning
Abductive reasoning
Model
Recall Rate (%)
Top 5 Recall Rate (%)
Top 10 Recall Rate (%)
Avg. First Appear Round
Avg. Final Rank
claude-3-5-sonnet-20240620
68.85
65.82
68.85
1.56
1.48
gpt-4o-2024-08-06
55.78
53.68
55.78
2.47
3.83
gemini-1.5-pro
55.57
52.58
56.31
2.55
2.44
llama-3-405b
71.22
65.69
70.80
1.98
4.04
mistral-large-latest
66.30
61.34
64.88
2.05
4.89
+
+
Bluffing
Multi-hop reasoning
Inductive reasoning
Model
Recall Rate (%)
Spearman's Coefficient ↓
Hopping Penalty ↓
Avg. First Appear Round
Avg. Final Rank
claude-3-5-sonnet-20240620
14.12
-0.39
0.20
2.46
1.47
gemini-1.5-pro
9.05
-0.22
0.23
3.50
1.62
gpt-4o-2024-08-06
7.64
-0.15
0.44
3.00
2.06
llama-3-405b
19.05
0.26
0.48
3.00
2.57
mistral-large-latest
0.00
-0.20
0.27
N/A
1.53
+
+Model performance on procedural metrics. Table 3 presents the procedural metrics designed to reflect the models' reasoning skills from the retrospective analysis of all three games.
+
+Akinator. Claude-3-5-sonnet-20240620 performs best on recall rates, average first appear round, and average final rank, demonstrating stronger multi-hop reasoning and deductive reasoning capabilities compared to other SOTA LLMs being evaluated. Gpt-4o-2024-08-06 also has high performance in the metrics of reasoning capabilities.
+
+Taboo. The high performance of claude-3-5-sonnet-20240620 in recall rates, average first appear round, and average final rank exhibits stronger multi-hop and abductive reasoning capabilities. Notably, llama-3-405b demonstrates strong multi-hop reasoning capabilities with leading recall rates, which differs from the results observed in the Akinator game. This discrepancy may be due to the task differences: in the Taboo game, the model passively responds to user prompts, whereas in the Akinator game, it must actively generate questions to succeed.
+
+Bluffing. In many cases, Mistral-large (Mistral, 2024) tends to be very conservative in making predictions. Note that with a large hopping penalty and a high recall rate, LLaMA-3.1 405B tends to make bolder predictions, and its intermediate reasoning outputs tend to be slightly more inconsistent.
+
+# 4.5 RANKING COMPARISONS
+
+Cross-dataset consistency analysis. GameArena can be extended to include as many games as possible for evaluating LLM reasoning, following the formulation in Section 2.2. In games like Taboo, we can restrict the set of secret words users are allowed to use, while in others, like Akinator and Taboo, users have the freedom to choose the game secret. It is crucial to quantify the variances in evaluations when the game secret space is large to ensure consistency and fairness across different game setups.
+
+We conducted a controlled experiment to quantify GameArena's evaluation consistency on these games. In this experiment, we asked human experts (graduate students) to hand curate two distinct subsets of gaming data, where the game secrets are sufficiently diverse to both cover a wide range of topics. For each game, the two sets each contains 50 game sessions. We show the outcome metrics for each set in Table 5. We only evaluate the Akinator, and the Bluffing game as Taboo has a restricted game secret space. The results from both subsets show a strong agreement, demonstrating the reliability of our ranking system. More details of the experiment can be found in Appendix B.
+
+
+Figure 5: Controlled experiment results for Akinator and Bluffing. The numerical values are averaged across the five different system prompts, with the standard deviation included as the error bar.
+
+
+
+Table 4: Kendall's tau and Rank-biased overlap (RBO) between GameArena's rankings vs. open-ended dynamic benchmark Chatbot Arena, monthly-updated reasoning benchmarks Livebench-reasoning, Trustbit-reasoning, and a static reasoning benchmark GPQA. Higher values indicate a greater level of agreement between the rankings.
+
+
GameArena Rankings
Chatbot Arena
LiveBench-Reasoning
GPQA
Kendall's Tau
RBO
Kendall's Tau
RBO
Kendall's Tau
RBO
Akinator-Outcome
0.4
0.86
0.6
0.93
0.6
0.93
Akinator-Retro (deductive)
0.6
0.93
0.8
0.98
0.8
0.98
Taboo-Outcome
0.2
0.74
-0.2
0.61
-0.2
0.61
Taboo-Retro (abductive)
0.6
0.93
0.8
0.98
0.8
0.98
Bluffing-Outcome
0.4
0.86
0.6
0.93
0.6
0.93
Bluffing-Retro (inductive)
0.4
0.86
0.6
0.93
0.6
0.93
+
+Ranking correlations. We compare our ranking results from Table 2 and Table 3 with rankings from both dynamic and static benchmarks. We use statistical methods, including Kendall's tau and rank-biased overlap (RBO) (Kumar & Vassilvitskii, 2010; Shiekh & El-Hashash, 2022), to perform the analysis. The expressions for Kendall's tau and rank-biased overlap (RBO) are described in Eq. ??, where $\text{size}_{\text{agree}}$ and $\text{size}_{\text{disagree}}$ are the numbers of concordant and dis-concordant pairs, $n = 5$ is the total number of models in the ranking, $R_{1,d}, R_{2,d}$ are ranking from two different benchmarks with top $d$ elements, $p \in (0,1)$ is the persistent parameter, which serves as the weights given to low-ranked elements. The correlations of GameArena versus different rankings are shown in Table 4 using $p = 0.9$ as the weight parameter. The latest rankings as of September 2024 are in Appendix C.
+
+$$
+\tau = \frac {\text {s i z e} _ {\text {a g r e e}} - \text {s i z e} _ {\text {d i s a g r e e}}}{\frac {n (n - 1)}{2}} \quad (\text {K e n d a l l ’ s T a u}) \tag {4}
+$$
+
+$$
+\operatorname {R B O} \left(R _ {1}, R _ {2}, p\right) = (1 - p) \sum_ {d = 1} ^ {n} \left(\frac {\left| R _ {1 , d} \cap R _ {2 , d} \right|}{d}\right) p ^ {d - 1} \quad (\text {R a n k - b i a s e d O v e r l a p}) \tag {5}
+$$
+
+The results show a particularly strong agreement between GameArena's rankings on Akinator and Taboo's procedural metrics (multi-hop, deductive and abductive reasoning) and the monthly updated reasoning benchmark LiveBench-Reasoning (White et al., 2024), as well as the static reasoning benchmark GPQA (Rein et al., 2023). One potential source of disagreement is that the other reasoning benchmarks are designed to capture somewhat different reasoning skills than those reflected in GameArena. Specifically, LiveBench-Reasoning tests on a subset of BigBench-Hard (Suzgun et al., 2022) and Zebra Puzzles (Jeremy, 2009), while GPQA also assesses graduate-level academic knowledge. It is worth noting that GameArena shows a disagreement with Chatbot Arena, as the latter evaluates holistic performance rather than specific reasoning capabilities.
+
+# 5 RELATED WORK
+
+Benchmarking LLM reasoning capabilities. Existing works develop a wide range of benchmarks to test the models' reasoning capabilities, such as logical reasoning (Hao et al., 2024; bench authors, 2023; Valmeekam et al., 2023; Saparov & He, 2023), coding and mathematical reasoning (Cobbe et al., 2021). However, these benchmarks often rely on static datasets that can be vulnerable to data contamination (Sainz et al., 2023; White et al., 2024) and easily become saturated (Kiela et al., 2021; Perlitz et al., 2024). To address this, Chiang et al. (2024); Zheng et al. (2023); Zhao et al. (2024) use human or LLM as judges to evaluate the responses to dynamic questions of different LLMs. However, recent studies found this may introduce various biases (e.g., style preference) that compromise the reliability of evaluation results (Chen et al., 2024; Li et al., 2024). In contrast, GameArena evaluates LLMs through interactive gameplay with humans using objective metrics derived from the gaming process to create a more engaging and robust benchmarking approach.
+
+Evaluating large language models using games. Recent works have explored interactive and game-based evaluations to assess LLM capabilities (Wu et al., 2024; Liu et al., 2023). For example, Madge & Poesio (2024); Hafner (2021) use single-player games (e.g., MineCraft) as a controlled environment to test specific capabilities of LLMs. Topsakal et al. (2024); Xu et al. (2023); Cheng et al. (2024) employ multi-player games to evaluate LLM through self-play or competition among different LLM agents. In contrast, GameArena uses a crowdsourced approach to engage human players in the LLM evaluation process by offering games that people can play to have fun. Our work is similar to RedTeam Arena (Angelopoulos et al., 2024), which features a game prompting players to elicit target "bad words" from models, but the key difference is that RedTeam Arena focuses on red-teaming, while our games are designed for evaluation of LLM reasoning capabilities.
+
+Games with a purpose (GWAPs) are online games designed to be fun for humans to play while also accomplishing meaningful tasks that are challenging to handle by computers alone (Von Ahn & Dabbish, 2004; Von Ahn, 2006; Von Ahn & Dabbish, 2008). For example, Eye into AI (Morrison et al., 2023) uses GWAP techniques to evaluate explainable AI approaches by revealing salient portions of an image and asking players to guess the object. To the best of our knowledge, we are the first to integrate LLMs into playful games in a way that does not disrupt the gameplay experience while also generating meaningful data for evaluating LLM reasoning capabilities.
+
+# 6 CONCLUSION
+
+In this work, we present GameArena, a dynamic benchmark for evaluating LLM reasoning capabilities through interactive gameplay with humans. GameArena enables the efficient collection of LLM step-by-step reasoning data with human labels as a natural by-product of human gameplay sessions, while keeping participants entertained and engaged. Our initial release of GameArena consists of three conversational games that require strong reasoning skills: Akinator, Taboo and Bluffing. By controlling LLM interactions with humans through specific game rules and objectives, these games can assess fine-grained LLM reasoning skills, including inductive, deductive, abductive and multihop reasoning. We plan to incorporate more games into GameArena and improve our evaluation metrics to further our understanding of LLM reasoning capabilities in complex, interactive contexts.
+
+# 7 ETHICS STATEMENT
+
+Since GameArena involves human subjects playing games to collect LLM reasoning data, we recruited participants from Cloud Research and compensated them 8 USD per hour for their time. The crowd workers consented to the use of their responses in the study, and no personal data was collected. Our user studies were approved by the institutional review board of our organization.
+
+# REFERENCES
+
+Akinator. Akinator - the web genie, 2024. URL https://en.akinator.com/. Accessed: 2024-09-27.
+Anastasios Angelopoulos, Luca Vivona, Wei-Lin Chiang, Aryan Vichare, Lisa Dunlap, Sal Vivona, Pliny, and Ion Stoica. Redteam arena: An open-source, community-driven jailbreaking platform, Sep. 2024. URL https://blog.lmarena.ai/blog/2024/redteam-arena/. (Accessed on 2024/09/23).
+Anthropic. Claude 3.5 sonnet, 2024. URL https://www.anthropic.com/news/claude-3-5-sonnet. Accessed: 2024-09-27.
+BIG bench authors. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. Transactions on Machine Learning Research, 2023. ISSN 2835-8856. URL https://openreview.net/forum?id=uyTL5Bvosj.
+Guiming Hardy Chen, Shunian Chen, Ziche Liu, Feng Jiang, and Benyou Wang. Humans or llms as the judge? a study on judgement biases. arXiv preprint arXiv:2402.10669, 2024.
+Pengyu Cheng, Tianhao Hu, Han Xu, Zhisong Zhang, Yong Dai, Lei Han, and Nan Du. Self-playing adversarial language game enhances lIm reasoning. arXiv preprint arXiv:2404.10642, 2024.
+Wei-Lin Chiang, Lianmin Zheng, Ying Sheng, Anastasios Nikolas Angelopoulos, Tianle Li, Dacheng Li, Hao Zhang, Banghua Zhu, Michael Jordan, Joseph E Gonzalez, et al. Chatbot arena: An open platform for evaluating llms by human preference. arXiv preprint arXiv:2403.04132, 2024.
+Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems, 2021. URL https://arxiv.org/abs/2110.14168.
+Antonia Creswell, Murray Shanahan, and Irina Higgins. Selection-inference: Exploiting large language models for interpretable logical reasoning. arXiv preprint arXiv:2205.09712, 2022.
+Danijar Hafner. Benchmarking the spectrum of agent capabilities. arXiv preprint arXiv:2109.06780, 2021.
+Simon Jerome Han, Keith James Ransom, Andrew Perfors, and Charles Kemp. Human-like property induction is a challenge for large language models. In Proceedings of the annual meeting of the cognitive science society, volume 44, 2022.
+Shibo Hao, Yi Gu, Haotian Luo, Tianyang Liu, Xiyan Shao, Xinyuan Wang, Shuhua Xie, Haodi Ma, Adithya Samavedhi, Qiyue Gao, Zhen Wang, and Zhiting Hu. Llm reasoners: New evaluation, library, and analysis of step-by-step reasoning with large language models, 2024. URL https://arxiv.org/abs/2404.05221.
+Rachel Hartman, Aaron J Moss, Shalom Noach Jaffe, Cheskie Rosenzweig, Leib Litman, and Jonathan Robinson. Introducing connect by cloudresearch: Advancing online participant recruitment in the digital age. 2023.
+Xanh Ho, Anh-Khoa Duong Nguyen, Saku Sugawara, and Akiko Aizawa. Constructing a multi-hop qa dataset for comprehensive evaluation of reasoning steps. arXiv preprint arXiv:2011.01060, 2020.
+
+Jie Huang and Kevin Chen-Chuan Chang. Towards reasoning in large language models: A survey, 2023. URL https://arxiv.org/abs/2212.10403.
+S Jeremy. Einstein's riddle: Riddles, paradoxes, and conundrums to stretch your mind. Bloomsbury USA, pp. 10-11, 2009.
+Jaehun Jung, Lianhui Qin, Sean Welleck, Faeze Brahman, Chandra Bhagavatula, Ronan Le Bras, and Yejin Choi. Maieutic prompting: Logically consistent reasoning with recursive explanations. arXiv preprint arXiv:2205.11822, 2022.
+Omar Khattab, Arnav Singhvi, Paridhi Maheshwari, Zhiyuan Zhang, Keshav Santhanam, Saiful Haq, Ashutosh Sharma, Thomas T Joshi, Hanna Moazam, Heather Miller, et al. Dspy: Compiling declarative language model calls into state-of-the-art pipelines. In The Twelfth International Conference on Learning Representations, 2024.
+Douwe Kiela, Max Bartolo, Yixin Nie, Divyansh Kaushik, Atticus Geiger, Zhengxuan Wu, Bertie Vidgen, Grusha Prasad, Amanpreet Singh, Pratik Ringshia, et al. Dynabench: Rethinking benchmarking in nlp. arXiv preprint arXiv:2104.14337, 2021.
+Ravi Kumar and Sergei Vassilvitskii. Generalized distances between rankings. In Proceedings of the 19th International Conference on World Wide Web, WWW '10, pp. 571-580, New York, NY, USA, 2010. Association for Computing Machinery. ISBN 9781605587998. doi: 10.1145/1772690.1772749. URL https://doi.org/10.1145/1772690.1772749.
+Tianle Li, Anastasios Angelopoulos, and Wei-Lin Chiang. Does style matter? disentangling style and substance in chatbot arena, Aug. 2024. URL https://lmsys.org/blog/2024-08-28-style-control/. (Accessed on 2024/09/23).
+Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step, 2023. URL https://arxiv.org/abs/2305.20050.
+Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, Shudan Zhang, Xiang Deng, Aohan Zeng, Zhengxiao Du, Chenhui Zhang, Sheng Shen, Tianjun Zhang, Yu Su, Huan Sun, Minlie Huang, Yuxiao Dong, and Jie Tang. Agentbench: Evaluating llms as agents, 2023. URL https://arxiv.org/abs/2308.03688.
+Liangchen Luo, Yinxiao Liu, Rosanne Liu, Samrat Phatale, Harsh Lara, Yunxuan Li, Lei Shu, Yun Zhu, Lei Meng, Jiao Sun, and Abhinav Rastogi. Improve mathematical reasoning in language models by automated process supervision, 2024. URL https://arxiv.org/abs/2406.06592.
+Chris Madge and Massimo Poesio. A llm benchmark based on the apache generator task. arXiv preprint arXiv:2407.12734, 2024.
+MetaAI. Introducing llama 3.1, 2024. URL https://ai.meta.com/blog/meta-llama-3-1/. Accessed: 2024-09-27.
+Kanishka Misra, Julia Taylor Rayz, and Allyson Ettinger. A property induction framework for neural language models. arXiv preprint arXiv:2205.06910, 2022.
+Mistral. Mistral-large: Unveiling our latest model, 2024. URL https://mistral.ai/news/mistral-large-2407/. Accessed: 2024-09-27.
+Katelyn Morrison, Mayank Jain, Jessica Hammer, and Adam Perer. Eye into ai: Evaluating the interpretability of explainable ai techniques through a game with a purpose. Proceedings of the ACM on Human-Computer Interaction, 7(CSCW2):1-22, 2023.
+OpenAI. Openai o1 system card, Sep. 2024a. URL https:// assets.ctfassets.net/kftzwdyauwt9/67qJD51Aur3eIc96iOfeOP/ 71551c3d223cd97e591aa89567306912/o1_system_card.pdf. (Accessed on 2024/09/23).
+
+OpenAI. Gpt-4o system card, 2024b. URL https://cdn.openai.com/gpt-4o-system-card.pdf. Accessed: 2024-09-27.
+Yotam Perlitz, Ariel Gera, Ofir Arviv, Asaf Yehudai, Elron Bandel, Eyal Shnarch, Michal Shmueli-Scheuer, and Leshem Choshen. Benchmark agreement testing done right: A guide for llm benchmark evaluation. arXiv preprint arXiv:2407.13696, 2024.
+Tanmay Rajore, Nishanth Chandran, Sunayana Sitaram, Divya Gupta, Rahul Sharma, Kashish Mittal, and Manohar Swaminathan. Truce: Private benchmarking to prevent contamination and improve comparative evaluation of llms. arXiv e-prints, pp. arXiv-2403, 2024.
+Rachel Reid, Nikolay Savinov, Denis Teptyashin, Dmitry Lepikhin, Timothy Lillicrap, Jean-Baptiste Alayrac, Radu Soricut, Angeliki Lazaridou, Orhan First, Julian Schrittwieser, et al. Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context. arXiv preprint arXiv:2403.05530, 2024. URL https://arxiv.org/abs/2403.05530.
+David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R. Bowman. Gpqa: A graduate-level google-proof q&a benchmark, 2023. URL https://arxiv.org/abs/2311.12022.
+Oscar Sainz, Jon Ander Campos, Iker Garcia-Ferrero, Julien Etxaniz, Oier Lopez de Lacalle, and Eneko Agirre. Nlp evaluation in trouble: On the need to measure llm data contamination for each benchmark. arXiv preprint arXiv:2310.18018, 2023.
+Abulhair Saparov and He He. Language models are greedy reasoners: A systematic formal analysis of chain-of-thought, 2023. URL https://arxiv.org/abs/2210.01240.
+Gal Sasson and Yoed N Kenett. A mirror to human question asking: Analyzing the akinator online question game. *Big Data and Cognitive Computing*, 7(1):26, 2023.
+Philip Sedgwick. Spearman's rank correlation coefficient. BMJ, 349, 2014. ISSN 0959-8138. doi: 10.1136/bmj.g7327. URL https://www.bmj.com/content/349/bmj.g7327.
+Norbert M Seel. Encyclopedia of the Sciences of Learning. Springer Science & Business Media, 2011.
+Rega Hassan Ali Shiekh and Essam F El-Hashash. A comparison of the pearson, spearman rank and Kendall tau correlation coefficients using quantitative variables. Asian Journal of Probability and Statistics, pp. 36-48, 2022.
+Mirac Suzgun, Nathan Scales, Nathanael Schärli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc V. Le, Ed H. Chi, Denny Zhou, and Jason Wei. Challenging big-bench tasks and whether chain-of-thought can solve them, 2022. URL https://arxiv.org/abs/2210.09261.
+Oguzhan Topsakal, Colby Jacob Edell, and Jackson Bailey Harper. Evaluating large language models with grid-based game competitions: An extensible llm benchmark and leaderboard. arXiv preprint arXiv:2407.07796, 2024.
+Karthik Valmeekam, Matthew Marquez, Alberto Olmo, Sarath Sreedharan, and Subbarao Kambhampati. Planbench: An extensible benchmark for evaluating large language models on planning and reasoning about change. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 38975-38987. Curran Associates, Inc., 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/7a92bcdede88c7afd108072faf5485c8-Paper-Datasets_and_Benchmarks.pdf.
+Luis Von Ahn. Games with a purpose. Computer, 39(6):92-94, 2006.
+Luis Von Ahn and Laura Dabbish. Labeling images with a computer game. In Proceedings of the SIGCHI conference on Human factors in computing systems, pp. 319-326, 2004.
+
+Luis Von Ahn and Laura Dabbish. Designing games with a purpose. Communications of the ACM, 51(8):58-67, 2008.
+Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824-24837, 2022.
+Colin White, Samuel Dooley, Manley Roberts, Arka Pal, Ben Feuer, Siddhartha Jain, Ravid Shwartz-Ziv, Neel Jain, Khalid Saifullah, Siddartha Naidu, et al. Livebench: A challenging, contamination-free llm benchmark. arXiv preprint arXiv:2406.19314, 2024.
+Yue Wu, Xuan Tang, Tom Mitchell, and Yuanzhi Li. Smartplay: A benchmark for LLMs as intelligent agents. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=S2oTVrlcp3.
+Yuzhuang Xu, Shuo Wang, Peng Li, Fuwen Luo, Xiaolong Wang, Weidong Liu, and Yang Liu. Exploring large language models for communication games: An empirical study on werewolf. arXiv preprint arXiv:2309.04658, 2023.
+Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William W. Cohen, Ruslan Salakhutdinov, and Christopher D. Manning. Hotpotqa: A dataset for diverse, explainable multi-hop question answering, 2018. URL https://arxiv.org/abs/1809.09600.
+Zonglin Yang, Li Dong, Xinya Du, Hao Cheng, Erik Cambria, Xiaodong Liu, Jianfeng Gao, and Furu Wei. Language models as inductive reasoners. arXiv preprint arXiv:2212.10923, 2022.
+Tian Ye, Zicheng Xu, Yuanzhi Li, and Zeyuan Allen-Zhu. Physics of language models: Part 2.1, grade-school math and the hidden reasoning process, 2024a. URL https://arxiv.org/abs/2407.20311.
+Tian Ye, Zicheng Xu, Yuanzhi Li, and Zeyuan Allen-Zhu. Physics of language models: Part 2.2, how to learn from mistakes on grade-school math problems, 2024b. URL https://arxiv.org/abs/2408.16293.
+Ruochen Zhao, Wenxuan Zhang, Yew Ken Chia, Deli Zhao, and Lidong Bing. Auto arena of Ilms: Automating llm evaluations with agent peer-battles and committee discussions, 2024. URL https://arxiv.org/abs/2405.20267.
+Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, Hao Zhang, Joseph E Gonzalez, and Ion Stoica. Judging llm-as-a-judge with mt-bench and chatbot arena. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 46595-46623. Curran Associates, Inc., 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/91f18a1287b398d378ef22505bf41832-Paper-Datasets_and_Benchmarks.pdf.
+
+# A GAME DESIGN
+
+# A.1 GAME RULES
+
+We provide a detailed description of the game rules for each game in GameArena below and explain why these games are challenging for LLMs.
+
+# A.1.1 AKINATOR
+
+In the Akinator game, the LLM attempts to determine what object the player is thinking of by asking up to 20 yes or no questions. The goal of the LLM is to guess the answer correctly with the fewest number of questions possible. In each round, the LLM asks a binary question, and the player responds with "yes," "no," "probably yes" "probably no," or "not sure." The LLM asks strategic questions to gather information until it feels confident enough to make a guess. The player then provides feedback on whether the guess is correct. If correct, the model wins; if not, it can continue asking questions or make another guess until it uses all 20 chances. If the LLM fails to guess the object, the player is prompted to reveal the target object to ensure data quality and prevent cheating.
+
+The Akinator game is challenging for LLMs due to its vast, open-ended answer space. LLMs must accurately interpret user responses, manage ambiguity, and avoid irrelevant or redundant questions to efficiently narrow down a wide range of possibilities from limited information. This challenge is intensified by the need to connect information across diverse knowledge domains and engage in complex, multi-step reasoning to arrive at the correct answer.
+
+# A.1.2 TABOO
+
+In the Taboo game, the goal of the human player is to prompt the LLM with questions that will lead the model to say the target word. Meanwhile, the LLM tries to guess the word to avoid uttering it. The system first randomly assigns the human play a taboo word (e.g., "eggs") from a predefined word list. The user must prompt the model to say the word without mentioning it directly. In Fig. 2, the user begins with a general description of common breakfast foods, which leads the LLM to respond with "cereal." The user then narrows it down by asking about foods that can be scrambled or fried, prompting the LLM to successfully utter the target word. At this point, the LLM has a chance to guess the word; if it guesses correctly, it wins.
+
+The Taboo game presents several challenges for LLMs. The model must interpret vague clues and general descriptions, which can vary significantly, to recognize when it is close to the target word based on the user's hints. This requires quick connections across various potential answers. Additionally, the LLM needs to balance providing relevant responses with avoiding the taboo word, necessitating quick and strategic reasoning.
+
+To make the game more challenging and engaging for users, the human wins only if they get the LLM to say the word within five rounds, with each question limited to 140 characters, and the LLM does not guess the word correctly. This setup makes the taboo game a challenging task for the LLM, as human players will avoid easy and detailed clues, requiring the LLM to navigate complex language cues and context clues to figure out the target word.
+
+# A.1.3 BLUFFING
+
+In the Bluffing game, the human player first makes a statement that can be true or false, and attempt to convince the LLM of its truthfulness. The LLM can ask up to five questions to determine if the player is lying, aiming to accurately judge the truthfulness of the statement in the fewest rounds possible. For instance, LLMs may detect deception by identifying subtle flaws or inconsistencies in the player's responses. After the LLM makes its prediction, the player provides feedback on whether the statement is true.
+
+The Bluffing game is challenging for LLMs because it requires them to evaluate the truthfulness of a statement based on limited interactions (i.e., within only five question-and-answer pairs). LLMs must effectively interpret the nuances of human communication, including tone and context, to detect deception. Additionally, they have to formulate strategic questions that maximize information gain while minimizing the risk of misleading answers.
+
+# A.2 GAMEAREA USER INTERFACE
+
+We demonstrate the user interface for each game from Figure 6 to Figure 8.
+
+
+Figure 6: The user interface of GameArena for the Akinator game
+
+
+Figure 7: The user interface of GameArena for the Taboo game
+
+
+Figure 8: The user interface of GameArena for the Bluffing game
+
+# A.3 EXAMPLES OF GAMEPLAY SESSIONS
+
+We demonstrate one example of gameplay session for each game from Figure 9 to Figure 11.
+
+
+Figure 9: An example game conversation between the LLM and human players in an Akinator game
+
+
+Figure 10: An example game conversation between the LLM and human players in a Taboo game
+
+
+Figure 11: An example game conversation between the LLM and human players in a Bluffing game
+
+# A.4 EXAMPLES OF GAME PROMPTS
+
+# A.4.1 AKINATOR
+
+You are an intelligent assistant tasked with playing a game of Twenty Questions. Your goal is to guess a generic object that the user is thinking of. Assume the role of a creative player while examining the game history. Utilize your imagination to craft an engaging and thought-provoking next question that not only continues the game's natural progression but also ignites participants' interest and curiosity. Ensure that the question resonates with the ongoing narrative while offering a unique twist to maintain excitement. The rules are specified as follows:
+
+1. Questioning Numbering: Each question starts with a question header 'Question N:' where N is a numerical integer from 1 to 20. Ensure each question is sequentially numbered, avoiding any repetition of the question header 'Question N'
+2. Single Question Format: In each turn, ask only one YES or NO question. Your response should only contain the question|no extra or redundant text should be included.
+3. Accepted Answers: Only these responses are acceptable: Yes, No, Probably Yes, Probably No, Don't Know.
+4. Fault Tolerance: Be tolerant of potentially incorrect answers from the user and adjust your questions accordingly.
+5. Avoid Redundancy: Do not repeat or ask similar questions more than once. Aim to ask unique questions that progressively narrow down the possibilities.
+
+6. Efficient Questioning: Strategically balance asking more general questions that can broadly narrow down possibilities versus making a guess to save question quota.
+ 7. Confident Guessing: If confident, make a guess using the format: 'This is a guess -- are you thinking of $object?', where $object is your proposed guess. Avoid any additional text.
+8. Generic Guessing: Don't guess too specific an object. When confident enough, make a guess with the following format: 'This is a guess -- are you thinking of $object?'
+9. Adaptive Questioning: Base each question on the user's previous responses to refine your understanding and approach.
+10. Consider Edge Cases: When making a guess, don't constrain your thinking to a specific category. Be creative and consider edge cases to avoid premature conclusions.
+
+Game session begins now. Let's proceed step by step:
+
+# A.4.2 TABOO
+
+You are an intelligent assistant tasked with playing a word-guessing game. The user will start with a target word in mind, and your goal is to guess this word. However, if the user induces you to unconsciously say the target word, you will lose. Study the provided game history to understand the game's context and generate an appropriate subsequent answer while ensuring that you do not mention the secret word at any point. The answer should respect the game's logic and rules as implied by the history. Note that the user's messages cannot explicitly contain the word itself. The rules are as follows:
+
+1. Respond to Questions: Each turn, the user is expected to ask a question. Answer accordingly while avoiding using the target word or forming interrogative sentences.
+2. Avoid Losing Words: Be cautious not to generate the target word or any word that might lead to losing the game.
+3. Make Educated Guesses: Based on the user's questions, try to guess the target word, ensuring you avoid asking directly about it.
+4. Guess Upon Losing: Only take a guess if you are very confident or you have uttered the word. Use the following format: 'My guess of the word is: ...'.
+5. Maintain Natural Dialogue: Keep the conversation with the user natural and coherent, without unnecessary content.
+6. Optional End of Game Guess: After 5 questions have been asked and only if you are sufficiently confident, first answer the latest question and then you can optionally make a final guess of the secret word in this format: 'My guess of the word is: ...'. Notice that guessing a wrong word could lead you lose the game, so do it only if you are very confident about the answer.
+7. Post-Game Analysis: Provide an analysis along with your game guess.
+
+The game session starts now. Let's proceed step by step:
+
+# A.4.3 BLUFFING
+
+You are an intelligent assistant tasked with playing a lie detection game. At the beginning of the game, the user will make a statement about themselves. Your goal is to determine whether the statement is true based on common sense and the user's answers. Keep in mind that the user may lie in their responses. Based on the provided history of the game (questions and answers so far), craft a relevant and engaging follow-up question to progress the game. Focus on maintaining a consistent theme and ensuring the question is logical with respect to prior game events and answers. Consider extracting key themes, unresolved queries, or interesting aspects highlighted in the game history to inspire this follow-up question. The rules are as follows:
+
+1. Statement Introduction: After the user makes a statement, you should proceed to ask the first question.
+2. Questioning Numbering: Each question starts with a question header 'Question N:' where N is a numerical integer from 1 to 5. Ensure each question is sequentially numbered, avoiding any repetition of the question header 'Question N''. Don't generate the question header after the 5th question.
+3. Sequential Questioning: Ensure that each question is unique and each question header is incrementally numbered from 1 to 5. Avoid repetitively generating 'Question 1:' without incrementing the number correctly.
+4. Single Question Per Turn: Ask only one question per turn and avoid generating any additional content or redundant information.
+5. Test Expertise: Ask questions that evaluate the user's expertise and knowledge in areas related to the statement.
+6. Build on Responses: Base each subsequent question on the user's previous responses to ensure relevance and depth.
+7. Limit of 5 Questions: You have up to 5 turns to ask questions.
+8. Avoid Premature Judgment: Avoid making a lie-detection judgment before all 5 questions are asked. You can reserve your judgment until the end of the questioning.
+9. Fault Tolerance: Be aware that users might provide incorrect answers by accident. Remain fault-tolerant and adjust your questioning accordingly. However, you do need to ask the user to provide sufficient details about the statement or related background.
+10. Encourage Creativity: Don't limit yourself to a specific set of questions. Be creative and think outside the box to fully explore the truthfulness of the statement.
+11. Final Judgment: Only if you are sufficiently confident, after or before all 5 questions are asked, make your final guess using the format: 'I believe your statement is: ', followed by either 'True' or 'False'. Don't include the question header.
+12. Post-Game Analysis: Provide an analysis of the statement and your reasoning after the game session has ended.
+
+The game session begins now. Let's proceed step by step:
+
+# A.5 RETROSPECTIVE ANALYSIS PROMPTS
+
+# A.5.1 AKINATOR
+
+Given the previous game history, generate a new list of most possible objects (at least 5, up to 16) and rank those objects from the most possible ones to the least possible ones. This list should help you guess the correct object the user is thinking of.
+
+* You need to order the objects based on how likely do you think the object is the correct answer.
+$\star$ Make sure all objects you generate comply with the game history.
+$\star$ In the game history, you can find one or more question-answer pairs. Each question asks if the object belongs to a certain category. If the answer is Yes, it means that the object belongs to this category. If the answer is No, it means that the object does not belong to this category. Don't generate any more objects that belong to this category.
+* Consider possible objects from all kinds of categories based on the game history.
+* Don't generate impossible objects based on the game history.
+$\star$ Be as diverse as possible. Think out of the box.
+* If you are very confident that the object is the correct answer, you can generate a list with only one object.
+* Being very confident means that you are very certain that you know the object the user is thinking of.
+$\star$ Output each object in the format: \*\* Object: