SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.04380 · 2023

Your Negative May not Be True Negative: Boosting Image-Text Matching with False Negative Elimination

arXiv · PDF · Open in the Atlas

Code that ran

8 of 10 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; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 no recorded run), measured 2026-11-24; 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/2308.04380.json · badge: /api/ran/2308.04380.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
luminosityx/fne canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
FunctionStatusWhere it lives
HardTripletLoss Ran
ran; our contract draft was wrong, not the code
luminosityx/fne/loss.py
pointer only (licence: GPL-3.0) · get_code("8077d6917cdac13f")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, luminosityx/fne, is not in the permissive set Syntology serves inline. 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.

TripletLoss Ran
ran; our contract draft was wrong, not the code
luminosityx/fne/loss.py
pointer only (licence: GPL-3.0) · get_code("c039a7b633159cd9")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, luminosityx/fne, is not in the permissive set Syntology serves inline. 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.

autocontrast_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
luminosityx/fne/randaugment.py
pointer only (licence: GPL-3.0) · get_code("78ca1debd9c4ed87")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, luminosityx/fne, is not in the permissive set Syntology serves inline. 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.

equalize_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
luminosityx/fne/randaugment.py
pointer only (licence: GPL-3.0) · get_code("4c53169f63a1fcef")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, luminosityx/fne, is not in the permissive set Syntology serves inline. 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.

identity_func Ran
ran, violated the contract we drafted
luminosityx/fne/randaugment.py
pointer only (licence: GPL-3.0); the stored copy get_code serves, from kesenzhao/uv-cot, is pointer only (licence: NONE) · get_code("1dd2ab205689d45b")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, luminosityx/fne, is not in the permissive set Syntology serves inline. 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.

normal_scores Ran
ran; our contract draft was wrong, not the code
luminosityx/fne/loss.py
pointer only (licence: GPL-3.0) · get_code("02c6f872db0ad503")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, luminosityx/fne, is not in the permissive set Syntology serves inline. 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.

pre_caption Ran
ran; our contract draft was wrong, not the code
luminosityx/fne/data.py
pointer only (licence: GPL-3.0) · get_code("8a57c3e7d1cf36c7")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, luminosityx/fne, is not in the permissive set Syntology serves inline. 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.

t2i Ran
ran; our contract draft was wrong, not the code
luminosityx/fne/evaluation.py
pointer only (licence: GPL-3.0) · get_code("66e587df67e7bfc7")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, luminosityx/fne, is not in the permissive set Syntology serves inline. 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.

encode_data Not yet run
unverified (harvested, no recorded run)
luminosityx/fne/evaluation.py
pointer only (licence: GPL-3.0) · get_code("e495a1237371ad97")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, luminosityx/fne, is not in the permissive set Syntology serves inline. 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.

i2t Not yet run
unverified (harvested, no recorded run)
luminosityx/fne/evaluation.py
pointer only (licence: GPL-3.0) · get_code("e01dd9fb3c76c3da")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, luminosityx/fne, is not in the permissive set Syntology serves inline. 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 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 4 later) and 6 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
equalize_func 15 other papers
5 dated earlier, 10 later
2001.07685 (2020-01)
FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence
2207.05333 (2022-07)
IDEA: Increasing Text Diversity via Online Multi-Label Recognition for Vision-Language Pre-training
and 12 more not named here
identity_func 15 other papers
5 dated earlier, 10 later · 1 only as an assembly brick
2001.07685 (2020-01)
FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence
2207.05333 (2022-07)
IDEA: Increasing Text Diversity via Online Multi-Label Recognition for Vision-Language Pre-training
and 12 more not named here
autocontrast_func 12 other papers
5 dated earlier, 7 later
2001.07685 (2020-01)
FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence
2207.05333 (2022-07)
IDEA: Increasing Text Diversity via Online Multi-Label Recognition for Vision-Language Pre-training
and 9 more not named here
pre_caption 8 other papers
3 dated earlier, 5 later
2207.05333 (2022-07)
IDEA: Increasing Text Diversity via Online Multi-Label Recognition for Vision-Language Pre-training
2305.13653 (2023-05)
RaSa: Relation and Sensitivity Aware Representation Learning for Text-based Person Search
2307.14061 (2023-07)
Set-level Guidance Attack: Boosting Adversarial Transferability of Vision-Language Pre-training Models
and 5 more not named here

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-24.

Repositories linked to this paper

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

Abstract

Most existing image-text matching methods adopt triplet loss as the optimization objective, and choosing a proper negative sample for the triplet of <anchor, positive, negative> is important for effectively training the model, e.g., hard negatives make the model learn efficiently and effectively. However, we observe that existing methods mainly employ the most similar samples as hard negatives, which may not be true negatives. In other words, the samples with high similarity but not paired with the anchor may reserve positive semantic associations, and we call them false negatives. Repelling these false negatives in triplet loss would mislead the semantic representation learning and result in inferior retrieval performance. In this paper, we propose a novel False Negative Elimination (FNE) strategy to select negatives via sampling, which could alleviate the problem introduced by false negatives. Specifically, we first construct the distributions of positive and negative samples separately via their similarities with the anchor, based on the features extracted from image and text encoders. Then we calculate the false negative probability of a given sample based on its similarity with the anchor and the above distributions via the Bayes' rule, which is employed as the sampling weight during negative sampling process. Since there may not exist any false negative in a small batch size, we design a memory module with momentum to retain a large negative buffer and implement our negative sampling strategy spanning over the buffer. In addition, to make the model focus on hard negatives, we reassign the sampling weights for the simple negatives with a cut-down strategy. The extensive experiments are conducted on Flickr30K and MS-COCO, and the results demonstrate the superiority of our proposed false negative elimination strategy. The code is available at https://github.com/LuminosityX/FNE.

For agents

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

get_harvested_code_for_paper("2308.04380")
get_code_for_paper("2308.04380")
have("2308.04380")

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

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

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

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

Connect an agent — have() is free.