Prune the Leaky Neurons: Mitigating Private Data Leakage in Fine-Tuned LLMs via Joint-Embedding-Guided Pruning
Abstract
Fine-tuning large language models (LLMs) on proprietary records enables domain adaptation but introduces two challenges: (i) privacy leakage of memorized private data, such as personally identifiable information (PII), and (ii) balancing private data removal with utility preservation. Existing defenses, including data sanitization and differential privacy, often degrade performance, while privacy-neuron editing lacks a PII-free reference to distinguish identity-specific neurons from those supporting useful text. We propose JEPA-Prune, a post-hoc neuron pruning framework guided by a model trained exclusively on PII-free views. Alongside the fine-tuned private model, JEPA-Prune, trains a public model on surrogate and masked views of the same records using a joint-embedding predictive architecture (JEPA), capturing domain knowledge without identifiers. A cross-model representation probe quantifies deviations between private representations of leaked records and this PII-free reference. Integrated gradients and a scale-invariant specificity score then identify PII-responsive neurons, which are pruned without retraining. Experiments show that pruning just 1.6% of neurons reduces PII inference accuracy by up to 7.4x and PII extraction recall by up to 13.9x, while keeping unseen-text perplexity within 16% of that of the unpruned model for most LLMs. In contrast, privacy-neuron editing increases perplexity by at least 26x.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
Related papers
Best of Both Worlds: Fine-Tuned Small Models Complement LLMs for Cost and Performance Benefits
Shared title terminologycs.CLShivam Mathur, Sri Harish Popuri, Priya Krishnan Sundararajan et al.
Group-Balanced Supervised Fine-Tuning for Knowledge-Intensive Domains
Shared title terminologycs.CLMark Heimann, Bruno Jacob
Self-Distillation for Supervised Fine-Tuning
Shared title terminologycs.CLWenxuan Zhu, Bang An, Shuming Liu et al.
Hidden Cartographer: Hidden State Guided Data Selection for Dual Budgeted Instruction Tuning
Shared title terminologycs.CLZixuan Qin, Qi Qin, Erbo Li et al.
Trallie: from Free-Form Text to Structured Data with LLMs
Shared title terminologycs.CLVijayasri Iyer, Cristiano De Nobili, Mubashir Hussain Shah et al.
Empirical Margin Sensitivity: An Interventional Neuron-Level Probe of Post-Trained Medical LLMs
Shared title terminologycs.CLAniruddh Shreyas, Aarnav Kembhavi, Minal Moharir