TL;DR
TopoMamba introduces a novel way to process simplicial complexes by treating the topological hierarchy of a node's neighborhood as a sequence. By leveraging the Mamba state-space model, the architecture captures complex, higher-order interactions (like triangles and tetrahedra) with linear scaling, significantly outperforming traditional message-passing methods in training speed while maintaining competitive accuracy.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) are the standard for relational data, but they have a "pairwise" blind spot: they primarily model interactions between two nodes at a time. In the real world, relationships are often $n$-body (e.g., a research collaboration between three people is more than just three separate pairs).
Topological Deep Learning (TDL) addresses this by using simplicial complexes—mathematical structures that explicitly represent nodes (0-cells), edges (1-cells), triangles (2-cells), and so on. However, TDL faces two major hurdles:
- Complexity: Defining how "messages" pass between different ranks (e.g., from a triangle down to a node) is mathematically complex and computationally heavy.
- Scalability: Existing simplicial models struggle with large datasets, and while Transformers could help, their quadratic complexity makes them impractical for large-scale graphs.
Methods
The authors propose TopoMamba, which replaces complex message-passing layers with a sequence-modeling approach.
- Clique Lifting: They first transform a standard graph into a simplicial complex by identifying cliques (fully connected subgraphs). A 3-node clique becomes a "triangle" cell.
- Sequence Creation: For every node, the model identifies all the higher-order structures (simplices) it belongs to. These are grouped by rank (e.g., all triangles the node is part of). Each group is aggregated into a single vector. The final input to the model is a sequence of these vectors ordered by rank.
- Bidirectional Mamba Backbone: Because Mamba is naturally "causal" (information flows one way), the authors use two Mamba blocks—one for the original sequence and one for the inverted sequence. This ensures that high-rank structures can influence nodes and vice versa in a single step.
- Node Incidence Batching: To handle large graphs, they introduce a "node incidence matrix" ($B^*$). This allows them to use standard, highly-optimized graph sampling algorithms to create mini-batches, a significant improvement over previous simplicial batching methods.
Datasets
The model was evaluated on a diverse set of benchmarks:
- Citation Networks: Cora, Citeseer, and Pubmed.
- Heterophilous Graphs: Minesweeper, Amazon Ratings, and Roman Empire (where connected nodes often have different labels).
- Regression Tasks: US-county-demos (predicting demographic attributes).
Key Insights and Ideas
- Topology as a Sequence: The core "aha moment" is realizing that the hierarchy of a simplicial complex (Node $\subset$ Edge $\subset$ Triangle) can be flattened into a sequence without losing the essential structural information.
- Breaking the Message-Passing Bottleneck: Traditional TDL requires multiple layers to propagate information across ranks. TopoMamba allows a node to "see" its relationship to a tetrahedron or a triangle in a single Mamba pass.
- Efficiency is a Feature: By using Mamba instead of Attention, the model achieves linear scaling relative to the sequence length (which is determined by the maximum rank of the simplices, usually a small constant like 3 or 4).
Key Results
- Competitive Accuracy: TopoMamba matches or exceeds the performance of state-of-the-art simplicial models like SCN and SCCNN. For example, on Cora, it achieved 86.50% accuracy compared to SCN's 84.71%.
- Massive Speedups: The most striking result is training efficiency. On the Pubmed dataset (full-batch), TopoMamba took only 22 seconds per epoch, while SCN took 286 seconds and SCCNN took 367 seconds. That is a 13x to 16x speedup.
- Scalability: Thanks to the new batching technique and Mamba’s efficiency, the model handles larger datasets (like Amazon Ratings with ~24k nodes and ~110k triangles) far more gracefully than previous TDL approaches.
Limitations and Future Work
- The "Roman Empire" Problem: The model struggled on the Roman Empire dataset. The authors attribute this to the dataset's "chain-like" structure (high diameter, low average degree), which makes local simplicial neighborhoods less informative.
- Clique Explosion: The "clique lifting" process can generate an overwhelming number of high-rank simplices in very dense graphs, which could lead to memory issues.
- Beyond Simplices: The authors suggest that this "sequence-of-ranks" approach could be extended to more general structures like cellular complexes or hypergraphs, potentially creating a unified architecture for all topological deep learning.
Summary updated