InvGNN: Learning Invertible Node Representations on Graphs

Giannis Nikolentzos, Dimitrios Kelesis, Nikolaos NakisICML 2026

Graph Neural Networks (GNNs) have become the standard tool for solving machine learning problems on graphs. However, most traditional GNNs operate as a "one-way street." When a node aggregates information from its neighbors using standard functions like mean, max, or sum, information is inevitably lost. You can calculate the average of five numbers, but you cannot recover the original five numbers from that average alone.

InvGNN introduces a novel GNN architecture where every layer is mathematically invertible (bijective). By replacing standard "lossy" aggregators with a matrix exponential operator, the model enables exact density estimation, generative modeling, and extreme memory efficiency—all without sacrificing the structural expressive power of state-of-the-art GNNs.

The Challenge of Invertibility in GNNs

The inherent lack of invertibility in standard GNNs limits their applicability in several critical areas:

  1. Generative Modeling: It is notoriously difficult to build "Normalizing Flows"—a powerful class of generative models—on graphs if the underlying transformations are not reversible.
  2. Memory Constraints: Training deep neural networks typically requires storing "activations" for every layer to calculate gradients during backpropagation. Invertible networks bypass this by recomputing the input of a layer directly from its output during the backward pass, drastically reducing memory overhead.
  3. Density Estimation: Without a bijective mapping, researchers cannot use the "change-of-variables" formula to calculate the exact probability (likelihood) of a specific graph or node configuration. This exact likelihood is essential for rigorous outlier and anomaly detection.

Methodology: The InvGNN Architecture

The core innovation of InvGNN is the Invertible Graph Operator, which redesigns the aggregation and transformation phases of a GNN layer to guarantee reversibility.

  • The Matrix Exponential: Instead of standard adjacency-based aggregation, InvGNN uses the matrix exponential of the adjacency matrix, $\exp(A)$. Just as $e^x$ is never zero in calculus, the matrix version $\exp(A)$ is always invertible. Its inverse is simply $\exp(-A)$.
  • Global Context: Unlike standard GNNs that only aggregate from immediate neighbors, $\exp(A)$ considers walks of all lengths between nodes. It down-weights longer walks, creating a dense, global flow of information across the graph.
  • Invertible Feature Updates: To transform node features, the architecture uses $1 \times 1$ convolutions parameterized via LU decomposition. This ensures the weight matrix is always square and invertible.
  • Invertible Activations: The network employs activation functions with well-defined inverses, such as Tanh or LeakyReLU.
  • Scalability via Approximation: Because $\exp(A)$ results in a dense matrix (even for sparse graphs), computing it exactly scales at $O(n^3)$. To mitigate this, the authors introduce a Sparse Chebyshev Approximation to estimate the operator's action efficiently on larger, sparse graphs.

Theoretical Guarantees and Insights

A common concern with enforcing invertibility is that it might cripple the model's ability to learn complex patterns. However, InvGNN proves mathematically (Theorem 3.2) that a multi-layer InvGNN can match the expressive power of the 1-dimensional Weisfeiler-Leman (1-WL) algorithm. You do not have to sacrifice "intelligence" to achieve reversibility.

Furthermore, the choice of activation function plays a crucial role. The authors found that "analytic" functions (like Tanh or Sigmoid) allow the model to reach full expressive power with much smaller feature dimensions than piecewise linear functions like ReLU.

Invertibility also unlocks new avenues for interpretability. Because the model is reversible, researchers can "back-calculate" exactly how node features would need to change to flip a classification. On the Cora citation dataset, analyzing a misclassification revealed that the model essentially "diffuses" confusing information to its neighbors—providing a fascinating look into how GNNs handle uncertainty.

Empirical Results

The authors evaluated InvGNN across a diverse range of benchmarks, including graph classification (TUDataset, ogbg-molhiv), outlier detection, and generative tasks.

  • Classification Performance: InvGNN performed comparably to, and sometimes better than, well-established models like GIN and DGCNN. It achieved the highest accuracy on 3 out of 6 TUDataset benchmarks.
  • Outlier Detection: On the Disney dataset, InvGNN outperformed six other specialized outlier detection methods. This proves that its exact likelihood computation is a highly effective tool for identifying anomalous nodes.
  • Generative Success: The model successfully learned the underlying distribution of node features in synthetic bipartite graphs. It could generate new, realistic features simply by sampling from a standard Gaussian distribution and "running the model in reverse."

Limitations and Future Directions

The primary hurdle for InvGNN is computational complexity. While the Chebyshev approximation improves scalability, the exact $\exp(A)$ operator requires $O(n^2)$ memory to store and $O(n^3)$ to compute via eigenvalue decomposition. This makes the exact version of the model difficult to scale to massive graphs with millions of nodes.

Future work will likely focus on exploring more sophisticated Normalizing Flow architectures specifically tailored for graphs, as well as finding even more efficient ways to approximate the matrix exponential without losing the strict mathematical guarantees of invertibility.

Summary updated

BibTeX
@inproceedings{nikolentzos2026invgnn,
  author = {Giannis Nikolentzos and Dimitrios Kelesis and Nikolaos Nakis},
  title = {{InvGNN: Learning Invertible Node Representations on Graphs}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=okKDijCwRn},
}
Figure