Manuscript Offprint
arXiv:2610.36905Digital Twin-Guided Wireless Localization via Probabilistic Inverse Learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Mahmoud Saad Abouamer, Member, IEEE, Henrik C. M. Frederiksen, Robin J. Williams, Member, IEEE, Shashi Raj Pandey, Member, IEEE, Petar Popovski, Fellow, IEEE
Abstract—This work investigates how site-specific digital twins (DTs) can support wireless localization using simplified distributed infrastructure. We propose PRISM (Probabilistic Refinement using Inverse learning and a Site-specific Model), a DT-guided probabilistic localization scheme with single-antenna access points (APs). Localization is formulated as a probabilistic inverse problem in which a conditional proposal distribution over UE locations is learned from multi-node channel impulse responses (CIRs). The proposal generates candidate locations, with its spread regularized during training and DT consistency used to reweight candidates and refine the estimate at inference. The DT serves as an approximate forward-consistency model, avoiding assumptions of exact channel fidelity or differentiability with respect to user position. Numerical experiments demonstrate gains over data-driven and classical fingerprinting benchmarks, while achieving a median error of approximately 0.7 m using 10 single-antenna APs. Without retraining, PRISM remains effective under degraded inference-time DT features. PRISM also yields uncertainty estimates from its proposal covariance, with empirical calibration approaching ideal behavior as APs increase.
Index Terms—Wireless localization, probabilistic localization, digital twin, ray tracing, uncertainty quantification
I. INTRODUCTION
The increasing computing capabilities of the wireless infrastructure as well as the requirements of 6G applications drive the emergence of accurate site-specific wireless localization [1–4]. However, inferring location from wireless channel observations remains challenging due to noise, complex multipath propagation, and strict requirements, including low hardware complexity and cost efficiency [1, 5, 6].
Conventional approaches often address these challenges by improving channel-observation resolution through more complex sensing hardware. For instance, massive multiple-input multiple-output (MIMO) systems and large antenna arrays provide finer spatial resolution, enabling multipath components to be more effectively separated and identified [7–9]. This reduces location ambiguity by making channel responses more distinguishable across candidate positions. However, these gains come at the cost of increased hardware complexity, energy consumption, and deployment overhead, which can limit scalability in practical industrial environments [10].
Instead of relying on complex sensing setups, this work investigates how site-specific propagation structure can support localization with simplified hardware. In particular, we consider a conservative distributed sensing setting where channel information is collected from a limited number of single-antenna access points, rather than from antenna arrays or dense fingerprint infrastructure. This setting is not meant to argue against richer sensing hardware, but to isolate the value of DT-guided probabilistic refinement when the channel observations are limited. The central challenge is then to exploit site-specific physical knowledge from these limited observations while avoiding restrictive assumptions on the digital twin, such as exact channel accuracy or differentiability with respect to user position. To address this challenge, we leverage a site-specific digital twin (DT) [11–14] of the wireless channel as an approximate forward-consistency check that scores candidate locations based on the propagation structure of the deployment environment.
By mapping channel observations or derived features directly to spatial coordinates, learning-based localization models are commonly used to capture environment-dependent structure from the data without requiring an explicit propagation model [15–20]. Early works based on convolutional neural networks (CNNs) [18] demonstrated the potential of such approaches, while more recent studies have adopted expressive architectures such as Transformers to learn richer channel representations [16, 17, 19]. However, these methods typically formulate localization as a direct observation-to-position mapping and provide no explicit mechanism for enforcing consistency with the site-specific propagation physics. Consequently, predictions may be statistically plausible yet inconsistent with the site-specific propagation geometry.
In contrast to the direct location-estimation approaches described above, soft-information-based localization constructs probabilistic information from standardized time- and angle-based 5G measurements, such as downlink time-difference-of-arrival measurements, rather than relying only on single-value estimates [21]. While effective in cellular localization settings, this approach relies on learned statistical measurement models and does not explicitly exploit site-specific propagation geometry through a DT. Deep variational learning has also been applied to multipath-assisted single-anchor localization, where ultra-wideband channel impulse responses are used to estimate position-related parameters, including distance, time-difference-of-arrival, and angle- or phase-related quantities, before geometric localization [22]. This improves parameter estimation under non-line-of-sight conditions, but targets an
Mahmoud Saad Abouamer and Henrik C. M. Frederiksen contributed equally to this work.
The authors are with the Department of Electronic Systems, Aalborg University, Denmark. e-mail: {mahmoudabo,hcmf,rjw,srp,petarp}@es.aau.dk.
This work was supported in part by the Villum Investigator Grant “WATER” from the Velux Foundation, Denmark. The work of H.C.M. Frederiksen and S.R. Pandey was supported in part by DFF-Forsknings projekt “NETML” with grant No. 4286-00278B.
(a) Physical Scene

(b) Belief over candidate locations

(c) DT forward check and refinement

Fig. 1: Illustration of DT-guided probabilistic localization. (a) A UE at unknown location u transmits an uplink localization signal, and distributed single-antenna APs observe the resulting multipath channel feature . (b) Localization is represented as an uncertain belief over plausible UE locations in the site-specific DT. For illustration, the true location is shown in orange, and the white points denote candidate locations sampled from the belief. (c) The DT is used in the forward, location-to-channel direction: each candidate location is queried to produce a predicted channel feature , which is then checked for consistency with . Candidate , which lies close to the true location, receives the largest weight, while and receive smaller weights. The red marker denotes the refined estimate . In PRISM, candidate sampling is regularized during training, while the DT forward check is used to reweight candidates and refine the location estimate during inference.
array-equipped single-anchor setting rather than distributed single-antenna sensing and does not use site-specific DT feedback to guide localization.
To incorporate site-specific physical knowledge, recent works have explored DTs and ray-tracing tools for wireless localization [23, 24]. By capturing environment-specific structures such as blockages, reflections, and dominant propagation paths, DTs provide a principled way to incorporate physical knowledge into localization. Existing approaches, however, primarily use DTs to generate synthetic fingerprinting datasets, augment training data, or learn neural surrogates of propagation [23, 25]. In such cases, the DT mainly supports data generation or model training, rather than directly constraining the location estimate through channel-domain consistency during inference. Recent work in [26] has used dedicated differentiable ray-tracing formulations to directly optimize point estimates of user position via iterative gradient-based methods. Such approaches rely on useful derivatives of the channel response with respect to spatial coordinates, which may require simplified propagation models, while the iterative position optimization can increase computational overhead and limit applicability in realistic environments.
Taken together, existing approaches either rely on learned neural mappings without explicit propagation constraints or use DTs mainly for data generation and model training. This leaves open the problem of using site-specific physical structure to guide localization without requiring restrictive assumptions such as exact channel accuracy or differentiability with respect to user position, while preserving compatibility with efficient ray-tracing tools such as Sionna [27, 28]. Fig. 1 illustrates the principle pursued in this work. A UE transmits an uplink localization signal, while a limited number of distributed single-antenna APs passively observe the resulting multi-AP CIR feature . The localization task is inverse, since it seeks to infer the unknown UE position u from . By contrast, the DT is used in the forward, location-to-channel direction: given a hypothesized candidate location , the DT predicts the corresponding channel feature , which can then be checked for consistency with . Thus, the DT is used only as an approximate forward-consistency model, which relaxes the need for differentiability with respect to UE position or for solving the inverse channel-to-location problem directly.
Building on this view, we propose PRISM (Probabilistic Refinement using Inverse learning and a Site-specific Model), a DT-guided probabilistic localization framework for distributed sensing. The main contributions are summarized as follows:
• We formulate localization as a probabilistic inverse problem in which an inverse proposal generates plausible UE locations and a site-specific DT evaluates their channel-domain consistency. Since the DT is queried only in the forward, location-to-channel direction, the framework does not require an exact or differentiable DT.
• We develop a finite-candidate learning and inference procedure in which the learned proposal defines a data-informed candidate region. During training, proposal regularization controls the candidate-search spread, while during inference DT consistency weights explicitly reweight sampled candidates.
• Through extensive numerical experiments, we demonstrate improvements over existing data-driven and classical fingerprinting benchmarks, robustness to degraded inference-time DT information without retraining, and improved empirical proposal uncertainty calibration as the number of APs increases.
Organization: The remainder of this paper is organized as follows. Section II presents the system model and formulates wireless localization as a DT-guided probabilistic inverse problem. Section III develops the proposed probabilistic inverse learning framework. Section IV summarizes the practical implementation of the proposed scheme, and the benchmark schemes. Section V presents numerical experiments in site-specific DT environments and assesses the proposed scheme against classical fingerprinting and data-driven baselines. Section VI concludes the paper.
Notation: Scalars, vectors, and matrices are denoted by lowercase letters, bold lowercase letters, and bold uppercase letters, respectively. The sets of real and complex numbers are denoted by and . For a vector , denotes the Euclidean norm, while and denote its real and imaginary components. The expectation is denoted by , and denotes a diagonal matrix.
A. Multi-AP Channel Observation Model
We consider an uplink localization system with distributed single-antenna access points (APs) deployed at known positions in a site-specific propagation environment. A UE is located at an unknown position , where denotes the localization dimension. The localization input is the observed multi-AP CIR feature associated with this UE position.
For AP , let denote the sampled delay-domain CIR associated with UE location , where is the number of retained CIR taps. The CIRs from all APs are stacked as . The corresponding nominal real-valued CIR feature is obtained by concatenating its real and imaginary components: , where . For compactness, we denote by
the nominal site-specific mapping from UE position to the processed multi-AP CIR feature, including the adopted feature construction and normalization. The observed CIR feature is
where captures effective observation-domain errors, including channel-estimation noise, receiver noise, and preprocessing mismatch in the processed CIR feature.
B. Site-Specific Digital Twin Forward Model
The DT provides an approximate forward operator
which maps a hypothesized UE location to a predicted processed CIR feature in the same feature space as . For a candidate location , the DT ray tracer generates propagation paths using the site geometry, AP locations, and modeled electromagnetic interactions. The resulting channel response is processed using the same feature construction as the observed CIR feature, yielding .
The DT is not assumed to be an exact replica of the physical environment. In practice, may differ from due to geometric inaccuracies, material uncertainty, calibration errors, finite ray-tracing resolution, and unmodeled propagation effects. Moreover, the proposed formulation does not require to be differentiable with respect to UE location. We therefore treat as an approximate site-specific forward consistency model, rather than as an exact inverse solver or a differentiable trainable layer.
C. DT-Informed Probabilistic Localization
The localization task is to estimate the unknown UE position from the observed channel measurement . From (1), this is an inverse problem associated with the forward mapping . A conventional learning-based localization scheme uses a deterministic estimator , trained offline to map each processed channel observation to a point estimate. The corresponding minimum mean-squared error design criterion is
where denotes the class of admissible deterministic estimators, and the expectation is taken over the UE location distribution and the observation residual in (1).
However, the objective in (P1) learns an observation-to-location mapping without providing an explicit mechanism for evaluating whether a hypothesized location is consistent with the site-specific propagation response. Since the DT provides a forward mapping from a candidate location to a predicted channel feature, it can provide such a consistency check. We therefore define the DT consistency mismatch of a candidate location as
where measures the discrepancy between the observed and DT-predicted channel features, with a smaller indicating stronger consistency. This mismatch provides the site-specific forward-consistency information needed to compare hypothesized UE locations. However, it does not by itself specify how the inverse search over should be performed. In particular, multipath can make multiple locations plausible from the observation, while evaluating the DT over the complete deployment domain would defeat the purpose of an efficient learned inverse model. We therefore introduce a learned conditional proposal distribution that restricts DT evaluation to a data-informed set of plausible candidate locations.
Let denote a family of learned conditional proposal distributions for candidate UE locations. Given the observed CIR feature, defines a sampling distribution over candidate locations.
The proposal must satisfy two complementary requirements. First, it should assign high likelihood to the ground-truth UE location so that the candidate set remains anchored to the observation-driven localization information. Second, it should retain a suitable spatial spread so that finite candidate sampling provides useful alternatives for DT-guided refinement. An overly concentrated proposal may fail to include corrective candidates when its nominal estimate is inaccurate, whereas an excessively diffuse proposal reduces the efficiency of finite candidate sampling. To encourage candidate generation that remains useful for subsequent DT-consistency scoring, we introduce the proposal regularization functional
whose concrete finite-candidate realization is developed in Section III, where locations sampled from the proposal are evaluated using the DT mismatch in (2).
Combining these two complementary requirements, the probabilistic localization objective is written as
(P2)
The first term is a supervised probabilistic localization objective that encourages the proposal to assign high likelihood to the labeled UE location. The second term shapes the proposal used for candidate generation so that the resulting finite candidate set is suitable for DT-guided refinement, while controls the relative contribution of the two terms. During inference, the DT mismatch in (2) is likewise used to score and reweight candidates sampled from the learned proposal.
III. PROPOSED PROBABILISTIC INVERSE LEARNING FRAMEWORK
This section develops the finite-candidate learning and inference framework associated with Problem (P2). A neural inverse model learns a conditional proposal distribution over UE locations, with training regularization used to maintain a candidate region suitable for subsequent refinement. At inference, candidates sampled from this proposal are evaluated using the DT mismatch in (2) and reweighted to obtain the refined location estimate. An overview is shown in Fig. 2.
A. Neural Inverse Proposal
The proposal distribution in (P2) is represented in the proposed framework by a conditional distribution . The weights parameterize the neural mapping from the observed CIR feature to the parameters of . In this work, we use a Gaussian proposal distribution to obtain a tractable parameterization of the probabilistic localization output,
where is the predicted location mean and is the predicted covariance.
The mean provides the nominal observation-driven localization estimate, while the covariance determines the spatial region covered by candidate sampling. A concentrated proposal focuses candidate generation near the nominal estimate, whereas a broader proposal provides a larger region in which DT-guided refinement can identify alternative locations. The proposal parameters therefore determine both the nominal localization output and the candidate region available for subsequent DT consistency evaluation.
Let be a given training set. The supervised term is the empirical negative log-likelihood of the ground-truth UE location under the proposal,
For the Gaussian proposal in (4), this becomes
(6)
Here, , , and is the localization dimension.
B. DT-Based Consistency Weighting
The DT mismatch in (2) provides the forward-consistency criterion used to compare candidate locations. For notational convenience, we denote the corresponding DT consistency energy by
where a lower value of indicates stronger agreement between the observed CIR feature and the channel feature predicted by the DT at candidate location v.
Rather than evaluating this consistency criterion over the complete deployment domain, we apply it to a finite set of locations generated by the learned proposal. For a given observation , S candidate locations are sampled independently according to
Each candidate is evaluated using
and assigned the normalized DT-consistency weight
where controls the sensitivity of the weights to the DT mismatch.
The normalization in (10) converts the candidate-wise DT mismatches into relative consistency weights over the finite sampled set. Candidates with smaller mismatch receive larger weight, while decreasing concentrates the weighting more strongly on the most DT-consistent candidates. Thus, represents the relative preference supplied by the DT among the locations proposed for a given observation.
(a) Proposed probabilistic localization framework
I. Neural inference and candidate generation

(b) Algorithmic execution layout: Offline training vs. online inference
OFFLINE TRAINING PHASE

Fig. 2: Overview of PRISM. (a) The Transformer-based inverse model maps the observed channel feature to a neural proposal distribution , from which candidate UE locations are sampled. The DT then predicts the corresponding channel features and assigns consistency weights , which are used to reweight sampled candidates and refine the localization estimate . (b) During offline training, the proposal is learned from labeled data and regularized for finite-candidate generation. During online inference, DT consistency explicitly reweights sampled candidates to refine the location estimate.
C. Proposal Regularization
We now instantiate the proposal regularization functional in Problem (P2) using the DT-weighted finite candidate set. For each training observation, candidate locations are sampled from the current proposal and assigned relative weights according to their DT consistency. These weighted samples provide a finite-candidate mechanism for incorporating site-specific forward-consistency information into the proposal-learning objective.
For the mth training pair , candidate locations are sampled from and evaluated using
The normalized DT-consistency weights can then be computed using (10). Subsequently, using these relative DT-consistency weights, we define the finite-candidate proposal regularization term as
Equation (12) gives greater contribution to candidate locations that exhibit stronger agreement with the DT-predicted channel response. The regularizer therefore incorporates the relative preference provided by the DT over samples generated by the current proposal. It is a finite-candidate proposal regularizer rather than an exact likelihood, posterior, or distribution-matching objective over the complete localization domain. Importantly, evaluating (12) requires only the numerical DT consistency scores associated with the sampled candidates and does not require derivatives of the DT forward model .
With this, the overall training objective is
where controls the strength of the finite-candidate proposal regularization. The supervised term anchors the learned proposal to the labeled UE location, while the proposal-regularization term incorporates relative DT consistency among sampled candidates. Together, the two terms realize the complementary roles introduced in Problem (P2): learning an observation-informed location proposal while maintaining candidate generation that can benefit from site-specific DT guidance.
D. Closed-Loop Inference
At inference time, the trained inverse model first produces the conditional proposal . Candidate locations are sampled according to (8), evaluated using the DT consistency energy in (9), and assigned the relative consistency weights in (10). The DT therefore operates only on the finite candidate region supplied by the learned inverse model rather than searching over the complete deployment domain.
The final DT-refined location estimate is computed as the weighted candidate mean
where the weights are computed using (10).
The estimate in (14) is therefore interpreted as a DT-consistency-weighted refinement over the sampled candidate set, rather than as an exact posterior mean over . For a small inference temperature , the weights become concentrated on the candidates with the smallest DT mismatch, and the estimator approaches a soft best-candidate selection among the proposed locations.
The resulting framework closes the loop between inverse learning and site-specific forward consistency. The learned inverse model restricts the search to a data-informed candidate region, while the DT provides relative consistency information that enters proposal regularization during training and explicitly refines the final location estimate during inference.
IV. LOCALIZATION ARCHITECTURE AND BENCHMARK SCHEMES
This section summarizes the implementation details of the proposed PRISM localization scheme . Moreover, we specify the learning-based and fingerprinting benchmark schemes used to evaluate its performance.
A. Neural Proposal Architecture
The neural proposal in (4) is parameterized using the probabilistic Transformer encoder shown in Fig. 3. The input is the tensor form of the observed multi-AP CIR feature, , where is the batch size, is the number of APs, is the CIR length, and the last dimension contains the real and imaginary components. A binary AP mask indicates which APs provide valid observations.
Each AP observation is encoded by a shared AP-wise tokenizer, producing one token per AP. A learned AP-ID embedding is added to preserve the identity of the AP associated with each token, since different APs observe different site-specific multipath responses. The resulting AP-token sequence is processed by a masked Transformer encoder, where the AP mask prevents unavailable APs from contributing to the attention operation. The encoded AP tokens are then aggregated by attention pooling into a single context vector, which is passed to distributional output heads that parameterize the neural proposal.
The output heads predict the proposal mean and the log-variance vector . Although (4) allows a general covariance matrix, we use a diagonal covariance in the implementation,
This diagonal Gaussian parameterization reduces the number of uncertainty parameters, avoids covariance-matrix inversion, and simplifies sampling. In preliminary trials for the scenarios considered in the numerical results, more expressive alternatives, including full-covariance and mixture-based proposals, did not provide any substantial gains. We therefore use the diagonal Gaussian proposal in all reported experiments.
Candidate locations are sampled from the neural proposal. For a given y, samples are generated using the reparameterization
where contains the predicted standard deviations and denotes element-wise multiplication.
B. Training and DT-Guided Inference
For the diagonal covariance in (15), omitting additive constants, we use the following supervised loss:
where is the scaling constant of the log-variance term. Setting recovers the standard diagonal Gaussian negative log-likelihood, while relaxes the penalty on larger proposal variances. This provides an effective way to avoid overly concentrated proposals when DT-guided refinement benefits from a broader candidate set.
The DT consistency energy in (9) is computed from a channel-feature similarity between the observed CIR feature and the DT-predicted feature . Specifically, for a normalized similarity score , we use
We evaluate different choices of , namely the cosine similarity and the structural similarity index . The cosine similarity between the element-wise magnitudes of the CIR features is defined as
The structural similarity index measure (SSIM) is computed by arranging the multi-AP CIR feature as a structured tensor over AP index, delay, and real/imaginary components. For local windows of the observed and DT-predicted CIR representations, SSIM is given by [29]
where and are local means, and are local variances, is the local covariance, and , are stabilizing constants. The resulting SSIM values are averaged over local windows to obtain the similarity score used in (18).
For PRISM, the similarity measure used for DT consistency scoring is selected using validation performance. Among the considered measures, provides the best validation performance and is therefore used in the reported PRISM experiments.
Code can be found at https://github.com/AAU-CNT/cnt-isactionna/tree/twin-localization

Fig. 3: Architecture of the proposed probabilistic Transformer encoder. The multi-AP CIR input , together with an AP validity mask, is encoded by an AP-wise CNN tokenizer, augmented with learned AP-ID embeddings, processed by a masked Transformer encoder, and aggregated using attention pooling. The output context vector feeds two distributional heads that predict the mean and log-variance of the neural proposal. Candidate locations sampled from this proposal are evaluated by the DT forward model .
At inference time, the trained Transformer predicts and . Candidate locations are sampled from the resulting proposal, evaluated using the DT consistency energy, and assigned the normalized weights in (10). The final estimate is then obtained from the weighted candidate mean in (14).
C. Benchmark Schemes
We compare PRISM with five benchmark localization schemes chosen to isolate the roles of neural architecture, probabilistic DT-guided refinement, and fingerprint database resolution.
The first two benchmarks are direct neural predictors that map the observed CIR feature to a single UE location estimate: CNN-Direct, a CNN-based model adapted from an existing neural fingerprinting architecture [18], and Transformer-Direct, a deterministic Transformer using the same encoder structure as the proposed proposal network but with a point-estimate output.
Moreover, we include three fingerprinting benchmarks: C-FP, a classical fingerprinting baseline, and Dense-FP, a higher-resolution variant used to test whether PRISM maintains its gains against a more computationally demanding database search. Finally, RFMap-FP, based on [23], represents an RF-map fingerprinting variant within the broader family of classical database-matching localization schemes. For the classical fingerprinting schemes, we evaluated the considered channel-feature similarity measures on the validation set and found cosine similarity to provide the best performance; it is therefore used for C-FP and Dense-FP. We detail each benchmark scheme below.
1- CNN-Direct is a direct neural localization benchmark based on a convolutional architecture adapted from [18]. It maps the observed CIR directly to a point estimate of the UE location,
This benchmark is trained using labeled channel-location pairs and does not use DT-based consistency weighting or candidate refinement at inference.
2- Transformer-Direct is a direct neural localization benchmark that uses the same encoder structure as the proposal network in PRISM, but replaces the distributional output with a point-estimate head,
This benchmark isolates the effect of the Transformer-based CIR representation from the effect of probabilistic sampling and DT-guided refinement.
3- C-FP is a classical fingerprinting benchmark using the validation-selected cosine similarity. Let denote the fingerprint database, where is a database location and is the associated CIR fingerprint. Given an observation , fingerprinting selects the database location with maximum cosine similarity:
This provides a classical database-matching benchmark.
4- Dense-FP uses the same cosine-similarity rule as C-FP, but with a denser fingerprint database. This benchmark provides a stronger fingerprinting comparison by increasing the spatial resolution of the database at the cost of a larger exhaustive search. It is used to test whether PRISM maintains its gains against a more computationally demanding fingerprinting baseline with finer spatial resolution.

Fig. 4: 2D layout of the Munich scene and AP positions. The shaded region indicates the candidate outdoor UE locations.
5- RFMap-FP is based on [23] and represents an RF-map fingerprinting variant within the family of classical database-matching localization schemes. In the considered simulation setup, RFMap-FP uses the same database as C-FP, so the comparison primarily reflects the fingerprint matching rule. This benchmark provides a representative RF-map fingerprinting reference while remaining closely tied to C-FP.
V. NUMERICAL EXPERIMENTS
A. Experimental Setup
- Scenario, Channel Generation, and AP Configurations: The simulated channel data are generated using Sionna RT [30] in the Munich scene, which has been employed in several site-specific ray-tracing studies, e.g., [31–34]. The scene represents an urban outdoor propagation environment. Additional experiments using the San Francisco scene provided with Sionna RT [28] exhibited similar qualitative performance trends. The corresponding results are omitted here due to space limitations.
For channel generation, we use carrier frequency GHz, bandwidth MHz, and frequency spacing kHz, yielding 200 frequency samples. The corresponding CIR representation contains 200 delay taps over a window with 10 ns tap spacing.
All APs and UEs use single-element, vertically polarized dipole antennas at a height of 1.15 m. Unless otherwise stated, ray tracing uses rays per source, a maximum depth of 6, and includes specular reflection, diffuse reflection, scattering, and refraction. The generated CIR features are kept in raw form followed by per-AP normalization.
Five configurations with distributed single-antenna APs are evaluated. Each configuration contains all AP positions used in the preceding smaller configuration, as shown in Fig. 4, allowing the effect of increasing the AP count to be evaluated consistently. UE locations are placed at outdoor positions on a uniform grid with 1 m spacing along both spatial dimensions. This grid is used for training, validation, and testing of the learning-based schemes and as the default fingerprint database for C-FP. For Dense-FP, additional databases with 0.75 m and 0.5 m grid spacing are considered to control for the effect of fingerprint-database resolution when comparing against PRISM.
- Training and Inference: Each learning-based model is trained on the training set for 500 epochs. After each epoch, the model is evaluated on the validation set, and the checkpoint with the lowest mean positional error is selected. Final performance is reported on a held-out test set.
All learning-based models use a batch size of 512 and are trained with AdamW using a warm-up cosine learning-rate schedule. The warm-up fraction is 5%, the base learning rate is , and the minimum learning rate is . For PRISM, we use the finite-candidate proposal regularization described in Section III-C. During inference, we use proposal samples and for DT-guided candidate reweighting. The small inference temperature concentrates the estimate on the most DT-consistent candidates. The supervised loss uses the scaling factor , and the proposal-regularization strength is set to . For the DT consistency energy, we use the SSIM-based similarity defined in (20).
- Observation Noise and DT-Feature Distortion: We reserve the term SNR for additive noise applied to the observed CIR features. For a clean processed CIR feature , the noisy observation is generated as , where denotes additive observation noise. The observation SNR is
where is the number of CIR observations used to set the noise level. Unless otherwise stated, experiments are conducted at dB. This noise is applied to the observed CIR features used by the localization models and is distinct from imperfections in the DT forward model.
To evaluate robustness to imperfect inference-time DT information without retraining, we distort the DT-predicted CIR features used for consistency scoring. For a candidate location , the distorted DT feature is modeled as , where denotes the distortion applied to the DT-predicted feature. The distortion level is reported using the DT signal-to-distortion ratio
where is the number of DT-predicted CIR features used to set the distortion level. Thus, dB has the same power-ratio interpretation as a 25 dB SNR, but refers to distortion of the DT-predicted features rather than noise in the observed CIRs.
B. Localization Accuracy and Distribution of Errors
We first evaluate the impact of the number of APs on localization accuracy and quantify the gains provided by PRISM over the learning-based and fingerprinting benchmarks. Fig. 5

Fig. 5: Mean absolute error versus number of APs for PRISM and benchmarks at an of 25 dB.
Fig. 7: Median absolute error versus number of APs for PRISM and benchmarks at an of 25 dB.

Fig. 6: Mean absolute error versus number of APs for PRISM and classical fingerprinting methods for different resolutions.
shows that increasing the number of APs improves all schemes, with the largest reduction in MAE generally occurring from 5 to 7 APs. Beyond approximately 10 APs, the improvements become more gradual, indicating diminishing returns from adding further APs. Among the direct learning-based benchmarks, Transformer-Direct consistently outperforms CNN-Direct, with MAEs of 2.09 m and 3.30 m, respectively, at 10 APs. This suggests that the Transformer architecture is better suited to aggregating the heterogeneous multi-AP CIR observations, as self-attention enables observation-dependent interactions across AP tokens. At the same 10-AP configuration, PRISM further reduces the MAE to 1.11 m, corresponding to a 47% reduction relative to Transformer-Direct. Since PRISM and Transformer-Direct use the same encoder architecture, this additional gain cannot be attributed to the Transformer representation alone and instead supports the benefit of the probabilistic candidate generation and DT-guided refinement proposed in Section III. Similar gains are observed across all considered AP configurations.
We next examine whether increasing the fingerprint-database resolution can match the localization gains achieved by PRISM. Fig. 6 shows that decreasing the fingerprint-grid spacing to 0.75 m and 0.5 m improves fingerprinting accuracy across the considered AP configurations. However, PRISM remains more accurate than all fingerprinting schemes in every configuration, even when Dense-FP uses a 0.5 m grid. At 10 APs, Dense-FP with 0.5 m spacing achieves an MAE of 2.17 m, whereas PRISM achieves 1.11 m, corresponding to an approximately 49% reduction. Increasing the fingerprint resolution improves accuracy at the cost of a larger database and exhaustive-search burden. Nevertheless, PRISM retains a clear accuracy advantage even over the 0.5 m Dense-FP, supporting the benefit of combining learned channel-to-location structure with DT-guided refinement beyond simply increasing fingerprint-database resolution. In the remaining experiments, we use C-FP with the default 1 m grid as the representative fingerprinting benchmark.
Fig. 7 shows that PRISM also improves typical localization accuracy, achieving the lowest median error across all considered AP configurations. At 10 APs, PRISM reduces the median error from 1.90 m for Transformer-Direct to approximately 0.70 m, corresponding to a 63% reduction. The median error of PRISM further decreases to 0.66 m at 15 APs. Comparing the mean and median errors shows that the fingerprinting benchmarks achieve competitive median accuracy but retain substantially larger mean errors, indicating a greater influence of high-error realizations. In contrast, PRISM achieves the lowest values for both metrics, improving both average and typical localization accuracy.
To examine how the localization gains are distributed across the deployment area, Fig. 8 compares the spatial errors of

(a) Transformer-Direct

(b) PRISM

Position Error (m)
Fig. 8: Spatial distribution of localization error in the 10-AP Munich-scene configuration: (a) Transformer-Direct and (b) PRISM. The color scale indicates position error in meters.

Fig. 9: Localization error distribution for NLOS test points in the 10-AP Munich-scene configuration. The vertical axis is shown on a logarithmic scale.
Transformer-Direct and PRISM for the 10-AP configuration. Transformer-Direct exhibits several extended high-error regions, particularly near scene boundaries and building edges. In contrast, PRISM reduces both the intensity and spatial extent of these regions and provides more consistent accuracy across the deployment area. Although challenging regions remain for both schemes, the overall improvement indicates that DT-guided refinement helps resolve candidate locations that remain ambiguous under direct neural inference.
Focusing specifically on NLOS test locations, Fig. 9 compares the error distributions of PRISM and the benchmark schemes. PRISM achieves a median error of approximately 0.79 m, compared with 2.07 m for Transformer-Direct, 2.24 m for C-FP, and 3.14 m for CNN-Direct. Moreover, its 75th-percentile error of approximately 1.76 m remains below the median error of every benchmark. Thus, the advantage of PRISM persists across most NLOS test locations rather than being driven by a small subset of favorable realizations.

Fig. 10: Mean absolute error versus number of APs under imperfect DT information. The observed CIR features are generated at dB.
C. Robustness to Observation SNR and DT Imperfections
We evaluate the robustness of PRISM to two practical mismatches: imperfect DT information during inference and a shift between the training and test observation SNRs. In all experiments, the trained models are reused without retraining under the modified test conditions.
- Robustness to Imperfect DT Information: We first evaluate how accurately the DT must reproduce the channel features for PRISM to remain effective. Fig. 10 compares the standard configuration with a magnitude-only DT and DT features distorted at dB. The observed CIR features are generated at dB in all cases.
Fig. 10 shows graceful degradation as the DT information becomes less accurate. At 10 APs, the MAE increases from 1.11 m with the full DT to 1.17 m, 1.36 m, and 1.47 m for , 25, and 15 dB, respectively, and to 1.51 m with magnitude-only DT features. Nevertheless, every imperfect-DT configuration remains more accurate than Transformer-

Fig. 11: Mean absolute error versus number of APs under imperfect DT information. The observed CIR features are generated at dB. For each distorted-DT case, the material properties of a randomly selected fraction of scene objects are replaced by those of brick.
Direct across all considered AP configurations. At 10 APs, even the magnitude-only case improves on its MAE by approximately . More generally, the results suggest that PRISM does not require exact channel reproduction, provided that the imperfect DT preserves useful relative consistency among candidate locations.
We further evaluate a structured DT mismatch in which the material properties of a randomly selected fraction of scene objects are replaced by those of brick. Fig. 11 shows the resulting MAE as the replacement fraction increases.
Fig. 11 shows graceful degradation as the material mismatch increases. At 15 APs, the MAE increases from with the full DT to , , , and for , , , and material replacement, respectively. Nevertheless, even the replacement case remains more accurate than Transformer-Direct across every considered AP configuration. This indicates that the preserved scene geometry and remaining relative channel-consistency structure can still provide effective DT guidance under severe material-property mismatch.
Auxiliary experiments with large movable objects, such as trucks, indicated that the resulting DT mismatch was mainly localized and produced no noticeable change in the aggregate mean or median localization error. No clear degradation was observed even for nearby test locations in the considered setting. A systematic evaluation under more dynamic scene changes is left for future work.
- Robustness to Observation SNR Mismatch: We now evaluate whether the localization schemes remain robust when the test observation SNR differs from the setting used during training. Using the 10-AP configuration, models trained at 15 dB are tested at 15 dB and 25 dB, while models trained at 25 dB are tested at 25 dB and 40 dB. For C-FP, the first SNR in each pair is applied to the fingerprint database and the second to the test observations.
TABLE I: MAE under observation-SNR mismatch in the 10-AP configuration.
| Algorithm | Training/database SNR: 15 dB | Training/database SNR: 25 dB | ||
|---|---|---|---|---|
| 15 dB | 25 dB | 25 dB | 40 dB | |
| CNN-Direct | 3.56 | 12.56 | 3.30 | 8.68 |
| Transformer-Direct | 1.85 | 5.93 | 2.09 | 2.76 |
| C-FP | 3.66 | 5.17 | 3.71 | 4.75 |
| PRISM | 1.25 | 1.94 | 1.11 | 1.59 |
Table I shows that increasing the test SNR does not necessarily improve localization when it differs from the SNR used for training or fingerprint-database construction. Although the observations contain less noise, the change in SNR shifts their feature distribution from that encountered during training. This effect is most pronounced for CNN-Direct, whose MAE increases from 3.56 m to 12.56 m under the 15-to-25 dB mismatch and from 3.30 m to 8.68 m under the 25-to-40 dB mismatch. Transformer-Direct is more stable, particularly in the latter case, while C-FP exhibits more moderate degradation but retains a comparatively high MAE.
In contrast, PRISM maintains an MAE below 2 m in all tested conditions and exhibits the smallest absolute degradation in both mismatch cases. Its MAE increases from 1.25 m to 1.94 m under the 15-to-25 dB mismatch and from 1.11 m to 1.59 m under the 25-to-40 dB mismatch. These results suggest that DT-guided candidate scoring provides an additional site-specific consistency check that reduces the sensitivity of the final localization estimate to changes in the observation statistics.
D. Uncertainty Quantification
In addition to a point estimate, PRISM outputs a predictive covariance that quantifies the uncertainty associated with its learned location proposal. We evaluate whether this covariance is consistent with the observed localization errors using the squared Mahalanobis statistic. To assess calibration, we compute the squared Mahalanobis statistic
where is the ground-truth UE location and and are the predicted mean and covariance for test sample m. If the two-dimensional Gaussian proposal is calibrated, approximately follows a distribution with two degrees of freedom. Fig. 12 compares its empirical distribution with the reference for different numbers of APs.
Fig. 12 shows that the empirical distribution of approaches the reference as the number of APs increases. Its mean decreases from 2.87 for 5 APs to 2.14 for 10 APs and 1.99 for 15 APs, compared with the reference mean of 2. The 5-AP case is overconfident on average and exhibits a heavier upper tail, whereas the 10-AP distribution is closer to the reference and the 15-AP case is well calibrated in the mean. These results indicate that the predicted covariance becomes increasingly

(a) 5 APs

(b) 10 APs

(c) 15 APs
Fig. 12: Empirical distribution of the squared Mahalanobis statistic compared with the reference distribution for different numbers of APs. The red curve shows the ideal distribution, while the blue bars show the observed empirical distribution of the squared Mahalanobis statistic.
consistent with the observed localization errors as more AP observations are available.
Table II provides a complementary coverage-based assessment for the 15-AP configuration. The mean statistic of 1.992 is close to the reference mean of 2, while the empirical coverages of , , and are close to or slightly above the nominal , , and levels, respectively. Thus, the predicted covariance is well calibrated in the mean and provides near-nominal coverage at moderate-to-high confidence levels, although some deviation remains across the full distribution.
TABLE II: Empirical proposal uncertainty coverage for PRISM in the 15-AP configuration using the squared Mahalanobis statistic.
| Confidence Level | Expected Coverage (%) | Actual Coverage (%) |
|---|---|---|
| 50% | 50.0 | 42.58 |
| 68% | 68.0 | 71.48 |
| 90% | 90.0 | 93.36 |
| 95% | 95.0 | 96.88 |
| 99% | 99.0 | 98.63 |
Squared Mahalanobis statistics: Mean = 1.992, Median = 1.54, 90th percentile = 3.689.
VI. CONCLUSION
This paper proposed a DT-guided probabilistic inverse learning framework for site-specific wireless localization using distributed single-antenna APs and a site-specific digital twin (DT). The localization task was formulated as a probabilistic inverse problem, where a Transformer-based model learns a conditional proposal distribution over UE locations from multi-node CIR observations. Instead of treating localization as a purely black-box mapping, the proposed framework combines probabilistic inverse learning with DT-based forward-consistency refinement. The proposal spread is regularized during training to control finite candidate generation, while at inference the DT explicitly reweights sampled candidates according to their channel consistency.
Numerical experiments in realistic site-specific ray-traced environments demonstrated that the proposed framework consistently improves localization accuracy over classical fingerprinting and purely data-driven neural benchmarks. In particular, the proposed scheme achieved up to 63% lower median localization error relative to a Transformer-based benchmark and about 0.7 m median error using only 10 distributed single-antenna APs. The results also showed robustness to observation noise and non-ideal DT conditions, including magnitude-only DT information. Furthermore, the probabilistic formulation provided useful predictive uncertainty estimates, with empirical calibration improving as the number of APs increased.
Future work includes extending the framework from distributed single-antenna APs to multi-antenna sensing and three-dimensional localization, including UAV and industrial sensing scenarios, and studying online adaptation of the DT-assisted localization scheme in dynamic environments. Another promising direction is to combine the proposed DT-guided probabilistic inference framework with federated or distributed data collection, enabling scalable site-specific localization with reduced measurement overhead and improved adaptability to changing propagation conditions.
REFERENCES
[1] G. Cuozzo, E. Testi, S. Riolo, L. Miuccio, G. Cena, G. Pasolini, L. De Nardis, D. Panno, M. Chiani, M.-G. D. Benedetto, E. Buracchini, and R. Verdone, “Research directions and modeling guidelines for industrial internet of things applications,” IEEE Communications Standards Magazine, vol. 9, no. 3, pp. 94–103, 2025.
[2] H. Wymeersch, H. Chen, H. Guo, M. F. Keskin, B. M. Khorsandi, M. H. Moghaddam, A. Ramirez, K. Schindhelm, A. Stavridis, T. Svensson, and V. Yajnanarayana, “6G positioning and sensing through the lens of sustainability, inclusiveness, and trustworthiness,” IEEE Wireless Communications, vol. 32, no. 1, pp. 68–75, 2025.
[3] L. Italiano, B. Camajori Tedeschini, M. Brambilla, H. Huang, M. Nicoli, and H. Wymeersch, “A tutorial on 5G positioning,” IEEE Communications Surveys & Tutorials, vol. 27, no. 3, pp. 1488–1535, 2025.
[4] H. Chen, H. Sarieddeen, T. Ballal, H. Wymeersch, M.-S. Alouini, and T. Y. Al-Naffouri, “A tutorial on terahertz-band localization for 6G communication systems,” IEEE Communications Surveys & Tutorials, vol. 24, no. 3, pp. 1780–1815, 2022.
[5] L. E. Marquez and M. Calle, “Understanding LoRa-based localization: Foundations and challenges,” IEEE Internet of Things Journal, vol. 10, no. 13, pp. 11 185–11 198, 2023.
[6] X. Shan, A. Cabani, and H. Chafouk, “A survey of vehicle localization: Performance analysis and challenges,” IEEE Access, vol. 11, pp. 107 085–107 107, 2023.
[7] N. Garcia, H. Wymeersch, E. G. Larsson, A. M. Haimovich, and M. Coulon, “Direct localization for massive MIMO,” IEEE Transactions on Signal Processing, vol. 65, no. 10, pp. 2475–2487, 2017.
[8] Y. Wang, Y. Wu, and Y. Shen, “Joint spatiotemporal multipath mitigation in large-scale array localization,” IEEE Transactions on Signal Processing, vol. 67, no. 3, pp. 783–797, 2019.
[9] Y. Zeng, J. Chen, J. Xu, D. Wu, X. Xu, S. Jin, X. Gao, D. Gesbert, S. Cui, and R. Zhang, “A tutorial on environment-aware communications via channel knowledge map for 6G,” IEEE Communications Surveys & Tutorials, vol. 26, no. 3, pp. 1478–1519, 2024.
[10] H. Guo, H. Wymeersch, B. Makki, H. Chen, Y. Wu, G. Durisi, M. F. Keskin, M. H. Moghaddam, C. Madapatha, H. Yu, P. Hammarberg, H. Kim, and T. Svensson, “Integrated communication, localization, and sensing in 6G D-MIMO networks,” IEEE Wireless Communications, vol. 32, no. 2, pp. 214–221, 2025.
[11] L. Bariah, H. Sari, and M. Debbah, “Digital twin-empowered communications: A new frontier of wireless networks,” IEEE Communications Magazine, vol. 61, no. 12, pp. 24–36, 2023.
[12] S. Jiang, Q. Qu, X. Pan, A. K. Agrawal, R. Newcombe, and A. Alkhateeb, "Learnable wireless digital twins: Reconstructing electromagnetic field with neural representations," IEEE Open Journal of the Communications Society, vol. 6, pp. 1568–1590, 2025.
[13] L. U. Khan, Z. Han, W. Saad, E. Hossain, M. Guizani, and C. S. Hong, "Digital twin of wireless systems: Overview, taxonomy, challenges, and opportunities," IEEE Communications Surveys & Tutorials, vol. 24, no. 4, pp. 2230–2254, 2022.
[14] A. Alkhateeb, S. Jiang, and G. Charan, “Real-time digital twins: Vision and research directions for 6G and beyond,” IEEE Communications Magazine, vol. 61, no. 11, pp. 128–134, 2023.
[15] A. Nessa, M. Kadoch, and B. Rong, “A survey of machine learning for indoor positioning,” IEEE Access, vol. 8, pp. 214945–214965, 2020.
[16] X. Xiao, Z. Yao, X. Gao, M. Sheng, D. Peng, and M. Zeng, “PosFormer: Generalizable indoor positioning via global-local feature fusion network,” IEEE Transactions on Neural Networks and Learning Systems, pp. 1–14, 2026.
[17] L. Li, Z. Xing, X. Guo, and H. Zheng, “D²-MLoc: Dual-domain MLP-Mixer framework for CSI-fingerprinting indoor localization,” IEEE Transactions on Cognitive Communications and Networking, vol. 11, no. 5, pp. 3276–3291, 2025.
[18] J. Fontaine, B. Van Herbruggen, A. Shahid, S. Kram, M. Stahlke, and E. De Poorter, “Ultra wideband (UWB) localization using active CIR-based fingerprinting,” IEEE Communications Letters, vol. 27, no. 5, pp. 1322–1326, 2023.
[19] H. J. Cho, Y. Ahn, and B. Shim, “Transformer-aided mobile positioning for 6G ultra-dense networks,” IEEE Transactions on Vehicular Technology, vol. 74, no. 4, pp. 6839–6843, 2025.
[20] J. Guo, Y. Lv, C.-K. Wen, X. Li, and S. Jin, “Learning-based integrated CSI feedback and localization in Massive MIMO,” IEEE Transactions on Wireless Communications, vol. 23, no. 10, pp. 14988–15001, 2024.
[21] F. Morselli, S. Modarres Razavi, M. Z. Win, and A. Conti, “Soft information-based localization for 5G networks and beyond,” IEEE Transactions on Wireless Communications, vol. 22, no. 12, pp. 9923–9938, 2023.
[22] T. Wang, Y. Li, J. Liu, K. Hu, and Y. Shen, “Multipath-assisted single-anchor localization via deep variational learning,” IEEE Transactions on Wireless Communications, vol. 23, no. 8, pp. 9113–9128, 2024.
[23] J. Morais and A. Alkhateeb, “Localization in digital twin MIMO networks: A case for massive fingerprinting,” in 2024 IEEE International Conference on Communications Workshops (ICC Workshops). IEEE, 2024, pp. 276–281.
[24] C. Ruah, O. Simeone, J. Hoydis, and B. Al-Hashimi, “Calibrating wireless ray tracing for digital twinning using local phase error estimates,” IEEE Transactions on Machine Learning in Communications and Networking, vol. 2, pp. 1193–1215, 2024.
[25] B. Chatelier, V. Corlay, M. F. Keskin, M. Crussière, H. Wymeersch, and L. L. Magoarou, “Model-based neural data augmentation for sub-wavelength radio localization,” arXiv preprint arXiv:2506.06387, 2025.
[26] X. Han, T. Zheng, M. Hu, C. Cai, T. X. Han, and J. Luo, “Rayloc: Wireless indoor localization via fully differentiable ray-tracing,” Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, vol. 10, no. 2, pp. 1–24, 2026.
[27] J. Hoydis, F. A. Aoudia, S. Cammerer, F. Euchner, M. Nimier-David, S. T. Brink, and A. Keller, “Learning radio environments by differentiable ray tracing,” IEEE Transactions on Machine Learning in Communications
and Networking, vol. 2, pp. 1527–1539, 2024.
[28] NVIDIA, “Sionna RT: Scenes,” Sionna Documentation, 2026. [Online]. Available: https://nvlabs.github.io/sionna/rt/api/scene.html
[29] Z. Wang, A. Bovik, H. Sheikh, and E. Simoncelli, “Image quality assessment: from error visibility to structural similarity,” IEEE Transactions on Image Processing, vol. 13, no. 4, pp. 600–612, 2004.
[30] J. Hoydis, F. A. Aoudia, S. Cammerer, M. Nimier-David, N. Binder, G. Marcus, and A. Keller, “Sionna RT: Differentiable ray tracing for radio propagation modeling,” in Globecom Workshops 2023. IEEE, 2023, pp. 317–321.
[31] A. E. Güneşer, B. Şekeroğlu, S. Kayraklık, E. Karakoca, İ. Hökelek, S. Aldirmaz-Colak, and A. Görçin, “RIS optimization algorithms for urban wireless scenarios in sionna RT,” in 2025 IEEE 101st Vehicular Technology Conference (VTC2025-Spring), 2025, pp. 1–6.
[32] O. Stenhammar, G. Fodor, and C. Fischione, “Joint clustering and prediction of the quality of service in vehicular cellular networks,” arXiv preprint arXiv:2604.12903, 2026.
[33] R. M. Dreifuerst and R. W. Heath, “Hierarchical ML codebook design for extreme MIMO beam management,” IEEE Transactions on Machine Learning in Communications and Networking, vol. 2, pp. 688–702, 2024.
[34] C. Modesto, L. Mozart, P. Batista, A. Cavalcante, and A. Klautau, “Accelerating ray tracing-based wireless channels generation for real-time network digital twins,” IEEE Open Journal of the Communications Society, vol. 6, pp. 5464–5478, 2025.