NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DimCL: Dimensional Contrastive Learning for Improving Self-Supervised Learning

Thanh Xuan Nguyen, Trung Xuan Pham, Chaoning Zhang, Tung Minh Luu, Thang Vu, Chang D. Yoo

Abstract

Self-supervised learning (SSL) has significantly advanced the ability of models to learn from unlabeled data. However, many existing frameworks suffer from feature redundancy, where feature dimensions are highly correlated, leading to inefficient use of model capacity. We present Dimensional Contrastive Learning (DimCL), a "plug-and-play" regularizer designed to enhance feature diversity. By shifting the contrastive objective from the batch axis to the dimensional axis, DimCL encourages individual feature dimensions to be informative and independent. Experimental results demonstrate that DimCL consistently improves the performance of popular SSL methods like BYOL and SimSiam across various benchmarks, including ImageNet-1K and downstream object detection tasks.

Introduction

The success of self-supervised learning (SSL) in computer vision is largely attributed to two paradigms: Contrastive Learning (CL), which relies on instance discrimination, and Non-Contrastive Learning, which focuses on similarity between augmented views. Despite their success, these methods often produce representations with high feature redundancy. While standard Batch Contrastive Learning (BCL) ensures that different images have distinct representations, it does not explicitly prevent individual dimensions within those representations from becoming highly correlated. This redundancy wastes the model's representational capacity and can limit performance on complex downstream tasks.

Methodology: Dimensional Contrastive Learning

To address the issue of feature redundancy, the authors introduce Dimensional Contrastive Learning (DimCL). The fundamental innovation is a perspective shift in how contrastive loss is applied.

The Dimensional Perspective

In traditional BCL, the loss is calculated by comparing rows of a data matrix, where each row represents an image's feature vector. DimCL instead operates on the columns of the matrix, where each column represents a specific feature dimension across the entire batch.

Overview of the Dimensional Contrastive Learning (DimCL) framework.

As shown in the figure above, DimCL treats each feature dimension as a "query." The objective is to maximize the similarity between the same dimension across different augmented views of the same batch, while simultaneously encouraging orthogonality (dissimilarity) between different dimensions.

Implementation as a Regularizer

DimCL is designed as a secondary loss term that can be integrated into existing SSL frameworks: $$\mathcal{L}_{total} = \lambda \mathcal{L}_{DimCL} + (1 - \lambda) \mathcal{L}_{base}$$ By using the InfoNCE objective along the dimensional axis, DimCL naturally focuses on "hard" negative pairs—dimensions that are currently too similar—and pushes them apart. This forces the model to spread information across all available dimensions, leading to more diverse and efficient representations.

Experimental Evaluation

The effectiveness of DimCL was validated across multiple standard computer vision benchmarks and downstream tasks.

Datasets and Setup

  • Small to Medium Scale: CIFAR-10, CIFAR-100, and STL-10.
  • Large Scale: ImageNet-100 and ImageNet-1K.
  • Downstream Tasks: Object detection performance was evaluated on the VOC07 dataset.

Key Results

The addition of DimCL yielded significant improvements across various configurations:

  • SimSiam on CIFAR-100: Accuracy increased from 51.67% to 62.49% (+10.82%).
  • BYOL on CIFAR-100: Accuracy improved from 62.36% to 67.85% (+5.49%).
  • ImageNet-1K: Adding DimCL to BYOL resulted in a +2.0% top-1 accuracy boost, reaching 69.3%.
  • Object Detection: On VOC07, DimCL improved the Average Precision (AP) of a BYOL-pretrained ResNet-50 from 50.3 to 55.6.

Discussion and Insights

The research highlights several critical insights regarding feature representation:

  • Feature Diversity: The paper demonstrates that "feature diversity" (independence between elements) is as vital as "instance diversity" for robust SSL.
  • Improved Clustering: t-SNE visualizations indicate that DimCL leads to tighter, more separable clusters, suggesting a cleaner mapping of the data.
  • Dimensionality Sensitivity: The benefits of DimCL are particularly pronounced when the feature dimension is relatively small, where redundancy is a more significant bottleneck.
  • Supervised Learning Gains: Interestingly, DimCL also improves supervised learning. When added to a cross-entropy setup on CIFAR-100, it boosted accuracy by 1.4%, indicating that feature diversity is a universally beneficial property.

Conclusion and Future Work

DimCL provides a simple yet effective way to reduce feature redundancy in self-supervised learning. While it introduces some computational overhead and requires hyperparameter tuning, its "plug-and-play" nature makes it a valuable tool for enhancing existing models. Future research may explore extending the dimensional contrastive principle to other modalities such as audio, video, and natural language processing.

Summary updated

BibTeX
@article{nguyen2023dimcl,
  author = {Thanh Xuan Nguyen and Trung Xuan Pham and Chaoning Zhang and Tung Minh Luu and Thang Vu and Chang D. Yoo},
  title = {{DimCL: Dimensional Contrastive Learning for Improving Self-Supervised Learning}},
  journal = {IEEE Access},
  year = {2023},
  doi = {10.1109/access.2023.3236087},
}
Figure