Papers › Towards Enhancing Time Series Contrastive Learning: A Dynamic Bad Pair Mining Approach

Towards Enhancing Time Series Contrastive Learning: A Dynamic Bad Pair Mining Approach

7 Feb 2023arXiv:2302.03357archive 2025-07-28

Xiang Lan, Hanshu Yan, Shenda Hong, Mengling Feng

Not all positive pairs are beneficial to time series contrastive learning. In this paper, we study two types of bad positive pairs that can impair the quality of time series representation learned through contrastive learning: the noisy positive pair and the faulty positive pair. We observe that, with the presence of noisy positive pairs, the model tends to simply learn the pattern of noise (Noisy Alignment). Meanwhile, when faulty positive pairs arise, the model wastes considerable amount of effort aligning non-representative patterns (Faulty Alignment). To address this problem, we propose a Dynamic Bad Pair Mining (DBPM) algorithm, which reliably identifies and suppresses bad positive pairs in time series contrastive learning. Specifically, DBPM utilizes a memory module to dynamically track the training behavior of each positive pair along training process. This allows us to identify potential bad positive pairs at each epoch based on their historical training behaviors. The identified bad pairs are subsequently down-weighted through a transformation module, thereby mitigating their negative impact on the representation learning process. DBPM is a simple algorithm designed as a lightweight plug-in without learnable parameters to enhance the performance of existing state-of-the-art methods. Through extensive experiments conducted on four large-scale, real-world time series datasets, we demonstrate DBPM's efficacy in mitigating the adverse effects of bad positive pairs.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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

Code

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

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

lanxiang1017/dynamicbadpairmining_iclr24 officialmentioned in paperpytorch 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

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

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

Licence: 9 of the 9 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 lanxiang1017/dynamicbadpairmining_iclr24. “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.

BasicBlock lanxiang1017/dynamicbadpairmining_iclr24/models/dbpm_model.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 97f4b7a71f2a6dc1 · report
InfoNCE lanxiang1017/dynamicbadpairmining_iclr24/models/dbpm_model.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 13196a05922a4556 · report
LinearClassifier lanxiang1017/dynamicbadpairmining_iclr24/models/dbpm_model.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 070f933207345be3 · report
ResNet lanxiang1017/dynamicbadpairmining_iclr24/models/dbpm_model.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · d18829d3a6df39e9 · report
ResNet34 lanxiang1017/dynamicbadpairmining_iclr24/models/dbpm_model.py official repository ran · our draft was wrong no licence file found · pointer only · 3a802f69ecd390d5 · report
get_scores lanxiang1017/dynamicbadpairmining_iclr24/models/dbpm_model.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · c18b03944ec98848 · report
loss_ntxent lanxiang1017/dynamicbadpairmining_iclr24/models/dbpm_model.py official repository ran · our draft was wrong no licence file found · pointer only · 1743b3639fe9448a · report
save_model lanxiang1017/dynamicbadpairmining_iclr24/models/dbpm_model.py official repository unverified no licence file found · pointer only · c995c24f3dfc702c · report
simpleModel lanxiang1017/dynamicbadpairmining_iclr24/models/dbpm_model.py official repository unverified no licence file found · pointer only · e99558104673f3e0 · report

Tasks

Contrastive LearningRepresentation LearningTime SeriesTime Series Analysis

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Contrastive Learning

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