Unsupervised visualization of image datasets using contrastive learning
Jan Niklas Böhm, Philipp Berens, Dmitry Kobak
Abstract
Visualization methods based on the nearest neighbor graph, such as t-SNE or UMAP, are widely used for visualizing high-dimensional data. Yet, these approaches only produce meaningful results if the nearest neighbors themselves are meaningful. For images represented in pixel space this is not the case, as distances in pixel space are often not capturing our sense of similarity and therefore neighbors are not semantically close. This problem can be circumvented by self-supervised approaches based on contrastive learning, such as SimCLR, relying on data augmentation to generate implicit neighbors, but these methods do not produce two-dimensional embeddings suitable for visualization. Here, we present a new method, called t-SimCNE, for unsupervised visualization of image data. T-SimCNE combines ideas from contrastive learning and neighbor embeddings, and trains a parametric mapping from the high-dimensional pixel space into two dimensions. We show that the resulting 2D embeddings achieve classification accuracy comparable to the state-of-the-art high-dimensional SimCLR representations, thus faithfully capturing semantic relationships. Using t-SimCNE, we obtain informative visualizations of the CIFAR-10 and CIFAR-100 datasets, showing rich cluster structure and highlighting artifacts and outliers.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 0e8fb306-6805-423e-95ac-e3201b60cf67Cited by top-tier papers9
- Geometric Autoencoders - What You See is What You DecodePhilipp Nazari, Sebastian Damrich, Fred A. HamprechtICML 2023 · 25 citations
- Dimension Reduction with Locally Adjusted GraphsYingfan Wang, Yiyang Sun, Haiyang Huang, Cynthia RudinAAAI 2025 · 10 citations
- Navigating the Effect of Parametrization for Dimensionality ReductionHaiyang Huang, Yingfan Wang, Cynthia RudinNeurIPS 2024 · 8 citations
- From -SNE to UMAP with contrastive learningSebastian Damrich, Jan Niklas Böhm, Fred A. Hamprecht, Dmitry KobakICLR 2023 · 4 citations
- TRACE: Contrastive learning for multi-trial time series data in neuroscienceLisa Schmors, Dominic Gonschorek, Jan Niklas Böhm, Yongrong Qiu et al.NeurIPS 2025 · 3 citations
Builds on8
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations
- Understanding Dimensional Collapse in Contrastive Self-supervised LearningLi Jing, Pascal Vincent, Yann LeCun, Yuandong TianICLR 2022 · 467 citations
- On UMAP's True Loss FunctionSebastian Damrich, Fred A. HamprechtNeurIPS 2021 · 58 citations
- Understanding Deep Contrastive Learning via Coordinate-wise OptimizationYuandong TianNeurIPS 2022 · 51 citations
Related papers
- Your Contrastive Learning Is Secretly Doing Stochastic Neighbor EmbeddingTianyang Hu, Zhili Liu, Fengwei Zhou, Wenjia Wang et al.ICLR 2023 · 3 citations
- Interactive Visual Cluster Analysis by Contrastive Dimensionality ReductionJiazhi Xia, Linquan Huang, Weixing Lin, Xin Zhao et al.IEEE VIS 2022 · 38 citations
- On the duality between contrastive and non-contrastive self-supervised learningQuentin Garrido, Yubei Chen, Adrien Bardes, Laurent Najman et al.ICLR 2023 · 24 citations
- Crafting Better Contrastive Views for Siamese Representation LearningXiangyu Peng, Kai Wang, Zheng Zhu, Mang Wang et al.CVPR 2022 · 107 citations
- With a Little Help from My Friends: Nearest-Neighbor Contrastive Learning of Visual RepresentationsDebidatta Dwibedi, Yusuf Aytar, Jonathan Tompson, Pierre Sermanet et al.ICCV 2021 · 542 citations
