Retrieval-Augmented Generation with Covariate Time Series

Kenny Ye Liang, Zhongyi Pei, Huan Zhang, Yuhui Liu, Shaoxu Song, Jianmin Wang

Abstract

While RAG has greatly enhanced LLMs, extending this paradigm to Time-Series Foundation Models (TSFMs) remains a challenge. This is exemplified in the Predictive Maintenance of the Pressure Regulating and Shut-Off Valve (PRSOV), a high-stakes industrial scenario characterized by (1) data scarcity, (2) short transient sequences, and (3) covariate coupled dynamics. Unfortunately, existing time-series RAG approaches predominantly rely on generated static vector embeddings and learnable context augmenters, which may fail to distinguish similar regimes in such scarce, transient, and covariate coupled scenarios. To address these limitations, we propose RAG4CTS, a regime-aware, training-free RAG framework for Covariate Time-Series. Specifically, we construct a hierarchal time-series native knowledge base to enable lossless storage and physics-informed retrieval of raw historical regimes. We design a two-stage bi-weighted retrieval mechanism that aligns historical trends through point-wise and multivariate similarities. For context augmentation, we introduce an agent-driven strategy to dynamically optimize context in a self-supervised manner. Extensive experiments on PRSOV demonstrate that our framework significantly outperforms state-of-the-art baselines in prediction accuracy. The proposed system is deployed in Apache IoTDB within China Southern Airlines. Since deployment, our method has successfully identified one PRSOV fault in two months with zero false alarm.

Introduction

Predictive maintenance in industrial settings often relies on Time-Series Foundation Models (TSFMs). However, these models frequently struggle with high-stakes components like the Pressure Regulating and Shut-Off Valve (PRSOV) in commercial aircraft. The challenge stems from three primary factors: data scarcity due to the rarity of critical events, extremely short transient sequences (often just 10 seconds of data), and complex covariate coupling where the target variable is driven by external forces like engine speed.

The PRSOV system and its associated time-series data (MP, IP, N2) showing covariate coupling.

Existing RAG methods often fail here because they compress data into static vector embeddings, losing the fine-grained numerical precision necessary to detect subtle mechanical wear. For short, high-precision transients, converting time series into vector embeddings actually introduces artifactual noise that masks the tiny signals of mechanical wear.

Methodology: The RAG4CTS Framework

To overcome these hurdles, we propose RAG4CTS, a training-free framework that prioritizes "time-series native" data handling.

The RAG4CTS framework: from hierarchical KB to agentic splicing augmentation.

Hierarchical Knowledge Base

Instead of vectorized embeddings, RAG4CTS utilizes a hierarchical tree structure to store raw historical data. Organized by aircraft type and tail number, this ensures lossless storage of numerical precision, which is critical for short transients.

Two-Stage Bi-Weighted Retrieval

The retrieval process is split into two stages to ensure both shape and numerical alignment:

  1. Coarse Filtering (Shape): Uses weighted cosine similarity to identify historical segments with similar trends.
  2. Fine-grain Filtering (Precision): Employs Matrix Profile distance for exact numerical matching.

A key innovation is the use of Mutual Information to weight covariates. By forcing the retriever to align the "driving forces" (e.g., Engine Speed), the model stays grounded in physical reality.

Agent-Driven Context Augmentation

RAG4CTS avoids the pitfalls of fixed-length context by using an agent-driven strategy. The system uses the top-ranked match as a "guinea pig" to evaluate how much additional context improves prediction accuracy before finalizing the input for the TSFM backbone. This self-supervised strategy finds the optimal "context sweet spot" for each specific query.

Experimental Setup

The framework was evaluated using the CSA-PRSOV Dataset from China Southern Airlines. This real-world dataset includes over 112,000 samples from Boeing 777 and Airbus A320 fleets. Each sample consists of extremely short (18-point) sequences across three dimensions: Manifold Pressure (MP), Engine Speed (N2), and Intermediate Pressure (IP).

Results and Impact

RAG4CTS consistently outperformed state-of-the-art supervised models and foundation models. On the B777L dataset, it achieved a Mean Squared Error (MSE) of 0.058, significantly lower than fine-tuned Chronos-2 (0.296) and zero-shot Chronos-2 (1.542). The model also demonstrated remarkable zero-shot power, performing well on new aircraft by retrieving knowledge from similar planes in the fleet.

Beyond metrics, the system's real-world efficacy was proven through deployment in Apache IoTDB at China Southern Airlines. Within two months of live operation, it successfully identified a confirmed PRSOV fault with zero false alarms, demonstrating its reliability in operational environments.

Conclusion

RAG4CTS demonstrates that for high-precision industrial time series, raw data retrieval and physics-aligned covariate matching are superior to standard vector-based RAG. While the system currently relies on a healthy baseline for comparison, its success in identifying faults with minimal data suggests broad applicability to other complex systems like power grids or battery management.

Summary updated

Abstract

While RAG has greatly enhanced LLMs, extending this paradigm to Time-Series Foundation Models (TSFMs) remains a challenge. This is exemplified in the Predictive Maintenance of the Pressure Regulating and Shut-Off Valve (PRSOV), a high-stakes industrial scenario characterized by (1) data scarcity, (2) short transient sequences, and (3) covariate coupled dynamics. Unfortunately, existing time-series RAG approaches predominantly rely on generated static vector embeddings and learnable context augmenters, which may fail to distinguish similar regimes in such scarce, transient, and covariate coupled scenarios. To address these limitations, we propose RAG4CTS, a regime-aware, training-free RAG framework for Covariate Time-Series. Specifically, we construct a hierarchal time-series native knowledge base to enable lossless storage and physics-informed retrieval of raw historical regimes. We design a two-stage bi-weighted retrieval mechanism that aligns historical trends through point-wise and multivariate similarities. For context augmentation, we introduce an agent-driven strategy to dynamically optimize context in a self-supervised manner. Extensive experiments on PRSOV demonstrate that our framework significantly outperforms state-of-the-art baselines in prediction accuracy. The proposed system is deployed in Apache IoTDB within China Southern Airlines. Since deployment, our method has successfully identified one PRSOV fault in two months with zero false alarm.
BibTeX
@misc{liang2026retrieval,
  author = {Kenny Ye Liang and Zhongyi Pei and Huan Zhang and Yuhui Liu and Shaoxu Song and Jianmin Wang},
  title = {{Retrieval-Augmented Generation with Covariate Time Series}},
  year = {2026},
  eprint = {2603.04951},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.04951},
}
Figure