Manuscript Offprint

arXiv:2610.22722

The LLM-Attacker: A Unified Red-Team Framework for Privacy Evaluation of Split and Distributed LLM Systems

Georgios Politis, Evangelos Pappas

Abstract

Split language models keep input text on a client but send intermediate representations to a server. Attacks can reconstruct text from these messages. Comparing privacy evaluations is difficult when attackers see different messages, know different model weights or use different datasets and recovery measures. We present LLM-Attacker, a framework that records these choices and lets researchers check, compare and extend an evaluation. Compatible attacks reuse recorded messages, and their predictions are saved for independent scoring. The scoring rule requires a linked undefended reference before a defence can pass. Reports also identify attacks that remain untested. In a controlled GPT-2 experiment, adding gradients returned during training increased token recovery from 94.20% to 97.38% and exact-document recovery from 13.71% to 37.77%. The 95% interval for the token gain lay above the two-percentage-point threshold fixed before testing. This experiment is shared with a companion study; here it tests how the evaluation responds to a change in attacker access. Further studies measure how corpus choice and compression defences affect recovery, compare an adapted published attack with its reference implementation, and test the measurement code. The framework reports implementation checks separately from measured attack effectiveness. Each privacy claim should state the attacker, dataset and scoring rule, report its controls and identify untested attacks.

1 Introduction

Split learning divides a language model between a client and a server [18]. The client keeps the input text and runs the first layers. It sends the server an activation, the intermediate representation computed at each token position. During training, the server returns a gradient, which describes how changes to these representations would affect the training loss. Both messages contain information about the private text.

Prior attacks reconstruct text from gradients [21, 3, 1], activations [11, 13] or both [2]. Their results depend on which messages the attacker sees, which model weights it knows and how much public text and computation it uses. The dataset and recovery measure also matter. A defence can appear effective when the attack already fails without it. An average token score can conceal exact recovery of complete documents or sensitive spans. Researchers need these details to interpret a privacy result and compare it with another study.

What must an evaluation record and test so that another researcher can check its conclusion, compare it fairly and extend it? LLM-Attacker records what the attacker can observe, what it knows and the resources it uses. Compatible attacks run on the same recorded messages. The framework requires a linked undefended reference before a candidate defence can pass its scoring rule, and reports missing tests explicitly. Saved predictions let other researchers check the scores without rerunning the target model.

The experiments test why these choices matter. Matched reconstruction comparisons measure the effect of adding gradients to the attacker's observations. Separate studies vary the dataset and defence. Comparisons with a published attack implementation check agreement on specified inputs, while tests of the measurement code check scoring, controls and handling of the saved evidence. These checks establish different properties and are reported separately.

The contribution has three parts:

• A common evaluation procedure. We specify how to record the model, attacker access, data and resources, and how compatible attacks reuse the same observations.

• Checkable privacy results. We combine dataset-specific baselines, linked undefended controls and reports of missing tests, and retain predictions and configurations for independent scoring.

• Evidence for the procedure. We assess controlled reconstruction, agreement with a published implementation and the measurement code. The registry records the available validation evidence for all 64 modules, including three orchestration helpers.

This methodological contribution builds on two related studies. Politis and Pappas [15] audit a real two-node split-training system whose forward-message privacy check missed leakage through the returned gradient. Their study diagnoses that system's failure and tests observation coverage and probe calibration. A companion study by the same authors [16] examines how attacker observations and model knowledge affect per-token and per-document leakage. The controlled GPT-2 experiment reported here is shared with that study and provides one evidence base. Here we use it to assess the evaluation procedure alongside additional corpus, training-duration, defence and implementation studies. The broader Qwen and Mistral experiments provide further system and implementation checks under their own stated conditions.

References (21)