SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.21957 · 2026

Learning by Shifting: Temporal View Construction for Time Series Contrastive Learning

Gavin Taylor, Kerstin Bach, Abdul-Kazeem Shamba

arXiv · PDF

Code that ran

7 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (5 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/2606.21957.json · badge: /api/ran/2606.21957.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
sfi-norwai/ShiFT community
Papers with Code archive
7 ran · 1 no recorded run
FunctionStatusWhere it lives
Compose Ran
ran on a synthesized input · constructed an object; no result was computed
sfi-norwai/ShiFT/baselines/shift.py
pointer only (licence: NONE) · get_code("1555df7d492e3850")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sfi-norwai/ShiFT 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.

Cutout Ran
ran on a synthesized input · constructed an object; no result was computed
sfi-norwai/ShiFT/baselines/shift.py
pointer only (licence: NONE) · get_code("505bacfb8f72ff2a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sfi-norwai/ShiFT 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.

Jitter Ran
ran on a synthesized input · constructed an object; no result was computed
sfi-norwai/ShiFT/baselines/shift.py
pointer only (licence: NONE) · get_code("8f661a9b29b43679")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sfi-norwai/ShiFT 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.

NT_Xent Ran
ran on a synthesized input · constructed an object; no result was computed
sfi-norwai/ShiFT/baselines/shift.py
pointer only (licence: NONE) · get_code("cb46e80c57b0d4b8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sfi-norwai/ShiFT 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.

Scaling Ran
ran on a synthesized input · constructed an object; no result was computed
sfi-norwai/ShiFT/baselines/shift.py
pointer only (licence: NONE) · get_code("dbe122b145849a79")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sfi-norwai/ShiFT 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.

cosine_warmup_scheduler Ran
ran; our contract draft was wrong, not the code
sfi-norwai/ShiFT/baselines/shift.py
pointer only (licence: NONE) · get_code("a25a3670cfb99099")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sfi-norwai/ShiFT 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.

name_with_datetime Ran
ran; our contract draft was wrong, not the code
sfi-norwai/ShiFT/baselines/shift.py
pointer only (licence: NONE) · get_code("0bd5e66fe222beb6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sfi-norwai/ShiFT 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.

Shift_CL Not yet run
unverified (harvested, no recorded run)
sfi-norwai/ShiFT/baselines/shift.py
pointer only (licence: NONE) · get_code("87cd98563976037b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sfi-norwai/ShiFT 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 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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

Supervised learning demands large quantities of labeled data, a bottleneck that is expensive and reliant on domain-specific expertise. Self-supervised learning, particularly contrastive learning, has emerged as a compelling alternative, enabling rich representation learning directly from unlabeled data. Yet its success hinges critically on the design of positive and negative sample pairs. Existing approaches for time series rely on hand-crafted augmentations and masking heuristics that embed strong domain assumptions, often limiting generalization across diverse temporal patterns and potentially introducing spurious correlations. In this work, we challenge this paradigm by demonstrating that explicitly encoding temporal shift invariance through a simple, deterministic view construction is sufficient to learn strong representations for time series classification. By exploiting temporal structure, our method, Shift Invariant Feature Training (ShiFT), achieves state-of-the-art performance on six diverse real-world time series benchmark datasets, as well as the UCR and UEA archives, while reducing training time. Beyond empirical performance, we present a systematic analysis of contrastive learning dynamics in time series settings, examining the effects of batch size and the number of negatives on downstream performance. Our findings provide practical insights for designing efficient contrastive learning frameworks for time series representation learning. The source code is publicly available at https://github.com/sfi-norwai/ShiFT.

For agents

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

get_harvested_code_for_paper("2606.21957")
get_code_for_paper("2606.21957")
have("2606.21957")

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

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

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

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

Connect an agent — have() is free.