Evaluating Language Model Reasoning about Confidential Information

Dylan Sam, Alexander Robey, Andy Zou, Matt Fredrikson, J. Zico Kolter
8/27/2025
cs.LG

No official code found. Best implementation: locuslab/confidential_llms (2 stars, last commit 2025-08-28).

Abstract

As language models are increasingly deployed as autonomous agents in high-stakes settings, ensuring that they reliably follow user-defined rules has become a critical safety concern. To this end, we study whether language models exhibit contextual robustness, or the capability to adhere to context-dependent safety specifications. For this analysis, we develop a benchmark (PasswordEval) that measures whether language models can correctly determine when a user request is authorized (i.e., with a correct password). We find that current open- and closed-source models struggle with this seemingly simple task, and that, perhaps surprisingly, reasoning capabilities do not generally improve performance. In fact, we find that reasoning traces frequently leak confidential information, which calls into question whether reasoning traces should be exposed to users in such applications. We also scale the difficulty of our evaluation along multiple axes: (i) by adding adversarial user pressure through various jailbreaking strategies, and (ii) through longer multi-turn conversations where password verification is more challenging. Overall, our results suggest that current frontier models are not well-suited to handling confidential information, and that reasoning capabilities may need to be trained in a different manner to make them safer for release in high-stakes settings.

View on arXivView PDF

Code Implementations(1)

Repository for the paper "Evaluating Language Model Reasoning about Confidential Information" and the PasswordEval benchmark.

20MDX, ShellJul 3, 20251 years ago

Similar Papers

Cite this paper

@article{sam2025evaluating,
  title  = {Evaluating Language Model Reasoning about Confidential Information},
  author = {Dylan Sam and Alexander Robey and Andy Zou and Matt Fredrikson and J. Zico Kolter},
  year   = {2025},
  eprint = {2508.19980},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.19980v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.19980.svg)](https://codeofpaper.com/paper/2508.19980)

Discussion