REVIEW 3 major objections 4 minor 27 references
WECA, a weighted contrastive training objective, makes deep forecasters accurate under anomalies without degrading normal performance.
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · deepseek-v4-flash
2026-08-03 17:51 UTC pith:3JFEOBKU
load-bearing objection A sensible weighted-contrastive forecasting variant; the real open question is whether the 6-point gain transfers beyond the synthetic anomaly generator it was trained on. the 3 major comments →
Weighted Contrastive Learning for Anomaly-Aware Time-Series Forecasting
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
WECA trains a forecaster by combining the usual MAE forecasting loss with a weighted InfoNCE-style contrastive loss between the encoder representations of an input window and an anomaly-augmented version of it. The weight w(i,t) in [0,1] scales each positive pair's contribution: for mild or benign perturbations the weight is near 1, forcing strong alignment and invariance; for severe anomalies the weight is smaller, allowing the representation to retain the anomaly's distinguishing signal. This yields an encoder-decoder model that produces a 14-day forecast horizon with a deep forecaster as backbone. The paper reports that on a test set of 20% of 1.3k ATM time series, normal-data SMAPE stays
What carries the argument
The central mechanism is the similarity weight w(i,t), computed from the Euclidean distance between the original and anomaly-augmented input windows at each timestep. It interpolates between full invariance (w near 1, benign variations aligned) and full sensitivity (w near 0, anomaly-specific structure preserved) inside an InfoNCE-style contrastive objective (a standard similarity-based alignment loss). This single knob, combined with a forecasting loss, is what lets one model serve both normal and anomalous regimes; when w=1 the method degenerates to standard instance-wise contrastive learning.
Load-bearing premise
The anomaly-affected evaluation uses the same synthetic anomaly generator that WECA is trained on — amplitude, duration, and decay drawn from distributions fitted to a single historical event — so the 6.1-point gain may not transfer to real-world anomalies with different shapes or timing.
What would settle it
Train WECA and the no-adaptation baseline on the ATM dataset, then evaluate both on a held-out set of real anomaly timesteps (e.g., actual outages or crises not used to fit the augmentation distribution). If WECA's SMAPE on those timesteps is not better than the baseline's, the central claim of generalized anomaly-awareness fails.
If this is right
- A forecaster trained with WECA can be deployed directly on streaming data and will react to distribution shifts without any retraining or fine-tuning.
- WECA's improvement on anomaly-affected data (6.13 SMAPE points) is achieved with negligible change on normal data (Δ=-0.03), so operational performance in regular periods is preserved.
- The weighting scheme gives practitioners a tunable invariance-sensitivity trade-off: adjusting the weight computation or the contrastive weight lambda controls how much anomaly signal is retained.
- Because WECA only requires the availability of anomaly-augmented training samples and works with the same backbone as the baseline, it can be applied on top of any existing deep forecaster.
- WECA reduces the gap to fine-tuning on anomaly data (31.78 vs 30.69) while avoiding fine-tuning's normal-data degradation (28.70 vs 31.50), making it the preferred adaptation strategy when both regimes matter.
Where Pith is reading between the lines
- An immediate test would be to hold out a real historical anomaly event (one not used to fit the augmentation distributions) and measure WECA's SMAPE on those timesteps; the paper's current AD numbers only reflect anomalies generated by the same process used in training.
- The Euclidean-distance weighting is a coarse severity gauge; using a learned severity score or a task-specific distance (e.g., dynamic time warping) might transfer better to anomalies that differ in length or shape.
- If deployed in an environment known to be anomaly-dominated, fine-tuning would still give the lowest anomaly error; WECA is the better choice only when normal-regime accuracy must be protected, which is the common case in cash logistics.
- The per-timestep weights could be interpreted as a soft attention over anomaly intensity; this suggests a natural extension to online adaptation where weights are recomputed from a detected anomaly's magnitude at inference time.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes WECA (Weighted Contrastive Anomaly-Aware Adaptation), a training objective for multivariate time-series forecasting that adds a weighted contrastive term to the forecasting loss. The contrastive term softly aligns representations of normal inputs and their anomaly-augmented counterparts; the weight per sample is derived from the Euclidean distance between the original and augmented input, so that severe anomalies receive weaker alignment and anomaly-relevant information is preserved. The method is evaluated on a nationwide ATM transaction dataset with synthetic anomalies generated by a domain-informed injection process. The authors report that WECA improves SMAPE on anomaly-affected data by 6.13 percentage points relative to normal training, while degrading normal-data performance by only 0.03 points, and conclude that WECA offers a better invariance-sensitivity trade-off than fine-tuning or standard instance contrastive learning.
Significance. If the empirical claim were fully established, WECA would be a useful contribution: it introduces a tunable invariance-sensitivity mechanism and demonstrates that a weighted contrastive objective can preserve anomaly-relevant information while maintaining normal-regime accuracy. The paper also provides a concrete, reproducible anomaly-injection protocol based on domain knowledge. However, the current evidence is not sufficient to support the title-level claim of 'anomaly-aware forecasting.' The AD test set is generated by the same synthetic anomaly generator used for WECA training augmentations, so the 6.13-point gain may reflect in-distribution adaptation rather than general anomaly awareness. Furthermore, the reported advantage over standard contrastive learning (CL-IL) is within the reported standard deviations, and the exact weighting function is left unspecified. These issues are load-bearing for the central claim and require additional experiments and analysis.
major comments (3)
- [Section 4, 'Synthetic Anomaly Augmentation'] The AD evaluation is conducted on anomalies generated by the same distribution used to construct WECA's augmented training samples: A~N(74120,20000), B=0.39, C~N(0.806,0.3) (Fig. 1). WECA's weights w(i,t) are computed from Euclidean distance to that same augmentation (Section 3). Thus the reported 6.13-point improvement over NT is an in-distribution result. A model trained on samples from a distribution will naturally predict samples from that distribution better than a baseline that never sees such samples. The paper provides no held-out anomaly family, no different functional form, and no real-anomaly validation. Without such evidence, the general 'anomaly-aware' claim is not supported beyond this specific synthetic setup.
- [Table 3] The claimed advantage of WECA over CL-IL on AD data is 31.78 vs 33.09 (difference 1.31) with reported standard deviations of 1.93 and 0.96 over 5 runs. This difference is well within the noise level and is not statistically significant. Similarly, WECA vs FT on AD (31.78 vs 30.69, difference 1.09) is within the reported deviations. The statement that WECA 'significantly improves' AD performance relative to CL-IL is therefore not supported. Please report significance tests (e.g., paired bootstrap or corrected t-test) or additional runs, and provide variance estimates for the NT baseline as well.
- [Section 3, Eq. (3)-(4)] The weighting function w(i,t) is central to the method but is not specified. The text says it is computed from the Euclidean distance between original and augmented samples, but no mapping from distance to [0,1] is given. This is a free parameter that affects all reported results and prevents exact reproduction of the method. Please provide the exact functional form of the weighting mapping, and report a sensitivity analysis for both the distance-to-weight mapping and the contrastive coefficient λ (currently fixed at 1).
minor comments (4)
- [Section 4.1, 'Fine-Tuning (FT)'] Typo: 'adapted on anomalouse samples' should be 'anomalous samples.'
- [Table 1] ARIMA and LSTM show dramatically higher SMAPE (68.03 and 80.30) than the other baselines. A brief explanation (e.g., hyperparameter limitations or lack of normalization) would help the reader interpret the backbone selection.
- [Figure 2] The caption refers to a 'red graph' and 'grey graph,' but the figure is not reproduced in the text. Please ensure the color references are clear in the actual figure.
- [Section 4, 'Synthetic Anomaly Augmentation'] The anomaly generator is described as fitted to 'a historical high-impact event,' but no details are given about how the distributions (A, C) and B=0.39 were estimated. A brief description of the fitting procedure would strengthen the domain-informed claim.
Circularity Check
No circularity: WECA's derivation is self-contained; the AD evaluation is in-distribution but not derivationally circular.
full rationale
The paper's derivation chain is self-contained. WECA is defined by Eqs. (1)-(4), with the contrastive weight w(i,t) computed from input-space distance; the method does not fit any parameter to the reported SMAPE values, and the baselines are trained under the same protocol. No load-bearing claim is justified by a self-citation, a uniqueness theorem, or an ansatz smuggled through prior work; the reduction to TS2Vec at w=1 is a stated special case, not a rename. The only evident limitation is external validity: the synthetic anomaly generator (Sec. 4, Fig. 1) is used for both augmentation and the AD test set, so the 6.13-point gain is an in-distribution result and may not transfer to other anomaly shapes or real anomalies. That is an evaluation-scope concern, not a circularity: the model must still learn representations and forecasting behavior from data, and the NT baseline sees no anomalies, so the measured gain is a genuine empirical difference rather than an identity or a fitted-parameter rename.
Axiom & Free-Parameter Ledger
free parameters (6)
- Anomaly amplitude A distribution =
μ=74120, σ=20000
- Anomaly shape exponent C distribution =
μ=0.806, σ=0.3
- Anomaly decay B =
0.39
- Anomaly normalizing constant =
90409
- Contrastive weighting coefficient λ =
1
- Distance-to-weight mapping for w(i,t) =
unspecified
axioms (4)
- domain assumption Anomaly augmentation distributions fitted to one historical high-impact event remain representative of all real ATM anomalies in the test period.
- ad hoc to paper Euclidean distance between original and augmented input is a valid proxy for anomaly severity, and w∈[0,1] derived from it preserves anomaly-relevant information.
- domain assumption TimesNet, selected on normal-data SMAPE, is an appropriate backbone for anomaly-affected forecasting.
- standard math Standard supervised training assumptions: backpropagation, Adam, and early stopping converge to a good optimum for the combined forecast+contrastive loss.
invented entities (1)
-
Synthetic anomaly injection process
no independent evidence
read the original abstract
Reliable forecasting of multivariate time series under anomalous conditions is crucial in applications such as ATM cash logistics, where sudden demand shifts can disrupt operations. Modern deep forecasters achieve high accuracy on normal data but often fail when distribution shifts occur. We propose Weighted Contrastive Adaptation (WECA), a Weighted contrastive objective that aligns normal and anomaly-augmented representations, preserving anomaly-relevant information while maintaining consistency under benign variations. Evaluations on a nationwide ATM transaction dataset with domain-informed anomaly injection show that WECA improves SMAPE on anomaly-affected data by 6.1 percentage points compared to a normally trained baseline, with negligible degradation on normal data. These results demonstrate that WECA enhances forecasting reliability under anomalies without sacrificing performance during regular operations.
Reference graph
Works this paper leans on
-
[1]
Modern ATM net- works produce multivariate time series with strong seasonal patterns and occasional abrupt shifts due to events such as crises, outages, or local disruptions
INTRODUCTION Accurate forecasting of ATM cash withdrawals is critical for cash logistics and service continuity [1, 2]. Modern ATM net- works produce multivariate time series with strong seasonal patterns and occasional abrupt shifts due to events such as crises, outages, or local disruptions. These anomalies induce distribution shifts that can degrade fo...
-
[2]
RNNs improved sequential modeling but suffered from vanishing gradients and slow recurrence [9]
RELA TED WORK Time-series forecasting has evolved from classical models to deep neural architectures capable of capturing nonlinear and long-range dependencies. RNNs improved sequential modeling but suffered from vanishing gradients and slow recurrence [9]. These limitations motivated the adoption of Transformer-based forecasters, which use self-attention...
-
[3]
METHOD Our goal is to train a forecaster that remains accurate under normal operating conditions while also performing well when the data distribution shifts due to anomalous events. Instead of adapting the model after anomalies are observed, we design a training objective that encourages the encoder to learn rep- resentations that are both consistent und...
-
[4]
We adopt a rolling-origin proto- col:70%training,10%validation,20%test
EXPERIMENTS We evaluate on a nationwide ATM transaction dataset cov- ering∼1.3k locations over two years, with daily withdrawal counts as the target variable. We adopt a rolling-origin proto- col:70%training,10%validation,20%test. Synthetic Anomaly Augmentation.We do augmenta- tion by creating anomalous samples based on the knowledge of domain experts. Ea...
-
[5]
CONCLUSION We proposedWeighted-Contrastive Anomaly-Aware Adap- tation (WECA), a training objective that balances invariance and anomaly sensitivity by weighting contrastive alignment between normal and anomaly-augmented sequences. On a large-scale ATM forecasting task, WECA improved perfor- mance under distribution shifts while preserving normal- regime a...
-
[6]
Unsupervised time- series representation learning with iterative bilinear temporal-spectral fusion,
Ling Yang and Shenda Hong, “Unsupervised time- series representation learning with iterative bilinear temporal-spectral fusion,” inInternational conference on machine learning. PMLR, 2022, pp. 25038–25054
2022
-
[7]
Atm cash predic- tion using time series approach,
Muhammad Rafi, Mohammad Taha Wahab, Muham- mad Bilal Khan, and Hani Raza, “Atm cash predic- tion using time series approach,” in2020 3rd iCoMET. IEEE, 2020, pp. 1–6
2020
-
[8]
A structural equation decision model for atm cash management and routing: Balanc- ing cost and customer satisfaction in the banking sec- tor,
Ramiz Assaf, Abdalmuttaleb Al-Sartawi, Zaher Abusaq, and Mohammad Kanan, “A structural equation decision model for atm cash management and routing: Balanc- ing cost and customer satisfaction in the banking sec- tor,”Decision Making: Applications in Management and Engineering, vol. 8, no. 1, pp. 725–742, 2025
2025
-
[9]
Label- efficient time series representation learning: A review,
Emadeldeen Eldele, Mohamed Ragab, Zhenghua Chen, Min Wu, Chee-Keong Kwoh, and Xiaoli Li, “Label- efficient time series representation learning: A review,” IEEE Transactions on Artificial Intelligence, 2024
2024
-
[10]
Unsupervised scalable representation learning for multivariate time series,
Jean-Yves Franceschi, Aymeric Dieuleveut, and Martin Jaggi, “Unsupervised scalable representation learning for multivariate time series,”Advances in neural infor- mation processing systems, vol. 32, 2019
2019
-
[11]
Universal time-series rep- resentation learning: A survey,
Patara Trirat, Yooju Shin, Junhyeok Kang, Youngeun Nam, Jihye Na, Minyoung Bae, Joeun Kim, Byunghyun Kim, and Jae-Gil Lee, “Universal time-series rep- resentation learning: A survey,”arXiv preprint arXiv:2401.03717, 2024
Pith/arXiv arXiv 2024
-
[12]
and Autoformer [13] further reduced the cost of atten- tion, making large-scale forecasting feasible. More recently, frequency-domain models such as TimesNet [14] and FED- former [15] leverage Fourier transforms to extract seasonal patterns with high efficiency, while foundation models like MOMENT [16] pre-train general encoders for transfer learn- ing ac...
Pith/arXiv arXiv 2025
-
[13]
A comprehensive survey on contrastive learning,
Haigen Hu, Xiaoyuan Wang, Yan Zhang, Qi Chen, and Qiu Guan, “A comprehensive survey on contrastive learning,”Neurocomputing, vol. 610, pp. 128645, 2024
2024
-
[14]
Self-supervised contrastive learning for long- term forecasting,
Junwoo Park, Daehoon Gwak, Jaegul Choo, and Edward Choi, “Self-supervised contrastive learning for long- term forecasting,” inThe Twelfth International Confer- ence on Learning Representations, 2024
2024
-
[15]
A comprehensive survey of deep learning for time series forecasting: architectural diversity and open challenges,
Jongseon Kim, Hyungjoon Kim, HyunGi Kim, Dongjun Lee, and Sungroh Yoon, “A comprehensive survey of deep learning for time series forecasting: architectural diversity and open challenges,”Artificial Intelligence Review, vol. 58, no. 7, pp. 1–95, 2025
2025
-
[16]
Attention is all you need,
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin, “Attention is all you need,” 2023
2023
-
[17]
Deep time se- ries models: A comprehensive survey and benchmark,
Yuxuan Wang, Haixu Wu, Jiaxiang Dong, Yong Liu, Mingsheng Long, and Jianmin Wang, “Deep time se- ries models: A comprehensive survey and benchmark,” 2024
2024
-
[18]
In- former: Beyond efficient transformer for long sequence time-series forecasting,
Haoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang, Jianxin Li, Hui Xiong, and Wancai Zhang, “In- former: Beyond efficient transformer for long sequence time-series forecasting,” 2021
2021
-
[19]
Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting,
Haixu Wu, Jiehui Xu, Jianmin Wang, and Mingsheng Long, “Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting,” 2022
2022
-
[20]
Timesnet: Temporal 2d-variation modeling for general time series analysis,
Haixu Wu, Tengge Hu, Yong Liu, Hang Zhou, Jian- min Wang, and Mingsheng Long, “Timesnet: Temporal 2d-variation modeling for general time series analysis,” arXiv preprint arXiv:2210.02186, 2022
Pith/arXiv arXiv 2022
-
[21]
Fedformer: Frequency enhanced decomposed transformer for long-term series forecasting,
Tian Zhou, Ziqing Ma, Qingsong Wen, Xue Wang, Liang Sun, and Rong Jin, “Fedformer: Frequency enhanced decomposed transformer for long-term series forecasting,” 2022
2022
-
[22]
MOMENT: A family of open time-series foundation models,
Mononito Goswami, Konrad Szafer, Arjun Choudhry, Yifu Cai, Shuo Li, and Artur Dubrawski, “MOMENT: A family of open time-series foundation models,” inPro- ceedings of the 41st International Conference on Ma- chine Learning, 2024, pp. 16115–16152
2024
-
[23]
TS2Vec: Towards universal representation of time se- ries,
Zhihan Yue, Yujing Wang, Juanyong Duan, Tianmeng Yang, Congrui Huang, Yunhai Tong, and Bixiong Xu, “TS2Vec: Towards universal representation of time se- ries,” inProceedings of the AAAI Conference on Artifi- cial Intelligence, 2022, vol. 36, pp. 8980–8987
2022
-
[24]
Soft contrastive learning for unsupervised time-series anomaly detection,
Zhihan Zhang, Zhenxing Cao, Yanyan Zhang, Bo Zong, Haifeng Chen, and Wei Wang, “Soft contrastive learning for unsupervised time-series anomaly detection,”arXiv preprint arXiv:2305.14664, 2023
Pith/arXiv arXiv 2023
-
[25]
Timesurl: Self- supervised contrastive learning for universal time series representation learning,
Jiexi Liu and Songcan Chen, “Timesurl: Self- supervised contrastive learning for universal time series representation learning,” inProceedings of the AAAI conference on artificial intelligence, 2024, vol. 38, pp. 13918–13926
2024
-
[26]
An adaptive continual learning method for nonstation- ary industrial time series prediction,
Mengqing Wu, Xiaofeng Zhou, Shuai Li, and Haibo Shi, “An adaptive continual learning method for nonstation- ary industrial time series prediction,”IEEE Transactions on Industrial Informatics, 2024
2024
-
[27]
A comprehensive survey of continual learning: Theory, method and application,
Liyuan Wang, Xingxing Zhang, Hang Su, and Jun Zhu, “A comprehensive survey of continual learning: Theory, method and application,”IEEE transactions on pattern analysis and machine intelligence, vol. 46, no. 8, pp. 5362–5383, 2024
2024
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.