Manifold-Aligned In-Context Learning: Hybrid Retrieval-Augmented Tabular Foundation Models for Ambient Intelligence
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.
| Item Type | Article |
|---|---|
| Identification Number | 10.1109/JIOT.2026.3720795 |
| Additional information | © 2026 IEEE. This is the accepted manuscript version of an article which has been published in final form at https://doi.org/10.1109/JIOT.2026.3720795 |
| Keywords | ambient sensors, foundation models, in-context learning, indoor localisation, internet of things, metric learning, smart homes, soft sensing, signal processing, information systems, hardware and architecture, computer science applications, computer networks and communications |
| Date Deposited | 02 Dec 2026 14:27 |
| Last Modified | 02 Dec 2026 16:53 |
