Manuscript Offprint

arXiv:2608.24113

Structured Frequency-Domain Evidence for LLM-Based Time-Series Anomaly Detection

Jungwook Seo, Sangwon Son, Minjeong Kim, Seungmin Han, Seojin Yoo, Sungyong Baik

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

Abstract

Time-series anomalies can appear not only as pointwise deviations but also as changes in recurring temporal structure, such as shifted periodicity or localized oscillatory fluctuations. However, existing LLM-based time-series anomaly detection methods mainly expose time-domain evidence through indexed values, plots, or de-seasonalized representations, leaving spectral structure implicit. We propose an evidence-augmented zero-shot TSAD framework that preserves indexed de-seasonalized observations while adding compact frequency-domain evidence computed with the Fast Fourier Transform (FFT). The evidence is constructed at two resolutions: global frequency-domain evidence summarizes sequence-level periodic context, while local frequency-domain evidence captures time-localized spectral departures. Experiments on AnomLLM with InternVL2-LLaMA3-76B, Qwen2.5-VL-72B-Instruct, Gemini-2.5-Flash, and GPT-4o, together with evaluation on the TSB-AD-U subset, show that explicit frequency-domain evidence improves LLM-based TSAD baselines. These results suggest that frequency-domain evidence can complement indexed and de-seasonalized time-domain inputs for zero-shot LLM-based TSAD.

1 Introduction

Beyond isolated spikes or pointwise deviations, anomalous intervals can appear as subtle changes in recurring temporal structure, such as altered cycles, shifted periodic components, or unstable local fluctuations. These patterns are naturally frequency-relevant: detecting them may require evidence about how the periodic structure of a sequence changes over time.

This issue is critical in realistic time-series anomaly detection (TSAD) (Blázquez-García et al., 2020; Pang et al., 2020), where anomaly labels, anomaly categories, and dataset-specific priors are often unavailable before deployment (Han et al., 2022). A zero-shot setting therefore requires the detector to localize anomalous intervals directly from the input sequence, without relying on benchmark-specific taxonomies, historical examples, or auxiliary supervision. This is stricter than training-free inference alone, since a method can avoid task-specific model training while still using external priors.

Recent studies have investigated large language models (LLMs) for TSAD, showing that LLMs can localize anomalous intervals without task-specific training from numerical sequences and, in some cases, visual context (Alnegheimish et al., 2024b; Liu et al., 2025; Zhou and Yu, 2025; Park et al., 2025). Existing LLM-based methods expose time series through textualized numerical sequences, visualized plots, or transformed inputs such as de-seasonalized sequences (Alnegheimish et al., 2024b; Liu et al., 2025; Zhuang et al., 2024), while LLM-TSAD preserves temporal indices to improve interval-level localization (Park et al., 2025). These designs help LLMs reason over temporal order and interval boundaries, but they do not explicitly summarize spectral properties such as dominant periods, spectral energy distribution, or time-localized frequency changes.

Frequency-domain modeling has long been useful in TSAD for capturing periodic structure, long-range dependencies, and anomalies that are weakly expressed in local time-domain values (Zhang et al., 2022; Lu et al., 2024; Wang et al., 2024; Nam et al., 2024). However, existing frequency-aware TSAD methods typically encode spectral information inside model-specific architectures, reconstruction objectives, or supervised pipelines (Zhang et al., 2022; Lu et al., 2024). This creates a representation-level evidence gap: spectral information may be useful for anomaly localization, but it is rarely exposed as explicit input evidence that a general-

†^{\dagger}Corresponding author.

ProbeMetricIndexed TextText + PlotDe-seasonalizedGlobal Freq.Local Freq.
Single sinusoidTop-1 Recovery (10%)24.523.514.595.552.0
Multi sinusoidTop-k Recovery (10%)24.718.134.691.943.0
Local frequency changeDetection Acc.11.580.588.08.590.5

Table 1: Summary of frequency-reasoning probes. Top-1 and Top-k Recovery use a 10%10\% relative-error tolerance. Global Frequency and Local Frequency denote indexed text augmented with global and local frequency summaries, respectively.

Figure

Figure 1: Stepwise F1 gains from local (LF) and global (GF) frequency-domain evidence on representative hard anomaly types. The waterfall plot shows incremental gains over the indexed de-seasonalized baseline.

purpose LLM can directly condition on.

We address this gap by constructing frequency-domain evidence at the input level. The proposed framework augments indexed de-seasonalized observations with compact global and local frequency-domain evidence computed from the input sequence using the Fast Fourier Transform (FFT). Global evidence captures the sequence-level periodic regime, while local evidence captures spectral behavior within overlapping temporal windows. The resulting input representation allows the LLM to condition on indexed time-domain observations and explicit frequency-domain evidence without using predefined anomaly categories, auxiliary supervision, or task-specific model training.

Our contributions are as follows:

  • We identify a representation-level evidence gap in LLM-based TSAD: existing inputs help represent temporal order and interval boundaries, but leave frequency-relevant cues largely implicit.

  • We propose a training-free evidence-augmented framework that constructs explicit global and local FFT-based summaries directly from the input sequence.

  • We validate the framework on the Anom-LLM benchmark with multiple multimodal LLMs and the TSB-AD-U subset protocol used by LLM-TSAD, showing improvements over strong LLM-based TSAD baselines.

2 Can LLMs Infer Frequency Structure from Time-Domain Inputs?

In time-series anomaly detection (TSAD), anomalous intervals may remain within a plausible value range while changing their period, frequency composition, or oscillatory regularity. Such cases are difficult to identify from pointwise values alone because the anomalous pattern is expressed through changes in temporal structure rather than through large amplitude deviations. This raises a representation-level question: can LLMs reliably recover frequency structure when it is provided only implicitly through time-domain inputs?

To examine this question, we conduct controlled probing experiments on synthetic sinusoidal sequences. These probes are not intended as TSAD benchmarks, but as diagnostic tasks that isolate frequency reasoning from dataset-specific anomaly patterns. Table 1 summarizes three probes: single sinusoid, multi sinusoid, and local frequency change. The first two probes evaluate sequence-level frequency recovery: the model must identify the dominant frequency in a single-component signal or recover the dominant components in a mixture of sinusoids. The third probe evaluates localized frequency-change detection: the model must identify whether a segment contains a change in oscillatory behavior.

As shown in Table 1, global frequency-domain evidence substantially improves sequence-level frequency recovery, achieving the best results on both the single- and multi-sinusoid probes. This result indicates that full-sequence spectral summaries provide periodic information that the LLM does not reliably recover from indexed values, plots, or de-seasonalized time-domain inputs alone. In particular, global summaries make the dominant periodic regime explicit, which is essential for reasoning about frequency components that persist across the sequence.

However, sequence-level frequency recovery alone is insufficient for anomaly localization. The same global evidence performs poorly on the local frequency-change probe because a full-sequence spectrum aggregates spectral content over time and therefore does not indicate where a frequency change occurs. Local frequency-domain evidence complements this limitation by exposing window-level changes in dominant frequency and spectral entropy, leading to the highest detection accuracy on the localized probe. Together, these results motivate a two-level evidence design: global summaries provide sequence-level periodic context, while local summaries expose time-localized spectral departures.

Figure 1 shows that this diagnostic pattern also appears in TSAD performance. Starting from the indexed de-seasonalized baseline, local frequency-domain evidence improves frequency-relevant anomaly types by exposing window-level spectral changes, while global evidence provides additional sequence-level context. This connection between the probes and TSAD results supports the use of both evidence levels in the final framework.

References (26)

  • Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilities
  • GPT-4o System Card
  • Yi-Xiang Lu, Xiao-Bo Jin, Jian Chen, Dong-Jie Liu, and Guang-Gang Geng. 2024. F-se-lstm: A time series anomaly detection method with frequency domain information. arXiv preprint arXiv:2412.02474. (opens arXiv in a new tab)
  • Jiaxin Zhuang, Leon Yan, Zhenwei Zhang, Ruiqi Wang, Jiawei Zhang, and Yuantao Gu. 2024. See it, think it, sorted: Large multimodal models are few-shot time series anomaly analyzers. arXiv preprint arXiv:2411.02465. (opens arXiv in a new tab)
  • Classic paradigms include statistical decomposition like STL (Cleveland et al., 1990), decomposable forecasting models such as Prophet (Taylor and Letham, 2018), and bio-inspired online learning like HTM (Hawkins et al., 2010)
  • Since LLMs are primarily trained on discrete semantic tokens, naively serialized time-series inputs may not preserve fine-grained local variations, periodic structures, or subtle frequency changes in a form that the model can reliably interpret (Zhou and Yu, 2025; Zheng et al., 2025)
  • The hardware specifications are as follows:
  • The inference pipeline accesses these endpoints through OpenRouter
  • We access API-based and open-source LLMs only through their documented inference interfaces
  • The data used in our experiments consist of numerical time-series values and anomaly interval annotations rather than natural-language user content
  • We also evaluate on the eight-category TSB-AD-U subset used by LLM-TSAD, consisting of NEK, TAO, MSL, Power, Daphnet, YAHOO, SED, and TODS. Since our method is evaluated in a zero-shot setting, no train/dev split is used for model training or prompt tuning
  • Window [864-927]: dominant_freq=0.0312, spectral_entropy=0.0958 Window [896-959]: dominant_freq=0.0312, spectral_entropy=0.0913 </local_frequency_analysis>
  • <history> (0, 7.13) (1, 7.52)
  • The index of the time series starts from 0 to 999
  • The model outputs the dominant period
  • Amplitude and noise ranges follow the single-sinusoid probe
  • We sample the sequence length from $\{256,512\}$ and the background period from $\{16,24,32\}$
  • The oracle period serves only to define a strong diagnostic de-seasonalized representation
  • Since the input sequences in the TSB-AD-U subset are approximately twice as long as those in AnomLLM under our evaluation setting, we double the window length to keep the relative temporal scale of local windowed frequency-domain summaries comparable across benchmarks
  • Thresholds are fixed a priori
  • These controls do not establish that an LLM is necessary for every frequency anomaly
  • The descriptors show different metric profiles
  • Table 12 shows gains of +6.91 F1 for frequency anomalies, +5.79 for point anomalies, and +15.16 for trend anomalies, with a -1.64 change for range anomalies
  • Each configuration contains the same 1,000-point indexed history; LF and GF add the structured frequency-evidence text
  • Because the baseline already contains the same 1,000-point indexed history, LF+GF increases the average text length from 8,137 to 8,970 tokens, corresponding to +834 tokens or +10.2%
  • Decoding uses temperature 0, a maximum of 512 output tokens, and request seed 0