arXiv:2611.09470cs.LGNov 2026

Manuscript Offprint

arXiv:2611.09470

Consensus-Constrained Dual-Federated Optimization with Client-Side Dynamic Weighting for Distributed Android Device Threat Defense

Mohammad Mashreghi, Mohammad Hossein Badiei, Md. Jalil Piran

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

Figure

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) 1^{1}, 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.

References (37)