Manifold-Aligned In-Context Learning: Hybrid Retrieval-Augmented Tabular Foundation Models for Ambient Intelligence

Zhang, Baobing, Rafique, Sehrish, Alashti, Mohamad Reza Shahabian, Meethal, Shadiya Alingal, Velmurugan, Vignesh, Holthaus, Patrick, Lakatos, Gabriella, Dickinson, Angela and Amirabdollahian, Farshid (2026) Manifold-Aligned In-Context Learning: Hybrid Retrieval-Augmented Tabular Foundation Models for Ambient Intelligence. IEEE Internet of Things Journal, 13 (23): 11643403. pp. 55822-55835. ISSN 2372-2541
Copy

Indoor human localisation is a critical measure in smart homes and service robotics, yet ambient-sensor streams are characterised by long-horizon non-stationary distribution shifts, asynchronous sampling, and inherent sparsity. Under such conditions, tabular foundation model inference becomes highly sensitive to context quality and prone to instability under strict deployment budgets. This paper investigates a real-world multi-sensor environment and proposes a hybrid retrieval-augmented tabular foundation inference framework, framed through the lens of Bayesian Meta-Learning. Under a fixed context budget, we perform structured context optimisation to fortify the model’s context-driven inference mechanism. Specifically, we introduce a dual-stream temporal-anchor–semantic-retrieval approach: the temporal anchor retains recent sequences to capture local dynamics. At the same time, semantic retrieval performs stochastic neighbour search within a differentiable manifold learned by Neighborhood Components Analysis (NCA) to recall long-tail sparse events. Experiments demonstrate that the proposed framework consistently outperforms state-of-the-art baseline models. Ablation studies further reveal that naive Euclidean retrieval in the original feature space leads to catastrophic degradation, underscoring the necessity of task-specific metric learning for retrieval-augmented in-context learning. Overall, the framework enables practical indoor localisation with superior robustness under noisy and incomplete sensing conditions. Code and data are publicly available at https://github.com/baobingzhang/Retrieval-Augmented-In-Context-Learning.


picture_as_pdf
Zhang2026b.pdf
subject
Submitted Version
Available under Creative Commons: BY 4.0

View Download

EndNote BibTeX Reference Manager Refer Atom Dublin Core METS OpenURL ContextObject MPEG-21 DIDL OpenURL ContextObject in Span ASCII Citation RIOXX2 XML Data Cite XML MODS OPENAIRE HTML Citation
Export

Downloads