Building a Privacy-Preserving LLM Usage Analytics System (Clio)

anthropic · Tech · 2023 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Privacy-preserving LLM usage analytics and safety evaluation

Anthropic needed to understand real-world Claude usage well enough to improve evaluations, safety monitoring, refusal calibration, and product decisions without having humans read raw user conversations.

Constraints:

Architecture

Clio samples real Claude conversations, uses Claude to summarize each conversation into a private high-level request, embeds those summaries, clusters semantically related conversations, uses Claude again to name and describe clusters, audits clusters for privacy risk, applies minimum aggregation thresholds for organizations and conversations, and exposes only high-level aggregate clusters internally for evaluation and safety work.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  conversation-sampler[Conversation sampler] --> claude-summarizer[Claude summarizer]
  claude-summarizer --> embedding-pipeline[Embedding pipeline]
  embedding-pipeline --> clusterer[Clusterer]
  clusterer --> cluster-describer[Cluster describer]
  cluster-describer --> privacy-auditor[Privacy auditor]
  privacy-auditor --> aggregation-gate[Aggregation gate]
  aggregation-gate --> internal-analysis-layer[Internal analysis layer]
  internal-analysis-layer --> evaluation-design[Evaluation design]
  internal-analysis-layer --> trust-and-safety-workflows[Trust and safety workflows]
  privacy-auditor --> clio-privacy-evaluation[Clio privacy evaluation]
  clio-privacy-evaluation --> evaluation-design
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Conversation sampler Selects random real-world Claude conversations for privacy-preserving analysis. Claude summarizer
Claude summarizer Transforms each raw conversation into a high-level summary of the user's overall request. Conversation sampler, Embedding pipeline
Embedding pipeline Converts high-level summaries into semantic vector representations. Claude summarizer, Clusterer
Clusterer Groups similar summary embeddings into use-case clusters. Embedding pipeline, Cluster describer
Cluster describer Claude-based component that names and describes aggregate clusters while avoiding private details. Clusterer, Privacy auditor
Privacy auditor Model-based privacy check that scans clusters for identifying information. Cluster describer, Aggregation gate, Clio privacy evaluation
Aggregation gate Minimum-size thresholds over organizations and conversations before clusters can be exposed internally. Privacy auditor, Internal analysis layer
Internal analysis layer Aggregate cluster outputs used for evaluations, trust and safety, refusal calibration, language analysis, and post-deployment monitoring. Aggregation gate, Evaluation design, Trust and safety workflows
Evaluation design Uses Clio clusters to ground new evaluations in empirical usage rather than only hypothetical risks. Internal analysis layer, Clio privacy evaluation
Trust and safety workflows Uses aggregate clusters and rates to identify suspicious activity, over-refusals, and safety-relevant usage patterns. Internal analysis layer
Clio privacy evaluation Evaluation of the privacy auditor, grounded in Clio data and synthetic non-privacy-preserving examples. Privacy auditor, Evaluation design

Data flow

A random sample of Claude conversations is summarized by Claude rather than read by humans. The raw conversations are discarded for the analytics pipeline, summary embeddings are clustered by semantic content, Claude names and describes each cluster while avoiding private details, a privacy auditor checks whether cluster information could identify fewer than roughly a thousand people, quantitative aggregation minimums are applied, and only aggregate cluster summaries and statistics are exposed internally.

4 supporting quotes
“we use a language model to essentially process each conversation and extract a private sort of high level summary”transcript, stated
“and we compute a numerical representation for them called an embedding. And an embedding sort of corresponds to the semantic content of the sentence.”transcript, stated
“Then Claude again will look at that group and it will see, ah, okay, these are a bunch of conversations about web development”transcript, stated
“any of those conversations. No human actually has to look at the data. And even though that's sort of strictly true for general traffic, we still implemented sort of a defense in depth strategy to making sure that no private information is sort of divulged in our analyses.”transcript, stated

Why this architecture

Anthropic chose an aggregate, model-mediated pipeline because raw conversation inspection would create a privacy risk, while purely top-down evals missed real-world use. Summaries and clusters preserve enough semantic information for safety and evaluation work; privacy auditing and aggregation thresholds reduce identifiability; and synthetic examples let the team improve models without training on raw user conversations.

4 supporting quotes
“there's a fundamental tension here, where we want to understand how people are using our systems, but we also really wanna respect user privacy.”transcript, stated
“With very low privacy, there can be very high insight, but this is ethically dubious. So Alex, can you like, walk us through your memory of that conversation?”transcript, stated
“without ever having to read raw conversations. And then what we finally do once we have that hierarchy is we have another model look through all of the clusters”transcript, stated
“and then we made synthetic data for the non-privacy preserving examples. That's just one example within Clio. Yeah, so how do we go from an individual conversation to a cluster that we can”transcript, stated

Models used: Claude · embedding model · privacy auditor model

Scale

Alternatives considered (roads not taken)

Design safety evaluations only from top-down hypotheses

Rejected because: The team wanted evaluations grounded in real-world use cases rather than only hypothetical harms.

“But one thing that was missing was like, to see what is actually happening in the real world, right? Like, where it's, for example, where it is the most relevant to evaluate discrimination is, or like persuasions or misinformation,”transcript, stated
“grounding our evaluations and our measurements in sort of real world usage. So to that effect, Miles, can you describe to us in a little bit more detail how we built Clio and like,”transcript, stated

Have humans inspect raw conversations for broad analytics

Rejected because: Clio was designed so humans do not need to read raw conversation data.

“without ever having to read raw conversations. And then what we finally do once we have that hierarchy is we have another model look through all of the clusters”transcript, stated
“any of those conversations. No human actually has to look at the data. And even though that's sort of strictly true for general traffic, we still implemented sort of a defense in depth strategy to making sure that no private information is sort of divulged in our analyses.”transcript, stated

Expose individual-level or small-cluster data internally

Rejected because: Clusters pass through privacy auditing and minimum aggregation thresholds before exposure.

“and then make sure that there is nothing in those clusters that is private or identifying. And the way that we've operationalized that is anything that could be identifying to the order of,”transcript, stated
“we make sure that our clusters have a distinct, minimum distinct number of unique organizations and conversations.”transcript, stated

Train directly from user conversations to reduce over-refusals

Rejected because: Anthropic instead uses topics from Clio and hires people to generate data or creates synthetic data in those domains.

“And importantly, we're not using the actual conversations to make Claude less refusally. Instead what we're doing is we are looking at the topics and then hiring people to generate data in those domains”transcript, stated
“and then hiring people to generate data in those domains and generating synthetic data in those domains. So we're able to sort of use our users activity with Claude to improve their experience while also respecting their privacy.”transcript, stated

Patterns

privacy-preserving-processing (analytics)

Clio processes conversations into private summaries, discards raw conversations from the analytics path, audits clusters, and exposes only sufficiently aggregated outputs.

“we'll throw away the actual raw conversation. We don't need it anymore.”transcript, stated
“We can do all of this in a really privacy preserving way because we are so far removed from the underlying conversations”transcript, stated

batch-offline-processing (analytics-pipeline)

The system samples conversations, summarizes them, embeds them, clusters them, and then generates aggregate reports for downstream use.

“it takes a random sample of Claude conversations”transcript, stated
“And then we take out those conversations and we compute a numerical representation for them called an embedding.”transcript, stated

llm-as-judge (privacy-audit)

Claude is used to inspect clusters for private or identifying details before outputs become visible internally.

“we have Claude look at the conversation and say, huh, just double checking, is there any private information here”transcript, stated
“we have another model look through all of the clusters”transcript, stated

eval-driven-development (evaluation)

Clio grounds new evaluations in empirical usage and validates its own privacy auditor and clustering behavior through targeted evaluations.

“Clio has helped us with evaluations and designing more representative evaluations that are grounded in empirical usage.”transcript, stated
“we grounded our evaluations of that auditor using actual Clio data.”transcript, stated

synthetic-data-generation (privacy-preserving-training)

Anthropic uses synthetic data both to evaluate Clio and to improve refusal behavior in domains identified by aggregate usage patterns without training on actual conversations.

“we generate a huge synthetic corpus of tens of thousands of conversations”transcript, stated
“generating synthetic data in those domains.”transcript, stated

Tradeoffs

Analyze aggregate clusters instead of raw conversations

Chose High-level summaries, embeddings, clusters, and aggregate statistics over Human review of raw user conversations.

Rationale: The aggregate pipeline preserves useful signal about use cases while keeping humans far from private conversation content.

“No human actually has to look at the data.”transcript, stated
“high level aggregate clusters of usage that help us understand the risks, the benefits”transcript, stated

Require privacy and aggregation gates before internal exposure

Chose Model privacy audit plus distinct organization and conversation minimums over Exposing clusters immediately after semantic clustering.

Rationale: Even summarized clusters can identify small groups unless both content and size thresholds are enforced.

“make sure that there is nothing in those clusters that is private or identifying.”transcript, stated
“clusters have a distinct, minimum distinct number of unique organizations and conversations.”transcript, stated

Use Clio topics to generate new training data

Chose Human-generated and synthetic data in domains identified by clusters over Using the actual user conversations for model improvement.

Rationale: This lets Anthropic improve refusal behavior while respecting user privacy.

“we're not using the actual conversations to make Claude less refusally.”transcript, stated
“we are looking at the topics and then hiring people to generate data in those domains”transcript, stated

Combine top-down and bottom-up safety approaches

Chose Pre-deployment tests plus Clio post-deployment monitoring over Relying on either policy/eval design or production observation alone.

Rationale: Safety teams need both anticipated risks and empirical blind-spot discovery.

“we can strictly augment that top-down approach with a bottom-up thing”transcript, stated
“with Clio we can augment that with sort of post-deployment monitoring”transcript, stated

Gotchas (what bit them)

Top-down evals can miss real-world usage patterns.

Root cause: Researchers choose harms or capabilities to test before knowing which use cases are actually common.

Resolution: Use Clio to ground evaluation priorities in aggregate real-world usage clusters.

“Maybe it's not perfectly representative of what's going on in real world.”transcript, stated
“taking insights from real world usage.”transcript, stated

Usage analytics creates a privacy-versus-insight tension.

Root cause: More direct access to conversations gives more insight but can feel invasive or ethically dubious.

Resolution: Use high-level summaries, aggregate clusters, privacy auditing, and minimum-size thresholds.

“There's like a trade-off between the amount of insight you can get and the amount of privacy you have.”transcript, stated
“it'll be so high level and aggregated that it doesn't really affect what I feel like I can write.”transcript, stated

Cluster descriptions can accidentally leak unnecessary private details.

Root cause: A cluster name or description could include specific website names or other identifiers even after summarization.

Resolution: Instruct Claude to avoid private details and audit clusters for identifying information.

“we've specifically instructed Claude to avoid including any private details.”transcript, stated
“it will not include the name of the website, for example, because there's no need.”transcript, stated

Pre-deployment testing alone is insufficient for new capabilities.

Root cause: Real users can creatively use features such as computer use in ways pre-deployment teams did not anticipate.

Resolution: Use Clio for post-deployment monitoring alongside proactive safety work.

“we did so much work to do the pre-deployment testing of it, but we're not perfect.”transcript, stated
“we have to compliment our sort of proactive safety measures with really effective post-deployment monitoring.”transcript, stated

Evaluation

Anthropic evaluated Clio through a privacy evaluation for its auditor and synthetic corpora with known ground-truth distributions, then checked whether Clio reconstructed those distributions across random and synthetic concerning data.

Metrics: privacy-auditor performance on privacy-preserving and synthetic non-privacy-preserving examples · ground-truth distribution reconstruction · synthetic corpus with tens of thousands of conversations · known category proportions such as 10% math, 5% coding, and 2% teddy-bear questions

3 supporting quotes
“the Clio privacy evaluation. Because we actually built a tool that scans clusters for privacy issues”transcript, stated
“we generate a huge synthetic corpus of tens of thousands of conversations”transcript, stated
“we see whether we can reconstruct that ground truth distribution.”transcript, stated

Outcomes

Clio operates on random samples of Claude conversations, enforces roughly-thousand-person privacy thresholds, validates against tens of thousands of synthetic conversations, and exposes aggregate clusters only after minimum organization and conversation thresholds.

3 supporting quotes
“we found, you know, Miles did a bunch of runs that found a bunch of, you know, suspicious activity that we then flagged to our trust and safety team”transcript, stated
“the percentage of tasks in different languages differ quite a lot.”transcript, stated
“Clio allows us to strictly augment our approach to safety.”transcript, stated