Papers › Battling the Non-stationarity in Time Series Forecasting via Test-time Adaptation

Battling the Non-stationarity in Time Series Forecasting via Test-time Adaptation

9 Jan 2025arXiv:2501.04970archive 2025-07-28

HyunGi Kim, Siwon Kim, Jisoo Mok, Sungroh Yoon

Deep Neural Networks have spearheaded remarkable advancements in time series forecasting (TSF), one of the major tasks in time series modeling. Nonetheless, the non-stationarity of time series undermines the reliability of pre-trained source time series forecasters in mission-critical deployment settings. In this study, we introduce a pioneering test-time adaptation framework tailored for TSF (TSF-TTA). TAFAS, the proposed approach to TSF-TTA, flexibly adapts source forecasters to continuously shifting test distributions while preserving the core semantic information learned during pre-training. The novel utilization of partially-observed ground truth and gated calibration module enables proactive, robust, and model-agnostic adaptation of source forecasters. Experiments on diverse benchmark datasets and cutting-edge architectures demonstrate the efficacy and generality of TAFAS, especially in long-term forecasting scenarios that suffer from significant distribution shifts. The code is available at https://github.com/kimanki/TAFAS.

PaperPDFCodeCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 31 code samples harvested from 1 repository linked to this paper: 12 ran (of which 0 constructed an object rather than computing a result; 9 with no instrument failure: 0 honoured, 0 violated, 9 with no contract checked; 3 where Syntology's instrument failed) · 19 unverified. Where Syntology's instrument failed: 3 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: official repository: 31 samples from 1 repository, 12 ran (9 with no instrument failure; 3 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

kimanki/tafas officialmentioned in paperpytorchSyntology: 31 samples, 12 ran (3 instrument-failed) · 19 unverified 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

31 samples harvested: 12 ran (of which 0 constructed an object rather than computing a result; 9 with no instrument failure: 0 honoured, 0 violated, 9 with no contract checked; 3 where Syntology's instrument failed) · 19 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

3ran · our draft was wrong
9ran
19unverified

Licence: 31 of the 31 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 kimanki/tafas. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

kimanki/tafas official repository 31 samples, 12 ran (3 instrument-failed) · 19 unverified
Calibration tta/tafas.py ran licence not identified · pointer only · 57a469abb0c62313 · report fixture: signature inputs:tuple/1/Tensor · returned tuple · level recorded 2026-09-22
DayOfMonth tta/tafas.py ran · metamorphic tier: well formed licence not identified · pointer only · 69102eee6ef834b4 · report fixture: signature index:DatetimeIndex/1/datetime64[us] · returned Index · level recorded 2026-09-22
DayOfWeek tta/tafas.py ran · metamorphic tier: well formed licence not identified · pointer only · e7ad723765a63c28 · report fixture: signature index:DatetimeIndex/1/datetime64[us] · returned Index · level recorded 2026-09-22
DayOfYear tta/tafas.py ran · metamorphic tier: well formed licence not identified · pointer only · 427d616ee2d1dd47 · report fixture: signature index:DatetimeIndex/1/datetime64[us] · returned Index · level recorded 2026-09-22
GCM tta/tafas.py ran · metamorphic tier: invariant licence not identified · pointer only · 787bd760383538d3 · report fixture: signature x:Tensor/3/float · returned Tensor · level recorded 2026-09-22
HourOfDay tta/tafas.py ran · metamorphic tier: well formed licence not identified · pointer only · cb12af2889099f69 · report fixture: signature index:DatetimeIndex/1/datetime64[us] · returned Index · level recorded 2026-09-22
MonthOfYear tta/tafas.py ran · metamorphic tier: well formed licence not identified · pointer only · 77ad6f803f2a48b2 · report fixture: signature index:DatetimeIndex/1/datetime64[us] · returned Index · level recorded 2026-09-22
TimeFeature tta/tafas.py ran licence not identified · pointer only · c4d279d29d9bc7d7 · report fixture: signature index:DatetimeIndex/1/datetime64[us] · returned NoneType · level recorded 2026-09-24
WeekOfYear tta/tafas.py ran · metamorphic tier: well formed licence not identified · pointer only · c52069366688d0e0 · report fixture: signature index:DatetimeIndex/1/datetime64[us] · returned Series · level recorded 2026-09-22
get_norm_method tta/tafas.py ran · our draft was wrong licence not identified · pointer only · 11e0c129a5a8179f · report fixture: signature cfg:Config/0/? · returned str · level recorded 2026-09-22
get_optimizer in 228 papers tta/tafas.py ran · our draft was wrong licence not identified · pointer only · 246502cc068a88c8 · report fixture: signature optim_params:generator/0/?, cfg:Config/0/? · returned Adam · level recorded 2026-09-22
prepare_inputs in 14 papers tta/tafas.py ran · our draft was wrong licence not identified · pointer only · 4bdfc4f9ecfaa4e7 · report fixture: returned Tensor · level recorded 2026-09-22
Adapter in 28 papers tta/tafas.py unverified licence not identified · pointer only · dbfcf1e68493e38e · report
ETTh1 tta/tafas.py unverified licence not identified · pointer only · 2983007d48cc8e69 · report
ETTh2 tta/tafas.py unverified licence not identified · pointer only · 158706717d3566b6 · report
ETTm1 tta/tafas.py unverified licence not identified · pointer only · 84479f9476508439 · report
ETTm2 tta/tafas.py unverified licence not identified · pointer only · 4dffead69b6f1235 · report
Electricity tta/tafas.py unverified licence not identified · pointer only · 6194a967f6560545 · report
Exchange tta/tafas.py unverified licence not identified · pointer only · 34db45ed118c7333 · report
ForecastingDataset tta/tafas.py unverified licence not identified · pointer only · 04f5f10b98ac5a0b · report
Illness tta/tafas.py unverified licence not identified · pointer only · 2d7cb4bb8828db9c · report
MinuteOfHour tta/tafas.py unverified licence not identified · pointer only · b0e6695c17e0a354 · report
SecondOfMinute tta/tafas.py unverified licence not identified · pointer only · 7587b3d7ae33f5f6 · report
Traffic tta/tafas.py unverified licence not identified · pointer only · 474221b2e3e6647c · report
Weather tta/tafas.py unverified licence not identified · pointer only · aae3196666b43d9e · report
build_dataset in 151 papers tta/tafas.py unverified licence not identified · pointer only · bdf4a9030fd490ad · report
construct_loader in 6 papers tta/tafas.py unverified licence not identified · pointer only · af09d5277cb31c6e · report
forecast tta/tafas.py unverified licence not identified · pointer only · 9882e40688482a90 · report
get_test_dataloader in 7 papers tta/tafas.py unverified licence not identified · pointer only · d8f02721ee5c52db · report
time_features in 21 papers tta/tafas.py unverified licence not identified · pointer only · 16f20c85e0637628 · report
time_features_from_frequency_str in 20 papers tta/tafas.py unverified licence not identified · pointer only · 7870a2c691d73fab · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for TAFAS (graph method: TAFAS). 31 bricks; individually on a fixture: 12 ran (of which 0 constructed an object rather than computing a result; 9 with no instrument failure: 0 honoured, 0 violated, 9 with no contract checked; 3 where Syntology's instrument failed) · 19 unverified. The assembly has not been run end-to-end.

  1. Adapter entry · level 0 · unverified · dbfcf1e68493e38e
  2. Calibration model · level 1 · ran · 57a469abb0c62313
  3. forecast helper · level 0 · unverified · 9882e40688482a90
  4. get_norm_method helper · level 1 · ran · our draft was wrong · 11e0c129a5a8179f
  5. get_optimizer helper · level 1 · ran · our draft was wrong · 246502cc068a88c8
  6. get_test_dataloader helper · level 0 · unverified · d8f02721ee5c52db
  7. prepare_inputs helper · level 1 · ran · our draft was wrong · 4bdfc4f9ecfaa4e7
  8. GCM model · level 1 · ran · 787bd760383538d3
  9. construct_loader helper · level 0 · unverified · af09d5277cb31c6e
  10. build_dataset helper · level 0 · unverified · bdf4a9030fd490ad
  11. ETTh1 helper · level 0 · unverified · 2983007d48cc8e69
  12. ETTh2 helper · level 0 · unverified · 158706717d3566b6
  13. ETTm1 helper · level 0 · unverified · 84479f9476508439
  14. ETTm2 helper · level 0 · unverified · 4dffead69b6f1235
  15. Electricity helper · level 0 · unverified · 6194a967f6560545
  16. Exchange helper · level 0 · unverified · 34db45ed118c7333
  17. Illness helper · level 0 · unverified · 2d7cb4bb8828db9c
  18. Traffic helper · level 0 · unverified · 474221b2e3e6647c
  19. Weather helper · level 0 · unverified · aae3196666b43d9e
  20. ForecastingDataset helper · level 0 · unverified · 04f5f10b98ac5a0b
  21. time_features helper · level 0 · unverified · 16f20c85e0637628
  22. time_features_from_frequency_str helper · level 0 · unverified · 7870a2c691d73fab
  23. DayOfMonth helper · level 1 · ran · 69102eee6ef834b4
  24. DayOfWeek helper · level 1 · ran · e7ad723765a63c28
  25. DayOfYear helper · level 1 · ran · 427d616ee2d1dd47
  26. HourOfDay helper · level 1 · ran · cb12af2889099f69
  27. MinuteOfHour helper · level 0 · unverified · b0e6695c17e0a354
  28. MonthOfYear helper · level 1 · ran · 77ad6f803f2a48b2
  29. SecondOfMinute helper · level 0 · unverified · 7587b3d7ae33f5f6
  30. TimeFeature helper · level 1 · ran · c4d279d29d9bc7d7
  31. WeekOfYear helper · level 1 · ran · c52069366688d0e0

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2501.04970") returns these assemblies with each brick's role and wiring (how to connect).

Tasks

Test-time AdaptationTime SeriesTime Series Forecasting

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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