arXiv:2609.35527cs.LGSep 2026

Manuscript Offprint

arXiv:2609.35527

GeoGAE: Scalable Graph-Level Autoencoding via Hyperball Cloud Representations

Radosław Nowak, Anna Bielawska, Bogusz Stefańczyk, Maciej Sanocki, Paweł Wawrzyński

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Embedding structured objects into Euclidean spaces has enabled a wide range of successful machine learning applications. Such objects include words, documents, image patches, time series, and graph nodes. In contrast, embedding entire graphs remains a challenging problem. Existing methods either sustain the original order of the graph nodes or match the output nodes to the input ones, both of which create scalability issues. In this work, we propose a graph representation as a cloud of hyperballs, which allows us to define a specific—typically unique—node ordering. Based on this representation, we propose GeoGAE, an autoencoder, in which the Transformer encoder translates a hyperball cloud into a graph-level embedding, and the Transformer decoder translates the graph-level embedding back into the graph. This formulation enables the model to capture both the global graph structure and local relational patterns. We evaluate our method on multiple graph datasets, spanning various domains. The results demonstrate effectiveness of our method in encoding and reconstructing graphs from their embeddings.

1 INTRODUCTION

Fixed-size embeddings have proven very useful in a number of domains. Token embeddings are invaluable for natural language processing (Su et al., 2024). Image embeddings are indispensable for image generation (Ramesh et al., 2022). Time series embeddings are a useful tool in prediction (Foumani et al., 2024). Embeddings are especially useful if any object in its domain can be reconstructed from its fixed-size vector representation. Then, the generation, transformation and optimization of these objects boil down to an equivalent operation in RmR^{m}, for a fixed m.

The field of graph neural networks (GNNs; Corso et al. 2024; Khemani et al. 2024) provides a plethora of methods for conditional graph generation (Ayadi et al., 2024; Bian et al., 2024; Gao et al., 2025; Hou et al., 2024; Ketata et al., 2025; Li et al., 2025; Liu et al., 2025; Wang et al., 2025; Wen & Yu, 2025; Wesego, 2025; You et al., 2024; Zhou et al., 2024). However, the main purpose of these methods is typically to generate a diverse set of graphs possessing certain properties, rather than to reconstruct a specific, unique graph from a given latent embedding. While some of these methods (Wesego, 2025; You et al., 2024; Zhou et al., 2024) use node (and edge) embeddings as an auxiliary graph representation that could be padded to form a graph-level vector, this approach establishes a strict limit on the graph size.

Few works focus on a reversible, scalable transformation of fixed-size vectors into graphs. Methods proposed by Małkowski et al. (2023) and Bresson et al. (2026) include the node order in the graph embedding. In contrast, Winter et al. (2021) and Krzakala et al. (2025) ensure the graph embedding is independent of the node order, but at the cost of requiring complex matching mechanisms between the input and output graph nodes.

In this paper, we bridge this gap by designing a graph representation as a cloud of hyperballs in Euclidean space. This allows us to define a unique order of nodes. Our proposed graph-level autoencoder, intuitively described in Figure 1, uses the Transformer encoder to transform the sequence of nodes represented that way into a fixed-size embedding, and the Transformer decoder to transform the embedding back to the sequence of hyperballs. The hyperballs are translated into the discrete graph structure with a static rule. While representing nodes in 2- or 3-dimensional Euclidean space is a technique applied for molecular graph generation (Ketata et al., 2025), we generalize the dimensionality to any d∈Nd \in \mathbb{N}.

Contributions. The main contributions of this work are threefold:

  1. Continuous Hyperball Representation: We introduce a continuous graph representation as hyperball clouds in Euclidean space, enabling canonical and deterministic node ordering.

  2. Scalable Graph Autoencoder: We propose GeoGAE, a Transformer-based autoencoder that compresses variable-sized hyperball clouds into fixed-size latent vectors z∈Rmz \in \mathbb{R}^m and reconstructs original graph topologies using a static geometric rule.

  3. Empirical Superiority: We conduct extensive evaluations across diverse benchmark domains, demonstrating that GeoGAE achieves state-of-the-art topology reconstruction and scales to large graphs where existing baselines suffer from out-of-memory errors or severe degradation.