[Paper Review] DeepCut: Unsupervised Segmentation using Graph Neural Networks Clustering
DeepCut proposes a lightweight Graph Neural Network (GNN) that replaces classical clustering in unsupervised image segmentation by directly using raw deep features and pair-wise affinities, enabling end-to-end, k-less clustering via correlation clustering loss. It achieves state-of-the-art performance in object localization, segmentation, and semantic part segmentation without post-processing or manual cluster count specification.
Image segmentation is a fundamental task in computer vision. Data annotation for training supervised methods can be labor-intensive, motivating unsupervised methods. Current approaches often rely on extracting deep features from pre-trained networks to construct a graph, and classical clustering methods like k-means and normalized-cuts are then applied as a post-processing step. However, this approach reduces the high-dimensional information encoded in the features to pair-wise scalar affinities. To address this limitation, this study introduces a lightweight Graph Neural Network (GNN) to replace classical clustering methods while optimizing for the same clustering objective function. Unlike existing methods, our GNN takes both the pair-wise affinities between local image features and the raw features as input. This direct connection between the raw features and the clustering objective enables us to implicitly perform classification of the clusters between different graphs, resulting in part semantic segmentation without the need for additional post-processing steps. We demonstrate how classical clustering objectives can be formulated as self-supervised loss functions for training an image segmentation GNN. Furthermore, we employ the Correlation-Clustering (CC) objective to perform clustering without defining the number of clusters, allowing for k-less clustering. We apply the proposed method for object localization, segmentation, and semantic part segmentation tasks, surpassing state-of-the-art performance on multiple benchmarks.
Motivation & Objective
- To address the limitation of classical clustering methods that discard raw deep features after computing pair-wise affinities.
- To enable end-to-end unsupervised image segmentation using a GNN that jointly optimizes for both raw features and affinity-based objectives.
- To achieve k-less clustering by formulating correlation clustering as a self-supervised loss function, eliminating the need to predefine the number of clusters.
- To perform semantic part segmentation across multiple images using test-time optimization without additional post-processing.
- To demonstrate superior performance in object localization, segmentation, and part-level segmentation compared to state-of-the-art unsupervised methods.
Proposed method
- A lightweight GNN is trained using a self-supervised loss derived from classical graph clustering objectives, specifically normalized cut and correlation clustering.
- The GNN takes both raw deep features from a pre-trained Vision Transformer (DINO ViT) and pair-wise affinities as input, preserving high-dimensional feature information.
- The correlation clustering (CC) objective is used as a loss function, enabling k-less clustering by modeling repulsion between dissimilar nodes via negative affinities.
- A k-sensitivity hyperparameter α is introduced to control cluster count by tuning the strength of repulsion forces in the CC functional.
- A two-stage pipeline is employed: first separating foreground and background, then applying GNN-based clustering independently to each, improving segmentation accuracy.
- Test-time optimization is applied per image to enable semantic part segmentation without requiring model fine-tuning or post-processing.

Experimental results
Research questions
- RQ1Can a GNN be effectively trained as an end-to-end unsupervised image segmentation model by leveraging classical graph clustering objectives as self-supervised losses?
- RQ2How can raw deep features be directly integrated into the clustering process to improve segmentation performance beyond pair-wise affinity-based methods?
- RQ3Can correlation clustering be optimized via a GNN to enable k-less clustering in image segmentation without prior knowledge of the number of clusters?
- RQ4To what extent does the proposed method achieve implicit semantic part segmentation across diverse images without post-processing?
- RQ5How does the k-sensitivity parameter α influence cluster count and segmentation quality across different datasets and models?
Key findings
- DeepCut achieves state-of-the-art performance in unsupervised object localization, segmentation, and semantic part segmentation across multiple benchmarks.
- The method surpasses classical baselines such as spectral clustering and connected components, particularly in variance and accuracy, with spectral clustering showing high variance and connected components failing to separate clusters.
- On the Fashion Product Images Dataset, DeepCut with correlation clustering loss achieved the highest classification purity and lowest standard deviation across 10 repeated experiments with 3, 4, and 5 classes.
- The k-sensitivity parameter α allows control over cluster granularity: smaller values yield finer partitions while preserving consistent clustering of similar objects like people and bikes across different α settings.
- The GNN-based approach enables implicit semantic part segmentation without post-processing, as demonstrated by consistent grouping of semantically similar image parts across different images.
- The use of correlation clustering as a differentiable loss function enables optimization of a previously intractable objective with classical tools, demonstrating the feasibility of end-to-end training for k-less clustering.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.