Skip to main content
QUICK REVIEW

[Paper Review] Synthetic Query Generation for Privacy-Preserving Deep Retrieval Systems using Differentially Private Language Models

Aldo Gael Carranza, Rezsa Farahani|arXiv (Cornell University)|May 10, 2023
Privacy-Preserving Technologies in DataComputer Science5 citations
TL;DR

This paper proposes using differentially private language models (DP-LMs) to generate synthetic queries that preserve user query privacy before training deep retrieval systems. By training retrieval models on these private synthetic queries instead of original data, the method achieves significantly better retrieval performance than direct DP-training while maintaining strong query-level privacy guarantees.

ABSTRACT

We address the challenge of ensuring differential privacy (DP) guarantees in training deep retrieval systems. Training these systems often involves the use of contrastive-style losses, which are typically non-per-example decomposable, making them difficult to directly DP-train with since common techniques require per-example gradients. To address this issue, we propose an approach that prioritizes ensuring query privacy prior to training a deep retrieval system. Our method employs DP language models (LMs) to generate private synthetic queries representative of the original data. These synthetic queries can be used in downstream retrieval system training without compromising privacy. Our approach demonstrates a significant enhancement in retrieval quality compared to direct DP-training, all while maintaining query-level privacy guarantees. This work highlights the potential of harnessing LMs to overcome limitations in standard DP-training methods.

Motivation & Objective

  • To address the challenge of applying differential privacy (DP) to deep retrieval systems that use non-per-example decomposable contrastive losses, which are difficult to DP-train directly.
  • To improve retrieval system utility under DP constraints by shifting privacy protection upstream, prior to model training.
  • To explore whether synthetic data generated by DP-fine-tuned language models can outperform direct DP-training in terms of both privacy and retrieval performance.
  • To demonstrate that query-level privacy can be preserved without sacrificing retrieval quality, especially in systems with non-decomposable losses.

Proposed method

  • Fine-tune a large language model (LM) with differential privacy (DP) on original user queries to generate private synthetic queries.
  • Use the DP-fine-tuned LM to generate a synthetic dataset of query-document pairs representative of the original data distribution.
  • Train the downstream deep retrieval system on the synthetic dataset instead of the original private data, ensuring query-level privacy by construction.
  • Leverage the pretrained LM’s generalization capacity to inject public knowledge, improving synthetic data quality and downstream model utility.
  • Apply standard contrastive loss training on the synthetic data, avoiding sensitivity issues from per-example gradient computation in non-decomposable losses.
  • Evaluate privacy leakage using canary exposure attacks to empirically validate DP guarantees, particularly under high-epsilon settings.
Figure 1: Illustration of approach.
Figure 1: Illustration of approach.

Experimental results

Research questions

  • RQ1Can synthetic query generation via DP-fine-tuned language models achieve better retrieval performance than direct DP-training of deep retrieval models?
  • RQ2Does generating private synthetic queries prior to training enable strong query-level privacy guarantees in systems with non-per-example decomposable losses?
  • RQ3How does the utility of retrieval models trained on DP-generated synthetic data compare to those trained via direct DP-SGD with the same privacy budget?
  • RQ4To what extent do DP-fine-tuned LMs leak private information, as measured by canary exposure attacks?

Key findings

  • The proposed method significantly improves retrieval quality compared to direct DP-training, even under the same privacy budget, due to higher-quality synthetic queries.
  • With an epsilon of 16, the DP-fine-tuned LM prevents canary exposure, achieving a lower bound on epsilon of approximately 0.015, indicating strong empirical privacy.
  • Canaries repeated 10 times were not leaked when using epsilon = 16, and those repeated 100 times were also not leaked, demonstrating robustness against inference attacks.
  • Training without DP led to high leakage: 67% of canaries repeated 10 times and 100% of those repeated 100 times were exposed, confirming the necessity of DP.
  • The approach enables effective privacy protection without requiring modifications to the contrastive loss or gradient computation, bypassing inherent limitations of DP-training in such models.
  • Larger language models generate higher-quality synthetic queries, though this increases computational cost, suggesting a trade-off between quality and efficiency.
Figure 2: Illustration of deep retrieval dual encoder model. Dashed lines connecting the encoders represent a shared encoder.
Figure 2: Illustration of deep retrieval dual encoder model. Dashed lines connecting the encoders represent a shared encoder.

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.