CoRAST: Towards Foundation Model-Powered Correlated Data Analysis in Resource-Constrained CPS and IoT

Yi Hu, Jinhang Zuo, Alanis Zhao, Bob Iannucci, Carlee Joe-WongarXiv 2024 · DOI

Abstract

The proliferation of Internet of Things (IoT) and Cyber-Physical Systems (CPS) generates vast amounts of spatially and temporally correlated data. While Foundation Models (FMs) offer powerful capabilities for analyzing such complex patterns, their deployment on resource-constrained edge devices remains challenging due to high computational demands and data heterogeneity. This paper introduces CoRAST (Spatially and Temporally Correlated Representation Analysis for Sensor Tasks), a framework that leverages a powerful server-side FM to generate global environmental context, which is then shared with lightweight local models. Experimental results demonstrate that CoRAST reduces forecasting errors by up to 50.3% while maintaining minimal overhead on edge hardware.

Introduction

Modern IoT and CPS environments are characterized by deep interconnections. For instance, sensors monitoring different parameters within a building are often influenced by the same underlying environmental factors, such as an HVAC system or weather patterns. Analyzing these correlations is crucial for accurate forecasting and decision-making.

However, two primary obstacles hinder the use of Foundation Models at the edge:

  1. Resource Constraints: FMs typically possess millions or billions of parameters, far exceeding the memory and processing capabilities of typical microcontrollers.
  2. Data Heterogeneity: Distributed learning environments often involve diverse sensor modalities (e.g., cameras vs. accelerometers), making direct model aggregation computationally expensive and architecturally complex.

Methodology: The CoRAST Framework

CoRAST addresses these challenges by partitioning the workload between a high-performance server and resource-constrained clients.

The CoRAST architecture: splitting foundation model representation learning on the server from lightweight local training on edge devices.

Server-Side Representation Learning

The server hosts a Foundation Model backbone—specifically TS2Vec for time-series data. This model is pre-trained on historical environmental data using self-supervised representation learning. It compresses the complex "state of the world" into a compact, 256-dimensional embedding. This vector serves as a global context broadcasted to all edge devices.

Client-Side Local Training

Each edge device operates a tiny Temporal Convolutional Network (TCN). This local model processes specific sensor data and fuses it with the global embedding received from the server. By incorporating this "global hint," local devices can better interpret their specific sensor readings without needing to model the entire environment themselves.

Experimental Evaluation

The researchers evaluated CoRAST using a real-world weather dataset involving measurements such as dew temperature, air pressure, and relative humidity. The primary task was predicting future H2CO (formaldehyde) levels and local sensor values across various "centralized" and "distributed" configurations.

Key Results

CoRAST demonstrated significant performance gains over traditional baselines:

  • Error Reduction: The framework achieved up to a 50.3% reduction in Mean Squared Error (MSE) compared to models operating without FM-derived context.
  • Robustness to Hidden Variables: In a variant called CoRAST-rho, the server utilized data (air density) unavailable to the clients. Even with this limited information, the resulting embeddings significantly improved client performance.
  • Hardware Efficiency: Client models remained extremely lightweight, ranging from 13k to 15k parameters, making them suitable for low-power IoT hardware.
Training loss comparison showing CoRAST significantly outperforming baselines across various forecasting tasks.

Discussion and Future Work

The success of CoRAST stems from its ability to provide "context as a shortcut," reducing the uncertainty local models must resolve. Furthermore, the architecture is agnostic to the specific FM used, allowing for the integration of GNNs or LLMs depending on the application domain.

Future research directions include the development of tailored representations to provide client-specific context and the implementation of personalized adaptors to further refine local performance.

Summary updated

Abstract

Foundation models (FMs) emerge as a promising solution to harness distributed and diverse environmental data by leveraging prior knowledge to understand the complicated temporal and spatial correlations within heterogeneous datasets. Unlike distributed learning frameworks such as federated learning, which often struggle with multimodal data, FMs can transform diverse inputs into embeddings. This process facilitates the integration of information from various modalities and the application of prior learning to new domains. However, deploying FMs in resource-constrained edge systems poses significant challenges. To this end, we introduce CoRAST, a novel learning framework that utilizes FMs for enhanced analysis of distributed, correlated heterogeneous data. Utilizing a server-based FM, CoRAST can exploit existing environment information to extract temporal, spatial, and cross-modal correlations among sensor data. This enables CoRAST to offer context-aware insights for localized client tasks through FM-powered global representation learning. Our evaluation on real-world weather dataset demonstrates CoRAST's ability to exploit correlated heterogeneous data through environmental representation learning to reduce the forecast errors by up to 50.3% compared to the baselines.
BibTeX
@misc{hu2024corast,
  author = {Yi Hu and Jinhang Zuo and Alanis Zhao and Bob Iannucci and Carlee Joe-Wong},
  title = {{CoRAST: Towards Foundation Model-Powered Correlated Data Analysis in Resource-Constrained CPS and IoT}},
  year = {2024},
  eprint = {2403.18451},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.18451},
}
Figure