Differentially Private Steering for Large Language Model Alignment
Anmol Goel, Yaxi Hu, Iryna Gurevych, Amartya Sanyal
TL;DR
This work tackles privacy in LLM alignment by studying activation editing under formal differential privacy guarantees. It introduces PSA, a simple, training-free method that adds calibrated noise to private steering vectors computed from positive and negative demonstrations, ensuring $(|\mathcal{S}|\varepsilon,|\mathcal{S}|\delta)$-DP while preserving alignment, generation quality, and general reasoning. Across seven alignment benchmarks and multiple open-source LLMs, PSA achieves DP guarantees with minimal utility loss compared to non-private steering and often outperforms zero-shot baselines. An accompanying Membership Inference Attack demonstrates empirical privacy improvements, and scaling to larger models further strengthens the privacy-utility tradeoff, underscoring the practical viability of privacy-preserving LLM steering.
Abstract
Aligning Large Language Models (LLMs) with human values and away from undesirable behaviors (such as hallucination) has become increasingly important. Recently, steering LLMs towards a desired behavior via activation editing has emerged as an effective method to mitigate harmful generations at inference-time. Activation editing modifies LLM representations by preserving information from positive demonstrations (e.g., truthful) and minimising information from negative demonstrations (e.g., hallucinations). When these demonstrations come from a private dataset, the aligned LLM may leak private information contained in those private samples. In this work, we present the first study of aligning LLM behavior with private datasets. Our work proposes the Private Steering for LLM Alignment (PSA) algorithm to edit LLM activations with differential privacy (DP) guarantees. We conduct extensive experiments on seven different benchmarks with open-source LLMs of different sizes (0.5B to 7B) and model families (LlaMa, Qwen, Mistral and Gemma). Our results show that PSA achieves DP guarantees for LLM alignment with minimal loss in performance, including alignment metrics, open-ended text generation quality, and general-purpose reasoning. We also develop the first Membership Inference Attack (MIA) for evaluating and auditing the empirical privacy for the problem of LLM steering via activation editing. Our experiments support the theoretical guarantees by showing improved guarantees for our PSA algorithm compared to several existing non-private techniques.
