Manuscript Offprint
arXiv:2611.09470Consensus-Constrained Dual-Federated Optimization with Client-Side Dynamic Weighting for Distributed Android Device Threat Defense
Mohammad Mashreghi, Mohammad Hossein Badiei, and Md. Jalil Piran (Senior Member, IEEE)
Abstract—Smartphones, smart-home hubs, and wearables are increasingly exposed to sophisticated Android malware, while centralized threat-detection pipelines raise privacy and scalability concerns. Federated learning (FL) enables collaborative model training without collecting raw client data, but partial participation and variation in local model quality can destabilize global optimization. In this article, we propose DW-FedADMM, a federated optimization framework that combines primal-dual coordination with performance-dependent client-side weighting. The dynamic coefficient modulates each participating client's local state before the augmented-Lagrangian update, while the dual variables regulate disagreement between local and global model states. We evaluate DW-FedADMM on three Android malware benchmarks, namely Drebin, Malgenome, and TUANDROMD, with 5, 10, and 15 clients holding IID data shards, partial client participation, and communication budgets of 5 and 10 rounds. Each configuration is repeated with ten random seeds. DW-FedADMM obtains the highest seed-averaged accuracy on Drebin (97.64% ± 0.20%) and the best mean accuracy in 9 of the 18 dataset-client-round configurations, including 7 of the 9 configurations with a 10-round budget. Pooled over all configurations, it reaches 95.42% accuracy, 94.62% F1-score, 96.06% precision, and 99.45% AUC, compared with 95.32%, 94.51%, 95.56%, and 99.41% for FedADMM, while also giving the lowest mean false-positive rate and the smallest client update norm among the six compared methods. Both primal-dual methods are well ahead of the averaging- and proximal-based baselines on Malgenome and TUANDROMD, where the latter often remain at the majority-class solution when clients are fragmented. The gain of dynamic weighting over FedADMM is most pronounced on Drebin and with the longer communication budget, where it also reduces the variation across seeds.
Index Terms—Android malware detection, federated learning, primal-dual optimization, ADMM, dynamic client weighting, partial client participation.
I. INTRODUCTION
THE proliferation of Android devices has revolutionized mobile computing, offering users unprecedented access to applications and services. However, this ubiquity has also made Android a prime target for malicious actors. The open-source nature of the Android platform, coupled with its fragmented ecosystem, has led to a surge in malware attacks, ranging from spyware and ransomware to sophisticated Advanced Persistent Threats (APTs) [1]. Traditional malware-detection pipelines, built around centralized data collection, raise privacy concerns and fail to scale across the heterogeneous Android device landscape [2]–[4]. Kaspersky's 2024 Mobile-Malware Evolution report logged 33.3 million blocked attacks involving

Fig. 1. Overview of the federated learning framework and consumer-device ecosystem.
mobile malware, adware, or unwanted software in a single year, illustrating the scale of the threat facing the Android ecosystem [5]. Recent studies further highlight the associated privacy, security, and scalability challenges of on-device intelligence [6], [7].
To address these challenges, federated learning (FL) has emerged as a promising paradigm for collaborative model training without centralizing raw client data [8]. As depicted in Fig. 1, the server initializes or updates a global model and broadcasts it to a subset of available clients; each participating client then refines the model using its local data and returns an update for global coordination. This process is repeated until convergence or stabilization. FL-based security mechanisms have consequently been investigated across a broad range of consumer devices: blockchain-supported aggregation has been considered for smart-home hubs and routers [9], [10], cross-device knowledge transfer has been used to address heterogeneity in wearables and in-car systems [11], and privacy-preserving FL has been explored for smart-TV, IP-camera, and other IoT threat-detection scenarios [12], [13].
Despite its privacy and scalability advantages, FL introduces optimization challenges that become particularly important in distributed malware detection. Frequent model synchronization incurs substantial communication overhead in bandwidth-and resource-constrained devices [14]. Differences in computational capability and intermittent connectivity can further produce delayed or asynchronous updates, while stochastic client availability means that only a subset of devices may participate in each communication round [8], [15], [16]. Together, these effects can disrupt client-server coordination,
Mohammad Mashreghi and Mohammad H. Badiei are with the Department of Electrical and Computer Engineering, University of Tehran, Tehran 1417614411, Iran, (email:m.mashreghi@ut.ac.ir; mho.badiei@gmail.com).
M. J. Piran is with the Department of Computer Science and Engineering, Sejong University, Seoul 05006, South Korea, e-mail: piran@sejong.ac.kr slow convergence, and make the optimization process sensitive to the quality and history of individual client updates [17].
Several directions have been explored to improve the reliability of federated malware detection. Adversarial-resilient strategies based on GANs, robust optimization, and encrypted updates aim to protect training against malicious or unreliable participants [18]–[23]. Byzantine-resilient aggregation mechanisms, including Krum and median-based approaches, provide additional robustness but can introduce scalability and computational limitations [24]–[27]. At the model level, DNN- and CNN-based malware classifiers can capture complex patterns in permissions, API behavior, and network activity [3], [28], [29]; however, their computational demands can limit training and inference on devices with constrained CPU and memory resources [30]. These limitations motivate optimization mechanisms that can maintain effective coordination without relying solely on more complex models or aggregation defenses.
Primal-dual optimization provides one such direction. Methods based on the Alternating Direction Method of Multipliers (ADMM) coordinate local and global model states through explicit consensus constraints and dual variables [31]. This structure can limit persistent client–global disagreement, although maintaining dual states introduces additional memory and optimization steps and requires appropriate parameter selection [32]. FedADMM extends this formulation to federated optimization with partial client participation, allowing primal-dual coordination even when only a subset of clients is active in each round [33]. In parallel, performance-based weighting strategies such as Dynamic Weighted Federated Averaging (DW-FedAvg) use client performance to adapt the influence of local information during federated training [34], [35]. Such strategies, however, are typically developed around averaging-based optimization and do not exploit the persistent local and dual states available in a primal-dual framework.
More recently, partial federated primal-dual optimization was applied to Android malware detection, showing that FedADMM coordination can provide effective classification under partial client participation [36]. Nevertheless, the client update in this formulation is initialized from the current global state without using previously observed client performance to determine how much information from the client's retained state should be preserved. This leaves a gap between performance-adaptive federated learning and primal-dual coordination: client-side predictive information is available during training, but is not used to adapt the starting point of the subsequent local primal-dual update. A mechanism that incorporates such information locally, while preserving the consensus objective and server-side aggregation of FedADMM, could provide greater continuity across intermittent client participation without altering the underlying coordination structure.
To address this gap, we propose Dual-Federated Optimization with Dynamic Weighting (DW-FedADMM) , which integrates performance-dependent client-side state modulation into consensus-constrained primal-dual federated optimization. Before each local augmented-Lagrangian update, a par-
ticipating client interpolates between the current global model and its previously retained corrected state using a coefficient determined by its stored predictive performance relative to the best previously observed client performance. The resulting state is then used to initialize the standard primal update, followed by the dual correction and server aggregation. The dynamic coefficient therefore operates locally before optimization. Accordingly, the consensus formulation, augmented-Lagrangian client optimization, dual update, corrected-state transmission, and server aggregation follow the FedADMM-based primal-dual structure used in [33], [36], whereas the performance-dependent initialization rule constitutes the principal algorithmic extension. The proposed method is evaluated against five federated baselines on Drebin, Malgenome, and TUANDROMD with 5, 10, and 15 clients, partial participation, and communication budgets of 5 and 10 rounds, with each configuration repeated over ten random seeds. DW-FedADMM achieves the highest overall mean accuracy (95.42%) and the best accuracy in 9 of the 18 configurations, including 7 of 9 after 10 rounds. The primal-dual methods show a clear advantage over the averaging- and proximal-based baselines on Malgenome and TUANDROMD, while the additional benefit of dynamic weighting is most evident on Drebin and with the longer communication budget. Overall, the results suggest that performance-dependent state modulation primarily acts as a stabilizing complement to primal-dual coordination rather than providing uniform gains across all settings. The evaluation focuses on IID client partitions, which isolates the effect of client fragmentation and partial participation from that of statistical heterogeneity; extending the analysis to non-IID data is a natural next step.
The rest of the paper is organized as follows. Section II details the proposed framework. Section III presents the experimental setup, results, and analysis. Section IV concludes the paper, and Section V outlines directions for future research.
A. Background
To motivate the formulation of our proposed framework, we revisit the foundational components underlying federated mobile threat defense in Android ecosystems, emphasizing both system-level characteristics and optimization-theoretic principles.
- Android Application Structure: Android applications are distributed as APK packages that encapsulate critical execution logic and metadata. Each APK typically contains: (i) AndroidManifest.xml, specifying component declarations, runtime permissions, and app configuration; (ii) classes.dex, holding Dalvik Executable bytecode; and (iii) embedded resources (layouts, multimedia, and UI descriptors). These structured representations provide static and semantic features suitable for local inference. Within a federated setting, this modularity facilitates client-side feature extraction without sharing raw binaries, ensuring compliance with privacy constraints; this can be widely used across a wide range of Android devices, including smartphones, smartwatches, smart TVs, and home routers.
The source code is publicly available at https://github.com/ArgAI-Lab/Dynamic-Weighted-Federated-Dual-Optimization.
- Federated Optimization Framework: Consider mobile clients indexed by , each holding a local dataset with samples. The objective is to collaboratively optimize a global model parameterized by via:
where , is an input-label pair, is a sample-wise loss function (e.g., cross-entropy), and denotes the model with parameters . With equal-sized client shards, as in our experiments, the weights reduce to . In classical FedAvg, each client solves:
where denotes local minibatch SGD steps in round . Despite its simplicity, FedAvg suffers in heterogeneous environments due to unconstrained client deviation.
To address this, FedProx augments the local objective with a proximal regularization:
where controls proximity to the global reference point . This penalization mitigates client drift, especially under heterogeneous settings, and enhances convergence stability.
- Federated Mobile Threat Defense in Consumer Devices: Leveraging federated optimization for Android threat defense enables scalable threat modeling without centralizing sensitive behavioral data. Clients extract high-dimensional representations from static code features, dynamic system traces, permission graphs, and execution profiles. These vectors inform distributed training of a mobile threat classifier. However, federated deployment introduces unique complications: (i) communication bottlenecks due to iterative synchronization, (ii) statistical heterogeneity across local datasets, and (iii) temporal asynchrony from fluctuating client availability. These issues impair coordination and motivate dual-informed optimization together with performance-adaptive client mechanisms, as explored in this work.
B. Proposed Method
We propose DW-FedADMM, a primal-dual federated optimization framework that integrates consensus regulation with performance-dependent client-side modulation. As illustrated in Fig. 2, the framework combines an augmented-Lagrangian formulation with dynamic weighting of the local model state prior to each client update. The resulting procedure is designed for federated threat classification under partial client participation while retaining explicit coordination between local and global model variables.
- Problem Decomposition: Consider a federated threat-detection system consisting of clients, where client holds a private dataset . Each client defines a local empirical objective , corresponding to the classification loss

Fig. 2. Overview of the proposed DW-FedADMM framework for federated Android malware detection.
evaluated on its locally available malware samples. Because the training partition is divided into approximately equal-sized client shards in the reported experiments, we adopt the equal-client objective
A local variable is associated with each client, and consensus with the server model is enforced through
where denotes the global model maintained by the server.
- Augmented-Lagrangian Formulation: The corresponding consensus-constrained problem is written as
Introducing a dual variable for each client and a quadratic consensus penalty yields the client-level augmented Lagrangian
where controls the strength of the consensus penalty. The linear dual term accounts for accumulated disagreement between the local and global states, whereas the quadratic term penalizes instantaneous deviation from the current global model.
- Dynamic Weight Modulation: DW-FedADMM introduces a performance-dependent coefficient that modulates the client state before local optimization. At the beginning of communication round , the server keeps the most recently reported client-side accuracy of every client in the set of clients that have participated at least once, with . The reference score is the largest of these stored values,
Each participating client i then computes
where is a small constant that keeps the ratio defined. Unobserved clients therefore do not enter the reference maximum, and no artificial score is assigned to them. A client that participates for the first time uses , so its local training starts from the current global model; in the first round this holds for every selected client. Because is the largest score among the observed clients, .
The resulting coefficient is used to combine the current global model with the client's previously corrected state,
Hence, the dynamic coefficient controls the relative contribution of current global information and the previously retained client state before the subsequent primal update. The coefficient is therefore a client-side modulation factor rather than a direct server-side aggregation weight.
The direction of this interpolation follows from what a low score indicates in the primal-dual setting. A client with a low relative to is one whose local data are not yet well represented by the consensus model. Its corrected state contains both the local progress made on these data and, through , the accumulated disagreement with the global model. Resetting such a client fully to would discard this information and force it to repeat the same local correction in every round. Retaining a larger share of instead gives a warm start that keeps the client's trajectory continuous across rounds, while the dual term in (7) still pulls the local model toward consensus. Clients with high relative scores are already well served by the global model, so starting them close to costs little and keeps them aligned. The rule is therefore a heuristic relaxation of the local starting point, not a property derived from the objective, and its value is assessed empirically by comparing DW-FedADMM with FedADMM, which corresponds to for all clients.
- Primal-Dual Client Update: Starting from the modulated local state in (10), each selected client runs a finite number of SGD steps on its local augmented Lagrangian,
(11)
where denotes a minibatch stochastic gradient, is the local learning rate, and E is the total number of minibatch steps taken over the local epochs of one round. The corresponding dual variable is then updated according to
The updated primal and dual variables are subsequently combined to construct the corrected local state
where is the dual step size, which is also used to scale the dual correction, while only weights the quadratic penalty in (7). Each participating client transmits , together with its local validation accuracy , to the server. Clients that are not selected in round keep their dual variable, corrected state, and stored score unchanged until they participate again; the local primal variable is not stored between rounds, since it is rebuilt from (10) at the start of each participation.
- Server Aggregation: After receiving updates from the participating subset , the server replaces the stored accuracy of each participating client by and sets ; the stored values of inactive clients are retained. The reference score for the next round is then
The corrected client states received in round k are aggregated according to
For completeness, the server update can be written as
where denotes an optional server-side regularizer. In the reported experiments no additional server-side regularizer is applied (), and therefore the proximal mapping reduces to the identity, i.e., .
- Optimization Protocol: Algorithm 1 summarizes the round-wise interaction between the clients and the server. At each communication round, the server selects a subset of clients and provides them with the current global model and the reference performance value. Each participating client first applies the performance-dependent modulation in (10), runs a fixed number of SGD steps on its local augmented Lagrangian, updates the associated dual variable, and returns the corrected local state together with its current client-side accuracy.
The server updates the stored performance records, computes , aggregates the corrected states of the participating clients, and applies the global update in (16). The resulting global model is then used in the next communication round. In this manner, DW-FedADMM combines performance-dependent local adaptation with primal-dual coordination under partial client participation.
- Dynamically Weighted Baselines: DW-FedAvg and DW-FedProx use the same coefficient in (9), but without dual variables. Each selected client starts its local training from
where is the local model the client obtained at its last participation. DW-FedAvg then runs local SGD on , and DW-FedProx on with . In both cases the server takes the plain average of the returned local models. With , the two methods reduce exactly to FedAvg and FedProx.
Algorithm 1 DW-FedADMM
1: Initialize: , and number of rounds
2: Set
3: Set , , and for all
4: Set (no stored client scores)
5: for do
6: Randomly sample with
7: BestAcc (if )
8: Client-side update
9: for each do
10: Receive and BestAcc
11: if , otherwise
12:
13: Run SGD steps on from to obtain (Eq. (11))
14:
15:
16: Compute on the client's local validation subset
17: Send and to the server
18: end for
19: for each : keep , , and unchanged
20: Server-side update
21: for each do
22:
23: end for
24: and BestAcc
25:
26:
27: end for
III. SIMULATION RESULTS AND DISCUSSION
To assess the proposed method, we conduct simulations across a range of client populations and communication budgets, and every configuration is repeated with ten random seeds. The analysis focuses on predictive performance, client-fragmentation behavior, false-positive rates, convergence over rounds, and optimization-update statistics relative to established FL baselines.
To evaluate the proposed approach, We use three benchmark datasets for Android malware detection: Drebin, Malgenome, and TUANDROMD.
Drebin: Following the benchmark configuration used in prior federated Android-malware studies [34], the Drebin-derived dataset contains 15,036 application samples, with 9,476 benign and 5,560 malicious instances, represented by 215 features.
Malgenome: This dataset, derived from the Android Malware Genome Project [37], comprises 3,799 Android application samples, including 2,539 benign and 1,260 malicious applications. It contains 215 extracted features.
TUANDROMD: The TUANDROMD benchmark described in [38] contains 4,465 Android application instances and 241 features for binary malware/goodware classification. The experiments use the released preprocessed feature representation.
A. Experimental Setup
This subsection summarizes the computational environment, base classifier, federated partitioning protocol, and optimization settings used in the experiments.
-
Machine Configuration: The experiments were run on a single GPU-equipped machine. All methods share the same code base and data pipeline.
-
Base Classifier and Optimizer: All federated methods use the same four-layer feed-forward neural network for binary classification. The three hidden layers contain 200, 100, and 50 neurons with ReLU activation, followed by a single sigmoid output neuron. The architecture is intentionally kept fixed across all methods so that the comparison primarily reflects differences in federated optimization rather than classifier capacity. The model has 68,401 parameters for Drebin and Malgenome (215 features) and 73,601 for TUANDROMD (241 features). Weights use the default PyTorch initialization of linear layers, and training minimizes the binary cross-entropy loss on the sigmoid output. Local parameters are updated with plain SGD, without momentum, weight decay, or gradient clipping. All methods are implemented in PyTorch.
-
Training Parameters: Each dataset is divided using an 80–20 train-test hold-out split. The training partition is randomly shuffled and divided into equal-sized client shards, so the client data are IID: every client sees approximately the same class ratio and feature distribution. No Dirichlet, label-skew, or quantity-skew partition is used. Increasing the number of clients therefore reduces the number of samples available to each client, but it does not make the local distributions more different from each other. Throughout the results, we use client fragmentation only in this sense, that is, more clients with smaller local datasets, and not as a measure of statistical heterogeneity. At every communication round, 80% of the available clients are selected uniformly for participation.
The training configuration is:
• Batch Size: 32.
• Local Epochs: 8 per participating client.
• Learning Rate: for local SGD.
• Client Populations: 5, 10, and 15 clients.
• Communication Budgets: each run lasts 10 rounds, and the global model is evaluated after round 5 and after round 10. These two checkpoints give the 5- and 10-round budgets reported in the results.
• Client Selection: 0.8 of the available clients per round.
- Primal-Dual Parameters: the consensus/dual scaling parameters are fixed across all configurations, with . FedProx and DW-FedProx use a proximal coefficient of 0.01.
• Random Seeds: ten seeds shared by all methods.
For the adaptive coefficient, each client holds out a fixed 20% of its training shard as a local validation subset, drawn only from the training partition, and trains on the remaining 80%. After local training, the client measures the classification
TABLE I
GLOBAL-MODEL ACCURACY ACROSS DATASETS, CLIENT POPULATIONS, AND COMMUNICATION BUDGETS (IN %). VALUES ARE MEAN ± STANDARD DEVIATION OVER TEN RANDOM SEEDS, EVALUATED AFTER 5 AND 10 COMMUNICATION ROUNDS. THE BEST MEAN FOR EACH ROW AND BUDGET IS SHOWN IN BOLD. ALL METHODS USE THE SAME TEN SEEDS.
| Dataset | Clients | 5 Communication Rounds | 10 Communication Rounds | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FedAvg | FedProx | FedADMM | DW-FedAvg | DW-FedProx | DW-FedADMM | FedAvg | FedProx | FedADMM | DW-FedAvg | DW-FedProx | DW-FedADMM | ||
| Drebin | 5 | ||||||||||||
| 10 | |||||||||||||
| 15 | |||||||||||||
| Malgenome | 5 | ||||||||||||
| 10 | |||||||||||||
| 15 | |||||||||||||
| TUANDROMD | 5 | ||||||||||||
| 10 | |||||||||||||
| 15 | |||||||||||||
accuracy of its updated local model, before the dual correction, on this validation subset, using the standard decision threshold of the sigmoid output. This accuracy is the score that the client reports to the server. The score is stored by the server and reused until that client participates again; clients that have not yet participated have no stored score, as described in Section II-B. The held-out global test partition is used only for global-model evaluation and is not required by the dynamic-weight formula.
For the optimization analysis, the client update norm is measured as the Euclidean distance between a client's updated local parameters and the current global parameters, computed over the trainable weights before the dual correction and averaged over the participating clients of a round. A smaller norm alone does not imply stability; we read it only together with the accuracy results. The false-positive rate is computed from the test confusion matrix as FP/(FP + TN), with malware as the positive class.
B. Discussion and Analysis
In this subsection, we analyze the predictive performance, scalability, false-alarm behavior, and optimization characteristics of DW-FedADMM relative to FedAvg, FedProx, FedADMM, DW-FedAvg, and DW-FedProx. The evaluation covers three Android malware datasets (Drebin, Malgenome, and TUANDROMD), client populations of 5, 10, and 15, and communication budgets of 5 and 10 rounds, with 8 local epochs and partial client participation. All reported values are taken over ten random seeds. The configuration-level accuracy is given in Table I, and the figures below summarize the main trends across datasets and operating conditions.
Dataset-level and aggregate accuracy. Figure 3 shows that the ranking of the methods depends on the dataset. On Drebin, DW-FedADMM has the highest mean accuracy, , ahead of FedAvg () and FedADMM (), and its spread across seeds is about one third of that of FedADMM. On Malgenome and TUANDROMD, the two primal-dual methods are far ahead of the others. FedADMM reaches 96.05% and 92.82% and DW-FedADMM 95.88% and 92.76%, while the four averaging- and proximal-based methods stay between 85.3%

Fig. 3. Overall mean global accuracy for each dataset. For each seed, accuracy is averaged over the three client populations and the two communication budgets; bars show the mean over ten seeds and error bars the standard deviation across seeds.
and 85.7% on both datasets. Pooled over all 18 configurations, DW-FedADMM has the highest mean accuracy (95.42%), followed closely by FedADMM (95.32%), whereas FedAvg, FedProx, DW-FedAvg, and DW-FedProx lie between 89.27% and 89.45%.
The configuration-level results in Table I give a more detailed picture. DW-FedADMM achieves the highest mean accuracy in 9 of the 18 configurations, comprising eight sole wins and one shared win with FedADMM on TUANDROMD. The only settings won by an averaging-based method are Drebin with 5 clients, where FedAvg and DW-FedAvg share the best result after 5 rounds, and DW-FedAvg is marginally ahead after 10 rounds. The communication budget also affects the ranking: with 10 rounds, DW-FedADMM is best in 7 of the 9 configurations, whereas with 5 rounds FedADMM is best in 6 of the 9 and shares the best result in one more. The gap between the primal-dual and the averaging-based methods is largest when clients are fragmented and the budget is short. With 10 or 15 clients and 5 rounds, FedAvg, FedProx,

Fig. 4. Average rank of the six methods over the 18 dataset-client-round configurations (1 = best). For each configuration, the methods are ranked on the seed-averaged value of each metric; lower is better for FPR, loss, and update norm. The last column is the mean rank over all eight metrics, and rows are sorted by it.
DW-FedAvg, and DW-FedProx predict only the majority class on Malgenome (66.84%) and TUANDROMD (79.84%) in every seed, which is why their standard deviation is zero. On TUANDROMD with 15 clients they are still at 79.85% after 10 rounds, while FedADMM and DW-FedADMM reach 96.88% and 96.91%.
Comparison with FedADMM. Because FedADMM and DW-FedADMM are run on the same seeds and differ only in the dynamic coefficient, their comparison isolates the effect of this coefficient. DW-FedADMM is ahead of FedADMM in 10 of the 18 configurations. Averaged over all configurations of a dataset, the gain is +0.55 points on Drebin, while the two methods are nearly equal on Malgenome (-0.17 points) and TUANDROMD (-0.07 points). The largest gains appear on Drebin after 10 rounds with 5 and 15 clients (+1.03 and +1.70 points). In these settings FedADMM loses accuracy in some seeds between round 5 and round 10, whereas DW-FedADMM does not. The dynamic coefficient therefore acts mainly as a stabilizing component that strengthens primal-dual coordination where it is most needed.
Overall ranking across metrics. To summarize the comparison in a single view, Fig. 4 ranks the six methods in every configuration and averages the ranks over the 18 configurations. DW-FedADMM has the best average rank for accuracy and F1-score (both 1.86, against 2.25 for FedADMM and 3.39 or more for the other methods), and it also has the best overall rank when all eight metrics are combined (2.88), ahead of FedAvg (3.14) and FedADMM (3.27). Compared with FedADMM, it ranks better on seven of the eight metrics, including precision, FPR, loss, and update norm, and is slightly worse only on recall. FedAvg ranks better on AUC and loss; the averaging-based methods rank better on precision and FPR in many configurations because, on Drebin and Malgenome, their false alarms are very low; and the FedProx variants often rank better on update norm, although DW-FedADMM has the smallest mean update norm overall. The pooled mean FPR still favors DW-FedADMM, since it is dominated by the large errors of the averaging-based methods on TUANDROMD. The ranks describe how often and by how much a method is ahead; as shown above, the clearest gain over FedADMM is observed on Drebin.
The communication budget matters for this picture. With 10 rounds, DW-FedADMM is ahead of FedADMM in all three client populations (98.38% versus 98.02%, 98.08% versus 97.99%, and 97.42% versus 96.86% for 5, 10, and 15 clients, averaged over the three datasets) and has the smaller spread across seeds in each case. With 5 rounds the two methods are within 0.25 points of each other, and FedADMM is slightly ahead with 10 and 15 clients. The dynamic coefficient therefore seems to need a few rounds of client feedback before it pays off.
Convergence over rounds. Figure 5 gives a round-by-round view of the most fragmented setting. On Malgenome and TUANDROMD, all methods start at the majority-class solution. FedADMM and DW-FedADMM leave it after four to five rounds on Malgenome and after six to seven rounds on TUANDROMD, and then climb above 96% within two or three more rounds. FedAvg and FedProx, with or without dynamic weighting, reach only 88–90% on Malgenome by round 10 and do not leave the majority class on TUANDROMD within the budget. On Drebin, the ADMM-based methods pass 94% by round 3, two rounds earlier than the averaging-based methods. FedADMM then falls from 97.6% to 95.7% over the last three rounds, while DW-FedADMM ends at 97.4%. Dynamic weighting changes the FedAvg and FedProx curves very little.
False-alarm behavior under fragmentation. False-positive rate is particularly important in malware detection because it measures the fraction of benign applications that are incorrectly flagged as malicious. Pooled over the three datasets, both budgets, and ten seeds, DW-FedADMM has the lowest mean FPR of the six methods at 10.86%, followed by FedADMM at 11.07%, while FedAvg, FedProx, DW-FedAvg, and DW-FedProx lie between 24.1% and 24.4%. FPR rises with the number of clients for every method, but far more slowly for the primal-dual ones. With 5 clients, DW-FedADMM reaches 2.03% against 2.51% for FedADMM and about 11.5% for the other four methods. With 10 clients FedADMM is marginally lower (12.18% versus 12.52%), and with 15 clients DW-FedADMM is lower again (18.02% versus 18.52%), whereas the averaging- and proximal-based methods climb to about 27% and 34%. Most of these false alarms come from TUANDROMD. Its test split contains only 180 benign applications, and a model that has not yet left the majority (malware) class flags all of them. On Drebin and Malgenome the mean FPR stays below 3% for every method, and on Drebin DW-FedADMM lowers it from 2.84% to 1.83% compared with FedADMM.
Integrated predictive and optimization comparison. Figure 6 compares the two primal-dual methods on several criteria at once. Pooled over all 18 configurations and ten seeds, DW-FedADMM is slightly ahead in accuracy (95.42% versus 95.32%), F1-score (94.62% versus 94.51%), precision (96.06% versus 95.56%), AUC (99.45% versus 99.41%), and specificity (89.14% versus 88.93%), while FedADMM has a slightly higher recall (95.38% versus 95.09%). The two polygons largely overlap, consistent with the comparison above. The dynamic coefficient moves the operating point a little toward higher precision and fewer false alarms, at the

(a) Drebin

(b) Malgenome

(c) TUANDROMD
Fig. 5. Round-wise global accuracy with 15 clients. Lines show the mean over ten seeds and shaded bands one standard deviation. Dashed lines denote the unweighted methods and solid lines their dynamically weighted counterparts.

Fig. 6. Integrated comparison of FedADMM and DW-FedADMM. Accuracy, F1-score, precision, recall, AUC, and specificity (100 – FPR) are overall means in percent. The update norm is shown as a lower-is-better score relative to the smallest mean update norm among the six methods, so that higher values are preferable. The radial axis starts at 80 to make the differences visible.
cost of a small loss in recall, rather than changing the overall level of performance.
DW-FedADMM also has the smallest mean update norm of all six methods (0.2097), slightly below FedADMM (0.2140) and clearly below the averaging- and proximal-based methods (0.228–0.231). On the relative scale, it therefore receives a score of 100 against 98.0 for FedADMM. The difference between the two primal-dual methods is small, but it points in the expected direction: the client-side coefficient slightly reduces how far local models move away from the global model in each round.
Loss interpretation and empirical variability. Binary cross-entropy loss should be interpreted separately from accuracy, F1-score, AUC, and FPR. The mean test loss of DW-FedADMM (0.245) is about 23% lower than that of FedADMM (0.318) and close to the values of FedAvg, FedProx, and their weighted variants (0.239–0.244), even though those methods are much less accurate on Malgenome
and TUANDROMD. This is not contradictory because cross-entropy depends on the confidence and calibration of predicted probabilities, whereas F1-score and FPR depend on the selected decision threshold and AUC primarily evaluates ranking quality. Accordingly, the results do not support a claim that DW-FedADMM minimizes classification loss, although it clearly reduces the loss of FedADMM.
The multi-seed evaluation also shows where the results are fragile. The largest standard deviations occur in short-budget, fragmented settings, such as Malgenome with 15 clients after 5 rounds ( 12.75 for DW-FedADMM and 13.24 for FedADMM) and TUANDROMD with 10 clients after 5 rounds ( 6.29 and 6.19), where some seeds leave the majority-class solution earlier than others. A single run in these settings can therefore be misleading, and our conclusions therefore rest on the seed-averaged values rather than on individual runs.
Overall implication. Taken together, the results support a more qualified conclusion than a single-run evaluation would suggest. The primal-dual structure is the main source of improvement. FedADMM and DW-FedADMM are much more accurate than the averaging- and proximal-based methods on Malgenome and TUANDROMD, converge faster in fragmented settings, and cut the mean false-positive rate by more than half. Adding the dynamic coefficient on top of FedADMM gives the best overall mean accuracy, F1-score, precision, and FPR among the six methods, the smallest update norm, the clearest improvement on Drebin, and smaller variation across seeds when 10 rounds are available. On Malgenome and TUANDROMD, where FedADMM already performs strongly, the two methods are nearly equal, and the benefit of the coefficient grows with the communication budget. When the same coefficient is added to FedAvg or FedProx, it has almost no effect. DW-FedADMM is therefore best viewed as a robust choice for fragmented clients with a reasonable communication budget, not as a method that dominates every metric and dataset.
IV. CONCLUSION
In this paper, we introduced DW-FedADMM, a federated optimization framework that combines primal-dual coor-dination with performance-dependent client-side modulation for distributed Android malware detection. The method was evaluated on Drebin, Malgenome, and TUANDROMD under different client populations and communication budgets, and every configuration was repeated over ten random seeds. DW-FedADMM achieved the highest overall mean accuracy, F1-score, and precision, the lowest mean false-positive rate, and the smallest update norm among the six compared methods, and it was the best method in 9 of the 18 configurations and in 7 of the 9 configurations with a 10-round budget. The multi-seed analysis also showed that most of the advantage over averaging-based federated learning comes from primal-dual coordination, while the dynamic coefficient adds a smaller, dataset-dependent gain. This gain was most evident on Drebin, where it was also accompanied by lower variation across seeds. Overall, the results indicate that combining client-side performance feedback with primal-dual coordination is a reliable choice under partial client participation and small local datasets, provided that enough communication rounds are available. Because all partitions in this study are IID, these findings should not be read as evidence about performance under non-IID client data, which remains to be tested.
V. FUTURE WORK
The most immediate next step is to evaluate DW-FedADMM under non-IID client data. This includes label-skew Dirichlet partitions with different concentration parameters, quantity skew, clients that hold different malware families, and temporal partitions where collection dates are available, with client class ratios and a quantitative heterogeneity measure reported for each setting. Since the present experiments use IID shards only, such an evaluation is needed to test the heterogeneity-related motivation of the method.
Beyond this, future work will extend DW-FedADMM toward a more adaptive closed-loop federated controller. One direction is to replace the current scalar accuracy-based coefficient with a stateful client-reliability measure that combines predictive quality, score freshness, consensus residuals, and local update dynamics. This reliability state could jointly adapt the client-side modulation factor and the primal-dual parameters and , allowing statistical reliability and consensus enforcement to evolve together. A second direction is event-triggered communication, in which client updates are transmitted only when their expected optimization benefit exceeds a communication-dependent threshold. Finally, integrating change-point detection with the reliability state could help distinguish transient client degradation from genuine malware-distribution drift, enabling continual adaptation to emerging threat patterns without discarding previously learned client and dual states.
REFERENCES
[1] W. Almobaideen, O. Abu Alghanam, M. Abdullah, S. B. Hussain, and U. Alam, “Comprehensive review on machine learning and deep learning techniques for malware detection in android and IoT devices,” International Journal of Information Security, vol. 24, no. 3, p. 110, 2025.
[2] Z. Çiplak, K. Yildiz, and Ş. Altınkaya, “Fedetect: A federated learning-based malware detection and classification using deep neural network algorithms,” Arabian Journal for Science and Engineering, pp. 1–28, 2025.
[3] A. Patel, D. S. Tomar, R. Pateriya, and R. Haripriya, “Fl-maldrift: a federated learning framework for malware detection under local concept drift,” Scientific Reports, vol. 16, no. 1, p. 1821, 2025.
[4] G. Ciaramella, F. Martinelli, A. Santone, and F. Mercaldo, “An explainable privacy-preserving method for mobile malware detection through federated machine learning,” International Journal of Information Security, vol. 25, no. 3, p. 102, 2026.
[5] Kaspersky Global Research & Analysis Team. (2025, Mar.) Mobile malware evolution in 2024. Kaspersky Lab. Reports 33.3 million blocked Android-malware attacks in 2024. [Online]. Available: https://securelist.com/mobile-threat-report-2024/115494/
[6] J. Pei, W. Liu, J. Li, L. Wang, and C. Liu, “A review of federated learning methods in heterogeneous scenarios,” IEEE Transactions on Consumer Electronics, vol. 70, no. 3, pp. 5983–5999, 2024.
[7] H. Rezaei, R. Taheri, E. Nowroozi, M. Hajizadeh, S. Shieales, and T. Bauschert, “A survey on security and privacy in federated learning-based intrusion detection systems for 5G and beyond networks,” IEEE Open Journal of the Communications Society, vol. 7, pp. 253–300, 2025.
[8] F. Mahmud, F. Mahmud, and R. M. Rahman, “A survey of federated learning: Advances in architecture, synchronization, and security threats,” Computers, Materials & Continua, vol. 86, no. 3, p. 1, 2026.
[9] D. Das, P. Chatterjee, S. Banerjee, U. Ghosh, and M. S. Al-Numay, “Blockchain-enabled federated learning for security and privacy in consumer electronics devices,” IEEE Transactions on Consumer Electronics, 2025.
[10] Y. Xia, Y. Liu, J. Chen, Y. Liang, F. Khan, R. Alturki, and X. Wang, “Teva: Training-efficient and verifiable aggregation for federated learning for consumer electronics in industry 5.0,” IEEE Transactions on Consumer Electronics, 2024.
[11] Z. Chen, Y. Ren, Y. Xue, A. Jolfaei, A. Tolba, K. Yu, and H. Feng, “A trustworthy decentralized federated learning framework for consumer electronics: Mitigating large-scale aiot heterogeneity through transfer knowledge integration,” IEEE Transactions on Consumer Electronics, 2024.
[12] E. Rabieinejad, A. Yazdinejad, A. Dehghantanha, and G. Srivastava, “Two-level privacy-preserving framework: Federated learning for attack detection in the consumer internet of things,” IEEE Transactions on Consumer Electronics, vol. 70, no. 1, pp. 4258–4265, 2024.
[13] B. Büyükanır, Ş. Altınkaya, G. Karatas Baydogmuş, and K. Yildiz, “Federated learning in intrusion detection: advancements, applications, and future directions,” Cluster Computing, vol. 28, no. 7, p. 473, 2025.
[14] N. Jia, Z. Qu, B. Ye, Y. Wang, S. Hu, and S. Guo, “A comprehensive survey on communication-efficient federated learning in mobile edge environments,” IEEE Communications Surveys & Tutorials, vol. 27, no. 6, pp. 3710–3741, 2025.
[15] N. Kumari and P. K. Jana, “Communication efficient federated learning with data offloading in fog-based iot environment,” Future Generation Computer Systems, vol. 158, pp. 158–166, 2024.
[16] D. Garg, D. Sanyal, M. Lee, A. Tumanov, and A. Gavrilovska, “Client availability in federated learning: It matters!” in Proceedings of the 5th Workshop on Machine Learning and Systems (EuroMLSys), 2025, pp. 114–121.
[17] D. Thakur, A. Guzzo, and G. Fortino, “Hardware-algorithm co-design of energy efficient federated learning in quantized neural network,” Internet of Things, vol. 26, p. 101223, 2024.
[18] R. Taheri, M. Shojafar, F. Arabikhan, and A. Gegov, “Unveiling vulnerabilities in deep learning-based malware detection: Differential privacy driven adversarial attacks,” Computers & Security, vol. 146, p. 104035, 2024.
[19] W. Huang, M. Ye, Z. Shi, G. Wan, H. Li, B. Du, and Q. Yang, “Federated learning for generalization, robustness, fairness: A survey and benchmark,” IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024.
[20] M. Eslamnejad, R. Taheri, M. Shojafar, and M. Bader-El-Den, “Federated learning-based robust android malware detection: label-flipping attacks and defenses,” Neural Computing and Applications, vol. 37, no. 32, pp. 27 057–27 082, 2025.
[21] Y. Feng, Y. Guo, Y. Hou, Y. Wu, M. Lao, T. Yu, and G. Liu, “A survey of security threats in federated learning,” Complex & Intelligent Systems, vol. 11, no. 2, p. 165, 2025.
[22] Y. Li, Z. Guo, N. Yang, H. Chen, D. Yuan, and W. Ding, “Threats and defenses in the federated learning life cycle: A comprehensive survey and challenges," IEEE Transactions on Neural Networks and Learning Systems, vol. 36, no. 9, pp. 15 643–15 663, 2025.
[23] D. M. Jimenez-Gutierrez, Y. Falkouskaya, J. L. Hernandez-Ramos, A. Anagnostopoulos, I. Chatzigiannakis, and A. Vitaletti, "On the security and privacy of federated learning: A survey with attacks, defenses, frameworks, applications, and future directions," Information Fusion, vol. 131, p. 104155, 2026.
[24] G. Zhu, W. Shen, Z. Liu, J. Qin, and J. Ma, “BPFLH: Byzantine-robust privacy-preserving federated learning for heterogeneous data,” IEEE Transactions on Dependable and Secure Computing, vol. 23, no. 3, pp. 6103–6118, 2026.
[25] A. Khraisat, A. Alazab, S. Singh, T. Jan, and A. Jr. Gomez, “Survey on federated learning for intrusion detection system: Concept, architectures, aggregation strategies, challenges, and future directions,” ACM Computing Surveys, vol. 57, no. 1, pp. 1–38, 2024.
[26] L. Li, W. Xu, T. Chen, G. B. Giannakis, and Q. Ling, “Rsa: Byzantine-robust stochastic aggregation methods for distributed learning from heterogeneous datasets,” in Proceedings of the AAAI conference on artificial intelligence, vol. 33, no. 01, 2019, pp. 1544–1551.
[27] J. Xue, S. Sun, M. Liu, Q. Li, and K. Xu, “Enhancing federated learning robustness using locally benignity-assessable Bayesian dropout,” IEEE Transactions on Information Forensics and Security, vol. 20, pp. 2464–2479, 2025.
[28] A. Augello, A. De Paola, and G. Lo Re, “M2FD: Mobile malware federated detection under concept drift,” Computers & Security, vol. 152, p. 104361, 2025.
[29] N. Xi, Y. Zhang, P. Feng, S. Ma, J. Ma, Y. Shen, and Y. Y. Yang, “GN-NDroid: Graph-learning based malware detection for android apps with native code,” IEEE Transactions on Dependable and Secure Computing, vol. 22, no. 2, pp. 1460–1476, 2025.
[30] S. Anand, B. Mitra, S. Dey, A. Rao, R. Dhar, and J. Vaidya, “MALITE: Lightweight malware detection and classification for constrained devices,” IEEE Transactions on Emerging Topics in Computing, vol. 13, no. 3, pp. 1099–1112, 2025.
[31] S. Boyd, N. Parikh, E. Chu, B. Peleato, J. Eckstein et al., “Distributed optimization and statistical learning via the alternating direction method of multipliers,” Foundations and Trends® in Machine learning, vol. 3, no. 1, pp. 1–122, 2011.
[32] S. Zhu, F. Nie, J. Zeng, S. Wang, Y. Sun, Y. Yao, S. Chen, Q. Xu, and C. Yang, “FedAPM: Federated learning via ADMM with partial model personalization,” in Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD), 2025, pp. 4192–4202.
[33] H. Wang, S. Marella, and J. Anderson, “Fedadmm: A federated primal-dual algorithm allowing partial participation,” in 2022 IEEE 61st Conference on Decision and Control (CDC). IEEE, 2022, pp. 287–294.
[34] A. Chaudhuri, A. Nandi, and B. Pradhan, “A dynamic weighted federated learning for android malware classification,” in Soft computing: Theories and applications: Proceedings of SoCTA 2022. Springer, 2023, pp. 147–159.
[35] A. Wajahat, K. Zhang, J. Latif, X. Ma, A. Ahad, and K. I. Ahmed, “Dynamic weighted federated learning: A scalable and privacy-centric approach to android IoT malware detection,” Concurrency and Computation: Practice and Experience, vol. 38, no. 1, p. e70441, 2026.
[36] M. Mashreghi and M. H. Badiei, “Partial federated primal-dual optimization for network-based android malware detection,” in 2025 IEEE 45th International Conference on Distributed Computing Systems Workshops (ICDCSW), 2025, pp. 789–796.
[37] S. Y. Yerima and S. Sezer, “Droidfusion: A novel multilevel classifier fusion approach for android malware detection,” IEEE transactions on cybernetics, vol. 49, no. 2, pp. 453–466, 2018.
[38] P. Borah, D. Bhattacharyya, and J. Kalita, “Malware dataset generation and evaluation,” in 2020 IEEE 4th Conference on Information & Communication Technology (CICT). IEEE, 2020, pp. 1–6.