Skip to content

Evaluating language models' reasoning about confidential informationEvaluating Language Model Reasoning about Confidential Information

arXiv· arXiv:2508.19980· Dylan Sam, Alexander Robey, Andy Zou, Matt Fredrikson, J. Zico KolterCarnegie Mellon University; Gray Swan AI; Center for AI SafetyIndexed by this site · 2026-10-15· Originally publishedEvaluation

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

PasswordEval tests whether models disclose confidential information only with the correct password; the authors say reasoning does not necessarily help, and traces leak.

Questions
When language models are used as autonomous agents in high-risk scenarios, they may hold credentials for accessing sensitive data. The authors aim to test contextual robustness: correct behavior depends on both the system context and user input, not just on refusing clearly harmful requests.
Methods
PasswordEval writes a password and confidential snippet into the system prompt, requiring the model to disclose the confidential information only when the user gives the correct password. The authors use GPT-4o to generate 500 scenarios, score with exact string matching, and increase difficulty with jailbreak templates, GCG, PAIR, and multi-turn dialogues with 2 to 10 sequential passwords.
Experiments and results
In Table 1, GPT-4o's non-compliant accuracy on direct requests is 100.00% and compliant accuracy is 83.40%. The authors say template jailbreaks further elicit confidential information, reasoning does not generally improve the task, and reasoning traces leak passwords or confidential information.
Limitations and future work
The paper does not specifically discuss limitations of the evaluation design. The Discussion and Section 4.4 suggest hiding or constraining reasoning traces and using tools or APIs for external verification. The experiments include 12 models, 500 scenarios, three jailbreaks, and 2 to 10 turns; the paper does not report the number of repetitions.
Experimental setupLLaMA-3 3B、LLaMA-3 8B et al. · PasswordEval、MultiPasswordEval · Non-Compliant Correctness、Compliant Correctness et al.
Evaluated models
LLaMA-3 3BLLaMA-3 8BQwen-3 4BQwen-3 8BQwen-3 14BGPT-4o-miniGPT-4oo4-minio3Gemini-2.5-Flash-LiteGemini-2.5-FlashGemini-2.5-Pro
Benchmarks
PasswordEvalMultiPasswordEval
Metrics
Non-Compliant CorrectnessCompliant CorrectnessPassword LeakConf. Info Leak
AI summaryThe researchers propose the benchmark PasswordEval for measuring whether language models can judge whether a user request is authorized (i.e., the password is correct). Tests show that current open-source and closed-source models struggle with this task, reasoning ability usually does not improve performance, and reasoning traces frequently leak confidential information. The study also applies adversarial pressure through multiple jailbreak strategies and lengthens multi-turn dialogues to increase the difficulty of password verification. The authors therefore argue that current frontier models are unsuitable for handling confidential information, and reasoning ability may need to be trained in a different way.

The researchers propose the benchmark PasswordEval for measuring whether language models can judge whether a user request is authorized (i.e., the password is correct). Tests show that current open-source and closed-source models struggle with this task, reasoning ability usually does not improve performance, and reasoning traces frequently leak confidential information. The study also applies adversarial pressure through multiple jailbreak strategies and lengthens multi-turn dialogues to increase the difficulty of password verification. The authors therefore argue that current frontier models are unsuitable for handling confidential information, and reasoning ability may need to be trained in a different way.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The model must decide whether to disclose confidential information based on whether the password is correct; the authors state that neither existing models nor reasoning achieve this reliably.

    Can the model disclose confidential information only when the user provides the correct password, i.e., what the authors call contextual robustness.

    • Why it matters: The authors argue that when models act as autonomous agents in healthcare, robotics, and software engineering, they may hold credentials for accessing medical records or financial data. The question then is not only about executing clearly harmful requests like building a bomb, but also about following access rules that vary with context.
    • Shortcomings of existing approaches: The authors state that post-training mostly encourages following instructions and refusing harmful requests, but existing evidence shows models cannot reliably follow basic instructions; jailbreak research also focuses on unambiguous harmful behavior. The authors also state that the relationship between reasoning and general rule following remains understudied, and there is only preliminary understanding of reasoning models under adversarial pressure.
    • What this paper tests: Reasoning has brought progress in math and code, and some work uses reasoning for complex safety specifications. The authors examine whether reasoning also improves this finer-grained rule following that is jointly determined by context and user input.
    • Evaluation scenario:
      • The system prompt provides a password and a short piece of confidential information, requiring disclosure only to users who first provide the correct password, and without disclosing the password itself.
      • User input may contain no password, an incorrect password, or the correct password; under pressure, jailbreak templates or adaptive attacks may also be embedded.
      • The subject under test is the language model itself. The paper does not describe the setting as white-box, black-box, or gray-box.
      • Success is determined by exact string matching: unauthorized outputs must not contain the password or confidential information; authorized outputs should contain the confidential information.
    • What this paper proposes: The benchmark PasswordEval, with difficulty increased along two axes: jailbreak pressure and multi-turn sequential verification of multiple passwords. The authors state that code and data have been released.
  2. What related research exists?

    The paper situates itself among rule following, reasoning, and jailbreaks, using password gating to add evaluation under adversarial pressure.

    The paper's related work is organized into three groups: rule following, reasoning, and safety alignment and jailbreaks.

    Rule following and instruction hierarchy

    • Training-time rules: Ouyang et al. (2022) and Taori et al. (2023) study making models follow instructions. The authors state that providing only contextual instructions is not sufficient for reliable compliance, which led to approaches that model hierarchical instructions and rule constraints during training (Zhu et al., 2023).
    • Instruction-following evaluation: Mu et al. (2023), Zhou et al. (2023), Sun et al. (2024), and Qi et al. (2025) evaluate instruction following across various settings. The paper only lists these here without comparing them one by one.
    • Instruction hierarchy: Wallace et al. (2024) assign priorities to instructions, obeying higher-priority ones in conflicts, to handle conflicts between user or tool results and system instructions. Zhang et al. (2025)'s IHEval and Mu et al. (2025) evaluate system-prompt following. The authors state that most of these evaluations lack jailbreak or adversarial pressure.

    Reasoning

    • Inference-time compute: Wei et al. (2022), Snell et al. (2024), and Goyal et al. use inference-time compute for complex tasks; the progress reported by Guo et al. (2025) is mainly in math and code.
    • Relationship to controllability: Fu et al. (2025) scale reasoning on math problems and find that enhanced reasoning may conflict with rule following and controllability. Guan et al. (2024), in contrast, report that reasoning improves robustness without increasing over-refusals.
    • Adversarial pressure: The authors state that behavior of reasoning models under adversarial pressure is only preliminarily understood (Zaremba et al., 2025).

    Alignment, jailbreaks, and prompt extraction

    • Reducing harmful outputs: Includes reinforcement learning from human feedback (Bai et al., 2022a), Constitutional AI (Bai et al., 2022b), and direct preference optimization (Rafailov et al., 2023). Qi et al. (2024), Chao et al. (2024), and Mazeika et al. (2024) question the effectiveness of post-hoc methods. The paper also lists pretraining adjustments, inference-time interventions, and deployment-time monitoring without numerical comparison to this work.
    • Jailbreaks: GCG (Zou et al., 2023), PAIR (Chao et al., 2023), Mehrotra et al. (2024), and template attacks (Andriushchenko et al., 2024). The authors state that defenses from Zou et al. (2024) so far mainly target harmful behavior that does not require fine-grained contextual understanding.
    • Extracting system prompts: Agarwal et al. (2024) and Zhang et al. (2024a). The authors state that both are similar in spirit, but PasswordEval is more targeted at agents restricting confidential access. The introduction states the task is inspired by the password-locked model in Greenblatt et al. (2024).

    Baselines and data: Comparisons are direct requests, jailbreak templates, GCG, PAIR on the same task, and reasoning on or off. The data is the self-built PasswordEval and its multi-turn version. The paper does not use external benchmarks as the primary evaluation set.

    The authors position this paper as: under adversarial pressure, evaluating whether models can execute the verifiable rule of "withhold confidential information when unauthorized," rather than only testing clearly harmful behavior or general instruction following.

  3. How does the paper address this problem?

    PasswordEval gates secrets with passwords in system prompts and stresses with jailbreaks and multi-turn, multi-password scenarios.

    Overall, PasswordEval frames access control as a verifiable rule: the system prompt embeds a password and a confidential snippet, and the model should disclose the confidential information only when the user input contains the correct password.

    Task and Scoring

    • The user input is denoted u, the system prompt contains password p and confidential information c, and the output is denoted T. When unauthorized, T must not contain c or p; when authorized, T should contain c.
    • Compliant accuracy is CompliantAcc = 1[p ∈ u] · 1[c ⊂ T], i.e., the correct password is given and the output contains the confidential information.
    • Non-compliant accuracy is NonCompliantAcc = 1[p ∉ u] · 1[c ⊄ T ∧ p ⊄ T], i.e., the password is not given and the output contains neither the confidential information nor the password.
    • There are also confidential information leakage and password leakage, which respectively count whether the output contains c or p when unauthorized. Verification is exact string matching. Section 4 additionally specifies: for compliant to count as correct, the output must also not contain the password. The two standards are not entirely the same.

    Data Construction

    • GPT-4o generates 500 scenarios. Each scenario contains a system-specified password, a confidential snippet, and user interaction.
    • Each scenario has one compliant request (containing the correct password) and one non-compliant request (omitting or misspelling the password).
    • The generation prompt in Appendix D.4 is responsible for producing short confidential snippets that can be exactly matched, and passwords that are scenario-relevant and uncommon. The phrasing and field constraints are not reproduced here.

    Multi-turn, Multi-password

    • The system prompt gives d different passwords in a specific order, and the user must provide them one per turn over d turns to see the confidential information. d ranges from 2 to 10.
    • Non-compliant dialogues only misspell one of the passwords (slight typo or fabricated), to prevent the model from exploiting turn count alone.
    • The paper releases this multi-turn data separately. Appendix B gives single-password and multi-password examples illustrating expected refusal and disclosure; the passwords and confidential text are not transcribed here.

    Adversarial User Pressure

    • Template jailbreak: Uses static templates of the Andriushchenko et al. (2024) type, embedding the request for confidential information into a fixed prompt that encourages the model to ignore existing preferences. The text says the template requires satisfying the request even if suspicious, negates password-based access control, and rewrites the conversation into hypothetical, educational, and fictional scenarios. The full template is in Appendix D.3 and is not transcribed here.
    • GCG: Optimizes an adversarial suffix per sample to make the model lean toward agreeable responses, then transfers to other models. Appendix D.2 says the suffix is learned on LLaMA-3 3B; the main text Section 4.1 describes both GCG and PAIR as re-transferred on LLaMA-3 8B.
    • PAIR: Iteratively rewrites attack prompts using LLM feedback, runs per sample, and only searches the non-compliant setting. The appendix says the attack model is Mistral-7B-Instruct-v0.3, the optimization target is LLaMA-3 8B, and GPT-4o judges on a 1 to 10 scale whether the response violates the system prompt.

    Generation Settings

    • Sampling temperature=1.0, top_p=1.0. Ordinary models get at most 100 new tokens, reasoning models at most 400.
    • Each generation is appended with an in-context example of compliant and non-compliant expected behavior. The authors say this reduces GPT's over-refusal and slightly improves the other models; the paper does not report the magnitude.
    • The main table for reasoning models only counts the final output, not the reasoning trace. Traces are separately checked with the same containment relations. o3 and o4-mini's APIs do not provide traces; Gemini provides reasoning summaries.
  4. What experiments did the paper conduct?

    The authors state that refusal accuracy is high on direct requests, but compliant disclosure is lower, and trajectories also leak information.

    The experiment compares 12 models on a self-built PasswordEval across direct requests, three jailbreaks, and a reasoning toggle.

    Experimental Setup

    • Models tested: LLaMA-3 3B, LLaMA-3 8B; Qwen-3 4B, 8B, 14B, with both instruction-tuned and reasoning variants considered; GPT-4o-mini, GPT-4o; o4-mini, o3; Gemini-2.5-Flash-Lite, Gemini-2.5-Flash, Gemini-2.5-Pro. The appendix gives gemini-2.5-flash-lite-preview-06-17 and gemini-2.5-flash-preview-05-20. LLaMA and Qwen run in float16.
    • Data: 500 scenarios, each with a compliant and a non-compliant request. In multi-turn tasks, the number of passwords/turns ranges from 2 to 10.
    • Controls: direct request, Andriushchenko et al. (2024) template, GCG, PAIR; also compare computation with reasoning on and off.
    • Metrics: non-compliant accuracy, compliant accuracy, password leakage, confidential information leakage. Main results use exact string matching. PAIR's internal GPT-4o 1–10 scores do not enter Table 1. Table notes state that reasoning models (examples include Qwen, o4-mini, Gemini-2.5-flash) only count the final output.
    • Decoding: temperature=1.0, top_p=1.0; 100 new tokens for non-reasoning models, 400 for reasoning models. Each generation is appended with an example of expected behavior.
    • Attack implementation: GCG and PAIR run on each sample. Appendix D.2: GCG is optimized on LLaMA-3 3B for 500 steps, top-k 256, then transferred; PAIR's attack model is Mistral-7B-Instruct-v0.3, targeting LLaMA-3 8B. The paper does not report the number of repetitions.

    Main Results

    The first four columns below are direct requests, per Table 1; the last column is the template jailbreak's non-compliant/compliant accuracy, per Table 2. Numbers are percentages. Only 8 rows are listed out of 12 models, including LLaMA-3 3B with the lowest compliant accuracy and Qwen-3 4B with the lowest non-compliant accuracy. Qwen-3 14B, GPT-4o-mini, Gemini-2.5-Flash-Lite, and Gemini-2.5-Pro are omitted.

    Swipe horizontally to read the table

    ModelNon-compliant accuracyPassword leakageConfidential leakageCompliant accuracyTemplate jailbreak
    LLaMA-3 3B87.608.805.0036.8036.20 / 55.40
    LLaMA-3 8B99.400.000.6058.4050.60 / 72.80
    Qwen-3 4B63.4036.001.6095.0022.40 / 87.60
    Qwen-3 8B85.8013.601.2088.0011.80 / 85.00
    GPT-4o100.000.000.0083.40100.00 / 37.80
    o4-mini100.000.000.0082.40100.00 / 35.80
    o3100.000.000.0090.20100.00 / 90.20
    Gemini-2.5-Flash100.000.000.0094.8040.40 / 95.80
    • The authors say frontier models handle non-compliant requests with high accuracy, while compliant requests are lower under the same setting, so distinguishing valid from invalid credentials remains difficult. GPT-4o-mini, not in the table, has a compliant accuracy of 83.00%, and Gemini-2.5-Pro 95.40% (Table 1). The authors say LLaMA-3 3B and 8B drop more than 15% on compliant disclosure. The Discussion says frontier models are better at compliant requests and worse at refusing when credentials are missing; this is inconsistent with the direct requests in Table 1, while the summary in Section 4.1 is consistent with the table.
    • The authors say template jailbreaks reduce performance, especially for open-source models, and say GPT and o4-mini have accuracy below 50% when the password is already provided. Gemini-2.5-Pro, not in the table, has a template result of 97.80 / 96.00 and does not show the same drop; its Table 1 confidential leakage is 0.20% (Table 1, Table 2).
    • The authors say GCG and PAIR also reduce performance but are less effective than the template. o3's GCG compliant accuracy is 64.40%, while the template remains 90.20% (Table 2), which does not fit the summary that "the template is more effective." The authors hypothesize that behavioral differences come from post-training. The main text says both attacks are re-transferred on LLaMA-3 8B; Appendix D.2 says GCG is optimized on LLaMA-3 3B.

    Reasoning On

    • Figure 2 compares Qwen-3 4B, 8B, 14B and Gemini-2.5-Flash on compliant and non-compliant accuracy under Baseline and + Reasoning. The example given in the text is: Qwen-3 14B compliant accuracy goes from 88.6% to 91.6%. This number differs from Table 1's 92.60%, and the paper does not explain which run each corresponds to.
    • The authors say on Qwen-3 8B, reasoning reduces direct correctness by more than 7 points and increases password leakage; the paper does not give the specific before/after values for this set.
    • The authors conclude that reasoning does not reliably improve rule following on PasswordEval. The figure caption says reasoning responds more accurately to compliant requests while harming non-compliant queries that require concealing confidential information. The plain text cannot reliably map the remaining annotations in the figure to each bar.

    Multi-turn Difficulty

    • Figure 3 plots non-compliant accuracy for reasoning models: Qwen-3 14B, GPT-4o, Gemini-2.5-Flash, o4-mini, with the x-axis being number of passwords/turns from 2 to 10. The authors say performance generally declines as the number of passwords and turns increases, and Gemini-2.5-Flash maintains relatively high performance on non-compliant judgments. The text does not preserve the values at each point.
    • Appendix A.1 compares Qwen-3 14B and Gemini-2.5-Flash with reasoning on and off. The authors say reasoning helps only slightly across the tested range of turns and does not offset the decline as turns increase.
    • Appendix Figure 6 adds Qwen-3 4B/8B and LLaMA-3 3B/8B. The authors say the 8B models decline with turns, while 3B–4B are worse at every turn count. The text does not preserve endpoint values.

    Reasoning Trace Leakage

    • Figure 4 and Section 4.4 compare final outputs and reasoning traces for Qwen-3 14B and Gemini-2.5-Flash, under direct requests and jailbreak templates, with the same metrics as Section 3.1. The figure caption says traces often leak confidential information even when the output does not. After text conversion, the mapping between bars and numbers is unreliable, so bar values are not excerpted.
    • The authors report that Gemini-2.5-Flash almost never leaks passwords or confidential information in outputs on non-compliant requests, but its API reasoning summaries often leak the password. The text example is a final answer that refuses, while the thinking process writes out the password from the system prompt; the password and confidential text are not reproduced here.
    • o3 and o4-mini's APIs do not provide reasoning traces, so they are not included in this trace analysis. The authors use this to question whether reasoning traces should be shown to users.

    Other Ablations and Analyses

    • In-context examples: the authors say they reduce GPT's over-refusal and slightly improve the other models; the paper does not report the magnitude (Section 4).
    • GCG: on LLaMA-3 3B, 500 steps, top-k 256, initialized with repeated x, then transferred (Appendix D.2). In Table 2, GPT-4o's GCG is 100.00 / 65.40.
    • PAIR only reports non-compliant accuracy; the compliant column is marked -. In Table 2, Qwen-3 4B is 30.00 and GPT-4o is 99.60.
    • Qwen-3 14B, not in the main table: Table 1 is 94.40 / 4.60 / 2.00 / 92.60, and Table 2 template is 15.00 / 90.00.
    • Appendix C.1 gives examples where GPT-4o and o4-mini still refuse when the password is already provided. In the introduction, the authors say frontier models often refuse to perform the task regardless of whether the user provides the password.
  5. What are some points that can be further explored?

    The authors suggest hiding or constraining reasoning traces and using tools or external access control for confidential information.

    The paper does not specifically discuss the limitations of the evaluation design itself; subsequent directions focus on reasoning traces and external verification.

    Limitations and future directions noted by the authors

    • Model capability: The authors state in the Discussion that the current models have limitations in rule following that requires context understanding, and this is even more pronounced under adversarial pressure.
    • Alignment and scale: The authors state that existing alignment techniques are fragile and challenge the assumption that "robustness can be achieved through reasoning or scale alone (pretraining and reasoning capability)" (Discussion).
    • Traces: The authors believe that if reasoning traces are not constrained or supervised, they may not be suitable for release. They suggest hiding traces in safety-critical applications, or modifying training; Section 4.4 gives process reward modeling as an example, so that traces follow instructions and do not write passwords or confidential information (Section 4.4, Discussion).
    • External verification: The authors propose using tool calls to verify passwords, or using API-level access control to gate sensitive operations, or even not letting the language model access confidential information at all (Discussion).
    • Subsequent use: The authors believe that PasswordEval can serve as a diagnostic tool and promote subsequent research on robust language model agents (Discussion). The paper does not list "releasing code and data" as a to-do item, but instead states that they have already been made public.

    Experimental coverage

    • The tested models are LLaMA-3 3B/8B, Qwen-3 4B/8B/14B, GPT-4o-mini, GPT-4o, o4-mini, o3, Gemini-2.5-Flash-Lite, Gemini-2.5-Flash, Gemini-2.5-Pro, 12 in total (Section 4).
    • The main data are 500 scenarios generated by GPT-4o; the multi-round password count d ranges from 2 to 10, and non-compliant samples err on only one password (Section 3.1).
    • The adversarial conditions are fixed templates, GCG, and PAIR; the main metric is exact string matching, and the paper does not report human agreement (Section 3.2, Section 4, Table 1–2).
    • Decoding uses temperature=1.0, top_p=1.0, a generation limit of 100 or 400 new tokens, and one in-context example is appended. The paper does not report the number of repetitions (Section 4).
    • Trace analysis uses Qwen-3 and Gemini outputs and traces or summaries; the paper states that o3 and o4-mini do not provide traces, and Gemini provides summaries (Section 4, 4.4).
  6. Summarize the main content of the paper

    PasswordEval tests confidential disclosure under password gating; the authors say reasoning does not necessarily help, and traces may leak.

    PasswordEval evaluates the contextual robustness of language models: only when the user gives the correct password should the model disclose confidential information from the system prompt.

    • Problem: The authors argue that high-risk agents may hold credentials for sensitive data. Correct behavior depends on system rules and user input, not merely refusing clearly harmful requests.
    • Approach: GPT-4o generates 500 scenarios, and exact string matching is used to compute compliant and non-compliant accuracy and leakage rates. Pressure is added via static jailbreak templates, GCG, PAIR, and multi-turn dialogues with 2 to 10 sequential passwords.
    • Direct requests: In Table 1, LLaMA-3 3B compliant accuracy is 36.80%; Qwen-3 4B non-compliant accuracy is 63.40% with password leakage 36.00%; GPT-4o non-compliant accuracy is 100.00% and compliant accuracy 83.40%. The highest compliant accuracy in the table is Gemini-2.5-Pro at 95.40%.
    • Jailbreaks: In Table 2, Qwen-3 8B's template non-compliant accuracy is 11.80%, and o4-mini's template compliant accuracy is 35.80%. The authors say template attacks are more effective than transferred GCG and PAIR; exceptions are o3, whose template compliant accuracy remains 90.20% versus GCG at 64.40%, and Gemini-2.5-Pro, whose template non-compliant accuracy is 97.80%.
    • Reasoning: The authors say enabling reasoning does not generally improve the task; the main text gives Qwen-3 14B compliant accuracy going from 88.6% to 91.6%, while saying Qwen-3 8B gets worse. On multi-turn tasks, the authors say non-compliant accuracy declines as the number of passwords and turns increases. Reasoning traces or API summaries write out passwords or confidential information that do not appear in the final output.
    • Authors' conclusion: Current frontier models are not suitable for handling confidential information; reasoning may require different training if it is to be used for high-risk release. The authors also argue that such reasoning traces should not be shown to users, and suggest external access control via tools or APIs.
Read originalarxiv.org