Table of Contents
Fetching ...

LightLLM: A Versatile Large Language Model for Predictive Light Sensing

Jiawei Hu, Hong Jia, Mahbub Hassan, Lina Yao, Brano Kusy, Wen Hu

TL;DR

It is demonstrated that LightLLM significantly outperforms state-of-the-art methods in localization accuracy and indoor solar estimation when tested in previously unseen environments, and outperforms ChatGPT-4 with direct prompting, highlighting the advantages of LightLLM's specialized architecture for sensor data fusion with textual prompts.

Abstract

We propose LightLLM, a model that fine tunes pre-trained large language models (LLMs) for light-based sensing tasks. It integrates a sensor data encoder to extract key features, a contextual prompt to provide environmental information, and a fusion layer to combine these inputs into a unified representation. This combined input is then processed by the pre-trained LLM, which remains frozen while being fine-tuned through the addition of lightweight, trainable components, allowing the model to adapt to new tasks without altering its original parameters. This approach enables flexible adaptation of LLM to specialized light sensing tasks with minimal computational overhead and retraining effort. We have implemented LightLLM for three light sensing tasks: light-based localization, outdoor solar forecasting, and indoor solar estimation. Using real-world experimental datasets, we demonstrate that LightLLM significantly outperforms state-of-the-art methods, achieving 4.4x improvement in localization accuracy and 3.4x improvement in indoor solar estimation when tested in previously unseen environments. We further demonstrate that LightLLM outperforms ChatGPT-4 with direct prompting, highlighting the advantages of LightLLM's specialized architecture for sensor data fusion with textual prompts.

LightLLM: A Versatile Large Language Model for Predictive Light Sensing

TL;DR

It is demonstrated that LightLLM significantly outperforms state-of-the-art methods in localization accuracy and indoor solar estimation when tested in previously unseen environments, and outperforms ChatGPT-4 with direct prompting, highlighting the advantages of LightLLM's specialized architecture for sensor data fusion with textual prompts.

Abstract

We propose LightLLM, a model that fine tunes pre-trained large language models (LLMs) for light-based sensing tasks. It integrates a sensor data encoder to extract key features, a contextual prompt to provide environmental information, and a fusion layer to combine these inputs into a unified representation. This combined input is then processed by the pre-trained LLM, which remains frozen while being fine-tuned through the addition of lightweight, trainable components, allowing the model to adapt to new tasks without altering its original parameters. This approach enables flexible adaptation of LLM to specialized light sensing tasks with minimal computational overhead and retraining effort. We have implemented LightLLM for three light sensing tasks: light-based localization, outdoor solar forecasting, and indoor solar estimation. Using real-world experimental datasets, we demonstrate that LightLLM significantly outperforms state-of-the-art methods, achieving 4.4x improvement in localization accuracy and 3.4x improvement in indoor solar estimation when tested in previously unseen environments. We further demonstrate that LightLLM outperforms ChatGPT-4 with direct prompting, highlighting the advantages of LightLLM's specialized architecture for sensor data fusion with textual prompts.

Paper Structure

This paper contains 29 sections, 8 equations, 14 figures, 5 tables, 1 algorithm.

Figures (14)

  • Figure 1: Illustration of PLS tasks in the smart building system (left) wang2017review, and vertical farming system (right) benke2017future: they are equipped with outdoor solar panels to harness natural energy, self-sustaining sensors is deployed for localization task and powered by indoor decorative solar cells.
  • Figure 2: Architecture of LightLLM.
  • Figure 3: Example of a KG illustrating sensor and light source interactions.
  • Figure 4: Task-Specific Knowledge Prompt Example: Solar Energy Forecasting Prompt.
  • Figure 5: Overview of Latent Fusion Layer.
  • ...and 9 more figures