Contrastive Multi-view Subspace Clustering via Tensor Transformers Autoencoder

Qianqian Wang, Zihao Zhang, Wei Feng, Zhiqiang Tao, Quanxue GaoAAAI 2025

Abstract

Multi-view Clustering (MVC) aims to group data objects characterized by multiple modalities or "views." Traditional deep MVC methods often fail to capture early interactions between views and suffer from the "false negative" trap in contrastive learning, where semantically similar samples are incorrectly penalized. This paper introduces the Tensor Transformers Autoencoder (TTAE), a framework that employs a novel Tensor Attention mechanism for cross-view feature interaction and an Adaptive Contrastive Learning module. By utilizing a self-expression layer to filter potential false negatives, TTAE achieves state-of-the-art performance across multiple benchmark datasets.

Introduction

In real-world applications, data is frequently multi-modal—for example, a video sequence containing visual frames, audio signals, and textual transcripts. Effectively clustering such data requires integrating information from all views. However, existing deep MVC approaches typically process each view independently through separate encoders, only merging them at the final stage. This late fusion misses critical complementary information. Furthermore, standard contrastive learning assumes any two distinct samples are negatives, which is often incorrect in a clustering context where multiple samples belong to the same category. TTAE addresses these gaps by fostering early view interaction and refining contrastive pairs.

Methodology

The TTAE architecture integrates three core components to enhance feature representation and clustering structure:

  1. Tensor Transformers Autoencoder: Unlike standard self-attention, the proposed Tensor Attention Layer treats features from all $V$ views as a 3D tensor. This allows the model to compute attention scores across views, forcing the encoder to learn globally informed features rather than view-specific ones.
  2. Self-Expression Layer: This layer learns a coefficient matrix $S$, where each data point is represented as a linear combination of others. This matrix serves as a structural roadmap of the data's subspace.
  3. Adaptive Contrastive Learning: To avoid the "false negative" trap, the model uses the matrix $S$ to identify the $k$-nearest neighbors for each sample. These neighbors are then excluded from the set of negative samples during contrastive training, preventing the model from pushing similar items apart.
The TTAE architecture, featuring the Tensor Attention Layer and Adaptive Contrastive Learning module.

Experimental Results

The authors evaluated TTAE on six diverse benchmark datasets, including Fashion-MNIST, ALOI-100, and Noisy-MNIST. TTAE consistently outperformed state-of-the-art (SOTA) methods like DMSC-UDL and D2MVSC.

  • Accuracy (ACC): On the challenging Noisy-MNIST dataset, TTAE achieved an accuracy of 94.53%, a significant improvement over the 72.15% achieved by D2MVSC.
  • Normalized Mutual Information (NMI): On ALOI-100, TTAE reached 88.72%, demonstrating its ability to handle high-dimensional data with many categories (100 classes).
  • Efficiency: Despite using Transformer-based components, TTAE remains computationally competitive, completing 200 epochs on Fashion-MNIST in approximately 20.92 seconds.

Discussion and Insights

A key finding is that letting views interact during the encoding phase leads to superior clustering. Visualizing the learned representations using t-SNE confirms that the Tensor Attention mechanism and adaptive filtering produce much tighter and more distinct clusters compared to raw feature representations.

t-SNE visualization comparing the initial features (Z) with the refined representation (Z-hat) learned by TTAE.

As shown in the visualization above, the transition from $Z$ to $\hat{Z}$ illustrates how the model successfully collapses intra-cluster variance while maximizing inter-cluster distance. The self-expression matrix effectively acts as a supervisory signal, creating a virtuous cycle where better features improve the subspace matrix, which in turn provides cleaner contrastive pairs.

Conclusion

TTAE represents a significant step forward in multi-view subspace clustering by combining the strengths of Transformers with adaptive contrastive learning. While the $O(N^2)$ complexity of the attention mechanism presents a scaling challenge for massive datasets, the model's robustness and accuracy make it a powerful tool for complex multi-modal data analysis. Future work may explore sparse attention mechanisms to further enhance scalability.

Summary updated

BibTeX
@inproceedings{wang2025contrastive,
  author = {Qianqian Wang and Zihao Zhang and Wei Feng and Zhiqiang Tao and Quanxue Gao},
  title = {{Contrastive Multi-view Subspace Clustering via Tensor Transformers Autoencoder}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i20.35419},
}
Figure