Normed Spaces for Graph Embedding

Diaaeldin Taha, Wei Zhao, J. Maxwell Riestenberg, Michael Strube

In the quest to map complex, discrete graphs into continuous spaces, researchers have recently flocked toward exotic Riemannian manifolds. We’ve seen hyperbolic spaces for hierarchies, spherical spaces for cycles, and symmetric positive definite (SPD) matrices for everything in between. But a recent paper, "Normed Spaces for Graph Embedding," suggests we might be overcomplicating things. By looking back at classical results from discrete geometry, the authors demonstrate that simple normed spaces—specifically $\ell_1$ and $\ell_\infty$—can outperform these complex manifolds while being significantly easier to compute.

TL;DR

This paper highlights normed spaces (like $\ell_1$ and $\ell_\infty$) as a flexible, computationally efficient alternative to popular Riemannian manifolds for graph embeddings. The authors show that these simpler spaces consistently achieve lower distortion and better performance on downstream tasks like link prediction and recommendation, all while requiring far fewer computational resources.

What Problem Does This Paper Address?

Graph representation learning aims to embed nodes into a continuous space that preserves the graph's original structure (like shortest-path distances). Euclidean space ($\ell_2$) is the default, but it often fails to capture non-Euclidean features like the exponential growth of trees or the rigid structure of grids.

To fix this, the field has moved toward "geometric inductive biases"—choosing embedding spaces whose inherent geometry matches the graph. However, working with Riemannian manifolds involves complex operations like transcendental functions and eigendecompositions. These are not only technically challenging to implement but also computationally expensive, making them impractical for large-scale graphs. The authors ask: Is there a simpler geometric framework that offers the same, or better, flexibility?

Methods

The authors propose using normed spaces ($\ell_p^d$) as the embedding target. They specifically focus on:

  • $\ell_1$ (Manhattan distance): Known for its "diamond-shaped" unit ball.
  • $\ell_\infty$ (Chebyshev distance): Known for its "square-shaped" unit ball.

Unlike Riemannian manifolds, which have a fixed curvature, normed spaces are highly flexible. Theoretical results from discrete geometry (like Bourgain’s theorem) guarantee that any finite metric space can be embedded into these normed spaces with relatively low distortion.

The authors use a global distance-based loss function to learn these embeddings, minimizing the difference between the graph's shortest-path distances and the distances in the chosen normed space. They then compare these against a suite of baselines, including Hyperbolic space, SPD matrices, and Siegel spaces.

Datasets

The study employs a diverse range of benchmarks:

  • Synthetic Graphs: 4D Grids (zero curvature), Trees (negative curvature), and products of trees and grids. They also test on Expander Graphs (Margulis, Paley, Chordal), which are notoriously difficult to embed.
  • Real-World Networks: USCA312 (city networks), BIO-DISEASOME (biological), CSPHD (citation), EUROROAD (road systems), and FACEBOOK (social).
  • Downstream Tasks: Cora and Citeseer for link prediction; ML-100K, LAST.FM, and MEETUP for recommender systems.

Key Insights and Ideas

  • The Power of $\ell_\infty$: The $\ell_\infty$ space emerged as a powerhouse. Because its unit ball is a hypercube, it can effectively "mimic" various geometries. It outperformed specialized manifolds even on structures those manifolds were designed for (like trees).
  • Computational Efficiency: Normed spaces avoid the heavy math of Riemannian manifolds. As shown in Figure 3, the training time for normed spaces grows much more slowly as graph size increases compared to SPD or Hyperbolic alternatives.
  • Low-Dimensional Success: Normed spaces achieve high fidelity at surprisingly low dimensions. The authors found that other spaces often required three times the dimensionality to match the performance of a 20-dimensional $\ell_\infty$ space.
  • Visualizing Distortion: As seen in Figure 1, $\ell_1$ and $\ell_\infty$ spaces show remarkably low distortion (indicated by the yellow color) across a synthetic graph, whereas Hyperbolic and SPD spaces struggle with certain edge types.
Embedding distortion across spaces on a small synthetic graph. The graph embeds well in the $\ell_1$ and $\ell_\infty$ normed spaces but endures distortion in other spaces.

Key Results

  • Graph Reconstruction: $\ell_\infty$ was the top performer across almost all synthetic and real-world datasets. For example, on the BIO-DISEASOME dataset, $\ell_\infty$ achieved an average distortion ($D_{avg}$) of 0.53, significantly better than Hyperbolic space (6.83).
  • Link Prediction: The $\ell_1$ normed space consistently outperformed others when integrated into standard Graph Neural Networks (GCN, GAT, GIN), proving that these geometric benefits translate to practical tasks.
  • Expander Graphs: Even on expander graphs—the "worst-case scenario" for embeddings—normed spaces maintained a significant lead in quality, as illustrated in Figure 6.
Training time vs. graph size. Normed spaces ($\ell_1, \ell_2, \ell_\infty$) exhibit the highest efficiency.

Limitations and Future Work

While the empirical results are strong, the authors note a few gaps:

  • Theoretical Gap: There is a disconnect between the existence proofs in discrete geometry and the learned embeddings produced by gradient descent. We don't yet fully understand why the optimizer finds these low-distortion solutions so effectively.
  • Interpretability: It’s harder to interpret "hierarchies" or "clusters" in an $\ell_\infty$ space compared to the clear visual intuition of a hyperbolic disk.
  • Scalability: While more efficient than manifolds, embedding massive graphs with millions of nodes still presents a challenge for global loss functions.

Future work could involve developing GNN layers specifically designed for $\ell_\infty$ geometry or applying these spaces to dynamic, evolving graphs.

Summary updated

BibTeX
@article{taha2023normed,
  author = {Diaaeldin Taha and Wei Zhao and J. Maxwell Riestenberg and Michael Strube},
  title = {{Normed Spaces for Graph Embedding}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=4E2XLydJiv},
}
Figure