Differentially Private Steering for Large Language Model Alignment

Anmol Goel, Yaxi Hu, Iryna Gurevych, Amartya Sanyal
1/30/2025
cs.CLcs.LG

No official code found. Best implementation: UKPLab/iclr2025-psa (9 stars, Apache-2.0, last commit 2025-04-17).

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.

View on arXivView PDF

Code Implementations(1)

UKPLab/iclr2025-psaCommunity100%
Apache-2.0

Code for the paper "PSA: Differentially Private Steering for LLM Alignment" accepted at ICLR 2025

91PythonJan 27, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{goel2025differentially,
  title  = {Differentially Private Steering for Large Language Model Alignment},
  author = {Anmol Goel and Yaxi Hu and Iryna Gurevych and Amartya Sanyal},
  year   = {2025},
  eprint = {2501.18532},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.18532v2},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.18532.svg)](https://codeofpaper.com/paper/2501.18532)

Discussion