Manuscript Offprint

arXiv:2610.05673

LocAttMamba: A Low-Complexity Mamba Framework with Attention-Based Multi-AP Fusion for Indoor Localization

MohammadMahdi Ghadaksaz, Mohammad Farzanullah, Melike Erol-Kantarci

MohammadMahdi Ghadaksaz, Mohammad Farzanullah, Graduate Student Member, IEEE Melike Erol-Kantarci, Fellow, IEEE

Abstract—Accurate and low-complexity indoor localization is important for location-based services in fifth generation (5G) and sixth generation (6G) networks, where positioning devices operate under limited computational budgets and non-line-of-sight (NLoS) conditions. Indoor localization has been studied widely using traditional signal-level localization approaches. However, these techniques often show degraded performance in NLoS scenarios. Recently, artificial intelligence (AI)-based techniques, including transformers, have been applied to address these challenges. While transformer-based architectures can capture the dependencies within the measurements collected from distributed access points (APs), their high computational complexity results in a large number of multiply-accumulate operations and long inference time. In contrast, lightweight recurrent and convolutional models trade this cost for degraded accuracy. In this paper, we propose LocAttMamba, a low-complexity localization framework in which the channel impulse response (CIR) and time-based features of each AP are processed by a separate Mamba encoder with near-linear complexity, and the resulting per-AP embeddings are fused through a multi-head attention layer that weights each AP according to its importance at every time step. The framework jointly predicts the user location and its per-axis uncertainty, which is refined through a post-hoc calibration step. We evaluate the proposed framework using two real-world 5G and ultra-wideband (UWB) measurement datasets. Our numerical results reveal that LocAttMamba obtains a mean two-dimensional (2-D) positioning error of 1.004 m and 0.599 m, respectively, on 5G and UWB datasets, outperforming the second-best benchmark by 9.79% and 5.82%, while requiring the fewest multiply-accumulate operations among all evaluated models and being 4.4–16× faster than the transformer-based benchmarks.

Index Terms—Mamba model, Attention-based fusion, Indoor Localization, Robustness.

I. INTRODUCTION

THE widespread deployment of fifth generation (5G) and the ongoing move toward sixth generation (6G) are pushing wireless communication forward quickly, and they are opening the way for the next generation of location-based use cases, such as extended reality (XR), vehicle-to-everything (V2X) [1], and physical artificial intelligence (AI) [2]. This calls for localization methods that are accurate, efficient, robust, and low in computational cost, so that the strict quality of service (QoS) requirements for the emerging applications can be met. Indoor localization is especially important, since it supports navigation, safety and rescue operations, and personalized services. In addition, most devices have limited computing power and the measurements they collect are affected by noise and changing surrounding conditions.

In this context, while global navigation satellite system (GNSS) is infeasible for indoor localization, and conventional, signal-level localization approaches have poor performance in non-line-of-sight (NLoS)-rich environments, deep learning (DL)-based approaches have drawn attention over the past few years [3]. In particular, multi-layer perceptron (MLP)-based models can capture complex, non-linear relationships within the input features, convolutional neural networks (CNNs) using two-dimensional (2-D) or three-dimensional (3-D) inputs can extract temporal and spatial patterns, and recurrent neural networks (RNNs) and long short-term memory (LSTM) networks can learn the temporal dependencies of a moving user. More recently, transformers [4] have been introduced as a substitute for RNNs and LSTMs for handling long-range dependencies [5]. However, their quadratic complexity in inference can result in high computational costs and memory usage, limiting their practicality in real-time scenarios.

Beyond accuracy and computational cost, a practical challenge for DL-based indoor localization is the degradation of measurement quality. In real deployments, the channel impulse response (CIR) measurements collected by the access points (APs) are affected by interference and blockage, and can even be deliberately perturbed at the physical layer [6]. Prior works have shown that corrupted measurements from even a single source can significantly bias the position estimate of a DL-based model, and that adaptively weighting the measurement sources helps mitigate the impact of anomalous signals [7]. Moreover, even with clean measurements, the localization error can vary significantly across locations due to NLoS propagation and multipath, while a point estimate alone provides no indication of its reliability. To address this, the authors in [8] estimate the uncertainty of each base station and use it to weight their estimates, although the Monte Carlo dropout variant requires multiple forward passes. Closer to our framework, [9] predicts an uncertainty alongside each estimate within an attention-based fusion network to reject unreliable ones. However, this uncertainty is not calibrated, which means the predicted uncertainty may not match the actual error.

To overcome the drawbacks of transformers, Mamba [10] has been introduced as an efficient alternative, which has recently been used in several wireless communication-related problems [11]–[13]. Mamba is based on the state-space models (SSMs), which offer near-linear time complexity. Mamba relies on a selection mechanism in which the state matrices and the time step become functions of the input, allowing the model to keep the relevant parts of the sequence and

MohammadMahdi Ghadaksaz, Mohammad Farzanullah, and Melike Erol-Kantarci are with the School of Electrical Engineering and Computer Science, University of Ottawa, Ottawa, ON K1N 6N5, Canada (e-mail: mghad017@uottawa.ca; mfarz086@uottawa.ca; melike.erolkantarci@uottawa.ca).

discard the rest. Furthermore, Mamba considers a hardware-aware selective scan algorithm instead of standard sequential approach, which keeps the training and inference cost low.

Nonetheless, a single Mamba processes a single sequence along the time dimension, which can limit its ability to capture spatial dependencies from multiple measurement sources. In this case, to capture both temporal and spatial dependency, Mamba can be combined with multi-head attention-based fusion technique [14] to fuse the information from multiple measurement sources.

In this paper, we propose a low-complexity framework in which each AP is processed by a distinct bidirectional Mamba encoder, and the per-AP embeddings are fused through a multi-head attention layer that adaptively down-weights distorted APs. Following [9], we also predict the uncertainty of each estimate, which, unlike [8], [9], is obtained from a single forward pass of a single model and is calibrated through a post-hoc step.

References (33)

  • Towards 6G hyper-connectivity: Vision, challenges, and key enabling technologies
  • Physical artificial intelligence (PAI): The next-generation artificial intelligence
  • Uncovering the potential of indoor localization: Role of deep and transfer learning
  • Attention is all you need
  • Transformers in vision: A survey
  • Attacking and defending deep-learning-based off-device wireless positioning systems
  • SENTINEL: Securing indoor localization against adversarial attacks with capsule neural networks
  • Reliable deep learning based localization with CSI fingerprints and multiple base stations
  • Localization meets uncertainty: Uncertainty-aware multi-modal localization
  • Mamba: Linear-Time Sequence Modeling with Selective State Spaces
  • Generative AI for intent-driven network management in 6G RAN: A case study on the Mamba model
  • Hierarchical decision Mamba meets Agentic AI: A novel approach for RAN slicing in 6G
  • A-Gamba: An adaptive graph-mamba model for traffic prediction in wireless cellular networks
  • Attention-based deep multiple instance learning
  • A survey of indoor localization systems and technologies
  • A survey on TOA based wireless localization and NLOS mitigation techniques
  • Deep learning-based indoor localization using received signal strength and channel state information
  • D²-MLoc: Dual-domain MLP-Mixer framework for CSI-fingerprinting indoor localization
  • Indoor localization using smartphone magnetic sensor data: A bi-lstm neural network approach
  • Indoor localization with an autoencoder-based convolutional neural network
  • Sec5GLoc: Securing 5G indoor localization via adversary-resilient deep learning architecture
  • Transforming indoor localization: Advanced transformer architecture for NLOS dominated wireless environments with distributed sensors
  • Swin-Loc: Transformer-based CSI fingerprinting indoor localization with MIMO ISAC system
  • MambaLoc: Lightweight indoor localization for unmanned vehicles using cross-modal knowledge distillation
  • Optimising TinyML with quantization and distillation of transformer and Mamba models for indoor localisation on edge devices
  • ULOC: Learning to localize in complex large-scale environments with ultrawideband ranges
  • GRAM-MAMBA: Holistic feature alignment for wireless perception with adaptive low-rank compensation (opens arXiv in a new tab)
  • Combining recurrent, convolutional, and continuous-time models with linear state space layers
  • On the pitfalls of heteroscedastic uncertainty estimation with probabilistic neural networks
  • On calibration of modern neural networks
  • Fingerprinting dataset for positioning
  • Decoupled weight decay regularization
  • Mamba meets financial markets: A graph-mamba approach for stock price prediction