Introduction
As Large Language Models (LLMs) scale to hundreds of billions of parameters, the computational burden of training on a single cluster has become prohibitive. Decentralized training, utilizing pipeline parallelism to distribute model layers across geographically dispersed GPUs, has emerged as a viable solution. In this paradigm, participants (stages) process a subset of layers and pass intermediate data—activations—to the subsequent stage. While previous research has focused on the robustness and efficiency of these pipelines, the privacy of the training data was largely assumed to be protected because raw data is never explicitly shared.
This paper introduces the Activation Inversion Attack (AIA), a novel threat that demonstrates how an "honest-but-curious" participant in a decentralized training pipeline can reconstruct sensitive training data with high precision by simply observing the activations they receive.
The Activation Inversion Attack Framework
The AIA is a passive, two-step framework that does not require access to the victim's full model parameters or gradients.
- Shadow Dataset Construction: The attacker leverages a publicly available dataset (e.g., WikiText) and a frozen, pre-trained version of the victim's model (e.g., a base LLaMA or GPT-2 model). By passing the public text through these pre-trained layers, the attacker generates a "shadow dataset" of text-activation pairs.
- Attack Model Training: The attacker then trains a specialized generative model. Unlike standard LLMs, this "Attack Model" lacks an initial embedding layer; it is designed to take activations as input and learn the mapping back to the original text labels using the shadow dataset.
Once trained, the attacker can feed live activations captured during the victim's decentralized training into the Attack Model to reconstruct private training samples.
Key Insights: Why the Attack Succeeds
The effectiveness of AIA stems from Activation Stability. The researchers discovered that activations for the same data remain remarkably consistent before and after fine-tuning, often maintaining over 90% cosine similarity in the early layers of the model. This stability allows a generic pre-trained model to serve as an effective proxy for generating the shadow dataset used to train the attack model.
Furthermore, the attack is capable of character-level precision. It does not merely capture the semantic "gist" of a sentence but can reconstruct high-entropy, structured strings such as Social Security Numbers (SSNs), phone numbers, and Bitcoin addresses—data typically considered the most difficult to guess or recover.
Experimental Results
The AIA was evaluated across several architectures, including GPT2-XL, Bloom-7B1, and LLaMA3-8B, using datasets like ArXiv, OpenWebText, and a specialized PII dataset.
- Reconstruction Quality: The attack achieved ROUGE-L scores as high as 0.98 on general datasets like The Pile, indicating near-perfect reconstruction.
- PII Extraction: The attack proved devastatingly effective at stealing sensitive information. For the Bloom-7B1 model, the Attack Success Rate (ASR) reached 61% for private emails and 41% for phone numbers. For highly structured data like birthdays, the ASR approached 100% across most models.
- Model Alignment: Interestingly, LLaMA3-8B showed higher resistance to PII theft, likely due to pre-training alignment that replaces sensitive data with placeholders.
Conclusion and Future Work
The Activation Inversion Attack exposes a critical privacy gap in current decentralized training frameworks. While effective, the attack currently requires architecture matching between the attack and victim models and struggles with very long sequences.
The findings underscore the urgent need for robust privacy-preserving mechanisms in pipeline parallelism. Future research should explore the integration of techniques such as Differential Privacy (DP) or Homomorphic Encryption to protect activations without compromising the efficiency gains of decentralized training.
Summary updated