Abstract
Self-supervised learning, particularly Positive-pair-Only Contrastive Learning (POCL), typically focuses on learning representations invariant to image distortions. However, this approach discards distortion-variant information as noise, potentially limiting model robustness and representation quality. We present Distortion-Disentangled Contrastive Learning (DDCL), a framework that explicitly separates distortion-invariant representations (DIR) from distortion-variant representations (DVR). By employing a novel Distortion-Disentangled Loss (DDL) that enforces orthogonality between DVRs of a positive pair, DDCL captures the unique "fingerprint" of distortions. Our experiments demonstrate that DDCL achieves faster convergence, superior performance on downstream tasks, and significantly higher robustness to unseen augmentations compared to standard POCL baselines.
Introduction
In modern self-supervised learning, models like SimSiam and Barlow Twins are trained to recognize that different augmented views of the same image share the same underlying identity. This focus on Distortion Invariant Representation (DIR) assumes that the differences introduced by data augmentation—such as cropping, color jittering, or blurring—are irrelevant noise.
The authors of this work challenge this assumption, arguing that these differences, termed Distortion Variant Representations (DVR), contain valuable domain-specific information. Ignoring DVRs can make models fragile when encountering distortions not seen during training. DDCL is proposed as a solution to explicitly model both invariant and variant features, turning "noise" into a useful signal for learning.
Methodology
The DDCL framework is designed as a plug-and-play enhancement for existing symmetric (e.g., Barlow Twins) and asymmetric (e.g., SimSiam) contrastive learning architectures.
As shown in the architecture above, the encoder $f$ produces a disentangled representation $y$, split into $y_I$ (invariant) and $y_V$ (variant). These are projected into $z_I$ and $z_V$ respectively.
- DIR Stream ($z_I$): This part captures features that remain consistent across different views of the same image. It is trained using standard contrastive losses like cosine similarity or cross-correlation ($L_{BT}$).
- DVR Stream ($z_V$): This part captures the features that change due to specific distortions. It is supervised by the Distortion-Disentangled Loss (DDL), which enforces orthogonality between the DVRs of a positive pair. This ensures that the DVR captures the unique transformation applied to each view rather than the shared image content.
Experimental Results and Discussion
The framework was rigorously tested on datasets ranging from CIFAR-10 to ImageNet-1k. A key finding is that DDCL significantly improves convergence speed and final accuracy. For instance, on CIFAR-10, DDCL achieved 83.64% Top-1 accuracy in just 100 epochs, surpassing the Barlow Twins baseline of 82.89%.
Visualization of Disentangled Features
To understand what the model learns, the authors visualized the attention maps for DIR and DVR components under various distortions, including original views, 90° rotations, and elastic transformations (ET).
The visualizations reveal that while DIR focuses on the core object (e.g., the bird or the crab), the DVR captures peripheral and structural information affected by the distortion. This confirms that the model successfully disentangles the "what" (identity) from the "how" (distortion).
Downstream Transferability and Robustness
DDCL-trained models consistently outperformed baselines on domain-specific downstream tasks. When pre-trained on ImageNet-1k and transferred to Food-101, DDCL achieved 72.91% accuracy compared to 71.93% for the SimSiam baseline. Notably, the framework showed remarkable robustness to "unseen" distortions. Standard POCL methods often suffer significant performance drops when faced with augmentations like 90° rotations that they weren't explicitly trained to ignore, whereas DDCL maintains significantly higher accuracy by having already learned to model such variations.
Conclusion
Distortion-Disentangled Contrastive Learning demonstrates that the "noise" in data augmentation is a valuable source of information. By explicitly modeling distortion-variant features, DDCL produces more robust and transferable representations. While currently focused on classification, the spatial information captured by DVRs suggests significant potential for dense prediction tasks like object detection and segmentation in future research.
Summary updated