Abstract
Disentangled visual representations have largely been studied with generative models such as Variational AutoEncoders (VAEs). While prior work has focused on generative methods for disentangled representation learning, these approaches do not scale to large datasets due to current limitations of generative models. Instead, we explore regularization methods with contrastive learning, which could result in disentangled representations that are powerful enough for large scale datasets and downstream applications. However, we find that unsupervised disentanglement is difficult to achieve due to optimization and initialization sensitivity, with trade-offs in task performance. We evaluate disentanglement with downstream tasks, analyze the benefits and disadvantages of each regularization used, and discuss future directions.
Introduction
In representation learning, "disentanglement" refers to the property where individual dimensions or chunks of a learned representation correspond to independent factors of variation in the data, such as an object's color versus its shape. Historically, this has been achieved using generative models like Variational Autoencoders (VAEs). However, generative models struggle to scale to large, complex datasets, and their representations often underperform on downstream tasks like classification. This paper investigates whether self-supervised contrastive learning (e.g., SimCLR) can be regularized to learn disentangled representations without the need for an autoencoding bottleneck.
Methodology
The authors build on the standard SimCLR framework, splitting the output representation into two "subembeddings" ($z_0$ and $z_1$). They experiment with three regularization strategies added to the contrastive loss to force these subembeddings to encode different factors of variation:
- InfoMin: Minimizing the Mutual Information (MI) between subembeddings to prevent shared information.
- Orthogonality Constraint: Penalizing the cosine distance between subembeddings. A permutation trick is used to prevent the network from finding "degenerate" solutions where subembeddings are simple rotations of one another.
- Hessian Regularization: Penalizing the off-diagonal blocks of the Hessian matrix of the contrastive loss with respect to the representation to reduce element-wise dependencies.
Experimental Setup: The MNIST/STL-10 Dataset
To evaluate these methods, the authors introduce the MNIST/STL-10 dataset, which overlays MNIST digits onto STL-10 natural image backgrounds. This creates three controllable factors of variation: Digit Class (DC), Background Class (BC), and Digit Location (DL).
Key Results and Insights
The success of disentanglement is measured by the accuracy gap between subembeddings when training linear classifiers. Perfect disentanglement would show one subembedding performing well on one factor (e.g., DC) while the other performs at chance level.
- The Disentanglement vs. Performance Trade-off: There is a fundamental tension between forcing subembeddings apart and maintaining a useful overall representation. Stronger constraints often degrade the model's ability to classify images.
- InfoMin Failure: This approach directly competes with the primary contrastive objective, leading the network to prioritize the contrastive loss and fail to disentangle the subembeddings entirely.
- Orthogonality vs. Hessian: The Orthogonality constraint (with the permutation trick) maintained the highest downstream performance (88.0% on DC) but only achieved a small disentanglement gap (5.8%). Conversely, Hessian Regularization achieved the best unsupervised disentanglement (17.2% gap for DC) but at the cost of absolute performance, which dropped to 74.7%.
Limitations and Future Directions
The paper serves as a cautionary tale regarding the difficulty of unsupervised disentanglement without autoencoding. The authors identify several pitfalls:
- High Variance: Methods like Hessian regularization are highly sensitive to random initialization.
- Information Loss: Forcing disentanglement in an unsupervised setup consistently led to lower performance than the full, entangled representation.
Future work may need to combine multiple regularizers or introduce new inductive biases to guide networks toward semantic disentanglement without sacrificing the task performance that makes contrastive learning attractive.
Summary updated