TL;DR
MF-CLR is a novel self-supervised framework designed to learn high-quality representations from time series data sampled at multiple frequencies (e.g., combining daily stock prices with quarterly earnings). By using a hierarchical contrastive architecture and a specialized "Dual Twister" augmentation, it outperforms state-of-the-art models across forecasting, classification, and anomaly detection tasks, especially in data-scarce transfer learning scenarios.
The Challenge of Multi-Frequency Data
In fields like finance and healthcare, data rarely arrives in a neat, uniform stream. A financial researcher might track daily stock indices, monthly unemployment rates, and quarterly corporate revenue. Most existing time series models, however, assume a single, consistent sampling rate (uni-frequency).
When these uni-frequency models are forced to handle multi-frequency data, they often struggle. Standard data augmentations—like randomly shuffling segments—can destroy the delicate structure of low-frequency signals. Furthermore, common assumptions like "temporal consistency" (the idea that adjacent time points should have similar representations) can fail when a low-frequency variable hits a sudden change point. The authors aim to bridge this gap by creating a model that treats frequency diversity as a feature, not a bug.
Introducing MF-CLR
The core contribution of this paper is MF-CLR (Multi-Frequency Contrastive Learning Representation). Its architecture is built on three main pillars:
- Hierarchical Contrastive Blocks: Instead of one giant encoder, MF-CLR uses a stack of blocks. It starts by learning from the highest-frequency data and recursively incorporates lower-frequency information. Each block processes two groups of subseries with adjacent frequencies.
- Dual Twister Augmentation: This is a new augmentation technique that adds noise to both the time axis and the value axis. Crucially, it uses a shared "alignment policy" across all frequency levels to ensure the augmented version preserves the original frequency structure. The authors describe it as an "inverse process" of Dynamic Time Warping (DTW).
- Cross-Frequency Consistency: The model optimizes two properties:
- Instance-wise Property: Standard contrastive learning where an original series and its augmented version are pulled together in the latent space.
- Cross-frequency Property: A novel loss that pulls high-frequency representations closer if their corresponding lower-frequency counterparts are similar in the raw data space.
Key Insights
- Frequency as a Hierarchy: By processing data from high to low frequency, the model explicitly learns invariant representations that capture how fast-moving signals relate to slow-moving trends.
- The "Dual Twister" Advantage: Standard augmentations like cropping or jittering often break the semantic meaning of time series. Dual Twister generates "positive pairs" that look different but mean the same thing to the model, acting as the "secret sauce" for effective contrastive learning.
- Robustness in Transfer Learning: MF-CLR maintains high performance even when the target dataset is significantly reduced (down to 25% of its original size). This suggests the self-supervised pre-training captures more "universal" features than supervised alternatives.
- Temporal Contrast Isn't Always Better: Interestingly, the authors found that adding a specific temporal contrastive loss (common in other models) actually hurt performance in the multi-frequency setting, likely because it over-emphasized fine-grained noise over broader frequency-based patterns.
Unmatched Performance Across Tasks
The authors evaluated MF-CLR on a massive scale, including 30 UEA classification datasets, multiple anomaly detection benchmarks (SMD, SMAP, MSL, SWaT), forecasting datasets (Traffic, ETTm1/m2, Weather), and a custom real-world financial dataset.
- Anomaly Detection: MF-CLR achieved a leading F1 score across four public datasets, outperforming the second-best self-supervised method by an average of 2.22%.
- Classification: On the 30 UEA datasets, it beat all self-supervised baselines (like TS2Vec and T-Loss) across all six metrics.
- Financial Forecasting: In a real-world test on US stocks, MF-CLR outperformed the second-best method (TS-TCC) by 1.06% in price forecasting and beat CoST by 7.18% in net income forecasting.
- Imputation: It consistently led in MSE across various masking ratios (12.5% to 50%), proving it can accurately "fill in the blanks" in missing data.
Limitations and Future Work
While MF-CLR excels at capturing broad frequency relationships, the authors note that some supervised end-to-end models (like Informer) might still perform better at modeling extremely fine-grained, step-by-step neighborhood relationships in specific datasets. Looking ahead, the team plans to follow the path of "Foundation Models" by pre-training MF-CLR on even larger, more diverse collections of real-world data to create a truly universal time series representation tool.
Summary updated