Papers › Matrix Profile for Time-Series Anomaly Detection: A Reproducible Open-Source Benchmark...

Matrix Profile for Time-Series Anomaly Detection: A Reproducible Open-Source Benchmark on TSB-AD

2 Apr 2026arXiv:2604.02445added by Syntology

Chin-Chia Michael Yeh

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Matrix Profile (MP) methods are an interpretable and scalable family of distance-based methods for time-series anomaly detection, but strong benchmark performance still depends on design choices beyond a vanilla nearest-neighbor profile. This technical report documents an open-source Matrix Profile for Anomaly Detection (MMPAD) submission to TSB-AD, a benchmark that covers both univariate and multivariate time series. The submitted system combines pre-sorted multidimensional aggregation, efficient exclusion-zone-aware k-nearest-neighbor (kNN) retrieval for repeated anomalies, and moving-average post-processing. To serve as a reproducible reference for MP-based anomaly detection on TSB-AD, we detail the released implementation, the hyperparameter settings for the univariate and multivariate tracks, and the corresponding benchmark results. We further analyze how the system performs on the aggregate leaderboard and across specific dataset characteristics.The open-source implementation is available at https://github.com/mcyeh/mmpad_tsb.

PaperPDFCode 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="2604.02445")

Code

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

By repository: found in paper text by Syntology: 40 samples from 1 repository, 33 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mcyeh/mmpad_tsb found in paper text by Syntology report

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

40 samples harvested; 33 ran; 3 honoured the contract we drafted; 7 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.

3ran · honoured contract
2ran · violated contract
10ran · our draft was wrong
4ran · fixture could not drive it
14ran
7unverified

Licence: 0 of the 40 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 mcyeh/mmpad_tsb. “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.

_apply_post_sorting_cpu mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran Apache-2.0 (permissive) · 816dafadd8d08eba · report
_apply_post_sorting_torch mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · fixture could not drive it Apache-2.0 (permissive) · e4dddcbf47525e7f · report
_apply_pre_sorting_cpu mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran Apache-2.0 (permissive) · c8b83c9c66d075fd · report
_apply_pre_sorting_torch mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran Apache-2.0 (permissive) · b52c401ec6807126 · report
_apply_selfjoin_exclude_torch mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 79ac12743285c8aa · report
_auto_execution mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran Apache-2.0 (permissive) · 69a82d2058717b41 · report
_build_preprocessed_cpu mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran Apache-2.0 (permissive) · ee0e5af3ca760add · report
_build_state_from_cpu mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran Apache-2.0 (permissive) · e40287e1bcf095cf · report
_exact_product_matrix_gpu mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran Apache-2.0 (permissive) · 55f16590e7c09a28 · report
_gpu_find_knn_0_torch_impl mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran Apache-2.0 (permissive) · d4d8eea10f904278 · report
_infer_selfjoin mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · violated contract fingerprinted Apache-2.0 (permissive) · fb7c3ba463f546b1 · report
_is_degenerate_mpval mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · violated contract fingerprinted Apache-2.0 (permissive) · 5131697723ef39cc · report
_log_progress mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran Apache-2.0 (permissive) · e1804050f4522db2 · report
_output_dim mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · honoured contract Apache-2.0 (permissive) · 0f9ae794f82eb75a · report
_parse_sorting_place mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 748e5b1314495294 · report
_preprocess_seq mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran Apache-2.0 (permissive) · 2eebb5e4eb17e15c · report
_resolve_anchor_starts mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 90f55de3c2503ff4 · report
_resolve_device_name mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 2cc45bea7a0bf753 · report
_resolve_exact_product_chunk_rows mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · fb29647101877a46 · report
_resolve_find_knn_impl mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 5a67ca80c09af180 · report
_resolve_reseed_period mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · honoured contract fingerprinted Apache-2.0 (permissive) · e0d21c6732d9daf6 · report
_resolve_row_selection_mode mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · a0f6b47f54c398e6 · report
_sliding_products_cpu mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · honoured contract fingerprinted Apache-2.0 (permissive) · c872092433fdec89 · report
_sliding_products_gpu_impl mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · f61b33969347a49d · report
_torch_dtype mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 6c0e7f72afdd3494 · report
apply_exclude mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 2c6cdeaa2841f082 · report
find_knn_0 mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · e73dc8c790405dad · report
find_knn_1 mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · c9c98563f8561adc · report
find_knn_2 mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · e20fe1ad82948d5e · report
mass mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran Apache-2.0 (permissive) · 061aefafb6ae447e · report
mass_pre mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · fd6537a36764dabc · report
normalize_precision mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · c1491d6beb0b58e6 · report
validate_execution mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 36e531c3391cf29a · report
_gpu_find_knn_1d_torch_impl mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 3f417bf9cdcaf3d1 · report
_masked_profile_from_product_impl mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 35aecbfe95b35666 · report
_mstomp_torch mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 690c9ddd9beff4bc · report
_process_chunk mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology unverified Apache-2.0 (permissive) · a26a8dd98634ec15 · report
_select_row_profile_cpu mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 3ecd4690e5b054b0 · report
_select_row_profile_torch mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 98804049ba2acf81 · report
mstomp mcyeh/mmpad_tsb/mmpad_submission/mstomp_gpu.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f9b83e8ffdb21fd3 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2604.02445, was issued in April 2026, after that date, so the archive has no leaderboard rows for it.

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