Scalable Algorithm for Higher-Order Co-Clustering via Random Sampling

Daisuke Hatano, Takuro Fukunaga, Takanori Maehara, Ken-ichi Kawarabayashi

Introduction

Clustering is a fundamental task in data analysis, but as datasets grow in complexity, simple one-dimensional grouping is often insufficient. Co-clustering (or biclustering) addresses this by simultaneously grouping multiple dimensions of a dataset—for instance, identifying groups of users who share preferences for specific categories of products. While co-clustering is well-established for two-dimensional matrices, modern data frequently takes the form of "higher-order" tensors (e.g., user-product-time arrays).

Existing methods for tensor co-clustering face significant hurdles. Spectral methods rely on finding eigenvectors, which is NP-hard for tensors. Traditional factorization techniques like PARAFAC often suffer from poor scalability, hitting memory limits or becoming computationally prohibitive as the number of dimensions (the "order") increases. This paper proposes a scalable randomized algorithm that bypasses these limitations by reframing tensor co-clustering as a hypergraph partitioning problem.

Methodology: Tensors as Hypergraphs

The core innovation lies in mapping an order-$m$ tensor to an $m$-uniform hypergraph. In this representation, vertices correspond to the indices of each dimension, and hyperedges represent non-zero entries in the tensor. The weight of each hyperedge is determined by the value of the corresponding tensor entry.

Mapping an order-3 tensor to a 3-uniform hypergraph.

By establishing this duality, the authors can leverage combinatorial optimization techniques rather than complex linear algebra. They adapt the Karger-Stein algorithm, a randomized method originally designed for finding minimum cuts in graphs, to work on hypergraphs. The process involves:

  1. Random Sampling: Selecting a hyperedge based on its weight.
  2. Contraction: Merging all vertices connected by that hyperedge into a single "super-vertex."
  3. Iteration: Repeating this until a small number of vertices remain, which then define the final clusters.

To ensure practical performance, two heuristics are introduced: Distorted Sampling, which prevents the premature merging of large clusters, and Balancing Merge, which ensures the resulting clusters are of comparable size, avoiding the common "singleton" issue where one cluster dominates the others.

Experimental Evaluation and Scalability

The algorithm's performance was tested against synthetic data and massive real-world datasets. A key highlight is the processing of an Amazon review word co-occurrence tensor containing over 269 million non-zero elements. While standard factorization methods like PARAFAC failed due to memory exhaustion or excessive runtime, the proposed randomized approach successfully processed the data in approximately 16 minutes.

In terms of quality, measured by Normalized Mutual Information (NMI), the algorithm proved competitive with state-of-the-art methods for low-order tensors and significantly outperformed them as the order of the tensor increased (e.g., order-5 tensors).

Real-World Application: NYC Citi Bike Data

To demonstrate qualitative utility, the authors applied the algorithm to NYC Citi Bike trip data, structured as a 3D tensor (start station, end station, and time). The algorithm successfully identified distinct temporal and spatial patterns.

Temporal patterns identified in NYC Citi Bike trip data.

As shown in the figure above, different clusters represent distinct usage profiles. For example, one cluster might peak during the morning commute (around 8 AM), while another represents evening activity or recreational routes. This demonstrates the algorithm's ability to extract meaningful, interpretable structures from high-dimensional, noisy real-world data.

Conclusion

By combining hypergraph theory with randomized algorithms, this work provides a robust framework for higher-order co-clustering. The approach is "embarrassingly parallel" and scales linearly with the number of non-zero elements, making it suitable for modern big data environments. Future work will focus on automatically determining optimal hyperparameters and extending the model to handle tensors with negative weights.

Summary updated

BibTeX
@inproceedings{hatano2017scalable,
  author = {Daisuke Hatano and Takuro Fukunaga and Takanori Maehara and Ken-ichi Kawarabayashi},
  title = {{Scalable Algorithm for Higher-Order Co-Clustering via Random Sampling}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.10914},
}
Figure