Reconstructing wireless signals for low altitude networks using small language models

Reconstructing wireless signals for low altitude networks using small language models

Experimental setup and evaluation framework

We collected comprehensive RSSI measurements in 3D space using a UAV equipped with an IBflex Radio Scanner to monitor wireless signals. The system captured beacon frames from stationary 5G cellular base stations, with position data recorded via the UAV’s RTK-GPS system and synchronized through GPS timestamping. Data collection spanned three distinct propagation environments in Singapore between August and September 2024 (Table 1, Fig. 2). The UAV maintained a speed of 2-5 m/s and completed multiple laps per flight segment to ensure comprehensive spatial coverage, with flight altitudes varying systematically between 100–200 feet to capture elevation-dependent propagation characteristics. Altitude was varied to increase environmental diversity rather than as a controlled variable, so the reported aggregate metrics already pool performance across this range; moreover, altitude enters the model explicitly as the z-coordinate of every point. A dedicated altitude-stratified ablation was not performed and is left to future work, with any dependence expected to be modest within this envelope, as higher altitudes tend to increase line-of-sight probability and reduce ground clutter.

Fig. 2: Data collection methodology and environmental diversity.Fig. 2: Data collection methodology and environmental diversity.

a Representative UAV flight trajectories from three distinct propagation environments. b Experimental setup showing the UAV with integrated wireless scanner (left) and aerial view of data collection (right).

Table 1 Data collection specifications across test environments

We evaluate our approach on two complementary wireless signal reconstruction tasks:

Task 1. Sequential Prediction (Extrapolation): Given K consecutive temporal-spatial measurements (xi, yi, zi, RSSIi) for i = t − K + 1, …, t collected along a UAV trajectory, predict the RSSI value at the next time step RSSIt+1 given target coordinates (xt+1, yt+1, zt+1). Our primary evaluation uses K = 8 with 1-s intervals, providing 24–40 m of spatial context at typical UAV speeds. The usefulness of this context depends on the spatial sampling density relative to the shadowing decorrelation distance dc: at a 1 Hz rate, consecutive samples are spaced by vΔt, and the context remains informative while vΔt ≪ dc. With dc on the order of tens of meters in the studied environments, the 2–5 m spacing at 2–5 m/s samples the field densely; performance is expected to degrade only as v approaches dc/Δt (tens of m/s), beyond which a higher acquisition rate would be required.

Task 2. Spatial Interpolation: Given N non-consecutive measurements distributed in space, reconstruct the RSSI value at unobserved locations within their convex hull. We evaluate with N ∈ {4, 8, 16} to assess performance under varying data sparsity conditions.

For both tasks, each measurement includes 3D coordinates and RSSI value, and the model receives as input both historical measurements and target coordinates. Because each prompt is constructed from a single base-station (single-SSID) trajectory (Supplementary Information), the transmit power and antenna radiation pattern are constant within any context window, and inter-station heterogeneity is absorbed implicitly: the model infers the effective transmit level and pattern from the in-context RSSI values, with no cross-station uniformity assumption. We systematically vary context length K ∈ {2, 4, 8} to evaluate robustness to data sparsity in the sequential prediction task.

Raw RSSI measurements underwent median filtering (5-sample window) to remove impulse noise while preserving sharp signal transitions. At the 1 Hz acquisition rate and 2–5 m/s flight speed, sub-wavelength fast fading (centimeter-scale at 5G carriers) is averaged within the receiver integration and is not resolved by 1 Hz sampling, so the filter does not obscure fast-fading structure that the measurements do not capture; as an edge-preserving operator it retains the sharp large-scale shadowing transitions that constitute the discriminative signal. Values outside the physical range (−30 to −95 dBm) were excluded. We partitioned the dataset at the trajectory level to prevent data leakage: 70% for training, 15% for validation, and 15% for testing. This yielded 41,552 valid samples for the sequential prediction task with K = 8. For the spatial interpolation task, we generated additional datasets by sampling non-consecutive points from trajectories, maintaining the same partition ratios.

We assessed reconstruction quality using Mean Absolute Error (MAE) as the primary continuous error metric, Root Mean Square Error (RMSE) to emphasize larger errors, and recall at operationally relevant thresholds, defined as the percentage of predictions within ≤2 dB, ≤5 dB, and ≤10 dB.

We compare against five established approaches: (1) Linear interpolation using scipy.interpolate.interp1d; (2) Gaussian Process regression with RBF+WhiteKernel; (3) Physics-based log-distance path loss model; (4) Multi-Layer Perceptron (MLP) with three hidden layers; and (5) Long Short-Term Memory (LSTM) network with two layers. All baselines were implemented and optimized using the same dataset partitions.

Activating physics priors via reinforcement learning (Task 1)

A fundamental question in applying large language models to physical sciences is whether they inherently possess domain knowledge or if this capability must be explicitly elicited. To answer this, we compared the sequential extrapolation performance of our GRPO-fine-tuned model against the raw, pre-trained Qwen2.5-0.5B base model.

As illustrated by the orange dotted line in Fig. 3a, the raw Base LLM performs poorly, maintaining a stagnant recall of ~ 30% (≤2 dB) regardless of the context length (K). It consistently underperforms even the simplest Linear Interpolation baseline (34–45%). This indicates that while the base model has linguistic fluency, it lacks the “physics engine” required to interpret numerical RSSI trajectories or model signal attenuation.

Fig. 3: Impact of reinforcement learning on physics activation and generalization.Fig. 3: Impact of reinforcement learning on physics activation and generalization.

a Sequential prediction recall at the high-precision threshold (≤2 dB) versus context length (K). The raw Base LLM (orange dotted line) fails to utilize context, plateauing at ~ 30%. In contrast, the GRPO-optimized model (red solid line) exhibits a strong scaling law, achieving a 25% absolute gain over the base model at K = 8 and surpassing all classical baselines. b Generalization performance on Spatial Interpolation (N = 16). Despite being trained on sequential data, the GRPO model adapts to spatial tasks (53%), significantly outperforming the Base LLM (32%) and Linear Interpolation (48%), confirming the acquisition of transferable spatial reasoning capabilities.

The reinforcement learning process acts as a catalyst. Upon applying GRPO with our physics-informed reward function, the model’s performance undergoes a phase transition. At a context length of K = 8, the fine-tuned model (red solid line) achieves 55% recall, representing a massive 25% absolute improvement over the base model. Furthermore, unlike the base model, the GRPO-optimized model exhibits a steep scaling law: its recall improves significantly as it consumes more context points (from 36% at K = 2 to 55% at K = 8). This suggests that the model can exploit additional in-context measurements, utilizing historical measurements to dynamically refine its internal representation of the local multipath environment, ultimately surpassing specialized Physics-based (52%) and LSTM (53%) baselines.

Generalization to spatial topology (Task 2)

To determine whether the model simply memorizes sequential patterns or genuinely understands the 3D spatial topology of wireless fields, we evaluated it on Task 2: Spatial Interpolation. Here, the model must estimate signal strength at a target location within a convex hull of non-consecutive reference points—a geometry structurally distinct from its sequential training data.

Linear Interpolation is traditionally a formidable baseline for this task due to the spatial continuity of electromagnetic waves. As shown in Fig. 3b (and detailed in Table 2), Linear Interpolation achieves 48% precision at ≤2 dB. The Base LLM, lacking spatial reasoning, fails catastrophically with 32% recall, performing worse than random guessing. However, our GRPO-optimized model achieves 53% recall, decisively beating the Linear Interpolation baseline.

Table 2 Comprehensive performance comparison across tasks and sparsity levels

The fact that our model outperforms linear interpolation is physically significant. Wireless signals are often non-linear due to shadowing (e.g., walls) and multipath interference. A linear model cannot predict a sharp signal drop between two points. By surpassing the linear baseline, our model demonstrates that it has learned to infer non-linear topological features by predicting signal obstructions and geometric path loss solely from the coordinates and values of surrounding points. This validates that the GRPO process has successfully distilled generalizable physical principles into the model’s weights, enabling robust performance across both temporal extrapolation and spatial interpolation tasks. While physics-based path loss models achieve comparable recall on spatial interpolation, they require explicit per-trajectory parameter fitting and fail to capture directional shadowing effects. Our SLM approach avoids these calibration requirements entirely, inferring complex spatial signal structure purely through in-context reasoning.

Small models match frontier performance

To establish scaling relationships and identify deployment-optimal configurations, we evaluated multiple language models on the sequential prediction task using 8 consecutive measurements as context. We compared commercial (GPT-4o) and open-source models (Qwen 0.5B–72B parameters) under identical evaluation conditions (Fig. 4).

Fig. 4: Model scaling analysis reveals deployment-optimal configurations.Fig. 4: Model scaling analysis reveals deployment-optimal configurations.

a Error distribution across commercial (GPT-4o) and open-source models (Qwen 0.5B–72B) shows systematic precision improvements with scale. Our fine-tuned models (bottom two bars) achieve commercial-grade performance at minimal scale. b MAE comparison between baseline (red) and GRPO-optimized (blue) models. c Inference latency scales super-linearly with model size.

Panel a reveals three critical insights from error distribution analysis across ten model configurations. First, model scaling improves high-precision performance: baseline recall at the stringent ≤2 dB threshold increases from 30–36% (0.5B–1.5B models) to 37–41% (3B–7B) to 47–49% (14B–72B), with GPT-4o reaching 51%. Second, this improvement comes primarily from reducing catastrophic errors rather than marginal gains—the proportion of predictions exceeding 10 dB drops from 24% in small baseline models to just 2% in GPT-4o. Third, and most remarkably, our GRPO-optimized compact models (0.5B, 1.5B) achieve 55–56% recall at ≤2 dB, on par with GPT-4o while using far fewer parameters.

Panel b demonstrates dramatic efficiency gains through GRPO optimization. At 0.5B parameters, our fine-tuned model achieves 2.85 dB MAE compared to 5.57 dB for the baseline, representing a 49% error reduction. Similarly, the 1.5B configuration shows 40% improvement (2.73 dB vs. 4.52 dB). To achieve comparable MAE ( ~ 2.8 dB), baseline models require 72B parameters while our approach needs only 0.5B.

Panel c reveals super-linear latency scaling: from ~ 3 ms at 0.5B to ~ 66 ms at 72B parameters. Notably, inference latency depends solely on model size and architecture, not on whether the model is fine-tuned; both baseline and GRPO-optimized models of the same parameter count exhibit identical computational costs. Our proposed 1.5B model achieves low MAE ( ~ 2.7 dB) at ~ 6 ms latency with providing peak performance at minimal computational cost. The power-law scaling between 0.5B–14B parameters enables effective multi-scale deployment strategies balancing accuracy and efficiency requirements.