Exchangeability of GNN Representations with Applications to Graph Retrieval
Kartik Nair, Indradyumna Roy, Soumen Chakrabarti, Anirban Dasgupta, Abir De
International Conference on Learning Representations 2026 · Oral
Overview
In this insightful talk from ICLR 2026, Kartik Nair, representing a collaborative team including Indradyumna Roy, Soumen Chakrabarti, Anirban Dasgupta, and Abir De, introduced a novel concept of probabilistic symmetry, termed exchangeability, within neural network representations, particularly focusing on Graph Neural Networks (GNNs). Unlike traditional algebraic symmetries that relate to permutations of nodes or their neighbors, this new form of symmetry operates along the embedding coordinate dimensions. The core discovery is that the probability density of embeddings remains invariant to permutations of these embedding coordinates, a property that remarkably persists throughout the entire training trajectory of a neural network.

Key moments
- 0:00 Introduction to probabilistic symmetry in GNN representations
- 1:00 Defining new probabilistic symmetry along embedding coordinates
- 3:00 Core result: embedding density invariant to permutations
- 4:00 Probabilistic symmetry holds throughout the training trajectory
- 5:00 Applying exchangeability to graph similarity search
- 5:20 Fast graph retrieval using 1D embedding slices
- 6:30 Q&A: When symmetry holds in trained networks
- 7:30 Q&A: Viewing symmetry across multiple network layers
Exchangeability of GNN Representations with Applications to Graph Retrieval
Speakers: Kartik Nair, Indradyumna Roy, Soumen Chakrabarti, Anirban Dasgupta, Abir De
Conference: ICLR 2026
YouTube: https://slideslive.com/39062209
Overview
In this insightful talk from ICLR 2026, Kartik Nair, representing a collaborative team including Indradyumna Roy, Soumen Chakrabarti, Anirban Dasgupta, and Abir De, introduced a novel concept of probabilistic symmetry, termed exchangeability, within neural network representations, particularly focusing on Graph Neural Networks (GNNs). Unlike traditional algebraic symmetries that relate to permutations of nodes or their neighbors, this new form of symmetry operates along the embedding coordinate dimensions. The core discovery is that the probability density of embeddings remains invariant to permutations of these embedding coordinates, a property that remarkably persists throughout the entire training trajectory of a neural network.
The significance of this discovery extends beyond theoretical curiosity. The speakers demonstrated a compelling practical application in graph similarity search or graph retrieval. By leveraging the exchangeability property, they proposed a method to significantly simplify the typically complex problem of comparing graphs using optimal transport. This simplification transforms the computationally intensive task of finding an optimal transport plan over high-dimensional node embeddings into a trivial sorting operation over one-dimensional slices, enabling much faster and more efficient retrieval mechanisms.
This work offers a fresh perspective on the fundamental properties of neural networks and their representations. By uncovering a deep-seated probabilistic structure, it not only enhances our theoretical understanding of how these models function but also provides a powerful tool for designing more efficient and scalable algorithms for complex graph-based tasks. For practitioners and researchers working with GNNs, graph databases, and similarity search, this talk presents a critical advancement that could unlock new avenues for performance optimization and algorithmic design.
Background
▶ Watch: Introduction to probabilistic symmetry in GNN representations (0:00)
Graph Neural Networks (GNNs) have revolutionized the way we process and understand graph-structured data. At their core, GNNs aim to learn meaningful graph embeddings, which are low-dimensional vector representations for nodes, edges, or entire graphs. These embeddings are crucial for various downstream tasks, including node classification, link prediction, and graph classification, by encoding the structural and feature information of the graph.
The field has long recognized and leveraged various symmetries inherent in graph data and their corresponding neural representations. The most well-known are algebraic symmetries related to node permutations. For instance, if we permute the order of nodes in an input graph, a well-designed GNN will produce an equivariantly permuted set of node embeddings, meaning the structural relationships between embeddings are preserved. Similarly, permuting the neighbors of a specific node should not alter that node's embedding, reflecting the inherent permutation invariance of unordered sets of neighbors. These symmetries are often explicitly imposed by design in GNN architectures, ensuring robustness and generalizability.
However, despite these advancements, challenges persist, especially in tasks like graph similarity search. Comparing two graphs, say a query graph GQ against a corpus graph GC, often involves measuring a "distance" or "similarity" between their respective sets of node embeddings. A common and robust approach to this is formulating it as an optimal transport problem. This involves finding an optimal mapping or "transport plan" that minimizes the cost of transforming one set of embeddings into another. While powerful, the optimal transport problem is notoriously complex and computationally expensive, particularly when dealing with large graphs and high-dimensional embeddings. The intricate dependence on matching individual nodes makes it impractical for fast retrieval scenarios where many comparisons are needed. This computational bottleneck highlights the need for novel approaches that can simplify these complex distance calculations without sacrificing too much fidelity. The work presented by Nair et al. addresses this gap by introducing a new form of symmetry that can fundamentally simplify these comparison tasks.
Key Findings
▶ Watch: Core result: embedding density invariant to permutations (3:00)
The central contribution of this work is the discovery and formalization of a new form of probabilistic symmetry in neural network representations, termed exchangeability, which operates along the embedding coordinate dimensions. This is a departure from conventional algebraic symmetries, which typically concern permutations of nodes or their neighborhoods. The key findings can be summarized as follows:
- Discovery of Probabilistic Exchangeability: The authors demonstrate that for a randomly initialized neural network, the probability density of its learned embeddings is invariant to permutations along the embedding coordinates. This means that if you swap any two dimensions (rows) of the embedding vectors, the overall probability of observing that embedding configuration remains the same. This symmetry arises directly from the i.i.d. random initialization of network parameters.
- Preservation During Training: Crucially, this probabilistic symmetry is not merely an artifact of initialization; it is preserved throughout the entire training process. The authors show that the backward pass, which computes gradients, exhibits an equivariant transformation with respect to these embedding coordinate permutations. Furthermore, typical parameter update algorithms, including standard gradient descent (GD), stochastic gradient descent (SGD), and adaptive methods like Adam, also operate equivariantly. This ensures that the exchangeability property holds at every step of the training trajectory, meaning it applies equally to fully trained networks.
- Broad Architectural Applicability: The existence of such symmetries is not limited to specific niche architectures. The talk highlights that this probabilistic exchangeability is present in common and widely used neural network architectures, including Multi-Layer Perceptrons (MLPs), Transformers, and crucially for this work, Graph Neural Networks (GNNs). The requirements for this symmetry are common architectural features, i.i.d. initialization (which is standard practice), and equivariant parameter updates (satisfied by most optimizers).
- Implication for Embedding Distributions: A direct consequence of exchangeability is that the row slices of the embeddings – which correspond to individual dimensions of the embedding vectors – possess the same marginal distribution. While these dimensions are not necessarily independent, their individual statistical profiles are identical. The authors also find similar symmetries in higher-order interactions between different embedding dimensions.
- Application to Simplified Graph Retrieval: The theoretical discovery is translated into a practical algorithmic breakthrough for graph similarity search. By leveraging the fact that individual embedding dimensions (row slices) are exchangeable, the traditionally complex optimal transport problem over high-dimensional node embeddings can be significantly simplified. For a family of asymmetric distance functions, the overall distance aggregation over sets of distances can be approximated by aggregating distances computed over these individual 1D slices. The optimal transport plan for these 1D slices becomes trivial: it simply involves sorting the vectors. This allows for the use of fast vector similarity search techniques, such as Locality Sensitive Hashing (LSH), to efficiently look up matching corpus graphs.
These findings collectively represent a significant advancement, offering both a deeper theoretical understanding of neural network representations and a powerful, computationally efficient method for a critical machine learning task.
Technical Deep Dive
▶ Watch: Applying exchangeability to graph similarity search (5:00)
The technical core of this work lies in formalizing the concept of probabilistic symmetry and demonstrating its implications for neural network behavior and applications.
At a high level, the standard approach to graph embeddings involves feeding a graph into a Graph Neural Network (GNN), which then produces a set of node embeddings. These embeddings are typically represented as a matrix where each column corresponds to a node and each row to an embedding coordinate (dimension). Existing symmetries in GNNs are primarily algebraic: permuting node order leads to an equivariant permutation in embeddings, and permuting a node's neighbors leaves its embedding unchanged. The novel contribution here is a probabilistic symmetry along the embedding coordinate axis.
The concept begins by viewing neural network parameters (weights) as random vectors. During initialization, each scalar entry of a weight matrix is typically initialized independently and identically distributed (i.i.d.) randomly. This means that the joint distribution of all parameters can be factorized, and any permutation of entries within a weight matrix results in an equally probable network configuration.
Consider a simple two-layer Multi-Layer Perceptron (MLP). Let the inner layer's output be the "representation." If we randomly initialize this network, the network function itself becomes a random quantity. Due to the i.i.d. initialization, if we permute the entries within a weight matrix, the resulting network parameters are equiprobable to the original ones. This property extends to the entire network: by independent factorization, the entire neural network is equiprobable with another network where entries within each weight matrix have been permuted.
The critical insight is how this translates to the hidden layer activations (embeddings). If we perform a swap within the hidden dimension (i.e., permute two rows of the embedding matrix), this can be represented as corresponding transformations in the parameter matrices of the network. Specifically, certain permutations on the input weights can lead to a permutation on the embedding coordinates, while the labels and, crucially, the downstream loss function remain invariant. Since a randomly initialized network with such permuted weights is equiprobable to the original, it logically follows that the representations (embeddings) themselves are also equiprobable under such coordinate permutations. This is the essence of exchangeability: the probability density function of the embeddings is invariant to permutations along the embedding coordinates.
A significant aspect of this work is demonstrating that this probabilistic symmetry is never broken during training. The backward pass, which calculates gradients, also exhibits an equivariant transformation with respect to these embedding coordinate permutations. This is due to the same underlying symmetries that cause loss invariance. Furthermore, typical parameter update algorithms, including gradient descent (GD), stochastic gradient descent (SGD), and even adaptive methods like Adam, are shown to update parameters equivariantly. This means that if exchangeability exists at initialization, it propagates through each training step, ensuring its validity for fully trained models.
The conditions for exchangeability are straightforward:
- Architectural Symmetries: The network architecture must possess certain symmetries. The authors show this is common in MLPs, Transformers, and GNNs.
- i.i.d. Initialization: Parameters must be initialized i.i.d., which is the standard practice across most deep learning frameworks.
- Equivariant Parameter Update: The optimization algorithm must update parameters equivariantly, a property held by most widely used gradient-based optimizers.
The practical implication for graph retrieval is profound. The task is to score a query graph GQ against a corpus graph GC. This is often framed as an optimal transport problem over node embeddings. The goal is to find an optimal transport plan (a mapping) between the nodes of GQ and GC that minimizes some cost. This problem is computationally intensive, as the dependence on the matching is very complex for efficient retrieval.
Exchangeability offers a solution. Since each row slice (individual embedding dimension) has the same marginal distribution, the authors show that for a family of asymmetric distance functions, the overall distance aggregation over sets of distances can be accurately approximated by aggregating distances computed independently over each 1D slice. The key simplification is that the optimal transport plan for these 1D slices is trivial: one simply needs to sort the vectors along that dimension. This transforms the complex multi-dimensional optimal transport problem into a series of simple 1D sorting and aggregation tasks. This simplification allows for very fast vector similarity search over these 1D slices, enabling efficient lookup of corpus graphs. The talk mentions that further details on implementation, theoretical results, and the use of Locality Sensitive Hashing (LSH) for this mechanism are available in their full paper.
During the Q&A, it was clarified that the transport plan with sorting assumes pointwise uniform weights over the embeddings. The symmetry's persistence after training was also reaffirmed, with exceptions primarily arising in scenarios involving frozen encoders or specific skip connections where embeddings might be forced into a pre-existing, non-exchangeable latent space. The idea of viewing this symmetry over paths rather than just layers was also acknowledged as a fair interpretation, implying that sufficient symmetry can exist across multiple layers to maintain the property.
Experimental Setup & Results
▶ Watch: Fast graph retrieval using 1D embedding slices (5:20)
While the talk primarily focuses on the theoretical underpinnings and the proposed methodological advancements, it briefly touches upon the application and implies experimental validation, though specific numbers, datasets, or direct comparisons are not detailed in the transcript. The core of the experimental approach lies in demonstrating the efficacy of leveraging exchangeability for graph retrieval.
The problem setup involves:
- Query Graph (GQ): A single graph for which similar graphs need to be found.
- Corpus Graph (GC): A collection of graphs against which the query graph is compared.
- Task: To score
GQagainst eachGCin the corpus and identify the best matching ones.
The traditional approach, as discussed, formulates this as an optimal transport problem over the node embeddings of GQ and GC. This involves computing a cost matrix between all pairs of nodes (one from GQ and one from GC) and then solving for an optimal transport plan using algorithms like the Hungarian algorithm or approximations like Sinkhorn iterations. The computational complexity of this approach makes it prohibitive for large-scale retrieval tasks.
The proposed method, enabled by exchangeability, bypasses this complexity. Instead of solving a high-dimensional optimal transport problem directly, it approximates the distance aggregation by operating on one-dimensional slices of the node embeddings. This means:
- Embedding Generation: GNNs are used to generate node embeddings for both the query and corpus graphs.
- Slice-wise Processing: For each embedding dimension (row slice), the node embeddings from
GQandGCare treated as 1D vectors. - Trivial 1D Transport: The "optimal transport" problem for these 1D vectors simplifies to merely sorting them. The distance between two sorted 1D vectors can be computed very efficiently.
- Distance Aggregation: The distances computed for each 1D slice are then aggregated to form an overall similarity score between
GQandGC. This aggregation is valid for a specific family of asymmetric distance functions. - Fast Retrieval: This simplification allows for the use of fast vector similarity search techniques. The talk specifically mentions Locality Sensitive Hashing (LSH) as a mechanism for accelerating the lookup of corpus graphs based on these aggregated slice-wise distances. LSH can efficiently find approximate nearest neighbors in high-dimensional spaces, which is particularly suitable here since the complex optimal transport has been reduced to a form amenable to vector similarity.
While the talk does not provide specific datasets (e.g., molecular graphs, social networks, knowledge graphs), baselines (e.g., traditional optimal transport, graph kernels, other embedding-based similarity methods), or headline numbers (e.g., speedup factors, retrieval accuracy metrics), it explicitly states that "implementation details of our theoretical results, LSH as well as our full pipeline" are available in the accompanying paper. This implies that comprehensive experimental validation, likely including comparisons against existing methods on standard graph benchmarks and measurements of both accuracy and computational efficiency, would be presented in the full publication. The focus of the conference talk was clearly on the novel theoretical discovery and its high-level algorithmic implications.
Practical Implications
▶ Watch: Q&A: Viewing symmetry across multiple network layers (7:30)
The discovery of probabilistic exchangeability and its application to graph retrieval carries significant practical implications for various stakeholders in the ML/systems space:
- For Practitioners and Infra Teams:
- Accelerated Graph Retrieval: The most immediate benefit is the potential for dramatically faster graph similarity search. By simplifying the optimal transport problem into 1D sorting and aggregation, the computational bottleneck for comparing graphs is significantly reduced. This enables real-time search in large graph databases, which was previously impractical.
- Scalability: The ability to use fast vector similarity search techniques like Locality Sensitive Hashing (LSH) over the simplified 1D distances means that graph retrieval systems can scale to much larger corpora and higher query rates. This is crucial for applications dealing with vast amounts of graph data, such as drug discovery (molecular graphs), social network analysis, or knowledge graph querying.
- Resource Efficiency: Reduced computational complexity translates directly to lower resource consumption (CPU/GPU time, memory), leading to more cost-effective deployments of graph-based systems.
- For Model Builders:
- Deeper Understanding of GNNs: The work provides a new lens through which to understand the intrinsic properties of GNNs and other neural networks. Recognizing that embedding dimensions are exchangeable can inform future model design, potentially leading to architectures that explicitly leverage or preserve this symmetry for specific tasks.
- Robustness: The fact that this symmetry is preserved through training, given standard initialization and optimization, suggests a fundamental robustness in how neural networks learn representations. Model builders can be confident that this property holds for their trained GNNs.
- Feature Engineering Simplification: For tasks relying on comparing or aggregating embedding dimensions, the knowledge of their identical marginal distributions could simplify feature engineering or downstream model design.
- For Deployers:
- New Deployment Opportunities: The increased efficiency opens up new deployment scenarios for graph-based AI. Applications requiring rapid graph matching, such as fraud detection, recommendation systems based on graph similarity, or real-time pattern recognition in network data, become more feasible.
- Tradeoffs and Limitations: While powerful, the method relies on certain assumptions. The i.i.d. initialization is standard, but potential breakage of symmetry can occur in specific, less common scenarios, such as when using a frozen encoder combined with skip connections that force embeddings into a pre-defined latent space that might not exhibit exchangeability. Deployers need to be aware of these architectural constraints and validate that their specific GNN configurations maintain the necessary symmetries. Additionally, the approximation of optimal transport by 1D slices might introduce a slight loss of precision compared to exact high-dimensional optimal transport, depending on the nature of the asymmetric distance functions used. The practical impact of this tradeoff (speed vs. precision) would need to be empirically evaluated for specific applications.
In essence, this work provides a powerful new tool for navigating the complexities of graph data. By revealing a fundamental probabilistic symmetry, it not only enriches our theoretical understanding of GNNs but also offers a tangible path towards building more efficient, scalable, and responsive graph-powered AI systems.
Key Takeaways
- Novel Probabilistic Symmetry: A new form of probabilistic symmetry, termed exchangeability, exists in neural network representations, including GNNs, where the probability density of embeddings is invariant to permutations along embedding coordinates.
- Preserved Through Training: This exchangeability is not merely an initialization artifact but is demonstrably preserved throughout the entire training process due to equivariant gradient propagation and common optimization algorithms like SGD and Adam.
- Broad Architectural Relevance: The symmetry holds for widely used architectures such as MLPs, Transformers, and GNNs, requiring only standard i.i.d. initialization and common gradient-based optimizers.
- Simplified Graph Retrieval: Exchangeability enables a significant simplification of the computationally intensive optimal transport problem for graph similarity search, transforming it into a tractable process involving 1D sorting and aggregation.
- Efficient Search Mechanisms: This simplification facilitates the use of fast vector similarity search techniques, such as Locality Sensitive Hashing (LSH), for efficient lookup of similar graphs in large corpora.
- Practical Impact: The work offers a pathway to build more efficient, scalable, and responsive graph-based AI systems, opening new possibilities for applications requiring rapid graph matching in fields like drug discovery, fraud detection, and recommendation systems.
About the Speaker(s)
The talk was presented by Kartik Nair. He is one of five listed authors for this work. The full list of contributors includes Indradyumna Roy, Soumen Chakrabarti, Anirban Dasgupta, and Abir De. Their affiliations were not explicitly stated in the transcript but are typical of academic or industry research teams presenting at ICLR.
Reviews
- Maya Iyer (Theoretical ML Researcher) — MUST SEE ★★★★★
→ Top-rated talks at International Conference on Learning Representations 2026
All talks from International Conference on Learning Representations 2026