Skip to main content
QUICK REVIEW

[Paper Review] Privacy-Preserving Instructions for Aligning Large Language Models

Yu Da, Peter Kairouz|arXiv (Cornell University)|Feb 21, 2024
Privacy-Preserving Technologies in DataComputer Science5 citations
TL;DR

The paper introduces a two-stage DP framework that generates high-quality synthetic instructions and matches their distribution to real ones via a private resampling histogram, achieving strong utility close to real instructions while providing privacy guarantees.

ABSTRACT

Service providers of large language model (LLM) applications collect user instructions in the wild and use them in further aligning LLMs with users' intentions. These instructions, which potentially contain sensitive information, are annotated by human workers in the process. This poses a new privacy risk not addressed by the typical private optimization. To this end, we propose using synthetic instructions to replace real instructions in data annotation and model fine-tuning. Formal differential privacy is guaranteed by generating those synthetic instructions using privately fine-tuned generators. Crucial in achieving the desired utility is our novel filtering algorithm that matches the distribution of the synthetic instructions to that of the real ones. In both supervised fine-tuning and reinforcement learning from human feedback, our extensive experiments demonstrate the high utility of the final set of synthetic instructions by showing comparable results to real instructions. In supervised fine-tuning, models trained with private synthetic instructions outperform leading open-source models such as Vicuna.

Motivation & Objective

  • Identify privacy risks in annotating user instructions for LLM alignment and memorization.
  • Propose a two-stage framework to privately generate and filter synthetic instructions.
  • Demonstrate utility of DP synthetic instructions in supervised fine-tuning and RLHF.
  • Quantify privacy-utility trade-offs and end-to-end DP guarantees.

Proposed method

  • Fine-tune a public-pretrained LLM on private instructions with DP-Adam to create a DP instruction generator (Algorithm 1).
  • Generate a large initial set of synthetic instructions from the DP-tuned generator.
  • Cluster synthetic instructions in embedding space and construct a private histogram over real instruction clusters.
  • Resample synthetic instructions to match the private histogram (Algorithm 2).
  • Compose DP guarantees across both stages; leverage post-processing to keep DP properties.
  • Evaluate using LLaMA (7B/13B) for supervised fine-tuning and Phi-1.5 for RLHF, with MAUVE-based distribution matching and SP-based evaluations.

Experimental results

Research questions

  • RQ1Can DP-tuned generators produce synthetic instructions with utility comparable to real instructions for instruction-following models?
  • RQ2Does private resampling effectively bridge distributional gaps between synthetic and real instructions?
  • RQ3What are the privacy-utility trade-offs when combining DP fine-tuning with DP histogram resampling?
  • RQ4How do DP synthetic instructions perform in supervised fine-tuning and RLHF compared to real instructions and out-of-domain data?

Key findings

  • DP synthetic instructions achieve high utility, with an 8.6% relative improvement in a 7B LLaMA model when using resampled DP synthetic data versus unfiltered DP synthetic data.
  • In RLHF, models trained with private synthetic instructions perform comparably to models trained on real instructions without privacy guarantees.
  • The end-to-end DP cost for fine-tuning and resampling is (5.98, 5×10^-7) DP, demonstrating practical privacy guarantees.
  • After filtering, about 310k synthetic instructions remain from an initial 1M, with the private histogram filtering reducing distributional gap to real data as shown by MAUVE improvements.
  • Supervised fine-tuning with DP synthetic instructions yields competitive win-rates against baselines, including Vicuna-v1.3 and non-private data, particularly when using DP-filtered synthetic data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.