Leveraging tensor kernels to reduce objective function mismatch in deep clustering

Daniel J. Trosten, Sigurd Løkse, Robert Jenssen, Michael Kampffmeyer · DOI

TL;DR

This paper tackles "Objective Function Mismatch" (OFM) in deep clustering, a problem where optimizing one objective (like reconstruction) harms another (like clustering). They introduce "Unsupervised Companion Objectives" (UCOs) that use novel tensor kernels to better capture the structure of intermediate representations, leading to improved clustering performance and reduced OFM.

What Problem Does This Paper Address?

Deep clustering aims to group data points using deep neural networks without explicit labels. A common approach involves using autoencoders, where the network learns to reconstruct the input while simultaneously learning a clustering. However, the paper highlights a critical issue: "Objective Function Mismatch" (OFM). This occurs when optimizing the autoencoder's reconstruction objective negatively impacts the clustering objective. Essentially, the network might learn representations that are good for reconstruction (e.g., preserving fine-grained details) but not ideal for clustering (e.g., capturing high-level semantic similarities). This mismatch can lead to suboptimal clustering performance. Previous methods for measuring OFM, like "Feature Drift" (FD), have limitations, such as being trivially minimized by making losses proportional. The authors aim to provide a more robust way to measure OFM and introduce a novel method to reduce it.

Methods

The core contribution is the Unsupervised Companion Objectives (UCOs). These are auxiliary loss functions designed to be added to existing deep clustering models. UCOs are applied to intermediate representations within the neural network, encouraging them to be both separable and compact at each stage.

The novelty lies in the use of structure-exploiting tensor kernels. Unlike traditional kernels that might vectorize tensor representations (losing structural information like spatial relationships), these tensor kernels are designed to work directly with tensors of arbitrary rank. This allows them to better capture the inherent structure of representations, especially from convolutional neural networks. The paper proposes a specific tensor kernel based on the Grassmannian manifold and orthogonal projection operators.

To quantify OFM, the authors introduce R-OFM (Regression-based Objective Function Mismatch). This method uses a regression model to relate auxiliary loss values to clustering performance metrics over training iterations. It provides two key metrics: R-OFMslope (how performance changes with auxiliary loss) and R-OFMR2 (the correlation between auxiliary loss and performance), offering a more nuanced view than previous methods.

Datasets

The paper evaluates their methodology on a variety of benchmark datasets:

  • Image Datasets: MNIST, Fashion-MNIST, COIL-100, USPS. These datasets represent different types of image data, from grayscale digits to color object images.
  • Vector Datasets: Reuters (news stories), 10 x 73k (RNA-transcripts). These datasets are used to demonstrate the versatility of the proposed methods beyond image data.

No new benchmarks were introduced; the focus was on evaluating existing models on established datasets.

Key Insights and Ideas

  • OFM is a real problem in autoencoder-based deep clustering: The paper provides strong evidence that the common practice of using autoencoders can indeed lead to a detrimental mismatch between reconstruction and clustering objectives.
  • Structure matters in intermediate representations: Simply vectorizing tensor representations before applying kernels is suboptimal. Tensor kernels that respect the inherent structure (e.g., spatial dimensions in CNNs) are crucial for effective auxiliary objectives.
  • UCOs offer a flexible solution: The proposed UCOs can be easily integrated into various deep clustering architectures without significant modifications, making them broadly applicable.
  • R-OFM provides a better OFM metric: The new regression-based OFM measure is more informative than previous methods, capturing the relationship between auxiliary loss and performance more accurately.
  • "Right amount" of OFM: The paper suggests that OFM isn't always bad; there might be an optimal level of mismatch that can even benefit performance, similar to regularization in supervised learning.

Key Results

  • Improved Clustering Performance: Models augmented with UCOs (specifically DDC-UCOT) consistently outperformed their base counterparts (e.g., DDC) and autoencoder-based models (e.g., DDC-AE) across multiple datasets, achieving higher ACC and NMI scores. For instance, DDC-UCOT achieved a significantly higher ACC on MNIST (96.0%) compared to DDC-AE (87.9%).
  • Reduced OFM: DDC-UCOT demonstrated lower R-OFMslope values (indicating better correlation between decreasing auxiliary loss and increasing performance) and higher R-OFMR2 values (indicating a stronger relationship) compared to DDC-AE and DDC-UCON across various datasets.
  • Tensor Kernels Outperform Naïve Kernels: DDC-UCOT (using tensor kernels) generally showed better results than DDC-UCON (using naïve, vectorized kernels), highlighting the benefit of structure-aware kernels.
  • Versatility: The UCOs were shown to improve performance not only with the DDC model but also with DEC-based models, demonstrating their general applicability.
  • Visual Evidence: t-SNE plots of intermediate representations showed that DDC-UCOT produced more compact and separable clusters, visually supporting the method's effectiveness.

Limitations and Future Work

  • Label Dependency of OFM Metric: The current R-OFM measure relies on ground-truth labels (e.g., clustering accuracy) to assess performance. The authors suggest future work to incorporate unsupervised internal cluster validity indices to make R-OFM label-independent.
  • Computational Overhead: While tensor kernels offer advantages, they introduce additional computational cost, particularly due to SVD computations. Future research could explore alternative distance functions or kernel formulations to mitigate this.
  • Optimal OFM Balance: Designing models with the "right amount" of OFM remains a key challenge. Further research is needed to precisely balance main and auxiliary losses for optimal performance.

Summary updated

BibTeX
@article{trosten2024leveraging,
  author = {Daniel J. Trosten and Sigurd Løkse and Robert Jenssen and Michael Kampffmeyer},
  title = {{Leveraging tensor kernels to reduce objective function mismatch in deep clustering}},
  journal = {Pattern Recognition},
  year = {2024},
  doi = {10.1016/j.patcog.2023.110229},
}
Figure