[Paper Review] Towards Fine-grained Visual Representations by Combining Contrastive Learning with Image Reconstruction and Attention-weighted Pooling
This paper proposes ConRec, a self-supervised learning framework that enhances fine-grained visual representations by jointly optimizing contrastive learning with image reconstruction and attention-weighted pooling. By combining a U-Net-based encoder-decoder with a contrastive projection head, ConRec outperforms SimCLR and SimCLR with attention pooling on fine-grained classification benchmarks, demonstrating improved feature granularity and robustness to local perturbations.
This paper presents Contrastive Reconstruction, ConRec - a self-supervised learning algorithm that obtains image representations by jointly optimizing a contrastive and a self-reconstruction loss. We showcase that state-of-the-art contrastive learning methods (e.g. SimCLR) have shortcomings to capture fine-grained visual features in their representations. ConRec extends the SimCLR framework by adding (1) a self-reconstruction task and (2) an attention mechanism within the contrastive learning task. This is accomplished by applying a simple encoder-decoder architecture with two heads. We show that both extensions contribute towards an improved vector representation for images with fine-grained visual features. Combining those concepts, ConRec outperforms SimCLR and SimCLR with Attention-Pooling on fine-grained classification datasets.
Motivation & Objective
- To address the limitation of contrastive learning methods like SimCLR in capturing fine-grained visual features due to insufficient local detail sensitivity.
- To improve representation quality for fine-grained classification by integrating image reconstruction and attention mechanisms into the contrastive framework.
- To demonstrate that combining reconstruction and contrastive learning leads to more discriminative, high-granularity features for complex visual categories.
- To validate the effectiveness of the proposed architecture on fine-grained datasets, including medical imaging and fine-grained visual categorization tasks.
Proposed method
- ConRec uses a dual-head U-Net encoder-decoder architecture with skip connections to process masked input images and produce both reconstructed images and contrastive representations.
- The model optimizes two losses in tandem: a contrastive loss using momentum contrastive learning (MoCo-style) and a pixel-wise mean squared error reconstruction loss.
- Attention-weighted pooling is applied to the encoder features before projection, enabling the model to focus on salient local regions during representation learning.
- For each of N unlabeled images, two augmented masked views are generated, and the model performs both reconstruction and contrastive learning simultaneously on the 2N views.
- The final representation vector is produced by a projection head applied to the attention-pooled features, enabling downstream contrastive optimization.
- The overall loss is a weighted sum: $\mathcal{L}_{\text{ConRec}} = \mathcal{L}_c + \alpha \cdot \mathcal{L}_r$, where $\alpha$ balances the two objectives.
Experimental results
Research questions
- RQ1Can the integration of self-reconstruction and attention pooling improve the discriminative quality of contrastive representations for fine-grained classification?
- RQ2Does joint optimization of contrastive and reconstruction objectives lead to better generalization on fine-grained visual recognition tasks compared to standard SimCLR?
- RQ3To what extent does attention-weighted pooling enhance feature localization and robustness to local image perturbations in self-supervised representation learning?
- RQ4How does ConRec perform on datasets with high intra-class variation and subtle inter-class differences, such as Oxford Flowers and diabetic retinopathy images?
Key findings
- ConRec outperforms standard SimCLR on the Oxford Flowers-102 fine-grained classification dataset, demonstrating improved accuracy through joint optimization of contrastive and reconstruction losses.
- The addition of attention-weighted pooling to SimCLR significantly improves performance on fine-grained classification, indicating better focus on discriminative local features.
- ConRec achieves a further performance boost on diabetic retinopathy classification when both reconstruction and attention mechanisms are used, confirming their complementary role.
- The ablation study shows that both reconstruction and attention mechanisms independently contribute to improved representation quality, with their combination yielding the best results.
- The model's performance gain is attributed to enhanced sensitivity to local, fine-grained visual attributes while remaining robust to global perturbations such as occlusion and lighting changes.
- The results confirm that self-reconstruction helps the model learn more detailed, semantically meaningful features, especially in low-level visual patterns critical for fine-grained recognition.
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.