Graph Generation Powered with LLMs for Boosting Multivariate Time-Series Representation Learning

Yucheng Wang, Min Wu, Ruibing Jin, Xiaoli Li, Lihua Xie, Zhenghua Chen

TL;DR

K-Link is a novel framework that uses Large Language Models (LLMs) to inject "universal knowledge" into the graph generation process for multivariate time-series data. By aligning data-driven sensor correlations with physical principles extracted from LLMs, it significantly improves the accuracy of Graph Neural Networks (GNNs) on complex forecasting and classification tasks without adding any computational overhead during inference.

What Problem Does This Paper Address?

Multivariate Time-Series (MTS) data—such as readings from dozens of sensors in a jet engine or a wearable device—contains complex spatial and temporal dependencies. GNNs are the state-of-the-art tool for capturing these, but they require a graph structure that MTS data doesn't inherently possess.

Existing methods try to "learn" this graph directly from the data. However, when training datasets are small, these models often fall victim to data bias. They might find spurious correlations—for example, incorrectly concluding that fan speed is more related to pressure than temperature simply because of a quirk in a limited sample. This leads to poor generalization and inaccurate models.

![Fig.

  1. The problem of data bias in graph generation and how LLMs can provide a "physical principle" correction.](/figures/art_bbf90ed6968f44a5ba13cd12f5ca46c0)

Methods

The authors introduce K-Link, a framework that leverages the extensive world knowledge encoded in LLMs to ground the graph generation process in reality.

  1. Knowledge-Link Branch: The system uses two types of prompts to query an LLM (like GPT-2):
  2. Sensor-level prompts: Describe the specific sensor and its task (e.g., "a sensor of physical fan speed").
  3. Label-level prompts: Provide context about the system's state (e.g., "degradation stage of a machine"). The LLM's text encoder generates semantic embeddings for these descriptions, which are used to build a Knowledge-Link graph ($G^K$) where edges represent the semantic similarity between sensors.

  4. Graph Alignment Module: This is the core innovation. During training, the framework forces the data-driven graph ($G^S$) to align with the LLM-driven graph ($G^K$) through:

  5. Node Alignment: Using contrastive loss (InfoNCE) to ensure that a sensor's learned feature from the raw data matches its semantic embedding from the LLM.
  6. Edge Alignment: Minimizing the Mean Square Error (MSE) between the two graphs' adjacency matrices, ensuring learned correlations respect universal physical principles.

![Fig.

  1. The overall K-Link framework, showing how the Knowledge-Link branch guides the MTS Data Representation Learning branch.](/figures/art_6f6e5b47fc5746f7b960bb20bf729dd1)

Crucially, the LLM is only used during training. During inference, it is discarded, leaving a standard, high-speed GNN that has been "taught" better structural priors.

Datasets

The authors evaluated K-Link across a diverse set of benchmarks:

  • Regression (RUL Prediction): The C-MAPSS engine datasets (FD002 and FD004), which involve predicting the Remaining Useful Life of aircraft engines under complex operating conditions.
  • Classification: Human activity recognition (UCI-HAR, WISDM), sleep stage classification (ISRUC), and several specialized datasets from the UEA archive (e.g., CharacterTrajectories, FingerMovements).

Key Insights and Ideas

  • LLMs as Scientific Priors: LLMs are effectively massive repositories of "common sense" physics. K-Link treats this as a regularizer, preventing the model from learning physically impossible sensor relationships.
  • Context Matters: By using label-level prompts, the model acknowledges that sensor relationships aren't static. For instance, temperature and fan speed might correlate differently during a machine's "health" stage versus its "degradation" stage.
  • Zero Inference Cost: The "knowledge transfer" happens entirely through the loss function during training. This makes K-Link highly practical for real-time applications where deploying a massive LLM would be impossible.

![Fig.

  1. Examples of the sensor-level and label-level prompts used to extract knowledge from the LLM.](/figures/art_75121a29a49d4924ab58fcf50f7044de)

Key Results

K-Link consistently outperformed state-of-the-art GNNs and traditional temporal models:

  • Regression: On the challenging FD002 engine dataset, K-Link achieved an 8.91% improvement in the critical "Score" metric compared to the previous best GNN-based method.
  • Classification: It improved accuracy on the WISDM activity dataset by 1.71% over the second-best method (FC-STGNN).
  • Ablation Impact: Removing the LLM-based knowledge-link graph caused a massive 21.1% performance drop on regression tasks, proving that the LLM's "universal knowledge" is the primary driver of the performance boost.
  • Scalability: While GPT-2 was the default for efficiency, using larger models like Llama 3.2 or DeepSeek R1 provided even further accuracy gains (up to 24.12% improvement over the baseline on FD002), though at the cost of longer training times.

Limitations and Future Work

  • Prompt Sensitivity: The framework relies on human-readable sensor names. In industrial settings where sensors are named cryptically (e.g., "Tag_402"), users would need to manually map these to descriptive names for the LLM to be effective.
  • Training Overhead: While inference is fast, training with larger LLMs like DeepSeek R1 can take significantly longer (e.g., 0.92 hours vs 0.17 hours for GPT-2 on the same dataset).
  • Future Directions: The authors suggest exploring more sophisticated prompt engineering and testing the framework on even larger-scale, real-world industrial sensor networks.

Summary updated

BibTeX
@misc{wang2024graph,
  author = {Yucheng Wang and Min Wu and Ruibing Jin and Xiaoli Li and Lihua Xie and Zhenghua Chen},
  title = {{Graph Generation Powered with LLMs for Boosting Multivariate Time-Series Representation Learning}},
  year = {2024},
  eprint = {2403.03645},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.03645},
}
Figure