TL;DR
Split learning is often touted as a privacy-preserving way to run personalized LLMs on resource-constrained edge devices, but this paper reveals a massive hidden vulnerability. The authors introduce RevertLM, a novel two-stage model inversion attack that reconstructs private user text from intermediate model representations, outperforming existing state-of-the-art methods by over 60%.
What Problem Does This Paper Address?
Running Large Language Models (LLMs) locally on mobile devices is highly desirable for personalization and low latency, but these models are often too computationally heavy for edge hardware. Split learning solves this by executing the first few layers of the model on the local device and sending the resulting intermediate outputs (representations) to a cloud server to finish the computation.
Because the raw text never leaves the device, split learning is widely assumed to be secure. However, this paper addresses a critical gap: intermediate representations still leak substantial private information.
The core challenge in exploiting this leak is that as data moves deeper into an LLM, the representations become highly sparse and lose explicit token structure compared to initial embeddings. This makes traditional text-recovery attacks fail.
Methods
To overcome the sparsity of deep representations, the authors propose RevertLM, a two-stage attack framework:
- Information Purification Module: Instead of trying to decode text directly from a deep layer's sparse representation, this module projects the intermediate vector back into the semantically rich, dense embedding space. The authors found that a simple linear projection structurally mirroring the inverse of the victim model works best.
- Main Inversion Module: A generative, decoder-only language model (specifically GPT2-XL) takes these purified embeddings and autoregressively reconstructs the original text word-by-word.
To ground their attack design, the authors also apply Information Bottleneck Theory. By calculating the mutual information between the input text, the intermediate representations, and the final output across different transformer blocks, they map exactly how information propagates and leaks through the network.
Datasets
The framework was evaluated against T5 (encoder-decoder) and GPT2-XL (decoder-only) victim models using two distinct datasets:
- PersonaChat: Open-domain conversational dialogues between speakers with specific persona settings, frequently containing sensitive personal profile details.
- Wikipedia (Wiki): Content extracted from the SQuAD dataset containing complex domain knowledge, which typically poses a stiffer challenge for text inversion.
Key Insights and Ideas
- The Transformer Exception: In traditional deep neural networks, input information steadily decreases as layers deepen (the compression phase of the Information Bottleneck). However, the authors discovered that in Transformers, mutual information does not consistently decrease. Residual connections and attention mechanisms preserve input information deep into the network.
- The FFN Shield: Representations taken directly after Feed-Forward Network (FFN) layers show a massive drop in attack performance compared to those taken from Attention layers. FFN layers act as natural information compressors, making them much safer split points.
- U-Shaped Vulnerability: Intermediate representations closer to the input or the very output layers are highly susceptible to inversion attacks, while the middle blocks offer slightly better resistance.
Key Results
RevertLM achieves a massive quantitative leap over current state-of-the-art (SOTA) text reconstruction methods like Vec2text and GEIA:
- PersonaChat Breakthroughs: When attacking a T5 victim model, RevertLM achieved a ROUGE score of 0.5630 and a Cosine Similarity of 0.9021, completely blowing past Vec2text's 0.1078 ROUGE score.
- Over 60% Improvement: Across various layers and victim configurations, the two-stage purification approach consistently improved text recovery metrics by more than 60% compared to direct inversion baselines.
- Real-world Leakage: Even at the 20th decoder block, RevertLM successfully reconstructed sentences almost verbatim (e.g., perfectly recovering phrases like "no i just make boats on the weekend . what else do you do ?").
Limitations and Future Work
While the paper successfully demonstrates a devastating privacy exploit, it notes a few limitations and open directions:
- Defense Mechanisms are Lacking: Current defenses, such as adding noise or applying differential privacy to intermediate states, often severely degrade the utility of the LLM. Developing non-destructive defenses is an urgent next step.
- Complex Partitioning: The current work assumes static split points. Future work will need to evaluate how dynamic partitioning across multiple edge devices affects the attack's stability.
Ultimately, the authors warn that intermediate representations must be treated with the same strict security, anonymization, and encryption protocols as raw text data.
Summary updated