SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.23475 · ICML · 2025

TimePoint: Accelerated Time Series Alignment via Self-Supervised Keypoint and Descriptor Learning

Ron Shapira, Oren Freifeld, Shahaf Finder, Ron Shapira Weber, Shahar Ben Ishay, Andrey Lavrinenko

arXiv · PDF · Open in the Atlas

Code that ran

9 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 6 have no contract verdict; 2 failures of our instrument; 6 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/2505.23475.json · badge: /api/ran/2505.23475.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
bgu-cs-vil/timepoint canonical (classifier label)
classifier basis: classifier_2025
8 ran · 6 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
ConvBlock1D Ran
ran on a synthesized input
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("6c339b770f856bc5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

# INIT_ARGS for ConvBlock1D.__init__
INIT_ARGS = {
    'c_in': 3,
    'c_out': 5,
    'kernel_size': 3,
    'stride': 1,
    'norm': nn.BatchNorm1d,
    'act': nn.ReLU,
    'padding': 1
}

# ARGS for ConvBlock1D.forward
# Input shape: (batch_size, c_in, sequence_length)
ARGS = {
    'x': torch.randn(2, 3, 8)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
DetectorHead1D Ran
ran on a synthesized input
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("9eebdbfec76d3f38")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (2, 1, 128) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

class DetectorHead1D(nn.Module):
    """
    Detector Head for predicting keypoint probability map.
    """

    def __init__(self, input_channels, cell_size=8):
        super(DetectorHead1D, self).__init__()
        self.cell_size = cell_size
        self.conv = nn.Conv1d(input_channels, cell_size + 1, kernel_size=1)

    def forward(self, x):
        N, C, Lc = x.shape
        x = self.conv(x)
        x = torch.sigmoid(x)
        x = x[:, :-1, :]
        x = x.permute(0, 2, 1).reshape(N, 1, Lc * self.cell_size)
        return x


INIT_ARGS = {
    'input_channels': 4,
    'cell_size': 8,
}

ARGS = {
    'x': torch.randn(2, 4, 16),
}

if __name__ == '__main__':
    model = DetectorHead1D(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Input shape: {ARGS['x'].shape}")
    print(f"Output shape: {output.shape}")
    print(f"Output min: {output.min()}, max: {output.max()}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 1, 128) — shape (2, 1, 128) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Encoder1D Ran
ran on a synthesized input
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("4931d969792676df")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (2, 32, 8) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

# Define the classes
class ConvBlock1D(nn.Module):

    def __init__(self, c_in, c_out, kernel_size=3, stride=1, norm=nn.BatchNorm1d, act=nn.ReLU, padding=1):
        super(ConvBlock1D, self).__init__()
        self.layer = nn.Sequential(nn.Conv1d(c_in, c_out, kernel_size=kernel_size, stride=stride, padding=padding), norm(c_out), act(inplace=True))

    def forward(self, x):
        return self.layer(x)

class Encoder1D(nn.Module):
    """
    Encoder that downsamples the input signal by a factor of 8.
    """

    def __init__(self, input_channels=1, dims=[64, 64, 128, 128]):
        super(Encoder1D, self).__init__()
        self.layer1 = ConvBlock1D(input_channels, dims[0], stride=1)
        self.layer2 = ConvBlock1D(dims[0], dims[1], stride=2)
        self.layer3 = ConvBlock1D(dims[1], dims[2], stride=2)
        self.layer4 = ConvBlock1D(dims[2], dims[3], stride=2)

    def forward(self, x):
        x = self.layer1(x)
        x = self.layer2(x)
        x = self.layer3(x)
        x = self.layer4(x)
        return x

# Setup arguments
INIT_ARGS = {
    'input_channels': 1,
    'dims': [4, 8, 16, 32]
}

# Input: batch_size=2, input_channels=1, sequence_length=64
ARGS = {
    'x': torch.randn(2, 1, 64)
}

# Construct and call
encoder = Encoder1D(**INIT_ARGS)
output = encoder(**ARGS)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 32, 8) — shape (2, 32, 8) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
WTConvBlock1D Ran
ran on a synthesized input
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("fd87addbb58f7d92")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np
from functools import partial
import pywt

INIT_ARGS = {
    'c_in': 4,
    'c_out': 4,
    'kernel_size': 3,
    'stride': 1,
    'norm': nn.BatchNorm1d,
    'act': nn.ReLU,
    'wt_levels': 2
}

# Create a small input tensor for forward pass
batch_size = 2
seq_len = 8  # Must be divisible by 2^wt_levels (2^2=4)
input_tensor = torch.randn(batch_size, INIT_ARGS['c_in'], seq_len)

ARGS = {
    'x': input_tensor
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, pywt, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
_ScaleModule Ran
ran on a synthesized input
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("8e49de55d8b36434")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (2, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

class _ScaleModule(nn.Module):

    def __init__(self, dims, init_scale=1.0, init_bias=0):
        super(_ScaleModule, self).__init__()
        self.dims = dims
        self.weight = nn.Parameter(torch.ones(*dims) * init_scale)
        self.bias = None

    def forward(self, x):
        return torch.mul(self.weight, x)


INIT_ARGS = {
    'dims': (4, 3),
    'init_scale': 2.0,
    'init_bias': 0
}

ARGS = {
    'x': torch.randn(2, 4, 3)
}

if __name__ == '__main__':
    module = _ScaleModule(**INIT_ARGS)
    output = module(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output:\n{output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
count_parameters Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from crisbodnar/ndp
pointer only · get_code("f6b944f50d3f15ae")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

create_wavelet_filter Ran
ran; our contract draft was wrong, not the code
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("527fefe15c9f6784")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import pywt

torch.manual_seed(0)

ARGS = {
    "wave": "db1",
    "in_size": 3,
    "out_size": 2,
    "type": torch.float
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
pywt, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_topk_in_original_order Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("5a0cf77ab032ec87")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct small tensors for the function
N = 2  # batch size
C = 4  # descriptor dimension
L = 8  # number of keypoints
K = 3  # top-k to select

# X_desc: shape [N, C, L] - descriptors for keypoints
X_desc = torch.randn(N, C, L)

# X_probas: shape [N, L] - keypoint probabilities
X_probas = torch.rand(N, L)

ARGS = {
    "X_desc": X_desc,
    "X_probas": X_probas,
    "K": K,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
non_maximum_suppression Ran
ran on a synthesized input
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("a1c12bb3fb090024")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F
import numpy as np

torch.manual_seed(0)

# Create a small detection probability tensor
# Shape [N, L] where N=2 (batch size), L=4 (sequence length)
detection_prob = torch.rand(2, 4)

# Construct ARGS dict with all parameters
ARGS = {
    "detection_prob": detection_prob,
    "window_size": 7
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
DescriptorHead1D Not yet run
unverified (harvested, no recorded run)
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("f498901bcfc4f536")
How it ran

no invocation recorded.

TimePoint Not yet run
unverified (harvested, no recorded run)
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("0c4b21cb67494466")
How it ran

no invocation recorded.

WTConv1d Not yet run
unverified (harvested, no recorded run)
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("cff6419659b662cf")
How it ran

no invocation recorded.

WTConvEncoder1D Not yet run
unverified (harvested, no recorded run)
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("1199198b2f3ad3e3")
How it ran

no invocation recorded.

inverse_wavelet_transform Not yet run
unverified (harvested, no recorded run)
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("de2e6d639a5eedca")
How it ran

no invocation recorded.

wavelet_transform Not yet run
unverified (harvested, no recorded run)
bgu-cs-vil/timepoint/TimePoint/models/timepoint.py
code served (permissive licence) · get_code("329c619e6aa1ff7e")
How it ran

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, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 14 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
count_parameters
brick of this paper's assembly: helper
180 other papers
162 dated earlier, 1 the same month, 15 later, 2 same year, order not determinable · 8 only as an assembly brick
1705.08415 (2017-05)
Supervised Community Detection with Line Graph Neural Networks
1707.01926 (2017-07)
Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting
1808.09367 (2018-08)
Deriving Machine Attention from Human Rationales
and 177 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

Fast and scalable alignment of time series is a fundamental challenge in many domains. The standard solution, Dynamic Time Warping (DTW), struggles with poor scalability and sensitivity to noise. We introduce TimePoint, a self-supervised method that dramatically accelerates DTW-based alignment while typically improving alignment accuracy by learning keypoints and descriptors from synthetic data. Inspired by 2D keypoint detection but carefully adapted to the unique challenges of 1D signals, TimePoint leverages efficient 1D diffeomorphisms-which effectively model nonlinear time warping-to generate realistic training data. This approach, along with fully convolutional and wavelet convolutional architectures, enables the extraction of informative keypoints and descriptors. Applying DTW to these sparse representations yields major speedups and typically higher alignment accuracy than standard DTW applied to the full signals. TimePoint demonstrates strong generalization to real-world time series when trained solely on synthetic data, and further improves with fine-tuning on real data. Extensive experiments demonstrate that Time-Point consistently achieves faster and more accurate alignments than standard DTW, making it a scalable solution for time-series analysis. Our code is available at https://github.com/ BGU-CS-VIL/TimePoint.

For agents

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

get_harvested_code_for_paper("2505.23475")
get_code_for_paper("2505.23475")
have("2505.23475")

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

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

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

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

Connect an agent — have() is free.