Manuscript Offprint
arXiv:2611.07720Evaluating Language Model Features for Zero-Shot Time-Series Anomaly Detection Under Isolation Assumption
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Time-Series Anomaly Detection (TSAD) is a fundamentally challenging task: it is unsupervised, requires high local precision capabilities, and suffers from limited labelled data. Recent work has explored adapting Large Language Models (LLMs) to time-series via cross-modal transfer. However, existing approaches are poorly suited to Multivariate TSAD (MTSAD), as tokenisation often obscures fine-grained temporal and variables structures, and most methods optimise auxiliary objectives such as forecasting or reconstruction. We posit that these surrogate objectives become unreliable as model capacity increases. Highly expressive models risk reconstructing or forecasting anomalies, undermining the foundations of both strategies. Instead, we propose to use LLMs purely as feature extractors and directly analyse their induced feature spaces. In this work, investigate the ability of LLMs to provide useful representations for MTSADs in a zero-shot setting through classification. To this end, we study the separability of the extracted features, under the assumption that anomalous features should be isolated from normal ones. We analyse their temporal and contextual discriminative ability using simple step-wise tokenisation schemes, with one time-step per token, which preserve fine-grained local information. Their usability for MTSAD is assessed using an unsupervised Isolation Forest, enabling a direct evaluation of the resulting representation quality. We further investigate whether the observed performance can be attributed to the language-related pre-training of the LLMs or arises independently of it. Our results provide empirical insight into the ability of LLMs to represent multivariate time-series for anomaly detection and highlight broader applications of cross-modal foundation models.
1 Introduction
Time-series analysis is inherently challenging due to the high heterogeneity and domain dependence of available datasets, compounded by their limited sizes. These constraints hinder the development of general-purpose Time-Series Foundation Models (TSFMs) capable of addressing core tasks such as classification, forecasting, and anomaly detection.
Recent work has explored the use of Large Language Models (LLMs) for time-series processing (Zhang et al., 2024; Jiang et al., 2024). Trained on large-scale textual corpora, LLMs possess strong sequential modelling capabilities and have demonstrated notable cross-modal adaptability (Lu et al., 2022). Leveraging pre-trained LLMs as processors for time-series data is therefore an appealing direction, benefiting from the maturity and scale of language modelling research.
The code will be made publicly available.
A central challenge lies in the mismatch between time-series data and textual representations. Unlike natural language, time-series consist of continuous numerical values with precise temporal and inter-variable relationships. Prior work has identified several directions to address this mismatch, including learned projections, model adaptation, and specialised tokenisers (Spathis & Kawsar, 2024); however, only a few strategies allow the use of LLMs for time-series analysis in a zero-shot manner. The popular direct tokenisation of Gruver et al. (2023) converts numbers to text characters but compromises numerical precision and can fragment values across multiple tokens, disrupting temporal dependencies. These issues are exacerbated in multivariate settings, where serialisation destroys the multivariate structure, hinders dependencies between variables, and drastically inflates token count (Chatzigeorgakidis et al., 2024).
A deeper issue lies in how existing approaches prioritise general representation learning, overlooking the specific demands of Time-Series Anomaly Detection (TSAD). In particular, TSAD poses additional difficulties, as it requires high local sensitivity and is typically formulated in an unsupervised setting due to the absence of anomalies in the training data (Darban et al., 2025; Mejri et al., 2024). Common processing strategies, particularly tokenisation schemes such as patching or quantisation, can obscure fine-grained temporal patterns and attenuate anomalies. Furthermore, most methods rely on auxiliary objectives, notably forecasting or reconstruction; while effective for broad evaluation, these objectives are not aligned with anomaly detection: sufficiently expressive models risk reconstructing or forecasting anomalous patterns as faithfully as normal data, thereby suppressing residual scores and leaving anomalies undetected by design (Gong et al., 2019; Yoon et al., 2026). Consequently, higher model capacity and reconstruction fidelity do not guarantee superior anomaly detection; on the contrary, excessive reconstruction capability can actively degrade performance by absorbing anomalous signals.
To circumvent these limitations, we consider anomaly detection through the lens of One-Class Classification (OCC) (Schölkopf et al., 2001), where normal patterns define the data distribution and anomalies correspond to deviations from it. This perspective naturally favours approaches that operate directly on feature representations to estimate abnormality (Hermary et al., 2026). In this context, we investigate features extracted from pre-trained foundation models such as LLMs: as these models continue to scale, assessing their ability to transfer to new modalities in a zero-shot setting becomes increasingly relevant.
In this direction, we propose to evaluate the extent to which LLM-induced representations isolate anomalous from normal patterns. We therefore investigate simple, zero-shot-compatible tokenisation strategies, with an emphasis on step-wise tokenisation where each time-step is mapped to a single token. This design limits the effect of local information erasure, making it particularly suitable for detecting point anomalies while not compromising the detection of other anomaly types, and allowing for a focus on the temporal processing of LLMs.
Our contributions are summarised as follows:
- We discuss the limitations of current foundation model approaches applied to Multivariate Time-Series Anomaly Detection (MTSAD) and propose investigating language model features as an alternative approach, treating anomaly detection as a central objective.
- We propose a unified evaluation protocol designed for imbalanced, unsupervised anomaly detection settings, based on an isolation prior for anomalies.
- We provide an extensive empirical study across multiple LLM architectures, tokenisation methods, datasets and context sizes, offering insight into the zero-shot applicability of LLMs for MTSAD. We further investigate whether language knowledge is leveraged through trivial tokenisation strategies.

Figure 1: We adopt a windowed approach, assigning one anomaly score per window. Each window is tokenised step-wise (one token per time-step), processed by a pre-trained LLM, and aggregated into a fixed-size feature vector. An Isolation Forest is then fitted on these features to produce anomaly scores. The resulting performance reflects the suitability of the feature space for anomaly detection and, consequently, the representations transferability to MTSAD. The Raw path corresponds to applying the Isolation Forest directly on the dataset; the Control one on the tokenised dataset.
for fine-tuning on anomaly detection datasets or direct zero-shot application to novel tasks. However, many current TSFMs remain constrained by a focus on proxy objectives, such as reconstruction or forecasting which are typically limited approaches in anomaly detection (Hermary et al., 2025).
Parallel to this, the sequential nature of time-series data has led to the adoption of LLMs as powerful backbones for temporal analysis (Zhang et al., 2024). This direction is driven by the inherent multi-modal capabilities of LLMs and their proficiency in processing sequential dependencies (Jiang et al., 2024). Most research in this area focuses on forecasting-based objectives or fine-tuning strategies designed to bridge the modality gap (Bian et al., 2024; Hu et al., 2025; Sun et al., 2024; Masserano et al., 2025).
In the sub-field of time-series anomaly detection, LLMs are increasingly utilised to provide detection capabilities, but also natural language explainability. Architectures like TriP-LLM (Yu et al., 2025) and MADLLM (Tao et al., 2025) train specialised adapters to bridge the modality and domain gaps, while AnomalyLLM (Liu et al., 2024) explores knowledge distillation from LLMs.
Despite these advancements, the direct zero-shot application of LLMs for TSAD remains an emergent field, characterised by a wide array of diverse strategies. While some approaches rely on powerful closed-source models and elaborate prompting (Xu et al., 2026; Dong et al., 2024; Liu et al., 2026), others, like LLMAD (Liu et al., 2025), integrate domain knowledge and databases, converting time-series into tabular or text formats for few-shot explanations. Additional attempts have been made to obtain anomaly positions directly from the LLM via prompting (Russell-Gilbert et al., 2024). However, SigLLM (Alnegheimish et al., 2024) demonstrates that using LLMs in a forecasting-based strategy yields far better results than direct questioning.
Alternatively, research in image-based modalities leverages the maturity of Vision-Language Models (VLMs) by transforming time-series into plots or frequency maps (He et al., 2026; Zhuang et al., 2024). While these visual foundations offer an alternative for cross-modal analysis, this work focuses on the efficiency and granularity of direct time-series-to-token conversions for multivariate time-series, in zero-shot setting.
3 Methodology
We formalise the TSAD problem in Section 3.1 We then detail the tokenisation methods in Section 3.2 and the quantification of transferability in Section 3.3, as illustrated in Figure 1. Finally, we describe standard adaptations of TSFMs for anomaly detection, used as baselines, in Section 3.4.
3.1 Problem Formulation
Let be a multivariate time-series of length with variables, with corresponding labels , indicating normal and anomalous measurements. The goal of TSAD is to find a function that assigns an anomaly score to each measurement. Since anomalies are context-dependent, operates on a observation window of the past measurements, i.e., , where . We thus process the time-series as a set of overlapping windows , with . A decision threshold is applied to to obtain predicted labels , which we compare to during testing to assess model performance.
3.2 Step-Wise Tokenisation Methods
In an attempt to quantify the zero-shot transferability of sequential knowledge in LLMs to MTSAD, we explore simple, least-disruptive methods of encoding time-series for LLM input. Two main challenges arise: (i) a mismatch between the dimensionality of multivariate time-series and the LLM embedding, and (ii) a more fundamental modality gap between continuous signals and discrete text.
Since subtle local deviations can be important in MTSAD, we prioritise encodings that preserve full temporal detail. We therefore consider step-wise tokenisation functions that map each time-step to a token of dimension (LLM embedding size). We evaluate three alignment strategies.
First, following Zhou et al. (2023), we employ Padding, which zero-pads each time-step vector . Second, we utilise Interpolation, which rescales the input by in-filling synthetic dimensions between the original features. These approaches are inherently non-disruptive since .
Finally, to weigh the modality gap against potential information loss, Closest Vocabulary quantises each time-step by mapping interpolated features to their nearest token embeddings via cosine similarity. Unlike learned mappings (Sun et al., 2024), this approach is non-parametric but destructive, as it discretises continuous values into a fixed vocabulary.
3.3 Quantifying Anomaly Separability
We use pre-trained LLMs as feature extractors and assess their zero-shot applicability to MTSAD by quantifying the isolation of anomalous representations. The obtained token sequence from a window is passed through the LLM; the processed sequence is finally flattened to obtain the feature vector . After obtaining the set of all window features, we assess the separability of features from normal and anomalous windows.
As no prior knowledge about the nature or structure of anomalies is assumed, we adopt a generic outlier-based perspective: anomalies are treated as observations that deviate from the distribution of normal data. Under this assumption, we use the Isolation Forest (Liu et al., 2008) algorithm to evaluate the suitability of the induced feature space for anomaly detection.
Isolation Forest is an unsupervised method that isolates samples by partitioning the feature space. Let denote an Isolation Forest composed of binary trees, each of depth . Each tree is constructed by recursively partitioning the feature space using random splits () along randomly selected dimensions. For the feature vector , whose dimensionality is reduced in practice with Principal Component Analysis, its path length in tree is defined as the number of edges from the root to the terminal node containing . Its expected path length over the forest, , is used to define the anomaly score as:
(1) where is a normalisation constant based on the tree depth.
In this formulation, smaller values of (i.e., shorter paths) correspond to higher anomaly scores, which stems from the core idea of Isolation Forest that anomalous points are rare and structurally distinct, and are therefore isolated more quickly through fewer random splits.
Due to its low parameterisation and computational efficiency, Isolation Forest is particularly well suited for evaluating fixed feature representations without any additional training or optimisation.
3.4 Forecasting & Reconstruction Baselines
We identify two main categories of TSFM usage. The first corresponds to task-specific foundation architectures, designed to address time-series challenges such as forecasting, classification, or anomaly detection. These models are typically developed, trained, and evaluated for a specific task and dataset. The second category consists of pre-trained models, trained on large-scale, generic objectives and subsequently transferred to new datasets and tasks.
For TSAD, both approaches generally rely on proxy objectives, most commonly reconstruction or forecasting. In the reconstruction setting, the anomaly score is derived from the Mean Square Error (MSE) between the input window and its reconstruction :
In the forecasting setting, models are given a window and predict the next time-steps for each of the variables. These models typically output a predictive distribution in the form of quantile forecasts (, and ) To exploit this distributional output, the PinBall loss (), a native scoring rule for quantile regression, is usually employed:
Intuitively, observation windows are considered anomalous if they lie in the tails of the predicted distribution, i.e., if they are unlikely under the model's forecast. The anomaly score is calculated by aggregating the deviations across forecast steps and quantiles, resulting in a scalar value that increases with the level of surprise:
4 Experiments
Protocol. Evaluating models based solely on the label of the last time-step of each window can be overly restrictive. As the window size increases, anomalies may occur earlier within the window, making this formulation unnecessarily difficult for this study. To relax this constraint, we define the window label as , i.e., a window is labelled anomalous if any of its time steps is anomalous. This choice is a standard procedure in TSAD (Zhou et al., 2024) and only slightly alters the proportion of anomalous samples as a function of . To ensure consistent sample counts across experiments, we adopt a fixed striding strategy (set to the largest window size, 128), which has the additional effect of making each
Table 1: Trained and pre-trained TSFM baselines results with reconstruction (MSE) and forecasting () proxy objectives. AnomalyTransformer is included as a baseline for comparison. Among the remaining results, the best and second-best are shown in bold and underlined, respectively.
| Model | PSM | PUMP | SWaT | WaDi | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AUPR | AUROC | F₁ | AUPR | AUROC | F₁ | AUPR | AUROC | F₁ | AUPR | AUROC | F₁ | ||
| TrainedMSE | AnomalyTransformer | 68.12±00.40 | 78.97±00.64 | 64.00±00.85 | 22.00±00.07 | 79.56±00.06 | 49.09±00.75 | 69.97±01.27 | 80.88±00.10 | 71.69±02.15 | 29.27±00.01 | 53.03±00.10 | 14.99±00.14 |
| GPT4TS | 52.76±00.11 | 62.05±00.07 | 48.65±00.23 | 07.35±00.00 | 21.02±00.03 | 18.66±00.05 | 10.92±00.02 | 22.12±00.02 | 10.33±00.13 | 41.37±00.00 | 55.82±00.01 | 14.07±00.01 | |
| TimesNet | 51.83±00.10 | 61.55±00.06 | 47.72±00.26 | 07.38±00.01 | 21.15±00.06 | 18.83±00.17 | 10.72±00.02 | 21.83±00.07 | 09.39±01.46 | 41.38±00.01 | 55.95±00.07 | 14.05±00.01 | |
| Pre-Trained | Chronos (F = 16) | 44.17 | 57.55 | 44.58 | 09.04 | 27.75 | 12.90 | 09.63 | 26.94 | 02.04 | 06.68 | 48.62 | 13.14 |
| Chronos (F = 32) | 43.84 | 59.86 | 53.37 | 09.51 | 27.84 | 16.88 | 09.44 | 26.96 | 05.49 | 06.92 | 50.40 | 12.88 | |
| Chronos (F = 64) | 44.29 | 59.16 | 53.10 | 10.07 | 31.99 | 20.08 | 10.10 | 27.29 | 03.26 | 07.60 | 53.61 | 13.55 | |
| Chronos (F = 128) | 46.72 | 60.65 | 52.13 | 10.26 | 36.74 | 21.75 | 10.49 | 27.54 | 06.90 | 09.38 | 56.06 | 15.58 | |
| MOMENT (Small) | 53.36 | 65.11 | 47.71 | 12.50 | 43.85 | 20.43 | 09.44 | 25.32 | 02.32 | 11.31 | 49.01 | 12.78 | |
| MOMENT (Base) | 53.61 | 65.31 | 48.39 | 12.44 | 43.57 | 20.80 | 09.39 | 25.25 | 02.39 | 11.11 | 49.21 | 12.39 | |
| MOMENT (Large) | 52.98 | 65.01 | 48.96 | 12.23 | 46.03 | 20.57 | 08.99 | 25.31 | 02.10 | 08.10 | 48.66 | 12.16 | |
†AnomalyTransformer has a scoring tailored for AD which comes only partially from the reconstruction error.
time-step contribute to at most one window. Adjusted statistics are provided in the supplementary material, but we observed that varying these settings has limited impact on the results (complementary experiments with a unit stride are provided in supplementary).
Evaluation is performed exclusively on the test set, as the training data contains no anomalies, but no label is required by the Isolation Forest. To account for stochasticity in Principal Component Analysis (PCA) and Isolation Forest algorithms, all results are averaged over five random seeds for the pre-trained and random experiments. Results of AnomalyTransformer, TimesNet, and GPT4TS baselines are also averaged across five seeds.
Datasets. We experimented with four common multi-variate time-series anomaly detection datasets. Specifically, they are: Pooled Server Metrics (PSM) (Abdulaal et al., 2021); PUMP Fillage (PUMP) (Feng & Tian, 2021); Secure Water Treatment (SWaT) (Mathur & Tippenhauer, 2016); Water Distribution (WaDi) (Ahmed et al., 2017). Although these datasets primarily cover the industrial domain, they represent core MTSAD benchmarks and encompass diverse types of anomalies. Nevertheless, given the limitations and heterogeneity of MTSAD data (Wu & Keogh, 2023), we acknowledge that evaluating additional datasets would provide a more comprehensive assessment of the applicability of LLM-derived representations to MTSAD, and defer this to future work. The statistics of the datasets can be found in the supplementary material.
Metrics. To evaluate the anomaly detection performance and thus the models transferability to MTSAD, we consider three main metrics: the Area Under the Receiver Operating Characteristic Curve (AUROC), the Area Under the Area Under the Precision–Recall Curve (AUPR) and the F₁-score (F₁) with a threshold set by Youden's Index. We report F₁ as an indication of in-situ performance, while acknowledging that selecting the threshold based on evaluation across the full test set introduces label dependence. Youden's Index nevertheless provides a consistent, balanced criterion for inter-model comparison, avoiding F₁-maximising threshold sweeps or anomaly-ratio-based thresholding, both of which are common in TSAD studies (Wu et al., 2023).
Model Architectures. We chose to use four open source LLM architectures with available weights in our pipeline: GPT2 (Radford et al., 2019), Qwen2 (0.5B) (Yang et al., 2024), Phi-3 (Microsoft, 2024) and Mistral-7B (Jiang et al., 2023). In Section 4.4, we study two additional Qwen versions: Qwen2 (7B) (Yang et al., 2024) and Qwen2-VL (7B) (Wang et al., 2024). These architectures were selected for their diverse origins, likely distinct pre-training corpora, ease of integration into our current systems, and comparable release timelines.
We complement our study with four TSFM baselines outside of our pipeline: TimesNet (Wu et al., 2023), GPT4TS (Zhou et al., 2023), Chronos-2 (Ansari et al., 2025) and MOMENT (Goswami et al., 2024). TimesNet and GPT4TS are reconstruction-based methods, the latter being LLM-based, that are specifically trained on each dataset (Section 4.1). On the other hand, Chronos-2 is already pre-trained on a forecasting task and can be used in a zero-shot setting with a forecasting strategy (Section 4.1), or as a feature extractor (Sec-
Table 2: Results of the studied LLMs under the proposed framework. For conciseness, only results for the best-performing window size are reported. For each metric, average over window-sizes and overall average across window sizes and datasets are also reported for both pre-trained and randomised models.
| Model | PSM | PUMP | SWaT | WaDi | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AUPR | AUROC | F₁ | AUPR | AUROC | F₁ | AUPR | AUROC | F₁ | AUPR | AUROC | F₁ | ||
| GPT | L = 32 | 32.92±0.41 | 54.08±0.94 | 35.81±4.44 | 17.14±1.08 | 67.92±1.27 | 32.98±2.14 | 53.10±6.01 | 67.71±0.76 | 55.55±7.40 | 15.22±6.46 | 43.17±2.77 | 12.53±0.16 |
| E_L | 33.70 | 54.86 | 37.13 | 16.44 | 66.86 | 31.78 | 44.74 | 65.79 | 49.47 | 12.83 | 41.44 | 12.14 | |
| *36.13 | *56.84 | *39.24 | *18.72 | *73.40 | *38.44 | *46.66 | *67.07 | *48.91 | *16.74 | *43.23 | *12.37 | ||
| E_L,X | - | - | - | - | - | 26.93 | 57.24 | 32.63 | *29.56 | *60.13 | *34.74 | ||
| Mistral | L = 4 | 32.88±0.89 | 56.78±0.92 | 37.38±5.91 | 18.47±0.78 | 74.92±1.36 | 38.51±0.99 | 26.36±10.52 | 64.59±3.06 | 36.03±4.84 | 21.40±3.10 | 45.40±1.33 | 11.96±0.32 |
| E_L | 34.99 | 54.54 | 35.31 | 19.18 | 74.43 | 39.62 | 27.49 | 63.41 | 35.23 | 21.08 | 45.34 | 12.44 | |
| *36.03 | *55.46 | *39.79 | *17.60 | *72.22 | *36.93 | *48.66 | *68.00 | *49.25 | *23.30 | *44.86 | *11.99 | ||
| E_L,X | - | - | - | - | - | 25.68 | 59.43 | 30.65 | *31.40 | *60.14 | *34.49 | ||
| Phi | L = 16 | 29.44±0.54 | 53.60±0.42 | 43.36±2.19 | 16.03±1.17 | 68.41±2.31 | 32.96±2.44 | 47.78±12.76 | 67.37±1.41 | 50.06±10.85 | 16.31±5.60 | 41.39±1.81 | 11.46±0.27 |
| E_L | 30.14 | 51.89 | 43.71 | 15.73 | 66.86 | 31.82 | 42.35 | 65.64 | 46.62 | 15.90 | 41.24 | 11.88 | |
| *35.48 | *55.03 | *39.61 | *17.28 | *71.46 | *36.70 | *46.88 | *67.57 | *46.85 | *23.95 | *44.66 | *11.87 | ||
| E_L,X | - | - | - | - | - | 26.03 | 56.41 | 33.51 | *30.90 | *59.68 | *33.76 | ||
| Qwen | L = 8 | 50.72±0.64 | 67.80±0.58 | 49.21±1.19 | 17.94±0.43 | 73.91±0.53 | 36.15±0.74 | 30.71±12.67 | 65.32±3.50 | 39.47±8.41 | 13.93±4.75 | 43.09±2.27 | 11.74±0.15 |
| E_L | 50.58 | 65.51 | 48.78 | 17.70 | 72.22 | 36.77 | 27.06 | 63.91 | 37.22 | 18.33 | 44.18 | 12.31 | |
| *38.25 | *56.25 | *35.36 | *18.32 | *73.36 | *38.24 | *38.69 | *65.82 | *39.92 | *20.62 | *44.58 | *12.24 | ||
| E_L,X | - | - | - | - | - | 28.42 | 61.46 | 33.77 | *28.97 | *60.00 | *31.44 | ||
*Results of the randomised models. E_L: Metric average across window sizes. E_L,X: Metric average across window sizes and datasets.
tion 4.3). Similarly, MOMENT is pre-trained on a reconstruction objective and can be used in a zero-shot setting with a reconstruction error scoring strategy (Section 4.1). Additionally, we trained AnomalyTransformer (Xu et al., 2022) to provide ground results from a method that is entirely designed and optimised to detect anomalies in time-series.
Model version identifiers are omitted hereafter for conciseness; for all figures, and positive results imply better average performance than the baseline.
4.1 Performance of TSFMs
We report results for standard TSFM approaches applied to MTSAD in Table 1. TimesNet and GPT4TS are trained in an unsupervised manner using a reconstruction objective, with anomaly scores derived from the reconstruction error (MSE). In contrast, Chronos is used as a pre-trained model, and anomaly scores are computed from the forecasting error using the Pinball loss (). Results are reported for forecasting horizons of 16, 32, 64, and 128.
TimesNet and GPT4TS yield nearly identical performance, consistent with recent TSAD benchmarks (Qiu et al., 2025), and perform similarly to other baselines across most datasets. Chronos and MOMENT largely surpass TimesNet and GPT4TS on PUMP, and achieve the majority of the top AUPR and AUROC results on other datasets. However, AUROC scores stay close to or below 50% across most setting, and noticeably behind AnomalyTransformer on three out of the four studied datasets. These results suggest that standard forecasting and reconstruction objectives in TSFMs, trained or zero-shot, are suboptimal for robust anomaly detection, creating an opportunity to investigate alternative strategies including LLM-driven approaches.
Evaluating MOMENT across its Small, Base, and Large variants (roughly scaled by a factor of three in parameter count) reveals marginal but overall slightly declining performance differences. This suggests that increased model capacity does not necessarily improve performance in TSAD, aligning with our concern that higher reconstruction capability may even degrade detection quality.

Figure 2: Comparison of 3 step-wise tokenisation methods. We expose the AUROC result differences between the Control path and after the LLMs (dotted bars). For plain bars, results with Padding serve as a baseline and study the differences between those and the ones achieved with Closest Vocabulary and Interpolation. Padding average scores are indicated on the slices sides.

Figure 3: AUROC results of the studied LLMs on different datasets, with Interpolation. We show the results difference with the baseline (i.e., Raw path) and the results achieved by each LLM, i.e., . The average baseline results are indicated on the slices sides and are expected results on the 0 ring.
4.2 Tokenisation Strategies
We explore three tokenisation strategies: Padding, Interpolation, and Closest Vocabulary. For each method, results are averaged across models and datasets, and reported relative to a baseline (Figure 2).
We first compare the performance of an Isolation Forest applied directly to the tokens (Control as a baseline) with the performance obtained after LLM processing (dotted bars). For Padding and Interpolation, LLM processing yields substantial improvements, with gains of up to AUROC points for Mistral and Qwen. In contrast, no improvement is observed for Closest Vocabulary, where performance even slightly degrades. This suggests that the benefit of LLMs emerges most when tokenisation preserves sufficient information, allowing them to meaningfully enrich the input representations.
To compare tokenisation strategies directly, we then take Padding as a baseline and report relative differences (after LLM processing). Closest Vocabulary consistently underperforms, with drops of up to 10 AUROC points for Mistral. Interpolation achieves the best results overall, although the gains remain modest for GPT, Mistral, and Qwen (up to points) and are more pronounced for Phi (up to points).
Overall, these results indicate that tokenisation has a significant impact on performance, with even simple design choices leading to substantial variations.
4.3 Zero-Shot LLM Features Evaluation
AUROC results are summarised in Figure 3. To analyse them, we focus on score differences relative to a baseline obtained by applying Isolation Forest directly on the raw datasets (Raw path in Figure 1). Results are aggregated as in previous sections. A brief view of quantitative results can be found in Table 2, and complete detailed results are provided in the supplementary.
We additionally include Chronos as a TSFM baseline. Unlike the previous setup in Section 4.1, we use it here as a feature extractor rather than relying on forecasting error: the pre-trained model processes raw time-series directly, and Isolation Forest is applied on the resulting embeddings. As it operates natively on continuous inputs, no tokenisation is required.
Across datasets, Chronos features consistently yields the lowest performance compared to LLM-based approaches, and even falls below the Raw baseline on PUMP. However, its feature-based formulation still improves substantially over its forecasting-based use on SWaT, with gains exceeding 40 AUROC points on average, and achieving similar results on PUMP at .
Overall, all LLM-based methods improve over the Raw baseline with consistent gains across window sizes and datasets, showcasing the benefits of LLM processing. Phi approaches the performance of the trained GPT4TS baseline, while GPT, Qwen, and Mistral surpass MOMENT on PSM, PUMP and SWaT.
AUPR and exhibit strongly correlated patterns; visualisations for these metrics, as well as detailed results per window size, dataset, and tokenisation are provided in the supplementary material. While directly comparing TSFM baseline scores with Isolation Forest scores obtained from LLM features is not strictly fair, since the latter uses all the test data to construct the forest, the competitive performance of the LLM-based approach demonstrates the viability of these features for anomaly detection. More broadly, these results support using LLMs as zero-shot feature extractors, providing an alternative to adapting standard TSFM architectures for anomaly detection through proxy objectives such as forecasting error, while allowing the resulting feature space to be exploited by other fully unsupervised anomaly detection algorithms.
4.4 Impact of Scale and Multi-Modality-Awareness
We assess whether multi-modal pre-training improves transferability to time-series data by comparing Qwen-VL (7B) with its text-only counterpart Qwen (7B), alongside the smaller baseline Qwen (0.5B).
Results in Figure 4 show that, for Padding and Interpolation tokenisations, the smaller Qwen (0.5B) consistently outperforms both larger models by 7 to 8 AUROC points. This suggests that neither increased scale nor multi-modal pre-training provides benefits in this zero-shot setting under these tokenisation schemes. In contrast, larger models perform better with Closest Vocabulary tokenisation despite similar vocabulary sizes (), likely due to their higher embedding dimensionality () which increases vocabulary capacity and may reduce information loss during discretisation.
However, the performance of Qwen (0.5B) remains consistently superior to both larger versions across all metrics with the two other tokenisation methods, achieving its best average scores and greater gaps with Interpolation. Overall, these results indicate that tokenisation has a stronger effect on performance than either model scale or multi-modal pre-training in this setting.
4.5 Inductive Bias and Knowledge Transfer
In the previous sections, we showed that features extracted from LLMs consistently improve anomaly detection performance. However, it remains unclear whether these gains arise from (i) the attention-based architectures themselves, whose inductive bias may naturally produce representations that isolate anomalous time-series, or (ii) knowledge transferred from language pre-training.
To investigate this, Figure 5 compares the average AUPR of each model, randomly initialised over five different seeds, with results on Control tokens (dotted bars) and the corresponding pre-trained models (solid bars) with the Interpolation tokenisation. The Isolation Forest is always used with the same random state across all features. Average quantitative results are reported in Table 2 (see *scores), and full results, including with the other two tokenisation strategies are provided in the supplementary.
Randomly initialised models consistently outperform Control tokens classification (positive dotted bars), achieving gains of up to 29 points for Mistral on SWaT. Surprisingly, pre-training does not consistently improve performance (negative plain bars). Frequently even, pre-trained models perform worse than their randomly initialised counterparts. Only Qwen improves on three of the four datasets, while the other models

Figure 4: Results achieved by Qwen (0.5B), Qwen (7B) and Qwen-VL (7B), on the 3 tokenisation methods studied. Qwen (0.5B) results, with the respective tokenisation method, serve as a baseline and are shown on the left-hand side of the plot. Qwen (0.5B) baseline scores are indicated below the metrics on the left half.

Figure 5: Comparison of AUPR obtained by applying Isolation Forest to features from randomly initialised models (Random Weights) against two baselines: features from pre-trained models (Pre-Trained Weights, solid bars) and without feature extraction (Control Tokens, dotted bars). Average scores with pre-trained features are shown on the slices sides. Radial scale is gamma corrected ().
improve on at most one, supporting Qwen's overall superiority (Figure 3). Despite using random weights, the deterministic sequence of operations seems sufficient to increase feature dissociation.
To further isolate the impact of the architecture, we compared the results against those from a random linear projection and a randomly initialized 3-layer Multilayer Perceptron (MLP). Random LLMs significantly outperformed both baselines (Figure 6; full linear and MLP results are provided in the supplementary). Combined with the consistent performance observed across different LLM architectures, these findings suggest that this property is an intrinsic feature of Transformer-based Natural Language Processing (NLP) models rather than being tied to specific model designs.
These results suggest that pre-training alone is insufficient to guarantee effective zero-shot cross-modal feature extraction, and non-trivial tokenisation strategies or task-specific fine-tuning are required to exploit the knowledge encoded in LLMs. Overall, the architectures themselves seem to provide most of the zero-shot feature extraction capability, whereas effectively leveraging pre-trained knowledge, in a general setting, requires more appropriate tokenisation or task-specific fine-tuning. Similar patterns are observed with AUROC and metrics; figures are provided in the supplementary material.
4.6 Pairwise Statistical Analysis
To assess whether performance differences between the considered LLMs are statistically significant, we perform a two-sided paired Wilcoxon signed-rank test (Wilcoxon, 1945) on their AUROC scores. For each pair of LLMs, the test is performed over the six window sizes and four datasets, yielding 24 paired measurements per comparison. We report the Holm-adjusted -value () to account for multiple pairwise comparisons, together with the signed rank-biserial correlation as an effect-size measure. The indicates whether the paired performance differences provide evidence against the null hypothesis of a zero-centred difference, while quantifies the magnitude of the rank-based difference between the two LLMs.

Figure 6: Pairwise AUROC comparisons between models across datasets and window sizes, for Interpolation and Padding tokenisations. Lower Triangle: Effect size . A positive score implies the row model outperforms the column model; statistically significant tests () are underlined. Upper Triangle: Corresponding adjusted -value () of the paired test. *Denotes the randomised models.
This procedure is repeated independently for each adapter configuration. We discuss the results for Interpolation and Padding, shown in Figure 6; results for Closest Vocabulary are mostly statistically insignificant and are provided in the supplementary.
For Interpolation, we observe a significant improvement over the Raw tokens for all pre-trained LLMs. Qwen achieves significantly higher AUROC than all other LLMs, except Mistral, for which no significant difference is observed (). Chronos features consistently underperform the LLM-based representations. Randomised LLMs also exhibit consistently positive effects, significantly outperforming Raw, GPT, Phi, randomised MLP, and randomised Linear. The performance between the pre-trained rand randomised versions of Qwen and Mistral is, however, statistically inconclusive.
The Padding results exhibit a similar behaviour for the randomised models. However, the differences between pre-trained LLMs are substantially less pronounced, with fewer statistically significant comparisons. When comparing Padding and Interpolation relative to their respective Raw baselines, Phi is the only pre-trained LLM for which Padding leads to a lower performance than Interpolation.
Overall, the strong performance of the randomised models under both tokenisations complements the previous observations on the limited ability of simplistic tokenisation strategies to exploit LLM knowledge. Furthermore, the loss of statistical significance in the differences between pre-trained models when switching from Interpolation to Padding, not observed for randomised models, further suggests that bridging the cross-domain gap between time-series and NLP representations is non-trivial.
5 Conclusion
In this work, we investigated the use of LLM representations for time-series anomaly detection in a zero-shot setting. We proposed an evaluation pipeline to assess the suitability of LLM representations to MTSAD by framing anomaly detection as an unsupervised classification problem and quantifying the isolation of anomalous representations. Our study centres on evaluating time-series feature representation; we extract high-dimensional embeddings from pre-trained LLMs and evaluate different steps chosen to minimise the loss of local temporal information. By passing these tokenised sequences through the LLM, we generate feature representations that are then analysed via an Isolation Forest for anomaly detection. Ultimately, the resulting anomaly scores serve as a robust proxy for evaluating the quality of the alignment and the suitability of the representations for MTSAD.
Our results show that even in a zero-shot setting, several LLMs extract useful feature representations for anomaly detection. When combined with shallow unsupervised classifiers, these representations can outperform recent off-the-shelf time-series foundation models based on forecasting error. However, our analysis also indicates that simple tokenisation strategies are generally insufficient to effectively exploit the knowledge encoded in pre-trained LLMs for MTSAD. In fact, we established that in this setting randomly initialised LLMs often achieve significantly strong performance, suggesting that the architectural components of LLMs provide greater benefits than any knowledge acquired through language pre-training.
This study aims to support a research direction in MTSAD with foundation models. Framed around the specificities of TSAD, it highlights the potential of LLMs as feature extractors for time-series data. In particular, it provides clues that LLMs can serve as effective representation refiners in this setting. A promising line of research lies in improving tokenisation strategies to better bridge the domain gap and reduce reliance on fine-tuning, while preserving the local structure of the data that is crucial for anomaly detection.
Future work will extend this study to more language models and model versions, a broader range of datasets, and unsupervised classification methods in order to better account for the diversity of anomaly types and feature space geometries beyond the isolation assumption.
Acknowledgments
This research was funded by the Luxembourg National Research Fund (FNR), grant reference DEFENCE22/17813724/AUREA.
References
Ahmed Abdulaal, Zhuanghua Liu, and Tomer Lancewicki. Practical approach to asynchronous multivariate time series anomaly detection and localization. In KDD, pp. 2485–2494. ACM, 2021.
Chuadhry Mujeeb Ahmed, Venkata Reddy Palleti, and Aditya P. Mathur. WADI: a water distribution testbed for research in the design of secure cyber physical systems. In CySWATER@CPSWeek, pp. 25–28. ACM, 2017.
Sarah Alnegheimish, Linh Nguyen, Laure Berti-Équille, and Kalyan Veeramachaneni. Can large language models be anomaly detectors for time series? In DSAA, pp. 1–10. IEEE, 2024.
Abdul Fatir Ansari, Oleksandr Shchur, Jaris Küken, Andreas Auer, Boran Han, Pedro Mercado, Syama Sundar Rangapuram, Huibin Shen, Lorenzo Stella, Xiyuan Zhang, Mononito Goswami, Shubham Kapoor, Danielle C. Maddix, Pablo Guerron, Tony Hu, Junming Yin, Nick Erickson, Prateek Mutalik Desai, Hao Wang, Huzefa Rangwala, George Karypis, Yuyang Wang, and Michael Bohlke-Schneider. Chronos-2: From univariate to universal forecasting. CoRR, abs/2510.15821, 2025.
Yuxuan Bian, Xuan Ju, Jiangtong Li, Zhijian Xu, Dawei Cheng, and Qiang Xu. Multi-patch prediction: Adapting language models for time series representation learning. In ICML, Proceedings of Machine Learning Research, pp. 3889–3912. PMLR / OpenReview.net, 2024.
Georgios Chatzigeorgakidis, Konstantinos Lentzos, and Dimitrios Skoutas. Multicast: Zero-shot multivariate time series forecasting using llms. In ICDEW, pp. 119–127. IEEE, 2024.
Zahra Zamanzadeh Darban, Geoffrey I. Webb, Shirui Pan, Charu Aggarwal, and Mahsa Salehi. Deep learning for time series anomaly detection: A survey. ACM Comput. Surv., 57(1):15:1–15:42, 2025.
Manqing Dong, Hao Huang, and Longbing Cao. Can llms serve as time series anomaly detectors? CoRR, abs/2408.03475, 2024.
Cheng Feng and Pengwei Tian. Time series anomaly detection for cyber-physical systems via neural system identification and bayesian filtering. In KDD, pp. 2858–2867. ACM, 2021.
Shanghua Gao, Teddy Koker, Owen Queen, Tom Hartvigsen, Theodoros Tsiligkaridis, and Marinka Zitnik. Units: A unified multi-task time series model. In NeurIPS, 2024.
Dong Gong, Lingqiao Liu, Vuong Le, Budhaditya Saha, Moussa Reda Mansour, Svetha Venkatesh, and Anton van den Hengel. Memorizing normality to detect anomaly: Memory-augmented deep autoencoder for unsupervised anomaly detection. In ICCV, pp. 1705–1714. IEEE, 2019.
Mononito Goswami, Konrad Szafer, Arjun Choudhry, Yifu Cai, Shuo Li, and Artur Dubrawski. MOMENT: A family of open time-series foundation models. In ICML, volume 235 of Proceedings of Machine Learning Research, pp. 16115–16152. PMLR / OpenReview.net, 2024.
Nate Gruver, Marc Finzi, Shikai Qiu, and Andrew Gordon Wilson. Large language models are zero-shot time series forecasters. In NeurIPS, 2023.
Zelin He, Sarah Alnegheimish, and Matthew Reimherr. Harnessing vision-language models for time series anomaly detection. In AAAI, pp. 21690–21698. AAAI Press, 2026.
Romain Hermary, Vincent Gaudillière, Abd El Rahman Shabayek, and Djamila Aouada. Removing geometric bias in one-class anomaly detection with adaptive feature perturbation. In WACV, pp. 6612–6622. IEEE, 2025.
Romain Hermary, Samet Hicsonmez, Dan Pineau, Abd El Rahman Shabayek, and Djamila Aouada. Aster: Latent pseudo-anomaly generation for unsupervised time-series anomaly detection. In International Conference on Pattern Recognition, 2026.
Yuxiao Hu, Qian Li, Dongxiao Zhang, Jinyue Yan, and Yuntian Chen. Context-alignment: Activating and enhancing llms capabilities in time series. In ICLR. OpenReview.net, 2025.
Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de Las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. Mistral 7b. CoRR, abs/2310.06825, 2023.
Yushan Jiang, Zijie Pan, Xikun Zhang, Sahil Garg, Anderson Schneider, Yuriy Nevmyvaka, and Dongjin Song. Empowering time series analysis with large language models: A survey. In IJCAI, pp. 8095–8103. ijcai.org, 2024.
Yuxuan Liang, Haomin Wen, Yuqi Nie, Yushan Jiang, Ming Jin, Dongjin Song, Shirui Pan, and Qingsong Wen. Foundation models for time series analysis: A tutorial and survey. In KDD, pp. 6555–6565. ACM, 2024.
Chen Liu, Shibo He, Qihang Zhou, Shizhong Li, and Wenchao Meng. Large language model guided knowledge distillation for time series anomaly detection. In IJCAI, pp. 2162–2170. ijcai.org, 2024.
Fei Tony Liu, Kai Ming Ting, and Zhi-Hua Zhou. Isolation forest. In ICDM, pp. 413–422. IEEE Computer Society, 2008.
Jun Liu, Chaoyun Zhang, Jiaxu Qian, Minghua Ma, Si Qin, Chetan Bansal, Qingwei Lin, Saravan Rajmohan, and Dongmei Zhang. Large language models can deliver accurate and interpretable time series anomaly detection. In KDD (2), pp. 4623–4634. ACM, 2025.
Xingyue Liu, Feizhong Zhou, Hanguang Xiao, Zhipeng Li, Shuai Liu, and Lingling Qian. A survey on large language models for medical time series. Expert Syst. Appl., 311:131364, 2026.
Kevin Lu, Aditya Grover, Pieter Abbeel, and Igor Mordatch. Frozen pretrained transformers as universal computation engines. In AAAI, pp. 7628–7636. AAAI Press, 2022.
Luca Masserano, Abdul Fatir Ansari, Boran Han, Xiyuan Zhang, Christos Faloutsos, Michael W. Mahoney, Andrew Gordon Wilson, Youngsuk Park, Syama Sundar Rangapuram, Danielle C. Maddix, and Bernie Wang. Enhancing foundation models for time series forecasting via wavelet-based tokenization. In ICML, Proceedings of Machine Learning Research. PMLR / OpenReview.net, 2025.
Aditya P. Mathur and Nils Ole Tippenhauer. Swat: a water treatment testbed for research and training on ICS security. In CySWATER@CPSWeek, pp. 31–36. IEEE Computer Society, 2016.
Nesryne Mejri, Laura Lopez-Fuentes, Kankana Roy, Pavel Chernakov, Enjie Ghorbel, and Djamila Aouada. Unsupervised anomaly detection in time-series: An extensive evaluation and analysis of state-of-the-art methods. Expert Syst. Appl., 256:124922, 2024.
Marcel Meyer, David Zapata Gonzalez, Sascha Kaltenpoth, and Oliver Müller. Benchmarking time series foundation models for short-term household electricity load forecasting. IEEE Access, 13:218141–218153, 2025.
Microsoft. Phi-3 technical report: A highly capable language model locally on your phone. CoRR, abs/2404.14219, 2024.
Xiangfei Qiu, Zhe Li, Wanghui Qiu, Shiyan Hu, Lekui Zhou, Xingjian Wu, Zhengyu Li, Chenjuan Guo, Aoying Zhou, Zhenli Sheng, Jilin Hu, Christian S. Jensen, and Bin Yang. TAB: unified benchmarking of time series anomaly detection methods. Proc. VLDB Endow., 18(9):2775–2789, 2025.
Alec Radford, Jeffrey Wu, et al. Language models are unsupervised multitask learners. Technical report, 2019.
Alicia Russell-Gilbert, Alexander Sommers, Andrew Thompson, Logan Cummins, Sudip Mittal, Shahram Rahimi, Maria Seale, Joseph Jabour, Thomas Arnold, and Joshua Church. AAD-LLM: adaptive anomaly detection using large language models. In IEEE Big Data, pp. 4194–4203. IEEE, 2024.
Bernhard Schölkopf, John C. Platt, John Shawe-Taylor, Alexander J. Smola, and Robert C. Williamson. Estimating the support of a high-dimensional distribution. Neural Comput., 13(7):1443–1471, 2001.
Dimitris Spathis and Fahim Kawsar. The first step is the hardest: pitfalls of representing and tokenizing temporal data for large language models. J. Am. Medical Informatics Assoc., 31(9):2151–2158, 2024.
Chenxi Sun, Hongyan Li, Yaliang Li, and Shenda Hong. TEST: text prototype aligned embedding to activate llm's ability for time series. In ICLR. OpenReview.net, 2024.
Wei Tao, Xiaoyang Qu, Kai Lu, Jiguang Wan, Guokuan Li, and Jianzong Wang. MADLLM: multivariate anomaly detection via pre-trained llms. In ICME, pp. 1–6. IEEE, 2025.
Peng Wang, Shuai Bai, Sinan Tan, Shijie Wang, Zhihao Fan, Jinze Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Yang Fan, Kai Dang, Mengfei Du, Xuancheng Ren, Rui Men, Dayiheng Liu, Chang Zhou, Jingren Zhou, and Junyang Lin. Qwen2-vl: Enhancing vision-language model's perception of the world at any resolution. CoRR, abs/2409.12191, 2024.
Frank Wilcoxon. Individual comparisons by ranking methods. Biometrics Bulletin, 1(6):80–83, 1945. doi: 10.2307/3001968.
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, and Jamie Brew. Huggingface's transformers: State-of-the-art natural language processing. CoRR, abs/1910.03771, 2019.
Haixu Wu, Tengge Hu, Yong Liu, Hang Zhou, Jianmin Wang, and Mingsheng Long. Timesnet: Temporal 2d-variation modeling for general time series analysis. In ICLR. OpenReview.net, 2023.
Renjie Wu and Eamonn J. Keogh. Current time series anomaly detection benchmarks are flawed and are creating the illusion of progress. IEEE Trans. Knowl. Data Eng., 35(3):2421–2429, 2023.
Jiehui Xu, Haixu Wu, Jianmin Wang, and Mingsheng Long. Anomaly transformer: Time series anomaly detection with association discrepancy. In ICLR. OpenReview.net, 2022.
Xiongxiao Xu, Haoran Wang, Yueqing Liang, Philip S. Yu, Yue Zhao, and Kai Shu. Can multimodal llms perform time series anomaly detection? In WWW, pp. 5392–5403. ACM, 2026.
An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, Guanting Dong, Haoran Wei, Huan Lin, Jialong Tang, Jialin Wang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Ma, Jianxin Yang, Jin Xu, Jingren Zhou, Jinze Bai, Jinzheng He, Junyang Lin, Kai Dang, Keming Lu, Keqin Chen, Kexin Yang, Mei Li, Mingfeng Xue, Na Ni, Pei Zhang, Peng Wang, Ru Peng, Rui Men, Ruize Gao, Runji Lin, Shijie Wang, Shuai Bai, Sinan Tan, Tianhang Zhu, Tianhao Li, Tianyu Liu, Wenbin Ge, Xiaodong Deng, Xiaohuan Zhou, Xingzhang Ren, Xinyu Zhang, Xipin Wei, Xuancheng Ren, Xuejing Liu, Yang Fan, Yang Yao, Yichang Zhang, Yu Wan, Yunfei Chu, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, Zhifang Guo, and Zhihao Fan. Qwen2 technical report. CoRR, abs/2407.10671, 2024.
Samuel Yoon, Jongwon Kim, Juyoung Ha, and Young Myoung Ko. Patch-based memory gate model in time series foundation model. Transactions on Machine Learning Research, 2026. ISSN 2835-8856.
Yuan-Cheng Yu, Yen-Chieh Ouyang, and Chun-An Lin. Trip-llm: A tri-branch patch-wise large language model framework for time-series anomaly detection. IEEE Access, 13:168643–168653, 2025.
Xiyuan Zhang, Ranak Roy Chowdhury, Rajesh K. Gupta, and Jingbo Shang. Large language models for time series: A survey. In IJCAI, pp. 8335–8343. ijcai.org, 2024.
Qihang Zhou, Shibo He, Haoyu Liu, Jiming Chen, and Wenchao Meng. Label-free multivariate time series anomaly detection. IEEE Trans. Knowl. Data Eng., 36(7):3166–3179, 2024.
Tian Zhou, Peisong Niu, Xue Wang, Liang Sun, and Rong Jin. One fits all: Power general time series analysis by pretrained LM. In NeurIPS, 2023.
Jiaxin Zhuang, Leon Yan, Zhenwei Zhang, Ruiqi Wang, Jiawei Zhang, and Yuantao Gu. See it, think it, sorted: Large multimodal models are few-shot time series anomaly analyzers. CoRR, abs/2411.02465, 2024.
A Parameters
A.1 PCA & Isolation Forest
We used the Principle Component Analysis (PCA) algorithm to reduce all analysed vectors to the same dimensionality, before fitting the Isolation Forest. We set the target dimension to 512, and retained on average close to 98% of explained variance; we thus reduced the complexity of the study without compromising the results.
We set the number of trees in the Isolation Forest to 100.
A.2 Trained Baselines
We trained three TSFM baselines, TimesNet (Wu et al., 2023), GPT4TS (Zhou et al., 2023) and AnomalyTransformer (Xu et al., 2022), on four anomaly detection datasets and presented the results in the main paper. All of them were trained on the full train sets, with parameters matching the published configurations, over 5 different seeds, with a window size set to a 100 time-steps. Both GPT4TS and TimesNet were trained for 10 epochs, while 3 were done for AnomalyTransformer. The projection depth (or d_model) parameter of the models are reported in Table 3.
Reported results follow the same evaluation protocol with a stride of 128. The models have open-source implementations, and we included them in our codebase to ensure that all experiments are done in the same environment.
A.3 Pre-Trained Baselines
A window size of 128 was used for MOMENT (Goswami et al., 2024) and Chronos (Ansari et al., 2025). Only one evaluation with a fixed seed (42) was required, since there is no randomised process. Reported results follow the same evaluation protocol with a stride of 128.
A.4 Environment
Code, requirements, and the Docker image will be made publicly available. Experiments were conducted on NVIDIA RTX A6000 (550.163.01) GPUs and an AMD EPYC 7742 64-Core processor.
B Models Details
Table 3 summarises the model details. As mentioned in the previous section, TimesNet and GPT4TS where reimplemented. For all other models in the study, we took advantage of the HuggingFace platform (Wolf et al., 2019) and its vast amount of shared architectures and pre-trained weights. The versions used are also depicted in the table.
C Datasets & Evaluation Setting
Detailed statistics of the 4 datasets used in this study can be found in Table 4. As mentioned in the main paper, our evaluation uses a target modification strategy () that increase the ratio of anomalous windows.
We also use a stride of 128 throughout the whole study, to keep the same number of samples and increase the throughput of results. We report the effective ratio changes in Table 5. The original ratios of the datasets are greyed out and correspond to both a window size and a stride of 1. The effective ratios from this study are the last row of each datasets, window sizes from 4 to 128. Although these modifications can change the overall statistics of the datasets anomalies, we observed no significant difference with an evaluation on the complete dataset. We thus consider this scale-reduced setting representative of the full evaluation case, in terms of model comparisons. To quantitatively support this simplified protocol, particularly analysing
Table 3: Details of the models used in the study.
| Architecture | HuggingFace (Wolf et al., 2019)Version | Number ofParameters | EmbeddingSize | MultimodalTraining | VocabularySize |
|---|---|---|---|---|---|
| AnomalyTransformer (Xu et al., 2022) | - | 5,002,387 | 512 | ✗ | - |
| GPT4TS (Zhou et al., 2023) | - | ≈ 81,960,828 | 768 | ✗ | - |
| TimesNet (Wu et al., 2023) | - | ≈ 28,150,972 | 128 | ✗ | - |
| Chronos (Ansari et al., 2025) | amazon/chronos-2 | 119,477,664 | ✗ | - | |
| MOMENT (Small) (Goswami et al., 2024) | AutonLab/MOMENT-1-small | 35,341,512 | 512 | ✗ | - |
| MOMENT (Base) (Goswami et al., 2024) | AutonLab/MOMENT-1-base | 109,641,608 | 768 | ✗ | - |
| MOMENT (Large) (Goswami et al., 2024) | AutonLab/MOMENT-1-large | 341,248,520 | 1024 | ✗ | - |
| GPT (Radford et al., 2019) | openai-community/gpt2 | 124,439,808 | 768 | ✗ | 50257 |
| Qwen (Yang et al., 2024) | Qwen/Qwen2-0.5B | 494,032,768 | 896 | ✗ | 151936 |
| Qwen (7B) (Yang et al., 2024) | Qwen/Qwen2-7B | 7,070,619,136 | 3584 | ✗ | 152064 |
| Qwen-VL (7B) (Wang et al., 2024) | Qwen/Qwen2-VL-7B | 7,070,619,136 | 3584 | ✓ | 152064 |
| Mistral (Jiang et al., 2023) | mistralai/Mistral-7B-v0.1 | 7,110,660,096 | 3072 | ✗ | 32000 |
| Phi (Microsoft, 2024) | microsoft/Phi-3-mini-4k-instruct | 3,722,578,944 | 4096 | ✗ | 32064 |
† When used as feature extractor, Chronos has an output size that depends on the number dimension of the dataset, , and the number of patches which defaults to ( being the window size).
Table 4: Detailed statistics of the time-series anomaly detection datasets.
| Dataset | Features | Train Set | Test Set | Anomaly % | Anomalous Sequences | Num. | ||
|---|---|---|---|---|---|---|---|---|
| Length | ||||||||
| Min. | Max. | Avg. | ||||||
| SWaT (Abdulaal et al., 2021) | 51 | 495,000 | 449,919 | 12.14 | 101 | 35,900 | 1,560.60 | 35 |
| WaDi (Ahmed et al., 2017) | 123 | 784,537 | 172,801 | 5.77 | 88 | 1,741 | 712.64 | 14 |
| PUMP (Feng & Tian, 2021) | 44 | 76,901 | 143,401 | 10.05 | 42 | 8,391 | 2,401.33 | 6 |
| PSM (Abdulaal et al., 2021) | 25 | 132,481 | 87,841 | 27.76 | 1 | 8,861 | 338.625 | 72 |
the anomaly distributions over the windows, we provide two complementary statistics: coverage (Table 6) and centroid (Table 7). Coverage is the amount of anomalous time-steps in the window, while centroid is the average temporal position of the anomalous segment within the window. We observe almost no change compared to the windows statistics over the full test set, which supports an equivalence between the protocols. Additionally, we provide results of 6 baselines and 2 LLMs with a stride of 1 (full test set) in Table 8. Results are similar to a stride of 128, used in the main study, and ranking is preserved between models.
D Complementary Results
D.1 Main Figures: Other Metrics
We complement the figures of the main paper focusing on one metric with the two others considered in this study. Figure 7a and Figure 7b present AUPR and F₁ scores for the overall results over the different datasets. Figure 8a and Figure 8b present AUROC and F₁ scores for the study on the impact of inductive bias and knowledge transfer. Figure 9 provides the results of the statistical analysis for the Closest Vocabulary tokenisation, along Interpolation and Padding from the main article.
D.2 Detailed Results
The raw results used to generate the main study of pre-trained LLMs, per window size and with standard deviations, can be found from Table 13 to Table 14. The Raw and Control results are in Table 9 to Table 11. The results for randomised models are in Table 15 to Table 18.
We provide a granular view of the results of all models, per window sizes (4, 8, 16, 32, 64, and 128), datasets (PSM, PUMP, SWaT and WaDi), and metrics (AUROC, AUPR and F₁) from Figure 10 to Figure 18.
Table 5: Effective number of samples and anomaly ratio changes with the application of maximum value on the window targets and strides.
| Dataset | Stride | Test Size(# Windows) | Anomaly % w.r.t. Window Size | ||||||
|---|---|---|---|---|---|---|---|---|---|
| 1 | 4 | 8 | 16 | 32 | 64 | 128 | |||
| PSM | 1 | 87841 | 27.76 | 28.00 | 28.31 | 28.87 | 29.91 | 31.71 | 35.06 |
| 4 | 21961 | 27.99 | |||||||
| 8 | 10981 | 28.37 | |||||||
| 16 | 5491 | 28.88 | |||||||
| 32 | 2746 | 30.01 | |||||||
| 64 | 1373 | 31.76 | |||||||
| 128 | 687 | 27.51 | 27.80 | 28.38 | 28.82 | 30.28 | 32.61 | 35.23 | |
| PUMP | 1 | 143401 | 10.05 | 10.06 | 10.08 | 10.11 | 10.18 | 10.31 | 10.58 |
| 4 | 35851 | 10.06 | |||||||
| 8 | 17926 | 10.08 | |||||||
| 16 | 8963 | 10.12 | |||||||
| 32 | 4482 | 10.17 | |||||||
| 64 | 2241 | 10.22 | |||||||
| 128 | 1121 | 9.90 | 9.90 | 9.90 | 9.99 | 10.26 | 10.26 | 10.44 | |
| SWaT | 1 | 449919 | 12.14 | 12.16 | 12.19 | 12.26 | 12.38 | 12.63 | 13.10 |
| 4 | 112480 | 12.17 | |||||||
| 8 | 56240 | 12.20 | |||||||
| 16 | 28120 | 12.27 | |||||||
| 32 | 14060 | 12.40 | |||||||
| 64 | 7030 | 12.66 | |||||||
| 128 | 3515 | 12.23 | 12.23 | 12.26 | 12.29 | 12.35 | 12.55 | 13.14 | |
| WaDi | 1 | 172801 | 5.77 | 5.80 | 5.83 | 5.90 | 6.02 | 6.28 | 6.80 |
| 4 | 43201 | 5.79 | |||||||
| 8 | 21601 | 5.83 | |||||||
| 16 | 10801 | 5.87 | |||||||
| 32 | 5401 | 5.96 | |||||||
| 64 | 2701 | 6.26 | |||||||
| 128 | 1351 | 5.85 | 5.92 | 6.00 | 6.00 | 6.14 | 6.37 | 6.88 | |
Stable AUROC results can be observed throughout all window sizes and datasets. AUPR is less stable throughout the datasets, with especially high or increased standard deviation on SWaT for most models. F₁ acts as the most unstable metric, but it can be attributed to its inherent dependence on a threshold. Applying the Isolation Forest directly on the data (Raw) consistently performs worse on small window sizes; most of the time, results are bumped up by going from a window size of 8 to a window size of 16.
D.3 Wilcoxon Test: Overview
For each pair of LLMs, let () denote the paired difference in AUROC for the -th configuration, where and are the AUROC scores, across datasets and window sizes, of the two LLMs being compared. Zero differences are excluded from the analysis. The absolute differences are ranked in ascending order, yielding ranks . The positive and negative rank sums are then defined as:
The Wilcoxon signed-rank test statistic is . We compute the signed rank-biserial effect size as:
where denotes the median paired difference. The magnitude therefore reflects the degree to which the signed ranks are concentrated in one direction, while its sign indicates the direction of the difference. In
Table 6: Effective number of samples and anomalous time-steps window coverage changes with different strides.
| Dataset | Stride | Test Size (# Windows) | Anomaly | Window | Coverage (%) | w.r.t. | Window Size | ||
|---|---|---|---|---|---|---|---|---|---|
| 1 | 4 | 8 | 16 | 32 | 64 | 128 | |||
| PSM | 1 | 87841 | 100.0 | 99.12 | 98.05 | 96.09 | 92.77 | 87.45 | 79.00 |
| 4 | 21961 | 99.17 | |||||||
| 8 | 10981 | 97.85 | |||||||
| 16 | 5491 | 96.09 | |||||||
| 32 | 2746 | 92.48 | |||||||
| 64 | 1373 | 87.30 | |||||||
| 128 | 687 | 100.0 | 99.21 | 97.17 | 95.21 | 90.77 | 85.06 | 78.61 | |
| PUMP | 1 | 143401 | 100.0 | 99.85 | 99.71 | 99.37 | 98.73 | 97.46 | 94.97 |
| 4 | 35851 | 99.90 | |||||||
| 8 | 17926 | 99.66 | |||||||
| 16 | 8963 | 99.27 | |||||||
| 32 | 4482 | 98.73 | |||||||
| 64 | 2241 | 98.29 | |||||||
| 128 | 1121 | 100.0 | 100.0 | 100.0 | 99.32 | 97.71 | 98.24 | 96.19 | |
| SWaT | 1 | 449919 | 100.0 | 99.80 | 99.56 | 99.07 | 98.05 | 96.14 | 92.68 |
| 4 | 112480 | 99.80 | |||||||
| 8 | 56240 | 99.51 | |||||||
| 16 | 28120 | 98.93 | |||||||
| 32 | 14060 | 97.85 | |||||||
| 64 | 7030 | 95.90 | |||||||
| 128 | 3515 | 100.0 | 100.0 | 99.66 | 99.41 | 98.58 | 96.68 | 92.38 | |
| WaDi | 1 | 172801 | 100.0 | 99.56 | 99.02 | 97.95 | 95.85 | 91.89 | 84.86 |
| 4 | 43201 | 99.66 | |||||||
| 8 | 21601 | 99.07 | |||||||
| 16 | 10801 | 98.34 | |||||||
| 32 | 5401 | 96.83 | |||||||
| 64 | 2701 | 92.24 | |||||||
| 128 | 1351 | 100.0 | 99.71 | 99.07 | 98.93 | 95.56 | 90.58 | 83.79 | |
our pairwise comparison matrix, a positive indicates that the LLM represented by the row achieves higher AUROC than the LLM represented by the column, whereas a negative indicates the opposite. Since all pairwise comparisons are performed over the same configurations, the magnitudes of are directly comparable across model pairs.
For each pairwise comparison, the Wilcoxon signed-rank test produces a -value corresponding to the probability, under the null hypothesis, of observing a difference at least as extreme as the one obtained. Since multiple pairwise Wilcoxon tests are conducted, considering each test independently at the 0.05 significance level would inflate the probability of making at least one false rejection of the null hypothesis. We therefore apply the Holm procedure to the set of -values obtained from the pairwise tests. The resulting adjusted -values, denoted by , account for these multiple comparisons while controlling the group-wise error rate. We consider a pairwise difference statistically significant when .
E Closest Vocabulary Overview
Out of interest, we visualised the resulting tokens when converting the time-series to tokens from a vocabulary (Closest Vocabulary). Each model has a different vocabulary, and time-steps of a dataset will be converted to various token values and meanings. We provide some examples from Figure 19 to Figure 21.
Table 7: Effective number of samples and anomalous segments window centroids changes with different strides.
| Dataset | Stride | Test Size (# Windows) | Anomaly Segment Centroid (% from left to right) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| 1 | 4 | 8 | 16 | 32 | 64 | 128 | |||
| PSM | 1 | 87841 | 00.00 | 50.00 | 50.00 | 50.01 | 50.01 | 50.05 | 50.06 |
| 4 | 21961 | 49.94 | |||||||
| 8 | 10981 | 49.98 | |||||||
| 16 | 5491 | 50.11 | |||||||
| 32 | 2746 | 50.16 | |||||||
| 64 | 1373 | 50.01 | |||||||
| 128 | 687 | 00.00 | 50.17 | 49.78 | 50.54 | 49.87 | 49.53 | 51.30 | |
| PUMP | 1 | 143401 | 00.00 | 50.00 | 50.00 | 50.00 | 50.00 | 50.00 | 50.00 |
| 4 | 35851 | 50.02 | |||||||
| 8 | 17926 | 50.02 | |||||||
| 16 | 8963 | 49.99 | |||||||
| 32 | 4482 | 49.93 | |||||||
| 64 | 2241 | 50.15 | |||||||
| 128 | 1121 | 00.00 | 50.00 | 50.00 | 49.64 | 48.82 | 49.72 | 50.36 | |
| SWaT | 1 | 449919 | 00.00 | 50.00 | 50.00 | 50.00 | 50.00 | 50.00 | 50.00 |
| 4 | 112480 | 50.01 | |||||||
| 8 | 56240 | 50.03 | |||||||
| 16 | 28120 | 50.01 | |||||||
| 32 | 14060 | 50.02 | |||||||
| 64 | 7030 | 50.05 | |||||||
| 128 | 3515 | 00.00 | 50.00 | 50.02 | 50.08 | 50.28 | 50.18 | 49.66 | |
| WaDi | 1 | 172801 | 00.00 | 50.00 | 50.00 | 50.00 | 50.00 | 50.00 | 50.00 |
| 4 | 43201 | 49.99 | |||||||
| 8 | 21601 | 50.06 | |||||||
| 16 | 10801 | 49.93 | |||||||
| 32 | 5401 | 49.77 | |||||||
| 64 | 2701 | 50.01 | |||||||
| 128 | 1351 | 00.00 | 49.79 | 49.47 | 50.08 | 50.58 | 51.16 | 50.89 | |
Table 8: Complementary results with a stride of 1.
| Model | PSM | PUMP | SWaT | WaDi | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AUPR | AUROC | F₁ | AUPR | AUROC | F₁ | AUPR | AUROC | F₁ | AUPR | AUROC | F₁ | |
| AnomalyTransformer | 68.25 | 78.76 | 63.98 | 21.98 | 79.65 | 48.90 | 69.13 | 80.83 | 72.44 | 29.40 | 52.43 | 14.83 |
| GPT4TS | 52.87 | 61.68 | 49.18 | 07.64 | 20.79 | 21.87 | 10.77 | 21.95 | 10.19 | 40.91 | 55.17 | 14.17 |
| TimesNet | 52.25 | 61.44 | 48.74 | 07.63 | 20.85 | 21.89 | 10.60 | 21.77 | 10.04 | 40.87 | 55.14 | 14.19 |
| MOMENT (Small) | 52.53 | 64.94 | 45.35 | 12.43 | 43.94 | 20.43 | 12.19 | 27.95 | 10.57 | 19.05 | 51.97 | 14.02 |
| MOMENT (Base) | 66.81 | 70.80 | 54.92 | 15.33 | 44.56 | 26.28 | 12.18 | 28.03 | 05.09 | 18.48 | 52.11 | 14.08 |
| MOMENT (Large) | 66.36 | 70.68 | 54.81 | 13.85 | 51.08 | 24.05 | 08.88 | 24.22 | 02.91 | 07.97 | 49.03 | 11.27 |
| GPT | 33.19 | 54.09 | 33.17 | 15.80 | 65.01 | 29.85 | - | - | - | - | - | - |
| Qwen | 50.81 | 67.08 | 49.60 | 17.47 | 71.14 | 35.85 | - | - | - | - | - | - |

(a) AUPR

(b)
Figure 7: Results of the studied LLMs on different datasets, with Interpolation.

(a) AUROC

(b)
Figure 8: Study on the impact of inductive bias and knowledge transfer.

Figure 9: Wilcoxon test study, with Closest Vocabulary tokenisation results.
Table 9: Results of Isolation Forest on Raw tokens, and on Chronos features (which required no tokenisation). The Control path of the Padding strategy and the Raw path have the same properties, with 0-variance dimensions ignored, and thus the same results.
| Adapter | Window Size | PSM | PUMP | SWaT | WaDi | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AUPR | AUROC | F₁ | AUPR | AUROC | F₁ | AUPR | AUROC | F₁ | AUPR | AUROC | F₁ | ||
| Raw | 4 | 18.63±0.47 | 26.03±1.58 | 0.00±0.00 | 5.90±0.18 | 16.76±2.64 | 14.35±8.02 | 6.82±0.09 | 13.40±0.32 | 0.43±0.96 | 3.81±0.18 | 24.45±2.42 | 6.38±4.85 |
| 8 | 19.01±0.24 | 26.50±1.17 | 0.00±0.00 | 5.84±0.13 | 15.86±2.13 | 14.28±7.98 | 6.88±0.05 | 13.93±0.39 | 0.50±1.12 | 3.70±0.03 | 25.99±0.52 | 9.01±5.04 | |
| 16 | 19.17±0.37 | 25.49±1.19 | 0.00±0.00 | 17.76±3.06 | 60.83±2.87 | 27.38±3.69 | 40.44±4.11 | 63.77±1.52 | 39.87±3.67 | 3.69±0.06 | 25.77±1.21 | 8.97±5.01 | |
| 32 | 31.64±1.32 | 45.53±2.25 | 10.73±2.10 | 14.84±0.72 | 58.19±0.92 | 24.32±0.70 | 42.12±4.74 | 62.96±1.11 | 42.92±3.68 | 4.08±0.14 | 27.87±0.80 | 5.93±5.76 | |
| 64 | 31.97±1.20 | 43.17±1.65 | 11.48±4.15 | 20.34±2.19 | 58.85±0.95 | 26.49±0.70 | 25.23±7.95 | 56.89±2.58 | 30.22±4.81 | 4.23±0.10 | 28.74±0.81 | 9.50±5.31 | |
| 128 | 33.65±1.46 | 43.89±2.99 | 5.10±1.28 | 24.28±1.84 | 57.76±0.50 | 27.89±1.46 | 13.17±1.73 | 48.39±1.76 | 19.21±2.86 | 4.59±0.08 | 30.38±0.66 | 12.90±0.15 | |
| Average | 25.68 | 35.10 | 4.55 | 14.83 | 44.71 | 22.45 | 22.44 | 43.22 | 22.19 | 4.01 | 27.20 | 8.78 | |
| Overall | 16.74 | 37.56 | 14.49 | - | - | - | - | - | - | - | - | - | |
| Chronos (Features) | 4 | 27.19±1.55 | 48.27±1.59 | 30.75±14.58 | 6.17±0.19 | 26.02±2.66 | 10.74±9.81 | 19.44±2.64 | 57.30±1.52 | 23.87±2.30 | 18.35±0.04 | 45.05±0.55 | 10.98±0.20 |
| 8 | 27.62±1.15 | 48.42±1.89 | 33.54±14.31 | 6.25±0.17 | 27.01±2.17 | 14.33±8.01 | 42.47±1.01 | 69.03±0.56 | 38.79±2.68 | 4.78±0.06 | 42.02±0.47 | 11.26±0.03 | |
| 16 | 26.34±0.76 | 45.73±1.83 | 24.87±21.68 | 5.92±0.11 | 21.34±1.79 | 7.23±9.91 | 47.45±1.08 | 67.46±0.72 | 44.49±1.63 | 4.40±0.17 | 36.70±0.95 | 7.13±5.66 | |
| 32 | 26.32±1.05 | 43.87±2.35 | 35.74±20.19 | 6.12±0.10 | 21.56±1.62 | 18.48±0.01 | 47.37±3.17 | 67.30±1.34 | 45.08±2.60 | 4.36±0.05 | 35.14±0.44 | 11.53±0.03 | |
| 64 | 30.24±0.53 | 46.71±1.69 | 38.25±20.03 | 6.63±0.21 | 28.68±2.24 | 18.51±0.02 | 43.54±0.86 | 66.84±0.61 | 41.31±1.18 | 4.42±0.08 | 33.53±0.88 | 7.15±6.52 | |
| 128 | 30.29±0.66 | 42.78±1.20 | 51.99±0.19 | 7.78±0.28 | 36.35±1.75 | 18.87±0.06 | 28.79±5.04 | 59.69±2.22 | 30.62±3.89 | 4.41±0.06 | 28.83±1.02 | 10.24±5.72 | |
| Average | 28.00 | 45.97 | 35.86 | 6.48 | 26.83 | 14.69 | 38.18 | 64.60 | 37.36 | 6.79 | 36.88 | 9.71 | |
| Overall | 19.86 | 43.57 | 24.41 | - | - | - | - | - | - | - | - | - | |
Table 10: Results of Isolation Forest on the Closest Vocabulary tokens (Control).
| Model | Window Size | PSM | PUMP | SWaT | WaDi | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AUPR | AUROC | AUPR | AUROC | AUPR | AUROC | AUPR | AUROC | ||||||
| GPT | 4 | ||||||||||||
| 8 | |||||||||||||
| 16 | |||||||||||||
| 32 | |||||||||||||
| 64 | |||||||||||||
| 128 | |||||||||||||
| Average | 34.59 | 56.40 | 43.59 | 20.95 | 69.82 | 30.50 | 14.97 | 45.30 | 20.06 | 19.76 | 44.02 | 11.69 | |
| Overall | 22.57 | 53.88 | 26.46 | - | - | - | - | - | - | - | - | - | |
| Mistral | 4 | ||||||||||||
| 8 | |||||||||||||
| 16 | |||||||||||||
| 32 | |||||||||||||
| 64 | |||||||||||||
| 128 | |||||||||||||
| Average | 40.19 | 57.22 | 40.04 | 8.18 | 42.66 | 19.87 | 18.33 | 36.63 | 14.82 | 19.71 | 45.69 | 12.49 | |
| Overall | 21.60 | 45.55 | 21.81 | - | - | - | - | - | - | - | - | - | |
| Phi | 4 | ||||||||||||
| 8 | |||||||||||||
| 16 | |||||||||||||
| 32 | |||||||||||||
| 64 | |||||||||||||
| 128 | |||||||||||||
| Average | 29.17 | 47.96 | 38.77 | 10.67 | 56.20 | 23.17 | 24.08 | 58.51 | 9.93 | 17.46 | 45.51 | 11.71 | |
| Overall | 20.35 | 52.04 | 20.90 | - | - | - | - | - | - | - | - | - | |
| Qwen | 4 | ||||||||||||
| 8 | |||||||||||||
| 16 | |||||||||||||
| 32 | |||||||||||||
| 64 | |||||||||||||
| 128 | |||||||||||||
| Average | 35.16 | 51.57 | 23.94 | 13.73 | 61.26 | 25.23 | 19.56 | 55.56 | 12.93 | 19.60 | 43.22 | 10.66 | |
| Overall | 22.01 | 52.90 | 18.19 | - | - | - | - | - | - | - | - | - | |
Table 11: Results of Isolation Forest on the Interpolated tokens (Control).
| Model | Window Size | PSM | PUMP | SWaT | WaDi | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AUPR | AUROC | AUPR | AUROC | AUPR | AUROC | AUPR | AUROC | ||||||
| GPT | 4 | ||||||||||||
| 8 | |||||||||||||
| 16 | |||||||||||||
| 32 | |||||||||||||
| 64 | |||||||||||||
| 128 | |||||||||||||
| Average | 27.67 | 40.63 | 6.26 | 16.99 | 55.75 | 25.16 | 24.16 | 47.69 | 27.94 | 4.01 | 27.46 | 8.33 | |
| Overall | 18.21 | 42.88 | 16.93 | - | - | - | - | - | - | - | - | - | |
| Mistral | 4 | ||||||||||||
| 8 | |||||||||||||
| 16 | |||||||||||||
| 32 | |||||||||||||
| 64 | |||||||||||||
| 128 | |||||||||||||
| Average | 28.21 | 41.15 | 6.89 | 16.88 | 56.56 | 24.33 | 22.19 | 48.12 | 26.26 | 4.02 | 27.56 | 10.03 | |
| Overall | 17.82 | 43.35 | 16.88 | - | - | - | - | - | - | - | - | - | |
| Phi | 4 | ||||||||||||
| 8 | |||||||||||||
| 16 | |||||||||||||
| 32 | |||||||||||||
| 64 | |||||||||||||
| 128 | |||||||||||||
| Average | 27.49 | 40.12 | 5.64 | 16.76 | 56.13 | 23.49 | 21.91 | 48.20 | 27.30 | 4.00 | 27.48 | 8.60 | |
| Overall | 17.54 | 42.98 | 16.26 | - | - | - | - | - | - | - | - | - | |
| Qwen | 4 | ||||||||||||
| 8 | |||||||||||||
| 16 | |||||||||||||
| 32 | |||||||||||||
| 64 | |||||||||||||
| 128 | |||||||||||||
| Average | 27.80 | 40.37 | 6.55 | 16.40 | 55.89 | 23.91 | 23.72 | 47.57 | 28.44 | 4.01 | 27.79 | 8.99 | |
| Overall | 17.98 | 42.91 | 16.97 | - | - | - | - | - | - | - | - | - | |
Table 12: Results of Isolation Forest on LLM features, pre-trained, with Padding tokenisation. Model Window Size PSM PUMP SWaT WaDi AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 GPT 4 33.93±0.27 56.15±1.66 38.26±3.59 12.14±0.45 60.44±1.31 24.42±1.35 37.16±8.51 64.33±1.15 36.54±2.26 11.64±3.24 37.53±0.83 11.26±0.09 8 33.72±0.91 52.53±0.98 27.90±4.73 13.32±0.23 63.37±0.68 26.51±1.44 22.50±12.47 61.20±3.30 34.02±6.41 10.51±5.69 37.37±1.91 11.38±0.33 16 35.05±1.86 53.20±1.91 27.40±12.40 14.39±0.41 64.49±0.94 27.36±0.81 38.09±14.58 64.83±2.38 43.27±8.80 11.95±4.66 38.96±1.22 11.66±0.32 32 34.85±1.40 54.25±0.43 39.97±4.84 16.11±1.21 66.35±0.78 30.62±1.24 30.21±13.07 62.89±2.52 39.30±4.32 10.46±4.60 38.81±0.83 11.95±0.17 64 37.37±0.77 53.54±1.07 35.42±10.79 14.74±0.50 64.35±1.04 29.29±2.08 18.05±4.11 59.62±2.84 32.14±4.08 15.63±5.12 40.63±2.71 12.14±0.22 128 37.67±1.66 50.94±0.63 27.18±13.75 16.12±1.69 63.72±0.74 30.84±1.53 24.12±7.15 59.27±3.41 32.07±3.00 16.12±7.99 40.86±2.78 12.92±0.19 Average 35.43 53.43 32.69 14.47 63.79 28.17 28.35 62.02 36.22 12.72 39.03 11.89 Overall 22.74 54.57 27.24 - - - - - - - - - Mistral 4 31.10±1.18 52.01±1.25 29.20±4.77 15.89±0.48 69.91±0.64 33.60±1.42 37.00±12.50 67.05±2.32 42.80±6.37 17.04±4.39 43.32±2.28 11.41±0.20 8 31.08±1.41 51.56±0.86 25.90±12.72 16.62±0.64 70.91±0.94 35.13±1.51 39.35±15.21 67.31±2.07 45.98±11.05 21.42±4.27 44.59±1.60 11.64±0.13 16 32.03±0.73 51.65±2.12 35.88±12.70 17.36±0.65 71.93±1.26 37.26±2.33 39.21±7.53 67.16±1.21 44.65±5.76 24.18±0.04 46.51±0.54 11.92±0.24 32 33.44±0.69 52.06±1.17 26.99±2.42 17.12±0.41 70.73±1.13 35.53±0.30 34.06±12.69 66.45±2.12 41.87±7.93 21.92±3.38 45.62±2.18 12.48±0.43 64 35.80±1.74 50.37±1.17 18.03±5.04 16.67±0.41 68.90±0.93 36.08±1.33 30.37±8.96 65.00±1.62 37.78±2.50 24.09±2.05 45.92±0.91 12.55±0.20 128 34.81±1.01 48.20±1.61 31.04±18.84 16.01±0.28 67.64±0.59 33.03±0.66 29.07±9.84 62.83±1.92 38.71±4.67 24.04±3.27 45.32±1.94 13.28±0.20 Average 33.04 50.98 27.84 16.61 70.01 35.10 34.84 65.97 41.96 22.11 45.21 12.21 Overall 26.65 58.04 29.28 - - - - - - - - - Phi 4 32.12±0.71 56.30±1.19 38.44±4.05 5.93±0.08 21.45±1.23 10.75±9.81 46.75±10.70 63.83±0.82 49.41±6.72 11.50±4.45 39.00±1.37 11.52±0.10 8 32.53±1.13 56.78±1.57 41.71±3.85 5.99±0.12 22.52±1.91 14.34±8.01 47.20±9.37 64.03±1.20 49.90±6.93 14.15±6.28 39.68±2.81 11.61±0.13 16 32.17±0.73 54.07±1.56 37.38±3.66 6.21±0.09 25.81±1.25 10.87±9.92 53.17±6.81 65.35±0.54 55.49±5.60 15.31±8.69 41.32±3.08 11.53±0.25 32 32.77±0.71 54.64±0.69 40.43±7.23 6.74±0.12 30.09±1.41 14.80±8.27 53.86±5.65 65.27±0.85 55.28±7.66 15.05±6.93 42.48±3.16 12.67±0.10 64 34.77±1.14 53.35±1.08 41.92±9.15 6.95±0.19 32.04±1.66 14.83±8.29 42.84±12.77 63.29±2.18 48.53±7.63 16.86±5.72 44.80±1.77 13.00±0.37 128 35.33±0.88 51.26±1.81 43.37±6.32 7.16±0.14 32.94±0.93 11.30±10.31 44.11±10.51 62.55±1.61 49.93±8.09 18.28±6.95 46.15±3.40 14.46±0.24 Average 33.28 54.40 40.54 6.50 27.47 12.81 47.99 64.05 51.42 15.19 42.24 12.47 Overall 25.74 47.04 29.31 - - - - - - - - - Qwen 4 38.78±0.74 60.22±1.63 41.82±1.31 10.52±0.28 55.47±0.52 20.56±0.23 59.87±2.34 66.33±0.44 63.95±4.91 19.74±4.21 40.92±2.29 11.22±0.09 8 39.19±0.91 61.82±0.42 43.40±3.45 11.10±1.00 57.21±2.56 21.49±0.74 59.51±2.19 66.19±0.43 65.75±3.48 20.01±5.95 41.44±3.30 11.31±0.10 16 40.30±0.60 59.64±0.51 41.78±1.73 11.31±0.42 58.52±0.88 22.11±0.34 60.12±0.64 65.95±0.45 63.74±1.06 20.23±3.46 41.16±2.00 11.24±0.07 32 40.95±1.07 56.46±0.52 36.99±2.68 11.70±1.09 58.72±1.48 22.84±0.12 57.37±2.47 66.44±0.34 63.58±2.23 20.54±5.66 43.01±2.78 11.69±0.16 64 42.00±1.81 55.81±0.98 38.36±8.78 12.82±1.32 60.70±1.98 23.53±0.40 56.09±3.47 65.56±0.36 59.38±5.98 22.90±1.43 43.77±0.90 12.28±0.21 128 44.31±0.62 56.39±1.04 45.35±3.40 11.83±0.45 58.45±1.02 24.07±0.43 51.62±11.68 63.45±1.33 55.98±10.53 24.79±1.50 44.55±0.79 13.00±0.18 Average 40.92 58.39 41.29 11.55 58.18 22.43 57.43 65.65 62.06 21.37 42.47 11.79 Overall 32.82 56.17 34.39 - - - - - - - - - Qwen (7B) 4 34.79±0.28 56.51±0.79 34.54±4.93 15.24±0.33 66.91±0.69 31.31±1.67 46.00±6.78 65.59±0.46 46.28±6.12 22.93±2.59 45.85±1.89 9.26±5.19 8 35.61±0.79 56.15±1.30 38.47±2.76 15.88±0.56 69.00±1.06 33.36±1.67 37.08±12.13 64.65±2.21 43.74±5.71 23.21±1.23 44.74±1.23 11.67±0.33 16 33.63±1.17 52.69±1.60 32.48±7.06 16.91±0.48 71.20±0.96 37.14±1.97 45.60±8.48 66.54±0.97 46.48±8.64 22.32±4.02 45.64±0.60 11.93±0.24 32 29.41±0.51 49.26±1.15 41.08±3.70 18.86±2.67 72.20±1.53 36.42±0.97 29.38±11.63 65.06±1.60 38.56±4.45 22.80±3.16 47.41±1.15 12.25±0.36 64 29.84±0.36 46.84±0.94 49.09±0.49 17.39±0.13 70.84±0.29 37.95±0.93 34.30±15.76 65.63±2.00 45.64±11.68 20.59±7.15 44.29±1.77 12.50±0.20 128 30.94±0.47 44.05±0.98 41.84±22.48 17.06±0.59 70.78±0.92 35.16±1.71 45.63±12.90 65.76±1.15 53.68±8.16 20.81±8.29 42.71±2.40 12.88±0.07 Average 32.37 50.92 39.58 16.89 70.16 35.22 39.67 65.54 45.73 22.11 45.11 11.75 Overall 27.76 57.93 33.07 - - - - - - - - - Qwen-VL (7B) 4 37.94±1.11 56.72±0.92 40.16±2.85 9.62±0.17 52.75±0.80 21.18±0.35 60.22±0.75 66.97±0.41 65.78±1.82 16.55±4.69 40.06±2.11 11.14±0.16 8 35.26±1.32 56.06±0.88 41.20±3.00 10.32±0.17 55.48±0.53 22.59±0.37 60.51±0.74 67.53±0.43 66.07±2.64 23.88±0.07 42.63±1.08 11.30±0.07 16 36.22±1.40 54.57±0.91 38.28±1.77 11.01±0.40 57.97±1.28 23.69±0.46 57.39±4.43 68.05±0.70 59.59±6.45 19.61±6.31 42.79±2.07 11.24±0.33 32 38.34±1.72 53.06±0.57 27.62±5.84 11.16±0.38 57.32±1.29 24.71±0.62 52.77±9.33 68.11±1.08 57.14±8.32 21.65±3.65 43.82±1.43 11.88±0.14 64 41.60±1.08 54.12±0.95 20.79±3.29 11.34±0.51 58.01±1.44 24.84±0.44 56.41±2.50 68.40±0.49 58.96±4.71 16.17±9.13 41.16±2.42 7.17±6.55 128 43.32±0.51 52.66±1.46 24.79±13.41 11.15±0.19 56.73±1.08 24.17±0.21 52.22±7.03 66.61±0.34 56.36±4.05 24.61±2.66 43.53±1.84 12.86±0.11 Average 38.78 54.53 32.14 10.77 56.38 23.53 56.59 67.61 60.65 20.41 42.33 10.93 Overall 31.64 55.21 31.81 - - - - - - - - - 25
Table 13: Results of Isolation Forest on LLM features, pre-trained, with Closest Vocabulary tokenisation. Model Window Size PSM PUMP SWaT WaDi AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 GPT 4 32.88±0.60 56.90±0.84 40.03±1.31 18.42±11.41 64.37±2.81 24.55±0.73 11.04±1.62 40.64±5.46 22.58±2.44 12.84±0.76 42.10±1.60 2.20±4.92 8 34.22±0.45 57.96±0.86 43.42±2.20 18.76±10.42 66.97±1.88 27.15±0.43 14.32±1.05 43.96±2.36 17.44±1.37 15.03±3.70 42.64±1.88 11.07±0.81 16 31.61±0.62 53.52±1.35 38.46±8.20 17.64±0.95 71.54±0.82 31.08±3.49 14.64±1.42 44.46±2.10 17.67±1.17 17.68±6.18 44.60±1.67 11.92±0.35 32 33.03±0.80 53.86±1.63 40.42±5.97 19.21±0.68 71.59±0.64 31.81±1.98 15.67±0.58 49.11±1.63 19.30±0.26 23.93±1.28 44.95±0.34 11.73±0.09 64 36.10±0.60 55.15±1.42 44.08±5.15 24.11±7.86 71.65±0.98 34.67±2.80 16.13±0.50 50.53±1.94 24.62±5.83 23.43±3.04 43.42±0.78 12.05±0.15 128 39.33±0.75 55.22±1.04 43.36±6.01 22.07±5.78 66.60±1.14 31.76±0.99 16.08±0.41 49.70±1.35 22.78±6.16 22.77±3.32 43.66±0.55 13.05±0.16 Average 34.53 55.43 41.63 20.03 68.79 30.17 14.65 46.40 20.73 19.28 43.56 10.34 Overall 22.12 53.55 25.72 - - - - - - - - - Mistral 4 38.26±1.05 58.65±0.53 41.98±1.42 7.62±0.31 38.75±3.23 18.81±0.54 12.86±4.19 30.51±4.15 12.82±7.82 11.91±4.21 43.87±1.38 11.44±0.27 8 39.11±0.67 54.67±1.33 37.98±1.29 7.96±0.12 41.39±1.32 19.19±0.91 14.20±2.23 34.11±2.06 18.67±4.99 11.77±3.81 43.72±1.62 11.66±0.15 16 38.98±0.80 56.05±1.76 40.60±4.85 8.10±0.13 42.49±1.03 18.73±0.60 17.20±1.01 39.19±13.44 12.80±9.37 13.84±5.02 44.86±1.71 11.75±0.15 32 40.80±0.54 57.07±1.17 39.85±3.34 8.34±0.13 43.16±0.95 19.38±0.54 17.44±0.69 35.76±0.44 20.26±7.52 22.35±5.43 44.23±0.74 9.37±5.24 64 43.21±0.64 57.84±0.89 45.67±1.71 8.00±0.10 40.71±0.82 18.58±0.37 17.49±1.50 36.33±0.49 6.97±0.00 18.44±7.84 43.37±0.63 12.05±0.11 128 43.07±1.22 57.20±0.55 46.67±2.64 8.60±0.17 44.26±1.12 19.70±0.21 18.65±0.89 36.89±0.52 10.85±7.72 23.23±3.65 44.28±0.63 13.11±0.30 Average 40.57 56.91 42.13 8.10 41.79 19.07 16.31 35.47 13.73 16.92 44.06 11.56 Overall 20.48 44.56 21.62 - - - - - - - - - Phi 4 26.31±0.94 45.80±0.40 22.95±21.83 9.90±0.42 53.42±1.37 22.01±0.33 16.77±3.99 56.18±5.95 7.93±9.12 13.97±0.87 42.10±1.26 9.09±5.08 8 27.82±0.77 47.18±1.05 29.79±17.53 10.28±0.25 55.48±0.44 23.00±0.47 17.38±0.10 56.77±0.33 5.64±0.00 12.38±6.19 43.81±1.42 11.27±0.42 16 27.72±0.35 46.85±0.78 44.09±1.60 10.52±0.36 55.81±0.82 22.67±0.36 17.10±0.95 56.79±2.91 5.74±0.26 14.10±4.25 44.87±1.46 9.10±5.09 32 28.34±0.28 45.98±0.75 39.66±15.26 12.11±0.16 60.24±0.77 24.79±0.71 17.84±0.75 59.63±0.83 14.36±13.57 24.80±0.06 44.16±0.90 11.67±0.20 64 29.65±0.37 46.10±1.15 38.85±21.73 11.89±0.10 60.93±0.27 26.07±0.57 18.40±0.17 60.69±0.21 5.59±0.00 23.92±1.19 43.99±0.61 12.09±0.20 128 32.79±0.30 47.51±0.81 47.76±4.55 12.15±0.30 61.49±1.11 25.42±0.72 19.18±0.24 61.01±0.63 27.82±16.29 25.79±0.05 44.24±0.63 12.98±0.22 Average 28.77 46.57 37.18 11.14 57.90 23.99 17.78 58.51 11.18 19.16 43.86 11.03 Overall 19.21 51.71 20.85 - - - - - - - - - Qwen 4 33.81±2.57 52.71±0.68 20.95±19.44 10.14±0.27 54.85±1.00 21.56±0.44 13.27±1.88 49.93±4.79 17.70±8.09 11.73±0.88 41.68±0.92 6.74±6.15 8 34.58±2.38 54.19±1.50 31.16±12.62 11.63±0.25 58.04±0.76 23.38±1.56 13.00±1.83 47.60±4.12 10.64±8.26 15.53±5.88 42.42±1.73 8.03±5.13 16 33.49±1.46 52.34±0.69 25.49±2.77 12.93±0.28 61.11±0.52 26.07±0.98 13.72±0.47 50.06±1.89 7.20±0.38 21.49±0.04 42.23±0.66 11.32±0.10 32 34.77±0.88 51.12±1.16 31.98±12.38 13.96±0.76 60.98±0.58 27.40±0.60 16.29±2.69 57.07±6.86 5.84±1.36 24.77±0.06 43.90±0.82 11.69±0.12 64 37.09±0.74 50.83±1.05 19.19±2.31 15.96±0.53 62.74±0.74 29.28±2.24 15.18±0.90 55.50±2.56 6.87±1.15 20.83±4.84 41.59±1.30 9.55±5.34 128 36.27±0.39 49.19±1.16 28.11±13.11 19.81±1.73 62.60±0.50 32.19±1.42 16.31±1.27 56.94±2.78 6.35±0.37 25.71±0.06 43.27±0.83 10.28±5.75 Average 35.00 51.73 26.15 14.07 60.05 26.65 14.63 52.85 9.10 20.01 42.52 9.60 Overall 20.93 51.79 17.87 - - - - - - - - - Qwen (7B) 4 39.47±3.31 60.79±1.26 45.47±0.49 15.07±13.36 50.52±5.73 15.91±8.91 16.38±6.92 43.03±8.36 20.69±3.79 12.21±4.05 45.62±1.71 11.45±0.17 8 43.04±1.19 60.80±0.82 43.57±0.43 10.01±0.54 53.57±1.82 21.20±0.55 34.70±22.92 57.42±16.53 4.19±3.90 14.94±3.88 46.74±1.40 11.50±0.24 16 41.29±1.83 57.96±1.65 38.61±4.80 11.09±0.52 56.52±1.76 24.73±0.83 21.83±13.36 46.58±9.26 18.32±8.83 20.10±3.93 47.63±1.55 12.13±0.47 32 44.86±1.45 60.74±0.68 46.04±2.29 11.39±0.18 56.67±0.47 21.68±1.81 18.66±5.53 49.39±12.38 6.63±0.83 20.33±5.64 47.92±1.28 12.42±0.51 64 48.01±0.53 60.77±0.94 45.99±3.49 11.53±0.09 57.33±0.58 22.10±0.45 16.22±1.34 45.24±1.97 6.88±0.50 23.65±1.21 46.07±0.61 12.04±0.64 128 46.13±1.74 58.33±0.83 47.20±1.67 11.62±0.10 56.16±0.51 21.90±0.56 26.21±21.91 51.83±10.64 6.58±4.51 21.30±7.30 47.43±0.32 13.92±0.16 Average 43.80 59.90 44.48 11.79 55.13 21.25 22.33 48.92 10.55 18.76 46.90 12.24 Overall 24.17 52.71 22.13 - - - - - - - - - Qwen-VL (7B) 4 38.00±3.00 60.23±0.95 40.36±4.25 13.05±7.83 54.32±6.27 18.67±4.05 14.09±0.89 46.86±7.25 24.60±3.94 15.13±3.79 43.08±1.71 6.73±6.14 8 41.24±0.51 60.75±0.76 43.12±2.59 10.03±0.18 53.88±1.00 23.10±0.80 14.78±2.19 44.59±2.66 20.97±3.05 15.42±6.72 43.45±1.76 11.31±0.20 16 39.75±1.48 57.65±1.11 39.15±1.98 10.52±0.23 55.44±1.28 24.42±0.66 15.96±1.31 47.45±4.83 20.18±3.90 15.14±4.89 45.08±0.80 11.92±0.25 32 42.85±0.35 57.51±0.41 41.68±3.27 16.67±13.24 57.35±4.05 26.62±6.31 14.18±1.14 45.40±2.53 24.49±1.21 17.73±4.54 44.38±1.24 11.81±0.23 64 46.38±0.42 58.88±0.63 43.12±5.53 11.81±1.05 59.03±2.47 25.41±0.53 14.28±1.89 47.48±2.68 22.65±3.25 18.24±6.57 43.24±0.74 11.96±0.16 128 45.70±0.60 56.66±0.86 36.96±6.25 12.07±0.22 60.06±0.77 25.36±0.93 16.65±0.36 49.39±1.10 22.79±3.07 21.90±7.78 45.05±0.29 13.05±0.07 Average 42.32 58.61 40.73 12.36 56.68 23.93 14.99 46.86 22.61 17.26 44.05 11.13 Overall 21.73 51.55 24.60 - - - - - - - - - 26
Table 14: Results of Isolation Forest on LLM features, pre-trained, with Interpolation tokenisation. Model Window Size PSM PUMP SWaT WaDi AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 GPT 4 32.41±0.69 57.64±1.64 39.68±4.47 15.15±0.30 65.96±0.65 30.64±0.98 36.39±8.54 65.69±1.11 45.21±3.51 11.46±4.23 39.86±1.69 11.18±0.19 8 32.82±1.18 57.45±1.61 41.72±5.00 16.12±0.84 67.45±0.62 31.73±1.55 46.80±6.62 66.62±0.86 50.09±3.62 10.51±6.86 38.98±2.43 11.54±0.29 16 32.54±0.62 55.82±1.14 37.43±2.91 16.24±0.35 67.49±0.40 31.20±1.32 44.14±14.42 66.20±1.97 49.00±8.70 9.87±4.44 40.30±1.26 11.56±0.18 32 32.92±0.41 54.08±0.94 35.81±4.44 17.14±1.08 67.92±1.27 32.98±2.14 53.10±6.01 67.71±0.76 55.55±7.40 15.22±6.46 43.17±2.77 12.53±0.16 64 34.90±0.47 53.27±0.96 34.07±0.82 17.29±2.22 66.76±0.95 32.78±1.91 49.43±8.92 66.21±1.26 51.76±9.00 13.87±6.10 42.50±3.11 12.67±0.35 128 36.61±1.15 50.90±1.69 34.05±1.67 16.71±1.35 65.60±0.87 31.34±2.19 38.57±16.42 62.34±2.28 45.23±8.79 16.06±7.13 43.82±2.45 13.37±0.41 Average 33.70 54.86 37.13 16.44 66.86 31.78 44.74 65.79 49.47 12.83 41.44 12.14 Overall 26.93 57.24 32.63 - - - - - - - - - Mistral 4 32.88±0.89 56.78±0.92 37.38±5.91 18.47±0.78 74.92±1.36 38.51±0.99 26.36±10.52 64.59±3.06 36.03±4.84 21.40±3.10 45.40±1.33 11.96±0.32 8 33.17±0.57 56.34±0.69 37.81±6.80 19.49±0.27 76.49±0.52 41.25±1.36 27.43±13.12 64.59±3.40 37.14±6.96 18.77±2.85 43.75±1.33 12.17±0.12 16 33.53±0.92 54.53±1.18 34.18±4.22 19.26±0.39 75.56±0.43 39.39±2.03 29.37±10.70 65.06±2.11 37.84±7.99 20.46±3.68 44.29±1.66 11.75±0.17 32 34.47±1.02 54.39±1.41 33.68±5.72 19.55±0.24 75.29±0.51 39.75±0.96 22.67±14.05 61.49±3.85 30.49±3.99 21.18±2.90 46.52±0.85 12.53±0.22 64 38.13±0.91 53.81±0.87 36.26±10.26 18.91±0.40 73.14±0.59 40.53±1.36 27.58±7.28 63.85±1.54 34.06±1.88 20.80±2.60 45.15±0.95 12.88±0.25 128 37.75±0.88 51.38±1.68 32.55±9.47 19.43±3.48 71.14±1.02 38.31±0.99 31.53±11.76 60.90±4.69 35.80±6.10 23.84±2.35 46.90±2.01 13.37±0.23 Average 34.99 54.54 35.31 19.18 74.43 39.62 27.49 63.41 35.23 21.08 45.34 12.44 Overall 25.68 59.43 30.65 - - - - - - - - - Phi 4 28.21±0.39 51.77±1.28 37.27±3.46 15.33±0.57 67.44±0.95 30.74±2.63 51.15±7.49 67.24±0.99 51.82±7.52 13.83±7.86 41.41±3.04 11.45±0.27 8 28.86±0.73 53.75±1.46 44.25±1.20 16.01±0.50 68.54±1.08 32.32±1.36 36.58±12.04 65.79±1.57 43.78±7.33 15.86±7.24 40.43±2.64 11.54±0.12 16 29.44±0.54 53.60±0.42 43.36±2.19 16.03±1.17 68.41±2.31 32.96±2.44 47.78±12.76 67.37±1.41 50.06±10.85 16.31±5.60 41.39±1.81 11.46±0.27 32 30.25±0.87 52.93±0.91 44.61±1.50 16.22±1.11 67.26±1.72 33.59±2.03 46.24±6.06 67.08±1.05 47.75±5.72 16.54±7.78 40.59±3.86 11.62±0.13 64 31.03±0.66 49.71±0.85 42.21±3.28 15.34±0.88 65.05±1.48 31.30±0.91 30.35±14.04 63.45±2.68 40.11±6.25 13.41±5.27 41.33±1.29 12.21±0.23 128 33.05±0.61 49.57±1.16 50.57±1.09 15.43±0.76 64.45±0.26 30.05±0.74 42.00±13.87 62.89±2.67 46.19±7.93 19.48±5.22 42.26±2.66 13.02±0.26 Average 30.14 51.89 43.71 15.73 66.86 31.82 42.35 65.64 46.62 15.90 41.24 11.88 Overall 26.03 56.41 33.51 - - - - - - - - - Qwen 4 51.87±1.32 69.32±0.82 51.06±1.07 17.41±0.40 72.98±0.73 35.84±0.58 23.84±13.70 63.11±3.87 36.99±10.11 17.74±5.21 44.57±2.51 11.67±0.23 8 50.72±0.64 67.80±0.58 49.21±1.19 17.94±0.43 73.91±0.53 36.15±0.74 30.71±12.67 65.32±3.50 39.47±8.41 13.93±4.75 43.09±2.27 11.74±0.15 16 49.67±1.47 65.46±0.73 48.48±1.00 18.05±0.36 73.46±0.30 37.64±2.20 30.23±9.82 65.67±2.19 39.64±6.72 17.53±4.54 43.15±2.01 11.86±0.26 32 49.73±0.75 65.60±0.81 49.17±1.15 18.21±0.55 72.49±0.83 38.24±1.85 22.81±4.33 63.79±2.11 35.33±4.70 20.83±8.74 45.49±3.45 12.44±0.43 64 50.82±1.53 63.96±1.38 48.98±1.98 17.67±0.66 71.19±0.89 37.59±0.67 30.32±6.62 64.91±1.17 37.92±4.80 20.07±6.02 44.69±2.36 12.77±0.27 128 50.64±1.50 60.96±1.38 45.77±1.61 16.93±0.77 69.27±1.18 35.20±1.65 24.44±10.58 60.68±2.70 33.97±3.53 19.92±6.31 44.11±2.78 13.35±0.28 Average 50.58 65.51 48.78 17.70 72.22 36.77 27.06 63.91 37.22 18.33 44.18 12.31 Overall 28.42 61.46 33.77 - - - - - - - - - Qwen (7B) 4 24.73±0.99 45.19±1.86 42.81±0.86 12.99±1.02 60.51±1.87 25.83±1.24 36.08±10.24 65.95±1.94 43.81±6.96 13.25±4.07 41.20±1.34 11.62±0.32 8 25.12±0.38 45.24±1.24 35.23±19.70 12.34±0.74 59.86±1.69 24.93±1.20 40.30±16.55 66.08±2.41 48.03±11.23 12.69±8.08 41.46±2.55 11.84±0.33 16 25.32±0.56 45.65±0.96 44.15±1.09 12.60±0.30 60.26±1.08 25.45±0.59 40.38±13.99 66.34±2.10 48.06±9.68 15.44±4.75 43.92±2.98 11.85±0.24 32 26.63±0.65 44.78±1.72 37.08±19.24 13.01±0.37 59.74±1.16 26.45±2.21 44.65±10.19 66.82±1.11 47.46±8.29 19.68±5.72 45.18±2.42 12.24±0.46 64 28.66±0.44 44.87±1.18 48.88±0.75 12.85±1.15 58.57±2.09 26.47±1.76 39.51±11.77 65.71±1.27 47.08±9.94 19.81±5.69 45.31±2.34 12.48±0.20 128 28.54±0.48 39.71±1.33 51.71±0.42 12.02±0.62 55.51±1.51 24.22±1.18 42.99±10.52 63.90±1.11 46.40±5.22 23.02±3.52 45.37±2.03 13.43±0.38 Average 26.50 44.24 43.31 12.63 59.08 25.56 40.65 65.80 46.81 17.31 43.74 12.24 Overall 24.28 53.21 31.98 - - - - - - - - - Qwen-VL (7B) 4 25.89±0.46 46.68±0.57 36.66±15.40 13.58±0.38 62.76±0.79 27.10±1.67 31.58±13.83 64.82±2.02 43.96±6.23 15.07±3.66 41.39±1.18 11.57±0.31 8 25.58±0.54 46.42±0.92 43.45±1.11 13.89±0.65 63.29±1.23 28.10±2.67 27.72±11.67 63.97±1.71 40.42±3.22 18.26±6.37 43.75±2.08 11.68±0.21 16 26.08±0.71 46.39±1.09 44.56±0.35 15.54±0.80 65.90±0.56 29.90±1.32 41.74±14.38 66.63±2.64 47.28±6.82 18.01±6.17 43.47±3.19 11.54±0.30 32 27.30±0.55 45.89±0.59 36.06±20.27 15.07±0.57 64.48±1.09 32.03±1.66 43.65±10.74 66.77±1.52 46.88±4.83 15.99±8.89 44.10±3.58 12.31±0.26 64 29.86±0.77 46.37±1.84 48.49±0.71 14.61±0.26 63.24±0.45 30.99±0.78 30.18±13.48 63.33±4.01 40.23±6.78 19.28±3.79 45.39±1.33 12.71±0.15 128 31.44±0.47 45.18±1.03 41.93±22.09 14.03±0.22 60.74±0.36 29.59±0.73 32.16±8.81 61.56±2.28 39.72±4.22 26.11±0.10 47.84±1.05 13.91±0.42 Average 27.69 46.16 41.86 14.45 63.40 29.62 34.51 64.51 43.08 18.79 44.32 12.29 Overall 23.86 54.60 31.71 - - - - - - - - - Table 15: Results random 3-layers MLP model and random Linear projection with (embedding size of 768). Model Window Size PSM PUMP SWaT WaDi AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 Linear 4 22.18±1.16 36.07±2.22 1.95±2.45 9.14±0.97 46.68±2.60 10.23±9.40 7.16±0.12 17.95±1.30 13.06±11.92 3.77±0.04 27.31±1.01 7.04±5.60 8 22.53±0.60 37.73±1.49 2.26±2.34 14.24±2.00 58.57±2.68 25.34±4.16 22.26±4.34 56.25±2.44 27.68±3.31 3.66±0.05 24.96±1.14 4.50±6.16 16 27.12±0.65 42.40±0.85 5.73±2.05 13.03±0.49 55.13±0.57 22.59±1.06 47.51±3.31 65.68±0.58 47.66±2.30 3.70±0.07 26.01±1.30 11.22±0.03 32 31.51±1.52 45.80±3.95 12.36±5.66 11.95±0.62 51.44±1.69 20.53±0.74 58.92±0.81 68.46±0.47 59.20±1.97 4.28±0.30 28.62±0.62 6.47±3.61 64 35.38±1.32 45.99±1.88 15.15±4.23 10.49±0.69 47.83±1.70 17.13±2.06 59.35±1.82 68.20±0.63 63.28±3.83 4.78±0.33 32.69±0.98 4.76±2.12 128 38.02±2.57 46.38±2.16 14.56±6.50 16.01±2.13 50.12±1.13 22.75±1.95 55.83±2.23 65.86±0.21 58.64±5.84 5.13±0.11 35.06±0.66 7.58±5.08 Average 29.46 42.40 8.67 12.48 51.63 19.76 41.84 57.07 44.92 4.22 29.11 6.93 Overall 22.00 45.05 20.07 - - - - - - - - - MLP 4 27.78±1.01 47.93±1.47 24.53±14.35 8.18±0.24 42.72±1.05 7.18±9.83 42.98±4.11 63.37±1.30 42.63±2.72 5.75±0.42 47.21±0.71 10.32±2.05 8 26.88±1.45 44.80±2.80 12.46±15.11 8.29±0.32 42.85±1.37 11.07±9.37 44.98±5.68 63.81±0.72 45.49±3.00 6.38±0.55 49.47±0.76 12.64±0.30 16 28.35±1.53 42.56±1.43 15.65±17.13 9.65±0.32 45.56±0.73 12.95±1.32 48.41±4.25 64.07±0.80 49.15±3.49 7.36±1.42 50.58±0.80 13.16±0.38 32 29.90±1.33 43.19±2.14 6.62±3.16 11.00±1.35 48.52±1.94 18.09±2.47 49.25±1.49 63.81±0.53 48.35±2.06 6.89±0.28 48.14±1.26 12.58±0.25 64 32.00±1.56 43.70±0.77 5.46±2.67 18.32±3.40 51.90±0.84 23.30±1.08 50.70±4.33 64.07±0.66 51.99±4.57 6.07±0.73 45.75±0.93 11.99±0.92 128 33.99±1.23 41.68±2.69 8.77±2.52 19.71±2.34 49.43±0.78 22.84±1.71 42.25±3.55 61.54±0.70 43.02±4.74 6.76±0.58 45.63±1.14 10.92±2.42 Average 29.82 43.98 12.25 12.53 46.83 15.90 46.43 63.44 46.77 6.53 47.80 11.94 Overall 23.83 50.51 21.71 - - - - - - - - - 27
Table 16: Results of Isolation Forest on LLM features, randomly initialised, with Padding tokenisation. Model Window Size PSM PUMP SWaT WaDi AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 GPT 4 32.95±1.22 57.44±1.80 38.27±5.03 18.42±0.46 74.88±0.76 38.92±1.29 34.47±8.91 65.79±1.80 38.29±3.90 16.55±0.40 41.37±1.01 11.55±0.43 8 34.33±0.95 58.02±1.08 41.70±5.20 19.47±0.34 76.99±0.45 40.80±1.50 17.63±3.93 60.50±2.55 30.11±2.50 17.64±2.32 42.84±1.21 11.91±0.17 16 35.23±1.82 55.55±0.61 34.54±6.59 19.75±0.18 77.05±0.32 40.58±1.87 18.69±3.51 61.58±2.68 31.92±4.57 15.98±4.28 43.35±1.05 12.25±0.37 32 35.36±1.15 54.04±0.45 30.18±1.52 20.09±0.35 76.72±0.58 42.22±1.11 30.66±14.25 63.94±3.27 36.35±7.92 18.28±2.91 44.77±0.88 12.66±0.31 64 37.58±1.40 52.75±0.84 30.10±6.15 19.13±0.45 74.86±0.76 40.74±1.11 26.53±12.91 62.40±3.41 33.70±7.38 22.22±2.90 46.10±1.54 12.99±0.28 128 38.29±2.07 50.69±1.73 25.17±2.66 18.80±0.18 73.97±0.28 38.48±0.62 17.40±2.29 58.15±1.51 31.55±2.63 24.09±4.39 46.92±0.73 13.58±0.27 Average 35.62 54.75 33.33 19.28 75.74 40.29 24.23 62.06 33.65 19.13 44.23 12.49 Overall 24.56 59.19 29.94 - - - - - - - - - Mistral 4 33.48±1.06 56.32±1.03 37.13±8.31 16.17±0.71 69.05±1.53 34.39±1.41 47.27±9.42 67.94±0.72 49.79±6.28 23.01±1.90 44.48±1.24 11.19±0.17 8 33.34±0.67 56.87±0.99 42.60±1.61 16.06±0.81 68.75±1.65 32.80±2.59 50.87±6.95 68.08±1.06 51.40±10.49 20.33±5.33 42.68±2.32 11.35±0.10 16 33.94±0.65 55.17±0.79 37.70±4.39 16.97±0.96 69.54±1.55 35.94±2.85 53.87±4.65 68.35±0.56 54.53±6.57 24.03±0.07 44.63±0.92 11.41±0.26 32 37.35±1.73 58.08±0.26 39.57±6.05 15.78±0.41 65.96±0.58 32.52±0.86 51.51±5.23 68.19±0.71 55.28±4.85 24.93±0.05 45.87±0.57 11.97±0.24 64 37.96±2.31 55.06±2.62 45.65±3.40 15.77±0.46 66.09±1.30 32.93±0.78 51.84±7.12 67.64±0.56 56.68±6.69 24.93±0.05 45.46±0.56 12.43±0.20 128 39.45±1.58 54.87±1.17 44.57±6.77 15.31±1.16 65.05±2.70 30.69±1.30 52.74±5.92 66.15±0.98 55.27±7.84 25.83±0.03 44.76±0.33 13.06±0.25 Average 35.92 56.06 41.20 16.01 67.41 33.21 51.35 67.72 53.83 23.84 44.65 11.90 Overall 31.78 58.96 35.04 - - - - - - - - - Phi 4 33.89±1.06 56.90±1.93 42.65±1.80 15.83±0.89 67.82±1.53 33.82±2.61 54.00±3.71 68.65±0.50 53.29±3.10 23.16±2.49 45.01±1.29 11.51±0.25 8 34.05±0.98 57.54±1.50 43.13±3.24 16.21±0.52 69.19±1.03 33.27±0.63 50.57±2.72 67.92±0.44 48.63±4.37 23.96±0.06 43.72±0.94 11.31±0.09 16 33.56±2.14 55.65±1.62 42.32±2.50 16.68±0.26 69.10±0.60 34.87±1.62 50.82±9.98 68.36±1.24 53.77±6.12 24.03±0.04 44.64±0.62 11.39±0.24 32 38.13±1.34 58.09±1.20 42.15±5.33 15.61±0.58 66.22±1.14 31.88±1.69 46.38±10.80 67.33±1.06 44.74±4.35 24.64±0.51 45.13±0.69 11.63±0.18 64 37.85±1.41 56.19±1.33 46.94±1.41 15.38±0.90 65.06±1.67 31.87±2.21 44.74±6.95 66.59±0.67 46.19±5.69 23.99±1.80 44.70±1.72 12.04±0.14 128 38.88±0.89 54.84±1.02 45.15±7.28 14.57±0.74 63.72±1.59 29.61±1.61 51.69±4.97 65.74±0.71 53.94±7.71 25.08±1.45 44.34±1.45 13.18±0.20 Average 36.06 56.53 43.72 15.71 66.85 32.55 49.70 67.43 50.09 24.14 44.59 11.84 Overall 31.40 58.85 34.55 - - - - - - - - - Qwen 4 33.27±2.35 56.41±2.40 39.03±4.15 16.43±0.62 70.67±1.02 34.76±2.54 34.14±10.37 66.62±1.37 42.10±4.87 18.17±6.91 44.67±2.15 11.80±0.26 8 35.28±2.07 56.43±2.99 35.53±10.76 16.57±1.18 70.19±2.04 35.40±3.43 50.48±3.93 68.32±0.79 50.35±4.67 21.35±3.75 43.46±2.60 11.36±0.14 16 33.65±1.04 55.77±0.46 41.44±5.35 18.28±0.84 73.06±1.49 39.29±2.66 51.44±5.11 68.03±0.82 50.03±5.69 22.60±2.03 44.35±1.37 11.32±0.13 32 35.41±2.25 56.00±2.59 39.49±9.02 17.12±1.13 69.67±2.41 36.62±3.51 35.75±8.43 66.00±1.22 39.10±5.31 21.99±4.94 45.24±2.15 11.98±0.55 64 37.20±1.08 53.83±2.53 40.95±11.83 15.90±0.96 66.76±2.30 34.41±2.01 42.92±3.52 66.44±0.38 43.76±2.91 23.82±1.53 44.03±0.77 9.61±5.38 128 38.14±2.69 53.06±3.15 38.14±12.37 15.56±0.44 65.52±1.12 33.20±1.76 42.40±5.65 63.65±0.89 39.50±3.80 24.39±3.04 44.68±1.42 13.11±0.18 Average 35.49 55.25 39.10 16.64 69.31 35.61 42.86 66.51 44.14 22.05 44.41 11.53 Overall 29.26 58.87 32.59 - - - - - - - - - Qwen (7B) 4 32.96±1.09 57.56±1.32 42.55±3.12 16.96±0.32 70.23±0.65 34.65±1.84 52.08±4.56 68.24±0.76 52.12±5.55 24.24±0.05 45.02±0.68 11.25±0.33 8 33.41±1.17 56.68±1.42 42.35±3.12 16.02±0.88 68.96±1.47 31.75±1.67 54.17±7.19 68.58±0.49 59.73±7.71 23.99±0.05 44.15±0.69 11.41±0.17 16 33.76±1.14 54.87±1.66 38.48±4.53 16.38±0.33 68.29±1.05 35.14±1.48 55.34±5.56 68.98±0.80 58.09±5.57 24.05±0.05 44.94±0.61 11.51±0.19 32 38.00±0.90 58.47±2.06 39.14±6.58 16.14±1.71 66.42±3.22 32.28±2.82 56.02±4.49 68.65±0.64 59.47±6.08 24.91±0.03 45.70±0.41 11.77±0.25 64 38.38±2.47 55.98±2.10 39.88±11.48 15.85±0.62 66.11±0.64 32.86±2.82 49.63±5.46 67.63±0.85 50.73±5.58 24.92±0.07 45.39±0.93 12.27±0.42 128 38.14±0.23 55.13±0.65 49.36±2.50 15.08±0.50 64.87±0.67 29.45±1.37 50.22±5.18 65.75±0.89 49.39±5.80 25.83±0.07 44.70±0.96 13.02±0.29 Average 35.77 56.45 41.96 16.07 67.48 32.69 52.91 67.97 54.92 24.66 44.98 11.87 Overall 32.35 59.22 35.36 - - - - - - - - - Qwen-VL (7B) 4 32.01±1.84 55.73±1.11 42.00±2.72 16.55±0.59 69.31±0.92 34.99±2.44 55.22±3.41 68.67±0.57 53.12±5.54 24.25±0.04 45.02±0.59 11.24±0.11 8 33.01±1.58 56.31±0.97 41.82±2.12 15.90±0.78 68.19±1.35 31.99±2.77 55.01±2.59 68.72±0.68 52.25±3.53 23.24±1.66 43.46±1.19 11.18±0.14 16 34.09±0.87 55.22±1.17 36.49±6.70 16.96±0.58 69.19±0.91 34.94±1.71 52.32±8.92 68.15±1.10 53.79±9.58 23.89±0.32 44.30±1.06 11.37±0.22 32 38.74±1.41 57.67±1.32 41.96±3.90 16.95±1.10 68.27±1.93 34.91±3.44 56.08±4.59 68.74±0.92 59.14±7.00 22.82±4.56 44.01±2.36 11.82±0.19 64 37.97±1.49 55.46±0.85 46.95±1.66 15.39±0.96 65.20±1.95 31.68±3.25 55.11±3.72 67.95±0.38 56.39±3.65 24.89±0.06 45.00±0.80 12.25±0.19 128 38.14±1.77 54.00±1.88 48.45±2.53 14.59±0.65 63.75±1.88 29.32±0.98 46.02±12.70 65.55±1.32 48.82±5.49 25.83±0.04 44.77±0.50 12.92±0.24 Average 35.66 55.73 42.94 16.06 67.32 32.97 53.29 67.96 53.92 24.15 44.43 11.80 Overall 32.29 58.86 35.41 - - - - - - - - - 28
Table 17: Results of Isolation Forest on LLM features, randomly initialised, with Closest Vocabulary tokenisation. Model Window Size PSM PUMP SWaT WaDi AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 GPT 4 30.53±2.59 53.35±2.89 39.19±4.85 9.52±1.75 49.58±9.81 22.27±2.50 12.73±3.29 42.56±11.03 18.05±5.01 9.10±4.18 42.32±3.89 11.39±0.35 8 31.46±2.89 51.02±5.31 32.91±10.05 12.58±2.26 61.43±6.35 26.20±5.40 13.73±1.80 48.18±6.49 6.58±2.07 11.89±6.45 44.39±1.24 11.24±0.98 16 30.44±0.87 51.57±1.56 35.87±4.82 12.22±3.17 58.33±7.25 25.86±6.19 13.55±2.63 49.45±6.07 12.29±7.65 22.57±3.24 44.18±1.60 11.55±0.50 32 30.22±2.80 51.03±3.87 43.02±4.61 10.54±1.77 53.27±7.56 22.22±3.28 25.43±24.03 56.79±11.12 3.53±2.38 22.09±3.77 44.87±2.16 12.11±0.55 64 34.94±4.14 51.78±2.92 43.06±6.66 11.72±2.37 57.75±6.17 24.25±4.18 26.01±21.81 58.94±8.98 14.76±17.49 24.80±0.09 43.76±1.10 12.11±0.15 128 41.51±3.08 55.83±2.19 44.22±4.44 12.97±3.95 59.55±10.55 28.23±10.78 17.63±1.31 54.73±8.31 14.36±14.28 25.74±0.30 44.86±1.81 10.51±5.90 Average 33.18 52.43 39.71 11.59 56.65 24.84 18.18 51.77 11.59 19.37 44.06 11.48 Overall 20.58 51.23 21.91 - - - - - - - - - Mistral 4 34.58±4.37 53.74±3.03 27.91±14.77 19.99±16.81 61.16±19.60 29.62±15.29 13.74±4.91 50.68±14.16 13.23±7.65 14.64±5.38 44.95±0.84 10.62±1.10 8 34.78±4.77 53.46±3.32 32.30±9.57 26.37±21.37 64.00±6.97 14.24±13.02 25.71±24.16 56.16±11.87 12.12±13.74 12.68±5.59 44.49±2.75 10.02±2.83 16 33.10±5.40 53.15±3.26 37.92±3.63 9.30±1.11 49.54±5.53 22.08±4.62 28.26±20.23 59.69±13.65 12.26±11.78 19.44±6.00 43.92±2.62 9.13±5.19 32 33.89±4.01 52.71±2.66 39.44±6.55 12.79±2.50 59.83±5.26 27.08±5.19 16.18±1.93 50.82±8.62 11.41±8.14 22.55±5.46 46.84±1.11 12.19±0.22 64 34.56±2.71 52.16±2.07 37.35±11.09 18.50±6.42 64.57±8.39 27.95±9.01 15.84±1.37 59.36±4.20 30.82±10.18 23.92±1.26 43.81±1.16 11.95±0.31 128 36.18±3.85 51.42±3.50 45.79±3.68 14.01±2.43 63.07±4.95 26.43±2.06 32.55±20.59 58.60±10.59 15.85±13.69 24.71±1.15 45.97±1.29 13.35±0.44 Average 34.52 52.77 36.78 16.83 60.36 24.57 22.05 55.89 15.95 19.66 45.00 11.21 Overall 23.26 53.50 22.13 - - - - - - - - - Phi 4 28.96±2.58 51.89±2.34 39.52±7.43 12.52±6.53 55.35±8.17 21.36±2.69 13.79±1.76 46.40±2.84 19.88±7.37 11.62±2.38 44.22±2.12 10.96±0.73 8 32.97±5.62 51.47±3.39 24.12±16.29 10.39±1.40 52.79±5.52 22.42±3.73 20.17±15.05 50.26±11.03 16.10±14.71 18.18±4.79 46.32±2.63 11.97±0.62 16 32.16±4.91 50.03±4.52 25.37±16.97 12.55±3.15 61.07±10.17 28.74±7.92 26.11±23.12 57.27±11.93 4.88±2.89 18.51±5.40 44.66±2.10 11.88±0.55 32 36.30±4.97 54.18±3.49 39.88±4.07 11.91±4.29 56.52±9.67 26.97±11.18 18.34±1.70 47.75±9.24 10.39±7.44 22.42±5.55 45.38±1.06 11.77±0.21 64 35.07±3.23 51.44±2.80 43.65±8.14 14.61±4.27 62.95±5.03 29.09±3.91 15.44±3.02 53.14±4.75 14.81±12.51 22.96±4.09 43.07±2.72 9.76±5.46 128 42.03±3.49 54.93±2.21 38.30±10.90 13.58±1.82 62.00±5.06 27.30±4.24 21.69±7.90 59.04±7.26 16.74±15.79 25.95±0.17 46.09±1.94 13.44±0.47 Average 34.58 52.32 35.14 12.59 58.45 25.98 19.26 52.31 13.80 19.94 44.96 11.63 Overall 21.59 52.01 21.64 - - - - - - - - - Qwen 4 33.27±5.82 53.91±4.31 38.06±9.07 10.43±2.92 52.79±10.19 21.56±3.57 14.16±4.47 46.33±7.02 17.62±7.46 11.56±4.47 44.39±1.97 11.53±0.61 8 31.59±4.04 52.37±3.40 33.11±11.39 10.99±3.05 56.04±9.37 25.71±7.66 15.54±1.45 50.87±4.85 10.60±11.43 13.26±6.03 44.17±2.00 11.83±0.61 16 32.85±4.50 50.81±3.67 31.02±12.48 13.39±3.11 62.63±6.01 29.54±6.45 30.69±21.96 54.09±13.83 8.31±8.41 18.19±7.72 44.42±1.61 11.73±0.63 32 35.81±2.32 53.59±4.06 34.68±7.13 13.37±3.49 61.57±8.51 27.17±5.08 26.15±24.10 57.31±11.88 13.38±15.23 22.41±5.46 45.20±1.31 11.99±0.35 64 35.57±4.03 52.85±2.78 37.50±9.93 10.94±2.94 54.17±10.03 22.67±3.63 15.99±1.65 52.54±9.05 4.80±1.96 24.02±1.22 45.17±1.07 12.61±0.54 128 35.81±3.36 50.96±4.14 44.88±10.64 17.00±7.79 66.29±8.86 34.28±14.87 27.07±21.06 59.08±12.02 19.07±16.14 25.87±0.19 45.14±2.32 13.19±0.51 Average 34.15 52.41 36.54 12.69 58.92 26.82 21.60 53.37 12.30 19.22 44.75 12.15 Overall 21.91 52.36 21.95 - - - - - - - - - Qwen (7B) 4 33.29±2.96 54.82±5.13 41.66±4.72 10.29±2.90 53.19±9.92 18.47±10.87 13.46±1.83 43.33±7.27 15.43±6.84 11.87±3.73 43.63±3.08 11.55±0.33 8 32.60±6.05 52.49±2.41 39.56±5.22 12.00±1.98 60.15±6.62 26.47±6.53 13.61±1.66 46.80±7.87 8.86±7.37 13.78±7.52 44.12±1.96 11.41±0.45 16 32.47±4.41 53.34±3.31 40.50±3.19 26.64±19.56 65.83±8.44 22.63±12.81 27.90±22.05 56.94±13.28 17.86±18.86 15.54±7.65 43.76±2.42 11.11±0.84 32 32.36±2.05 52.64±1.78 39.98±5.48 14.19±3.78 60.72±8.49 19.68±11.73 22.96±11.37 57.87±8.13 4.54±2.79 19.62±6.49 45.49±1.14 10.13±3.30 64 38.38±4.17 55.31±2.73 39.40±7.03 31.01±18.95 69.74±6.44 35.98±10.38 15.81±2.92 50.37±7.56 26.43±5.57 23.92±1.20 43.90±1.30 12.11±0.16 128 37.80±3.15 52.13±3.54 47.05±6.53 18.65±10.64 65.38±6.55 29.02±3.62 28.35±14.97 58.99±7.33 22.02±17.83 21.49±7.61 44.94±1.40 13.15±0.43 Average 34.48 53.45 41.36 18.80 62.50 25.38 20.35 52.38 15.85 17.70 44.31 11.58 Overall 22.83 53.16 23.54 - - - - - - - - - Qwen-VL (7B) 4 31.23±1.70 54.20±2.28 35.73±8.06 9.90±1.55 51.62±6.91 20.81±5.15 13.62±4.46 50.36±8.76 16.83±9.92 13.19±1.85 43.69±3.12 11.50±0.41 8 31.22±3.12 51.58±1.55 32.32±12.13 10.30±2.50 53.22±8.90 21.97±3.07 22.63±17.50 54.95±11.06 6.34±5.94 16.87±7.30 43.90±0.56 11.60±0.19 16 31.83±4.78 51.13±3.52 17.98±17.47 11.44±1.20 58.79±4.53 24.62±3.89 16.88±1.12 47.75±5.89 9.94±8.41 20.40±4.47 45.60±0.62 9.85±5.52 32 36.60±5.71 54.33±3.39 24.84±16.78 13.24±3.47 60.68±8.55 27.25±7.26 15.71±1.65 52.16±4.05 15.70±8.81 23.84±1.33 43.63±1.83 9.15±5.12 64 36.49±1.87 54.24±4.17 39.52±9.98 11.27±2.64 55.37±8.76 23.47±3.77 15.88±2.71 55.88±4.21 4.73±1.56 24.80±0.07 43.85±0.99 9.52±5.33 128 41.48±3.52 55.42±0.49 40.57±10.45 13.66±0.99 62.41±3.79 26.91±1.52 27.54±20.33 61.45±6.51 21.85±19.26 21.49±7.50 44.98±2.21 13.14±0.31 Average 34.81 53.48 31.83 11.64 57.01 24.17 18.71 53.76 12.56 20.10 44.28 10.79 Overall 21.31 52.13 19.84 - - - - - - - - - 29
Table 18: Results of Isolation Forest on LLM features, randomly initialised, with Interpolation tokenisation. Model Window Size PSM PUMP SWaT WaDi AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 AUPR AUROC F1 GPT 4 34.64±0.63 60.26±1.54 44.23±3.25 17.78±1.40 73.21±3.40 36.86±2.89 48.45±5.62 68.18±0.95 48.31±4.69 13.40±2.90 40.60±1.45 11.70±0.42 8 34.88±1.52 58.75±1.34 42.95±2.76 19.17±1.64 75.42±3.86 39.33±3.96 44.93±9.10 67.64±0.85 47.71±6.05 14.45±2.39 42.04±1.38 11.85±0.31 16 34.28±1.26 57.51±0.90 40.89±3.72 19.29±1.09 74.84±3.21 39.13±3.66 46.24±13.83 67.37±1.99 48.22±12.17 16.33±3.62 43.40±1.50 11.97±0.30 32 35.88±1.72 56.53±2.03 37.08±5.26 19.11±1.33 73.88±3.54 38.94±3.43 55.69±3.88 69.31±0.71 58.58±7.57 13.92±4.30 44.44±1.93 12.51±0.14 64 37.63±2.06 54.28±2.15 34.93±2.97 18.85±1.37 72.54±3.62 39.37±4.32 46.59±5.49 66.95±0.71 47.91±5.72 19.71±3.10 43.82±1.72 12.59±0.25 128 39.48±1.51 53.69±0.76 35.38±1.95 18.14±1.29 70.54±2.81 37.00±3.32 38.06±9.78 62.96±1.59 42.70±7.89 22.62±2.98 45.07±1.53 13.63±0.35 Average 36.13 56.84 39.24 18.72 73.40 38.44 46.66 67.07 48.91 16.74 43.23 12.37 Overall 29.56 60.13 34.74 - - - - - - - - - Mistral 4 34.26±1.86 57.06±1.44 40.90±4.75 18.03±0.58 74.16±0.99 38.46±1.67 51.56±8.35 69.00±1.10 51.34±9.52 22.94±3.28 44.87±1.43 11.50±0.30 8 33.95±1.45 56.71±1.09 41.08±3.48 17.67±1.03 73.61±1.65 36.75±2.32 51.02±9.23 68.97±0.98 51.84±7.50 22.91±2.23 44.10±1.54 11.48±0.32 16 34.19±1.48 54.30±1.75 33.02±7.49 18.20±1.15 73.63±1.36 37.78±1.37 53.17±5.14 68.92±0.93 51.70±6.22 22.08±3.22 44.74±1.50 11.50±0.27 32 36.87±2.60 55.59±1.03 33.52±5.02 17.64±1.07 71.79±1.95 37.27±1.87 51.65±7.53 69.03±0.83 51.45±5.27 22.94±4.56 45.11±1.64 11.88±0.26 64 39.47±1.66 56.03±1.79 45.25±9.08 17.50±0.88 71.05±1.40 37.68±2.36 40.52±8.55 66.76±1.10 44.95±5.45 24.08±2.11 45.31±1.17 12.30±0.62 128 37.46±1.05 53.05±1.68 44.96±11.82 16.55±0.74 69.11±0.87 33.63±3.26 44.04±8.77 65.35±1.33 44.25±4.79 24.83±2.66 45.05±2.02 13.26±0.17 Average 36.03 55.46 39.79 17.60 72.22 36.93 48.66 68.00 49.25 23.30 44.86 11.99 Overall 31.40 60.14 34.49 - - - - - - - - - Phi 4 33.66±3.45 55.19±2.49 37.34±6.20 17.49±1.10 73.17±2.93 36.94±3.49 49.68±7.85 68.81±0.67 51.56±10.15 24.24±0.06 44.89±0.82 11.28±0.24 8 34.74±3.14 56.82±2.73 39.24±6.85 17.46±0.95 73.00±2.51 37.19±3.19 49.65±8.10 68.67±1.00 49.90±7.71 23.41±1.51 44.21±1.12 11.37±0.30 16 33.00±1.83 53.79±1.18 32.41±8.38 17.49±1.12 72.54±2.94 36.74±3.18 45.65±5.33 67.94±1.13 44.18±5.53 22.52±2.50 44.09±2.00 11.41±0.17 32 35.68±3.55 55.72±3.00 37.96±6.72 17.54±1.00 71.31±2.20 38.30±3.17 43.37±6.44 67.43±0.71 42.39±3.65 24.21±1.69 45.24±0.94 11.75±0.08 64 38.17±4.29 55.01±4.27 43.53±10.84 17.24±0.58 70.22±1.94 37.16±2.36 47.74±8.07 67.24±0.94 47.21±8.13 24.32±1.47 44.77±1.51 12.21±0.22 128 37.65±2.62 53.65±2.26 47.18±2.83 16.47±0.85 68.52±2.35 33.87±3.06 45.18±7.69 65.31±1.07 45.87±4.58 24.98±2.16 44.75±1.04 13.21±0.26 Average 35.48 55.03 39.61 17.28 71.46 36.70 46.88 67.57 46.85 23.95 44.66 11.87 Overall 30.90 59.68 33.76 - - - - - - - - - Qwen 4 36.98±6.91 59.36±4.90 39.23±5.70 18.59±0.77 75.08±1.19 39.68±1.80 40.18±10.20 66.45±1.86 40.86±5.65 17.61±4.05 42.98±2.65 11.77±0.33 8 37.59±6.08 58.54±4.69 40.35±8.07 18.55±0.57 75.02±1.11 37.98±1.25 41.72±7.61 67.51±0.78 41.42±3.51 21.35±3.25 44.36±2.34 11.79±0.17 16 37.20±6.50 56.97±4.69 36.33±8.02 18.63±0.76 74.52±1.13 38.37±2.64 37.07±12.05 66.18±2.25 39.38±5.62 19.16±3.90 43.93±2.23 11.99±0.25 32 37.56±5.95 55.43±5.18 35.72±9.22 18.82±0.60 74.02±1.09 39.13±0.99 43.64±10.12 67.38±1.48 43.05±4.30 22.50±5.37 46.81±0.96 12.38±0.25 64 40.16±5.29 54.98±5.18 33.34±9.61 18.01±0.33 71.64±0.52 38.68±1.72 38.52±6.55 65.58±1.12 39.92±6.85 19.61±5.27 44.08±1.62 12.36±0.47 128 39.99±4.98 52.24±5.14 27.20±8.21 17.31±0.56 69.84±1.11 35.62±2.53 31.03±9.08 61.85±1.37 34.90±2.33 23.52±2.74 45.35±1.83 13.18±0.44 Average 38.25 56.25 35.36 18.32 73.36 38.24 38.69 65.82 39.92 20.62 44.58 12.24 Overall 28.97 60.00 31.44 - - - - - - - - - Qwen (7B) 4 33.23±4.79 54.72±5.36 39.52±7.59 16.83±1.95 71.48±5.05 36.51±4.97 50.22±9.28 68.80±1.27 50.59±8.84 21.17±4.67 43.84±3.01 11.37±0.13 8 32.83±4.25 54.77±5.16 40.80±5.44 17.07±2.11 72.05±5.67 36.41±5.22 47.39±6.63 68.52±1.19 48.17±4.38 24.04±0.04 44.73±0.57 11.58±0.36 16 32.42±4.12 51.98±4.76 33.51±8.51 17.07±1.88 71.53±4.81 36.93±4.95 53.48±3.28 68.98±0.80 51.54±5.95 23.18±2.27 44.99±1.55 11.63±0.34 32 35.71±4.52 54.16±4.68 36.97±5.53 17.33±1.72 70.89±4.70 37.79±5.16 51.88±2.07 68.79±0.98 48.08±4.99 21.99±5.12 45.08±2.04 11.78±0.27 64 37.28±4.34 53.12±4.31 40.61±9.76 16.77±1.44 69.58±4.57 35.71±4.09 52.41±6.50 68.08±1.30 54.90±9.37 24.93±0.09 45.40±1.20 12.30±0.39 128 36.23±4.03 50.71±6.03 38.83±11.86 16.05±2.11 67.57±5.88 32.85±4.43 45.52±6.54 65.47±1.21 46.42±8.15 25.52±0.91 45.02±1.21 13.09±0.27 Average 34.62 53.24 38.37 16.85 70.52 36.03 50.15 68.11 49.95 23.47 44.84 11.96 Overall 31.27 59.18 34.08 - - - - - - - - - Qwen-VL (7B) 4 33.43±3.65 55.83±4.68 38.53±8.42 16.98±1.40 71.67±3.76 36.43±4.59 49.88±6.14 68.71±0.53 52.58±6.17 21.69±4.75 44.30±1.87 11.36±0.19 8 32.44±3.59 54.73±4.40 38.21±8.35 17.23±1.62 72.41±4.36 35.81±4.28 50.04±7.54 68.52±1.37 49.81±8.63 23.80±0.48 44.24±0.87 11.49±0.18 16 33.63±4.91 53.37±4.56 34.61±6.31 16.92±1.26 71.19±3.45 36.48±4.02 47.84±12.00 68.36±2.12 51.33±10.61 19.46±3.74 44.19±0.58 11.42±0.26 32 36.30±4.13 55.18±3.91 43.24±5.51 17.26±0.94 70.67±2.67 36.61±2.54 52.56±4.35 68.78±0.88 52.83±6.35 20.99±6.84 45.11±1.89 11.98±0.37 64 37.66±3.92 54.20±4.16 45.55±5.87 16.96±1.24 69.92±3.51 36.16±3.19 45.38±6.75 67.77±1.49 47.92±5.05 24.94±0.10 45.58±1.28 12.31±0.29 128 36.00±2.50 50.22±3.27 38.11±12.34 16.53±1.03 68.65±3.36 33.33±2.24 45.94±4.60 65.60±0.52 47.46±2.16 24.96±2.23 44.53±2.12 13.13±0.26 Average 34.91 53.92 39.71 16.98 70.75 35.80 48.61 67.96 50.32 22.64 44.66 11.95 Overall 30.78 59.32 34.45 - - - - - - - - - 30

Figure 10: AUROC Padding

Figure 11: AUPR Padding

Figure 12: Padding

Figure 13: AUROC Closest Vocabulary

Figure 14: AUPR Closest Vocabulary

Figure 15: Closest Vocabulary

Figure 16: AUROC Interpolation

Figure 17: AUPR Interpolation

Figure 18: Interpolation

Figure 19: WaDi time-steps translated into GPT2 Vocabulary.

Figure 20: PUMP time-steps translated into Mistral-7B Vocabulary.

Figure 21: PSM time-steps translated into Qwen2 (0.5B) Vocabulary.