Abstract
Obtaining sparse, interpretable representations of observable data is crucial in many machine learning and signal processing tasks. For data representing flows along the edges of a graph, an intuitively interpretable way to obtain such representations is to lift the graph structure to a simplicial complex: The eigenvectors of the associated Hodge-Laplacian, respectively the incidence matrices of the corresponding simplicial complex then induce a Hodge decomposition, which can be used to represent the observed data in terms of gradient, curl, and harmonic flows. In this paper, we generalize this approach to cellular complexes and introduce the flow representation learning problem, i.e., the problem of augmenting the observed graph by a set of cells, such that the eigenvectors of the associated Hodge Laplacian provide a sparse, interpretable representation of the observed edge flows on the graph. We show that this problem is NP-hard and introduce an efficient approximation algorithm for its solution. Experiments on real-world and synthetic data demonstrate that our algorithm outperforms state-of-the-art methods with respect to approximation error, while being computationally efficient.
Introduction
Edge flows—data representing movement along the edges of a graph—are ubiquitous in modern networks, from urban traffic and financial transactions to data packet routing. Analyzing these flows often relies on the Hodge decomposition, which partitions a flow into three distinct components: gradient flows (moving from high to low potential), harmonic flows (global circulation), and curl flows (local circulation around "holes" or faces).
Traditionally, these faces are modeled as triangles in a simplicial complex. However, many real-world networks, such as grid-like city streets, lack triangles. Forcing a square city block into a triangular representation leads to non-interpretable and inefficient models. This paper addresses the flow representation learning problem: identifying a sparse set of polygonal cells (2-cells) that best represent observed edge flows without being restricted to triangles.
Methodology: Greedy Cell Inference
Because finding an optimal set of cells to minimize flow representation error is NP-hard, the authors propose a greedy approximation algorithm. The algorithm iteratively augments a graph with 2-cells, selecting the one that most reduces the "unexplained" harmonic portion of the flow in each step.
To manage the exponential number of possible cycles in a graph, the authors introduce two key heuristics for candidate generation:
- Maximum Spanning Tree (MST): This builds a spanning tree based on edges with the highest flow; any edge not in the tree completes a candidate cycle.
- Similarity Spanning Trees: This "secret sauce" uses k-means clustering on flow vectors across different time samples. By grouping edges that behave similarly, the algorithm identifies functional loops and builds spanning trees tailored to those specific clusters.
Experimental Results
The approach was validated on synthetic data and real-world traffic networks, including NYC taxi trips and transportation data from cities like Anaheim and Berlin.
Key Findings
- Superior Sparsity: The method achieves lower approximation error with significantly fewer cells than triangle-based benchmarks. In NYC taxi data, 55 polygonal cells achieved the same error reduction as 100 triangles.
- Robustness to Noise: As shown in synthetic tests, the similarity-based heuristic consistently outperforms the max-flow heuristic in recovering ground-truth cells, particularly as noise levels increase.
- Computational Efficiency: Despite the underlying complexity, the greedy approach scales effectively, processing graphs with up to 100,000 vertices in under 100 seconds.
Conclusion
By moving beyond simplicial complexes to general cellular complexes, this work provides a more natural and interpretable framework for flow analysis. The proposed greedy algorithm effectively identifies the underlying structure of networks where traditional methods fail. Future directions include integrating this cell inference directly into deep learning architectures, such as Cell Complex Neural Networks (CCNNs), to enhance predictive modeling on graphs.
Summary updated