Manuscript Offprint

arXiv:2610.12711

Byzantine-Resilient Federated Large Language Model via Hypergraph Message Passing

Kai Li, Hanlin Cai, Zihao Liu, Yichen Li, Jose Alcaraz Calero, Wei Ni, Falko Dressler, Özgür B. Akan

Kai Li, Senior Member, IEEE, Hanlin Cai, Member, IEEE, Zihao Liu, Yichen Li, Member, IEEE, Jose Alcaraz Calero, Senior Member, IEEE, Wei Ni, Fellow, IEEE, Falko Dressler, Fellow, IEEE, and Özgür B. Akan, Fellow, IEEE

Abstract—Federated Large Language Models (FedLLMs) are promising to deliver privacy-preserving, collaborative intelligence. The decentralized training process is vulnerable to Byzantine attacks that corrupt semantic consistency and factual resilience through malicious model updates. This paper presents a new resilience strategy that prevents semantically corrupted knowledge from propagating during federated aggregation. A defense problem is formulated to jointly maximize global accuracy and suppress manipulated model updates, enabling trustworthy knowledge aggregation without accessing private local data. To strengthen the resilience of FedLLMs, we develop a novel Hypergraph Message Passing Graph Autoencoder (HMP-GAE) framework, where low-rank model updates are represented as nodes in a hypergraph and high-order semantic relationships among multiple agents are exploited through iterative message passing. By leveraging historical checkpoints and cross-agent relational reasoning, HMP-GAE identifies and suppresses semantically inconsistent updates while preserving knowledge alignment among agents throughout federated training. HMP-GAE is implemented using Qwen-2.5 and Llama-3.2 as pretrained FedLLM backbones and evaluated on AG News and Yahoo! Answers datasets. Compared to existing defenses, HMP-GAE improves global accuracy by 1.21%, reduces final-model classification semantic entropy by 44.08%, and lowers perplexity by 13.34%. HMP-GAE outperforms the GAE-based defense by improving the accuracy 1.39%, reducing the semantic entropy by 54.5%, and lowering perplexity by 35.5%.

Index Terms—Byzantine Attacks, Federated Large Language Models (FedLLMs), Graph Autoencoder (GAE), Hypergraph Message Passing, CyberEdge

I. INTRODUCTION

Large language models (LLMs) are emerging as a transformative paradigm for intelligent, autonomous operations in CyberEdge networks [1], [2], where distributed devices, from IoT sensors to connected vehicles and industrial robots, collaborate securely and efficiently without centralized control. By integrating federated learning (FL) with LLMs, edge nodes can perform local reasoning, decision-making, and adaptation based on their contextual data while sharing high-level knowledge or model updates rather than raw information [3]–[5]. This enables a new generation of self-organizing, privacy-preserving, and resilient CyberEdge networks that can support complex, real-time applications, e.g., autonomous mobility, digital twin synchronization, smart healthcare, and disaster response. Federated LLMs (FedLLMs) act as cognitive coordinators, learning human-aligned behaviors, negotiating across agents, and dynamically optimizing communication, computation, and sensing processes under constrained resources [6]–[9]. This synergy enhances situational awareness, interoperability, and trust across heterogeneous edge environments, paving the way to autonomous, explainable, and resilient artificial intelligence (AI) infrastructures at the network edge.

In FedLLMs, each edge device or agent maintains a local instance of an LLM that learns from its own private data, such as text or sensory streams, arising from its specific environment and task context. Instead of transmitting raw data to a central server, participants share only model updates or gradients through secure aggregation, collaboratively refining a global foundation model. The nature of FedLLMs empowers each agent to integrate and reason across diverse data features, dynamically adapt its learning strategy to evolving local contexts, and coordinate with other agents based on shared semantics, trust levels, and task interdependencies [10]–[13]. Through iterative aggregation and local fine-tuning, FedLLMs collectively evolve into a distributed intelligence capable of robust language understanding, cross-modal reasoning, and context-aware decision-making in heterogeneous and privacy-sensitive CyberEdge environments.

K. Li and J. Calero are with the School of Computer Science and Digital Technologies, Aston University, Birmingham, UK (E-mail: kaili@ieee.org & j.alcarazcalero@aston.ac.uk).

H. Cai, Z. Liu, Y. Li, and O. B. Akan are with Centre for neXt Communications (CXC), Department of Engineering, University of Cambridge, CB3 0FA Cambridge, U.K., and O. B. Akan is also with the Centre for neXt Communications (CXC), Department of Electrical and Electronics Engineering, Koç University, 34450 Istanbul, Türkiye (e-mail: {hc663, zl600, kl596, oba21}@cam.ac.uk & akan@ku.edu.tr).

Within this collaborative framework, FedLLMs are particularly vulnerable to Byzantine attacks, where adversaries exploit the open-ended generative capacity of LLMs and their internal representation spaces to propagate false or biased knowledge across agents [14]–[16].

W. Ni is with the School of Engineering, Edith Cowan University, Perth, WA 6027, and the School of Computer Science and Engineering, University of New South Wales, Sydney, NSW 2052, Australia (E-mail: wei.ni@ieee.org).

As depicted in Fig. 1, a malicious client or compromised edge agent may inject subtle cross-modal perturbations, such as corrupted textual prompts, mislabeled visual samples, or biased sensory data, into its local training process, steering the local model toward distorted semantic

F. Dressler is with the Telecommunication Networks Group (TKN), School of Electrical Engineering and Computer Science, TU Berlin, Germany (E-mail: dressler@ccs-labs.org).

K. Li and H. Cai contributed equally to this work.

Figure

Fig. 1: In FedLLMs, users train their local LLMs and produce local model updates.

associations or fabricated knowledge [17]. When these adversarial updates are aggregated, the global model's latent graph and contextual alignments be corrupted, leading to systemic manipulations that produce confident yet false textual descriptions, visual interpretations, or sensor-based inferences. Over multiple communication rounds, these manipulations can cascade through the network, undermining the collective intelligence of FedLLMs. For instance, a malicious agent in a vehicular CyberEdge network might cause an LLM to create nonexistent obstacles from camera feeds, while in healthcare or industrial IoT systems, fabricated insights could misguide diagnostics or trigger unsafe automated actions.

Moreover, the distributed and privacy-preserving nature of FedLLMs amplifies the impact of Byzantine attacks, since each agent trains locally on private data, and centralized verification or direct inspection of training samples is infeasible. A single compromised agent can influence others through conversational interactions, aggregation of model updates, or semantic alignment mechanisms, gradually inducing large-scale semantic drift in the collective model. Such drift erodes the interpretability, factual consistency, and ethical resilience of the FedLLMs.

This paper presents a new Byzantine-resilient strategy to mitigate Byzantine attacks in FedLLMs that distort semantic consistency and induce factual misalignment in LLMs. The strategy introduces a self-healing mechanism within the federated aggregation process to recognize and neutralize adversarial model updates before they propagate semantic corruption across FedLLMs. A problem is cast to maximize task accuracy of the LLMs while simultaneously identifying and suppressing manipulated updates. This filters for trustworthy and semantically coherent knowledge, thereby improving the learned representations.

To adaptively enhance the resilience of FedLLMs against latent Byzantine-inducing perturbations, we design the Hypergraph Message Passing Graph Autoencoder (HMP-GAE) framework. In HMP-GAE, at the server each agent's model update that is fine-tuned by low-rank adaptation (LoRA) is represented as a node within a hypergraph, where hyperedges capture high-order semantic and contextual relationships among multiple agent updates, as opposed to simple pairwise correlations. The server performs iterative message passing across these hyperedges to refine the embeddings of benign updates, allowing collective reasoning that effectively identifies and suppresses corrupted or semantically inconsistent contributions. By leveraging hypergraph structures, HMP-GAE distills reliable relational knowledge from trustworthy agents and historical checkpoints, ensuring robust aggregation that maintains factual coherence and mitigates adversarial manipulation.

The contributions of this paper are listed as follows:

  • This paper proposes the first graph neural network-based strategy for mitigating Byzantine attacks in FedLLMs, which enhances the resilience of FedLLMs against subtle adversarial perturbations. The strategy introduces a defense perspective that focuses on preserving semantic integrity and factual consistency across distributed FL. We formulate a defense problem at benign users to maximize global task accuracy while filtering out malicious, semantically corrupted contributions during aggregation.

• We design the HMP-GAE framework to enhance FedLLMs against Byzantine attacks through structured relational reasoning and representation alignment. By modeling each agent's update as a node in a hypergraph and capturing high-order semantic relationships via message passing, HMP-GAE identifies and suppresses semantically inconsistent contributions. This hypergraph-based aggregation mechanism strengthens cross-agent knowledge coherence, preserves reasoning integrity, and mitigates adversarial manipulation.

• Extensive experiments are conducted under diverse adversarial scenarios to evaluate the HMP-GAE framework. We assess key metrics, including prediction accuracy, semantic entropy, and perplexity. HMP-GAE achieves superior accuracy and resilience while maintaining low resource overhead, validating its practicality as an effective and scalable Byzantine-resilient defense for FedLLMs under malicious model updates. The source code of the proposed HMP-GAE is released on GitHub: https://github.com/GuangLun2000/HMP-GAE.

The remainder of this paper is structured as follows. Section II reviews the literature on Byzantine-resilient mitigation, assessment, and detection in FL and LLMs. Section III investigates the state-of-the-art training architecture of FedLLMs as well as the threat model of Byzantine attacks. The proposed HMP-GAE for mitigating Byzantine attacks is described in Section IV. Section V presents the experimental implementation in PyTorch, and resilience performance analysis. Section VI concludes this paper.

References (46)