Examples

Here are some examples of how to use the Private Evolution library.

Images

Text

These examples follow the experimental settings in the paper Differentially Private Synthetic Data via Foundation Model APIs 2: Text (ICML 2024 Spotlight).

  • Yelp dataset: These examples show how to generate differentially private synthetic text for the Yelp dataset using LLM APIs from:

  • OpenReview dataset: These examples show how to generate differentially private synthetic text for the OpenReview dataset using LLM APIs from:

  • PubMed dataset: These examples show how to generate differentially private synthetic text for the PubMed dataset using LLM APIs from: