Problem
Product teams building on generative AI need to know what users ask the assistant, for example how many want help with math. The logs are free text and often contain health, finance or legal details, or identifying data. Running ordinary pattern extraction on them risks exposing an individual user's content. The cost is blind product decisions: what to build next and which requests the assistant fails.
Example from the article: The authors analyze a random sample of 50,000 English messages from the public WildChat dataset (real ChatGPT conversations) as a stand-in for private logs.
Solution in brief
Ask an LLM to rewrite each user's first message as a short, generic task description. Then run differentially private n-gram extraction (DPNE) on the rewrites. DPNE releases only word sequences that many different users produce, with a formal privacy guarantee. Group the released n-grams into themes and report their coverage.
Questions this case answers
- How to extract the most frequent user intents from free-text interaction logs that contain sensitive data, with a formal privacy guarantee
- How to mine usage patterns from private text at fine granularity without exposing any individual user's content
- How to find out what users ask an AI assistant without reading their private conversations?
- How to count the most common user intents in chat logs with a formal privacy guarantee?
Tools and methods
- Differentially Private n-gram Extraction (DPNE) — releases frequent n-grams from private text with a user-level privacy guarantee; open-sourced by Microsoft in 2021
- GPT-4o — rewrites messages into normalized intents and names the themes of clusters
- Agglomerative clustering — groups DP n-grams into themes. Also used for the baseline on raw message embeddings
- Sentence Transformers (all-MiniLM-L6-v2) — embeddings for the baseline clustering
Google or a one-time email code. No password.