arXiv:2610.05726cs.AIOct 2026

Manuscript Offprint

arXiv:2610.05726

FreSia: Frequency-Semantic Instantiation and Alignment for Multivariate Time Series Analysis

Yubo Wang, Hui He, Hezhe Qiao, Guoqing Ji, Zhendong Niu

Abstract

Large Language Models (LLMs) have shown strong potential in multivariate time series forecasting and anomaly detection. Existing studies predominantly inject temporal information into LLMs via direct numerical tokenization or heuristic textual descriptions. However, LLMs still face difficulty in perceiving the underlying structural patterns of numerical time series, particularly the seasonal and trend components obscured by discrete numerical tokens. To bridge this gap, we propose FreSia, a frequency-aware framework that establishes an effective alignment between the semantic space of LLMs and the frequency space of time series. Specifically, FGPrompt, a Frequency-Guided Prompt mechanism within FreSia, distills the frequency-domain structures of time series and projects them into prompts tailored to the semantic space of LLMs. Furthermore, we introduce a Global-driven Context Learning (GCL) component, which uses a global CLS-driven probe to generate global context to bridge the time-frequency domain gap and fuse the multi-modal information. Experiments on eight forecasting benchmarks show that FreSia achieves average improvements of 13.48% and 8.06% in MSE and MAE, respectively.

Keywords:

time series anomaly detection, time series forecasting, Large Language Models

*Corresponding author

Email addresses: wangyb@bit.edu.cn (Yubo Wang), zniu@bit.edu.cn (Zhendong Niu) input: <value1>, <value2>, <value 3>, …, <value n>.

LLM

?

Figure

(a) Representation gap

Figure

(b) Spectral sparsity in real-world time series

Figure 1: (a) Representation gap between raw numerical prompts and frequency-guided semantic prompts. (b) Top-K frequency components explain a large portion of spectral energy across eight benchmark datasets. This motivates the use of dominant frequency components as compact structural primitives for frequency-guided semantic instantiation.

1. Introduction

Multivariate time series analysis plays a pivotal role in a wide range of real-world applications [1], such as traffic flow forecasting [2] and industrial anomaly detection [3]. With the rapid development of NLP, pre-trained LLMs have been widely applied to time series analysis. In particular, prompt-based LLM methods introduce textual prompts as additional inputs to aid LLMs in understanding temporal tasks. Such prompts typically contextualize the statistical features of time series with textual descriptions: either by converting data into textual representations [4] or by directly summarizing sequence information using natural language [5]. Subsequently, the prompts are encoded by a pre-trained LLM to obtain robust semantic representations for downstream tasks.

Existing LLM-based time series methods mainly inject temporal information through raw numerical serialization or time-domain statistical descriptions. For instance, TimeLLM [6] integrates domain knowledge and input statistics into descriptive prompts, which are then concatenated with temporal embeddings. TimeCMA [4] generates prompts based on historical values and trends, utilizing them as semantic anchors for cross-modal retrieval. Similarly, LangTime [7] treats time series directly as language tokens to leverage pretrained LLMs. Although these strategies make numerical data accessible to LLMs, they still suffer from an important representation mismatch.

As illustrated in Figure 1 (a), raw numerical values are dense, continuous, scale-sensitive, and tokenization-unfriendly. LLMs are primarily pretrained on discrete linguistic tokens and are effective at modeling semantic and logical relations in natural language, but such token-based representations are not naturally aligned with continuous numerical dynamics [6]. When a time series is serialized into a long sequence of numerical tokens, its underlying temporal structures, such as periodicity and seasonality, remain implicit. Frequency-domain analysis provides a structured intermediate representation by exposing periodic and harmonic components. These components can be further discretized and verbalized as symbolic cycle descriptors, such as daily cycle, half-day cycle, weekly cycle, or general x-step cycle, making them more compatible with the token-based semantic representation space of LLMs. We therefore select dominant frequency components based on their spectral energy. According to the energy-preserving property of the discrete Fourier transform, the DFT decomposes signal energy across orthogonal frequency components, making high-energy components natural candidates for capturing the main temporal variations.

As shown in Figure 1 (b), the Top-3 and Top-5 dominant frequencies explain 74.5% and 82.1% of non-DC spectral energy on average across eight benchmark datasets. This observation suggests that dense numerical sequences can be compactly summarized by a few dominant spectral primitives. It motivates us to express dominant frequency-domain structures through natural language descriptors, which provide a compact semantic abstraction of the main temporal patterns. A detailed explanation of the energy-preserving property of DFT is provided in Appendix A.

Motivated by this observation, we propose FreSia, a framework for MTS analy-sis through frequency-guided prompting and global-driven contextualization. Our approach consists of two key components: (1) Frequency-Guided Prompt (FGPrompt): To bridge the representation gap between raw numbers and semantic reasoning, we distill the intrinsic frequency-domain structure of time series using FFT. By mapping Top-K frequencies into the Frequency Pool, we transform numerical observations into structured spectral primitives. (2) Global-driven Context Learning (GCL): To bridge the representation gap between frequency-domain structure and time-domain contextual dynamics, we introduce a Global-driven Context Learning mechanism. A global CLS-driven probe is employed to capture the context from the temporal encoder. By fusing this temporal context with spectral primitives, we can bridge time-domain and frequency-domain representations.

Our contributions are summarized as follows:

  • We develop an FGPrompt to distill intrinsic spectral structures into a learnable frequency pool. This enables the LLM to retrieve frequency-domain structures rather than relying solely on numerical summary statistics.

  • We propose a GCL architecture where a CLS-driven probe generates instance-specific residual offsets to calibrate the prompt space. This design bridges the gap between the time and frequency domains.

  • We evaluate FreSia on both multivariate time-series forecasting and reconstruction-based anomaly detection. With task-specific heads, FreSia achieves competitive results across the evaluated forecasting and anomaly-detection benchmarks.

References (44)