CALM: Curiosity-driven large language model auditingCALM: Curiosity-Driven Auditing for Large Language Models
The researchers propose CALM, a method for auditing large language models in a black-box setting that can automatically mine input-output pairs where the target model exhibits illegal, unethical, or unsafe behavior. The method requires no access to model parameters and only needs to call the model service; it models auditing as a black-box optimization problem and fine-tunes a large language model as an auditing agent using intrinsic motivation reinforcement learning to address the challenges of sparse feasible points, discrete prompt space, and large search space. Examples in the paper include finding prompts that make the model give toxic outputs for non-toxic inputs, or inputs that induce the model to hallucinate content involving politically sensitive figures; in experiments, CALM successfully found derogatory completions involving celebrities, as well as inputs that can induce the model to output specific names. Code is open-sourced on GitHub (https://github.com/x-zheng16/CALM.git)。