Abstract
Tensor Spectral Clustering (TSC) is a powerful tool for capturing high-order similarities in complex data, yet its practical application has been hindered by the "memory wall" and suboptimal two-stage integration processes. This paper introduces TSC-Net, a deep neural network framework that leverages stochastic mini-batch optimization and a novel one-stage ensemble objective to make TSC scalable. By calculating only the necessary sub-tensors per mini-batch, TSC-Net reduces memory requirements by over 99% and enables high-order clustering on large-scale datasets. Experimental results demonstrate superior accuracy and scalability across diverse benchmarks, including bioinformatics and image datasets.
Introduction
Spectral Clustering (SC) is a fundamental technique in unsupervised learning, typically relying on pairwise similarity matrices. However, in high-dimensional or noisy environments—such as genomics or complex image sets—pairwise comparisons often fail to capture the underlying manifold structure. Tensor Spectral Clustering (TSC) addresses this by utilizing "multi-wise" similarities (e.g., 3rd or 4th-order relationships).
Despite its theoretical advantages, TSC faces two major challenges:
- The Memory Wall: Storing a $K$-th order affinity tensor for $m$ samples requires $O(m^K)$ space, making it computationally prohibitive for large datasets like MNIST (70,000 samples).
- Suboptimal Integration: Traditional methods often compute embeddings for different tensor orders separately and average them, a two-stage process that fails to find a globally optimal consensus embedding.
Methodology
TSC-Net is a deep neural network designed to map input samples directly to a consensus spectral embedding. The framework introduces three key innovations:
Stochastic Mini-batch Optimization
Instead of constructing the full affinity tensor upfront, TSC-Net calculates only the small "sub-tensors" required for a specific mini-batch during training. This reduces the memory complexity from $O(m^K)$ to $O(m_b^K)$, where $m_b$ is the batch size (e.g., 128). This shift allows TSC to scale to datasets previously considered unreachable.
One-Stage Ensemble Objective
The network is trained using a joint loss function that incorporates 2nd, 3rd, and 4th-order affinity tensors simultaneously. This "ensemble" approach allows the model to learn a single, optimized embedding that satisfies multiple similarity constraints at once, rather than relying on post-hoc averaging.
Orthogonalization Layer
To satisfy the mathematical constraints of spectral clustering (where the embedding $Y$ must satisfy $Y^T Y = I$), the authors implement a specialized layer using Cholesky decomposition. This ensures the network's output remains a valid cluster indicator throughout training.
Experimental Results
The model was evaluated on six diverse benchmark datasets, including bioinformatics (Lung, GLI-85), images (MNIST, USPS), and text (Reuters).
Performance and Scalability
TSC-Net demonstrated significant improvements in both accuracy and efficiency:
- Massive Memory Savings: For a dataset of 1,000 samples, TSC-Net required only 1.25 GB of RAM, compared to 931.32 GB for previous state-of-the-art TSC methods—a reduction of over 99%.
- Superior Accuracy: On the Lung dataset, TSC-Net achieved 93.7% accuracy, significantly outperforming the previous TSC best of 80.3%. It also achieved 97.9% accuracy on the full MNIST dataset, a feat previously impossible for high-order methods due to memory constraints.
- Multi-wise Advantage: Ablation studies confirmed that 3rd and 4th-order tensors capture spatial structures missed by pairwise matrices. Combining these orders consistently yielded the best results.
Conclusion
TSC-Net transforms Tensor Spectral Clustering from a high-memory, small-data algorithm into a scalable, low-memory solution for large-scale data. Future work will focus on reducing computational redundancy between different tensor orders and exploring dynamic affinity metrics that can be refined during the training process.
Summary updated