DUET: 2D Structured and Approximately Equivariant Representations

Xavier Suau, Federico Danieli, T. Anderson Keller, Arno Blaas, Chen Huang, Jason Ramapuram, Dan Busbridge, Luca Zappella

Introduction

In Multiview Self-Supervised Learning (MSSL), the dominant paradigm has long been the pursuit of invariance. Frameworks like SimCLR are designed to ensure that if a model sees an image and a transformed version of that same image (e.g., rotated or color-shifted), it maps both to the same point in representation space. While this approach is highly effective for general image classification, it inherently discards the "transformation" data.

DUET (2D strUctured and approximately EquivarianT representations) challenges this paradigm. The authors argue that for many downstream tasks—such as medical imaging, autonomous driving, or fine-grained attribute detection—the transformation itself contains vital information. DUET introduces a novel framework that organizes image representations into a 2D matrix, allowing the model to disentangle "content" from "transformation" through approximate equivariance.

The Problem: The Cost of Invariance

Standard MSSL methods treat transformations as noise to be ignored. By forcing the model to be invariant to rotation, scale, or color, we essentially train the network to be blind to these features. However, in practical applications, the orientation of a cell in a pathology slide or the color of a fruit indicating ripeness is not noise; it is critical data. DUET seeks to preserve this information by structuring the representation space rather than collapsing it.

Methodology

The core innovation of DUET lies in how the backbone network’s output is shaped and regularized. Instead of a standard flat feature vector, DUET outputs a 2D matrix of size $C \times G$, where $C$ represents the "content" dimension and $G$ represents the "group" (the transformation parameter, such as a specific rotation angle).

1. Marginalization

To achieve disentanglement, the model utilizes marginalization across the matrix dimensions:

  • Content Marginal: By summing across the rows (the $G$ dimension), the model produces a representation that is invariant to the transformation, capturing only the core identity of the object.
  • Group Marginal: By summing across the columns (the $C$ dimension), the model produces a representation that captures the specific transformation applied to the input.

2. Loss Functions

DUET is trained using a dual-loss objective:

  • Content Loss ($L_C$): A standard contrastive loss (NTXent) ensures that the content marginals of two different views of the same image remain similar.
  • Group Loss ($L_G$): This is the framework's "secret sauce." The model is forced to align the group marginal with a specific target distribution (such as a Gaussian or von-Mises distribution) centered at the known transformation parameter.

3. Approximate Equivariance

This structured approach results in "approximate equivariance." If an input image is rotated, the corresponding "bump" in the group marginal shifts predictably. This mathematical structure allows the model to perform operations at the representation level—such as "undoing" a rotation—that are impossible in standard invariant models.

Experimental Results

The authors evaluated DUET across several benchmarks, including CIFAR-10/100, TinyImageNet, and various downstream tasks like MNIST, Flowers-102, and Caltech-101.

Performance Gains

  • Classification Accuracy: On CIFAR-100, DUET consistently outperformed SimCLR and previous equivariant methods (like ESSL). Notably, on color-sensitive tasks, DUET improved accuracy by 3-5% over SimCLR, whereas previous methods often saw performance degradation.
  • Transfer Learning: DUET demonstrated superior feature quality for transfer tasks. When pre-trained on TinyImageNet and transferred to Caltech-101, DUET’s rotation-structured representations achieved a 21% accuracy gain over SimCLR.
  • High-Fidelity Reconstruction: DUET achieved up to 66% lower reconstruction error compared to SimCLR. This indicates that the 2D structured representation preserves significantly more information about the original image than a standard invariant vector.

Controlled Image Generation

Because the representations are structured and disentangled, DUET enables controlled generation. By taking the representation of a digit from MNIST and mathematically shifting the group marginal, the authors could decode the representation back into a rotated version of the original image with high precision.

Discussion and Limitations

While DUET offers a powerful alternative to standard MSSL, it introduces new challenges:

  • The Expressivity Trade-off: There is a "tax" for structure. Allocating a portion of the representation space to the transformation ($G$) leaves less space for content ($C$). Balancing these dimensions is critical for optimal performance.
  • Data Ambiguity: The model faces difficulties with "ambiguous" transformations. For example, a horizontal flip is often ambiguous because objects (like cars) naturally appear facing both directions in a dataset. Without a clear "default" state, the model struggles to define the transformation relative to a baseline.
  • Scaling to Multiple Groups: Most experiments focused on a single transformation type (e.g., rotation). While the framework theoretically supports multiple groups, scaling this to the full suite of augmentations used in modern self-supervised learning remains an area for future research.

Conclusion

DUET demonstrates that we do not have to choose between invariance and information preservation. By structuring representations into a 2D matrix and enforcing approximate equivariance, DUET achieves superior performance in classification and transfer learning while enabling new capabilities in controlled image manipulation. This shift from "ignoring" transformations to "organizing" them represents a significant step forward for self-supervised representation learning.

Summary updated

BibTeX
@inproceedings{suau2023duet,
  author = {Xavier Suau and Federico Danieli and T. Anderson Keller and Arno Blaas and Chen Huang and Jason Ramapuram and Dan Busbridge and Luca Zappella},
  title = {{DUET: 2D Structured and Approximately Equivariant Representations}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=2tuJDwSSP2},
}
Figure