cs.IRApr 10, 2026

Query-Conditioned Graph Retrieval for Contextualized LLM Reasoning in Personalized Wearable Data

Authors: Zhenyu Lu, Mahyar Abbasian, Amir M. Rahmani

Organizations: Carnegie Mellon University · University of California, Irvine

Abstract

Large language models (LLMs) are increasingly applied to analyzing wearable sensing data, which are long-term, multimodal, and highly personalized. A key challenge is context selection: providing insufficient context limits reasoning, while including all available data leads to inefficiency and degraded generation quality. We propose Wearable As Graph (WAG), a graph-based context retrieval framework that enables query-adaptive reasoning over wearable data with LLMs. WAG organizes wearable metrics and user-specific signals into a personalized knowledge graph, and retrieves a query-conditioned subgraph to support downstream generation. The retrieval process integrates global relationships, capturing prior knowledge and population- and individual-level patterns via hierarchical Bayesian modeling, with local relationships that reflect short-term signal deviations. A query openness signal further controls retrieval breadth. We evaluate WAG on over 10,000 data-grounded queries from real-world wearable datasets. Across LLM-based and human evaluations, WAG achieves an approximately 70% win rate over baseline and standard RAG methods, demonstrating the effectiveness of structured, query-adaptive context retrieval for LLM-driven analysis of wearable data.

Figures & tables

Appendix figures & tables22 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. WEQA: Wearable hEalth Question Answering with Query-Adaptive Agentic Reasoning

    Jun 16, 2026Yuwei Zhang, Tong Xia, Bianca Emmerich +5Biomedical QAWearable Sensing

  2. WearableQA: A Benchmark for Health Reasoning over Real-World Wearable Data

    Sep 4, 2026Ji Soo Lee, Xilun Chen, Pierce Chuang +5Medical QAWearable Health Monitoring