WorksComputer Science
TimeSeek: Multi-Task and Multi-Domain Pretraining for Generalized Time Series Analytics
Abstract
Time series analytics has been widely applied across various domains. While existing time series foundation models (TSFMs) have demonstrated promising results, they still face two major challenges: 1) Most TSFMs mainly rely on stacking Transformer layers to increase parameter size, lacking the ability to adaptively model complex time series patterns from multi-domain data. 2) Current TSFMs are primarily pre-trained for specific tasks, e.g., forecasting or anomaly detection, and a few models support multiple tasks, but they fail to fully leverage task specificity and commonality, resulting in suboptimal performance. To address these challenges, we propose TimeSeek, a novel generalized time series analytics model that adaptively models time series patterns from multi-domain data and unifies multiple tasks in pre-training. Conceptually, TimeSeek is guided by selective information sharing under domain and task heterogeneity. From the perspective of multi-domain data, we propose a Multi-Domain Feature Extractor that adaptively captures temporal dependencies and channel correlations based on domain-specific characteristics, including progressive multi-scale modeling and adaptive slot channel modeling. From the perspective of the diversity of tasks, we propose multi-task collaborative training, which leverages task specificity and task commonality through task customization and cross-task training, effectively unifying multiple tasks in pre-training and better adapting to diverse downstream scenarios. After pre-training on large-scale time series data, TimeSeek achieves state-of-the-art performance in forecasting, anomaly detection, and classification tasks across both few-shot learning and zero-shot situations, together with favorable inference efficiency.
Introduction
WITH the rapid advancement of the Internet of Things, a vast amount of multi-domain time series data has been generated in real-world scenarios, leading to increasing demand for time series analytics, including time series forecasting, anomaly detection, and classification tasks. Time series analytics primarily focuses on modeling complex time series patterns to uncover underlying regularities, thereby providing robust support for decision-making [1]. It has been widely applied across various domains such as finance [2], meteorology [3], transportation [4], and energy [5].
Peng Chen, Yihang Wang, Yang Shu, Yuying Qiu, Yuxuan Chen, Bin Yang, and Chenjuan Guo are with the School of Data Science and Engineering, East China Normal University, Shanghai 200333, China. (email: {pchen, yhwang, yyqiu, chenyx_50}@stu.ecnu.edu.cn, {yshu,byang,cjguo}@dase.ecnu.edu.cn).
Zhongwen Rao and Lujia Pan are with the Noah’s Ark Lab, Hua Wei, China. (email: {raozhongwen, panlujia}@huawei.com)
Chenjuan Guo is the corresponding author.
In recent years, Foundation Models have emerged as a groundbreaking paradigm in deep learning, demonstrating unprecedented success in fields like natural language processing [6, 7] and computer vision [8, 9]. These models leverage massive datasets and large-scale parameter architectures to learn unified representations, exhibiting exceptional generalization capabilities and adaptability across different tasks. Inspired by these achievements, researchers have begun exploring the potential of foundation models for the time series field [10, 11, 12, 13].
Existing Time Series Foundation Models (TSFMs) [10, 11, 13] typically adopt a two-stage paradigm: pre-training on multi-source time series data followed by fine-tuning or direct inference for downstream scenarios. As shown in Figure 1, time series data exhibit distinct temporal dependencies and channel correlations for different domains. In the temporal aspect, time series data often display hierarchical temporal patterns—spanning daily, weekly, and seasonal cycles—with the significance of each scale varying considerably across domains. In the channel aspect, channel correlations show significant inter-domain variability. In some domains, such as IoT sensor networks, strong channel dependencies are inherently present, while in others, such as medical vital sign monitoring, correlations may be comparatively weaker. Therefore, effectively modeling multi-scale features and channel correlations during multi-domain pre-training is necessary. Furthermore, downstream scenarios involve a variety of tasks, including forecasting, anomaly detection, and classification. The prevalent task-specific pre-training approaches in TSFMs [12, 13, 14] not only incur substantial computational costs due to every task requiring a specific foundation model but also limit the model’s capacity to a single task. In contrast, establishing a unified pre-training paradigm that harmonizes heterogeneous tasks would enable more effective adaptation to multi-task scenarios. Considering both the heterogeneity of domain data and the diversity of tasks, we identify two key challenges that need to be addressed to advance time series foundation models.
Figure 1. TimeSeek leverages multi-domain data and unifies multiple tasks in pre-training.
For the heterogeneity of domain data, time series data across different domains exhibit distinct multi-scale and channel correlation patterns. Adaptively modeling these patterns can significantly enhance performance, yet existing methods fall short here. For multi-scale modeling, current TSFMs [10], [13, 14, 15] are typically designed for a single scale, which limits their ability to capture multi-scale features required across different domains. While models like MOIRAI [14] adapt patch sizes for different frequency domains, they still lack dynamic scale integration. For correlation modeling, most TSFMs [10, 11, 12, 13], [16] adopt a channel-independent approach, overlooking the intrinsic correlations between channels. Moreover, the few TSFMs [14] that employ a uniform channel modeling strategy across all domains have the risk of introducing spurious correlations among inherently uncorrelated channels, leading to suboptimal generalization. Therefore, a flexible modeling approach that can dynamically capture two patterns for each domain is essential.
For the diversity of tasks, time series foundation models are expected to serve as versatile tools for diverse downstream applications, necessitating the capability for multi-task learning. While time series tasks share some commonalities, they vary significantly in their objectives and requirements. This inherent heterogeneity can complicate the balancing of learning objectives during pre-training and may even lead to a negative impact between tasks. Existing TSFMs [12, 13, 14] are primarily pre-trained for specific tasks, which not only incur substantial computational costs due to every task requiring a specific foundation model but also restrict the model’s ability to generalize across tasks. While a few TSFMs support multiple tasks, they fail to balance task specificity and commonality. For instance, Moment [11] relies on reconstruction pretraining and requires swapping specific task heads for fine-tuning, while UniTS [15] simply utilizes task tokens without addressing task heterogeneity. Therefore, designing a pre-training framework that unifies task commonality and specificity to improve overall task performance is necessary.
To address these challenges, we propose Multi-Task and Multi-Domain Pre-training for Generalized Time Series Analytics, namely TimeSeek, to adaptively model time series patterns of multi-domain data and unify multiple time series tasks in pre-training. Conceptually, TimeSeek is motivated by selective information sharing under domain and task heterogeneity. Instead of assuming that information should be uniformly exchanged across all temporal scales, channels, and tasks, it learns when and how such sharing is beneficial while retaining task- and domain-specific representations.
For the first aspect: To better model time series patterns for multi-domain data, we propose a Multi-Domain Feature Extractor that captures complex temporal dependencies and channel correlations. In the temporal aspect, we propose progressive multi-scale modeling. It gradually fuses features from coarse-grained to fine-grained features and incorporates a gating mechanism to dynamically adjust the weights of each scale. Through this approach, the model adaptively filters redundant features and highlights key scale information, enhancing its generalization and adaptability. In the channel aspect, we propose adaptive slot channel modeling to capture channel correlations in multi-domain data. It consists of two steps: 1) the channel router adaptively determines whether meaningful channel correlations exist in the input; if so, 2) channel slot attention adaptively groups the strongly correlated channels into the same slots, combined with a masking strategy to dynamically filter less informative slots and retain important ones. Together, these designs selectively transfer information across temporal scales and channel dependencies, enabling TimeSeek to adapt to heterogeneous multi-domain data.
For the second aspect: To unify the multi-task time series pre-training framework and leverage task specificity and commonality, we propose Multi-Task Collaborative Training. It incorporates task-customized pre-training modules alongside cross-task collaborative training. In task customization, we design specialized modules for three core time series tasks: a non-autoregressive predictor for forecasting, a patch-based reconstruction module for anomaly detection, and a global feature extractor for classification. These innovative designs equip TimeSeek with capabilities tailored to specific tasks, such as generative and discriminative abilities. In the cross-task training, these customized modules are structurally unified over the shared multi-domain feature extractor and collaboratively optimized via a dual-loss mechanism. Crucially, tasks mutually reinforce each other; For example, the global prior extracted from the classification task enhances the semantic consistency of anomaly detection, while the gradients propagated from the reconstruction loss simultaneously improve the classifier’s feature extraction capabilities. Specifically, our contributions can be summarized as follows:
We propose TimeSeek, a novel generalized time series analytics model that adaptively models time series patterns from multi-domain data and unifies multiple tasks in pre-training, including forecasting, anomaly detection, and classification tasks.
We propose a multi-domain feature extractor, including progressive multi-scale modeling and adaptive slot channel modeling to effectively capture temporal dependencies and channel correlations from multi-domain data.
We propose multi-task collaborative training to effectively unify the multi-task pre-training and balance task specificity and commonality.
After pre-training on large-scale time series data, TimeSeek achieves state-of-the-art performance on three time series tasks across both few-shot learning and zero-shot inference situations.
Related Work
Time series analytics has garnered extensive research attention [17], extending to several time series tasks such as time series forecasting [18, 19, 20], time series anomaly detection [21, 22, 23, 24], and time series classification [25]. Existing models can be categorized into two types: time-series-specific models, which are trained and tested on each specific dataset, and time series foundation models, which leverage pre-training on multi-domain datasets and evaluate on downstream datasets.
Time-Series-Specific Models
Although the time-series-specific models can achieve good results on their respective tasks, they all need to be retrained and require tailored parameter tuning for each specific dataset, which causes high costs and limits their performance in data-scarce scenarios.
For the task of time series forecasting, with the development of deep learning, many works based on MLP [26, 27, 28], RNN [29, 30], CNN [17, 31], and GNN [32, 33, 34, 35] emerged. DLinear [26] decomposes a raw data input into a trend component and a seasonal component and then applies two one-layer linear layers to each component. TimesNet [17] models multi-period temporal variations through adaptively aggregated two-dimensional representations. In recent years, the Transformer has shown great advantages in capturing long-term dependencies [36, 37, 38, 39, 40]. PatchTST [38] segments time series into subseries-level patches that serve as input tokens to the Transformer and applies the channel-independence strategy for training on multivariate time series. CrossFormer [37] captures hierarchical cross-time and cross-dimension dependencies, and iTransformer [40] learns cross-variable correlations through attention over variate tokens. These methods provide multi-scale or multivariate representations in task-specific training settings. TimeSeek addresses the additional challenge of selectively controlling information sharing across temporal scales, channels, and task-specific pathways within multi-domain and multi-task pre-training.
For the task of time series classification [25], deep learning-based methods [41, 42, 43, 44, 45, 46] require less domain knowledge from time series data to handle classification tasks than traditional methods [47, 48, 49], but these methods require a large amount of labeled data to train model parameters. To address this, some works have explored prototype-based networks [50] or representation learning [51, 52, 53, 54], enhancing classification performance.
For the task of time series anomaly detection, deep learning-based methods [55, 56, 57, 58, 59] mainly include reconstruction-based methods and prediction-based methods. Reconstruction-based methods [60, 61, 62, 63, 64, 65] compress the original input data and then attempt to reconstruct the series, treating high reconstruction errors as anomalies. Prediction-based methods [56] utilize past observations to predict current values and use the difference between the predicted and true values as an anomaly criterion.
Time Series Foundation Models
Recently, the foundation model for time series has gained significant attention [10, 11, 12, 13, 14, 16, 66, 67, 68, 69]. By leveraging pre-training on large-scale and diverse time series datasets, time series foundation models demonstrate remarkable adaptability to new tasks with minimal fine-tuning, while even achieving zero-shot transfer capabilities across domains. Timer [10] adopts a decoder-only architecture employing autoregressive modeling for generative pre-training. Chronos [16] converts time series data into discrete tokens by scaling and quantization with a fixed vocabulary, then trains a Transformer-based language architecture on these tokenized time series. TiRex [70] targets zero-shot forecasting with an xLSTM-based architecture, FlowState [71] focuses on sampling-rate-invariant forecasting, and Chronos-2 [72] extends zero-shot forecasting to univariate, multivariate, and covariate-informed settings. Beyond the autoregressive paradigm, other generative paradigms have been explored to enhance time series foundation models. TEMPO [73] adapts pre-trained language models by decomposing time series into trend, seasonal, and residual components, utilizing prompt-based learning to facilitate distribution adaptation across non-stationary domains. TimeDiT [74] introduces a Diffusion Transformer architecture equipped with unified masking schemes, coupling transformer-based temporal dependency learning with diffusion processes to capture uncertainties and generate high-quality probabilistic forecasts. However, the above approaches mainly focus on the problem of time series forecasting, and it is difficult to take into account other tasks.
Research on time series foundation models that unify the three tasks of time series forecasting, classification, and anomaly detection remains at a nascent stage, but has shown great potential. Moment [11] pre-trains via masked reconstruction with a lightweight decoder, but requires task-specific heads in downstream forecasting scenarios, limiting its zero-shot ability. UNITS [15] introduces task tokens to unify generative tasks and discriminative tasks into one format. However, it does not fully consider the balance between task heterogeneity and commonality in pre-training.
Summary: Table I compares representative TSFMs in terms of multi-task pre-training, multi-scale modeling, channel modeling, and zero-shot inference. TimeSeek’s distinction lies in selectively sharing information across temporal scales, channel dependencies, and task-specific pathways under domain and task heterogeneity.
Table I. Compare TimeSeek with existing TSFMs.
Preliminary
Time Series
Time series exhibit the fluctuation of observed data across time. Given a series of length , denoted by , every represents the values from different channels at the timestamp . When there is more than one channel (), the series is termed multivariate; conversely, if there is only a single channel (), it is referred to as univariate.
Time Series Analytics
Time series analytics studies historical time series data to understand the underlying patterns, supporting various tasks and decision-making. In this paper, we study time series forecasting, anomaly detection, and classification tasks.
Time Series Forecasting refers to the task of predicting future values based on past observations. Given a sequence of inputs , the goal is to forecast the future sequence , where and are the length of the input sequence and the real future sequence. This forecasting problem can be formalized as a mapping function , as shown below:
where refers to the learnable parameters of the model , and represents the predicted future values.
Time Series Anomaly Detection focuses on identifying points or intervals in a time series that significantly deviate from normal patterns. Given a sequence of inputs , the goal is to detect whether the sequence contains any anomalies, represented as , where indicates whether the observation is anomalous. The anomaly detection problem can be formalized as a mapping function , as shown below:
where refers to the learnable parameters of the model .
Time Series Classification aims to assign time series to predefined categories. Given a sequence of inputs , the objective is to classify it into the correct category , where denotes the total number of classes. This classification task can be formulated as a mapping function , as shown below:
where refers to the learnable parameters of the model .
Time Series Foundation Model
Time series foundation model is pre-trained using a multi-source dataset , where represents the number of pre-training datasets. For downstream tasks, the model is fine-tuned using the training set of the downstream dataset, , and evaluated on the test set to infer . The datasets , , and are mutually exclusive. Alternatively, the model can directly perform inference on without fine-tuning on , allowing it to predict in a zero-shot manner. When applied to different tasks, the model can be viewed as for forecasting, for anomaly detection, and for classification.
Methodology
Framework of TimeSeek
To build a versatile foundation model capable of handling diverse downstream applications, TimeSeek tackles two primary challenges: the heterogeneity of multi-domain data and the diversity of time series tasks. As illustrated in Figure 2, the overall architecture introduces two core components:
Figure 2. The framework of TimeSeek.
Multi-Domain Feature Extractor (MFE): To address multi-domain data heterogeneity, the MFE serves as the shared, generalized backbone of TimeSeek. Unlike existing methods that rely on fixed-scale windows or channel-independent assumptions, the MFE adaptively captures complex temporal dependencies and channel correlations based on domain-specific characteristics. It achieves this through a progressive multi-scale modeling strategy that hierarchically filters redundant temporal information, combined with an adaptive slot channel modeling mechanism that dynamically clusters correlated channels. This design strictly prevents the introduction of spurious correlations among independent variables. Details about the MFE are provided in Section IV-B.
Multi-Task Collaborative Training (MCT): To address task diversity, we propose the MCT paradigm, which leverages task specificity and commonality. Instead of pre-training entirely separate models for different tasks, TimeSeek incorporates lightweight, task-customized modules: a global encoder for classification, a non-autoregressive decoder for forecasting, and a patch-masking reconstruction module for anomaly detection. These modules are built on top of the shared MFE representations and are collaboratively optimized via a dual-loss mechanism (prediction loss and reconstruction loss). This symbiotic optimization enables distinct pre-training objectives to mutually reinforce the learned representations. Details about MCT are provided in Section IV-C.
Figure 3. The framework of the Multi-Domain Feature Extractor (MFE).
Multi-Domain Feature Extractor
To address the domain heterogeneity of time series data in multi-domain pre-training and generation, we propose a multi-domain feature extractor (MFE) that adaptively models complex time series patterns based on the characteristics of each domain. It consists of two components: progressive multi-scale modeling and adaptive slot channel modeling. Specifically, the input time series undergoes downsampling through convolution to obtain time series at different scales: , , and . These are progressively fed into their corresponding scale extractors, from coarse to fine scales, for feature extraction and dynamic fusion. Each scale extractor incorporates temporal modeling and adaptive channel modeling to capture complex temporal dependencies and channel correlations, ultimately generating the representations.
Progressive Multi-scale Modeling
Time series data exhibits significant multi-scale characteristics, including local fluctuations, short-term dynamics, and long-term trends. Multi-scale modeling in pre-training can enhance the understanding of patterns and improve generalization capabilities. However, directly fusing information at different scales may lead to feature conflicts or redundancy problems, and also ignore the differences in preferences for different scales in different domains, thereby weakening the model’s generalization ability. To address this, we propose a progressive multi-scale modeling method. Through progressive fusion, the model progressively extracts and integrates features from coarse to fine scales, building a comprehensive representation that retains both global dependencies and fine-grained patterns. To prevent information conflict during this integration, we further introduce an adaptive gating mechanism to dynamically adjust the fusion weights, filtering redundant features and highlighting key scale information based on domain-specific characteristics.
Multi-scale Construction. Given a raw time series input , we first derive multi-scale representations using convolution networks (Conv) for downsampling, yielding coarse-grained, medium-grained, and fine-grained sequences , . The original input is treated as the fine-grained sequence, represented as , where and represent the number of channels and the input length of the original input, respectively.
Algorithm 1 Progressive Multi-Scale Modeling
Input: Raw time series
Output: Final representation
Stage 1: Multi-Scale Construction
Obtain different scales via Conv (Eq. (4))
Generate embeddings
Initialize (Start with coarse-grained scale) 5.
for each scale do
Stage 2: Feature Extraction per Scale
(Algorithm 2) 9.
Stage 3: Progressive Fusion (Coarse to Fine)
if scale then
(Align with next finer scale)
Compute gating weights (Eq. (5))
end if
end for 17.
return (Output fine-grained representation)
To preserve local semantic information, a patching strategy partitions each scaled sequence into non-overlapping patches of size . Each patch is then embedded along the patch size dimension to generate corresponding embeddings , , .
Progressive Fusion with Adaptive Gating. As illustrated in Figure 2, the MFE progressively fuses multi-scale features from coarse to fine granularity. This hierarchical integration, including the coarse-to-medium fusion and the medium-to-fine fusion, allows complementary interactions across scales while alleviating feature conflicts caused by direct fusion.
Specifically, for the coarse-to-medium fusion, the coarse-grained embedding is first encoded by the coarse-scale extractor, which includes temporal modeling and adaptive channel modeling, to capture temporal dependencies and channel correlations, yielding the coarse-grained features . To align with the medium-grained scale, undergoes interpolation to double its patch count, yielding . Then an adaptive gating, which is composed of linear projections and sigmoid activation, dynamically reweights to suppress redundant features.
where and represent the parameters of linear projections in gating mechanism, represents the weights of and denotes the sigmoid activation. Then the gated coarse features are fused with the medium-grained embeddings via addition, producing enhanced medium-grained embeddings .
For the medium-to-fine fusion, we adopt the same operation as used in the coarse-to-medium fusion, taking the embeddings as input to generate the fine-grained embeddings . Finally, is input into the fine-scale feature extractor to obtain the final representation .
**2) Adaptive Slot Channel Modeling: ** To further enhance the generalization of time series representations across different domains, we consider another key characteristic of time-series data: channel correlations. However, these channel correlations show significant differences across different domains. To address this, we propose an adaptive slot channel modeling method, which primarily includes channel correlation adaptive detection based on a channel router and a channel adaptive clustering process based on the slot attention mechanism.
Channel Router. To prevent performance degradation caused by unnecessary channel modeling in time series that lack significant channel correlations, we introduce a channel router that dynamically determines whether meaningful channel correlations exist in the input. Specifically, taking the fused medium-grained embedding as an example, the router first generates simplified embedding through dimension-wise average operations: patch-wise and channel-wise averaging. The embedding is then projected through linear layers and a softmax operation to compute the routing probability , where represents the probabilities of activating channel modeling. A predefined threshold controls the subsequent operations: when , the model activates adaptive channel modeling; otherwise, it bypasses this process, and the router directly adds it to the representations obtained by temporal modeling, avoiding redundant computations and potential noise amplification.
Channel Slot Attention. Since time series data often exhibit varying channel correlations across different domains, applying a fixed channel modeling method across all domains may introduce spurious correlations between uncorrelated channels, leading to suboptimal generalization. To enhance cross-domain adaptability, we propose an innovative Channel Slot Attention mechanism. By dynamically clustering channels, strongly correlated channels are grouped within the same cluster while preventing unnecessary modeling of independent channels. This adaptive clustering mechanism not only preserves essential
Algorithm 2 Adaptive Slot Channel Modeling
Input: Current scale embedding , Threshold , Slots
Output: Channel-refined representation
Stage 1: Channel Routing
Compute dimension-wise average of to get simplified embedding
Calculate routing probability via softmax 4.
Stage 2: Adaptive Clustering & Masking
if then
Project and to obtain , , (Eq. 6)
Extract slot information
Update global slots (Eq. 7)
Sample slot mask via Gumbel-Softmax sampling (Eq. 8)
Compute masked slots
(Eq. 9)
else
(Bypass channel modeling)
end if 16.
return
channel interactions but also mitigates domain-specific biases.
For channel correlation modeling, we initialize slots (, where denotes the number of channels and represents the number of patches.). These slots not only serve as dynamic memory units to store and update channel interaction patterns but also provide a shared slot space for channels in different domains, thereby reducing dependence on specific domains and better adapting to channel correlations in different domains. At each patch, the Slot Attention mechanism automatically aggregates cross-channel information through competitive attention weights, allowing for iterative refinement of slot representations. Specifically, we apply linear transformations to both the slots and the input embedding to obtain the Query , Key , and Value . Then, the Channel Slot Attention mechanism uses the slots as queries to selectively focus on the input embedding, producing the channel slot information .
where , and represent learnable projections matrices. Next, we combine the obtained channel slot information with the previous slots using a Multi-Layer Perceptron (MLP). This combination is then added to the original slots to update the slots, resulting in the updated slots .
To avoid all slots focusing on similar patterns or redundant information, we introduce a masking strategy to dynamically filter less informative slots and retain important ones, while adaptively selecting the number of slots. We employ a lightweight MLP based on the to generate a probability matrix for slots, indicating whether each slot should be retained or masked. Here, represents the probability that the -th slot is retained. We then perform Gumbel-Softmax sampling on the probability matrix to obtain the slot mask . Based on the Slot mask , we apply a masking operation to , resulting in , where denotes the key channel cluster information.
Subsequently, we compute attention weights between the masked slots and input embeddings , considering that directly using weighted summation may cause the channel representation to mix the information of multiple slots, making it blurred. We use Gumbel-Softmax sampling and to produce the final channel representation .
Multi-Task Collaborative Training
Considering that time series tasks are diverse in downstream scenarios, designing a foundation model that can support multi-task learning becomes essential. However, time series tasks exhibit both heterogeneity and commonality: task heterogeneity may lead to negative interference between tasks,
while task commonality provides potential synergies for collaborative learning. To address these, we propose multi-task collaborative training, including task customization and cross-task training. In task customization, we design task-specific modules based on the unique characteristics of each task, enhancing the capabilities in prediction generation, anomaly detection, and categorical discrimination. For cross-task training, we further propose unified components for shared feature extraction and loss computation, strengthening the ability to learn task commonality.
Task Customization: We design task-specific customization modules for classification, forecasting, and anomaly detection to better capture the unique characteristics of each task while mitigating negative interference. This design improves the capacity to handle diverse tasks in a unified framework.
As illustrated in Figure 4, multi-scale modeling refers to Section IV-B1, which is stacked together. Take the Fine-scale Extractor as an example, we perform non-overlapping patch segmentation to obtain , followed by a linear projection to produce the embeddings .

Figure 4. Multi-Tasks pre-training framework of TimeSeek, where the Fine-Scale Extractor is put on top to ease description.
Customization for Classification. Motivated by the inherent reliance of classification on global context to distinguish categories, we propose a novel module designed to extract these global representations and enhance the model’s discriminative capability.
The input time series is first transformed into the frequency domain using the Fast Fourier Transform. The dominant frequency is identified by selecting the component with the highest amplitude, from which we compute the corresponding period .
Based on the period , the time series is transformed from a 1D temporal space into a 2D temporal space, resulting in . To better highlight the temporal differences for classification, we apply a linear resizing operation along the period and frequency dimensions, yielding , where represents the feature dimension after resize. The resized time series is passed through the global encoder to extract discriminative features, producing the classification embedding . Finally, this embedding is flattened and projected to generate the class token , which is fed into the feature extractor to obtain the final classification representation .
Customization for Forecasting. To enhance the generative ability for forecasting, we propose a Non-Autoregressive Forecasting module, including a Non-Autoregressive Transformer Decoder (NAT Decoder) and Prediction Layer, that generates all predictions at once, avoiding the error accumulation inherent in autoregressive methods.
After patching, the time series is progressively fed into the corresponding Scale Feature Extractor to model complex patterns at different scales, yielding representations . Considering that the final patch of the representation retains the overall information of the input sequence and is closest to the future prediction sequence, we replicate the last patch of the representations times as the input and inject Rotary Position Embedding (RoPE) to the NAT Decoder, denoted as , where corresponds to the prediction patch count during pre-training. Subsequently, is passed through causal attention, followed by cross-attention with , and is refined via a feedforward layer to yield prediction representation . Finally, the prediction layer is applied, followed by flattening, to produce the predicted sequence .
Customization for Anomaly Detection. To enhance the model’s capability to capture localized anomalies, we introduce a patch-masking reconstruction module.
Given the patch embedding , we apply random masking along the patch dimension to produce a masked embedding . Considering that anomaly detection needs global information, we concatenate the masked embedding with the class token obtained from the global encoder along the patch dimension to form the new masked embedding . The embedding is then progressively input into its corresponding scale extractor to model time series patterns, yielding the representation , which is finally decoded by the reconstruction layer to get the reconstructed output .
Cross-task Training: Our innovative architectural design effectively addresses the requirements of multi-task pre-training by mitigating negative interference across diverse objectives while enhancing predictive generation, anomaly detection, and categorical discrimination capabilities. Considering both the unique requirements and inherent commonalities among different tasks, we further propose unified components for shared feature extraction and loss computation to facilitate collaborative cross-task learning. This approach enables TimeSeek to leverage complementary information while preserving task-specific advantages.
At the structural level, all tasks share a common multi-domain feature extractor that comprehensively models time series patterns, learning generalized representations through mutual collaboration across tasks. For classification and anomaly detection, we concatenate the class token from the global encoder with masked input sequences. This combination injects global semantic information into the reconstruction process, providing valuable prior knowledge for anomaly identification. Simultaneously, the reconstruction pre-training not only reciprocally updates the classification module but also deepens the model’s structured understanding of time series, enabling the downstream classification task to leverage richer representations for more accurate discrimination.
At the loss level, TimeSeek employs a dual-loss mechanism comprising prediction loss and reconstruction loss to optimize model parameters. The prediction loss strengthens the model’s generation capability through non-autoregressive forecasting objectives, particularly beneficial for few-shot and zero-shot prediction scenarios. The reconstruction loss focuses on anomaly detection by enforcing precise recovery of masked tokens, while its gradient signals directly enhance the classification module’s feature extraction. This symbiotic optimization ensures the learned representations maintain high adaptability for anomaly detection and classification tasks. In contrast, directly applying the prediction loss to optimize classification could lead to over-smoothing of critical discriminative features, ultimately resulting in conflicting representations between the tasks.
Through these designed interactions, TimeSeek makes different pre-training objectives mutually reinforce each other, ultimately producing robust and generalized representations for diverse tasks.
Experiment
Experimental Setup
1) Datasets: We perform pre-training and evaluation of TimeSeek on diverse datasets and ensure no overlap between the pre-training datasets and the evaluation datasets. More specific information about datasets is in the Supplemental Material.
Pre-train Datasets. To achieve general time series analysis, we compile an extensive array of publicly accessible datasets for pre-training, encompassing various domains such as energy, nature, transportation, web, health, and economics. In total, the pre-training data comprises approximately 1 billion time series data points.
Evaluation Datasets. To validate TimeSeek under multi-task, we use the widely used evaluation datasets for forecasting, anomaly detection, and classification tasks, which also span multiple domains to validate the generalizability and versatility of TimeSeek. In our evaluation, we adopt the same train-validation-test split as the baselines for each task to ensure a fair comparison.
Forecasting. We conduct experiments for forecasting on eight widely recognized forecasting benchmarks, including ETT (ETTm1, ETTm2, ETTh1, ETTh2), Weather, Traffic, Solar, Exchange, and GIFT-Eval Benchmark.
Anomaly Detection. We evaluate five widely used anomaly detection benchmarks: SMD, MSL, SMAP, SWaT, and PSM.
Classification. We follow existing works [17] to use 10 datasets for UEA, which feature from 2 to 26 categories for the experiments of classification, including Ethanol-Concentration, FaceDetection, Handwriting, Heartbeat, JapaneseVowels, PEMS-SF, SelfRegulationSCP1, Self-RegulationSCP2, SpokenArabicDigits, and UWaveGestureLibrary.
Evaluation Setting: We partition the downstream evaluation dataset into training, validation, and test sets. The evaluation settings consist of the following three scenarios: Zero-shot Setting: The model is directly applied to the test set without fine-tuning, assessing its generalization capability of the foundation models. Few-shot Setting: A small subset of the training data, along with the entire validation set, is used for fine-tuning, evaluating the model’s performance in few-shot scenarios. Full-shot Setting: The model is trained using the entire training and validation datasets, measuring its performance under ample data conditions. In our experiments, TimeSeek is evaluated under the zero-shot and few-shot settings, while the comparison time-series-specific model is trained and tested in the full-shot setting.
Baselines: We select both time series foundation models and time-series-specific models of each task as baselines.
Time Series Foundation Baselines. Since existing time series foundation models primarily focus on time series forecasting tasks, we select six state-of-the-art foundation models for comparison in a zero-shot forecasting setting, including Timer [10], MOIRAI [14], Chronos [16], TimesFM [13], UniTS [15], Time-MOE [12],TEMPO [73].
Forecasting Baselines. We select six SOTA time series forecasting models as baselines, including iTransformer [40], FITS [27], TimeMixer [75], PatchTST [38], Crossformer [27], and DLinear [26].
Anomaly Detection Baselines. We compare TimeSeek with 12 anomaly detection baselines for comprehensive evaluations, including the linear transformation-based model OCSVM; the outlier-based methods IForest; the neural network-based models: AutoEncoder (AE) [60], DAGMM [55], LSTM [56], BeatGAN [76], OmniAnomaly (Omni) [57], Anomaly Transformer (A.T.) [77], DCdetector [78], D3R [64], and ModernTCN [58].
Classification Baselines. We compare TimeSeek with nine baselines, including traditional classification methods: DTW [79], XGBoost [80], and Rocket [81], as well as deep learning-based methods: OS-CNN [82], TapNet [50], PatchTST [38], TimesNet [17], DLinear [26], and Crossformer [37], Moment [11].
Metrics: Following prior studies, we use Mean Squared Error (MSE) and Mean Absolute Error (MAE) as evaluation metrics for the forecasting task. The lower the metric values, the better the prediction accuracy. We use Affiliation-based F1-score (F1), a widely used metric for anomaly detection that balances affiliated precision (P) and recall (R) [83]. The higher the metric values, the better the anomaly detection accuracy. Average Accuracy (Avg. ACC) and the count of datasets achieving the highest accuracy (Num. Top-1) as evaluation metrics for classification. The higher the metric values, the better the classification accuracy.
Experiment Settings and Implementations: During pre-training, TimeSeek employs the Adam optimizer with an initial learning rate of 0.0005 and undergoes 30 epochs of training, incorporating an early stopping strategy with a patience of 10 epochs. The batch size is set to 2048, and the input time series length is 576. For the forecasting task, all methods predict future values with lengths to ensure a fair comparison. Additionally, all models do not employ the drop-last strategy [18]. For the anomaly detection task, we use a sliding window approach with a window size of 96. After obtaining the anomaly scores, we apply the widely used SPOT method, following existing works [64], to determine the threshold for classifying each point as an outlier. All experiments are implemented with PyTorch and the pre-training experiment is executed on four NVIDIA Tesla-A800-80GB GPUs.
Main Results
Forecasting Results: For a fair comparison, we perform zero-shot predictions for each foundational model on downstream datasets that are not part of its pre-training datasets. As shown in Table II, TimeSeek shows leading performance on all datasets, surpassing the previous best method, Time-MOE, by a clear margin and achieving an average MSE reduction of 16.9% and MAE reduction of 13.3%, demonstrating the generalization of the model under different downstream datasets. Compared to forecasting foundation models such as Timer, TimesFM, and Chronos, TimeSeek achieves superior forecasting accuracy. This highlights the effectiveness of its multi-task pre-training, which enhances the model’s generalization ability in forecasting tasks. Additionally, compared to UniTS, another multi-task learning model, TimeSeek achieves 32.7% and 23.5% reduction on the MSE and MAE metrics, further underscoring the importance of considering both task commonality and task specificity in multi-task learning. Moreover, TimeSeek also outperforms the channel modeling approach MOIRAI, demonstrating that its adaptive channel modeling for multi-domain data effectively improves generalization.
| Method | TimeSeek | Timer | TimesFM | Chronos | Time-MoE | UniTS | MOIRAI | TEMPO | ||||||||
| Metric | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE |
| ETTm(Avg) | 0.311 | 0.350 | 0.636 | 0.515 | 0.391 | 0.389 | 0.422 | 0.392 | <u>0.322</u> | 0.368 | 0.548 | 0.457 | 0.333 | <u>0.354</u> | 0.391 | 0.393 |
| ETTh(Avg) | 0.390 | 0.406 | 0.466 | 0.441 | 0.439 | 0.422 | 0.462 | 0.424 | <u>0.391</u> | 0.413 | 0.394 | 0.416 | 0.432 | <u>0.423</u> | 0.394 | 0.413 |
| Weather | 0.217 | 0.250 | 0.292 | 0.313 | – | – | 0.288 | 0.309 | 0.256 | 0.289 | 0.275 | 0.298 | <u>0.260</u> | <u>0.275</u> | 0.282 | 0.316 |
| Traffic | <u>0.555</u> | <u>0.367</u> | 0.613 | 0.407 | – | – | 0.615 | 0.421 | – | – | – | – | – | – | 0.503 | 0.358 |
| Solar | 0.192 | 0.257 | 0.771 | 0.604 | 0.500 | 0.397 | <u>0.393</u> | <u>0.319</u> | 0.411 | 0.428 | 0.845 | 0.669 | 0.714 | 0.704 | 0.416 | 0.374 |
| Exchange | 0.341 | 0.390 | 0.392 | 0.425 | 0.386 | 0.417 | <u>0.370</u> | <u>0.412</u> | 0.390 | 0.417 | 0.432 | 0.454 | <u>0.354</u> | <u>0.400</u> | 0.398 | 0.426 |
Table II. Table II The zero-shot forecasting results of time series foundation models. The average results of all predicted lengths {96, 192, 336, 720} are listed here. A dash (’-’) denotes datasets included in the model’s pretraining and therefore excluded from testing. ETTm represents the average results across ETTm1 and ETTm2, while ETTh represents the average across ETTh1 and ETTh2. Bold: the best, and underline: the second best.
Table III presents the performance of TimeSeek in the 10% few-shot setting compared to time-series-specific forecasting baselines in the full-shot setting. Despite using significantly less train data from downstream datasets, TimeSeek achieves superior prediction accuracy over these strong baselines. This result highlights TimeSeek’s effectiveness in data-limited scenarios and demonstrates its strong generalization and transferability. Compared to single-dataset multi-scale methods like TimeMixer and Crossformer, TimeSeek effectively adapts to multi-domain data through progressive multi-scale modeling, enabling more accurate predictions.
| Method | TimeSeek (10%) | iTransformer | FITS | TimeMixer | PatchTST | Crossformer | DLinear | |||||||
| Metric | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE |
| ETTm(avg) | 0.285 | 0.337 | <u>0.303</u> | 0.348 | 0.306 | <u>0.345</u> | 0.307 | 0.349 | <u>0.303</u> | 0.348 | 0.481 | 0.479 | 0.307 | 0.350 |
| ETTh(avg) | 0.365 | 0.394 | 0.400 | 0.421 | <u>0.372</u> | <u>0.407</u> | 0.387 | 0.418 | 0.385 | 0.416 | 0.666 | 0.57 | 0.456 | 0.455 |
| Weather | 0.210 | 0.246 | 0.232 | 0.270 | 0.244 | 0.281 | 0.225 | 0.263 | <u>0.224</u> | <u>0.261</u> | 0.233 | 0.292 | 0.239 | 0.290 |
| Traffic | 0.413 | 0.273 | <u>0.397</u> | 0.281 | 0.429 | 0.302 | 0.410 | 0.279 | <u>0.397</u> | <u>0.275</u> | 0.521 | 0.282 | 0.434 | 0.295 |
| Solar | 0.188 | 0.253 | 0.202 | <u>0.260</u> | 0.232 | 0.268 | 0.203 | 0.261 | <u>0.200</u> | 0.284 | 0.204 | 0.232 | 0.247 | 0.309 |
| Exchange | 0.332 | 0.384 | <u>0.321</u> | 0.384 | 0.349 | 0.396 | 0.385 | 0.418 | <u>0.322</u> | <u>0.385</u> | 0.389 | 0.423 | 0.349 | 0.411 |
Table III. Table III The forecasting results of TimeSeek and time series-specific models are presented, with average performance reported across all prediction lengths {96, 192, 336, 720}. TimeSeek utilizes only 10% of the training data for few-shot learning, whereas time series-specific models are trained using the full training data. Bold: the best and underline: the second best. Full results are in the supplemental material.
Anomaly Detection Results: To ensure a fair comparison in the anomaly detection task, we apply a consistent thresholding protocol across all methods. Unlike baseline models that are trained on the full dataset for each specific scenario, TimeSeek performs zero-shot anomaly detection without any fine-tuning on downstream data, directly conducting inference. As shown in Table V, TimeSeek achieves state-of-the-art results on most datasets without requiring fine-tuning on downstream data. This demonstrates that TimeSeek has a robust general detection capability through extensive multi-domain pre-training, effectively distinguishing between various normal and anomalous patterns.
| Dataset | SMD | MSL | SMAP | SWaT | PSM | ||||||||||
| Metric | P | R | F1 | P | R | F1 | P | R | F1 | P | R | F1 | P | R | F1 |
| OCSVM | 66.98 | 82.03 | 73.75 | 50.26 | 99.86 | 66.87 | 41.05 | 69.37 | 51.58 | 56.80 | 98.72 | 72.11 | 57.51 | 58.11 | 57.81 |
| IForest | 71.94 | 94.27 | 81.61 | 53.87 | 94.58 | 68.65 | 41.12 | 68.91 | 51.51 | 53.03 | 99.95 | 69.30 | 69.66 | 88.79 | 78.07 |
| AE | 69.22 | 98.48 | 81.30 | 55.75 | 96.66 | 70.72 | 39.42 | 70.31 | 50.52 | 54.92 | 98.20 | 70.45 | 60.67 | 98.24 | 75.01 |
| DAGMM | 63.57 | 70.83 | 67.00 | 54.07 | 92.11 | 68.14 | 50.75 | 96.38 | 66.49 | 59.42 | 92.36 | 72.32 | 68.22 | 70.50 | 69.34 |
| LSTM | 60.12 | 84.77 | 70.35 | 58.82 | 14.68 | 23.49 | 55.25 | 27.70 | 36.90 | 49.99 | 82.11 | 62.15 | 57.06 | 95.92 | 71.55 |
| BeatGAN | 74.11 | 81.64 | 77.69 | 55.74 | 98.94 | 71.30 | 54.04 | 98.30 | 69.74 | 61.89 | 83.46 | 71.08 | 58.81 | 99.08 | 73.81 |
| Omni | 79.09 | 75.77 | 77.40 | 51.23 | 99.40 | 67.61 | 52.74 | 98.51 | 68.70 | 62.76 | 82.82 | 71.41 | 69.20 | 80.79 | 74.55 |
| CAE-Ensemble | 73.05 | 83.61 | 77.97 | 54.99 | 93.93 | 69.37 | 62.32 | 64.72 | 63.50 | 62.10 | 82.90 | 71.01 | 73.17 | 73.66 | 73.42 |
| A.T. | 54.08 | 97.07 | 66.42 | 51.04 | 95.36 | 66.49 | 56.91 | 96.69 | 71.65 | 53.63 | 98.27 | 69.39 | 54.26 | 82.18 | 65.37 |
| DCdetector | 50.93 | 95.57 | 66.45 | 55.94 | 95.53 | 70.56 | 53.12 | 98.37 | 68.99 | 53.25 | 98.12 | 69.03 | 54.72 | 86.36 | 66.99 |
| D3R | 64.87 | 97.93 | 78.02 | 66.85 | 90.83 | 77.02 | 61.76 | 92.55 | 74.09 | 60.14 | 97.57 | 74.39 | 73.32 | 88.71 | 80.29 |
| ModernTCN | 74.07 | 94.79 | _83.16_ | 65.94 | 93.00 | _77.17_ | 69.50 | 65.45 | 67.41 | 59.14 | 89.22 | 71.13 | 73.47 | 86.83 | _79.59_ |
| TimeSeek (zero shot) | 77.09 | 94.00 | 84.71 | 68.22 | 94.48 | 79.24 | 64.98 | 88.06 | 74.78 | 58.92 | 94.37 | _72.55_ | 74.58 | 86.55 | 80.66 |
Table V. The anomaly detection results are presented. TimeSeek performs zero-shot inference without utilizing any training data, whereas baselines are trained on the full training data. Bold: the best and underline: the second best. More metric results are in the supplemental material.
Classification Results: Table VI presents the classification results of TimeSeek in the 10% few-shot setting compared to time-series-specific classification models in the full-shot setting. Remarkably, despite utilizing significantly less training data from downstream datasets, TimeSeek achieves top
| Dataset | TimeSeek (10%) | Moment | TimesNet | PatchTST | DLinear | Crossformer | OS-CNN | TapNet | Rocket | XGBoost | DTW |
| EthanolConcentration | 0.718 | 0.300 | 0.357 | 0.328 | 0.362 | 0.380 | 0.240 | 0.323 | 0.447 | 0.437 | 0.323 |
| FaceDetection | 0.651 | 0.689 | 0.686 | 0.683 | 0.680 | 0.687 | 0.575 | 0.556 | 0.694 | 0.633 | 0.529 |
| Handwriting | 0.361 | 0.351 | 0.321 | 0.296 | 0.270 | 0.288 | 0.668 | 0.357 | 0.567 | 0.158 | 0.286 |
| Heartbeat | 0.814 | 0.737 | 0.780 | 0.749 | 0.751 | 0.776 | 0.489 | 0.751 | 0.718 | 0.732 | 0.717 |
| JapaneseVowels | 0.986 | 0.957 | 0.984 | 0.975 | 0.962 | 0.991 | 0.991 | 0.965 | 0.965 | 0.865 | 0.949 |
| PEMS-SF | 1.000 | 0.855 | 0.896 | 0.893 | 0.751 | 0.859 | 0.760 | 0.751 | 0.856 | 0.983 | 0.711 |
| SelfRegulationSCP1 | 0.918 | 0.887 | 0.918 | 0.907 | 0.873 | 0.921 | 0.835 | 0.652 | 0.866 | 0.846 | 0.777 |
| SelfRegulationSCP2 | 0.594 | 0.550 | 0.572 | 0.578 | 0.505 | 0.583 | 0.835 | 0.552 | 0.514 | 0.489 | 0.539 |
| SpokenArabicDigits | 0.936 | 0.994 | 0.990 | 0.983 | 0.814 | 0.979 | 0.997 | 0.983 | 0.630 | 0.696 | 0.963 |
| UWaveGestureLibrary | 0.959 | 0.900 | 0.853 | 0.858 | 0.821 | 0.853 | 0.927 | 0.894 | 0.944 | 0.759 | 0.903 |
| Avg. ACC | 0.794 | 0.722 | 0.736 | _0.725_ | 0.679 | 0.732 | 0.701 | 0.678 | 0.720 | 0.660 | 0.670 |
| Num. Top-1 | 6 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 1 | 0 | 0 |
Table VI. The classification results are presented. TimeSeek utilizes only 10% of the training data for few-shot learning, whereas baselines are trained using the full training data. Bold: the best and underline: the second best.
| Type | Statistical Methods | Task-Specific Models (Supervised) | Time Series Foundation Models (Zero-Shot) | |||||||||||
| Model | Naïve | Auto ETS | Auto ARIMA | Auto Theta | DeepAR (2020) | TiDE (2023) | N-BEATS (2019) | PTST. (2022) | DLinear (2023) | TimesFM (2023) | TabPFN (2025) | Chronos (2024) | MOIRAI (2024) | TimeSeek (Ours) |
| MASE | 1.270 | 1.212 | 1.074 | 1.090 | 1.343 | 1.091 | 0.938 | 0.849 | 1.061 | 1.077 | <u>0.771</u> | 0.822 | 0.875 | 0.732 |
| CRPS | 1.591 | 7.489 | 0.912 | 1.244 | 0.853 | 0.772 | 0.816 | 0.587 | 0.846 | 0.680 | <u>0.544</u> | 0.577 | 0.599 | 0.528 |
Table IV. Table IV Performance of TimeSeek on the GIFT-Eval leaderboard. A lower MASE or CRPS indicates a better performance. Baseline results are from the GIFT-Eval leaderboard.
performance on 6 out of 10 datasets, with an overall accuracy of 0.794. This represents an average accuracy improvement of 7.3% over the second-best model, TimesNet. These results highlight TimeSeek’s exceptional adaptability and generalization capability across diverse classification scenarios, even with limited data.
Summary: As illustrated in Table II to Table VI, TimeSeek achieves state-of-the-art results across time series forecasting, anomaly detection, and classification tasks. Notably, TimeSeek requires only a small amount of downstream data for fine-tuning or even performs inference directly without any downstream training, while significantly outperforming the second-best model trained on the full downstream data across multiple benchmarks. These indicate that TimeSeek effectively learns generalized knowledge through multi-task and multi-domain pre-training, substantially enhancing its generalization and adaptability across diverse scenarios.
Ablation Study
1) Multi-scale modeling: To evaluate the effectiveness of progressive multi-scale modeling, we conduct ablation and
substitution experiments using 10% few-shot learning. Scale Feature Summation and Scale Feature Concatenation represent two different approaches for integrating multi-scale features by addition and concatenation operations respectively to examine the necessity of adaptive fusion. Single Scale refers to using only a single fine scale for modeling, serving as a baseline to assess the necessity of multi-scale modeling. As shown in Figure 5, compared with single-scale modeling, TimeSeek achieves better prediction performance, demonstrating the effectiveness of its multi-scale modeling approach. Additionally, compared with scale feature summation and feature concatenation, TimeSeek significantly outperforms these alternative multi-scale fusion methods. Notably, Scale Feature Concatenation yields the worst prediction results, indicating that directly fusing all scale features may introduce scale feature redundancy or noise, which negatively impacts the model. This highlights the necessity of progressive and adaptive multi-scale fusion in multi-domain pre-training.

Figure 5. Ablation about multi-scale modeling on Weather and ETTm1 datasets. Sum and Concat represent scale feature summation and scale feature concatenation, respectively. Single Scale denotes modeling with only the fine scale. The results are averaged across four prediction lengths.
2) Channel modeling: To validate the effectiveness of adaptive slot channel modeling, we conduct ablation and substitution experiments using 10% few-shot learning. W/O Router refers to removing the channel router, forcing data to undergo channel slot attention modeling. Attention replaces the proposed channel modeling with standard attention for channel processing. Channel-independent removes channel modeling entirely, ignoring inter-channel correlations. As shown in Figure 6, removing the channel router leads to a drop in prediction accuracy, indicating that not all time series samples exhibit strong channel correlations. This highlights the necessity of assessing whether correlation modeling is needed for each sample. Compared to Channel-independent, Time-

Figure 6. Ablation about channel modeling for the Weather and ETTm1 datasets. W/O Router refers to removing the channel router. Attention represents using standard attention for channel modeling. Channel-independent denotes ignoring channel modeling entirely. The results are averaged across four prediction lengths.
Seek significantly outperforms it, demonstrating that ignoring inter-channel dependencies negatively impacts performance. Additionally, compared to using standard attention for modeling channels, TimeSeek achieves better results. Notably, on the ETTm1 dataset, the standard attention-based method performs the worst, suggesting that a uniform channel modeling strategy may introduce spurious correlations between uncorrelated channels, ultimately leading to degraded performance. Therefore, an adaptive channel modeling approach is necessary to dynamically cluster channels, ensuring that strongly correlated channels are grouped together.
Classification module: To validate the effectiveness of the proposed classification module, we conduct replacement experiments on five benchmark datasets: EthanolConcentration, Heartbeat, SelfRegulationSCP1, SelfRegulationSCP2, and UwaveGestureLibrary. Our comparative analysis focused on contrasting TimeSeek’s classification results with the vanilla class token approach in ViT [8] — a widely adopted classification method that directly initializes trainable class tokens. The experimental results demonstrate that TimeSeek achieves significant improvements in classification accuracy, outperforming the baseline method by an average margin of 17%. This substantial performance gain indicates that TimeSeek effectively captures comprehensive global information from time series through its innovative architecture design, thereby enabling more informed classification decisions.

Figure 7. Ablation study on the classification module across five datasets. Vanilla class token denotes directly initializing a trainable class token for classification.
Model Analysis
Fine-tune with downstream data: To verify the impact of downstream fine-tuning data volume on model performance, we evaluate the model’s scalability by gradually increasing the amount of downstream Traffic and Solar datasets. As shown in Figure 8, the forecast performance steadily improves as the downstream data increases, reaching best when fine-tuned with 100% of the data. This demonstrates the strong scalability of our proposed model.

Figure 8. Results of fine-tuning TimeSeek under different data percentages with prediction length 96.
Parameter sensitivity analysis.: We conduct parameter sensitivity experiments on Traffic and Solar datasets to investigate the effect of the number of slots . Under the setting with prediction length 96, Figure 9 reveals that insufficient slots () lead to suboptimal performance, indicating that a sufficient number of slots are needed to store the complex inter-channel correlations for multi-domain data. And depends on pre-training data, it may be small if data are more homogeneous. As the number of slots increases (), the model’s prediction accuracy stabilizes, showing that it effectively masks redundant information while preserving key content, thus avoiding interference from irrelevant information.

Figure 9. The effect of the number of slots .
Efficiency analysis.: Model efficiency is a key factor in determining whether a foundation model can be effectively deployed in downstream scenarios. To evaluate the efficiency of TimeSeek and other foundation models, we conduct zero-shot forecasting on the Weather dataset with a prediction length of 96. The comparison is made from three aspects: zero-shot inference time, parameter count, and prediction accuracy. As shown in Figure 10, TimeSeek demonstrates significant advantages in all three aspects, highlighting its superior computational efficiency and strong applicability to downstream scenarios. Notably, compared to large-parameter models such as Time-MOE, TimeSeek achieves better inference speed, lower parameters, and higher prediction accuracy. At the same time, the pretraining cost of TimeSeek is much lower than TimeMOE. This indicates that simply increasing model size is not the only viable approach to building foundation models. Instead, effectively leveraging multi-domain time series data and diverse datasets provides a more efficient way to construct foundation models.

Figure 10. A comparison of inference time and the parameter counts of time series foundation models, along with their zero-shot performance on the Weather dataset.
Conclusion
In this paper, we propose TimeSeek, a novel generalized time series analytics model that adaptively models time series patterns from multi-domain data and unifies multiple tasks in pre-training. From the perspective of multi-domain data, we propose a Multi-Domain Feature Extractor that adaptively captures temporal dependencies and channel correlations based on domain-specific characteristics, including progressive multiscale modeling and adaptive slot channel modeling. From the perspective of the diversity of tasks, we propose Multi-Task Collaborative Training, which leverages task specificity and task commonality through task customization and cross-task training, effectively unifying multiple tasks in pre-training and better adapting to diverse downstream scenarios. After pre-training on large-scale time series data, TimeSeek achieves state-of-the-art performance in forecasting, anomaly detection, and classification tasks across both few-shot learning and zero-shot inference situations, demonstrating strong task versatility and generalization ability. At the same time, compared with existing time series foundation models, TimeSeek shows better inference efficiency and analysis accuracy. We provide our code at https://github.com/decisionintelligence/TimeSeek.
Acknowledgment
This work was supported by the National Natural Science Foundation of China (62406112, 62372179).
References
- [1]I. Kaastra and M. S. Boyd, “Designing a neural network for forecasting financial and economic time series,” Neurocomputing, vol. 10, no. 3, pp. 235–236, 1996.DOI
- [2]T. Li, Z. Liu, Y. Shen, X. Wang, H. Chen, and S. Huang, “MASTER: market-guided stock transformer for stock price forecasting,” in AAAI, 2024, pp. 162–170.arxiv.org/abs/2312.15235
- [3]Y. Liang, Y. Xia, S. Ke, Y. Wang, Q. Wen, J. Zhang, Y. Zheng, and R. Zimmermann, “Airformer: Predicting nationwide air quality in china with transformers,” in AAAI, 2023, pp. 14 329–14 337.
- [4]N. L. Nihan and K. O. Homesland, “Use of the box and jenkins time series technique in traffic forecasting,” Transportation, 1980.DOI
- [5]Ö. F. Demirel, S. Zaim, A. Çalışkan, and P. Özüyar, “Forecasting natural gas consumption in İstanbul using neural networks and multivariate time series methods,” Turkish Journal of Electrical Engineering and Computer Sciences, 2012.
- [6]H. Touvron, T. Lavril, G. Izacard, X. Martinet, M.-A. Lachaux, T. Lacroix, B. Rozière, N. Goyal, E. Hambro, F. Azhar et al., “Llama: open and efficient foundation language models. arxiv,” arXiv preprint arXiv:2302.13971, 2023.arxiv.org/abs/2302.13971
- [7]T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. M. Ziegler, J. Wu, C. Winter, C. Hesse, M. Chen, E. Sigler, M. Litwin, S. Gray, B. Chess, J. Clark, C. Berner, S. McCandlish, A. Radford, I. Sutskever, and D. Amodei, “Language models are few-shot learners,” in NeurIPS, 2020.arxiv.org/abs/2005.14165
- [8]A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, J. Uszkoreit, and N. Houlsby, “An image is worth 16x16 words: Transformers for image recognition at scale,” in ICLR, 2021.
- [9]Z. Liu, Y. Lin, Y. Cao, H. Hu, Y. Wei, Z. Zhang, S. Lin, and B. Guo, “Swin transformer: Hierarchical vision transformer using shifted windows,” in ICCV, 2021, pp. 9992–10002.arxiv.org/abs/2103.14030
- [10]Y. Liu, H. Zhang, C. Li, X. Huang, J. Wang, and M. Long, “Timer: Generative pre-trained transformers are large time series models,” in ICML, 2024.arxiv.org/abs/2402.02368
- [11]M. Goswami, K. Szafer, A. Choudhry, Y. Cai, S. Li, and A. Dubrawski, “MOMENT: A family of open time-series foundation models,” in ICML, 2024.arxiv.org/abs/2402.03885
- [12]X. Shi, S. Wang, Y. Nie, D. Li, Z. Ye, Q. Wen, and M. Jin, “Time-moe: Billion-scale time series foundation models with mixture of experts,” CoRR, vol. abs/2409.16040, 2024.arxiv.org/abs/2409.16040
- [13]A. Das, W. Kong, R. Sen, and Y. Zhou, “A decoder-only foundation model for time-series forecasting,” in ICML, 2024.arxiv.org/abs/2310.10688
- [14]G. Woo, C. Liu, A. Kumar, C. Xiong, S. Savarese, and D. Sahoo, “Unified training of universal time series forecasting transformers,” in ICML, 2024.arxiv.org/abs/2402.02592
- [15]S. Gao, T. Koker, O. Queen, T. Hartvigsen, T. Tsiligkaridis, and M. Zitnik, “Units: A unified multi-task time series model,” in NeurIPS, 2024.arxiv.org/abs/2403.00131
- [16]A. F. Ansari, L. Stella, A. C. Türkmen, X. Zhang, P. Mercado, H. Shen, O. Schur, S. S. Rangapuram, S. Pineda-Arango, S. Kapoor, J. Zschiegner, D. C. Maddix, M. W. Mahoney, K. Torkkola, A. G. Wilson, M. Bohlke-Schneider, and Y. Wang, “Chronos: Learning the language of time series,” CoRR, vol. abs/2403.07815, 2024.
- [17]H. Wu, T. Hu, Y. Liu, H. Zhou, J. Wang, and M. Long, “Timesnet: Temporal 2d-variation modeling for general time series analysis,” in ICLR, 2023.arxiv.org/abs/2210.02186
- [18]X. Qiu, J. Hu, L. Zhou, X. Wu, J. Du, B. Zhang, C. Guo, A. Zhou, C. S. Jensen, Z. Sheng, and B. Yang, “TFB: Towards comprehensive and fair benchmarking of time series forecasting methods,” Proc. VLDB Endow., vol. 17, no. 9, pp. 2363–2377, 2024.arxiv.org/abs/2403.20150
- [19]C. Faloutsos, J. Gasthaus, T. Januschowski, and Y. Wang, “Forecasting big time series: Old and new,” Proc. VLDB Endow., vol. 11, no. 12, pp. 2102–2105, 2018.
- [20]P. Chen, Z. Zhuang, H. Chen, J. Huang, A. Yang, M. Wu, Y. Liu, X. Dai, and Z. Dong, “Beyond numerical time series: A unified benchmark for multimodal forecasting with heterogeneous context,” arXiv preprint arXiv:2609.15087, 2026.arxiv.org/abs/2609.15087
- [21]Z. Z. Darban, G. I. Webb, S. Pan, C. Aggarwal, and M. Salehi, “Deep learning for time series anomaly detection: A survey,” ACM Comput. Surv., vol. 57, no. 1, pp. 15:1–15:42, 2025.DOI
- [22]Q. Liu, P. Boniol, T. Palpanas, and J. Paparrizos, “Time-series anomaly detection: Overview and new trends,” VLDB, vol. 17, no. 12, pp. 4229–4232, 2024.DOI
- [23]J. Paparrizos, Y. Kang, P. Boniol, R. S. Tsay, T. Palpanas, and M. J. Franklin, “TSB-uad: An end-to-end benchmark suite for univariate time-series anomaly detection,” VLDB, vol. 15, no. 8, pp. 1697–1711, 2022.
- [24]J. Paparrizos, P. Boniol, T. Palpanas, R. S. Tsay, A. Elmore, and M. J. Franklin, “Volume under the surface: a new accuracy evaluation measure for time-series anomaly detection,” Proceedings of the VLDB Endowment, vol. 15, no. 11, pp. 2774–2787, 2022.
- [25]N. M. Foumani, L. Miller, C. W. Tan, G. I. Webb, G. Forestier, and M. Salehi, “Deep learning for time series classification and extrinsic regression: A current survey,” ACM Comput. Surv., vol. 56, no. 9, pp. 217:1–217:45, 2024.arxiv.org/abs/2302.02515
- [26]A. Zeng, M. Chen, L. Zhang, and Q. Xu, “Are transformers effective for time series forecasting?” in AAAI, 2023, pp. 11 121–11 128.arxiv.org/abs/2205.13504
- [27]Z. Xu, A. Zeng, and Q. Xu, “FITS: modeling time series with 10k parameters,” in ICLR, 2024.arxiv.org/abs/2307.03756
- [28]S. Zhong, S. Song, W. Zhuo, G. Li, Y. Liu, and S. G. Chan, “A multi-scale decomposition mlp-mixer for time series analysis,” Proc. VLDB Endow., vol. 17, no. 7, pp. 1723–1736, 2024.arxiv.org/abs/2310.11959
- [29]V. Flunkert, D. Salinas, and J. Gasthaus, “DeepAR: Probabilistic forecasting with autoregressive recurrent networks,” CoRR, vol. abs/1704.04110, 2017.arxiv.org/abs/1704.04110
- [30]R.-G. Cirstea, B. Yang, and C. Guo, “Graph attention recurrent neural networks for correlated time series forecasting,” in SIGKDD, 2019.
- [31]R. Cirstea, T. Kieu, C. Guo, B. Yang, and S. J. Pan, “EnhanceNet: Plugin neural networks for enhancing correlated time series forecasting,” in ICDE, 2021, pp. 1739–1750.DOI
- [32]K. Zhao, C. Guo, Y. Cheng, P. Han, M. Zhang, and B. Yang, “Multiple time series forecasting with dynamic graph modeling,” VLDB, vol. 17, no. 4, pp. 753–765, 2023.DOI
- [33]X. Wu, D. Zhang, C. Guo, C. He, B. Yang, and C. S. Jensen, “Autocts: Automated correlated time series forecasting,” VLDB, vol. 15, no. 4, pp. 971–983, 2021.
- [34]Y. Cui, K. Zheng, D. Cui, J. Xie, L. Deng, F. Huang, and X. Zhou, “METRO: A generic graph neural network framework for multivariate time series forecasting,” VLDB, vol. 15, no. 2, pp. 224–236, 2021.
- [35]M. Ma, J. Hu, C. S. Jensen, F. Teng, P. Han, Z. Xu, and T. Li, “Learning time-aware graph structures for spatially correlated time series forecasting,” in ICDE, 2024, pp. 4435–4448.arxiv.org/abs/2312.16403
- [36]R. Cirstea, C. Guo, Y. Yang, T. Kieu, X. Dong, and S. Pan, “Triformer: Triangular, variable-specific attentions for long sequence multivariate time series forecasting,” in IJCAI, 2022, pp. 1994–2001.DOI
- [37]Y. Zhang and J. Yan, “Crossformer: Transformer utilizing cross-dimension dependency for multivariate time series forecasting,” in ICLR, 2023.
- [38]Y. Nie, N. H. Nguyen, P. Sinthong, and J. Kalagnanam, “A time series is worth 64 words: Long-term forecasting with transformers,” in ICLR, 2023.arxiv.org/abs/2211.14730
- [39]P. Chen, Y. Zhang, Y. Cheng, Y. Shu, Y. Wang, Q. Wen, B. Yang, and C. Guo, “Pathformer: Multi-scale transformers with adaptive pathways for time series forecasting,” in ICLR, 2024.
- [40]Y. Liu, T. Hu, H. Zhang, H. Wu, S. Wang, L. Ma, and M. Long, “iTransformer: Inverted transformers are effective for time series forecasting,” in ICLR, 2024.
- [41]Y. Zheng, Q. Liu, E. Chen, Y. Ge, and J. L. Zhao, “Time series classification using multi-channels deep convolutional neural networks,” in WAIM, vol. 8485, 2014, pp. 298–310.
- [42]F. Karim, S. Majumdar, H. Darabi, and S. Harford, “Multivariate lstm-fcns for time series classification,” Neural Networks, vol. 116, pp. 237–245, 2019.
- [43]Y. Yao, H. Jie, L. Chen, T. Li, Y. Gao, and S. Wen, “Tsc: An efficient and effective framework for time series classification,” in ICDE, 2024, pp. 1394–1406.
- [44]H. I. Fawaz, B. Lucas, G. Forestier, C. Pelletier, D. F. Schmidt, J. Weber, G. I. Webb, L. Idoumghar, P. Muller, and F. Petitjean, “Inceptiontime: Finding alexnet for time series classification,” Data Min. Knowl. Discov., vol. 34, no. 6, pp. 1936–1962, 2020.
- [45]A. Ismail-Fawaz, M. Devannе, S. Berretti, J. Weber, and G. Forestier, “LITE: light inception with boosting techniques for time series classification,” in DSAA, 2023, pp. 1–10.
- [46]N. M. Foumani, C. W. Tan, G. I. Webb, and M. Salehi, “Improving position encoding of transformers for multivariate time series classification,” Data Min. Knowl. Discov., vol. 38, no. 1, pp. 22–48, 2024.
- [47]M. Wistuba, J. Grabocka, and L. Schmidt-Thieme, “Ultra-fast shapelets for time series classification,” CoRR, vol. abs/1503.05018, 2015.
- [48]I. Karlsson, P. Papapetrou, and H. Boström, “Generalized random shapelet forests,” Data Min. Knowl. Discov., vol. 30, no. 5, pp. 1053–1085, 2016.DOI
- [49]G. Li, B. Choi, J. Xu, S. S. Bhowmick, K. Chun, and G. L. Wong, “Efficient shapelet discovery for time series classification,” TKDE, vol. 34, no. 3, pp. 1149–1163, 2022.
- [50]X. Zhang, Y. Gao, J. Lin, and C. Lu, “Tapnet: Multivariate time series classification with attentional prototypical network,” in AAAI, 2020, pp. 6845–6852.
- [51]Z. Yue, Y. Wang, J. Duan, T. Yang, C. Huang, Y. Tong, and B. Xu, “Ts2vec: Towards universal representation of time series,” in AAAI, 2022, pp. 8980–8987.
- [52]E. Eldele, M. Ragab, Z. Chen, M. Wu, C. K. Kwoh, X. Li, and C. Guan, “Time-series representation learning via temporal and contextual contrasting,” in IJCAI, 2021, pp. 2352–2359.
- [53]G. Woo, C. Liu, D. Sahoo, A. Kumar, and S. C. H. Hoi, “Cost: Contrastive learning of disentangled seasonal-trend representations for time series forecasting,” in ICLR, 2022.
- [54]J. Dong, H. Wu, H. Zhang, L. Zhang, J. Wang, and M. Long, “Simmtm: A simple pre-training framework for masked time-series modeling,” in NeurIPS, 2023.
- [55]B. Zong, Q. Song, M. R. Min, W. Cheng, C. Lumezanu, D. Cho, and H. Chen, “Deep autoencoding gaussian mixture model for unsupervised anomaly detection,” in ICLR, 2018.
- [56]H. Hundman, V. Constantinou, C. Laporte, I. Colwell, and T. Söderström, “Detecting spacecraft anomalies using lstms and non-parametric dynamic thresholding,” in SIGKDD, 2018, pp. 387–395.
- [57]Y. Su, Y. Zhao, C. Niu, R. Liu, W. Sun, and D. Pei, “Robust anomaly detection for multivariate time series through stochastic recurrent neural network,” in SIGKDD, 2019, pp. 2828–2837.
- [58]D. Luo and X. Wang, “Moderntcn: A modern pure convolution structure for general time series analysis,” in ICLR, 2024.
- [59]X. Chen, L. Deng, F. Huang, C. Zhang, Z. Zhang, Y. Zhao, and K. Zheng, “Daemon: Unsupervised anomaly detection and interpretation for multivariate time series,” in ICDE, 2021, pp. 2225–2230.
- [60]D. Campos, T. Kieu, C. Guo, F. Huang, K. Zheng, B. Yang, and C. S. Jensen, “Unsupervised time series outlier detection with diversity-driven convolutional ensembles,” Proc. VLDB Endow., vol. 15, no. 3, pp. 611–623, 2021.
- [61]Z. Li, Y. Zhao, J. Han, Y. Su, R. Jiao, X. Wen, and D. Pei, “Multivariate time series anomaly detection and interpretation using hierarchical inter-metric and temporal embedding,” in SIGKDD, 2021, pp. 3220–3230.
- [62]T. Kieu, B. Yang, C. Guo, C. S. Jensen, Y. Zhao, F. Huang, and K. Zheng, “Robust and explainable autoencoders for unsupervised time series outlier detection,” in ICDE, 2022, pp. 3038–3050.
- [63]Y. Fang, J. Xie, Y. Zhao, L. Chen, Y. Gao, and K. Zheng, “Temporal-frequency masked autoencoders for time series anomaly detection,” in ICDE, 2024, pp. 1228–1241.
- [64]C. Wang, Z. Huang, Q. Qi, J. Wang, X. Wang, H. Sun, and J. Liao, “Drift doesn’t matter: Dynamic decomposition with diffusion reconstruction for unstable multivariate time series anomaly detection,” in NeurIPS, 2023.
- [65]T. Kieu, B. Yang, C. Guo, R.-G. Cirstea, Y. Zhao, Y. Song, and C. S. Jensen, “Anomaly detection in time series with robust variational quasi-recurrent autoencoders,” in ICDE, 2022, pp. 1342–1354.
- [66]V. Ekambaram, A. Jati, P. Dayama, S. Mukherjee, N. Nguyen, W. M. Gifford, C. Reddy, and J. Kalagnanam, “Tiny time mixers (ttms): Fast pre-trained models for enhanced zero/few-shot forecasting of multivariate time series,” in NeurIPS, 2024.
- [67]Y. Wang, Y. Qiu, P. Chen, K. Zhao, Y. Shu, Z. Rao, L. Pan, B. Yang, and C. Guo, “ROSE: register assisted general time series forecasting with decomposed frequency learning,” CoRR, vol. abs/2405.17478, 2024.
- [68]H. Kamarthi and B. A. Prakash, “Large pre-trained time series models for cross-domain time series analysis tasks,” in NeurIPS, 2024.
- [69]P. Chen, S. Wang, S. Hu, X. Wu, Y. Shu, Z. Rao, M. Wang, Y. Li, B. Yang, and C. Guo, “Empowering time series analysis with large-scale multimodal pretraining,” arXiv preprint arXiv:2602.05646, 2026.
- [70]A. Auer, P. Podest, D. Klotz, S. Böck, G. Klambauer, and S. Hochreiter, “Tirex: Zero-shot forecasting across long and short horizons with enhanced in-context learning,” NeurIPS, 2026.
- [71]L. Graf, T. Ortner, S. WoSniak, A. Pantazi et al., “Flowstate: Sampling rate invariant time series forecasting,” arXiv preprint arXiv:2508.05287, 2025.
- [72]A. F. Ansari, O. Schhur, J. Küken, A. Auer, B. Han, P. Mercado, S. S. Rangapuram, H. Shen, L. Stella, X. Zhang et al., “Chronos-2: From univariate to universal forecasting,” arXiv preprint arXiv:2510.15821, 2025.arxiv.org/abs/2510.15821
- [73]D. Cao, F. Jia, S. Ö. Arik, T. Pfister, Y. Zheng, W. Ye, and Y. Liu, “TEMPO: prompt-based generative pre-trained transformer for time series forecasting,” in ICLR, 2024.
- [74]D. Cao, W. Y. Ye, Y. Zhang, and Y. Liu, “Timedit: General-purpose diffusion transformers for time series foundation model,” arXiv preprint arXiv:2409.02322, 2024.
- [75]S. Wang, H. Wu, X. Shi, T. Hu, H. Luo, L. Ma, J. Y. Zhang, and J. Zhou, “Timenmixer: Decomposable multiscale mixing for time series forecasting,” in ICLR, 2024.
- [76]B. Zhou, S. Liu, B. Hooi, X. Cheng, and J. Ye, “Beatgan: Anomalous rhythm detection using adversarially generated time series,” in IJCAI, 2019, pp. 4433–4439.
- [77]J. Xu, H. Wu, J. Wang, and M. Long, “Anomaly transformer: Time series anomaly detection with association discrepancy,” in ICLR, 2022.
- [78]Y. Yang, C. Zhang, T. Zhou, Q. Wen, and L. Sun, “Dcdetector: Dual attention contrastive representation learning for time series anomaly detection,” in SIGKDD, 2023, pp. 3033–3045.
- [79]T. Rakthanmanon, B. J. L. Campana, A. Mueen, G. E. A. P. A. Batista, M. B. Westover, Q. Zhu, J. Zakaria, and E. J. Keogh, “Searching and mining trillions of time series subsequences under dynamic time warping,” in SIGKDD, 2012, pp. 262–270.
- [80]T. Chen and C. Guestrin, “Xgboost: A scalable tree boosting system,” in SIGKDD, 2016, pp. 785–794.DOI
- [81]A. Dempster, F. Petitjean, and G. I. Webb, “ROCKET: exceptionally fast and accurate time series classification using random convolutional kernels,” Data Min. Knowl. Discov., vol. 34, no. 5, pp. 1454–1495, 2020.
- [82]W. Tang, G. Long, L. Liu, T. Zhou, M. Blumenstein, and J. Jiang, “Omni-scale cnns: a simple and effective kernel size configuration for time series classification,” in ICLR, 2022.
- [83]A. Huet, J. M. Navarro, and D. Rossi, “Local evaluation of time series anomaly detection algorithms,” in SIGKDD, 2022, pp. 635–645.DOI


