Manuscript Offprint
arXiv:2610.20933Digital Twin-Conditioned RSS-Fingerprint Localization in Cell-Free Millimeter-Wave Networks
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Varun S. Advani, Graduate Student Member, IEEE, Khalid Kanaan, Graduate Student Member, IEEE, Ahmed Nasser, Senior Member, IEEE, Mohamed Y. Selim, Senior Member, IEEE, and Ahmed M. Eltawil, Senior Member, IEEE
Abstract—Digital twins (DTs) can generate dense synthetic fingerprints for localization via ray tracing, yet the sim-to-real domain gap limits their direct use, particularly in cell-free millimeter-wave (mmWave) deployments where distributed geometries and blockage-induced sparsity widen the mismatch. We propose DT-conditioned (DTCond), a framework that fuses real and DT beam-domain fingerprints as complementary inputs through per-domain encoders, learnable per-access point (AP) attention, and calibrated uncertainty. We derive oracle and pipeline Cramér–Rao bounds (CRBs) for DT-aided fingerprint localization, proving that DT information strictly tightens the positioning bound whenever spatial structure is preserved, with a heteroscedastic refinement that tightens the bound by a further 9.1%. On a real 28 GHz cell-free testbed, the deployable two-stage pipeline, which reads the DT fingerprint at a coarse k-nearest neighbor (k-NN) estimate, achieves 0.284 m mean error against 0.313 m for real-only k-NN. With the DT fingerprint read at the true position (oracle input), DT conditioning achieves 0.186 m mean error, validated through a ten-method ablation against domain-adaptation (DA) and transfer-learning baselines, and a 48% improvement on unseen regions. Multi-user self-attention provides 31–41% per-user gain for emulated simultaneous users, and progressive calibration reduces the measurement budget by 50%. As a use case, localization drives network configuration in closed loop. Between beam sweeps, a DT updated from measured RSS and read at the tracked position estimate selects the 3 of 81 beam pairs that each AP trains. With 49 calibration anchors in the update, the mean beam-selection loss stays below 1 dB over 2 m of motion, whereas reusing the last sweep loses 2.7 dB after 1 m.
Index Terms—Cell-free networks, Cramér–Rao bound, digital twin, fingerprint localization, millimeter-wave.
I. INTRODUCTION
CELL-FREE massive multiple-input multiple-output (MIMO) networks eliminate traditional cell boundaries by jointly serving users through distributed access points (APs) across the coverage area [1]-[3]. When operating at millimeter-wave (mmWave) frequencies, such networks exploit directional beamforming with large antenna arrays, offering both high throughput and fine-grained spatial resolution [4]. Accurate user localization is a prerequisite for location-aware services including beam management, resource allocation, and handover optimization, making it a critical enabler for next-generation cell-free deployments [5]. Fingerprint-based localization that maps received signal strength (RSS)-only beam-domain patterns to positions is well suited to cell-free networks because it naturally exploits the spatial diversity of multiple distributed APs without requiring inter-AP time synchronization or phase coherence [6]. However, building a fingerprint database requires dense physical measurements, a costly process that scales with the service area size and the number of APs.
Ray-tracing digital twins (DTs) address this measurement burden because synthetic fingerprints can be generated at arbitrary spatial density without any physical data collection [7], [8]. Yet a persistent domain gap exists between DT predictions and real measurements. Imprecise material properties in the 3D environment model, unmodeled scattering from small objects, and hardware imperfections absent from simulation all contribute to systematic differences between simulated and real fingerprints. In practice, per-AP Pearson correlations between real and DT beam-domain power profiles can be low, making naive DT-based approaches, such as training on simulated data and deploying on real data, unreliable. Standard domain-adaptation (DA) techniques (such as domain-adversarial neural network (DANN) [9] and correlation alignment (CORAL) [10]), which assume a distributional shift between structurally similar domains, also underperform because the gap reflects a fundamental mismatch in observation processes, not a simple distribution shift (Section VII-C). Despite growing interest in DT-aided wireless systems [11]-[14], existing work focuses predominantly on beam management and single-cell scenarios, often validated only in simulation. Prior DT-aided localization uses the DT as a substitute fingerprint database, a training source, or a positional reference for channel charting [15]-[18]. We extend our work in [19] with new pipeline and heteroscedastic Cramér–Rao bound (CRB) analysis, multi-user localization, progressive calibration, localization-driven beam and serving-AP selection, and an expanded evaluation.
In this paper, we propose DT-conditioned (DTCond), a localization framework that treats the DT fingerprint as a complementary conditioning input rather than a source for pre-training or domain alignment. DTCond processes real and DT beam-domain fingerprints through separate per-domain encoders, fuses them via learnable per-AP attention weights that allocate position-dependent precision across the distributed APs, and outputs both a position estimate and calibrated per-coordinate uncertainty. The framework is grounded in a CRB analysis that quantifies the positioning benefit of DT infor-
V. S. Advani and M. Y. Selim are with the Department of Electrical and Computer Engineering, Iowa State University of Science and Technology, Ames, IA 50011 USA (e-mail: vsadvani@iastate.edu; myoussef@iastate.edu).
K. Kanaan, A. Nasser, and A. M. Eltawil are with the Computer, Electrical, and Mathematical Sciences and Engineering Division, King Abdullah University of Science and Technology (KAUST), Thuwal, KSA (e-mail: khalid.kanaan@kaust.edu.sa; ahmednasser.ismail@kaust.edu.sa; ahmed.eltawil@kaust.edu.sa).
mation and motivates the architectural choices, including per-AP weighting and heteroscedastic output. A twin-in-the-loop calibration strategy progressively collects real measurements at spatially diverse locations, enabling deployment with limited field data. At run time, the deployable two-stage pipeline reads the DT fingerprint at a coarse real-only -nearest neighbor (-NN) estimate, whereas the oracle input is the DT fingerprint at the true position. The main contributions are as follows.
-
Theory. We formulate a joint observation model for DT-aided fingerprint localization and derive oracle, pipeline, and heteroscedastic CRBs, showing that DT information strictly tightens the positioning bound whenever spatial structure is preserved. A first-order sensitivity analysis reveals that DT information is most valuable along weak eigendirections of the real-only Fisher information matrix (FIM), and a per-AP decomposition provides a marginal DT utility score motivating DT-driven AP attention. The pipeline CRB accounts for retrieval mismatch and moves monotonically from the real-only to the oracle bound as the coarse-stage error shrinks; the heteroscedastic refinement tightens the oracle bound further wherever the local per-AP domain-gap variance stays below its pooled value.
-
Design principle and architecture. We propose the DTCond framework, which fuses real and DT beam-domain RSS fingerprints through per-domain neural encoders and learnable AP attention to produce position estimates with calibrated uncertainty. The deployable pipeline achieves 0.284 m mean error against 0.313 m for real-only k-NN. With the oracle input, a ten-method ablation shows that DT conditioning achieves 0.186 m mean error (a 41% reduction over real-only k-NN) and that the architecture adds a statistically significant 12% over concatenation of the same inputs. Because DT-driven AP attention can express the per-AP precision allocation of the heteroscedastic CRB, DTCond is structurally distinct from fusion baselines that lack per-AP weighting. Evaluation under leave-one-line-out (LOLO) demonstrates a 48% reduction in mean error on unseen spatial regions over real-only k-NN, with precision-aware attention extending this to 51%.
-
Multi-user extension. We introduce multi-user localization via DT-mediated cross-user self-attention, achieving a 31–41% reduction in mean per-user error over the single-user baseline for emulated simultaneous users. The DT provides a shared spatial context that raises the multi-user benefit 1.8- to 2.5-fold compared to real-only self-attention, enabling cross-user information exchange regardless of physical inter-user distance.
-
Closed-loop operation. We develop a twin-in-the-loop progressive calibration framework with spatially diverse measurement selection that halves the required real measurements while exceeding the accuracy of real-only baselines at full data. Calibration anchors thus improve the localizer, and, as a use case, its position estimates close the loop between the network and the DT. Between beam sweeps, the updated DT, read at the
TABLE I SUMMARY OF KEY NOTATION
| Symbol | Description |
|---|---|
| System Model | |
| Number of distributed APs | |
| AP / user equipment (UE) antenna elements (TX / RX beams) | |
| Beam pairs per AP () | |
| Meas. positions, trajectories, snapshots per position | |
| Service area; UE 2D position | |
| Transmit power | |
| Channel matrix from AP to UE | |
| TX/RX beamforming vectors; receiver noise | |
| Fingerprints and Domain Gap | |
| Real fingerprint from AP | |
| DT fingerprint from AP | |
| Full concatenated fingerprints | |
| Domain gap at AP | |
| Noise / domain gap variance | |
| Identity matrices of indicated dimension | |
| Real-DT Pearson correlation at AP | |
| CRB and FIM | |
| Fisher information matrices (FIMs): real-only, DT-only, joint | |
| Noise-free real / DT fingerprint functions | |
| Fingerprint Jacobian | |
| Jacobian cosine similarity at AP | |
| Jacobian alignment factor | |
| Matrix trace | |
| DTCond Architecture | |
| DTCond model with parameters | |
| Per-domain encoder networks | |
| AP attention / fusion networks | |
| Learned AP attention weights | |
| Encoder embedding / hidden / fusion output dim. | |
| AP attn. hidden / multi-user feature dim. | |
| Dropout probability | |
| Predicted position and uncertainty | |
| Calibration | |
| Calibration set of real measurements | |
| Calibration budget | |
| Number of simultaneously localized users | |
tracked position estimate, selects the 3 of 81 beam pairs that each AP trains. With 49 calibration anchors in the update, the mean beam-selection loss stays below 1 dB over 2 m of motion, against 2.7 dB after 1 m for the last sweep.
Table I summarizes the key notation.
A. Digital Twins for Wireless Networks
DTs have become widely adopted for wireless network design [8], [28], with Alkhateeb and coworkers pioneering DT-aided beam management via ray tracing [7], [20], [29] and transfer learning [21]. Other applications include Bayesian calibration [11], reconfigurable intelligent surface (RIS) management [12], and network experimentation [13], but existing work focuses on beam management or resource allocation in single-cell settings with few real-data evaluations. Site-specific ray tracing forms the radio layer of such twins [29], [30], runs inside network simulators [31], is calibrated from measurements [32], and has guided integrated sensing and communication [33]. Closed-loop twins account for their own uncertainty [11] or are updated when they diverge from reality [34]. For localization, ray-traced databases have replaced
TABLE II COMPARISON WITH REPRESENTATIVE RELATED WORK ON DT-AIDED WIRELESS SYSTEMS, LOCALIZATION, AND CELL-FREE POSITIONING ( USERS EMULATED FROM SINGLE-USER MEASUREMENTS)
| Reference | DT-Aided | Cell-Free | RSS-Only | Localization | CRB | DA | Multi-User | Prog. Calib. | Real Data | Key Focus |
|---|---|---|---|---|---|---|---|---|---|---|
| Alkhateeb et al. [7] | ✓ | ✓ | Beam management | |||||||
| Charan et al. [20] | ✓ | ✓ | Vision-aided beams | |||||||
| Ruah et al. [11] | ✓ | Bayesian DT framework | ||||||||
| Cui et al. [12] | ✓ | ✓ | RIS cell-free management | |||||||
| Morais & Alkhateeb [14] | ✓ | ✓ | ✓ | Massive fingerprinting | ||||||
| Demirhan & Alkhateeb [21] | ✓ | ✓ | Transfer learning | |||||||
| Renaudin et al. [15] | ✓ | ✓ | ✓ | ✓ | Ray-traced fingerprints | |||||
| Gao et al. [16] | ✓ | ✓ | Localization-oriented DT | |||||||
| Akgun et al. [18] | ✓ | ✓ | ✓ | ✓ | Testbed DT positioning | |||||
| Saribekyan et al. [22] | ✓ | ✓ | ✓ | ✓ | ✓ | Sim-to-real RSSI positioning | ||||
| Shahmansoori et al. [4] | ✓ | ✓ | mmWave ToA/AoA | |||||||
| Shen & Win [23] | ✓ | ✓ | Wideband FIM | |||||||
| He & Chan [6] | ✓ | ✓ | ✓ | Wi-Fi fingerprinting | ||||||
| Gante et al. [24] | ✓ | DL mmWave positioning | ||||||||
| Advani et al. [25] | ✓ | ✓ | ✓ | RIS-aided RSSI loc. | ||||||
| Shen et al. [26] | ✓ | ✓ | Cell-free fingerprint loc. | |||||||
| Savic & Larsson [27] | ✓ | ✓ | ✓ | Distributed MIMO fingerprint | ||||||
| This work | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓† | ✓ | ✓ | DT-cond. RSS loc. |
surveyed fingerprints [14], [15], and twins have trained positioning networks [16], provided positional references for channel charts [17], and supported positioning on a 5G testbed [18] (Table II). DTCond instead pairs measured and DT fingerprints and relates the gain to the domain gap through the CRB.
B. Localization in Cell-Free and mmWave Systems
RSS-only fingerprint-based localization maps received power patterns to positions [6], with deep learning (DL) approaches using convolutional [35], [36] and mmWave-specific architectures [24], [37]. Our prior work [25] demonstrated RSS-based mmWave localization in an RIS-aided non-line-of-sight (NLoS) environment (0.25 m on a real 28 GHz testbed); the present work extends to cell-free multi-AP deployments with DT conditioning and CRB analysis. Model-based mmWave positioning exploits time of arrival (ToA) and angle of arrival (AoA) [4], [38]. Cell-free and distributed-MIMO localization has been studied via RSS fingerprinting in distributed massive MIMO [27], model-based mmWave positioning with inter-AP synchronization [39], and mmWave cell-free fingerprint schemes [26], but all rely on simulation; the user-centric paradigm [3] motivates localization-aware AP selection, which Section VI realizes through the DT.
C. DA for Wireless Systems
The sim-to-real gap has motivated several alignment-based approaches: DANN [9] learns domain-invariant features through adversarial training, CORAL [10] aligns second-order statistics, and maximum mean discrepancy (MMD) matches distributions through kernel mean embeddings [40]. Transfer learning has been applied to radar-aided beam prediction [21]. For sim-to-real received signal strength indicator (RSSI) positioning, matching the simulated and measured distributions mattered more than physical realism [22]. All these methods assume a removable distributional shift between structurally similar source and target domains; however, this assumption does not hold for DT-aided localization. The real and DT

Fig. 1. Twin-in-the-loop system architecture. Distributed APs collect beam-domain fingerprints ; a ray-tracing DT generates synthetic fingerprints . DTCond fuses both with progressive calibration. Localization closes the loop. The DT is read at the position estimate (dashed arrow) and updated by the gap estimated from measured RSS (upper solid arrow). It selects the beam pairs that the APs train (lower arrow).
fingerprints are produced by different observation processes, namely stochastic measurement and deterministic ray tracing, and forcing distributional alignment removes the spatial structure that the DT contributes. Section VII-C shows that DA baselines underperform real-only methods for this reason.
D. Theoretical Bounds for Localization
The CRB lower-bounds the variance of any unbiased estimator via the inverse FIM. Foundational frameworks for wideband [23] and cooperative [41], [42] localization show per-anchor FIM contributions; extensions cover RSS-based bounds [43] and multi-measurement types [38]. The misspecified CRB [44] extends these results when the assumed observation distribution is incorrect. The joint observation model in which a noisy real fingerprint and a deterministic DT fingerprint are available at the same position lies outside these frameworks and is analyzed in Section IV.
III. SYSTEM MODEL
This section presents the cell-free mmWave network model, defines the DT and domain gap, and formulates the locali-zation problem. The twin-in-the-loop system architecture is illustrated in Fig. 1.
A. Cell-Free mmWave Network Model
We consider a cell-free mmWave network comprising M distributed APs that jointly serve user equipments (UEs) within a service area . Each AP is equipped with a uniform planar array (UPA) of antenna elements and employs a discrete Fourier transform (DFT) codebook of directional transmit beams, assuming a non-oversampled codebook. The UE is equipped with a UPA of antenna elements using a corresponding DFT codebook of receive beams. During beam sweeping, AP m transmits sequentially across all transmit beams while the UE scans all receive beams, yielding beam-pair power measurements per AP. Both the AP and the UE apply beamforming, at the transmitter and at the receiver, with fixed codebooks that require no channel state information, unlike channel-adaptive conjugate beamforming. Localization uses the received powers of the full beam sweep, whichever beam pair the network then selects for communication.
For a UE at unknown position , the received power under beam pair from AP m is
where is the transmit power, is the position-dependent MIMO channel matrix from AP to the UE, and are the transmit and receive beamforming vectors for beam pair (with the bijection from to ), and denotes the receiver noise contribution. The beam-domain fingerprint from AP , measured at the UE, collects the received powers across all beam pairs
The full cell-free fingerprint stacks those of all M APs
The cell-free deployment enriches the spatial discriminability of by providing complementary angular views from geographically separated APs.
B. Digital Twin Model and Domain Gap
A DT of the wireless environment generates synthetic fingerprints via a deterministic ray-tracing simulation. The DT produces a simulated beam-domain fingerprint , and the full DT fingerprint is . Unlike real measurements, DT fingerprints are deterministic and can be generated at arbitrary spatial density without measurements.
A systematic domain gap exists between real and DT fingerprints. All fingerprints are converted to the dBm domain via elementwise before further processing; for notational compactness, and denote dBm-domain quantities from this point onward. In dBm, multiplicative power differences become additive, and the real fingerprint decomposes as
where is the position- and AP-dependent domain gap capturing systematic differences between the DT and reality (imprecise material properties, unmodeled scattering, and hardware imperfections), and is the measurement noise. This additive decomposition is exact in dBm, where the noise represents the snapshot-to-snapshot variation after dBm conversion. The Gaussian approximation is validated empirically in Section VII-D. The domain gap is spatially varying, generally nonzero-mean, and can be large in magnitude. We quantify it through the per-AP Pearson correlation
where indexes the measurement positions, is the sample mean of the real fingerprints from AP , and is the corresponding DT sample mean. Low values of indicate large domain gaps, but do not preclude the DT from preserving spatial structure, a key distinction we formalize next.
Remark 1 (Spatial fidelity versus absolute fidelity). The domain gap degrades absolute fingerprint accuracy, but the DT can preserve the spatial structure of the fingerprint field. Specifically, the spatial gradient can be well correlated with even when is large, as illustrated in Fig. 2. Physically, spatial structure is how the fingerprint changes as the UE moves. In , the spatial mean biases every absolute power but , so only enters Lemma 1. Proposition 1 formalizes this distinction. We quantify spatial gradient preservation via the per-AP Jacobian cosine similarity
which measures how well the DT's spatial variation tracks that of the real measurements at each AP; the empirical values reported in Section VII-D provide direct confirmation. In particular, a DT with large systematic bias but rich spatial variation still contributes substantial positioning information, whereas one with provides no benefit regardless of calibration, motivating an architecture that exploits spatial structure rather than absolute power.
Lemma 1 (Gradient preservation implies alignment). Let and at , so that the noise-free real Jacobian is . If and , the cosine (6) between and , , satisfies , hence , with equality .
Proof. The angle between and satisfies , since by the Cauchy–Schwarz inequality, and the

Fig. 2. Measured RSS and DT prediction , both power-balanced (Section V-A), and their difference (columns) for APs 1–3 (rows) over the transmit (horizontal) and receive (vertical) beams at m, the star in Fig. 10. Circles and crosses mark the strongest measured and DT beam pairs. They lie within one index at APs 2 and 3 despite the level differences and differ at AP 1 ( ).
distance from to the line is , with equality is the minimizer, i.e., . Hence .
Examples. A constant offset, such as cable loss or a transmit-power error, gives . At 5 m from an AP, a path-loss exponent error of 0.3 adds a gap gradient of dB/m. Modeling concrete (relative permittivity at 28 GHz) as biases a reflection by 0.8–1.4 dB but its gradient by dB/m, since reflection loss follows the slowly varying incidence angle. Both lie far below the 2.3–7.0 dB/m beam-pattern gradients, so each of these errors alone gives . An AP position error gives for the beam footprint m. An unmodeled blocker violates , as its shadow edge carries gap gradients near 75 dB/m.
C. Problem Formulation
Given a calibration set of paired real and DT fingerprints at known positions, and a DT model that can generate fingerprints over via ray tracing, we seek a localization function that maps a real fingerprint and its corresponding DT fingerprint to a position estimate and uncertainty estimate
At inference, is applied to any new fingerprint pair , including positions . The learning objective over the calibration set is
where transitions from mean squared error (MSE) on to heteroscedastic negative log-likelihood (NLL) on during training (Section V-E). Two challenges distinguish this from standard fingerprint localization: (i) the DT input lies in a different statistical domain from , requiring per-domain processing; (ii) the limited budget motivates a progressive, information-maximizing strategy (Section VI).
IV. CRAMÉR–RAO BOUND FOR DT-AIDED LOCALIZATION
We now derive CRBs to quantify the benefit of DT information. The oracle CRB assumes access to the DT fingerprint at the true position; its role is explanatory, isolating how the DT's spatial variation enters the localization information. The pipeline CRB of Proposition 3 characterizes the deployable two-stage pipeline of Section V-G.
Let denote the noise-free real fingerprint, concatenated DT fingerprint, and concatenated domain gap at position , where and is defined analogously. Concatenating (4) across all APs gives , so the real measurement follows the observation model
where concatenates the per-AP noise vectors, with , and is the per-element measurement noise variance, estimated from the repeated snapshots as , where denotes the sample variance over the snapshots.
The FIM for estimating q from r alone is [23]
where is the fingerprint Jacobian with respect to the two-dimensional position .
In practice, this Jacobian is estimated numerically from local spatial neighborhoods (Section VII-D), with rows corresponding to AP m encoding that AP's spatial sensitivity.
To quantify the maximum DT information, we treat the DT fingerprint as a matched auxiliary observation. Let denote the DT fingerprint function, subject to effective per-element noise variance —the per-element variance of across positions, computed on the snapshot-averaged fingerprints (subscript distinguishes it from ). Treating as a single scalar (identical ) is a simplification that Proposition 2 refines per AP.
The DT contribution to the FIM is
Since real measurement noise and DT modeling errors are conditionally independent (arising from physically distinct processes), the joint FIM is additive:
The CRB on the root-mean-square positioning error at position q is
The joint CRB is an oracle benchmark assuming access to the DT fingerprint at the true position; the practical retrieved-DT pipeline is evaluated in Section VII-C.
Proposition 1 (Oracle monotonicity of DT information). Let satisfy . Then
The inequality is strict whenever the DT fingerprint exhibits nonzero spatial variation, i.e., . The total DT information , the DT's spatial information relative to its domain gap.
Proof. The proof proceeds in three steps.
Step 1 (Positive semidefiniteness). By (11), , , so .
Step 2 (Non-increasing CRB). With Step 1 and , from (12),
By the Löwner ordering ,
which gives .
Step 3 (Strict improvement condition). With (argument q omitted), (12) gives
so . Since , (11) gives .
Remark 2 (Directional complementarity). To characterize where the DT information is most valuable, we analyze the first-order sensitivity of the CRB to the DT contribution. Define
Then
by , where , are the eigenpairs of . Hence, the largest first-order CRB reduction occurs when the DT adds information along the weak eigendirection of the real-only FIM. On our testbed, 73% of the DT's CRB reduction comes from the weak eigendirection, so the DT acts mainly along , motivating position-dependent AP weighting.
Corollary 1 (Per-AP marginal DT utility). Since with , the DT FIM (11) decomposes as , where
The first-order CRB sensitivity from Remark 2 decomposes accordingly as , where the per-AP marginal DT utility is
The score quantifies how much AP m's DT fingerprint reduces the oracle CRB at position q, weighted by the real-only information geometry. In cell-free deployments, the geometric diversity of AP placements ensures that per-AP DT Jacobians point in complementary directions in position space, so even an AP with low absolute DT fidelity ( ) can contribute substantially if its DT Jacobian complements the information provided by other APs. The learned AP attention weights in DTCond (Section V-C) are designed as a data-driven proxy for , which Section VII-D evaluates.
Remark 3 (Cell-free geometric diversity gain). In a cell-free deployment, the per-AP DT Jacobians point in geometrically diverse directions because the APs observe the UE from different angles, ensuring that , so along the weak eigendirection. The DT thus improves both the size and shape of the positioning error ellipse, a benefit that grows with the angular diversity of distributed APs.
Remark 4 (Quantifying the improvement). When the real and DT fingerprint Jacobians are aligned ( for some ), then by (10) and (11), and the joint CRB simplifies to
This shows that the improvement depends on both the Jacobian alignment factor c and the noise-to-gap ratio . More generally, the DT is most valuable when measurement noise is large relative to the domain gap, which is precisely the regime where real-only localization struggles. In practice, the alignment factor is estimated from finite data as
where and are the real and DT fingerprint Jacobians evaluated at position . Section VII-D reports the empirical distribution of and validates this prediction against the measured CRB reduction.
Proposition 2 (Heteroscedastic per-AP CRB). Let denote the domain-gap variance, treated as locally constant , and define the heteroscedastic DT FIM
If and , then the heteroscedastic CRB, i.e., (13) with in place of , satisfies
A sufficient condition for is , ; if , , then .
Proof. When , , and the Löwner ordering on positive-definite inverses yields . The sufficient condition follows because , , implies , using (Corollary 1) and . Local constancy omits the covariance-derivative term of the Gaussian FIM; since , the ordering persists. The right inequality is Proposition 1.
On our testbed, the heteroscedastic bound is tighter than the uniform bound at 97.1% of test positions (Section VII-D), and the mean heteroscedastic CRB (0.162 m) is 9.1% tighter than the uniform bound (0.178 m). Proposition 2 connects this refinement to the learnable AP attention in Section V-C: an architecture with per-AP precision weights can approach the heteroscedastic bound at positions where the condition holds.
Proposition 3 (Pipeline CRB under DT retrieval mismatch). At deployment, the DT fingerprint is retrieved at a coarse estimate , introducing a retrieval error , independent of the noise and the domain gap , with and locally constant as in Proposition 2. Under a first-order Taylor approximation , the retrieval mismatch inflates the effective DT observation noise to
yielding the retrieved-DT FIM contribution
The pipeline CRB is
which satisfies the sandwich inequality
When the coarse-stage error is the real-only CRB ( ), the degradation from oracle to pipeline is governed by the ratio , where stacks the per-AP Jacobians from Proposition 2. The pipeline approaches the oracle when the coarse stage is accurate or the DT fingerprint varies slowly, and approaches the real-only bound when the retrieval mismatch dominates the domain gap. Moreover, with , , , , and , whereas as , .
Proof. The effective noise covariance satisfies because . By the Löwner ordering on inverses, , which gives . Hence , and Step 2 of the proof of Proposition 1 yields the left inequality. The right inequality follows because (a congruence of ), so . (a) With , the push-through identity with and gives . (b) gives in (25), hence , and the ordering follows as in Proposition 1. (c) gives . For , parts (b) and (a) give .
Proposition 3 yields three insights. First, the sandwich inequality (28) places the pipeline bound between the oracle CRB and the real-only bound, so the DT never loosens the bound, even when read at a coarse estimate; Section VII-D evaluates it at all test positions. Second, iterative refinement (re-retrieving the DT at the DTCond output) diverges because it feeds dependent estimation errors back through G, whereas the single-pass pipeline reads the DT once, at a real-only k-NN coarse estimate. Third, the ratio is a deployable diagnostic: when small, the pipeline approaches oracle performance; when large, improving the coarse stage yields higher returns than improving the DT.
A sparser site survey (the real fingerprint database of the coarse k-NN stage) enlarges and, by part (b), does not lower the pipeline bound, since nearest-node retrieval on a lattice with spacings and contributes .
The standard CRB assumes Gaussian observation noise. We verify empirically in Section VII-D that mild departures from Gaussianity do not materially affect the bound, using the misspecified CRB framework of [44].
V. DT-CONDITIONED LOCALIZATION FRAMEWORK
Motivated by the CRB analysis, which shows that the DT contributes positioning information through spatial structure rather than absolute accuracy, we design a localization architecture that conditions on the DT input while preserving the distinct statistical characteristics of each domain. The architecture, illustrated in Fig. 3, processes real and DT fingerprints through separate encoder pathways, fuses them via learnable AP attention, and outputs a position estimate with learned uncertainty.
A. Data Preprocessing Pipeline
Raw linear power measurements are first converted to dBm via , where prevents logarithmic singularities. Per-AP offsets (in dB), added to both domains, balance the APs: with the number of positions at which AP provides the strongest beam pair, the offsets satisfy , giving 32.3, 34.9, and 32.8% for APs 1–3 instead of 6.2, 88.0, and 5.7%. This prevents a proximate AP from dominating and masking the spatial information carried by more distant APs. The offsets and the normalization statistics use the fingerprints without position labels, and offsets computed on the training split alone differ by less than 0.05 dB. Finally, each domain is z-score normalized using its own per-AP statistics
where and are the mean and standard deviation of the entries of over all beam pairs and positions, and the DT statistics are obtained in the same way. Per-domain normalization is essential; sharing statistics across domains degrades accuracy because the DT's different dynamic range distorts the real signal statistics.

Fig. 3. DTCond architecture with per-domain encoders, DT-driven AP attention, and heteroscedastic position output.
B. Per-Domain Encoders
For each AP , separate encoders transform the per-AP normalized fingerprints into compact representations. Let and denote the real-domain and DT-domain embedding vectors for AP , respectively, where is the embedding dimension. These are obtained by applying per-domain encoder networks and to the corresponding normalized fingerprints
Both encoders and share the same two-layer multilayer perceptron (MLP) architecture, written generically as , :
where , , is the hidden layer dimension, BN denotes batch normalization (BN), and Dropout applies dropout with probability . The encoders are shared across APs (i.e., the same processes ) but separate across domains ( ). Weight sharing across APs reduces parameters from to encoder sets, while domain separation allows each encoder to learn domain-appropriate feature extraction, respecting the different distributional characteristics of real and DT fingerprints.
C. Learnable AP Attention
Not all APs contribute equally to localization at every position. An AP with a strong line-of-sight (LoS) path to the UE provides more discriminative beam-domain information than one whose signal is heavily shadowed or arrives through multiple reflections. We compute position-dependent AP attention weights , where denotes the scalar weight assigned to AP , from the DT input
where is a two-layer network, Linear( ) ReLU Linear( ), with hidden dimension . Computing exclusively from the DT fingerprint enables attention computation where no real measurements exist (useful during progressive calibration) and lets the network learn which APs are most informative at each region from the DT's beam patterns, serving as a data-driven proxy for the per-AP DT utility of Corollary 1.
The weighted aggregation produces the real-domain global feature vector and the DT-domain global feature vector , computed as
D. Fusion and Heteroscedastic Uncertainty
The fusion network combines the domain-specific features and jointly predicts position and uncertainty
where is a two-layer MLP with the same structure as (31) with input dimension , hidden dimension , and output dimension . A linear output head maps from the fused representation to position and log-uncertainty
where and are the weight matrix and bias vector of the position head, and and are the corresponding parameters of the uncertainty head. Denoting the network output as , the per-coordinate predicted uncertainty is obtained as , where the element-wise exponential ensures positivity. The heteroscedastic output provides a spatially varying confidence measure, with small values in well-covered regions and large values in undersampled or ambiguous areas.
E. Two-Stage Training
Training proceeds in two stages to decouple position learning from uncertainty calibration.
Stage 1, MSE warmup ( epochs). The network learns positions under the MSE loss, ignoring the uncertainty outputs
This stage establishes stable position estimates before introducing the more complex uncertainty objective. The Adam optimizer is used with gradient clipping at to prevent instability from noisy gradients; training hyperparameters are listed with the system parameters in Section VII-A.
Stage 2, heteroscedastic NLL ( epochs). The loss transitions to the heteroscedastic NLL [45]
which jointly refines position accuracy and calibrates the uncertainty output. The quadratic term penalizes errors that are large relative to , i.e., overconfident predictions, and the logarithmic term penalizes needlessly large . Cosine annealing reduces the learning rate over total epochs, with early stopping on the validation MSE.
The two-stage approach prevents uncertainty collapse, where the model minimizes NLL by predicting uniformly large everywhere rather than learning accurate positions. By first establishing good position estimates (Stage 1), the uncertainty head in Stage 2 can learn spatially varying confidence that correlates with actual error.
F. Multi-User Localization via Self-Attention
When users are simultaneously present in , cross-user information can improve per-user accuracy [42]. Each user independently passes through the shared DTCond pipeline (encoders, attention, fusion) to obtain a per-user fusion output , computed via (34) from user 's own fingerprint pair . A linear projection maps each user's fused representation to the multi-user feature space, . A scaled dot-product self-attention layer [46] exchanges information
where stacks all user features, is the multi-user feature dimension, and are the learned query, key, and value projections. The residual connection preserves each user's individual information, while the attention mechanism allows users to share spatial context. Layer normalization is applied after the residual, followed by a shared per-user position head , where and . Because each encodes the common propagation structure through the DT, the attention mechanism operates on DT-mediated representations rather than spatial proximity, implying that the multi-user improvement should be relatively insensitive to physical inter-user distance, as validated in Section VII-I. Section VII-I emulates user groups from single-user measurements, since every UE receives the same downlink sweep with its own receive beams and co-present UEs change each other's mean fingerprint only through mutual blockage.
G. Inference Procedure
At deployment, the UE position is unknown, so the corresponding DT fingerprint cannot be queried directly at the true position. We adopt a two-stage inference procedure that queries the DT model after obtaining a coarse position estimate. In our implementation, the ray-traced DT responses are cached on a dense spatial grid as for computational efficiency.
Stage 1 (Coarse localization). Given the observed real fingerprint , a lightweight -NN search over the real fingerprint database identifies a coarse position estimate . This step uses the same -NN Real baseline from Section VII-B and requires no neural network evaluation. -NN needs no training and uses only the real fingerprint. Any coarse estimator that meets the assumptions of Proposition 3 with error covariance can replace it, and by part (b) its pipeline bound is no larger.
Stage 2 (DTCond refinement). The DT fingerprint at the coarse estimate, , is obtained by querying the DT model, or equivalently by reading the cached ray-traced value at the nearest grid point in our implementation, then preprocessed following Section V-A and paired with . DTCond then produces the refined estimate .
Because the DT fingerprint varies smoothly in space, an error gives (Proposition 3). To make DTCond robust to this perturbation, we augment training by randomly substituting a nearby DT grid neighbor as the DT input; the augmentation probability and neighborhood size are specified in Section VII-C.
VI. TWIN-IN-THE-LOOP PROGRESSIVE CALIBRATION AND LOCALIZATION-DRIVEN NETWORK CONFIGURATION
A. Calibration Framework
The twin-in-the-loop framework, outlined in Algorithm 1, progressively improves localization by iterating between data collection and model training. The DT provides dense spatial coverage while real measurements provide calibration anchors, surveyed positions at which the fingerprint is measured and the ground-truth position is known. As the calibration set C grows, the per-domain normalization statistics (29) stabilize, and the localization error decreases (Section VII-G).
B. Progressive Data Collection
The progressive calibration analysis varies from 5% to 100% of the available training data. At each fraction, we subsample the real training data, recompute the per-domain normalization statistics (29) from only the available positions, retrain DTCond from scratch, and evaluate on a fixed test set. The DT model remains available throughout, so only real measurements are limited.
Algorithm 1 Twin-in-the-Loop Progressive Calibration and Localization-Driven Network Configuration
Require: Ray-traced on , anchor counts ,
1: Survey initial anchors by (39) and fit
2: for periods do
3: Update by (40) and set
4: If anchors were added, retrain DTCond by (29)–(37)
5: for each user with a full sweep in period do
6: Localize ; keep the sweep as a report at
7: Configure and by (41) until the next sweep
8: end for
9: If , add anchors by (39)
10: end for
C. Spatially Diverse Measurement Selection
Given a budget of calibration measurements, the selection of where to measure significantly impacts localization quality. We adopt a maximin criterion that maximizes coverage
Section VII-G compares this spatially diverse selection with random selection and uncertainty-guided selection of the positions with the highest predicted uncertainty of a DTCond model trained on a seed set.
D. Localization-Driven Network Configuration
Algorithm 1 closes two loops through localization. Calibration anchors retrain DTCond and improve the localizer (Section VII-G), and its position estimates drive the network configuration and place the reports that refine the DT, a use case that we demonstrate for beam and serving-AP selection, two location-aware services of Section I. A full sweep of all 81 pairs of every AP reveals the strongest pairs only at its own instant. Between sweeps, the network must predict them for the moving UE. The prediction uses the tracked estimate, i.e., the position estimate of the last sweep advanced by odometry, and the RSS there, given by the DT. Selection compares absolute powers, but the ray-traced DT ranks the strongest measured pair first at only 27.5% of positions. Selection thus uses the updated DT of the twin update (40), whereas DTCond keeps , since localization needs only its spatial structure (Remark 1). In the loop of Algorithm 1, the UE is localized, at the tracked estimate configures the pairs to train, and the next sweep, placed at the position estimate, updates , so localization closes the loop.
The gap over the grid, for AP and beam pair , has the prior , , whose two terms model the spatial mean and the position-dependent part of the gap (Remark 1), with a correlation matrix that decays with distance. Observation is a calibration anchor or a measurement report, i.e., the full sweep of a served user localized at with covariance . It is assigned to the node nearest to its surveyed or estimated position and gives , where is the th entry of and is noise of variance . For an anchor, , the single-snapshot noise variance of AP . For a report, , with and . Localization uncertainty thus down-weights each report, as does in (25). The twin update is the linear minimum mean-square error (LMMSE) estimate, i.e., Gaussian-process regression (kriging),
with posterior variance , where and sum and over with , being the set of observations up to period .
Proposition 4 (Monotone twin refinement). If and each is fixed when observation enters, then and , so the model-predicted mean-square DT error of a new measurement at is non-increasing in .
Proof. Nesting with fixed gives and , so , whose entries give the claim on .
Configuration reads at the node nearest to the tracked estimate,
where returns the indices of the largest entries and is the RSS of pair of AP measured in beam training. Until the next full sweep of the user, each AP trains only its candidate set , and AP serves the user on its strongest trained pair. The action leaves the propagation of a static scene unchanged. It sets the served link, its received power, and the training overhead.
For a user at with fingerprint , the beam-selection loss of AP in dB obeys , (42)
because , so that with , and . Here is the DT error and satisfies , so the second step is the triangle inequality. By Proposition 4, the update never increases , the model-predicted bound, . Accurate localization reduces the second term. Thus (42) ties the beam-selection loss to the DT and localization errors.
VII. EXPERIMENTAL EVALUATION
A. Measurement Campaign and Dataset
We evaluate the proposed framework on a real indoor 28 GHz cell-free testbed, illustrated in Fig. 4. The site is a static laboratory with reflecting furniture, equipment, and metal surfaces and largely unobstructed direct paths. The testbed comprises M = 3 distributed APs, each equipped with a UPA and a codebook of beam pairs. The coverage area is a trapezoid of approximately 9.6 m depth with parallel sides of 6 m and 19.6 m. A mobile UE

Fig. 4. (a) Real indoor 28 GHz cell-free testbed. (b) Ray-tracing DT reconstruction showing the 3D scene model with AP placements and measurement trajectory.
traverses straight-line walking trajectories, collecting repeated beam-domain measurements at each of positions. The repeated measurements are averaged to form per-position fingerprints, with the per-snapshot variance used for noise estimation, yielding . Ground-truth UE positions along each trajectory were recorded using a ZED 2 stereo camera with visual-inertial odometry, providing centimeter-level positional accuracy (). The DT is constructed using a site-specific ray-tracing propagation model in MATLAB on the same 3D scene model (Fig. 4), generating fingerprints at the same positions. The ray tracer uses up to one reflection, no diffraction, and a uniform wood material, and it sums the ray powers incoherently, each weighted by beam patterns fitted empirically to the arrays. The DT is also evaluated on a grid of 2,707 nodes spaced along the walking lines and their midlines. System parameters are summarized in Table III.
Domain gap statistics. Per-AP Pearson correlations between real and DT fingerprints are , , , indicating a substantial domain gap. The overall real-DT correlation computed jointly across all beam elements is 0.597, higher than the per-AP values because both domains reproduce the power differences between APs. The effective DT domain gap variance is , smaller than the per-snapshot measurement noise , reflecting the DT's lower random variability but higher systematic bias. The ratio places this testbed in the regime where DT conditioning helps most (Remark 4).
B. Baselines and Metrics
We compare DTCond with nine baselines of three types.
- Non-parametric baselines. (1) -NN Real. -NN with nearest neighbors using real fingerprints only ( is the conventional range for fingerprint localization [6]). (2) -NN DT. -NN using DT fingerprints only. (3) -NN Real+DT. -NN with concatenated real and DT fingerprints.
TABLE III SYSTEM AND HYPERPARAMETER CONFIGURATION
| Parameter | Value | Parameter | Value |
|---|---|---|---|
| Measurement Setup | |||
| (Carrier freq.) | 28 GHz | BW (Bandwidth) | 40 MHz |
| (Transmit power) | 10 dBm | Noise floor | -110 dBm |
| M (No. of APs) | 3 | UE height | 1.0 m |
| (Beam pairs/AP) | 9×9=81 | (FP dim.) | 243 |
| (Meas. positions) | 1,400 | L (Trajectories) | 13 |
| S (Snapshots/pos.) | 20 | (Noise var.) | |
| (DT gap var.) | (AP corr.) | 0.17, 0.34, 0.33 | |
| Train/val/test split | 70/10/20 | Split / eval. seeds | 42 / 5 |
| DTCond Hyperparameters | |||
| (Embed. dim.) | 32 | (Hidden dim.) | 64 |
| (Fusion dim.) | 64 | (Attn. dim.) | 32 |
| (Multi-user dim.) | 64 | (Dropout) | 0.1 |
| (Grad. clip) | 5.0 | Batch size | 32 |
Training uses Adam (initial learning rate , weight decay ) with cosine annealing to , 60-epoch MSE warmup then 90-epoch NLL, early stopping (patience 25).
-
Neural network baselines. (4) NN RealOnly. MLP trained on real fingerprints only. (5) NN Transfer. Pre-trained on DT data, fine-tuned on real data with all layers unfrozen at a reduced learning rate . Transfer learning underperforms because the two domains differ in their underlying observation processes, not merely their distributions; ray-traced features encode propagation artifacts that limited fine-tuning data cannot correct, consistent with the DA failures below. (6) NN Concat. MLP with concatenated real and DT input (same total parameters as DTCond).
-
DA baselines. (7) NN DANN. DANN [9] with gradient reversal for domain-invariant features. (8) NN CORAL. Deep CORAL [10] minimizing domain covariance discrepancy. (9) NN MMD. Shared encoder with Gaussian RBF kernel MMD penalty [40] (median heuristic bandwidth). For all three DA methods, the penalty weight (DANN , CORAL weight, MMD weight) was swept over ; best values are reported.
The primary metric is mean Euclidean error (m) on the 280-position test set. We also report median error, 90th percentile error (P90), and standard deviation across five random seeds for neural methods.
C. Localization Accuracy Comparison
Fig. 5 presents the ablation. Three key findings emerge.
- DT conditioning is the main source of gain. All DT-conditioned methods outperform the real-only baselines (25–41% over k-NN Real). DTCond, NN Concat, k-NN Real+DT, and k-NN DT achieve m, m, 0.235 m, and 0.222 m, respectively, versus m for NN RealOnly and 0.313 m for k-NN Real ( values denote std across five seeds; k-NN methods are deterministic). Notably, simple concatenation (k-NN Real+DT) already yields 25% improvement, and DTCond reaches 41%. All gains occur despite low per-AP correlations ( ), confirming that the DT contributes through spatial structure rather than absolute fidelity. The 12% lead of DTCond over NN Concat on this split (paired t-test across five seeds, p-value =

Fig. 5. Ten-method ablation (five seeds, mean std).
0.022) is consistent with the heteroscedastic refinement of Proposition 2: NN Concat has no explicit per-AP weighting, whereas the AP attention of DTCond can weight each AP by its local precision, as the heteroscedastic FIM does. The lead persists under LOLO (0.257 vs. 0.264 m, p-value = 0.042), and the precision-aware variant of Section VII-E extends it to 0.244 m. All methods share the split and preprocessing, and k-NN Real+DT and NN Concat differ from their real-only counterparts only in the DT input, so their 25% and 26% gains come from the paired input and the architecture adds the 12% above. The DT-conditioned results of the ablation and of all later sections read the DT fingerprint at the true position, as the oracle CRB assumes, unless marked as deployable.
-
DA baselines underperform. DANN, CORAL, and MMD achieve , , and , roughly worse than DTCond and worse than -NN Real (-value , paired -test). NN Transfer also degrades performance ( vs. for NN RealOnly). Forcing the two domains into a shared representation suppresses complementary information; the fundamental mismatch in observation processes—not a simple distribution shift—explains why alignment-based approaches suppress information that conditioning preserves.
-
Deployable pipeline performance. The two-stage pipeline (Section V-G) with augmented training (probability 0.3, eight DT grid neighbors) achieves 0.284 m against 0.313 m for k-NN Real and 0.345 m for the same pipeline without augmentation. The gap from the non-augmented oracle (0.186 m) decomposes into two quantifiable components: (i) an augmentation cost (0.186 → 0.232 m), necessary to tolerate retrieval noise, and (ii) retrieval mismatch (0.232 → 0.284 m), predicted by Proposition 3, whose diagnostic ratio averages 3.21. Improving the coarse stage would yield the largest marginal return (Proposition 3).
D. CRB Validation
Table IV validates the oracle CRB analysis from Section IV. Fingerprint Jacobians are computed numerically at each of the
TABLE IV ORACLE CRB ANALYSIS ON TEST POSITIONS (n = 280)
| Real-Only | Joint (Real+DT) | Reduction | |
|---|---|---|---|
| Mean CRB (m) | 0.274 ± 0.072 | 0.178 ± 0.060 | 34.9% |
| Median CRB (m) | 0.277 | 0.172 | 37.9% |
| P10 CRB (m) | 0.180 | 0.107 | 40.6% |
| P90 CRB (m) | 0.364 | 0.261 | 28.3% |

Fig. 6. CDF of per-position oracle CRB on 280 test positions under four variance models. The local heteroscedastic bound is tighter than the uniform bound at of positions.
280 test positions via least-squares estimation from ten nearest positions, with and .
The oracle joint CRB (mean 0.178 m) is 34.9% lower than the real-only CRB (0.274 m), confirming that the DT contains additional spatial information despite the low per-AP correlations in Table III. The improvement is robust to the Jacobian estimation neighborhood size (6, 8, 10, or 12 nearest positions; mean reduction varies by less than ).
Robustness to model misspecification. A Kolmogorov–Smirnov test rejects exact Gaussianity (p-value ), though departures are mild (skewness < 0.21, excess kurtosis ). The misspecified CRB [44] changes the joint improvement of the Gaussian CRB by only 0.3 percentage points, confirming robustness to distributional assumptions.
TABLE V EXTENDED CRB ANALYSIS INCLUDING PIPELINE BOUND (n = 280)
| Real-Only | Pipeline | Oracle (unif.) | Oracle (het.) | |
|---|---|---|---|---|
| Mean CRB (m) | 0.274 ± 0.072 | 0.220 ± 0.065 | 0.178 ± 0.060 | 0.162 ± 0.051 |
| Median CRB (m) | 0.277 | 0.220 | 0.172 | 0.157 |
| Δ vs. real | — | 19.6% | 34.9% | 40.8% |
| Achieved error (m) | 0.313 | 0.284 ± 0.013 | 0.186 ± 0.014 | — |
Allowing the per-AP gap variance to vary tightens the bound to 0.162 m (40.8% over real-only and 9.1% over the uniform bound), and the heteroscedastic bound is tighter than the uniform bound at 97.1% of test positions (Fig. 6).
Pipeline CRB validation. With , the mean pipeline CRB is 0.220 m (Table V), satisfying the sandwich inequality (28) at all 280 test positions. The achieved pipeline error (0.284 m) exceeds the bound by 0.064 m, reflecting the k-NN coarse stage, finite data, and architecture capacity; the ratio averages 3.21, confirming retrieval mismatch as a substantial driver of the oracle-to-pipeline gap. With set to the empirical error covariance of the k-NN coarse stage, the mean pipeline bound is 0.231 m. A more accurate coarse stage lowers the bound toward the oracle 0.178 m (Proposition 3(b)), and the achieved error falls from 0.284 m with k-NN to 0.232 m with an exact coarse stage ( ). An unbiased single-sweep coarse stage has and, by part (b), keeps the bound m.
Per-AP marginal DT utility validation. Despite the lowest fidelity ( ), AP 1 yields the highest utility at 19% of positions because its DT Jacobian complements those of APs 2–3 along the weak eigendirection of , which carries 73% of the DT's CRB reduction (Remark 2).
Gradient alignment verification. The per-AP Jacobian cosine similarities (6), averaged over 280 test positions, are , , —well above the per-AP Pearson (amplitude) correlations from (5), confirming spatial gradient preservation despite low absolute power agreement (Remark 1, Proposition 1).
Alignment factor distribution. The scalar alignment factor from (22) has median 0.71 (IQR [0.49, 0.92]) across 280 test positions. Combined with , expression (21) predicts an improvement factor of at the median , matching the ratio of the mean bounds in Table IV.
E. Spatial Generalization
The LOLO evaluation trains on 12 of the 13 walking lines and tests on the held-out line, rotating across all 13 folds. DTCond achieves mean error (95% CI [0.185, 0.329]), a improvement over -NN Real (0.495 m; Fig. 7). All DT-conditioned methods substantially outperform real-only baselines: -NN DT reaches (30% over -NN Real), NN Concat (47%), while NN RealOnly reaches only . DTCond also has the lowest cross-line standard deviation (0.119 vs. 0.171 for -NN Real and 0.126 for NN Concat), the most consistent generalization.
Heteroscedastic attention closes the LOLO gap further. Proposition 2 motivates a model that expresses the per-AP precision allocation of the DT branch separately from the real branch. We evaluate a lightweight variant where the real and DT branches use separate attention heads (under 5 k extra parameters, same training protocol). This variant attains (51% over -NN Real), improving baseline DTCond on 10 of 13 held-out lines with per-line gains up to 17% (Fig. 7). The random-split result is unchanged ( vs. , -value = 0.73), so precision-aware attention pays off under distribution shift.
F. Robustness to DT Imperfections and Emulated Blockage
Table VI rebuilds the DT with one modeling error at a time in geometry, materials, propagation, and antenna patterns, and thins the DT grid. All re-traced DTs keep DTCond within 0.169–0.245 m, below NN RealOnly and k-NN Real (0.286 and 0.313 m), while the root-mean-square (RMS) real/DT gap, net of the mean of each AP, grows from 7.7 to 12.9 dB. The retrained network tolerates these errors, consistent with Lemma 1, which bounds the gap gradient, not its level.
To emulate blockage, the LoS component of every beam pair of one random AP per test position, obtained from the ray-traced paths and the beam patterns of the DT, is attenuated by 20 dB in the measured fingerprint, a typical human-body loss at 28 GHz [47]. The median received power falls by 6.6 dB, and the DT does not model the blocker. The DTCond error grows from 0.186 to 0.280 m, whereas k-NN Real and NN RealOnly reach 0.730 and 1.003 m. Blockage-aware training, with the LoS of a random AP attenuated by 10–30 dB in 30% of the samples, keeps DTCond at 0.205 m. Under this emulated blockage, the deployable pipeline, whose k-NN coarse stage is itself blocked, reaches 0.43 m, well below both real-only methods.

Fig. 7. Per-line mean localization error under LOLO evaluation across 13 trajectories for four methods. The per-AP precision-aware variant (DTCond sep. att., green) improves on baseline DTCond (black) at 10 of 13 held-out lines.

Fig. 8. Localization error vs. fraction of real training data (5–100%).

Fig. 9. Measurement selection strategies across budget levels.
TABLE VI MEAN ERROR (M) UNDER DT IMPERFECTIONS (FIVE SEEDS, DT FINGERPRINT AT THE TRUE POSITION)
| Condition (levels) | DTCond | k-NN Real+DT |
|---|---|---|
| AP offset (0.25 / 0.5 / 1 m) | 0.194 / 0.194 / 0.198 | 0.236 / 0.233 / 0.248 |
| AP yaw offset (5° / 10°) | 0.169 / 0.191 | 0.237 / 0.239 |
| Permittivity (-30 / +30%) | 0.213 / 0.198 | 0.236 / 0.236 |
| Conductivity +30% / concrete walls | 0.205 / 0.195 | 0.236 / 0.240 |
| Reflection order 0 / 2 / one diffraction | 0.198 / 0.195 / 0.187 | 0.233 / 0.236 / 0.235 |
| Pattern (cosine / ideal / ideal, steered) | 0.193 / 0.226 / 0.245 | 0.253 / 0.325 / 0.248 |
| Grid spacing (0.29 / 0.57 / 1.14 m) | 0.202 / 0.203 / 0.207 | 0.254 / 0.268 / 0.264 |
Both methods are retrained in every condition. Rows 1–6 re-trace the DT with one change each (0.187 and 0.236 m when re-traced without changes). Ideal: ideal array patterns, steered to the measured beam peaks in the last entry.
G. Progressive Calibration and Data Efficiency
Fig. 8 plots localization error against the fraction of real training data (five seeds per method per fraction).
50% measurement reduction. DTCond at 50% (0.226 ± 0.019 m) outperforms k-NN Real at 100% (0.313 m) by 28%, effectively halving the measurement budget. NN Concat tracks DTCond closely above 25% data (Fig. 8), confirming that DT conditioning—not attention alone—drives the gain.

Fig. 10. Power-balanced RSS (Section V-A) of the fixed beam pair of highest mean measured power at each AP (columns), measured (top) and predicted by (middle) and by updated from 49 calibration anchors (crosses, bottom), an update that reduces the RMS difference at the test positions by 19–54% per AP. Triangles mark the APs (filled: AP of the column) and the star the position of Fig. 2.

(a) Distance moved (m)
(b) Position error (m)
(c) Anchors
d, tracked
Last sweep reused
Ray-traced
★ DTCond
d, last estimate
Survey-only map
-- Exhaustive search
k-NN Real
Fig. 11. Beam-selection loss, averaged over APs, versus (a) the distance moved since the last full sweep (49 anchors), (b) the mean position error (977 anchors), and (c) the number of anchors. In (a), is read at the k-NN Real estimate of the sweep, advanced by the recorded displacement (tracked) or not (last estimate). In (b), Gaussian errors perturb the true positions, and markers give the estimates of DTCond and k-NN Real. In (c), the survey-only map is kriged from the anchors without the DT.
Low-data crossover. Below 20% data, NN Concat's simpler architecture converges faster and outperforms DTCond (Fig. 8); the learnable AP attention mechanism requires sufficient spatial coverage ( 20%) to learn meaningful per-AP weights. At 5% data (49 positions), DTCond achieves 0.919 m versus 1.614 m for k-NN Real (43% improvement), but NN Concat reaches 0.69 m at the same fraction. The DT's advantage over real-only methods peaks at 20–50% data.
Fig. 9 compares measurement selection strategies using k-NN Real+DT to isolate the selection criterion from the neural network's learning dynamics. At 25% budget, spatially diverse selection achieves 0.293 m versus 0.350 m for random (16% better) and 0.593 m for uncertainty-guided; the advantage grows at smaller budgets, confirming that spatial coverage should be the primary criterion for calibration deployment.
H. Closed-Loop Localization-Driven Configuration
Closed-loop replay. We replay the loop on the 280 test positions with of the 81 pairs of each AP. The replay is valid because the action leaves the propagation unchanged and each recorded sweep holds all 81 pairs of every AP. The metric extends of (42) to beam training and averages it over APs and positions. Each AP selects the pair of on one snapshot and is scored on the 20-snapshot mean, so even exhaustive search loses 0.55 dB to snapshot noise. Unless noted, k-NN Real, the first stage of the deployable pipeline, localizes the UE from the 977 training positions. The anchors of are nested maximin subsets (39) of them, and . In Fig. 10, places the main-beam region of each AP where the measurements do (Remark 1) but with a level offset that the update reduces.
Prediction between sweeps. At the sweep position, the three strongest swept pairs match exhaustive search. Reusing them as the UE moves loses 0.85, 2.74, and 8.54 dB after 0.28, 0.98, and 2.0 m (Fig. 11(a)). At the tracked estimate, stays at 0.64–0.72 dB with 977 anchors and 0.93–0.98 dB with 49. At the unadvanced last estimate, it degrades as the last sweep does, so the gain comes from the tracked position. With 49 anchors, the link served by the AP of the strongest trained pair loses 0.81–0.93 dB, against 2.73 dB after 1 m for the last sweep. For a 1 dB target, the last sweep must be repeated every 0.38 m, whereas with 49 anchors needs fewer full sweeps.
Localization accuracy. Fig. 11(b) isolates the localization term of (42). With 977 anchors, the loss grows from 0.63 dB at true positions to 0.78, 1.05, and 2.25 dB for mean errors of 0.31, 0.5, and 1 m. The three pairs per AP most often strongest at the anchors lose 6.5 dB. Mean errors below 0.47 m, such as the 0.284 m of the deployable pipeline, keep the loss below 1 dB. The DTCond and k-NN Real estimates lose 0.64 and 0.68 dB.
Value of the DT. At the sweep position, loses 1.8, 0.95, and 0.68 dB with 10, 49, and 977 anchors, against 3.0 dB for (Fig. 11(c)). With 10 anchors, the survey-only map loses 4.0 dB, more than , because only carries the ray-traced structure that bridges sparse anchors.
Feedback through localization. k-NN Real and use 98 anchors. The sweeps of served UEs at 1,159 further positions, each scored before it enters , are placed at their k-NN Real estimates (0.94 m mean error, validation RMS error as ) without ground truth. They lower the loss from 1.48 to 1.32 dB, on par with 1.39 dB at true positions.
I. Multi-User Localization (Emulated Users)
We evaluate multi-user localization (Section V-F) by randomly grouping positions to emulate simultaneous users, training with 2,000 random groups per epoch. The independent baseline ( , 0.232 m) differs from the main ablation (0.186 m) due to this protocol. Positions are partitioned into training, validation, and test sets before grouping, and each group lies in one partition. Cross-user self-attention (38) yields : 0.160 m ( , 31%), : 0.141 m ( , 39.5%), and : 0.138 m ( , 40.5%), confirming saturation beyond three simultaneous users.
DT-mediated mechanism ablation. Without DT conditioning, multi-user grouping yields only 17.5% at (vs. 31.0%) and 15.7% at (vs. 39.5%), confirming that the DT raises the multi-user benefit 1.8-fold at and 2.5-fold at (Fig. 12).
Distance independence. Stratifying by inter-user distance across 1,971 pairs shows gains of 26–36% in every bin

Fig. 12. Multi-user DT ablation across group sizes .

Fig. 13. Per-user improvement vs. inter-user distance ( pairs).
(Fig. 13), so the coupling does not decay with distance, as proximity-based coupling would. Attention weights correlate strongly with DT fingerprint cosine similarity (, , both -values ), so users attend to one another through their DT fingerprints.
J. Trajectory Quality
We evaluate trajectory reconstruction fidelity on the walking trajectories via the path length error (%)
where is the number of positions along the trajectory, , and are the estimated and true cumulative path lengths. We also report the smoothness metric , defined as the mean acceleration magnitude of the estimated trajectory
TABLE VII TRAJECTORY RECONSTRUCTION QUALITY (13 TRAJECTORIES)
| Method | Pos. Err. (m) | Path Err. (%) | Smooth. |
|---|---|---|---|
| k-NN Real | 0.306 | 10.2 | 0.872 |
| k-NN Real+DT | 0.238 | 7.5 | 0.807 |
| NN RealOnly | 0.283 | 12.4 | 0.934 |
| NN Concat | 0.232 | 5.4 | 0.813 |
| DTCond | 0.205 | 4.5 | 0.790 |
Table VII reports trajectory quality metrics evaluated across all trajectories (1,400 positions) using the random-split-trained model; positional errors differ from Fig. 5 and Table V because evaluation spans the complete trajectories rather than the 280-position random test set, ensuring full path continuity for the path-length and smoothness metrics. DTCond achieves the lowest path error (4.5%) and smoothest trajectories (), while also providing uncertainty estimation, AP attention, and multi-user cooperation.
K. Discussion and Design Insights
Computational cost and scalability. DTCond has parameters ; linear in ) and requires per estimate on a single GPU (0.024 ms for the two-stage pipeline), well within mmWave beam-tracking frame rates. On a laptop CPU (Intel Core i7-1165G7) at batch size one, including preprocessing, a query takes 0.37–0.46 ms for the k-NN methods, 0.53–0.66 ms for the other networks, 1.12 ms for DTCond, and 2.32 ms for the pipeline, far below one beam sweep of about 180 ms, whereas the GPU times above are amortized over batches.

(a)
(b)
(c)
Fig. 14. Uncertainty reliability analysis (five seeds, 280 positions). (a) Reliability diagram. (b) Error by predicted uncertainty tercile. (c) Actual error vs. predicted .
Hyperparameter robustness. Varying , dropout rate , and warmup epochs one at a time (3 seeds each) keeps the mean errors within of each other.
Uncertainty quality. The predicted correlates with actual error ( , p-value ) and tercile-stratified errors increase monotonically (0.143 m, 0.187 m, 0.260 m), so the heteroscedastic output ranks prediction difficulty (Fig. 14).
Operation below 7 GHz. Under the model of Section IV, the bounds indicate two trends. At 3.5 GHz, an array of fixed aperture forms beams about eight times wider, which reduces the angular information in and about times. Unresolved paths add static fading of variance about the local mean power to the real fingerprint, and if the incoherent DT of Section VII-A keeps its error about this mean, the ratio of Remark 4, and with it the relative value of the DT, grows to .
Scope and limitations. Experiments use a single indoor environment ( APs, trajectories, 28 GHz); the CRB framework (Proposition 1) provides a principled way to predict the DT gain in new environments through the measurable ratio . The multi-user evaluation emulates simultaneous users by random grouping.
VIII. CONCLUSION
We showed that conditioning on DT fingerprints as complementary inputs, rather than using them for pre-training or domain alignment, is an effective design principle for DT-aided fingerprint localization under realistic domain gaps. The proposed DTCond framework operationalizes this principle with per-domain encoders, learnable AP attention, and calibrated uncertainty, supported by oracle, heteroscedastic, and pipeline CRB analysis. The analysis proves , shows that the alignment behind this gain depends on the gradient of the domain gap rather than its level (Lemma 1), and places the pipeline bound between the oracle and real-only bounds, non-decreasing in the coarse-stage error covariance (Proposition 3). On a real 28 GHz cell-free testbed, the deployable two-stage pipeline achieves 0.284 m, and with the DT fingerprint at the true position, DT conditioning achieves 0.186 m mean error, a 48% improvement on unseen regions under LOLO, and a 50% measurement reduction through progressive calibration, while re-traced DTs keep DTCond within 0.169–0.245 m. Between beam sweeps, configuration driven by the tracked position estimate keeps the beam-selection loss below 1 dB over 2 m of motion with 49 anchors in the update, and served users refine the DT through their position estimates. Future work will extend the evaluation to outdoor environments, sub-7 GHz carriers, larger AP counts, and temporal tracking, and to measured blockage, concurrent multi-user, and live closed-loop campaigns.
REFERENCES
[1] H. Q. Ngo et al., “Cell-free massive MIMO versus small cells,” IEEE Trans. Wireless Commun., vol. 16, no. 3, pp. 1834–1850, 2017.
[2] E. Björnson and L. Sanguinetti, “Making cell-free massive MIMO competitive with MMSE processing and centralized implementation,” IEEE Trans. Wireless Commun., vol. 19, no. 1, pp. 77–90, 2020.
[3] H. A. Ammar et al., “User-centric cell-free massive MIMO networks: A survey of opportunities, challenges, and solutions,” IEEE Commun. Surveys Tuts., vol. 24, no. 1, pp. 611–652, 2022.
[4] A. Shahmansoori et al., “Position and orientation estimation through millimeter-wave MIMO in 5G systems,” IEEE Trans. Wireless Commun., vol. 17, no. 3, pp. 1822–1835, 2018.
[5] Ö. T. Demir, E. Björnson, and L. Sanguinetti, “Foundations of user-centric cell-free massive MIMO,” Found. Trends Signal Process., vol. 14, no. 3–4, pp. 162–472, 2021.
[6] S. He and S.-H. G. Chan, “Wi-Fi fingerprint-based indoor positioning: Recent advances and comparisons,” IEEE Commun. Surveys Tuts., vol. 18, no. 1, pp. 466–490, 2016.
[7] A. Alkhateeb, S. Jiang, and G. Charan, “Real-time digital twins: Vision and research directions for 6G and beyond,” IEEE Commun. Mag., vol. 61, no. 11, pp. 128–134, 2023.
[8] A. Masaracchia et al., “Digital twin for 6G: Taxonomy, research challenges, and the road ahead,” IEEE Open J. Commun. Soc., vol. 3, pp. 2137–2150, 2022.
[9] Y. Ganin et al., “Domain-adversarial training of neural networks,” J. Mach. Learn. Res., vol. 17, no. 59, pp. 1–35, 2016.
[10] B. Sun and K. Saenko, “Deep CORAL: Correlation alignment for deep domain adaptation,” in Proc. Eur. Conf. Comput. Vision Workshops (ECCV-W), 2016, pp. 443–450.
[11] C. Ruah, O. Simeone, and B. M. Al-Hashimi, “A Bayesian framework for digital twin-based control, monitoring, and data collection in wireless systems,” IEEE J. Sel. Areas Commun., vol. 41, no. 10, pp. 3146–3160, 2023.
[12] Y. Cui et al., “Digital twin-aided learning for managing reconfigurable intelligent surface-assisted, uplink, user-centric cell-free systems,” IEEE J. Sel. Areas Commun., vol. 41, no. 10, pp. 3175–3190, 2023.
[13] L. Bonati et al., “Intelligence and learning in O-RAN for data-driven NextG cellular networks,” IEEE Commun. Mag., vol. 59, no. 10, pp. 21–27, 2021.
[14] J. Morais and A. Alkhateeb, “Localization in digital twin MIMO networks: A case for massive fingerprinting,” in Proc. IEEE Int. Conf. Commun. Workshops (ICC Workshops), 2024, pp. 276–281.
[15] O. Renaudin, T. Zemen, and T. Burgess, “Ray-tracing based fingerprinting for indoor localization,” in Proc. IEEE Int. Workshop Signal Process. Adv. Wireless Commun. (SPAWC), 2018, pp. 1–5.
[16] K. Gao et al., “Localization-oriented digital twinning in 6G: A new indoor-positioning paradigm and proof-of-concept,” IEEE Trans. Wireless Commun., vol. 23, no. 8, pp. 10473–10486, 2024.
[17] J. M. Mateos-Ramos et al., “Positioning via digital-twin-aided channel charting with large-scale CSI features,” IEEE Trans. Wireless Commun., vol. 25, pp. 22245–22260, 2026.
[18] B. Akgun et al., “Advancing next generation wireless networks with digital twin: Construction, validation, and real-world applications on an indoor over-the-air testbed,” IEEE Access, vol. 12, pp. 166298–166319, 2024.
[19] V. S. Advani, A. Nasser, M. Y. Selim, and A. M. Eltawil, “Fusing digital twin and real fingerprints for cell-free mmWave localization,” in Proc. IEEE Int. Symp. Pers., Indoor Mobile Radio Commun. (PIMRC), 2026, to be published.
[20] G. Charan et al., “Vision-position multi-modal beam prediction using real millimeter wave datasets,” in Proc. IEEE Wireless Commun. Netw. Conf. (WCNC), 2022, pp. 2727–2731.
[21] U. Demirhan and A. Alkhateeb, “Radar aided 6G beam prediction: Deep learning algorithms and real-world demonstration,” in Proc. IEEE Wireless Commun. Netw. Conf. (WCNC), 2022, pp. 2655–2660.
[22] A. Saribekyan et al., “On the physical plausibility and distribution alignment for sim-to-real RF positioning,” in Proc. Int. Conf. Comput., Inf. Telecommun. Syst. (CITS), 2026, pp. 1–8.
[23] Y. Shen and M. Z. Win, “Fundamental limits of wideband localization—Part I: A general framework,” IEEE Trans. Inf. Theory, vol. 56, no. 10, pp. 4956–4980, 2010.
[24] J. Gante, G. Falcão, and L. Sousa, “Deep learning architectures for accurate millimeter wave positioning in 5G,” Neural Process. Lett., vol. 51, no. 1, pp. 487–514, 2020.
[25] V. S. Advani et al., “Deep learning framework for RSSI-based indoor localization in RIS-aided mmWave systems,” in Proc. IEEE Global Commun. Conf. (GLOBECOM), 2025, pp. 4233–4238.
[26] Z. Shen, K. Xu, and X. Xia, “2D fingerprinting-based localization for mmWave cell-free massive MIMO systems,” IEEE Commun. Lett., vol. 25, no. 11, pp. 3556–3560, 2021.
[27] V. Savic and E. G. Larsson, “Fingerprinting-based positioning in distributed massive MIMO systems,” in Proc. IEEE 82nd Veh. Technol. Conf. (VTC-Fall), 2015, pp. 1–5.
[28] Y. Wu, K. Zhang, and Y. Zhang, “Digital twin networks: A survey,” IEEE Internet Things J., vol. 8, no. 18, pp. 13789–13804, 2021.
[29] A. Alkhateeb, “DeepMIMO: A generic deep learning dataset for millimeter wave and massive MIMO applications,” in Proc. Inf. Theory Appl. Workshop (ITA), 2019, pp. 1–8.
[30] J. Hoydis et al., “Sionna RT: Differentiable ray tracing for radio propagation modeling,” in Proc. IEEE Globecom Workshops (GC Wkshps), 2023, pp. 317–321.
[31] R. Pegurri et al., “Toward digital network twins: Integrating Sionna RT in ns-3 for 6G multi-RAT networks simulations,” in Proc. IEEE Conf. Comput. Commun. Workshops (INFOCOM WKSHPS), 2025, pp. 1–6.
[32] J. Hoydis et al., “Learning radio environments by differentiable ray tracing,” IEEE Trans. Mach. Learn. Commun. Netw., vol. 2, pp. 1527–1539, 2024.
[33] S. Jiang and A. Alkhateeb, “Digital twin assisted beamforming design for integrated sensing and communication systems,” in Proc. Asilomar Conf. Signals, Syst., Comput., 2024, pp. 401–406.
[34] B. Salehi et al., “DARWIN: Digital twin assisted robot navigation and wireless network management,” IEEE Trans. Mobile Comput., vol. 25, no. 1, pp. 977–991, 2026.
[35] X. Wang et al., “CSI-based fingerprinting for indoor localization: A deep learning approach,” IEEE Trans. Veh. Technol., vol. 66, no. 1, pp. 763–776, 2017.
[36] M. Arnold, J. Hoydis, and S. ten Brink, “Novel massive MIMO channel sounding data applied to deep learning-based indoor positioning,” in Proc. 12th Int. ITG Conf. Syst., Commun. Coding (SCC), 2019, pp. 1–6.
[37] J. Vieira et al., “Deep convolutional neural networks for massive MIMO fingerprint-based positioning,” in Proc. IEEE Int. Symp. Personal, Indoor Mobile Radio Commun. (PIMRC), 2017, pp. 1–6.
[38] F. Gustafsson and F. Gunnarsson, “Mobile positioning using wireless networks: Possibilities and fundamental limitations based on available wireless network measurements,” IEEE Signal Process. Mag., vol. 22, no. 4, pp. 41–53, 2005.
[39] H. Wymeersch et al., “5G mmWave positioning for vehicular networks,” IEEE Wireless Commun., vol. 24, no. 6, pp. 80–86, 2017.
[40] A. Gretton et al., “A kernel two-sample test,” J. Mach. Learn. Res., vol. 13, pp. 723–773, 2012.
[41] M. Z. Win, Y. Shen, and W. Dai, “A theoretical foundation of network localization and navigation,” Proc. IEEE, vol. 106, no. 7, pp. 1136–1165, 2018.
[42] M. Z. Win et al., “Network localization and navigation via cooperation,” IEEE Commun. Mag., vol. 49, no. 5, pp. 56–62, 2011.
[43] X. Li, “RSS-based location estimation with unknown pathloss model,” IEEE Trans. Wireless Commun., vol. 5, no. 12, pp. 3626–3633, 2006.
[44] C. D. Richmond and L. L. Horowitz, “Parameter bounds on estimation accuracy under model misspecification,” IEEE Trans. Signal Process., vol. 63, no. 9, pp. 2263–2278, 2015.
[45] A. Kendall and Y. Gal, “What uncertainties do we need in Bayesian deep learning for computer vision?” in Proc. Adv. Neural Inf. Process. Syst. (NIPS), 2017.
[46] A. Vaswani et al., “Attention is all you need,” in Proc. Adv. Neural Inf. Process. Syst. (NIPS), 2017, pp. 5998–6008.
[47] 3GPP, “Study on channel model for frequencies from 0.5 to 100 GHz,” 3GPP, TR 38.901, V17.0.0, 2022.