Papers › Unsupervised Feature Learning via Non-Parametric Instance-level Discrimination

Unsupervised Feature Learning via Non-Parametric Instance-level Discrimination

5 May 2018arXiv:1805.01978archive 2025-07-28

Zhirong Wu, Yuanjun Xiong, Stella Yu, Dahua Lin

Neural net classifiers trained on data with annotated class labels can also capture apparent visual similarity among categories without being directed to do so. We study whether this observation can be extended beyond the conventional domain of supervised learning: Can we learn a good feature representation that captures apparent similarity among instances, instead of classes, by merely asking the feature to be discriminative of individual instances? We formulate this intuition as a non-parametric classification problem at the instance-level, and use noise-contrastive estimation to tackle the computational challenges imposed by the large number of instance classes. Our experimental results demonstrate that, under unsupervised learning settings, our method surpasses the state-of-the-art on ImageNet classification by a large margin. Our method is also remarkable for consistently improving test performance with more training data and better network architectures. By fine-tuning the learned feature, we further obtain competitive results for semi-supervised learning and object detection tasks. Our non-parametric model is highly compact: With 128 features per image, our method requires only 600MB storage for a million images, enabling fast nearest neighbour retrieval at the run time.

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="1805.01978")

Code

Syntology Ran 19 of 23 code samples harvested from 9 repositories linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 17 ran with no contract checked.

By repository: community (archive-listed): 23 samples from 9 repositories, 19 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

15 repositories listed; official and paper-mentioned ones first.

zhirongw/lemniscate.pytorch officialmentioned in papermentioned on GitHubpytorch report
BaladityaY/lemniscate_reproduce_bdd mentioned on GitHubpytorch report
BaladityaY/lemniscate_vis mentioned on GitHubpytorch report
BenjaminLiuPenrose/UnsupervisedImage mentioned on GitHubpytorch report
DianaSHV/lemniscate_edit mentioned on GitHubpytorch report
HobbitLong/CMC mentioned on GitHubpytorchBSD-2-Clause report
RPraneetha/MoCo-FAIR mentioned on GitHubpytorch report
facebookresearch/vissl mentioned on GitHubpytorch report
ly9802/DynamicAccumulatedAttentionMap mentioned on GitHubpytorch report
microsoft/metric-transfer.pytorch mentioned on GitHubpytorch report
sforsyth6/cifar_lem mentioned on GitHubpytorch report
sforsyth6/coco_lem mentioned on GitHubpytorch report
sforsyth6/lemniscate-original mentioned on GitHubpytorch report
szq0214/CMC_with_Image_Mixture mentioned 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

23 samples harvested; 19 ran; 0 honoured the contract we drafted; 4 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.

1ran · our draft was wrong
1ran · fixture could not drive it
17ran
4unverified

Licence: 16 of the 23 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 9 repositories linked to this paper, official or community; each sample names its own and says which. “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.

ActivationAndGradients ly9802/DynamicAccumulatedAttentionMap/utils/DAAM.py community (archive-listed) ran MIT (permissive) · 8d07fbd55802678f · report
AliasMethod sforsyth6/coco_lem/lib/NCEAverage.py community (archive-listed) ran no licence file found · pointer only · f880630982d445cc · report
AliasMethod szq0214/CMC_with_Image_Mixture/NCE/NCEAverage.py community (archive-listed) ran no licence file found · pointer only · 7f8ed4a41b193cc7 · report
AliasMethod microsoft/metric-transfer.pytorch/lib/NCEAverage.py community (archive-listed) ran · metamorphic tier: well formed fingerprinted MIT (permissive) · cc7f025d23fca482 · report
AliasMethod BaladityaY/lemniscate_reproduce_bdd/lib/NCEAverage.py community (archive-listed) ran · metamorphic tier: well formed fingerprinted no licence file found · pointer only · 3890fd0692fdd19f · report
BatchCriterion mangye16/Unsupervised_Embedding_Learning/BatchAverage.py community (archive-listed) ran no licence file found · pointer only · 40d8de9bf103b33f · report
ClassifierOutputTarget ly9802/DynamicAccumulatedAttentionMap/utils/DAAM.py community (archive-listed) ran fingerprinted MIT (permissive) · d466f84425f5b627 · report
DynamicAccumulatedAttentionMap ly9802/DynamicAccumulatedAttentionMap/utils/DAAM.py community (archive-listed) ran MIT (permissive) · 521ff999fdd4b08e · report
MemoryInsDis szq0214/CMC_with_Image_Mixture/NCE/NCEAverage.py community (archive-listed) ran no licence file found · pointer only · 28d82e0982d698f7 · report
NCEAverage sforsyth6/coco_lem/lib/NCEAverage.py community (archive-listed) ran no licence file found · pointer only · e9b6afbeea8c2280 · report
NCEAverage sforsyth6/cifar_lem/lib/NCEAverage.py community (archive-listed) ran no licence file found · pointer only · 732448859bf05210 · report
NCEAverage BaladityaY/lemniscate_vis/lib/NCEAverage.py community (archive-listed) ran no licence file found · pointer only · b1f0c5d369793e61 · report
NCEAverage sforsyth6/lemniscate-original/lib/NCEAverage.py community (archive-listed) ran no licence file found · pointer only · 77cfd89674b8f37b · report
NCEAverage microsoft/metric-transfer.pytorch/lib/NCEAverage.py community (archive-listed) ran fingerprinted MIT (permissive) · 8b28108d8cd9cedf · report
NCEFunction sforsyth6/cifar_lem/lib/NCEAverage.py community (archive-listed) ran no licence file found · pointer only · af9f28352bd7e0df · report
NCEFunction BaladityaY/lemniscate_vis/lib/NCEAverage.py community (archive-listed) ran no licence file found · pointer only · 711a1797529b0c79 · report
NCEFunction sforsyth6/lemniscate-original/lib/NCEAverage.py community (archive-listed) ran no licence file found · pointer only · c466639ec9235e60 · report
get_device BaladityaY/lemniscate_reproduce_bdd/lib/NCEAverage.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · c4e32d2f2f124965 · report
reshape_transformation ly9802/DynamicAccumulatedAttentionMap/utils/DAAM.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · c8d2726addbf44f6 · report
NCEAverage BaladityaY/lemniscate_reproduce_bdd/lib/NCEAverage.py community (archive-listed) unverified no licence file found · pointer only · 893c648e49a82a33 · report
NCEFunction sforsyth6/coco_lem/lib/NCEAverage.py community (archive-listed) unverified no licence file found · pointer only · 6de2a2fbb24c09f4 · report
NCEFunction microsoft/metric-transfer.pytorch/lib/NCEAverage.py community (archive-listed) unverified MIT (permissive) · 12c846f2b380b4c7 · report
NCEFunction BaladityaY/lemniscate_reproduce_bdd/lib/NCEAverage.py community (archive-listed) unverified no licence file found · pointer only · ce0d9e87d7214f2a · report

Tasks

Contrastive LearningGeneral ClassificationObject DetectionRetrievalobject-detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Contrastive Learning imagenet-1k ResNet50 ImageNet Top-1 Accuracy 56.5 #13 of 14 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

1x1 ConvolutionAverage PoolingBatch NormalizationBottleneck Residual BlockConvolutionDense ConnectionsDropoutFast R-CNNFaster R-CNNGlobal Average PoolingGrouped ConvolutionKaiming InitializationLocal Response NormalizationMax PoolingNT-XentRPNReLUResidual BlockResidual ConnectionRoIPoolSVMSoftmaxk-NN

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