SensorBench: Benchmarking LLMs in Coding-Based Sensor Processing
Pengrui Quan, Xiaomin Ouyang, Jeya Vikranth Jeyakumar, Ziqi Wang, Yang Xing, Mani Srivastava
TL;DR
This paper introduces SensorBench, a structured benchmark to quantify LLMs' abilities in processing temporal sensor data using DSP tasks across multiple modalities. Through evaluations of four LLMs under API-based coding, non-API coding, and text-based interactions, it shows that LLMs handle simple DSP tasks well but struggle with complex compositional and parameterized problems, often lagging behind human experts. Prompt engineering, particularly self-verification, markedly improves performance in a substantial portion of tasks, while fine-tuning on DSP data yields limited gains, suggesting current models rely more on retrieval than robust planning. The work provides a standardized evaluation framework and actionable insights for developing future LLM-based sensor processing copilots.
Abstract
Effective processing, interpretation, and management of sensor data have emerged as a critical component of cyber-physical systems. Traditionally, processing sensor data requires profound theoretical knowledge and proficiency in signal-processing tools. However, recent works show that Large Language Models (LLMs) have promising capabilities in processing sensory data, suggesting their potential as copilots for developing sensing systems. To explore this potential, we construct a comprehensive benchmark, SensorBench, to establish a quantifiable objective. The benchmark incorporates diverse real-world sensor datasets for various tasks. The results show that while LLMs exhibit considerable proficiency in simpler tasks, they face inherent challenges in processing compositional tasks with parameter selections compared to engineering experts. Additionally, we investigate four prompting strategies for sensor processing and show that self-verification can outperform all other baselines in 48% of tasks. Our study provides a comprehensive benchmark and prompting analysis for future developments, paving the way toward an LLM-based sensor processing copilot.
