arXiv:2610.26114cs.LGOct 2026

Manuscript Offprint

arXiv:2610.26114

From Retrieval to Recognition:Knowledge-Enhanced Post-training of Time Series Foundation Models for Classification

Zhen Liu, Yucheng Wang, Yingpeng Du, Tianjun Wei, Qianli Ma, Min Wu, Jie Zhang, Zhu Sun

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Time series foundation models (TSFMs) have achieved notable progress in classification tasks through large-scale pretraining. However, their post-training practice mainly focuses on implicit parameter fine-tuning, where task-relevant information is entangled with abundant irrelevant knowledge in vast parameter spaces. This may hinder TSFMs from precisely activating useful knowledge for downstream classification. To this end, we propose Retrieval-to-Recognition (R2R), a plug-and-play post-training paradigm that adapts pretrained TSFMs to time series classification. Rather than pretraining a new foundation model, R2R improves how existing TSFMs are post-trained: it introduces a decoupled query encoder to extract discriminative patterns and retrieve instance-level numerical knowledge from a constructed knowledge base. The retrieved explicit knowledge is then fused with the TSFM's implicit parametric embeddings, enabling joint knowledge transfer at both the parameter and feature levels. In this way, R2R allows TSFMs to recall task-relevant patterns learned during pretraining, improving the efficiency of knowledge utilization in downstream classification transfer. Experiments on 158 time series datasets show that R2R consistently improves the classification performance of state-of-the-art TSFMs. Ablation and knowledge-enhanced studies further validate the effectiveness of the proposed framework. The source code is available at https://github.com/ZLiu21/R2R.

1 Introduction

Time series data are widespread in critical domains such as traffic monitoring [1], medical diagnosis [2], and action recognition [3, 4]. As a core task in time series analysis, time series classification (TSC) aims to extract discriminative patterns in sequences with complex temporal dynamics to distinguish categories [5]. During the past decades, TSC methods have evolved from distance-based approaches [6, 7], to feature-engineering strategies such as the Rocket family [8, 9, 10], and to supervised deep learning models [11, 12, 13]. More recently, inspired by the success of pretraining, TSFMs have emerged as a promising research direction [14, 15, 16]. This shift advances TSC toward general-purpose modeling, utilizing large-scale pretraining to support diverse classification tasks.

∗^{*}Corresponding authors.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

(a) Knowledge learning

Figure

(b) Knowledge transfer (Existing)

Figure

(c) Knowledge enhancement (Ours)

Figure 1: Illustration of knowledge paradigms in TSFMs for classification. (a) Knowledge learning: TSFMs learn discriminative class patterns from multi-domain pretraining data, storing knowledge implicitly in model parameters. (b) Knowledge transfer: Existing methods adapt this knowledge to target tasks via parameter fine-tuning, without explicitly reusing pretraining data knowledge. (c) Knowledge enhancement: R2R enhances parameter transfer with feature-level retrieval, explicitly leveraging numerical patterns from a pretraining knowledge base to boost recognition. Stage (a) is pretraining; (b) and (c) are post-training, and this work targets the (b)→(c) transition.

Existing TSFMs for classification typically employ a pretraining paradigm that exploits extensive, multi-domain datasets [17, 18]. This process can be regarded as a critical knowledge learning stage (Figure 1a), where the model captures rich discriminative patterns from the pretraining dataset [19, 20]. Through this stage, explicit class patterns in raw time series are compressed into implicit, parameterized knowledge encoded within model weights [21, 22]. Hence, pretrained TSFMs serve as knowledge carriers, providing superior parameter initialization compared to training from scratch.

Building on pre-trained TSFMs, existing approaches [18, 19, 20] typically employ parameter fine-tuning for knowledge transfer to downstream TSC tasks (Figure 1b). This adaptation is the post-training stage of foundation models [23, 24], for which supervised fine-tuning remains the dominant instantiation in TSC. However, parameter-only fine-tuning discards pretraining data, limiting access to informative numerical patterns in the source corpus. Task-relevant knowledge remains entangled with irrelevant information in large parameter spaces, hindering precise activation of useful knowledge for transfer. Moreover, prior studies [21, 25] show that simply scaling model parameters does not consistently improve TSC performance. These observations motivate a key question: beyond parameter-based transfer, can explicit data-level knowledge from the pretraining dataset be leveraged to enable more effective transfer?

A straightforward way to incorporate data-level knowledge is to reuse pretraining data during fine-tuning. However, large-scale pretraining datasets make direct reuse inefficient for transfer. In TSC, performance mainly depends on capturing class-relevant patterns in input data, such as discriminative subsequences [26, 27, 28]. These patterns are often sparsely distributed and mixed with substantial noise and class-irrelevant variations [29, 30]. Inspired by retrieval-augmented methods in pretrained language models [31, 32], we argue that constructing query embeddings for input time series and retrieving feature-similar class patterns from pretraining datasets, yielding explicit instance-level knowledge. This retrieval process filters irrelevant samples while focusing on class-relevant patterns, providing more direct data-level knowledge than parameter-only fine-tuning.

Therefore, we propose Retrieval-to-Recognition (R2R), a plug-and-play post-training framework that advances pretrained TSFMs from retrieval to recognition (Figure 1c). R2R goes beyond parameter-based transfer by introducing a dedicated query encoder to efficiently retrieve class-relevant patterns from large-scale pretraining datasets. The query encoder captures local and global features with positional information to identify feature-level class patterns for each input time series, enabling explicit acquisition of data-level knowledge. The retrieved patterns are then integrated with the pretrained TSFM's parameter-derived embeddings, allowing the TSFM to effectively recall task-relevant patterns from the pretraining corpus for accurate transfer. This retrieval-driven paradigm mitigates the limitations of parameter-only approaches by enabling feature-level transfer, offering a new post-training paradigm for TSC.

Our main contributions are summarized as follows:

• We introduce R2R, a plug-and-play post-training framework for TSC that enhances pre-trained TSFMs by utilizing external numerical knowledge derived from a constructed pre-training knowledge base, facilitating instance-level knowledge integration beyond parameter-only transfer, without modifying the original pretraining process of TSFMs.

• We design a decoupled query encoder with a gradient-free backbone to efficiently extract and retrieve discriminative numerical patterns, enabling multi-domain inputs to access class-relevant patterns for each query instance and to bridge retrieval with downstream TSC.

• Experiments on 158 datasets demonstrate that R2R consistently improves classification performance of existing pretrained TSFMs in both supervised fine-tuning and zero-shot feature extraction, with further analyses confirming the effectiveness of each module.

References (71)