betaFeedback

WorksEngineering

FedSwitch: Federated Region Classification From Wireless Channel Measurements

Abstract

Wireless Internet-of-Things (IoT) networks can leverage locally observed channel state information (CSI) at base-stations (BSs) to perform region classification, i.e., infer the region of origin of a transmitter (TX), thereby enabling channel-based authentication. However, centralizing these measurements incurs substantial communication overhead and requires sharing location-dependent radio fingerprints. To address these difficulties, we propose an edge-native federated learning (FL) framework where BSs collaboratively train a shared classifier via a parameter server (PS) without exposing raw data, thereby supporting physical-layer security tasks like spoofing detection. To overcome the statistical heterogeneity arising from diverse BS locations and propagation conditions, we introduce FedSwitch, a personalized FL algorithm that automatically transitions edge nodes from collaborative training to local fine-tuning upon loss stagnation. We provide theoretical convergence guarantees for the proposed collaborative training phase and derive analytical bounds linking classification errors to statistical discrepancies. Extensive evaluations on synthetic channel measurements demonstrate that FedSwitch significantly improves region-classification accuracy over standard FL baselines.

Introduction

Wireless IoT networks often comprise resource-constrained devices, motivating lightweight security mechanisms that complement conventional cryptographic authentication. Since wireless channel characteristics depend on the transmitter location, locally observed CSI can provide physical-layer evidence of whether a transmitter is spatially consistent with an expected region.

In the following, we consider a scenario in which multiple base-stations (BSs) collect channel-dependent measurements from users. We formulate the Channel-based Region Classification (CRC) problem, where each BS uses local channel observations to classify a TX into predefined regions, supporting security tasks such as location-aware authentication and rogue-transmitter detection.

Relevant Literature

We briefly review the main research directions that are relevant to the development of this work.

Region Verification A simple case of region localization is the problem of determining if a device is in a Region-of-Origin (RoO) or not, which is a binary classification problem. Such a scenario has been considered in [1], where the authors showed that neural-network (NN) trained with a sufficiently high number of samples achieve the performance of the optimal Neyman-Pearson (NP)-test. In [2], the authors propose FedPos, in which devices localize the transmitter in an indoor environment using its fingerprint. In particular, they tackle data heterogeneity by training an FL manner only the feature extraction part of the model. On the same line, [3] exploits meta-learning to first learn a shared representation across clients, followed by an adaptation phase. Finally, [4] proposes to use both CSI and received-signal-strength-indicator (RSSI) along with federated-averaging (FedAvg) to make the system more robust to fluctuations.

Multiple-Stage Federated Learning The idea of learning a task in multiple stages, usually with a first FL stage to learn a shared representation used as a warm starting point, followed by a second stage specifically tailored for the problem at hand, is well established in the literature [5, 6, 7]. In [8], the authors tackle the label noise problem with FedCorr, which first identifies noisy clients, then fine-tunes the global model on only the clean clients, and finally corrects the remaining noisy labels after fine-tuning. Dealing with the label flipping attack, the authors in [9] propose FedMAR, a multistage asynchronous aggregation framework that identifies participants with poisoned data and mitigates their negative impact through a roll-back approach. In [10], the authors show that pretraining using federated methods is effective, especially in healthcare systems that suffer from data privacy issues [11]. In [12], we have FedERFT, a federated learning framework with server-side staged optimization, a two-stage approach with, in the first stage, the server aggregates client models to obtain an initial global model. In the second stage, the global encoder is frozen, and only the classification head is fine-tuned, and in the final stage, both the global encoder and the classification head are jointly fine-tuned to further enhance overall performance. In [13], we have FedDAT, which leverages a Dual-Adapter Teacher to address data heterogeneity by regularizing the client local updates and applying mutual knowledge distillation for an efficient knowledge transfer.

Physical-Layer Authentication: A problem connecting to region classification is physical-layer authentication (PLA), where messages are authenticated by looking at the channel characteristics over which the signal is travelling. Assuming to know the position or the region where the legitimate transmitter should be, the receiver can authenticate messages by checking if the channel corresponds to the expected position or region. The application of FL in PLA is at its dawn, and to the best of our knowledge, only a few works have been done. In [14], we have an IoT scenario where multiple constrained devices collaborate to authenticate the transmitter using the FedAvg algorithm. In [15], a distributed anomaly detection system for detecting compromised devices in LoRa-enabled industrial IoT is presented. It exploits device-specific features such as Carrier Frequency Offset (CFO) as the device fingerprint, whose deviations from expected behaviors allow for the detection of attackers. In [16], multiple Wi-Fi routers use FedProx [17] to cooperate in localizing the TX. Finally, in [18], the authors tackle drone authentication using FedAvg at the local server and stochastic-gradient-descent (SGD) performed locally by the drones.

Contributions: The main contributions of this paper are:

  • Sec. II – CRC model for wireless IoT. We formulate a CRC problem for wireless IoT networks, in which multiple BSs observe uplink channel measurements generated by users transmitting from different physical regions. Each BS aims to infer the RoO of a transmission from its local channel observations, so that the resulting estimate can be used as a lightweight physical-layer security mechanism.

  • Sec. III – Heterogeneous FL formulation. We cast the CRC task as a FL problem, where the BSs collaboratively train a classifier under the coordination of a parameter server (PS) without sharing their recorded channel measurements. This formulation avoids the centralization of location-dependent radio fingerprints, reduces the exposure of sensitive channel data, and enables collaborative learning across edge nodes while preserving the distributed nature of the wireless IoT deployment.

  • Sec. IV – Proposed Solution: FedSwitch. We introduce FedSwitch, a personalized FL algorithm designed for the heterogeneous channel statistics induced by multi-BS deployments. The proposed method allows each BS to participate in collaborative training while the global model is beneficial, and to switch to a local fine-tuning phase when its training loss stagnates. In this way, FedSwitch balances the benefits of shared learning with the need for local specialization at edge nodes observing different propagation conditions and region distributions.

  • Sec. V – Theoretical analysis of learning and classification performance. We provide a theoretical characterization of the proposed framing framework, including convergence properties of FedSwitch and analytical bounds relating the CRC performance to the statistical discrepancy among local channel distributions. This analysis clarifies the role of data heterogeneity in federated channel-based classification and motivates the use of personalization in the considered wireless IoT setting.

  • Sec. VI – Evaluation on synthetic vehicular channel measurements. We validate the proposed framework using synthetic channel measurements from the 3GPP channel model. The numerical results show that channel measurements can support accurate CRC and that FedSwitch improves over standard FL baselines in heterogeneous multi-BS deployments.

A conceptual representation of the contribution of the paper is provided in Figure 1.

Figure 1. Graphical overview of the proposed FedSwitch framework. In the considered wireless IoT setting, users transmit from predefined RoOs and multiple BSs observe location-dependent channel measurements. The BSs use these measurements to infer whether a received signal is spatially consistent with the claimed or authorized region, enabling lightweight physical-layer verification against protocol-compliant impersonation attempts. Rather than centralizing raw channel measurements, the BSs collaboratively train a region-classification model through a PS. The proposed FedSwitch algorithm first exploits federated training to learn shared channel representations and then switches to personalized local fine-tuning when further global updates no longer improve the local loss.

Notation: Calligraphic letters denote sets.

Problem Setting: Channel-based Region Classification

We consider a wireless IoT scenario in which devices transmit uplink signals to a set of KK geographically distributed BSs, indexed by k∈{1,…,K}≜[K]k \in\{1,\ldots,K\} \triangleq[K]. Each BS observes channel-dependent measurements and uses them to infer the RoO of the received transmission. The resulting CRC task is motivated by physical-layer security applications, where a transmitter is expected to operate from an authorized region and a mismatch between the claimed and inferred RoO may indicate spoofing or impersonation. We denote by Alice a legitimate transmitter associated with an authorized RoO, and by Trudy a protocol-compliant unauthorized transmitter attempting to impersonate Alice from a different region, a pa

Let A⊂R2\mathcal{A} \subset\mathbb{R}^{2} denote the geographical area of interest. We partition A\mathcal{A} into NN predefined RoOs,

A=⋃n∈[N]Rn,Rn∩Rn′=∅,n≠n′,(1)\mathcal{A} = \bigcup_{n\in[N]} \mathcal{R}_{n}, \qquad\mathcal{R}_{n} \cap\mathcal{R}_{n'} = \varnothing, \quad n \ne n', \tag*{(1)}

where each region Rn\mathcal{R}_{n} corresponds to one possible RoO label. Each BS observes uplink transmissions generated by users located in one of the regions {Rn}\{\mathcal{R}_{n}\}. We assume that the transmitters are equipped with a single antenna, while the BSs are equipped with MM antennas, consistent with the measurement setting considered in this work. When a user transmits from position p∈Rnp \in\mathcal{R}_{n}, BS kk observes a noisy channel response that depends on the transmitter position, the BS position, and the surrounding propagation environment. For subcarrier s∈[S]s \in[S], we denote the corresponding complex channel coefficient by hk,s(p)∈CMh_{k,s}(p) \in\mathbb{C}^{M}. The multi-subcarrier channel observation collected at BS kk is the column vector

xk(p)=[hk,1T(p),hk,2T(p),…,hk,ST(p)]T∈CMS.(2)\boldsymbol{x}_{k}(p) = \left[h_{k,1}^{\mathsf{T}}(p), h_{k,2}^{\mathsf{T}}(p), \ldots, h_{k,S}^{\mathsf{T}}(p)\right]^{\mathsf{T}} \in\mathbb{C}^{MS}. \tag*{(2)}

The detailed channel-generation model and the construction of the channel observations used in the experiments are described later in Sec. VI. In the present section, we only require that xk(p)\boldsymbol{x}_{k}(p) contains location-dependent information induced by the propagation environment. In this paper, we are particularly interested in the scarce-data regime, a typical scenario in IoT networks where constrained devices cannot perform channel estimation frequently.

The CRC problem at BS kk consists of assigning the received channel observation xk(p)\mathbf{x}_k(p) to one of the NN predefined regions. That is, BS kk implements a decision rule

δk:CMS→[N],(3)\delta_k : \mathbb{C}^{MS} \to[N], \tag*{(3)}

where δk(xk)=n\delta_k(\mathbf{x}_k)=n means that the signal observed at BS kk is classified as originating from region Rn\mathcal{R}_n.

Performance Evaluation

Let PMD(δk∣Hn)/PFA(δk∣Hn)P_{\mathrm{MD}}(\delta_k \mid\mathcal{H}_n)/P_{\mathrm{FA}}(\delta_k \mid\mathcal{H}_n) as the probability of miss-detection (MD)/false-alarm (FA) under the hypothesis Hn\mathcal{H}_n, which corresponds to the region Rn\mathcal{R}_n. The performance of the decision rule in (3) is evaluated through the detection-error-tradeoff (DET) defined as

DET⁡(δk,Hn)=(PMD(δk∣Hn),PFA(δk∣Hn)),(4)\operatorname{DET}(\delta_k,\mathcal{H}_n)=\left(P_{\mathrm{MD}}(\delta_k\mid\mathcal{H}_n),P_{\mathrm{FA}}(\delta_k\mid\mathcal{H}_n)\right), \tag*{(4)}

which is a function both of the decision rule δk\delta_k and of the specific RoO. We define the average over both BSs and true RoO MD/FA probabilities as

P‾MD=1KN∑n,k∈[N],[K]PMD(δk∣Hn)(5)\overline{P}_{\mathrm{MD}}=\frac{1}{KN}\sum_{n,k\in[N],[K]}P_{\mathrm{MD}}(\delta_k\mid\mathcal{H}_n) \tag*{(5)}
P‾FA=1KN∑n,k∈[N],[K]PFA(δk∣Hn).(6)\overline{P}_{\mathrm{FA}}=\frac{1}{KN}\sum_{n,k\in[N],[K]}P_{\mathrm{FA}}(\delta_k\mid\mathcal{H}_n). \tag*{(6)}

The average DET across all hypotheses and BSs is then the tuple

DET⁡‾=(P‾MD,P‾FA)(7)\overline{\operatorname{DET}}=\left(\overline{P}_{\mathrm{MD}},\overline{P}_{\mathrm{FA}}\right) \tag*{(7)}

The DET curve in (7) can be used as a lightweight physical-layer verification mechanism. For example, if Alice is authorized to transmit from region Rn\mathcal{R}_n, then a classification outcome different from nn provides evidence that the received signal may be spatially inconsistent with Alice’s authorized region. Equivalently, if a received transmission claims to originate from Rn\mathcal{R}_n, the BS can use the output of δk\delta_k to accept or reject this claim based on the inferred RoO. With (7) we are capturing the average across BSs and RoOs of such quantity.

Learning Framework: Personalized Federated Learning

Based on the CRC problem introduced in Sec. II, we now formulate the learning problem solved by the BSs. The objective is to train NN classifiers that infer the RoO of a received signal while keeping the raw channel measurements local at each BS. This naturally leads to a FL formulation, in which the BSs collaborate through a PS without sharing their recorded channel data.

Local Datasets and Classification Loss

Each BS k∈[K]k\in[K] collects a local labeled dataset

Dk={(xk(i),yk(i))}i∈Ck,(8)\mathcal{D}_k=\left\{\left(\mathbf{x}_k^{(i)},y_k^{(i)}\right)\right\}_{i\in\mathcal{C}_k}, \tag*{(8)}

where xk(i)\mathbf{x}_k^{(i)} is a realization of xk(p)\mathbf{x}_k(p), the multi-subcarrier channel observation collected at BS kk, as defined in (2), and yk(i)∈[N]y_k^{(i)}\in[N] is the corresponding RoO. The number of samples available at BS kk is denoted by CkC_k, and the total number of samples across all BSs is C=∑k∈[K]CkC=\sum_{k\in[K]}C_k. Each BS trains a classifier fk(⋅;ω):CMS→ΔNf_k(\cdot;\boldsymbol{\omega}):\mathbb{C}^{MS}\to\Delta^N, where ω∈Rm\boldsymbol{\omega}\in\mathbb{R}^m denotes the model parameters and ΔN\Delta^N is the probability simplex over the NN region labels. For an input channel observation xk(i)\mathbf{x}_k^{(i)}, the classifier output

fk(xk(i);w)=[q1(xk(i);w),…,qN(xk(i);w)](9)f_k(\mathbf{x}_k^{(i)};\mathbf{w})=\left[q_1(\mathbf{x}_k^{(i)};\mathbf{w}),\ldots,q_N(\mathbf{x}_k^{(i)};\mathbf{w})\right] \tag*{(9)}

represents the estimated posterior probabilities of the NN RoOs. The predicted region is obtained as

y^k=arg⁡max⁡n∈[N] qn(xk(i);w).(10)\hat{y}_k=\underset{n\in[N]}{\arg\max}\ q_n(\mathbf{x}_k^{(i)};\mathbf{w}). \tag*{(10)}

The local empirical risk at BS kk is defined as

Fk(w)=1Ck∑i∈[Ck]ℓ(f(xk(i);w),yk(i)),(11)F_k(\mathbf{w})=\frac{1}{C_k}\sum_{i\in[C_k]}\ell\left(f(\mathbf{x}_k^{(i)};\mathbf{w}),y_k^{(i)}\right), \tag*{(11)}

where ℓ(⋅,⋅)\ell(\cdot,\cdot) is the multi-class cross-entropy loss. If all channel measurements could be centralized, the network would train a model by minimizing the global empirical risk

F(w)=∑k∈[K]CkCFk(w).(12)F(\mathbf{w})=\sum_{k\in[K]}\frac{C_k}{C}F_k(\mathbf{w}). \tag*{(12)}

However, centralizing the datasets {Dk}k∈[K]\{\mathcal{D}_k\}_{k\in[K]} is undesirable because the channel observations are location-dependent radio fingerprints. We therefore minimize (12) in a federated manner.

Federated Learning Preliminaries

Consider the FL setting with KK clients, each client kk possessing a local dataset Dk\mathcal{D}_k, wishing to minimize the loss function L\mathcal{L} as evaluated across all the clients and over the model weights w\mathbf{w}. This minimization is coordinated by the PS as follows: at communication round e∈[TE]e\in[T_{\mathrm{E}}], where TET_{\mathrm{E}} is the total number of communication rounds, the PS broadcasts the current global model w(e)\mathbf{w}^{(e)} to a subset of participating BSs. Each selected BS initializes its local model with w(e)\mathbf{w}^{(e)} and performs local training on Dk\mathcal{D}_k. Denoting by wk(e+1)\mathbf{w}_k^{(e+1)} the locally updated model at BS kk, the PS aggregates the received models as

w(e+1)=∑k∈S(e)Ck∑j∈S(e)Cjwk(e+1),(13)\mathbf{w}^{(e+1)}=\sum_{k\in\mathcal{S}^{(e)}}\frac{C_k}{\sum_{j\in\mathcal{S}^{(e)}}C_j}\mathbf{w}_k^{(e+1)}, \tag*{(13)}

where S(e)⊆[K]\mathcal{S}^{(e)}\subseteq[K] is the set of BSs participating in round ee. This corresponds to the standard FedAvg update.

While FedAvg is effective when local datasets are approximately identically distributed, this assumption is not satisfied in the considered region-classification problem. Indeed, each BS observes the same geographical area, but from different positions and under different propagation conditions. As a result, the local risks Fk(w)F_k(\mathbf{w}) in (11) may have different minimizers, and the single global model provided in (12) may not provide the best classifier for every BS.

In practical FL scenarios, the communication between clients and the PS is often limited. One common constraint considered in the literature on communication between clients and the PS is the rate constraint– in which the communication is restricted to mRkmR_k bits from each client to the PS. To meet this constraint, each client kk compresses the mm-dimensional gradient vector gk(e)\mathbf{g}_k^{(e)} to a mRkmR_k binary vector through a compressor comp⁡Rk:Rm→[2mRk]\operatorname{comp}_{R_k}:\mathbb{R}^{m}\to[2^{mR_k}], where the sum over all RkR_k is constrained, and the client is dropped (unselected) if assigned a rate of Rk=0R_k=0.

Symbol / TermDescription
bkb_kBase Station: kk-th BS
Rn\mathcal{R}_nRegion of Origin: nn-th RoO
xk(i)\mathbf{x}_k^{(i)}Sample: ii-th channel observation at bkb_k
yk(i)y_k^{(i)}Label: RoO label associated with xk(i)\mathbf{x}_k^{(i)}
δk(⋅)\delta_k(\cdot)Local Decision Rule: Classifier used at bkb_k
Dk\mathcal{D}_kLocal Dataset: Local dataset at bkb_k
eeCommunication round: ee-th comm. round out of TET_{\mathrm{E}}
CkC_kLocal Dataset Size: Number of samples in Dk\mathcal{D}_k
f(⋅;w)f(\cdot;\mathbf{w})Region Classifier: Learned classifier with param. w\mathbf{w}
wk\mathbf{w}_kLocal Model: Classifier parameters trained at bkb_k
w={wk}\mathbf{w}=\{\mathbf{w}_k\}Distributed Model: Collection of local models BSs
Fk(w)F_k(\mathbf{w})Local Objective: Empirical loss at bkb_k
F(w)F(\mathbf{w})Global Objective: Global federated objective
wF(e)\mathbf{w}_{\mathrm{F}}^{(e)}Global FL Model: Global model at round ee
wk(e,ℓ)\mathbf{w}_{k}^{(e,\ell)}Local Model: Model at bkb_k at round ee at local step ℓ\ell
PSParameter Server: Entity combining BSs’ models
AliceLegitimate TX: Device transmitting from its RoO.
TrudyAdversary: Attacker

Table I. Main Notation for Personalized FL.

The PS aggregates all the compressed gradients and forms the new global weights

w(e+1)=w(e)−ηeg^(e),for e∈[TE],(14)\mathbf{w}^{(e+1)}=\mathbf{w}^{(e)}-\eta_e\hat{\mathbf{g}}^{(e)},\quad\text{for }e\in[T_{\mathrm{E}}], \tag*{(14)}
g^(e)=1K∑k∈[K]comp⁡Rk−1(comp⁡Rk(gk(e))).(15)\hat{\mathbf{g}}^{(e)}=\frac{1}{K}\sum_{k\in[K]}\operatorname{comp}_{R_k}^{-1}\left(\operatorname{comp}_{R_k}\left(\mathbf{g}_k^{(e)}\right)\right). \tag*{(15)}

The ultimate goal in a single FL iteration is to minimize the distortion in gradient reconstruction, i.e., the distortion between g(e)\mathbf{g}^{(e)} and g^(e)\hat{\mathbf{g}}^{(e)}. We assume that minimizing the gradient reconstruction distortion leads to a minimum perturbation of the accuracy.

Motivation for Personalized Federated Learning

The heterogeneity of the local channel distributions makes indefinite collaborative training suboptimal. At early training stages, model updates from other BSs are beneficial, especially when local datasets are small. As training progresses, however, the global model may become less representative of the propagation conditions observed at a given BS, degrading its local classification performance. This motivates a personalized FL strategy that combines initial collaboration with subsequent local adaptation.

Each BS should initially benefit from shared training across the network, but should also be allowed to specialize its classifier once the global updates stop improving its local objective. The goal is therefore to learn a collection of personalized models {wk∗}k∈[K]={w1∗,…,wK∗}\{\mathbf{w}_k^*\}_{k\in[K]}=\{\mathbf{w}_1^*,\ldots,\mathbf{w}_K^*\}, where wk∗\mathbf{w}_k^* is adapted to the channel statistics and region distribution observed at BS kk. This leads to the personalized objective of minimizing the global risk (12)

min⁡w1,…,wK∑k∈[K]CkCFk(wk),(16)\min_{\mathbf{w}_1,\ldots,\mathbf{w}_K}\sum_{k\in[K]}\frac{C_k}{C}F_k(\mathbf{w}_k), \tag*{(16)}

with the additional requirement that the models should still exploit the information shared during the federated training phase.

Proposed Solution: FedSwitch

FedSwitch combines collaborative federated training with local specialization. In the first phase, the BSs collaboratively train a shared model using FedAvg, exploiting channel measurements collected across the deployment. In the second phase, each BS progressively adapts the shared model to its local propagation conditions and region coverage.

The transition between the two phases is determined adaptively from the local training loss. Each BS evaluates the current global model on its local dataset and is marked as ready for personalization when the loss improvement over a prescribed observation window falls below a tolerance. Once all BSs are marked as ready, the final global model initializes the personalization phase.

Let wF(e)w_{\mathrm{F}}^{(e)} denote the global model at communication round ee, and let wk(e)w_k^{(e)} denote the local model at BS kk. We denote by Fk(w)F_k(w) the empirical loss of model ww on the local dataset Dk\mathcal{D}_k. For each BS, we introduce a binary state variable ρk(e)∈{0,1}\rho_k^{(e)} \in\{0,1\}, where ρk(e)=0\rho_k^{(e)}=0 means that BS kk is still in the collaborative phase, while ρk(e)=1\rho_k^{(e)}=1 means that it is ready for local fine-tuning. Note that even if a BS is ready for finetuning, it keeps participating in the FedAvg phase until all the others are ready: even if this can be a waste of resources for such BS, it is not for the others, thus the whole system benefits from it. Given a patience window TWT_{\mathrm{W}} and a tolerance ϵ>0\epsilon>0, the switching condition for the kk-th BS is triggered at round eke_k when, for the first time, the windowed average loss improvement follows below the threshold ϵ\epsilon, that is

ΔFk(e)=1TW∑e=ek−TWek−1(Fk(wk(e−1))−Fk(wk(e)))<ϵ.(17)\Delta F_k^{(e)}=\frac{1}{T_{\mathrm{W}}}\sum_{e=e_k-T_{\mathrm{W}}}^{e_k-1}\left(F_k\left(w_k^{(e-1)}\right)-F_k\left(w_k^{(e)}\right)\right)<\epsilon. \tag*{(17)}

When (17) holds, the loss improvement obtained from the global model over the last TWT_{\mathrm{W}} communication rounds is considered negligible, and BS kk is marked as ready for personalization. Note that the switching condition in (17) can be negative: it means that not only is training useless but is also damaging the BS kk, thus all the more so must switch.

Collaborative FedAvg Phase

At each communication round ee, the PS broadcasts the current global model wF(e)w_{\mathrm{F}}^{(e)} to the participating BSs. Each BS initializes its local model as wk(e,0)=wF(e)w_k^{(e,0)}=w_{\mathrm{F}}^{(e)} and performs EE local momentum stochastic-gradient-descent (mSGD) steps on Dk\mathcal{D}_k. For local step ℓ=0,…,E−1\ell=0,\ldots,E-1, the update is

wk(e,ℓ+1)=wk(e,ℓ)−η(e,ℓ)mk(e,ℓ),(18)w_k^{(e,\ell+1)}=w_k^{(e,\ell)}-\eta^{(e,\ell)}m_k^{(e,\ell)}, \tag*{(18)}

where η(e,ℓ)\eta^{(e,\ell)} is the learning-rate (LR) and mk(e,ℓ)m_k^{(e,\ell)} is the momentum-based update direction. Specifically,

mk(e,ℓ)=βmk(e,ℓ−1)+(1−β)gk(e,ℓ),(19)m_k^{(e,\ell)}=\beta m_k^{(e,\ell-1)}+(1-\beta)g_k^{(e,\ell)}, \tag*{(19)}

where β∈[0,1)\beta\in[0,1) is the momentum coefficient and

gk(e,ℓ)=1BS∑i∈Bk(e,ℓ)∇wℓ(f(xk(i);wk(e,ℓ)),yk(i))(20)g_k^{(e,\ell)}=\frac{1}{B_{\mathrm{S}}}\sum_{i\in\mathcal{B}_k^{(e,\ell)}}\nabla_w\ell\left(f\left(x_k^{(i)};w_k^{(e,\ell)}\right),y_k^{(i)}\right) \tag*{(20)}

is the stochastic gradient computed on a mini-batch Bk(e,ℓ)⊂Dk\mathcal{B}_k^{(e,\ell)}\subset\mathcal{D}_k of size BSB_{\mathrm{S}}.

After the EE local steps, BS kk obtains wk(e+1)=wk(e,E)w_k^{(e+1)}=w_k^{(e,E)}. The PS aggregates the local models according to the FedAvg rule

wF(e+1)=∑k∈[K]CkCwk(e+1),C=∑k∈[K]Ck.(21)w_{\mathrm{F}}^{(e+1)}=\sum_{k\in[K]}\frac{C_k}{C}w_k^{(e+1)},\qquad C=\sum_{k\in[K]}C_k. \tag*{(21)}

The updated global model is then evaluated locally by each BS through its own loss Fk(wF(e+1))F_k(w_{\mathrm{F}}^{(e+1)}), and the switching rule in (17) is applied.

Personalized Fine-Tuning Phase

Let TsT_{\mathrm{s}} denote the first communication round at which all BSs are marked as ready for personalization, i.e.,

Ts=min⁡{e:ρk(e)=1, ∀k∈[K]}.(22)T_{\mathrm{s}}=\min\{e:\rho_k^{(e)}=1,\ \forall k\in[K]\}. \tag*{(22)}

At this point, the collaborative phase transitions into the personalization phase. Waiting for all the BSs to complete the information sharing is influenced by the slowest BS, and it is actually a design choice. In fact, unlike typical FL applications, our scenario has few clients, and all of them must perform well because each BSs makes its decision autonomously. Each BS initializes its personalized model from the final global model obtained after the collaborative stage, w~k(0)=wF(Ts)\widetilde{w}_k^{(0)}=w_{\mathrm{F}}^{(T_{\mathrm{s}})}.

After the switch, the BSs continue updating their models using both the local and global information. In particular, at each iteration, the model update is obtained as a weighted combination of the locally adapted model and the global model, namely

w~k(t)=αtwk(t)+(1−αt)wF(t),(23)\widetilde{w}_k^{(t)}=\alpha_t w_k^{(t)}+(1-\alpha_t)w_{\mathrm{F}}^{(t)}, \tag*{(23)}

where αt∈[0,1]\alpha_t\in[0,1] is an exponentially increasing parameter controlling the tradeoff between personalization and global cooperation: as time passes, the contribution of the global model progressively decreases, while the local model becomes more influential, thus the models quickly but smoothly switch to pure fine-tuning. Note that also during the finetuning phase, each BSs keeps forwarding its models so that the PS can compute the average model wF(t)w_{\mathrm{F}}^{(t)}. In practice, each BS performs stochastic-gradient updates on its local dataset Dk\mathcal{D}_k, while still incorporating information from the global model through the weighted combination above. This strategy preserves the representations learned during the collaborative phase while gradually adapting the classifier to the channel statistics observed by BS kk. The resulting procedure is summarized in Algorithm 1. The algorithm returns a set of personalized classifiers {w~k}k∈[K]\{\widetilde{w}_k\}_{k\in[K]}, one for each BS, that are then used locally to infer the RoO of newly received transmissions.

Performance Analysis

In this section, we provide some theoretical results on the performance of FedSwitch. In particular, Th. 5.1 provides motivation to the switching rule in (17) while Th. 5.2 bounds the hypothesis testing performance of FedSwitch.

Algorithm 1 The proposed solution: FedSwitch.

Require: Local datasets {Dk}k∈[K]\{\mathcal{D}_k\}_{k\in[K]}, initial global model wF(0)w_{\mathrm{F}}^{(0)}, local steps EE, momentum coefficient β\beta, patience window TWT_{\mathrm{W}}, tolerance ϵ\epsilon, total number of communication rounds TET_{\mathrm{E}}

Ensure: Personalized models {wk⋆}k∈[K]\{w_k^\star\}_{k\in[K]}

  1. Initialize state variables ρk(0)←0\rho_k^{(0)} \leftarrow0 for all k∈{1,…,K}k\in\{1,\ldots,K\}

  2. Set communication round e←0e\leftarrow0

  3. repeat ▷ Phase 1: Collaborative FedAvg Phase

  4. for each BS kk in parallel do

  5. Initialize local model: wk(e,0)←wF(e)w_k^{(e,0)}\leftarrow w_{\mathrm{F}}^{(e)}

  6. for local step ℓ=0\ell=0 to E−1E-1 do

  7. Compute stochastic gradient gk(e,ℓ)g_k^{(e,\ell)} via (20)

  8. Update momentum direction mk(e,ℓ)m_k^{(e,\ell)} via (19)

  9. Update local parameters wk(e,ℓ+1)w_k^{(e,\ell+1)} via (18)

  10. end for

  11. Set local round output: wk(e+1)←wk(e,E)w_k^{(e+1)}\leftarrow w_k^{(e,E)}

  12. end for

  13. PS updates global model wF(e+1)w_{\mathrm{F}}^{(e+1)} via (21)

  14. e←e+1e\leftarrow e+1

  15. for each BS kk in parallel do

  16. if e≥TWe\ge T_{\mathrm{W}} and switching condition in (17) occurs then

  17. Mark as ready for personalization: ρk(e)←1\rho_k^{(e)}\leftarrow1

  18. end if

  19. end for

  20. until ρk(e)=1\rho_k^{(e)}=1 for all k∈{1,…,K}k\in\{1,\ldots,K\}

  21. Set switching round TS←eT_{\mathrm{S}}\leftarrow e

  22. Compute aggregation weights schedule {αt}t=1TE−TS\{\alpha_t\}_{t=1}^{T_{\mathrm{E}}-T_{\mathrm{S}}}

  23. for each BS kk in parallel do

  24. Initialize personalized tracker: w~k(0)←wF(TS)\widetilde{w}_k^{(0)}\leftarrow w_{\mathrm{F}}^{(T_{\mathrm{S}})}

  25. end for

  26. for iteration t=1t=1 to TE−TST_{\mathrm{E}}-T_{\mathrm{S}} do ▷ Phase 2: Personalized Fine-Tuning Phase

  27. for each BS kk in parallel do

  28. Perform mSGD updates on Dk\mathcal{D}_k starting from w~k(t−1)\widetilde{w}_k^{(t-1)} to obtain wk(t)w_k^{(t)}

  29. end for

  30. PS updates global model wF(t)w_{\mathrm{F}}^{(t)} by aggregating local updates wk(t)w_k^{(t)}

  31. for each BS kk in parallel do

  32. Apply weighted combination: w~k(t)←αtwk(t)+(1−αt)wF(t)\widetilde{w}_k^{(t)}\leftarrow\alpha_t w_k^{(t)}+(1-\alpha_t)w_{\mathrm{F}}^{(t)}

  33. end for

  34. end for

  35. for each BS kk in parallel do

  36. Save final personalized classifier: wk⋆←w~k(TE−TS)w_k^\star\leftarrow\widetilde{w}_k^{(T_{\mathrm{E}}-T_{\mathrm{S}})}

  37. end for

  38. return {wk⋆}k∈[K]\{w_k^\star\}_{k\in[K]}

Assumptions: Before proceeding, let us discuss the assumptions that we adopt in the performance analysis in this section. We adopt standard assumptions on the loss function [19], as follows.

  1. Smoothness: The loss function L\mathcal{L} is LL-smooth. For all v,w∈Rmv,w\in\mathbb{R}^m,

L(⋅;v)≤L(⋅;w)+∇L(⋅;w)T(v−w)+L2∥v−w∥2(24)\mathcal{L}(\cdot;v)\le\mathcal{L}(\cdot;w)+\nabla\mathcal{L}(\cdot;w)^{\mathsf{T}}(v-w)+\frac{L}{2}\lVert v-w\rVert^2 \tag*{(24)}
  1. Strong Convexity: The loss function L\mathcal{L} is μ\mu-strongly convex. For all v,w∈Rmv,w\in\mathbb{R}^m,

L(⋅;v)≥L(⋅;w)+∇L(⋅;w)T(v−w)+μ2∥v−w∥2.(25)\mathcal{L}(\cdot;v)\ge\mathcal{L}(\cdot;w)+\nabla\mathcal{L}(\cdot;w)^{\mathsf{T}}(v-w)+\frac{\mu}{2}\lVert v-w\rVert^2. \tag*{(25)}
  1. Bounded Variance: Let xk(i)x_k^{(i)} be sampled uniformly at random from the local dataset Dk\mathcal{D}_k. The variance of stochastic gradients is bounded. In formulae, we have that ∀k=1,…,K\forall k=1,\ldots,K

E∥∇L(xk(i);wk(t))−E(L(xk(i);wk(t)))∥2≤σk2,(26)\mathbb{E}\left\lVert\nabla\mathcal{L}(x_k^{(i)};w_k^{(t)})-\mathbb{E}\left(\mathcal{L}(x_k^{(i)};w_k^{(t)})\right)\right\rVert^2\le\sigma_k^2, \tag*{(26)}

where both expectations are on the distribution Dk\mathcal{D}_k.

  1. Bounded Second Moment: The expected squared norm of stochastic gradients is uniformly bounded ∀k=1,…,K\forall k=1,\ldots,K, t=1,…,Tt=1,\ldots,T

E∥∇L(xk(i);wk(t))∥2≤G2.(27)\mathbb{E}\left\lVert\nabla\mathcal{L}(x_k^{(i)};w_k^{(t)})\right\rVert^2\le G^2. \tag*{(27)}

On the Role of the Switching Criterion

A central element of FedSwitch is the switching criterion between the collaborative and fine-tuning phases. Since prematurely switching to fine-tuning may lead to suboptimal personalization and excessive switching may waste communication rounds, we monitor the training loss of the local models. Specifically, at each BS kk, we track the average loss reduction over a sliding window of TWT_{\mathrm{W}} communication rounds: if the improvement falls below a predefined threshold ϵ\epsilon, the BS is marked as ready to local fine-tuning, and once all BSs are ready, the fine-tuning phase begins. Formally, the kk-th BS is marked as ready at time eke_k when, for the first time (17) occurs.

A first question is when the switch between Phase 1 and Phase 2 in Algo. 1, i.e., the FedAvg and fine-tuning phases, occurs. The next theorem, Th. 5.1, shows that the windowed average loss improvement in (17) decays as O(1/e)\mathcal{O}(1/e).

Let wF⋆w_{\mathrm{F}}^\star be the optimal federated model, and let wF(e)w_{\mathrm{F}}^{(e)} be the average model at each client at communication round ee, that is

wF(e)=1K∑k∈[K]wk(e).(28)w_{\mathrm{F}}^{(e)}=\frac{1}{K}\sum_{k\in[K]}w_k^{(e)}. \tag*{(28)}

A proxy for the switching condition in (17) is then

E(L(wF(e),Dk))−E(L(wF⋆,Dk)).(29)\mathbb{E}\left(\mathcal{L}(w_{\mathrm{F}}^{(e)},\mathcal{D}_k)\right)-\mathbb{E}\left(\mathcal{L}(w_{\mathrm{F}}^\star,\mathcal{D}_k)\right). \tag*{(29)}

Our next theorem characterized the decay of (29) as a function of the communication round ee.

Theorem 5.1 (Collaborative-phase optimality gap): Let Assumptions 1 to 4 hold and L,μ,σk,GL,\mu,\sigma_k,G be defined therein.

Also, let β\beta be the momentum factor and BSBS the batch size in Algo. 1. Let us define the non-iid factor

Γ=E(L(wF⋆,Dk))−E(L({wk⋆}k∈[K],Dk))≥0,(30)\Gamma= \mathbb{E}(\mathcal{L}(w_F^\star,D_k))-\mathbb{E}(\mathcal{L}(\{w_k^\star\}_{k\in[K]},D_k))\geq0, \tag*{(30)}

where E(L({wk⋆}k∈[K],Dk))\mathbb{E}(\mathcal{L}(\{w_k^\star\}_{k\in[K]},D_k)) is the minimal average loss function attainable by the BSs; which happens when each BS kk uses its optimal model wk⋆w_k^\star. Choose

κ=Lμ,γ=max⁡{8κ,E},η(t)=2μ(γ+t)β(31)\kappa=\frac{L}{\mu},\qquad\gamma=\max\{8\kappa,E\},\qquad\eta^{(t)}=\frac{2}{\mu(\gamma+t)\beta} \tag*{(31)}

for FedSwitch in Algo. 1. Then, at each communication time ee, we have

E(L(wF(e),Dk))−E(L(wF⋆,Dk))≤κγ+e−1(2Bμ+μγ2E(∥wF(0)−wF⋆∥2)),(32)\mathbb{E}(\mathcal{L}(w_F^{(e)},D_k))-\mathbb{E}(\mathcal{L}(w_F^\star,D_k)) \leq\frac{\kappa}{\gamma+e-1}\left(\frac{2B}{\mu}+\frac{\mu\gamma}{2}E(\lVert w_F^{(0)}-w_F^\star\rVert^2)\right), \tag*{(32)}

where

B=1K2∑k∈[K](σkBS)2+6LΓ+(8(E−1)+(1−β2))G2.(33)B=\frac{1}{K^2}\sum_{k\in[K]}\left(\frac{\sigma_k}{BS}\right)^2+6L\Gamma+\left(8(E-1)+(1-\beta^2)\right)G^2. \tag*{(33)}

Proof. The proof is provided in App. A.

Let us comment briefly on the difference between the condition in (16) and the condition in (28). The expectation in (28) is taken over the randomness in the stochasticity of the gradient, while the (16) is evaluated over a set of gradient realizations.

By the law of large numbers, this empirical average converges almost surely to its expectation as TWT_W grows. Theorem 5.1 establishes that this expectation decays as O(1/e)O(1/e), which implies that for any tolerance ϵ>0\epsilon>0 the switching condition is triggered in finite time almost surely.

We also see that for more heterogeneous data, the algorithm switch happens later, as Γ\Gamma increases. A similar behavior is observed for the local optimization steps EE, yet performing more frequent updates increases the energy cost.

Remark 1 (Scope of the analysis): The strongly convex setting of Theorem 5.1 is adopted as a tractable analytical model, rather than as a characterization of the nonconvex neural-network objective used in Sec. VI. Its purpose is to make explicit the dependence of the optimality-gap bound on data heterogeneity and the number of local updates. Nonconvex analyses of related distributed momentum methods, such as [20], instead provide stationarity guarantees in terms of expected squared-gradient norms. Such results do not directly yield guarantees for the finite-window switching criterion in (16), which would require a separate analysis. We therefore retain the strongly convex setting for analytical interpretability and assess the switching behavior of the implemented neural classifier numerically.

On the Need for Personalized Fine-Tuning: We now investigate whether the second step of FedSwitch, i.e., fine-tuning, is truly needed. To this end, let us focus on the case of K=2K=2 and N=2N=2 for simplicity, that is, the binary CRC with two BS and two RoO. Without loss of generality, let us assume Alice is located in RoO n=1n=1, while Trudy is in n=2n=2. For this setting, we show a bound in the DET performance between FedSwitch vs. FedAvg.

For the binary CRC model, the optimal detection model is the NP test, which from [1] is attained by both FedSwitch and FedAvg. Yet, FedAvg sees a mixture of data from the two BSs, thus the NP test it reaches is suboptimal with respect to the two optimal NP tests the two BSs could achieve with enough training data. Consequently, we can assess the suboptimality of FedAvg through the NP test it reaches with respect to the optimal one. The optimal policy is characterized by a single threshold on the log-likelihood-ratio (LLR) of the distribution observed at a BS. The next theorem shows a bound between the optimal LLR test as attained by the NP test versus that attained by FedAvg as a function of the Total Variation (TV) among the hypotheses.

Theorem 5.2 (Binary CRC: DET bound of NP vs. FedAvg): Consider the binary CRC problem and let pknp_k^n be the distribution the BS kk experiences when the transmitter is in RoO Rn\mathcal{R}_n. Without loss of generality, let us assume Alice is in RoO n=1n=1, thus pk1p_k^1 are the legitimate distributions, while pk2p_k^2 are the under attack distributions. Next, fix PFA=αP_{\mathrm{FA}}=\alpha in the DET curve of (6) and let τfed(α)\tau_{\mathrm{fed}}(\alpha) and τNP(α)\tau_{\mathrm{NP}}(\alpha) the threshold for the LLR test attained by FedAvg and the NP test. Then the bound in (33) (at the top of the next page) between the corresponding MD probability holds where the MD probability of the NP test is denoted as PMD⋆P_{\mathrm{MD}}^\star and that of FedAvg as PMDfedP_{\mathrm{MD}}^{\mathrm{fed}}.

Proof. The proof is provided in Appendix B.

The bound demonstrates the intuition that the higher the mismatch between the distributions, the worse the performance. Interestingly, there is also a dependency on the thresholds τfed\tau_{\mathrm{fed}} and τNP\tau_{\mathrm{NP}} for the desired FA. This can be explained in the following way: with the target region being n=1n=1, as τfed→0\tau_{\mathrm{fed}}\to0, the acceptance region grows, and FA event never occurs. Consequently, the distributions that matter are the attacker ones pk2p_k^2. A similar reasoning for τfed→∞\tau_{\mathrm{fed}}\to\infty: the MD never occurs, as the acceptance regions shrink, thus the only distributions that matter are the legitimate ones, i.e., pk1p_k^1.

Numerical Results

To validate the effectiveness of FedSwitch, we compare it against four baselines: Global, Single, FedAvg, and FedProx, while considering all possible transmission positions of both Alice and Trudy. In the Global setting, a “virtual” single BS is assumed, with access to a dataset that aggregates the data from all BSs. This configuration represents the optimal case when the datasets are i.i.d., i.e., when the BSs are located sufficiently close to each other. Conversely, in the Single setting, each BS trains exclusively on its own local dataset, regardless of its size. This approach is expected to perform better when the BSs are geographically distant, as sharing local information may negatively impact the overall performance. Finally, in the FedAvg and FedProx settings, the BSs collaboratively train the model using the FedAvg and FedProx [16] algorithms, respectively. In particular, the FedProx algorithm is a local adaptation strategy where a penalty term is added in the local training to avoid the local model drifting too much from the

PMDfed≤τfedTV(p11,p21)+max⁡(1,τfedτNP)⋅[TV(p12,p22)+PMD∗](34)P_{\mathrm{MD}}^{\mathrm{fed}} \le\tau_{\mathrm{fed}} T V(p_1^1,p_2^1) + \max\left(1,\frac{\tau_{\mathrm{fed}}}{\tau_{\mathrm{NP}}}\right)\cdot\left[T V(p_1^2,p_2^2)+P_{\mathrm{MD}}^*\right] \tag*{(34)}

global model. Moreover, we also study the performance of FedSwitch when a fixed switching time is used, mimicking the behavior of two-stage federated learning algorithms presented in Sec. I. Doing so, we compare the performance of FedSwitch with two-stage federated learning algorithms present in the literature as well as local adaptation strategies.

The scenario we used for our simulations, depicted in Figure 2 has K=5K = 5 BSs that collaborate to classify signals coming from N=7N = 7 RoOs. The areas are square regions of size ℓS=200\ell_S = 200m, while the BSs are located at random positions, ensuring a nonuniform BS density and irregular BS placement and verify the generalization capabilities of FedSwitch. The parameter DbsD_{\mathrm{bs}} controls the average distance between them, with a default value of Dbs=563D_{\mathrm{bs}} = 563m. We recall that in this paper, we are interested in typical IoT scenarios where nodes are constrained, thus only a few channel samples are available at each BSs. By default, each BS has then available only 16 data points per class; thus, each bkb_k has only Ck=112C_k = 112 samples available for training.

Simulated scenario with BSs and RoOs

Figure 2. Simulated scenario with K=5K = 5 BSs with average distance Dbs=562D_{\mathrm{bs}} = 562m and N=7N = 7 RoOs.

The scenario we used for our simulations, depicted in Figure 2 has K=5K = 5 BSs that collaborate to classify signals coming from N=7N = 7 RoOs. The areas are square regions of size ℓS=200\ell_S = 200m, while the BSs are located at random positions, ensuring a nonuniform BS density and irregular BS placement and verify the generalization capabilities of FedSwitch. The parameter DbsD_{\mathrm{bs}} controls the average distance between them, with a default value of Dbs=563D_{\mathrm{bs}} = 563m. We recall that in this paper, we are interested in typical IoT scenarios where nodes are constrained, thus only a few channel samples are available at each BSs. By default, each BS has then available only 16 data points per class; thus, each bkb_k has only Ck=112C_k = 112 samples available for training.

Channel Model

We now describe how the channel observations are generated. Let sk∈R3s_k \in\mathbb{R}^3 denote the position of BS kk, and let p∈R3p \in\mathbb{R}^3 denote the position of the transmitter. The distance between them is dk(p)=∥sk−p∥d_k(p) = \lVert s_k - p\rVert. We adopt a clustered frequency-selective channel model based on 3GPP specifications [21]. Even under line-of-sight conditions, the received signal consists of LL propagation paths. The angle-of-arrival (AOA) of the ℓ\ell-th path is ξk,ℓ(p)=ξk(p)+Δℓ\xi_{k,\ell}(p) = \xi_k(p) + \Delta_\ell, where Δℓ∼U(−ξsp,ξsp)\Delta_\ell\sim\mathcal{U}(-\xi_{\mathrm{sp}},\xi_{\mathrm{sp}}).

We assume orthogonal-frequency-division-multiplexing (OFDM) signaling with SS subcarriers. For subcarrier s∈{1,…,S}s \in\{1,\ldots,S\}, the received signal at BS kk is

yk,s(p)=hk,s(p)x+nk,s,(35)\mathbf{y}_{k,s}(p) = \mathbf{h}_{k,s}(p)x + \mathbf{n}_{k,s}, \tag*{(35)}

where nk,s∼CN(0,σn2I)\mathbf{n}_{k,s} \sim\mathcal{CN}(0,\sigma_n^2\mathbf{I}).

The channel vector is modeled as

hk,s(p)=κκ+1hk,sLOS(p)+1κ+1hk,sNLOS(p).(36)\mathbf{h}_{k,s}(p) = \sqrt{\frac{\kappa}{\kappa+1}}\mathbf{h}_{k,s}^{\mathrm{LOS}}(p) + \sqrt{\frac{1}{\kappa+1}}\mathbf{h}_{k,s}^{\mathrm{NLOS}}(p). \tag*{(36)}

The LOS component is

hk,sLOS(p)=∑ℓ=1Lγk(p)β(ξk,ℓ(p))e−j2πsΔfτk,ℓ(p),(37)\mathbf{h}_{k,s}^{\mathrm{LOS}}(p) = \sum_{\ell=1}^{L}\gamma_k(p)\boldsymbol{\beta}(\xi_{k,\ell}(p))e^{-j2\pi s\Delta f\tau_{k,\ell}(p)}, \tag*{(37)}

where the steering vector is

β(θ)=1M[1,ejπsin⁡θ,…,ejπ(M−1)sin⁡θ]T,(38)\boldsymbol{\beta}(\theta) = \frac{1}{\sqrt{M}}\left[1,e^{j\pi\sin\theta},\ldots,e^{j\pi(M-1)\sin\theta}\right]^{\mathsf{T}}, \tag*{(38)}

and the pathloss coefficient is γk(p)=c/(4πfcdk(p))\gamma_k(p) = c/(4\pi f_c d_k(p)).

For subcarrier s∈{1,…,S}s \in\{1,\ldots,S\}, we denote the corresponding complex channel coefficient by hk,s(p)∈CMh_{k,s}(p) \in\mathbb{C}^M.

The channel-frequency-response (CFR) observed collected at BS kk is the column vector

xk(p)=[hk,1T(p),hk,2T(p),…,hk,ST(p)]T∈CMS.(39)\mathbf{x}_k(p) = \left[\mathbf{h}_{k,1}^{\mathsf{T}}(p),\mathbf{h}_{k,2}^{\mathsf{T}}(p),\ldots,\mathbf{h}_{k,S}^{\mathsf{T}}(p)\right]^{\mathsf{T}} \in\mathbb{C}^{MS}. \tag*{(39)}

Assuming unit-power pilot transmissions, i.e., E{∣x∣2}=1\mathbb{E}\{|x|^2\} = 1, the resulting signal-to-noise ratio (SNR) is

SNR=E{∥hk,s(p)∥2}E{∥nk,s∥2}.(40)\mathrm{SNR} = \frac{\mathbb{E}\{\lVert\mathbf{h}_{k,s}(p)\rVert^2\}}{\mathbb{E}\{\lVert\mathbf{n}_{k,s}\rVert^2\}}. \tag*{(40)}

The expectation is taken over subcarriers and transmitter/receiver positions. If not otherwise stated, the default parameters we used to generate the channels are the following: a SNR =10= 10 dB, ξsp=6\xi_{\mathrm{sp}} = 6 deg and cDS=5c_{\mathrm{DS}} = 5 ns, from 3GPP specifications [21].

Network Architecture

In this work, we adopt a standard ResNet-18 convolutional-neural-network (CNN) backbone [22], augmented with a two-layer fully connected classification head. The input consists of two channels corresponding to the real and imaginary components of the received SIMO-OFDM signal (2), with dimensions (2,M,S)(2,M,S). The first convolutional layer is modified to accept two input channels while preserving the original kernel size and stride. The backbone extracts a 512-dimensional feature representation, which is fed into a classifier consisting of a fully connected layer that reduces the dimensionality from 512 to 256, followed by a ReLU activation, a dropout layer with a rate of 0.5, and a final linear layer mapping to NN output classes. The use of a well-established architecture ensures reproducibility and facilitates fair comparisons across methods.

Symbol / TermDescription
sks_kBS Position: Position of BS kk in R3\mathbb{R}^3
ppTransmitter Position: TX position
dk(p)d_k(p)BS–TX Distance: Distance between BS kk and TX
hk,s(p)h_{k,s}(p)SIMO Channel: channel at bkb_k for subcarrier ss
xk(p)x_k(p)CFR: Channel matrix across all subcarriers
ξk,ℓ(p)\xi_{k,\ell}(p)AOA: AoA of path ℓ\ell at BS kk
τk,ℓ(p)\tau_{k,\ell}(p)Path Delay: Delay of path ℓ\ell
β(θ)\beta(\theta)Steering Vector: Array steering vector for AoA θ\theta
γk(p)\gamma_k(p)Pathloss Coefficient: Pathloss between TX and bkb_k
κ\kappaRician Factor: LOS-to-NLOS power ratio
LLNumber of Paths: Total propagation paths
SSNumber of Subcarriers: Total OFDM subcarriers
Δf\Delta fSubcarrier Spacing: Frequency spacing
σn2\sigma_n^2Noise Variance: Constant noise variance
nk,sn_{k,s}Noise Vector: Noise at BS kk, subcarrier ss

Table II. Summary of channel-model notation.

To make a fair comparison, grid search was employed to find the best hyperparameters across all the methods. We trained all the methods for TE=150T_{\mathrm{E}} = 150 communication rounds, using the mSGD optimizer and weight decay of 35×10−535 \times10^{-5}. We used an exponentially decaying learning rate, which is crucial for FedSwitch to not depart from the FedAvg starting point. Table III reports the other hyperparameters used for each method.

Param.GlobalFedAvgFedProxFedSwitchSingle
Initial LR10−110^{-1}10−210^{-2}10−210^{-2}10−210^{-2}10−110^{-1}
Batch size1632161616
Prox. term μ\mu––0.01––

Table III. Training hyperparameters for different methods.

Note that using a ResNet-18 may be computationally heavy for classical federated learning scenarios. However, unlike typical federated learning applications, the clients in our setting are BSs, which possess significantly stronger computational capabilities. Moreover, as shown in the next section, parameter sharing can be compressed, allowing for substantial bit savings in communication.

Classification Performance

We evaluate the classification performance of our methods by tracking the average error probability PEP_{\mathrm{E}} across BSs: the lower, the better. This metric jointly reflects both security and attacker localization performance: the more accurate the classification of transmitting areas is, the more we are able to distinguish Alice from Trudy and, when applicable, to localize the attacker.

Error Probability With Fixed Switch Time: A novelty of the paper, besides the theoretical framework, is the dynamic switching time. To show its benefit, we see from Figure 3a the performance of FedSwitch compared to a fixed switch approach. We notice that the dynamic switch, happening around the 15th communication round, is beneficial for training and attains the lowest PEP_{\mathrm{E}}.

Learning performance and probability of error under different system conditions

Figure 3. Learning performance and probability of error under different system conditions.

Error Probability vs. SNR: From Figure 3c, we observe that increasing SNR consistently improves the overall performance across all methods, as expected. In this setting, FedSwitch achieves the best performance among all considered approaches. We also note that, despite the limited number of training samples, FedAvg and FedProx reach performance comparable to the Global model at high SNR values, showing the effectiveness of federated training.

Error Probability vs. BSs Distance: Figure 3b shows the error probability for different BSs’ average distance DbsD_{\mathrm{bs}}. We notice that the performance of Global, FedAvg, and FedProx collapses as distance increases, as the data across BSs becomes more non-i.i.d. This high data-heterogeneity is not captured by FedProx, which underperforms with respect to FedSwitch that, thanks to the adaptive finite phase, is more robust across the methods and achieves the best overall performance.

Error Probability vs. Number of Samples: Figure 4 reports the average error probability PEP_{\mathrm{E}} as a function of the total number of training samples CkC_k, same for all BSs. For small sample sizes (e.g., Ck=28C_k = 28 corresponds to 4 samples per class), the performance is primarily limited by data scarcity; in this regime, Global and FedSwitch achieve the best results, while the Single approach performs poorly due to insufficient local data. As the number of samples increases, the bottleneck shifts from data scarcity to data heterogeneity. Although overall performance improves, the Single approach becomes increasingly competitive and eventually outperforms the single-optimum methods (i.e., Global and FedAvg). Across all regimes, FedSwitch consistently achieves the best (or almost best) performance. In the subsequent simulations, we use Ck=112C_k = 112 samples for training, as in this regime, we have data scarcity yet enough data to have information sharing across BSs.

Probability of error $P_{\mathrm{E}}$ vs. number of training samples $C_k$, equal for all BSs

Figure 4. Probability of error PEP_{\mathrm{E}} vs. number of training samples CkC_k, equal for all BSs.

Learning curves vs. Compression Factor RkR_k Figure 5 shows the learning curves of FedSwitch under different compression factors RkR_k. To obtain these curves, we applied top-kk sparsification, where for each layer ℓ\ell, only the local weights satisfying

Learning Curves vs. compression factor $R_k$

Figure 5. Learning Curves vs. compression factor RkR_k.

∣wℓ∣≥PRk(∣wℓ∣)(41)|w_\ell| \geq P_{R_k}(|w_\ell|) \tag*{(41)}

are retained and transmitted to the central server. Here, PRk(⋅)P_{R_k}(\cdot) denotes the RkR_k-th empirical quantile of the absolute weights in layer ℓ\ell. In other words, we transmit only the RkR_k percentage of top weights in terms of magnitude, and the remaining (1−Rk)(1 - R_k) percent of the weights is masked to zero.

During the aggregation phase, the central server computes the element-wise average of these sparsified local models. Because each client independently zeroes out different parameters based on their local training, the global model update is formed by averaging only the most significant parameters of the BSs. This mechanism drastically reduces the communication bandwidth required per round while preserving the most salient features necessary for convergence. As Figure 5 shows, FedSwitch maintains strong robustness even under significant parameter compression. This behavior suggests that the learned representations and optimization dynamics of FedSwitch are intrinsically resilient to perturbations and reduced numerical precision. We also observe that the compressed model with Rk=0.3R_k = 0.3 can learn slightly faster. This is because having fewer weights effectively results in lighter models, which require fewer iterations to converge. However, at convergence, the maximum performance remains lower than in the no-compression case Rk=1R_k = 1.

Learning curves with fixed switch times versus a dynamic switching policy

Figure 3a. Learning curves with fixed switch times versus a dynamic switching policy.

Probability of error $P_{\mathrm{E}}$ vs. BSs distance $D_{\mathrm{bs}}$

Figure 3b. Probability of error PEP_{\mathrm{E}} vs. BSs distance DbsD_{\mathrm{bs}}.

Probability of error vs. SNR

Figure 3c. Probability of error vs. SNR.

Security Performance

In this section, we evaluate security performance in terms of average MD P‾MD\overline{P}_{\mathrm{MD}} and FA P‾FA\overline{P}_{\mathrm{FA}} probabilities defined in Sec. II-A via DET curves, which show the tradeoff between the two. In fact, the greater the FA, the lower the MD, as expected. From Figure 6b, we observe that the Global, FedAvg, and FedProx approaches are negatively impacted by data heterogeneity as Dbs=563mD_{\mathrm{bs}} = 563\text{m}, which degrades detection performance. The Single approach struggles as well due to the limited amount of local training data, which restricts its ability to generalize. In contrast, FedSwitch consistently achieves best performance, benefiting from the joint exploitation of local and global information, which effectively mitigates the effects of heterogeneity while improving the MD/FA trade-off. In Figure 6a, we show the DET computed at a different distance Dbs=220 mD_{\mathrm{bs}} = 220\text{ m}. Comparing it with Figure 6b, we observe that the performance gap between the Single and the aggregated algorithms is reversed. This behavior arises because, when the BSs are closer to the transmitter, the observed data become more i.i.d., which improves the effectiveness of information sharing across BSs. Notably, FedSwitch achieves the best performance even in this setting.

Evaluation of the proposed detection method and theoretical bound

Figure 6. (a) DET curve with average BSs distance Dbs=220D_{\mathrm{bs}} = 220 m. (b) DET curve with average BSs distance Dbs=563D_{\mathrm{bs}} = 563 m. (c) Verification of bound (33) under Gaussian distribution mismatch for σ=1\sigma= 1. The solid line has σG=2\sigma_{\mathrm{G}} = 2 while the dashed line has σG=1.1\sigma_{\mathrm{G}} = 1.1. Fig. 6: Evaluation of the proposed detection method and theoretical bound.

Theoretical Bound Verification: To validate the tightness and correctness of the theoretical performance bound derived in Theorem 5.2, we simulate a binary hypothesis testing problem using synthetic Gaussian data, for which the variational distances are computable in closed form as the underlying statistic distributions are known. We show results for b1b_1 assuming Alice is in region n=1n = 1 without loss of generality. The LLR at b1b_1 reaches is the pooled test

ΛG=p11+p12p21+p22=p1p2,(42)\Lambda_{\mathrm{G}} = \frac{p_1^1 + p_1^2}{p_2^1 + p_2^2} = \frac{p^1}{p^2}, \tag*{(42)}

as shown in Appendix B, which contains the mixture of the distributions. The optimal NP test is the local one, defined as

ΛL=p11p21.(43)\Lambda_{\mathrm{L}} = \frac{p_1^1}{p_2^1}. \tag*{(43)}

Assuming, as an example, the same under attack distributions we have that p12=p2p_1^2 = p^2 for both BSs, while we model the legitimate distributions as p11∼N(0,σ2)p_1^1 \sim\mathcal{N}(0,\sigma^2) and p12∼N(0,σG2)p_1^2 \sim\mathcal{N}(0,\sigma_G^2). This is an example where the BSs have the same under attack distributions while the legitimate ones are Gaussians with different variances. As shown in Figure 6c, we have an empirical verification of the proposed bound in (34) under Gaussian distribution mismatch. In the simulation, we used σ=1\sigma= 1, the solid line has σG=2\sigma_{\mathrm{G}} = 2 while the dashed line has σG=1.1\sigma_{\mathrm{G}} = 1.1. Across all simulated target P‾FA\overline{P}_{\mathrm{FA}} values, the empirically observed MD probability P‾MD\overline{P}_{\mathrm{MD}} attained using (41) follows the profile of the optimal curve PMD⋆P_{\mathrm{MD}}^{\star} and remains strictly below the analytical bound, confirming its validity. Moreover, we see that the greater the mismatch in the distributions, the worse the performance, as expected and correctly captured by the bound.

Conclusions

In this paper, we presented FedSwitch, a novel FL framework designed to mitigate the challenges of non-IID datasets through adaptive local fine-tuning. By monitoring the training loss, FedSwitch dynamically determines the optimal switching time between the federated aggregation and local fine-tuning phases. We provided a theoretical analysis demonstrating the structural limitations of FedAvg under non-IID conditions and proved how FedSwitch successfully mitigates them. Numerical evaluations utilizing realistic, 3GPP-compliant channel models confirm that FedSwitch outperforms both state-of-the-art federated and conventional non-federated baselines in terms of error probability.

Proof of Theorem 5.1

Let us define {t}\{t\} as the index indicating the tt-th step of mSGD, and IE⊆{t}I_E \subseteq\{t\} as the steps where a communication round occurs, which happens every EE gradient steps. Thus we have that at step tt-th step, at the BS kk the model is

wk(t+1)={wk(t)−η(t)mk(t),if t∉IE1K∑k∈[K]wk(t)−η(t)mk(t),otherwise,(44)w_k^{(t+1)} = \begin{cases} w_k^{(t)}-\eta^{(t)}m_k^{(t)}, & \text{if } t\notin I_E \\ \frac{1}{K}\sum_{k\in[K]}w_k^{(t)}-\eta^{(t)}m_k^{(t)}, & \text{otherwise}, \end{cases} \tag*{(44)}

where

mk(t)=βgk(t)+(1−β)mk(t−1),(45)m_k^{(t)}=\beta g_k^{(t)}+(1-\beta)m_k^{(t-1)}, \tag*{(45)}

is the moment update. Following the standard analysis of mSGD convergence, we define

m(t)=1K∑k∈[K]mtk(46)m^{(t)}=\frac{1}{K}\sum_{k\in[K]}m_t^k \tag*{(46)}
g(t)=1K∑k∈[K]∇L(wk(t);H(k,i))(47)g^{(t)}=\frac{1}{K}\sum_{k\in[K]}\nabla\mathcal{L}(w_k^{(t)};H^{(k,i)}) \tag*{(47)}
w(t)=1K∑k∈[K]wk(t)(48)w^{(t)}=\frac{1}{K}\sum_{k\in[K]}w_k^{(t)} \tag*{(48)}

With the definitions in (45), if t∈IEt\in I_E, we unfold w(t+1)w^{(t+1)} as

E(∥w(t+1)−wF⋆∥2)=E(∥w(t)−η(t)m(t)−wF⋆∥2)=E(∥w(t)−η(t)(βg(t)+(1−β)m(t−1))−wF⋆∥2)≤E(∥w(t)−η(t)βg(t)−wF⋆∥2)+E(∥η(t)(1−β)m(t−1)∥2)(49)\begin{aligned} \mathbb{E}(\lVert w^{(t+1)}-w_{\mathrm{F}}^\star\rVert^2) &=\mathbb{E}(\lVert w^{(t)}-\eta^{(t)}m^{(t)}-w_{\mathrm{F}}^\star\rVert^2)\\ &=\mathbb{E}(\lVert w^{(t)}-\eta^{(t)}(\beta g^{(t)}+(1-\beta)m^{(t-1)})-w_{\mathrm{F}}^\star\rVert^2)\\ &\leq\mathbb{E}(\lVert w^{(t)}-\eta^{(t)}\beta g^{(t)}-w_{\mathrm{F}}^\star\rVert^2) +\mathbb{E}(\lVert\eta^{(t)}(1-\beta)m^{(t-1)}\rVert^2) \tag*{(49)} \end{aligned}

Let us define η~(t)=βη(t)\widetilde{\eta}^{(t)}=\beta\eta^{(t)}: if η~(t)≤14L\widetilde{\eta}^{(t)}\leq\frac{1}{4L}. Assuming also η~(t)\widetilde{\eta}^{(t)} is non-increasing and η~(t)≤2η~(t+E)\widetilde{\eta}^{(t)}\leq2\widetilde{\eta}^{(t+E)}, for all t≥0t\geq0, the inequality A is bounded from [19], recalling that batch-training reduces the variance of the stochastic gradients by a factor of Bs2B_s^2, as

A≤(1−η~(t)μ)E∥w(t)−wF⋆∥2+(η~(t))21K2∑k=1Nσk2+6L(η~(t))2Γ+8(η~(t))2(E−1)2G2(50)\begin{aligned} A&\leq(1-\widetilde{\eta}^{(t)}\mu)\mathbb{E}\lVert w^{(t)}-w_{\mathrm{F}}^\star\rVert^2+(\widetilde{\eta}^{(t)})^2\frac{1}{K^2}\sum_{k=1}^{N}\sigma_k^2\\ &\quad+6L(\widetilde{\eta}^{(t)})^2\Gamma+8(\widetilde{\eta}^{(t)})^2(E-1)^2G^2 \tag*{(50)} \end{aligned}

The quantity C in (46) is bounded using the next lemma, Lem. 1 as

C≤(η(t))2(1−β)2G2.(51)C\leq(\eta^{(t)})^2(1-\beta)^2G^2. \tag*{(51)}

Lemma 1: Under the conditions in the statement of Th. 5.1, it holds that

E(∥η(t)(1−β)m(t−1)∥2)≤(η(t))2(1−β)2G2.(52)\mathbb{E}(\lVert\eta^{(t)}(1-\beta)m^{(t-1)}\rVert^2)\leq(\eta^{(t)})^2(1-\beta)^2G^2. \tag*{(52)}

Proof: The proof is by induction. For t≤0t\leq0, the update m(t)m^{(t)} is zero. For t=1t=1 we have that m1=βg1m_1=\beta g_1, and from Assumption 4, its expected value is bounded by β2G2\beta^2G^2. Let us assume (48) is valid for step t−1t-1, we now demonstrate this implies it is valid for step tt.

Assumption 4, its expected value is bounded by β2G2\beta^2G^2. Let us assume (48) is valid for step t−1t-1, we now demonstrate this implies it is valid for step tt.

E(∥η(t)(1−β)m(t−1)∥2)=(η(t))2(1−β)2E(∥m(t−1)∥2)≤(η(t))2(1−β)2E(∥βg(t−1)+(1−β)m(t−2)∥2)≤(η(t))2(1−β)2[E(∥βg(t−1)∥2)+E(∥(1−β)m(t−2)∥2)]≤(η(t))2(1−β)2[β2G2+(1−β)2G2]≤(η(t))2(1−β)2G2.(53)\begin{aligned} \mathbb{E}(\lVert\eta^{(t)}(1-\beta)m^{(t-1)}\rVert^2) &=(\eta^{(t)})^2(1-\beta)^2\mathbb{E}(\lVert m^{(t-1)}\rVert^2)\\ &\leq(\eta^{(t)})^2(1-\beta)^2\mathbb{E}(\lVert\beta g^{(t-1)}+(1-\beta)m^{(t-2)}\rVert^2)\\ &\leq(\eta^{(t)})^2(1-\beta)^2\left[\mathbb{E}(\lVert\beta g^{(t-1)}\rVert^2)+\mathbb{E}(\lVert(1-\beta)m^{(t-2)}\rVert^2)\right]\\ &\leq(\eta^{(t)})^2(1-\beta)^2\left[\beta^2G^2+(1-\beta)^2G^2\right]\\ &\leq(\eta^{(t)})^2(1-\beta)^2G^2. \tag*{(53)} \end{aligned}

Using the definition of BB in (32) and combining (47) and (48), we have that (46) can be written as

E(∥w(t+1)−wF⋆∥2)≤(1−η~(t)μ)E(∥w(t)−wF⋆∥2)+(η~(t))2B,(54)\mathbb{E}(\lVert w^{(t+1)}-w_{\mathrm{F}}^\star\rVert^2) \leq(1-\widetilde{\eta}^{(t)}\mu)\mathbb{E}(\lVert w^{(t)}-w_{\mathrm{F}}^\star\rVert^2)+(\widetilde{\eta}^{(t)})^2B, \tag*{(54)}

which has the same form as in [19]. Consequently, with κ=Lμ\kappa=\frac{L}{\mu}, γ=max⁡{8κ,E}\gamma=\max\{8\kappa,E\} by fixing η~(t)=2μ(γ+t)\widetilde{\eta}^{(t)}=\frac{2}{\mu(\gamma+t)} we attain from [19] that at each communication time ee, we have our theorem (31).

Proof of Theorem 5.2

The data distribution observed over the datasets of the BS k={1,2}k=\{1,2\} is

Dk=12(pk1+pk2)(55)D_k=\frac{1}{2}(p_k^1+p_k^2) \tag*{(55)}

Let wF⋆w_{\mathrm{F}}^\star and wG⋆w_{\mathrm{G}}^\star be the optimal federated and global models, where the global model is trained on the union of the BSs data. The optimal FedAvg coincides with global training, in fact

wF⋆=arg⁡min⁡w 1K∑k∈[K]L(Dk;w)=arg⁡min⁡w L(⋃k∈[K]Dk;w)=wG⋆.(56)\begin{aligned} w_{\mathrm{F}}^\star=\underset{w}{\arg\min}\ \frac{1}{K}\sum_{k\in[K]}\mathcal{L}(D_k;w) \\ &=\underset{w}{\arg\min}\ \mathcal{L}\left(\bigcup_{k\in[K]}D_k;w\right)=w_{\mathrm{G}}^\star. \tag*{(56)} \end{aligned}

Under the assumptions in Sec. V we have that FedAvg achieves the optimal LLR test Λfed\Lambda_{\mathrm{fed}} over the global data distribution in (53), that is

ΛG=p11+p12p21+p22=p1p2.(57)\Lambda_{\mathrm{G}}=\frac{p_1^1+p_1^2}{p_2^1+p_2^2}=\frac{p^1}{p^2}. \tag*{(57)}

For a given FA, let us define the MD probability PMDP_{\mathrm{MD}}. Let δfed\delta_{\mathrm{fed}} be the acceptance region of the null hypothesis in the global model. On the other hand, the NP test attains the optimal test at each BS as ΛNP,k=pk1/pk2\Lambda_{\mathrm{NP},k}=p_k^1/p_k^2. Accordingly, let δNP,k\delta_{\mathrm{NP},k} be the acceptance region of the hypothesis n=1n=1 BS kk.

In the following, let’s focus on the case k=1k=1, that is on the performance of the BS 1. The operation is symmetric for the case k=2k=2. The MD probabilities in the global model and the personalized models are obtained as

PMDfed=P(x∈δfed∣x∼p12)(58)P_{\mathrm{MD}}^{\mathrm{fed}}=P(x\in\delta_{\mathrm{fed}}\mid x\sim p_1^2) \tag*{(58)}
PMD⋆=P(x∈δNP∣x∼p12),(59)P_{\mathrm{MD}}^\star=P(x\in\delta_{\mathrm{NP}}\mid x\sim p_1^2), \tag*{(59)}

i.e., the probability that samples belonging to RoO 2 for BS 1 are classified as coming from RoO 1.

Bounding the Performance Gap via Total Variation: In general, having a constraint on the FA and minimizing the MD is equivalent to minimizing the unconstrained Lagrangian objective (with k={fed,NP}k = \{\mathrm{fed}, \mathrm{NP}\})

Q(δk,τ~k)=τ~kPMD(δk)+PFA(δk),(60)Q(\delta_k,\tilde{\tau}_k)=\tilde{\tau}_kP_{\mathrm{MD}}(\delta_k)+P_{\mathrm{FA}}(\delta_k), \tag*{(60)}

where δk\delta_k is the decision region under the hypothesis H0H_0, and τ~k=1τk\tilde{\tau}_k=\frac{1}{\tau_k} is the reciprocal of the threshold of the NP test for a desired FA τk\tau_k. Thus, both fed and NP minimize (56) according to their data distributions, thus they will end up with different regions and thresholds to match the FA and then minimize the MD.

Note that we can compactly write (56) recalling that the distributions that client 1 experiences are p12(x)p_1^2(x) and p11(x)p_1^1(x) as

Q(δk,τ~k)=1+∫δkτ~kp12(x)−p11(x).(61)Q(\delta_k,\tilde{\tau}_k)=1+\int_{\delta_k}\tilde{\tau}_k p_1^2(x)-p_1^1(x). \tag*{(61)}

We want to compute the optimality gap between the performance of fed and NP Δ=PMD(δfed)−PMD(δNP)\Delta=P_{\mathrm{MD}}(\delta_{\mathrm{fed}})-P_{\mathrm{MD}}(\delta_{\mathrm{NP}}). Let fNP(x)=p11(x)−τ~NPp12(x)f_{\mathrm{NP}}(x)=p_1^1(x)-\tilde{\tau}_{\mathrm{NP}}p_1^2(x) be the optimal decision function for the distributions (p11(x),p12(x))(p_1^1(x),p_1^2(x)) which in fact induces the region that minimizes (57) as it is designed for the ”correct distributions”

δNP={x:p11(x)p12(x)≥τ~NP⟺fNP(x)≥0}(62)\delta_{\mathrm{NP}}=\left\{x:\frac{p_1^1(x)}{p_1^2(x)}\geq\tilde{\tau}_{\mathrm{NP}}\Longleftrightarrow f_{\mathrm{NP}}(x)\geq0\right\} \tag*{(62)}

Similarly, let us define ffed(x)=p11(x)−τ~fedp2(x)f_{\mathrm{fed}}(x)=p_1^1(x)-\tilde{\tau}_{\mathrm{fed}}p^2(x) as the federated decision function which induces the region

δfed={x:p11(x)p2(x)≥τ~fed⟺ffed(x)≥0}.(63)\delta_{\mathrm{fed}}=\left\{x:\frac{p_1^1(x)}{p^2(x)}\geq\tilde{\tau}_{\mathrm{fed}}\Longleftrightarrow f_{\mathrm{fed}}(x)\geq0\right\}. \tag*{(63)}

1. Decomposition via Symmetric Difference: Let us focus first on the difference between the objectives of the models, recalling that by hypothesis they induce the same FA, thus (PFA(δfed)=PFA(δNP)(P_{\mathrm{FA}}(\delta_{\mathrm{fed}})=P_{\mathrm{FA}}(\delta_{\mathrm{NP}}) which is

Q(δfed,τ~fed)−Q(δNP,τ~NP)=τ~fedΔ+(τ~fed−τ~NP)PMD∗.(64)Q(\delta_{\mathrm{fed}},\tilde{\tau}_{\mathrm{fed}})-Q(\delta_{\mathrm{NP}},\tilde{\tau}_{\mathrm{NP}})=\tilde{\tau}_{\mathrm{fed}}\Delta+(\tilde{\tau}_{\mathrm{fed}}-\tilde{\tau}_{\mathrm{NP}})P_{\mathrm{MD}}^*. \tag*{(64)}

We proceed now with two cases:

Case 1: τ~fed≤τ~NP\tilde{\tau}_{\mathrm{fed}}\leq\tilde{\tau}_{\mathrm{NP}}: We see from (57) that we can bound

Q(δfed,τ~fed)−Q(δNP,τ~NP)≤Q(δfed,τ~NP)−Q(δNP,τ~NP).(65)Q(\delta_{\mathrm{fed}},\tilde{\tau}_{\mathrm{fed}})-Q(\delta_{\mathrm{NP}},\tilde{\tau}_{\mathrm{NP}})\leq Q(\delta_{\mathrm{fed}},\tilde{\tau}_{\mathrm{NP}})-Q(\delta_{\mathrm{NP}},\tilde{\tau}_{\mathrm{NP}}). \tag*{(65)}

As they have the same integrand, the difference above depends only on the integration regions. Let us define S=S1∪S2S=S_1\cup S_2 where S1=(δNP∖δfed)S_1=(\delta_{\mathrm{NP}}\setminus\delta_{\mathrm{fed}}) and S2=(δfed∖δNP)S_2=(\delta_{\mathrm{fed}}\setminus\delta_{\mathrm{NP}}) as the region where the decision regions of δNP\delta_{\mathrm{NP}} and δfed\delta_{\mathrm{fed}} are different, as shown in Figure 7. Then we can write

Decision regions of federated and NP tests

Figure 7. Decision regions of federated and NP tests.

Q(δfed,τ~NP)−Q(δNP,τ~NP)=(66)Q(\delta_{\mathrm{fed}},\tilde{\tau}_{\mathrm{NP}})-Q(\delta_{\mathrm{NP}},\tilde{\tau}_{\mathrm{NP}})= \tag*{(66)}
=∫S1fNP(x) dx+∫S2(−fNP(x)) dx=∫S∣fNP(x)∣ dx,(67)=\int_{S_1}f_{\mathrm{NP}}(x)\,\mathrm{d}x+\int_{S_2}(-f_{\mathrm{NP}}(x))\,\mathrm{d}x=\int_S\lvert f_{\mathrm{NP}}(x)\rvert\,\mathrm{d}x, \tag*{(67)}

as both terms are non-negative because fNP(x)≥0f_{\mathrm{NP}}(x)\geq0 inside δNP\delta_{\mathrm{NP}} (first integral) and fNP(x)<0f_{\mathrm{NP}}(x)<0 outside it (second integral).

2. The Magnitude Inequality: On the disagreement region SS, the functions fNP(x)f_{\mathrm{NP}}(x) and ffed(x)f_{\mathrm{fed}}(x) have opposite signs. For any two real numbers a,ba,b with opposite signs, it holds that ∣a∣≤∣a−b∣\lvert a\rvert\leq\lvert a-b\rvert. Applying this point-wise:

∣fNP(x)∣≤∣fNP(x)−ffed(x)∣,∀x∈S.(68)\lvert f_{\mathrm{NP}}(x)\rvert\leq\lvert f_{\mathrm{NP}}(x)-f_{\mathrm{fed}}(x)\rvert,\qquad\forall x\in S. \tag*{(68)}

Thus, from (60) and (64), we have

τ~fedΔ+(τ~fed−τ~NP)PMD∗≤∫S∣fNP(x)−ffed(x)∣ dx.(69)\tilde{\tau}_{\mathrm{fed}}\Delta+(\tilde{\tau}_{\mathrm{fed}}-\tilde{\tau}_{\mathrm{NP}})P_{\mathrm{MD}}^*\leq\int_S\lvert f_{\mathrm{NP}}(x)-f_{\mathrm{fed}}(x)\rvert\,\mathrm{d}x. \tag*{(69)}

By applying the triangle inequality, we have

∣fNP(x)−ffed(x)∣=∣p11−p1+τ~NP(p2−p12)∣≤∣p11−p1∣+τ~NP∣p2−p12∣.(70)\begin{aligned} \lvert f_{\mathrm{NP}}(x)-f_{\mathrm{fed}}(x)\rvert &=\lvert p_1^1-p^1+\tilde{\tau}_{\mathrm{NP}}(p^2-p_1^2)\rvert\\ &\leq\lvert p_1^1-p^1\rvert+\tilde{\tau}_{\mathrm{NP}}\lvert p^2-p_1^2\rvert. \tag*{(70)} \end{aligned}

3. Relation to Total Variation (TV) Distance: Finally, we have, by definition of TV distance,

τ~fedΔ+(τ~fed−τ~NP)PMD∗(71)\tilde{\tau}_{\mathrm{fed}}\Delta+(\tilde{\tau}_{\mathrm{fed}}-\tilde{\tau}_{\mathrm{NP}})P_{\mathrm{MD}}^* \tag*{(71)}
≤∫S∣p11−p1∣ dx+τ~NP∫S∣p12−p2∣ dx=2TV(p11,p1)+2τ~NPTV(p12,p2).(72)\leq\int_S\lvert p_1^1-p^1\rvert\,\mathrm{d}x+\tilde{\tau}_{\mathrm{NP}}\int_S\lvert p_1^2-p^2\rvert\,\mathrm{d}x =2TV(p_1^1,p^1)+2\tilde{\tau}_{\mathrm{NP}}TV(p_1^2,p^2). \tag*{(72)}

Recalling that p1=12(p11+p12)p^1=\frac{1}{2}(p_1^1+p_1^2) and p2=12(p12+p22)p^2=\frac{1}{2}(p_1^2+p_2^2) are equal-weight mixtures, we can write the direct expansion of the TV definition, TV(p11,p1)=12TV(p11,p12)TV(p_1^1,p^1)=\frac{1}{2}TV(p_1^1,p_1^2) and TV(p12,p2)=12TV(p12,p22)TV(p_1^2,p^2)=\frac{1}{2}TV(p_1^2,p_2^2) we attain

PMD(δfed)≤1τ~fedTV(p11,p12)+τ~NPτ~fedTV(p11,p22)+(1+τ~NP−τ~fedτ~fed)PMD∗.(73)P_{\mathrm{MD}}(\delta_{\mathrm{fed}})\leq\frac{1}{\tilde{\tau}_{\mathrm{fed}}}TV(p_1^1,p_1^2)+\frac{\tilde{\tau}_{\mathrm{NP}}}{\tilde{\tau}_{\mathrm{fed}}}TV(p_1^1,p_2^2)+\left(1+\frac{\tilde{\tau}_{\mathrm{NP}}-\tilde{\tau}_{\mathrm{fed}}}{\tilde{\tau}_{\mathrm{fed}}}\right)P_{\mathrm{MD}}^*. \tag*{(73)}

Case 2: τ~fed≥τ~NP\tilde{\tau}_{\mathrm{fed}}\geq\tilde{\tau}_{\mathrm{NP}}:

Q(δfed,τ~fed)−Q(δNP,τ~NP)≤Q(δfed,τ~fed)−Q(δNP,τ~fed).(74)Q(\delta_{\mathrm{fed}},\tilde{\tau}_{\mathrm{fed}})-Q(\delta_{\mathrm{NP}},\tilde{\tau}_{\mathrm{NP}})\leq Q(\delta_{\mathrm{fed}},\tilde{\tau}_{\mathrm{fed}})-Q(\delta_{\mathrm{NP}},\tilde{\tau}_{\mathrm{fed}}). \tag*{(74)}

and with a similar reasoning, considering that now (τ~fed−τ~NP)PMD∗≥0(\tilde{\tau}_{\mathrm{fed}}-\tilde{\tau}_{\mathrm{NP}})P_{\mathrm{MD}}^*\geq0, thus it can be discarded, we attain the bound

PMD(δfed)≤2τ~fedTV(p11,p1)+2TV(p12,p2)+PMD∗=1τ~fedTV(p11,p12)+TV(p12,p22)+PMD∗.(75)\begin{aligned} P_{\mathrm{MD}}(\delta_{\mathrm{fed}})\leq\frac{2}{\tilde{\tau}_{\mathrm{fed}}}TV(p_1^1,p^1)+2TV(p_1^2,p^2)+P_{\mathrm{MD}}^* \\ &=\frac{1}{\tilde{\tau}_{\mathrm{fed}}}TV(p_1^1,p_1^2)+TV(p_1^2,p_2^2)+P_{\mathrm{MD}}^*. \tag*{(75)} \end{aligned}

4. Final Performance Bound: Combining both cases, and recalling that τk=1τ~k\tau_k=\frac{1}{\tilde{\tau}_k}, k={fed,NP}k=\{\mathrm{fed},\mathrm{NP}\}, we attain (33).

References

  1. [1]A. Brighente, F. Formaggio, G. M. Di Nunzio, and S. Tomasin, “Machine learning for in-region location verification in wireless networks,” IEEE J. on Sel. Areas in Commun., vol. 37, no. 11, pp. 2490–2502, 2019.arxiv.org/abs/1812.07853
  2. [2]J. Guo, J. W.-H. Ho, Y. Hou, and Z. Li, “FedPos: A federated transfer learning framework for csi-based wi-fi indoor positioning,” IEEE Syst. J., vol. 17, no. 3, pp. 4579–4590, 2023.DOI
  3. [3]Y. Ebiabi, W. Njima, and E. M. Amhoud, “FeMLoc: Federated meta-learning for adaptive wireless indoor localization tasks in iot networks,” IEEE Internet of Things J., vol. 11, no. 22, pp. 36991–37007, 2024.
  4. [4]O. Tasbaz, B. Farahani, and V. Moghtadaiee, “Feature fusion federated learning for privacy-aware indoor localization,” Peer-to-Peer Net. and Appl., vol. 17, no. 5, pp. 2781–2795, 2024.DOI
  5. [5]G. Cheng, K. Chadha, and J. Duchi, “Fine-tuning is fine in federated learning,” arXiv preprint arXiv:2108.07313, vol. 3, 2021.
  6. [6]S. Chen, Y. Ju, H. Dalal, Z. Zhu, and A. Khisti, “Robust federated finetuning of foundation models via alternating minimization of lora,” arXiv preprint arXiv:2409.02346, 2024.arxiv.org/abs/2409.02346
  7. [7]Z. Peng, X. Fan, Y. Chen, Z. Wang, S. Pan, C. Wen, R. Zhang, and C. Wang, “FedPFT: Federated proxy fine-tuning of foundation models,” arXiv preprint arXiv:2404.11536, 2024.arxiv.org/abs/2404.11536
  8. [8]J. Xu, Z. Chen, T. Q. Quek, and K. F. E. Chong, “FedCorr: Multi-stage federated learning for label noise correction,” in Proc. of the IEEE/CVF Conf. Comput. Vis. Pattern Recognit., 2022, pp. 10 184–10 193.arxiv.org/abs/2204.04677
  9. [9]L. Shi, Y. Gao, C. Chen, S. Huang, J. Zhao, X. Hu, and V. C. M. Leung, “FedMAR: A privacy-preserving and robust server-side multistage federated learning,” IEEE Internet of Things J., vol. 12, no. 22, pp. 47 288–47 306, 2025.DOI
  10. [10]H. X. Wang, K. Chen, and L. Shou, “FedBFPT: An efficient federated learning framework for bert further pre-training,” in Proc. 32nd Int. Joint Conf. Artif. Intell., 2023, pp. 4344–4352.DOI
  11. [11]D. Liu and T. Miller, “Federated pretraining and fine tuning of bert using clinical notes from multiple silos,” arXiv preprint arXiv:2002.08562, 2020.
  12. [12]S. Zhu, C. Qiu, and G. Sun, “FederFT: Improving federated learning through feature-enriched regularization and post-aggregation fine-tuning,” Knowledge-Based Syst., vol. 337, p. 115425, 2026.DOI
  13. [13]H. Chen, Y. Zhang, D. Krompass, J. Gu, and V. Tresp, “FedDAT: An approach for foundation model finetuning in multi-modal heterogeneous federated learning,” in Proc. of the AAAI Conf. on Artificial Intelligence, vol. 38, no. 10, 2024, pp. 11 285–11 293.
  14. [14]S. Wang, N. Li, S. Xia, X. Tao, and H. Lu, “Collaborative physical layer authentication in internet of things based on federated learning,” in 2021 IEEE 32nd Annual Int. Symp. on Personal, Indoor and Mobile Radio Commun. (PIMRC). IEEE, 2021, pp. 714–719.DOI
  15. [15]S. Halder and T. Newe, “Radio fingerprinting for anomaly detection using federated learning in lora-enabled industrial internet of things,” Future generation computer Syst., vol. 143, pp. 322–336, 2023.
  16. [16]N. Nagia, M. T. Rahman, and S. Valaee, “Federated learning for wifi fingerprinting,” in ICC 2022-IEEE Int. Conf. on Commun. IEEE, 2022, pp. 4968–4973.
  17. [17]T. Li, A. K. Sahu, M. Zaheer, M. Sanjabi, A. Talwalkar, and V. Smith, “Federated optimization in heterogeneous networks,” Proc. of Mach. Learn. and Syst., vol. 2, pp. 429–450, 2020.
  18. [18]A. Yazdinejad, R. M. Parizi, A. Dehghantanha, and H. Karimipour, “Federated learning for drone authentication,” Ad Hoc Networks, vol. 120, p. 102574, 2021.DOI
  19. [19]X. Li, K. Huang, W. Yang, S. Wang, and Z. Zhang, “On the convergence of fedavg on non-iid data,” arXiv preprint arXiv:1907.02189, 2019.arxiv.org/abs/1907.02189
  20. [20]H. Yu, R. Jin, and S. Yang, “On the linear speedup analysis of communication efficient momentum SGD for distributed non-convex optimization,” in Proceedings of the 36th International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, vol. 97. PMLR, 2019, pp. 7184–7193. [Online]. Available: https://proceedings.mlr.press/v97/yu19d.htmlarxiv.org/abs/1905.03817

Paper details

vlnc:W_tpvzrcm9
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Engineering

Not recorded for this paper

View statement
Looking for related papers…
Contents