Papers › REBAR: Retrieval-Based Reconstruction for Time-series Contrastive Learning

REBAR: Retrieval-Based Reconstruction for Time-series Contrastive Learning

1 Nov 2023arXiv:2311.00519archive 2025-07-28

Maxwell A. Xu, Alexander Moreno, Hui Wei, Benjamin M. Marlin, James M. Rehg

The success of self-supervised contrastive learning hinges on identifying positive data pairs, such that when they are pushed together in embedding space, the space encodes useful information for subsequent downstream tasks. Constructing positive pairs is non-trivial as the pairing must be similar enough to reflect a shared semantic meaning, but different enough to capture within-class variation. Classical approaches in vision use augmentations to exploit well-established invariances to construct positive pairs, but invariances in the time-series domain are much less obvious. In our work, we propose a novel method of using a learned measure for identifying positive pairs. Our Retrieval-Based Reconstruction (REBAR) measure measures the similarity between two sequences as the reconstruction error that results from reconstructing one sequence with retrieved information from the other. Then, if the two sequences have high REBAR similarity, we label them as a positive pair. Through validation experiments, we show that the REBAR error is a predictor of mutual class membership. Once integrated into a contrastive learning framework, our REBAR method learns an embedding that achieves state-of-the-art performance on downstream tasks across various modalities.

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

Code

Syntology Ran 10 of 20 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 2 ran · fixture could not drive it; 8 ran with no contract checked.

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

maxxu05/rebar 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

20 samples harvested; 10 ran; 0 honoured the contract we drafted; 10 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.

2ran · fixture could not drive it
8ran
10unverified

Licence: 0 of the 20 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 maxxu05/rebar. “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.

ConvBlock maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository ran · metamorphic tier: invariant fingerprinted MIT (permissive) · 032b67e962be8a73 · report
DilatedConvEncoder maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository ran · metamorphic tier: invariant fingerprinted MIT (permissive) · d8ef63e77b9e62e8 · report
PartialConv1d maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository ran MIT (permissive) · 5c264d8180b9ea93 · report
REBAR_CrossAttn_Config maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository ran MIT (permissive) · 1c9448d608e6c3c8 · report
RevIN maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository ran · metamorphic tier: invariant MIT (permissive) · 5682c8bbc83e0654 · report
SamePadConv maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository ran fingerprinted MIT (permissive) · cb26426b6abfe2d3 · report
TSEncoder maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository ran fingerprinted MIT (permissive) · 5ac764d53a53c6ea · report
contrastive_loss_imp maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository ran · fixture could not drive it MIT (permissive) · da59efe85eb510fd · report
instance_contrastive_loss_imp maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository ran · fixture could not drive it MIT (permissive) · 52094c3be8d651d0 · report
rebarcrossattn_maskdataset maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository ran fingerprinted MIT (permissive) · c36a648ab5d202e3 · report
BaseModelClass maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository unverified MIT (permissive) · bdb1d98d6919b1e5 · report
Base_ExpConfig maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository unverified MIT (permissive) · 6c78dfb252a62051 · report
REBAR maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository unverified MIT (permissive) · 0c1056dec45ae563 · report
REBARCrossAttn_SSLModel maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository unverified MIT (permissive) · afef9af0260b617c · report
REBAR_CrossAttn_Trainer maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository unverified MIT (permissive) · 048bc33d3e7220e9 · report
REBAR_ExpConfig maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository unverified MIT (permissive) · 2d001c071ada228b · report
dilated_conv_block maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository unverified MIT (permissive) · 043a6f17d3a20a2f · report
dilated_conv_net maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository unverified MIT (permissive) · 04d4a41a1d4750ea · report
printlog maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository unverified MIT (permissive) · d9a0d378a8f04f69 · report
temporal_contrastive_loss_imp maxxu05/rebar/models/REBAR/REBAR_SSLModel.py official repository unverified MIT (permissive) · 47a35796faef934f · report

Tasks

Contrastive LearningRetrievalTime Series

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