Manuscript Offprint

arXiv:2610.12247

Batch Before You Lift: Scalable Topological Deep Learning on Large Graphs

David Leko, Luka Benić, Guillermo Bernárdez, Nina Miolane, Olga Fink, Lev Telyatnikov

ABSTRACT

Topological Deep Learning extends graph-based learning to higher-order domains, such as hypergraphs, cellular, and simplicial complexes. These domains are typically constructed from patterns in an input graph through a process of graph lifting. Full-domain training constructs and stores the complete lifted representation before model execution. On large and dense datasets like Reddit (233k nodes and 57.3M edges), this global materialization becomes a severe computational bottleneck, often rendering training infeasible. To address this limitation, we introduce Cluster-TNN, a domain-agnostic framework that avoids this bottleneck by lifting locally instead. After partitioning the input graph during preprocessing, at runtime Cluster-TNN dynamically samples groups of node clusters, reconstructs their induced subgraphs to form mini-batches, and applies the chosen lifting within each mini-batch. Retaining all edges among sampled nodes preserves the connectivity needed to construct higher-order structures across clusters, producing topological mini-batches that existing Topological Neural Networks can process directly. Across 21 matched comparisons with full-graph execution, Cluster-TNN reduces peak GPU memory in every configuration, by 83.2% on average while maintaining competitive predictive performance. Notably, such a reduction enables, to our knowledge, the first training of multiple different higher-order Topological Neural Networks on large datasets such as Reddit and OGBN Products. These results establish Cluster-TNN as a general strategy for scaling Topological Deep Learning beyond the limitations of global domain construction.

1 INTRODUCTION

Graphs are a dominant representation for relational learning: nodes encode entities and edges encode pairwise relations. Graph Neural Networks (GNNs) learn on such structures across diverse machine learning tasks (Kipf & Welling, 2017; Hamilton et al., 2017a; Gilmer et al., 2017; Bronstein et al., 2021; Corso et al., 2024). However, many systems involve multi-way interactions, such as coauthorship groups, molecular rings, or many-body couplings, that pairwise graphs cannot represent explicitly. Topological Deep Learning (TDL) extends relational learning to higher-order domains, such as hypergraphs, cellular, and simplicial complexes, on which Topological Neural Networks (TNNs) operate (Papamarkou et al., 2024; Hajij et al., 2023; Papillon et al., 2024). By explicitly representing higher-order relations, these domains provide complementary inductive biases for systems whose structure extends beyond pairwise connectivity.

However, scalability in higher-order domains remains a central challenge for TDL (Papamarkou et al. (2024), Open Problem 6). For graph-supported data, a lifting maps patterns in the input graph, such as neighbourhoods, cliques, or cycles, to explicit higher-order elements and their incidence relations. This lifting determines both which higher-order relations become available to the model.

*Equal contribution. For individual author contributions, see the Author contributions section. Correspondence: david.leko@epfl.ch and lbenic@irb.hr.

†^{\dagger}Research was completed prior to Capital One.

Figure

Figure 1: Comparison of Cluster-TNN training (ours) and standard full-graph TDL training. Both workflows start from the same featured undirected graph. a Cluster-TNN partitions the graph once per run and at each training step samples up to q clusters, reconstructs their induced subgraph, and performs lifting and model execution only on the resulting mini-batch. b Standard full-graph training instead constructs and processes the complete lifted domain throughout training. c Trained models support both mini-batch and full-graph inference.

and the size of the resulting computational domain. Because the number of lifted elements depends on graph connectivity rather than node count alone, the lifted domain can be orders of magnitude larger than the input graph. For example, the Reddit dataset has approximately 233k nodes and 57.3M edges, yet clique-complex lifting produces approximately 8.36B simplicial 2-cells (filled triangles). Enumerating these elements, their features, and their incidence relations may exceed available memory before training begins, making full-domain construction a scalability bottleneck.

Existing mini-batching strategies do not fully address this bottleneck because they typically intervene only after the higher-order domain has been constructed. Sampling or partitioning an already lifted hypergraph, simplicial complex, or cell complex can reduce the memory required by individual forward and backward passes, but it would still assume that the complete set of higher-order elements and their connectivity can be enumerated or materialized beforehand. Consequently, mini-batched model execution may remain infeasible when the preceding lifting operation exceeds the available computational resources. Moreover, batching a lifted representation generally requires domain-specific procedures, limiting reuse across liftings and TNN architectures.

On the other hand, performing mini-batching before lifting could address both limitations: it would restrict lifting to the data required for the current optimization step and perform batching on the graph shared by the different higher-order constructions. However, this change in execution order introduces a structural challenge: if graph partitions are lifted independently, edges crossing partition boundaries are omitted. Consequently, higher-order structures supported by nodes in different partitions, including neighborhood hyperedges, cliques, and cycles, may disappear from the training data. Independently lifting small graph fragments can therefore reduce computational cost at the expense of systematically altering the higher-order domain observed by the model.

We address this gap by introducing Cluster-TNN, a batch-before-lift strategy that avoids full-domain materialization while preserving all original edges among the sampled nodes. As illustrated in Figure 1, Cluster-TNN partitions the graph once into disjoint node clusters and samples a group of clusters at each optimization step. The proposed workflow then reconstructs the subgraph induced by the combined nodes of these clusters, and retains every original edge among its nodes, also including edges between clusters. Lastly, Cluster-TNN applies the requested lifting only to this reconstructed graph mini-batch and passes the resulting higher-order domain directly to a TNN.

Induced-subgraph reconstruction is central to the approach: unlike lifting each sampled cluster independently, it restores the edges connecting jointly sampled clusters. Under lifting compatibility (Sec. 3.3), a higher-order structure can therefore be recovered whenever all of its supporting nodes occur in the same batch. By recombining clusters across epochs, Cluster-TNN provides repeated opportunities to observe higher-order structures spanning different clusters.

Contributions. The main features and contributions of our work include:

• Batch-before-lift strategy. We introduce Cluster-TNN, a general strategy for scaling TDL beyond the limits imposed by global topology materialization. The same batching mechanism supports different graph-to-higher-order liftings and existing TNN architectures, which we evaluate on Reddit and OGBN Products.

• Cross-cluster structural recovery of Cluster-TNN. We characterize higher-order structural recovery under repeated cluster recombination (Sec. 3.3) and report empirical measurements of observable hyperedges, cellular 2-cells, and simplicial 2-cells (Figure 2 and Appendix C.13).

• Scalability-computation trade-off via extensive evaluation. We empirically quantify the trade-off introduced by batch-before-lift in terms of full-graph preprocessing feasibility and cost, peak CPU and GPU memory, training time and predictive performance. In particular, across 21 matched model-dataset comparisons, Cluster-TNN reduces peak GPU memory in every setting by 83.2% on average, while maintaining competitive predictive performance.

• Reusable open-source integration. We implement Cluster-TNN in TopoBench (Telyatnikov et al., 2025a), reusing existing liftings and models across different higher-order domains without requiring architecture-specific modifications. Code is available in our anonymous repository.

References (37)