SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.12459 · ICLR · 2024

Non-negative Contrastive Learning

Yisen Wang, Qi Zhang, Yifei Wang, Yaoyu Guo

arXiv · PDF · Open in the Atlas

Code that ran

12 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 10 failures of our instrument; 3 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2403.12459.json · badge: /api/ran/2403.12459.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
PKU-ML/non_neg canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
pku-ml/non_neg canonical (classifier label)
classifier basis: classifier_2025
3 ran · 1 no recorded run
FunctionStatusWhere it lives
barlow_loss_func Ran
ran; our contract draft was wrong, not the code
PKU-ML/non_neg/solo/losses/barlow.py
pointer only (licence: NONE) · get_code("132a949a804eb81e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

barlow_loss_func_dec Ran
ran; our contract draft was wrong, not the code
PKU-ML/non_neg/solo/losses/barlow.py
pointer only (licence: NONE) · get_code("12fdbffadfa8035c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

byol_loss_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
PKU-ML/non_neg/solo/losses/byol.py
pointer only (licence: NONE) · get_code("f387d07eb9b98af0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

byol_loss_tri Ran
ran; our contract draft was wrong, not the code
PKU-ML/non_neg/solo/losses/byol.py
pointer only (licence: NONE) · get_code("fb0aa5ba678fda0f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gather Ran
ran; our contract draft was wrong, not the code
pku-ml/non_neg/solo/losses/nnclr.py
pointer only (licence: NONE) · get_code("19eca70e1694ef1d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pku-ml/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_rank Ran
ran on a synthesized input
pku-ml/non_neg/solo/losses/nnclr.py
pointer only (licence: NONE) · get_code("8847999984146a64")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pku-ml/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

inference Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
PKU-ML/non_neg/main_eval.py
pointer only (licence: NONE) · get_code("3dd135205a5c7d07")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mae_loss_func Ran
ran; our contract draft was wrong, not the code
PKU-ML/non_neg/solo/losses/mae.py
pointer only (licence: NONE) · get_code("a07d9a7525702b80")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mocov2plus_loss_func Ran
ran; our contract draft was wrong, not the code
PKU-ML/non_neg/solo/losses/mocov2plus.py
pointer only (licence: NONE) · get_code("4dd7c3cff0150cb9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

nnclr_loss_func Ran
ran; our contract draft was wrong, not the code
pku-ml/non_neg/solo/losses/nnclr.py
pointer only (licence: NONE) · get_code("affb9491cfe05218")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pku-ml/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

patchify Ran
ran; our contract draft was wrong, not the code
PKU-ML/non_neg/solo/losses/mae.py
pointer only (licence: NONE) · get_code("3e6a557bf1ad83d9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ressl_loss_func Ran
ran, honoured the contract we drafted
PKU-ML/non_neg/solo/losses/ressl.py
pointer only (licence: NONE) · get_code("779f0ded23fd8106")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GatherLayer Not yet run
unverified (harvested, no recorded run)
pku-ml/non_neg/solo/losses/nnclr.py
pointer only (licence: NONE) · get_code("0010b56b025e9667")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pku-ml/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

barlow_loss_eigen Not yet run
unverified (harvested, no recorded run)
PKU-ML/non_neg/solo/losses/barlow.py
pointer only (licence: NONE) · get_code("7f64ab91d62a097a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

deepclusterv2_loss_func Not yet run
unverified (harvested, no recorded run)
PKU-ML/non_neg/solo/losses/deepclusterv2.py
pointer only (licence: NONE); the stored copy get_code serves, from PKU-ML/nlb, is pointer only (licence: NONE) · get_code("ce432f2e9653c7a3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/non_neg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 5 the same month, 3 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
barlow_loss_func 12 other papers
7 dated earlier, 2 the same month, 3 later
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2108.01775 (2021-08)
Solo-learn: A Library of Self-supervised Methods for Visual Representation Learning
2112.15022 (2021-12)
Continually Learning Self-Supervised Representations with Projected Functional Regularization
and 9 more not named here
deepclusterv2_loss_func 10 other papers
7 dated earlier, 2 the same month, 1 later
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2108.01775 (2021-08)
Solo-learn: A Library of Self-supervised Methods for Visual Representation Learning
2112.15022 (2021-12)
Continually Learning Self-Supervised Representations with Projected Functional Regularization
and 7 more not named here
mocov2plus_loss_func 5 other papers
2 dated earlier, 2 the same month, 1 later
2003.04297 (2020-03)
Improved Baselines with Momentum Contrastive Learning
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2403.12448 (2024-03)
Do Generated Data Always Help Contrastive Learning?
and 2 more not named here
ressl_loss_func 5 other papers
5 dated earlier
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2107.09282 (2021-07)
ReSSL: Relational Self-Supervised Learning with Weak Augmentation
2108.01775 (2021-08)
Solo-learn: A Library of Self-supervised Methods for Visual Representation Learning
and 2 more not named here
mae_loss_func 4 other papers
2 dated earlier, 2 the same month
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2310.02903 (2023-10)
FroSSL: Frobenius Norm Minimization for Efficient Multiview Self-Supervised Learning
2403.12448 (2024-03)
Do Generated Data Always Help Contrastive Learning?
and 1 more not named here
patchify 4 other papers
2 dated earlier, 2 the same month
2007.06346 (2020-07)
Whitening for Self-Supervised Representation Learning
2310.02903 (2023-10)
FroSSL: Frobenius Norm Minimization for Efficient Multiview Self-Supervised Learning
2403.12448 (2024-03)
Do Generated Data Always Help Contrastive Learning?
and 1 more not named here
gather 3 other papers
3 dated earlier
2210.16870 (2022-10)
A simple, efficient and scalable contrastive masked autoencoder for learning visual representations
2303.02387 (2023-03)
Towards a Unified Theoretical Understanding of Non-contrastive Learning via Rank Differential Mechanism
2310.18555 (2023-10)
Group Robust Classification Without Any Group Information

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Deep representations have shown promising performance when transferred to downstream tasks in a black-box manner. Yet, their inherent lack of interpretability remains a significant challenge, as these features are often opaque to human understanding. In this paper, we propose Non-negative Contrastive Learning (NCL), a renaissance of Non-negative Matrix Factorization (NMF) aimed at deriving interpretable features. The power of NCL lies in its enforcement of non-negativity constraints on features, reminiscent of NMF's capability to extract features that align closely with sample clusters. NCL not only aligns mathematically well with an NMF objective but also preserves NMF's interpretability attributes, resulting in a more sparse and disentangled representation compared to standard contrastive learning (CL). Theoretically, we establish guarantees on the identifiability and downstream generalization of NCL. Empirically, we show that these advantages enable NCL to outperform CL significantly on feature disentanglement, feature selection, as well as downstream classification tasks. At last, we show that NCL can be easily extended to other learning scenarios and benefit supervised learning as well. Code is available at https://github.com/PKU-ML/non_neg.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.12459")
get_code_for_paper("2403.12459")
have("2403.12459")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2403.12459.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2403.12459.svg)](https://syntology.ai/paper/2403.12459)

Connect an agent — have() is free.