AI privacy is the discipline of preventing an AI system from revealing, inferring, retaining, or unnecessarily processing information about people. It covers the whole information lifecycle: collection, labeling, training, fine-tuning, evaluation, retrieval, prompting, inference, logging, support, sharing, and deletion. Privacy is not achieved merely by removing names from a spreadsheet. A model can preserve unusual phrases, infer a sensitive attribute from harmless-looking signals, or expose a private record through a prompt even when the original database is access-controlled.
This guide owns privacy risks and privacy engineering for AI: data minimization, memorization, membership inference, model inversion, linkage, extraction, privacy threat models, differential privacy, federated learning, retention, deletion, and practical testing. It is distinct from AI ethics, which addresses values and contested social impact; AI security, which protects systems and assets from unauthorized action; and AI governance, which assigns organizational authority and evidence duties. Those disciplines connect, but privacy asks a specific question: what information about a person can this system expose or derive, to whom, under what conditions, and for how long?
Privacy must be evaluated at system level. A private foundation model can become a privacy problem when a retrieval connector, prompt log, analytics vendor, agent tool, or human review queue receives sensitive content. Conversely, a public model endpoint can be used in a low-risk setting when inputs are minimized, retention is contractually constrained, and the application never sends identifying data. The boundary of analysis is the complete data flow, not the model card alone.
Start with the data that the system actually needs
Minimization begins with purpose, not with a later redaction pass. State the user task, the decision or response it supports, the people affected, and the smallest information set that can achieve that task. A support summarizer may need issue text, product context, and chronology, but not a full account number, unrestricted mailbox, or historical profile. A classifier may need a coarse age band rather than a birth date. If a field does not change the output or improve a measured operational objective, its presence requires a strong justification.
Separate identity from content wherever the workflow permits. Use short-lived tokens, scoped join tables, coarse geography, date windows, and purpose-specific views. Do not assume pseudonyms are anonymous: rare combinations, free text, timestamps, and quasi-identifiers can reconnect records. Keep re-identification material outside the model pipeline and limit who can join it. Hashing is not automatically anonymization when the candidate space is small or the same hash is reused across systems.
Minimization also applies to derived data. Embeddings, summaries, labels, confidence scores, conversation titles, traces, and evaluation annotations may retain personal information even after source text is removed. Treat every derived artifact as a possible disclosure surface. Document whether it is reversible, searchable, exportable, copied to a vendor, or used for later training.
| Lifecycle surface | Privacy question | Useful control |
|---|---|---|
| Collection | Is each field necessary for the stated purpose? | Purpose-specific schema and field allowlist |
| Training | Can rare or sensitive records influence the model? | Deduplication, curation, privacy accounting, access limits |
| Inference | Who receives prompts, retrieval results, and outputs? | Authorization, minimization, redaction, scoped tools |
| Operations | What copies persist in logs, traces, caches, or backups? | Retention limits, content suppression, deletion tests |
Map privacy across the AI lifecycle
A lifecycle map should identify actors, data categories, transformations, destinations, access paths, retention periods, and deletion dependencies. Collection brings consent, notice, source legitimacy, and purpose questions. Preparation adds labeling exposure, joins, deduplication, and hidden sensitive fields. Training and fine-tuning create memorization and provenance questions. Evaluation can expose test records to reviewers or external benchmark services. Serving introduces prompts, retrieval, tool calls, output sharing, and logs. Operations add support tickets, telemetry, backups, caches, and vendor access.
Draw separate paths for training data, inference data, telemetry, and human review. They often have different purposes and retention rules. A provider may promise not to train on API prompts while retaining them for abuse monitoring; an application may disable provider training while storing the same prompts indefinitely in its own observability platform. Both paths matter. Record the effective policy and configuration in the environment where data moves, rather than relying on a sales description.
Deletion is a graph problem. Removing a row from a source table may not remove copies in a training shard, feature store, vector index, cache, evaluation set, exported report, backup, or model checkpoint. For every data category, state what deletion means, which artifacts are affected, what cannot be surgically removed, and what compensating action is available. A deletion claim should describe scope and residual risk honestly.
Use a privacy threat model, not a generic checklist
A privacy threat model names the protected subjects, adversaries, assets, attack surfaces, capabilities, and harms. Subjects may include customers, employees, patients, children, creators, or people mentioned in documents who never use the product. Adversaries may be an anonymous user, an authorized but curious employee, a compromised integration, a malicious evaluator, a provider operator, or an analyst with auxiliary data. Assets include raw records, inferred attributes, membership status, identity links, confidential relationships, and the ability to remain unobserved.
Describe attacks by access level and goal. An outsider may submit prompts and inspect outputs. An insider may query a search index or export logs. A researcher may obtain weights and run offline extraction. A partner may see aggregate reports that become identifying when combined with public facts. For each attack, record prerequisites, expected signal, affected population, severity, detectability, and mitigation. Privacy threats are not identical to security vulnerabilities: a perfectly authenticated analyst can still receive an unnecessarily detailed report.
Threat modeling should include ordinary use, not just malicious behavior. A well-meaning employee can paste a case file into a public assistant. A retrieval system can return a neighboring tenant’s document because authorization was checked at ingestion but not at query time. A support tool can place sensitive text into a ticket title that is visible to a much larger group. Misuse cases and accidental disclosure deserve explicit tests.
Understand memorization and extraction
Memorization occurs when training examples influence parameters or behavior strongly enough that a model can reproduce, recognize, or make unusually specific references to them. It is more likely for rare, repeated, structured, or high-duplication records, long secrets, and unusual personal narratives. Memorization is not binary: models may retain exact strings, partial sequences, statistical associations, or a tendency to complete a rare phrase. A benchmark score cannot establish that memorization is absent.
Extraction tests probe whether prompts can elicit training content or sensitive completions. Test with canaries placed in controlled data, rare-string probes, prefix completion, repeated sampling, and prompts that vary context. Compare results with a control model or a model trained without the canary. Do not publish discovered personal content in a report. Minimize the test corpus, restrict access, and record the test model, decoding settings, prompt set, sample count, and decision rule.
Mitigations include deduplication, removal of unnecessary sensitive fields, lower retention, access controls around checkpoints, data curation, regularization, privacy-preserving training, and refusing to train on data whose purpose cannot be defended. Fine-tuning a general model on a small confidential corpus is especially risky because examples may be overrepresented. Training data quality work should therefore include privacy provenance and sensitivity labels, not only relevance and cleanliness.
Measure membership inference separately
Membership inference asks whether an attacker can determine that a particular record was included in training. The attacker may use confidence, loss, likelihood, output differences, or auxiliary information. A system can fail membership inference without reproducing the record: confirming that a person’s medical visit, whistleblower report, or customer complaint appeared in a corpus can itself be sensitive.
Test realistic attacker knowledge. A white-box test with weights and training metadata answers a different question from a black-box test against a hosted endpoint. Construct matched members and non-members from the same distribution, calibrate thresholds on held-out data, and report false-positive and false-negative rates. Evaluate subgroups and rare records because aggregate performance can conceal risk. Compare the attack to a baseline that uses only public or auxiliary information.
Do not treat a weak attack as proof of safety. Attack quality depends on sampling, model access, output limits, and population shift. Conversely, a statistically detectable signal does not automatically prove meaningful harm. Interpret the result with the sensitivity of the record, the scale of exposure, the attacker’s cost, and available remedies.
Model inversion and attribute inference need different controls
Model inversion attempts to reconstruct representative or specific features from model behavior, often using repeated queries, gradients, or known labels. Attribute inference estimates a hidden characteristic from visible inputs and outputs. A face recognition model may reveal a sensitive trait through an embedding or score; a credit model may allow an observer to infer income band from a recommendation. The danger may arise even when no source row is reproduced.
Limit output precision, avoid exposing unnecessary confidence scores, rate-limit sensitive endpoints, and test whether repeated queries create a high-resolution signal. Separate internal diagnostic interfaces from public prediction APIs. Apply access controls to embeddings and intermediate representations because “not human readable” does not mean non-sensitive. Review whether downstream users can combine scores with reference data to reconstruct an identity or protected attribute.
Inversion defenses can reduce utility. Noise, rounding, aggregation, and query limits should be selected against a defined threat model and measured for subgroup impact. If a model’s purpose requires fine-grained output for a small authorized team, do not expose the same interface to the public. Privacy is often improved by changing the product boundary rather than trying to make one endpoint safe for every audience.
Use differential privacy when the guarantee fits the question
Differential privacy provides a formal bound on how much an output distribution can change when one person’s record is added or removed from a dataset. Its value is that it addresses individual contribution rather than promising that a model “does not memorize.” The guarantee depends on the algorithm, privacy parameters, neighboring-dataset definition, composition across releases, and implementation assumptions. It is not a label that can be attached to any anonymized dataset.
For training, differentially private optimization usually clips per-example influence and adds calibrated noise. Privacy accounting tracks how repeated steps consume a budget. Smaller privacy loss generally means more noise and potentially lower utility, especially for rare classes or small datasets. Report the accounting method, sampling assumptions, clipping strategy, noise, delta choice, number of releases, and utility impact. Avoid presenting epsilon as a universal risk score that can be compared without context.
Differential privacy does not solve access control, purpose limitation, malicious prompts, or sensitive output sharing. It also does not protect information introduced after training, such as private retrieval documents or user prompts, unless those paths are separately designed. A privacy-preserving aggregate can still be unsafe if the application releases many correlated queries or combines it with a narrow population.
Federated learning changes where data moves
Federated learning keeps some training data on participating devices or institutions while coordinating updates. This can reduce central collection, but it does not make the update channel automatically private. Gradients or model updates may reveal information, clients may be malicious, and a coordinator can correlate participation or timing. Secure aggregation, clipping, differential privacy, robust update validation, and careful participation policies may be needed.
Define the trust model before selecting federated learning. Is the coordinator trusted not to inspect individual updates? Can clients collude? Are devices secure? Is participation itself sensitive? What happens when a hospital, employee, or household leaves? Measure communication, convergence, poisoning resilience, and privacy leakage. Federated learning is a placement pattern, not a complete privacy program.
Protect prompts, retrieval, and logs
Inference privacy failures frequently occur outside model weights. Prompts may contain names, account records, source code, health details, or legal advice. Retrieval may return documents that the requesting user is not authorized to see. Tool calls may transmit data to a third-party API. Logs may capture the full prompt, full completion, citations, latency metadata, and identifiers. Traces may be copied into development accounts or retained by an observability vendor.
Make privacy-preserving defaults concrete: redact or tokenize before transmission, use field-level allowlists, enforce authorization at retrieval time, suppress sensitive prompt and output bodies from routine logs, encrypt exceptional traces, set short retention, and isolate production data from development. Log enough metadata to investigate without recording the content by default. Test denied access, cross-tenant retrieval, prompt injection that requests hidden records, and support workflows that export transcripts.
Human review is also processing. Reviewers need a defined purpose, least-privilege queue, confidentiality controls, sampling policy, retention limit, and escalation path. If a vendor performs annotation or safety review, identify the location, subcontractors, access window, deletion process, and whether content is reused. A privacy notice that omits human review can misdescribe the actual system.
Federate identity from privacy decisions
Privacy and identity are connected but not interchangeable. Strong authentication can tell you who requested a result; it cannot justify sending that person every available attribute. Conversely, anonymous use may be acceptable for a low-risk public feature but inappropriate for a high-impact decision. Define access by purpose, data category, action, and context. Record whether an identity is required, optional, or deliberately unavailable.
Use separation of duties for re-identification. The analyst who investigates aggregate quality should not automatically hold the lookup key. Approval to access raw content should expire, be logged, and be reviewed. Service accounts should receive only the fields and tools needed for a defined workflow. If an agent can act on behalf of a user, bind every tool call to the user’s authority rather than trusting the model’s textual claim.
Design privacy-preserving evaluation
Evaluation datasets often become a second shadow training set. Remove unnecessary identifiers, restrict evaluator access, separate development and final test sets, and prevent benchmark prompts from entering provider training. Use synthetic or transformed examples when they preserve the property under test. Synthetic data can reduce direct exposure, but validate that it does not reproduce real records or erase the very minority patterns the evaluation must measure.
Privacy evaluation should test both leakage and usefulness. Measure extraction, membership, inversion, unauthorized retrieval, log exposure, deletion behavior, and re-identification risk. Report performance by sensitive or vulnerable subgroup where lawful and necessary, with enough aggregation to avoid exposing individuals. Treat failed privacy tests as release-blocking when the potential harm is severe or the exposure is broad.
Make privacy controls operational in enterprise systems
In enterprise AI, privacy cannot depend on every employee remembering a policy. Put controls at procurement, data access, development, deployment, and operations boundaries. Require a registered purpose before production credentials, approved data sources before indexing, provider settings before API use, privacy review for new sensitive categories, and deletion tests before a system is declared complete.
Track evidence: data inventory, purpose statement, flow map, threat model, provider terms, retention configuration, access tests, extraction results, deletion test, incident contact, and approved exceptions. Reassess after a model swap, prompt or retrieval change, new connector, new geography, new user population, or material change in autonomy. A privacy control that is not revisited after architecture changes is historical evidence, not current protection.
Measure control operation rather than policy publication. Useful signals include percentage of systems with data-flow maps, sensitive fields blocked before model calls, unauthorized retrieval tests passed, prompts excluded from routine logs, deletion requests completed by artifact type, privacy incidents by source, mean containment time, and overdue reviews. Metrics need denominators and scope; a low incident count can mean low reporting rather than low risk.
Choose the right response when privacy cannot be guaranteed
Some risks are not solved by another filter. If a use case requires collecting information unrelated to the purpose, redesign or reject it. If deletion cannot reach a high-sensitivity checkpoint and the purpose has low value, do not train the checkpoint. If a provider cannot answer where prompts go, who can access them, or how retention works, choose a different route or keep the data out. If a public endpoint makes re-identification easy, narrow the audience or remove the feature.
Document residual risk precisely. State what is protected, what remains possible, who could exploit it, what controls reduce likelihood or impact, and who accepted the remainder. Do not turn uncertainty into a claim that no personal data is involved. Privacy engineering is credible when it makes limitations visible early enough to change the design.
Where AI privacy connects in the Knowledge graph
AI privacy connects data, application, and accountability layers. It depends on training data provenance and curation, interacts with synthetic data generation and validation, and supplies evidence to AI governance. It intersects AI security where access, extraction, and logging are attack surfaces, and it raises value and dignity questions for AI ethics. These links are complementary: privacy asks whether information about people is exposed or inferred, while neighboring disciplines answer different questions.
Closing
Trustworthy AI privacy starts with a narrow purpose and follows information through every transformation. Minimize fields, separate identity, model realistic threats, test memorization and inference, choose formal techniques when their guarantees fit, protect prompts and logs, make deletion concrete, and measure controls in operation. The strongest privacy program is not the one with the most redaction rules; it is the one that collects less, exposes less, learns less than it does not need, and can explain what remains possible when the system changes.
References and further reading
- National Institute of Standards and Technology. Privacy Framework 1.0.
- Cynthia Dwork and Aaron Roth. The Algorithmic Foundations of Differential Privacy.
- National Institute of Standards and Technology. AI Risk Management Framework 1.0.