Papers › Unsupervised visualization of image datasets using contrastive learning

Unsupervised visualization of image datasets using contrastive learning

18 Oct 2022arXiv:2210.09879archive 2025-07-28

Jan Niklas Böhm, Philipp Berens, Dmitry Kobak

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2210.09879")

Code

Syntology Ran 29 of 34 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 1 ran · fixture could not drive it; 25 ran with no contract checked.

By repository: official repository: 34 samples from 1 repository, 29 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

berenslab/t-simcne officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

34 samples harvested; 29 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
1ran · fixture could not drive it
25ran
5unverified

Licence: 34 of the 34 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from berenslab/t-simcne. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

AdaptedConvNet berenslab/t-simcne/tsimcne/tsimcne.py official repository ran fingerprinted no licence file found · pointer only · 10e1c4c808c2af91 · report
AnnoyClassifier berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · 1da1a6199e752860 · report
BasicBlock berenslab/t-simcne/tsimcne/tsimcne.py official repository ran fingerprinted no licence file found · pointer only · 708ad087bed51791 · report
Bottleneck berenslab/t-simcne/tsimcne/tsimcne.py official repository ran fingerprinted no licence file found · pointer only · a8a906a8df4debd7 · report
ConstantSchedule berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · 28b3eec38bdb1aa8 · report
ContrastiveFC berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · cebb09009b18e10f · report
CosineAnnealingSchedule berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · 8830446219159f10 · report
CosineTemp berenslab/t-simcne/tsimcne/tsimcne.py official repository ran fingerprinted no licence file found · pointer only · 66f59e96941c4d9d · report
FCNetwork berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · adb35fe02169f86f · report
InfoNCECauchy berenslab/t-simcne/tsimcne/tsimcne.py official repository ran fingerprinted no licence file found · pointer only · ff0e5d779bcc673c · report
InfoNCECosine berenslab/t-simcne/tsimcne/tsimcne.py official repository ran fingerprinted no licence file found · pointer only · 15926b4f59f756c0 · report
InfoNCEGaussian berenslab/t-simcne/tsimcne/tsimcne.py official repository ran fingerprinted no licence file found · pointer only · a808f763175bd0fa · report
InfoNCET berenslab/t-simcne/tsimcne/tsimcne.py official repository ran fingerprinted no licence file found · pointer only · 441018b52d5d74f6 · report
LinearSchedule berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · f4b91fb2a716c3c2 · report
ResNet berenslab/t-simcne/tsimcne/tsimcne.py official repository ran fingerprinted no licence file found · pointer only · c1a15ec76e903086 · report
TransformedPairDataset berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · 0884dbb028cc4bc2 · report
efficientnet_v2_l berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · acde91eeb9d55da8 · report
efficientnet_v2_m berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · 9ba5e8de3d6c4784 · report
efficientnet_v2_s berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · fd6897a2da6f5e74 · report
get_transforms_unnormalized berenslab/t-simcne/tsimcne/tsimcne.py official repository ran · fixture could not drive it no licence file found · pointer only · 9c92a074b1808e07 · report
make_projection_head berenslab/t-simcne/tsimcne/tsimcne.py official repository ran · our draft was wrong no licence file found · pointer only · e553d58b96b7ba40 · report
mobilenet_v3_large berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · a69f355cbc16555b · report
mobilenet_v3_small berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · a4ac86aba2745847 · report
mutate_model berenslab/t-simcne/tsimcne/tsimcne.py official repository ran · our draft was wrong no licence file found · pointer only · 5eb80a31c97779f3 · report
pytorch_resnet berenslab/t-simcne/tsimcne/tsimcne.py official repository ran · our draft was wrong no licence file found · pointer only · 2a7f005563b3d9c5 · report
resnet101 berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · a86999ce90809772 · report
resnet18 berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · 9fa1f1002d0b7031 · report
resnet34 berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · b76d3a708d1bd1b0 · report
resnet50 berenslab/t-simcne/tsimcne/tsimcne.py official repository ran no licence file found · pointer only · 02e8b84269fc9d6e · report
CauchyTemp berenslab/t-simcne/tsimcne/tsimcne.py official repository unverified no licence file found · pointer only · e8a2a9d7d1eed11f · report
PLtSimCNE berenslab/t-simcne/tsimcne/tsimcne.py official repository unverified no licence file found · pointer only · d7d6362fc17d9a63 · report
ResNetFC berenslab/t-simcne/tsimcne/tsimcne.py official repository unverified no licence file found · pointer only · adf91ee454b6330f · report
TSimCNE berenslab/t-simcne/tsimcne/tsimcne.py official repository unverified no licence file found · pointer only · a5b6863b8b2849a8 · report
make_model berenslab/t-simcne/tsimcne/tsimcne.py official repository unverified no licence file found · pointer only · a6be304389f8001d · report

Tasks

Contrastive LearningData Augmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

1x1 ConvolutionAverage PoolingBatch NormalizationBottleneck Residual BlockColorJitterContrastive LearningConvolutionDense ConnectionsFeedforward NetworkGlobal Average PoolingKaiming InitializationMax PoolingNT-XentRandom Gaussian BlurRandom Resized CropReLUResidual BlockResidual ConnectionSimCLR

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections