Manuscript Offprint

arXiv:2608.21172

Thermo-FL: Thermal-Aware Robust Federated Fine-Tuning of Large Language Models for Edge AI

Shiva Shrestha, Kazi Shaharair Sharif, Zongxing Xie, Jiajing Huang, Anhao Xiang, Honghui Xu

Shiva Shrestha*, Kazi Shaharair Sharif*, Zongxing Xie*, Jiajing Huang†, Anhao Xiang‡, and Honghui Xu‡

  • Department of Computer Science, Kennesaw State University

Marietta, GA 30060, USA

{sshres16,ksharif2}@students.kennesaw.edu

zxiel@kennesaw.edu

† School of Data Science and Analytics, Kennesaw State University

Marietta, GA 30060, USA

jhuang24@kennesaw.edu

‡ Department of Information Technology, Kennesaw State University

Marietta, GA 30060, USA

{axiang,hxu10}@kennesaw.edu

Abstract—Federated fine-tuning enables large language models to adapt on edge devices without centralizing private data, but practical deployments must address hardware instability and adversarial update corruption together. Thermally constrained clients may throttle, slow local training, or delay synchronous aggregation, while Byzantine clients and communication-layer adversaries can corrupt the updates used to form the global model. To address these challenges, we present Thermo-FL, a thermal-aware federated LoRA fine-tuning framework that uses device temperature as an active control signal for local adapter training and sparse update transmission. On the client side, Thermo-FL adjusts the active LoRA-layer fraction and transmitted update density as devices heat or cool, reducing workload under thermal stress. On the server side, Thermo-FL introduces TERRA, a robust aggregation pipeline for dynamically sparse LoRA updates that combines norm filtering, mask-aware directional validation, adaptive active-coordinate clipping, and mask-aware aggregation. We evaluate Thermo-FL using both a large-scale emulator and a Jetson-based physical testbed. In the emulator, Thermo-FL improves robustness under adversarial sparse aggregation and achieves the strongest BoolQ accuracy across clean and attack settings while remaining competitive on GSM8K. In the physical prototype, Thermo-FL stabilizes device temperature, reduces compressed upload size through bitmap sparse encoding, and preserves GSM8K utility under sign-flip/scale and MITM perturbations. These results show that secure edge LLM adaptation should jointly consider hardware behavior, workload regulation, sparse communication, and aggregation robustness.

I. INTRODUCTION

The increasing deployment of large language models (LLMs) has brought sophisticated language understanding and generation capabilities directly to edge devices, such as mobile phones, drones, robots, vehicles, medical systems, and industry sensors [1], [2]. This shift creates a rapidly growing need to personalize and adapt the LLMs to domain-specific tasks using the data generated outside the centralized cloud server environments. For individual users, local data may capture preferences, writing style, language, and interaction patterns, and for small organizations, clinics, field teams, and industrial operators, local data may contain domain vocabulary, operational procedures, sensitive records, internal reports, and so on that are difficult to centralize because of privacy, cost, and government constraints [3]. This need is already visible in large-scale mobile systems, where federated learning (FL) has been used to improve the on-device keyboard and language model behaviour without collecting users' raw data text [4]. Federated Learning offers a promising path for this setting by allowing multiple clients to adapt the shared model collaboratively without having to upload the raw data to the central server [5]. In particular, combined with the parameter-efficient fine-tuning (PEFT) techniques like Low-Rank Adaptation (LoRA), federated learning allows the resource-constrained devices to collaboratively adapt the LLMs without updating the entire model [6].

However, federated learning on the edge devices is not a simple scaled-down version of the cloud-based distributed training [7]. Unlike cloud servers, edge devices operate under limited power, constrained cooling, and unstable runtime conditions, which can delay the training process, reduce client participation, and increase the communication overhead. At the same time, unlike cloud servers running in the controlled data center, edge devices are deployed in the physically open and often unmonitored environments, which may expose the federated process to adversarial threats, including but not limited to corrupted client updates and communication-layer perturbations [8]–[11]. These realities impose a simultaneous demand, where the system must respect both hardware limitations while still protecting the global model from unreliable or malicious updates.

Existing federated LLM fine-tuning methods address individual aspects of this problem, but they rarely treat hardware constraints and adversarial robustness as coupled design requirements. PEFT reduces the number of trainable parameters, allowing edge devices to fine-tune the LLM even in resource-constrained environments [12], [13]. Robust aggregation methods can mitigate the corrupted or malicious updates at the server side [14]–[17]. However, these methods are typically developed independently, where hardware conditions are treated as external runtime conditions, while robustness is treated as a server-side filtering problem over the received updates. In practice, under the edge environment, this assumption can break down. A thermally stressed client may experience throttling, delayed training, or reduced participation [18], [19], while an adversarial client or communication-layer perturbation may produce abnormal updates that also appear unreliable to the server [8], [9], [11]. Therefore, an edge federated fine-tuning framework must reduce the burden on resource-constrained clients while protecting the server-side aggregation from unreliable or malicious updates. This motivates the development of a framework that is hardware-aware on the client side and robust on the server-side.

To address this gap, we propose Thermo-FL, a hardware-aware and robust federated learning framework for LoRA fine-tuning of LLMs on thermally-constrained edge devices. On the client-side, Thermo-FL uses the device temperature as a control signal to regulate local LoRA adaptation and sparse update transmission. When a client becomes thermally stressed, the framework reduces computation and communication load for that client, and when the temperature remains within the safer thermal range, it can participate more fully. On the server side, Thermo-FL introduces TERRA (Thermo-Enhanced Robust Round Aggregation), a robust aggregation layer that protects the global model by applying magnitude filtering, directional validation, and adaptive clipping to received updates. Together, these client-side and server-side mechanisms allow Thermo-FL to adapt to hardware-induced irregularities while also maintaining robustness against adversarial attacks. To sum up, the key contributions of this paper are summarized as follows:

• We propose Thermo-FL, a hardware-aware and robust framework for federated LoRA fine-tuning on thermally constrained edge devices.

• A temperature-driven client policy is formulated to dynamically modify LoRA training and sparse update transmission based on the device thermal conditions.

• TERRA is designed as a robust aggregation layer tailored to dynamically sparse LoRA updates, combining magnitude control, directional validation, and adaptive clipping to mitigate corrupted updates.

The remainder of the paper is organized as follows: Section II presents background on federated learning and LoRA. Section III defines the system and threat model. Section IV describes Thermo-FL and TERRA. Section V presents the evaluation. Section VI discusses implications and limitations, Section VII reviews related work, and Section VIII concludes.

References (47)