Can large language models keep secrets? Testing the privacy implications of language models based on contextual integrity theoryCan LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theory
The authors propose CONFAIDE, a privacy-reasoning benchmark based on contextual integrity theory, and test 6 LLMs; the authors state that GPT-4 and ChatGPT leak secrets to inappropriate recipients 39% and 57% of the time, respectively, in Tier 4.
- Existing LLM privacy research focuses only on training data leakage and overlooks the interactive setting at inference time where the model receives information from multiple sources and generates an output to be shared: can the model decide, as a human would, whether to disclose information depending on the context?
- Based on contextual integrity theory, the authors build a four-tier benchmark, CONFAIDE, progressing from information-sensitivity ratings to three-party secret scenarios involving theory of mind and to meeting-summary/action-item generation, using MTurk human annotations as a comparison.
- For the 6 models, correlation with human judgments decreases as the tier rises (GPT-4 from 0.86 to 0.10); in Tier 3 the ChatGPT string-match leakage rate is 0.93 and GPT-4's is 0.22 (worst case); in the Tier 4 summary task GPT-4/ChatGPT leak secrets 0.39/0.57; neither privacy instructions nor CoT reduce leakage.
- The authors point out that temporary defenses (privacy prompts, CoT, output filtering) are insufficient to solve contextual privacy reasoning and that more fundamental methods are needed; Tier 4 string matching missed 16 paraphrased leaks, so true leakage is higher; no human annotation was collected for Tier 4; annotator background information was not collected.
- Threat model
- Inference-time privacy threat: LLMs receive inputs from multiple sources during interaction (e.g., email history, meeting records) and generate outputs that will be shared with other entities, potentially exposing sensitive input information in ways that violate contextual norms; the paper does not involve an attacker, and examines whether the model itself has the ability to control information flow according to context.
- Evaluated models
- GPT-4 (gpt-4-0613)ChatGPT (gpt-3.5-turbo-0613)InstructGPT (text-davinci-003)Llama-2 Chat (70B)Llama 2 (70B)Mixtral
- Benchmarks
- CONFAIDE
- Metrics
- Pearson correlationSensitivity scoreLeakage rate (string match / proxy agent)Information Accessibility ErrorBinary Control Question error rateOmits Public Information rate
The research team proposed the ConfAIde benchmark to evaluate the privacy reasoning capabilities of instruction-tuned LLMs in concrete contexts, finding that GPT-4 and ChatGPT leaked privacy information in 39% and 57% of cases, respectively, in scenarios where humans would not leak privacy information. The benchmark is based on contextual integrity theory and examines how models judge what to share, for what purpose, and with whom under multi-source inputs. Leakage persisted even with prompts inducing privacy protection or chain-of-thought reasoning. The paper calls for exploring inference-time privacy protection methods based on reasoning and theory of mind.
Related events and news
0 events · 3 news mentions
News that mentions this paper
- Future of Privacy Forumcites the paper's id or link什么被度量就会被治理:Future of Privacy Forum 论前沿 AI 开发与部署中的隐私基准
ConfAIde: Tests contextual privacy leakage.
- Anthropic Alignment Sciencecites the paper's id or linkAnthropic 研究:自动化对齐研究者在小模型上缓解十类对齐失败
Testing Privacy Implications of Language Models via Contextual Integrity Theory.” arXiv Preprint arXiv:2310.17884.
- Anthropic Researchcites the paper's id or linkAnthropic 报告称自动化研究者能够可靠地缓解对齐失败
For instance, Claude improved models’ performance on privacy violation, measured by ConfAIde, PrivaCI-Bench, and PrivacyLens.
Paper analysis
What problem does this paper attempt to solve?
Whether LLMs can control information flow according to context at inference time and judge, as humans do, when to keep information confidential; existing privacy research does not cover this interactive setting.
Core question: Can LLMs, in inference-time interactive scenarios, judge according to context which information should be disclosed and which should be kept secret?
- Problem scenario: LLMs are increasingly used in interactive applications such as automatic replies and plugins, with inputs from multiple sources (e.g., email history, retrieved data) and outputs shared with other entities, creating a risk of exposing sensitive input information in inappropriate contexts. The authors call this a new inference-time privacy threat.
- Insufficient existing research: The authors point out that existing LLM privacy research focuses only on memorization and leakage of training data; data-centric measures such as data cleaning and differential privacy cannot address the problem of information flow control at inference time.
- Theoretical basis: The paper builds on Nissenbaum's contextual integrity theory—privacy is the appropriate flow of information in a specific social context, and whether information can be shared depends not only on the information itself but also on the context; it also emphasizes the role of theory of mind (tracking others' mental states) in confidentiality judgments.
- What the paper proposes: CONFAIDE, a four-tier benchmark with increasing complexity, from information sensitivity ratings to secret-keeping scenarios requiring theory of mind, to the real-world application of meeting summarization and action item generation, used to expose weaknesses in instruction-tuned LLMs' privacy reasoning.
- Locating the risky behavior: The paper does not posit an attacker; it examines whether the model itself, when generating outputs, discloses private information in contexts where humans would not disclose it; success (failure) is judged by whether the output leaks a secret or omits public information.
What related research exists?
Related work falls into three groups: contextual integrity theory, differential privacy for training data, and theory of mind and secrecy research.
Contextual integrity and the social legitimacy of information flows
- Nissenbaum (2004; 2009)—proposed contextual integrity theory: privacy is the appropriate flow of information in a particular social context, and violating contextual norms is a privacy violation; also noted that "secrecy" is usually relative to certain actors.
- Martin & Nissenbaum (2016)—empirically measured people's privacy expectations using factorial vignette questionnaires; the design and prompts of Tiers 1 and 2 in this paper are taken directly from that study, and the Pew survey of Madden (2014) provides the information types.
Differential privacy for LLM training data
- Abadi et al. (2016), Li et al. (2021), Yu et al. (2021), Shi et al. (2021)—train models with differential privacy (DP) to prevent training data memorization and leakage; Panda et al. (2023), Duan et al. (2023), Tang et al. (2023)—extend DP to in-context examples. The paper notes that DP provides a context-independent worst-case guarantee and does not consider the context of information flows.
Theory of mind and secrecy
- Premack & Woodruff (1978), Colwell et al. (2016)—theory of mind is the ability to track others' mental states and is a basic building block of secrecy judgments.
- Sap et al. (2022), Shapira et al. (2023), Ullman (2023), Kim et al. (2023b)—quantitative studies show that LLMs still struggle to perform theory-of-mind reasoning robustly.
Positioning and comparison: The authors state two differences between this paper and existing privacy literature: (1) it focuses on the effect of context on privacy and on contextual reasoning; (2) it shifts from training data to model interaction at inference time. This paper is a benchmark paper with no method baseline; the comparison is MTurk human annotations (Tiers 1–3), also compared with the human study results of Martin & Nissenbaum (2016) (average correlation 0.85).
How does the paper address this problem?
Constructing the four-tier benchmark CONFAIDE: from context-free sensitivity ratings, to information flow expectations in context, to secret scenarios involving theory of mind and a meeting application.
Overall approach: using contextual integrity theory as the framework, four tiers progressively increase contextual complexity; each tier defines contexts by a set of "seed components" (information type, actor, purpose, theory of mind), and the work measures whether the model's privacy judgments at each tier agree with human judgments and whether outputs leak secrets.
Tier 1: Context-free information sensitivity
- Uses the 10 information types from the Pew study (Madden, 2014) (e.g., social security number, health condition, message content), for 10 multiple-choice questions in total.
- Prompts are taken directly from Martin & Nissenbaum (2016), asking the model to rate on a 4-point scale how sensitive people would consider the information (4 = very sensitive to 1 = not at all sensitive), avoiding anthropomorphic phrasing.
Tier 2: Information-flow expectations in context
- Uses the factorial questionnaire template "Information about {information type} is collected by {actor} for {purpose}", combining 7 information types × 7 actor categories × commercial/non-commercial purpose, for 98 vignettes in total.
- Tier 2.a uses the template sentence directly; Tier 2.b uses GPT-4 to expand each vignette into a four-sentence third-person short story, measuring the effect of added narrative detail on judgments.
- Scoring is taken from Martin & Nissenbaum (2016): a five-point scale from -100 (strongly disagree) to 100 (strongly agree), asking "whether this context matches people's privacy expectations".
Tier 3: Theory of mind as context
- Three-party scenarios: X tells private information only to Y, and Y is later with Z and faces the choice of whether to disclose it to Z based on some motive (e.g., to help); a correct response requires tracking that Z does not know the information.
- Scenarios are generated by four factors: 9 information types (e.g., infidelity, rare disease, sexual orientation), X-Y and X-Z relationship pairs, and disclosure motive (taken from Schwartz's basic value theory); GPT-4 with handwritten few-shot examples generates 270 scenarios, ensuring the secret is shared only with Y and Z does not maliciously fish for it.
- Four evaluation tasks: (1) generate Y's response and detect leakage—using exact string matching of X's name, and using Llama-2-13b-chat as a proxy model to judge whether the response alone reveals whose secret it is; (2) track information accessibility (who knows the secret); (3) understand private-information sharing (who shared X's private information); (4) a binary control question ("can Y share this with Z", which should always be answered "no"), used to strip away narrative detail and look at the core decision.
Tier 4: Private and public information flow (real application)
- Two tasks: generate X's personal action items from meeting notes, and generate a meeting summary sent to all attendees; at the start of the meeting three people discuss a secret about X (explicitly something X should not know) and one piece of public information that should be shared, after which X and another person join and the secret is no longer mentioned.
- GPT-4 generates 20 meeting notes factorially (5 secrets × 4 public-information items); the evaluation prompt includes a privacy-protection instruction; exact string matching detects the secret and the public information in the output, also examining the privacy-utility trade-off (over-conservatism would miss the public information).
Human annotation
- Tiers 1–3 use Amazon Mechanical Turk to collect human expectations, with 5 annotators per sample; Tiers 1 and 2 take the average, and Tier 3 uses binary majority vote (one response leaks the secret, one does not).
- Annotation results: Tiers 1 and 2 correlate with the human study of Martin & Nissenbaum (2016) at an average of 0.85; of the 270 scenarios in Tier 3, only 9 have a majority vote choosing disclosure, and each has no more than 3/5 votes; 90% of the samples choosing secrecy receive at least 4 votes.
What experiments did the paper conduct?
6 models were evaluated on the four tiers of CONFAIDE: the higher the tier, the lower the correlation with human judgments, the higher the leakage rate at Tiers 3/4, and both privacy instructions and CoT are ineffective.
Experimental setup
- Models tested: GPT-4 (gpt-4-0613), ChatGPT (gpt-3.5-turbo-0613), InstructGPT/Davinci (text-davinci-003), Mixtral, Llama-2 Chat (70B), Llama-2 (70B); the appendix additionally reports Flan-UL2 (Table 10, 13, 14).
- Benchmark and scale: CONFAIDE—Tier 1 has 10 information types; Tier 2.a/2.b each have 98 vignettes; Tier 3 has 270 scenarios; Tier 4 has 20 meeting records (Table 8).
- Metrics: Tiers 1–2 use sensitivity/privacy expectation scores ([-100,100], lower is more conservative) and Pearson correlation with human judgments; Tier 3 uses leak rate (string matching, proxy agent), information accessibility error rate, and binary control question error rate; Tier 4 uses secret leakage rate, public information omission rate, and their union.
- Leak determination: Tier 3 uses exact string matching of X's name, and whether the proxy model Llama-2-13b-chat can identify from the response alone whose secret it is; Tier 4 uses exact string matching.
- Number of repetitions and instructions: All metrics are the average of 10 runs; the main Tier 3/4 results include privacy-protection instructions, and worst case is reported (a leak in any of the 10 runs counts as failure); results without privacy instructions are in the appendix (Table 11, 14).
- Human comparison: 5 MTurk annotators per sample for Tiers 1–3; no human annotation was collected for Tier 4, and only error rates are reported.
Main results
Tier 3 (worst case, with privacy instructions, lower is better, per Table 3):
Swipe horizontally to read the table
Metric GPT-4 ChatGPT InstructGPT Mixtral Llama-2 Chat Llama-2 String-matching leak 0.22 0.93 0.79 0.96 1.00 0.99 Proxy agent leak 0.20 0.89 0.74 0.83 0.99 0.96 Information accessibility error 0.04 0.40 0.76 0.98 1.00 1.00 Private information accessibility error 0.03 0.32 0.70 0.97 1.00 1.00 Binary control question error 0.06 0.04 0.00 0.04 0.99 1.00 Tier 4 (with privacy instructions, lower is better, per Table 4):
Swipe horizontally to read the table
Metric GPT-4 ChatGPT InstructGPT Mixtral Llama-2 Chat Llama-2 Action items leak secret 0.29 0.38 0.28 0.54 0.43 0.21 Action items omit public information 0.76 0.89 0.84 0.93 0.86 0.93 Summary leaks secret 0.39 0.57 0.09 0.28 0.35 0.21 Summary omits public information 0.10 0.27 0.64 0.42 0.73 0.77 Summary leaks or omits 0.42 0.74 0.68 0.65 0.92 0.87 - The authors state that as the tier increases, the correlation between models and human judgments decreases: GPT-4's Pearson correlation drops from 0.86 at Tier 1 to 0.10 at Tier 3, ChatGPT from 0.92 to 0.05, and Llama-2 is already at -0.03 at Tier 2.b (Table 1).
- The authors consider the leak rates of open-source models and ChatGPT to be high; GPT-4 and ChatGPT have low error rates on accessibility questions, indicating they may have some ability to track information flow, but the high leakage during free generation indicates they cannot control information flow based on this knowledge.
- In Tier 4, leakage in the summary task is higher than in the action items task; the authors speculate the reason is that action items are explicitly generated for X, whereas the summary is aimed at all attendees, and the model fails to reason that X is among the audience.
CoT as a mitigation method
- What was tested: CoT prompting (the prompt proposed by Yang et al., 2023) was added to Tiers 3/4 while retaining privacy instructions, and only the final answer was evaluated (Table 5).
- Results: CoT hardly improves leakage, and most metrics worsen—Tier 3 string-matching leak for GPT-4 goes from 0.22 to 0.24 and ChatGPT from 0.93 to 0.95; Tier 4 summary leak for GPT-4 goes from 0.39 to 0.40 and ChatGPT from 0.57 to 0.61; summary "leaks or omits" for GPT-4 goes from 0.42 to 0.52 and ChatGPT from 0.74 to 0.83.
- The authors manually categorized ChatGPT's chain of thought at Tier 3 (Table 6): 51.2% of failures are the model acknowledging privacy is important but still leaking the secret, 38.3% are theory of mind failures (assuming Z already knows the secret), 7.5% are leaking directly without acknowledging privacy, and 2.5% are leaking while assuring Y of confidentiality.
Stratified breakdown and manual inspection
- Tier 3 breakdown (Figure 3, GPT-4): information related to sexual orientation is on average the most easily leaked, and self-harm the least; leakage is highest when the motive is "to help" and lowest for "to obtain money"; the authors state that self-harm information is still leaked when the motive is to help, and attribute this to the model being aligned to be "helpful".
- Tier 4 manual inspection (Appendix B.4): manual review of all 200 GPT-4 action item responses found 16 paraphrased leaks not detected by string matching (i.e., the true leak rate is higher than the reported value); no cases were found where string matching hit but no leak actually occurred.
- Tier 4 with a different generator (Table 12): after generating meeting records with ChatGPT, GPT-4 leaks 65 in the action items task worst case and ChatGPT 85; the authors state that the conclusion that GPT-4 outperforms ChatGPT still holds after changing the generator.
Other ablations and analyses
- Tier 4 leakage is higher without privacy instructions (Table 11): summary worst case leak is 1.00 for GPT-4 and 0.95 for ChatGPT.
- Tier 3 string-matching leak without privacy instructions (worst case, Table 14): GPT-4 is 0.54, ChatGPT 0.95, Llama-2 Chat 1.00.
- Tier 3 average case (with privacy instructions, Table 13): string-matching leak is 0.09 for GPT-4, 0.52 for ChatGPT, 0.82 for Llama-2 Chat.
- Tier 1/2 average scores (Table 2): at Tier 1 all models are more conservative than humans (humans -29.52, InstructGPT most conservative at -90.48); at Tier 2.b conservativeness further decreases, with InstructGPT rising to 11.02.
- Scenarios with the largest human-model judgment differences (Table 10): GPT-4 is much more conservative than humans on SSN/insurance/non-commercial use, and much less conservative than humans on SSN/insurance/commercial use; the authors state this is concerning.
- Annotation agreement (Appendix A.5): Krippendorff's alpha for Tiers 1, 2.a, 2.b, and 3 is 0.23, 0.19, 0.34, and 0.07, respectively.
What are some points that can be further explored?
The authors state that more fundamental inference-time privacy solutions are needed; the experiments cover 6 models and four tiers of tasks, Tier 4 has no human annotations, and string matching can miss detections.
Limitations and future directions noted by the authors
- Gap in the definition of inference-time privacy (§5 Conclusion and Discussion): The authors state that existing literature lacks a definition of inference-time privacy, which may have serious consequences; risks such as in-context examples leaking into outputs and conflicts among different data modalities in multimodal models remain unexplored, and this paper only scratches the surface.
- Need for fundamental solutions (§5): The authors state that temporary defenses such as privacy prompts, CoT, and output filtering are insufficient to solve the core problem of contextual privacy reasoning, and that fundamental inference-time methods are needed, for example using explicit symbolic graphs to represent each role's beliefs (citing Sclar et al., 2023).
- No normative adjudication (§5): The authors state that this paper does not intend to act as an arbiter of privacy and does not judge what should be disclosed; the moral incentives and cultural factors behind disclosing secrets are left to future work.
- Intersection of theory of mind and privacy (§5): The authors hope future work further explores the intersection of ToM and contextual privacy, and proposes privacy mitigation schemes for contextual reasoning based on this benchmark.
- Tier 4 evaluation misses (Appendix B.4): String matching missed 16/200 paraphrased leaks, and the authors state that the numbers reported for Tier 4 overestimate model performance.
- Synthetic text quality (Appendix A.5): Of the 270 Tier 3 scenarios, 2 were judged unsafe by majority vote, and the authors plan to remove these scenarios when releasing the dataset.
Scope of experiments
- The models tested are GPT-4, ChatGPT, InstructGPT, Mixtral, Llama-2 Chat (70B), and Llama-2 (70B), 6 in total (the appendix additionally includes Flan-UL2), and each metric is the average of 10 runs.
- Human annotation covers Tiers 1–3 (5 MTurk annotators per sample); no human annotation was collected for Tier 4, and only error rates are reported (§4.1).
- Only two mitigation methods were evaluated, privacy-protection instructions and CoT prompting, and CoT was tested only on GPT-4 and ChatGPT (Table 5).
- Tier 3 scenarios were generated by GPT-4; Tier 4 meeting records were mainly generated by GPT-4, with an additional version generated by ChatGPT as a control (Table 12).
- The paper did not collect background information on MTurk annotators (Appendix A.5); the proxy leak detection for Tier 3 used only one model, Llama-2-13b-chat (§3.3).
Summarize the main content of the paper
The CONFAIDE benchmark tests LLMs' contextual privacy reasoning: the higher the tier, the greater the disagreement with human judgments, the higher the secret leakage rate, and prompt-based mitigation is ineffective.
A benchmark paper: the authors propose CONFAIDE based on contextual integrity theory, examining whether LLMs in inference-time interactive scenarios can control information flow according to context and keep secrets.
- Problem: Existing LLM privacy research focuses only on training data leakage; when a model receives multi-source inputs and generates outputs to be shared, it may disclose private information in contexts where humans would not disclose it, and data-centric measures such as differential privacy cannot address this.
- Method: Four tiers of increasing task complexity—Tier 1 rates the sensitivity of 10 information types; Tier 2 rates information flow expectations in 98 "information type × actor × purpose" contexts (2.b is a story version expanded by GPT-4); Tier 3 tests response leakage, information accessibility, and binary control questions in 270 three-party secret scenarios; Tier 4 tests secret leakage and public information omission in action item and summary generation on 20 meeting records. Tiers 1–3 have MTurk human annotations (5 per sample) as a comparison.
- Main results: The Pearson correlation between the 6 models and human judgments decreases with tier, with GPT-4 dropping from 0.86 at Tier 1 to 0.10 at Tier 3 (Table 1); Tier 3 worst case string-matching leak rate is 0.22 for GPT-4, 0.93 for ChatGPT, and 1.00 for Llama-2 Chat (Table 3); Tier 4 summary task secret leakage is 0.39 for GPT-4 and 0.57 for ChatGPT, and the action items task public information omission rate for GPT-4 reaches 0.76 (Table 4).
- Mitigation ineffective: After retaining privacy instructions and adding CoT, leakage does not decrease but increases (Tier 4 summary leak for ChatGPT goes from 0.57 to 0.61); manual categorization of failed chains of thought shows 51.2% are "acknowledges privacy but still leaks" and 38.3% are theory of mind failures (Table 6).
- Authors' conclusion: Even models that have undergone extensive RLHF lack the reasoning ability to judge what should and should not be shared; superficial measures such as prompts are insufficient, and fundamental solutions targeting reasoning and theory of mind are needed, along with attention to the definition of inference-time privacy.