Manuscript Offprint

arXiv:2609.31262

Deduplication-while-Training: A Resilient Paradigm for Privacy-Preserving Cross-Client Deduplication in Federated Learning

Rongxi Wang, Guanxiong Ha, Chunfu Jia, Yongsheng Lin, Minfen Gao, Hanmiaomiao Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Rongxi Wang

College of Cryptology and Cyber

Science, Nankai University

Tianjin, China

Yongsheng Lin

College of Cryptology and Cyber

Science, Nankai University

Tianjin, China

Guanxiong Ha

College of Cryptology and Cyber

Science, Nankai University

Tianjin, China

Minfen Gao

School of Mathematical Science,

Nankai University

Tianjin, China

Chunfu Jia

College of Cryptology and Cyber

Science, Nankai University

Tianjin, China

Hanmiaomiao Wang

College of Cryptology and Cyber

Science, Nankai University

Tianjin, China

Abstract

Cross-client duplicate data in large language model training corpora degrades the efficiency of federated learning (FL) while exacerbating model memorization and privacy risks. Privacy-preserving cross-client deduplication effectively mitigates this issue by eliminating duplicate training data. However, existing schemes all follow a "Deduplication-before-Training" paradigm. This serially coupled paradigm incurs high fault-tolerance costs and lacks support for dynamic client joining.

To this end, we propose an unexplored paradigm called "Deduplication-while-Training (DwT)", which enables concurrent deduplication and training. DwT transforms cross-client deduplication from a one-time, globally synchronous preprocessing operation into a continuous online service with state management, concurrent claiming, and failure recovery. By enabling state synchronization and task takeover, it minimizes the impact of client disconnections on the overall training progress while supporting the dynamic joining of clients. We design DwT-FL, a privacy-preserving deduplication system, to support DwT. By designing a concurrent state-claim mechanism and a hot-cold dual-queue scheduling strategy, DwT-FL enables the parallel execution of secure deduplication and model training, while effectively handling client disconnections and dynamic joins. Experimental evaluations demonstrate that, compared to the state-of-the-art scheme, DwT-FL significantly reduces the time overhead of failure recovery and dynamic joining by up to 93.04% and 94.18%, respectively. This provides an efficient and elastic concurrent deduplication scheme for dynamic and unstable FL environments.

Keywords: Federated learning, Privacy-preserving data deduplication, Cross-client deduplication, Deduplication-while-Training paradigm

1 Introduction

The performance of large language models (LLMs) [16, 23, 36, 37, 47] depends strongly on the scale and quality of their training data. However, large real-world text corpora commonly contain noise, bias, and substantial duplicate content [1]. Duplicated sequences can cause a model to overemphasize a limited set of sample patterns, weaken generalization, and increase the risk that training data are memorized and reproduced. Prior work shows that duplicate training data are closely associated with model memorization and can further increase the success of privacy attacks [11], including membership inference attacks [32, 44] and data extraction attacks [6, 12, 18, 35, 39]. Duplicate samples also incur unnecessary computation and storage overhead, lengthen training time, and increase energy costs. Therefore, the deduplication of training data serves as a crucial step for enhancing model quality, privacy, and resource utilization in LLM training [8, 31, 38, 43].

Federated learning (FL) [13, 20, 33, 48] provides a practical approach for collaborative training on private data distributed across users or devices. Clients train models locally and upload only model updates to a central server, avoiding direct exchange of raw data [34]. FL has been applied to mobile input prediction [24], healthcare [5], smart cities [25], and edge computing [49]. However, different clients in FL can hold identical text fragments, samples, or data records, and local-only deduplication cannot identify duplicates across clients [1, 24, 50]. To perform cross-client deduplication while preserving data privacy, the system must detect duplicates without exposing the original data content. Thus, privacy-preserving cross-client deduplication represents a critical challenge in FL.

Existing privacy-preserving cross-client deduplication schemes [1, 50] rely mainly on trusted execution environments (TEEs) or cryptographic techniques to identify duplicates without directly disclosing data content. These approaches organize deduplication and training through

Conference'17, July 2017, Washington, DC, USA

  1. ACM ISBN 978-x-xxxx-xxxx-x/YY/MM...$15.00

https://doi.org/10.1145/nnnnnnn.nnnnnnn a Deduplication-before-Training (DbT) paradigm. DbT requires all participants to complete a duplicate-detection protocol synchronously before clients train on the deduplicated data. By treating deduplication as a preprocessing step, DbT ensures that clients avoid training on duplicate data, thereby reducing training costs and mitigating model memorization. However, this serially coupled design paradigm has two limitations. 1) Significant fault-tolerance costs: If some clients unexpectedly disconnect during deduplication or training, the system commonly needs to roll back its state and re-execute the prescribed protocol, introducing significant additional communication and computation overhead. 2) No support for dynamic client joining: DbT requires all clients to uniformly complete deduplication before jointly entering the training phase. When a new client joins, it is required to execute the deduplication protocol with all existing clients, which introduces high communication and computation overhead and restricts the system's scalability.

The limitations of DbT motivate us to explore a novel paradigm called Deduplication-while-Training (DwT) paradigm, which enables concurrent deduplication and training. Rather than requiring all participants to establish a common synchronized state before duplicate detection and training, DwT reduces the granularity of these operations to individual data items. Clients can come online asynchronously. After completing duplicate detection through interaction with the FL server, a client can immediately train on data for which it has obtained training rights, without waiting for other participants to be online or for global deduplication to finish. The challenge of implementing DwT lies in ensuring that duplicate content in the training data across all clients is trained exactly once, while providing both privacy preservation and high system performance within complex network environments characterized by unexpected client dropouts and dynamic joining.

We design DwT-FL, a system that implements the DwT paradigm. By designing a concurrent state-claim mechanism based on compare-and-swap (CAS) and a hot-cold dual-queue scheduling strategy, DwT-FL enables privacy-preserving cross-client duplicate detection and client-local training to proceed in parallel. It consists of clients, an aggregation server (AS), and a key server (KS). Each client first runs an Oblivious Pseudorandom Function (OPRF) protocol [10] with KS to generate protected duplicate detection data tags for local training data. AS performs duplicate detection and model-parameter aggregation. Additionally, it maintains a critical data structure for implementing DwT, the state table, which records each data item's tag, its current state, and owner information. The data states are EMPTY, PENDING, and COMMITTED, indicating that the data item is unclaimed, being trained, and successfully trained in the current round, respectively.

When multiple clients submit the same tag, AS identifies cross-client duplicate data. AS uses lock-free updates and CAS operations to handle concurrent requests and ensure a unique training right for each data item. A client that successfully claims a training right receives a training identifier, moves the data item to its local hot queue, and trains it. Other clients that own the data item receive a deduplication identifier and retain the data item in a cold queue rather than deleting it. If a training client U disconnects unexpectedly, AS uses the heartbeat mechanism and the owner information recorded in the state table to schedule training rights. AS transfers the training rights of the data to other clients that possess the same data as client U. These clients then move the data from their cold queues to their hot queues and execute the training, preventing data loss caused by client disconnections. When a new client joins during system execution, AS incrementally updates the state table without interrupting existing clients or rerunning a global deduplication protocol. In addition, AS retains historical trainers and disconnection information during cross-round scheduling to support efficient and stable multi-round federated training.

The central advantage of DwT is that it transforms cross-client deduplication in FL from a one-time, globally synchronized preprocessing operation into a continuously available service with state management, concurrent claiming, and failure recovery. This paradigm allows clients that have completed duplicate detection to enter training promptly, reducing idle waiting. It reduces the impact of client disconnections on overall training progress through state recovery and task takeover, and incrementally handles dynamically joined clients without repeating the complete deduplication process. Without changing the privacy objective that cross-client data content remains hidden, DwT coordinates the execution of data deduplication and federated training and provides a more resilient system organization for FL environments with unstable networks and dynamic participants.

In summary, our contributions are as follows:

• We propose the DwT paradigm, which for the first time transforms cross-client duplicate detection in FL from a one-time, globally synchronized preprocessing operation into a continuously available service with state management, concurrent claiming, and failure recovery. The paradigm handles client disconnections and supports dynamic client joining.

• We design DwT-FL to support DwT. Through a CAS-based concurrent state-claim mechanism and a hot-cold dual-queue scheduling strategy, DwT-FL enables privacy-preserving cross-client data deduplication and client-local training to proceed in parallel, while ensuring high scalability and resilience to client disconnections.

• We conduct a systematic evaluation of DwT-FL along the dimensions of system performance, and fault tolerance. Experimental results show that, compared to the state-of-the-art scheme, DwT-FL reduces the failure recovery time by up to 93.04%, and decreases the time overhead for dynamic client joining by up to 94.18% and 78.87% in the deduplication and training phases, respectively. Furthermore, we make the source code of DwT-FL publicly available 1^{1}.

References (53)