Leakage-Safe Exploration for UAV Virtual Antenna Arrays

A swarm of single-antenna drones can act as one large antenna. If every drone sends the same signal with its carrier phase aligned so the waves add up at a distant receiver, the received power grows with the square of the swarm size. The same control over phases and positions can also place a "null", a spot of destructive interference, on an eavesdropper. Reinforcement learning (RL) controllers for these virtual arrays already learn where to fly and how to weight each antenna. They learn by trial and error, though, and each trial can crash two drones or briefly point a strong sidelobe at the eavesdropper. They also trade throughput, energy, and safety through reward weights tuned by hand. Leaked transmissions during training are real leaked data, and collisions are real crashes, so "safe at convergence" is not enough.

This note proposes to stop putting safety into the reward. Each term of the hand-built reward is sorted by two properties. The first is whether it couples drones locally or globally. The second is whether it must hold at every instant or only as a cumulative budget. Each term then goes to the cheapest mechanism that can enforce it exactly. Collisions are local and instantaneous, so each drone enforces them with a geometric safety filter over its neighbors. Eavesdropper leakage is global and instantaneous. Because it is a known closed-form function of the antenna weights, it can be enforced by an analytic projection that is robust to phase jitter, with no learned cost model. Energy is a cumulative budget and gets a Lagrange multiplier. Only throughput remains in the reward. The central bet is that leakage, the constraint safe multi-agent RL handles worst, is the one physics lets us enforce exactly and cheaply.

Core Claim

Prior RL work on virtual antenna arrays treats safety as a reward term or ignores it. Prior safe multi-agent RL treats every constraint as something to learn. Neither approach fits beamforming.

Leakage power at an eavesdropper depends on all $N$ drones at once, so it breaks the assumption that lets decentralized safe RL scale. It is also an analytic function of the weights, positions, and estimated channel, so it never needs to be learned. Once the drones' positions are fixed, the excitation weights $w \in \mathbb{C}^N$ satisfy a convex constraint, and projecting onto it costs roughly as much as one matrix-vector product per eavesdropper.

The real difficulty is that phases are never perfectly synchronized. With per-drone phase errors $\theta_i \sim \mathcal{N}(0,\sigma^2)$ drawn independently, let $a_i = h_i w_i$, where $h_i$ is drone $i$'s channel to the eavesdropper. The expected leakage power is then

$$\mathbb{E}\,|y_e|^2 = e^{-\sigma^2}\Big|\sum_i a_i\Big|^2 + \big(1-e^{-\sigma^2}\big)\sum_i |a_i|^2 \le \tau .$$

Here $\tau$ is the leakage budget. The form follows directly from $\mathbb{E}[e^{j(\theta_i-\theta_k)}] = e^{-\sigma^2}$ for $i \ne k$. The second term is a leakage floor that no null can remove. It grows linearly in $N$ while the main-beam power grows roughly as $e^{-\sigma^2}N^2$.

This yields a constraint that is still convex in $w$, can be enforced at every step, and accounts for jitter. It also yields a falsifiable prediction: under jitter, secrecy gains should keep growing but sub-quadratically with swarm size. Lowering the floor requires cutting per-drone amplitude, which is the radio-frequency counterpart of the "safe but useless" policy.

What would be new is the combination of three things. Collision and leakage constraints are enforced exactly throughout learning in a beamforming swarm. The global constraint gets an analytic projection that holds under phase error, instead of a learned or decayed critic. And none of this involves penalty weights.

How This Relates to Prior Work

Three works define the RL side of virtual arrays, and all motivate this proposal by leaving safety open. Liu et al. train 16 rotary-wing drones with a heterogeneous-agent trust-region method, using a Beta-distributed policy to respect action bounds. They combine rate and energy in one reward and explicitly defer collision avoidance and phase-jitter handling to future work. Sun et al. remove scalarization weights by learning a Pareto front over rate and energy with vector-valued critics and an evolutionary population, but explore without any constraint guard. Zhang et al. use a diffusion-model actor to maximize secrecy rate against a moving eavesdropper. They treat secrecy as an objective rather than a guarantee and note the latency of denoising on drone hardware. We reuse their environments and action parametrizations. We differ in moving leakage and collisions out of the objective entirely. Duan handles inter-drone collisions offline with Lévy-flight perturbations in a salp-swarm search. That is useful as an offline reference, but it cannot adapt online.

On the safe-RL side, two multi-agent methods constrain the design. Scalable Constrained Policy Optimization makes Lagrangian multi-agent PPO decentralized by assuming an agent's influence decays with graph distance, truncating each agent's view to its $\kappa$-hop neighbors. Beamforming violates that assumption by construction, since every phase reaches the far-field receiver. This is why we keep only collisions local. DeCOM splits each agent's action into a reward-seeking base action plus a learned corrective perturbation trained to reduce constraint violations. This is the closest method in spirit. Our leakage layer replaces DeCOM's learned perturbation with an exact projection, so it holds from the first episode rather than after the perturbation network is trained.

Lagrangian methods in general, from the convergence analysis of NPG-PD to the PID-stabilized multipliers in Safety-Gymnasium, only guarantee constraints at convergence. Learned cost critics also face the starvation described in Breaking Safety Paradox with Feasible Dual Policy Iteration: once the agent is safe, it stops seeing violations and the critic loses accuracy at the boundary. An analytic leakage constraint has no critic to starve. We still use a Lagrange multiplier for energy, because a cumulative battery budget cannot be enforced instantaneously.

On reward engineering, Quanyi Li et al. document the penalty pathology: small penalties buy crashes and large ones freeze the agent. This motivates removing penalties rather than tuning them.

Research Program

We first rebuild a shared simulator that unifies the Liu et al. setup (16 drones, 100 m by 100 m area, urban line-of-sight and non-line-of-sight channel, distant and near base stations) with the Zhang et al. moving eavesdropper driven by a Gauss-Markov process. We add two realism knobs the original papers abstract away. One is per-drone phase jitter $\sigma$. The other is eavesdropper position error, handled by enforcing the leakage constraint at a small set of points spanning the estimate's uncertainty region.

The controller has three layers.

The policy is a Beta-distributed multi-agent trust-region policy, as in Liu et al. It outputs nominal motion commands and nominal amplitudes and phases, and its reward is throughput only.

The collision layer is a decentralized control barrier function filter. A control barrier function is a constraint on velocity that keeps a safety distance from ever shrinking past its limit. Each drone solves a small quadratic program over its neighbors' minimum-separation constraints, using CBFkit.

The leakage layer takes the filtered positions, recomputes channels, and projects the nominal weights onto the jitter-robust leakage set above, intersected with the amplitude box. For a single eavesdropper point, a short alternating projection between the convex leakage set and the box suffices. For several points, we solve a tiny second-order cone program.

Energy enters through a PID-controlled Lagrange multiplier, as in SafePO. The policy gradient is computed on the nominal action, with both filters treated as part of the environment. We log how far each filter moves the action in order to detect a policy that "leans on" the filter.

The analysis has two parts. First, we test the leakage-floor prediction directly: feasible secrecy contrast as a function of $N$ and $\sigma$ in the simulator versus the closed form. Second, we characterize when the leakage projection steals main-beam gain. That loss should depend on the correlation between the base-station and eavesdropper channel vectors, which the learned positioning can actively reduce. This is the mechanism by which RL positioning should earn its keep under hard secrecy constraints.

Baselines

The naive reference is the unconstrained Liu et al. controller, HATRPO-UCB with its combined reward and no filters. It sets the throughput ceiling and the violation floor we are trying to beat. Liu et al. report over 1 Mbps to the distant base station, 18 Mbps to the near station, about 700 J average flight energy, and convergence in about 750 epochs. We will reproduce it in our simulator before comparing, since our jitter and eavesdropper additions change the setting.

The penalty baseline adds collision and leakage penalties to that reward. Its penalty weight is swept over a grid whose size matches the total tuning budget given to our method's multiplier gains. We report the best setting and the full spread across settings, because the spread is the reward-engineering cost.

The strongest learned-safety competitor is centralized MAPPO-Lagrangian from SafePO, with separate multipliers for collisions, leakage, and energy. Alongside it we run Scal-MAPPO-L at $\kappa$ from 1 to 3. On locomotion tasks, Scalable Constrained Policy Optimization reports matching centralized MAPPO-L reward and safety once $\kappa \ge 3$. On a velocity task, Safety-Gymnasium reports PPO-Lag reducing violations by 98% relative to PPO at a 45% reward drop. No reported result was found on Lacuna for any Lagrangian method on a virtual-antenna-array task, so we will establish these numbers ourselves.

DeCOM is run with the same base policy, with its perturbation network trained against the same three constraints.

Two ablations isolate the key ingredient. The first keeps the collision filter but handles leakage by Lagrangian. The second uses a nominal projection that assumes $\sigma = 0$, deployed under true jitter.

All learned methods share the simulator, seeds, network sizes, environment-step budget (twice Liu et al.'s convergence horizon), and a hyperparameter search of equal size.

Beating the strongest baseline means two things together. First, cumulative training-time violations of both hard constraints, measured under true jitter, must be at least an order of magnitude below MAPPO-Lagrangian's. Second, final throughput must be within 10% of the unconstrained ceiling while meeting the energy budget.

Why not just…?

Why not just add large penalties to the reward? Penalties fail in both directions, as documented by Quanyi Li et al.. In beamforming, the "useless" side is concrete: drones spread out or hover, which destroys the coherence that motivates the array. The penalty baseline above, with its full weight sweep, will show whether any single weight both avoids crashes and keeps the null. We expect none does across all swarm sizes.

Why not just bolt a collision filter onto the existing controller and keep secrecy as a Lagrangian constraint? This is the real threat. It is exactly our first ablation, and for collisions alone it is our method. The difference is confined to leakage. A Lagrangian multiplier permits violations until it settles, and it learns leakage through a cost critic that the safety-paradox analysis predicts will degrade near the boundary. If the ablation's training-time leakage violations turn out comparable to ours, the projection is unnecessary, and we will report that.

Why not just fly a fixed formation and compute null-steering weights in closed form, with no learning? Liu et al. and Zhang et al. found static linear, rectangular, and circular arrays inferior to learned positioning. Neither compared them under a hard leakage constraint, which is where they could look better than reported. We therefore include a static array with safety buffers and the same robust projection. If learned positioning does not beat it on throughput when the eavesdropper sits near the base-station direction, our claim that positioning decorrelates the two channels is wrong.

Why not just use DeCOM's learned perturbation? DeCOM's corrective action only becomes safe after training. Its correction is also conditioned on neighbors' actions, which cannot represent a constraint that depends on all $N$ phases. The head-to-head comparison measures both early-training leakage and leakage as the swarm grows from 8 to 32.

Proposed Experiments

The main experiment runs every method above at 8, 16, and 32 drones, at phase jitter $\sigma$ of 0, 0.1, and 0.3 rad, with eavesdropper position error of 0 and 5 m. Each configuration uses five seeds. We report six quantities: cumulative collisions during training, cumulative steps exceeding the leakage budget (evaluated with sampled true jitter), final rates to both base stations, secrecy rate, energy relative to budget, and per-step filter compute time on a single embedded-class CPU core. For the compute comparison we also time a 4-step diffusion actor as in Zhang et al.

Three checks are decisive.

The robust projection should hold near-zero leakage violations under jitter, while the $\sigma = 0$ projection violates more as $\sigma$ grows. This would show the jitter term is necessary, not decorative.

Scal-MAPPO-L's leakage violations should not shrink as $\kappa$ grows from 1 to 3 the way its collision violations do. This would confirm empirically that correlation decay holds for local constraints but fails for the global one.

The measured secrecy contrast versus $N$ should track the closed-form floor, growing sub-quadratically under jitter. If it saturates instead, the saturation Zhang et al. attribute to flight boundaries is the better explanation, and the floor argument must be revised.

Finally, the static-formation comparison decides whether online learning is worth its cost once secrecy is a hard constraint.