atlas

Research map / Large language models / Agents, code and math

Contextual Integrity in LLMs via Reasoning and Reinforcement Learning

NeurIPS 2025 · Large language models › Agents, code and math · approach: Reasoning benchmarks and platforms · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes CI-CoT prompting and CI-RL (GRPO with a keyword-based rule reward) trained on a ~700-example synthetic contextual integrity dataset, showing reduced inappropriate disclosure that transfers to PrivacyLens.

Problem

LLM agents often disclose information that is inappropriate for the task context, violating contextual integrity (CI); current models lack reliable CI judgment.

Approach

Prompt models to reason explicitly about CI before disclosure (CI-CoT), then post-train with GRPO using a rule-based reward that rewards required keywords and penalizes restricted keywords (CI-RL), using a synthetic GPT-4-generated dataset.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply CI-RLQwen2.5-1.5B-IT · Synthetic testIntegrity: 37.5 -> 59.4Helped
apply CI-RLQwen2.5-3B-IT · Synthetic testIntegrity: 31.2 -> 57.8Helped
apply CI-RLQwen2.5-7B-IT · Synthetic testIntegrity: 46.9 -> 75.0Helped
apply CI-RLMistral-7B-IT · Synthetic testIntegrity: 38.8 -> 89.1Helped
apply CI-RLLlama-3.1-8B-IT · Synthetic testIntegrity: 61.9 -> 79.7Helped
apply CI-RLQwen2.5-14B-IT · Synthetic testIntegrity: 51.6 -> 78.1Helped
apply CI-RLQwen2.5-7B-IT · Synthetic testComplete: 29.7 -> 48.4Helped
apply CI-RLMistral-7B-IT · Synthetic testComplete: 24.5 -> 73.4Helped
apply CI-RLLlama-3.1-8B-IT · Synthetic testComplete: 38.1 -> 62.5Helped
apply CI-RLQwen2.5-7B-IT · PrivacyLensLeakage rate: 50.3 -> 33.7Helped
add CI-CoT promptingQwen2.5-7B-IT · PrivacyLensLeakage rate: 50.3 -> 44.8Helped
add CI-CoT promptingQwen2.5-7B-IT · PrivacyLensHelpfulness: 1.99 -> 2.13Helped

Surprising findings

Limitations

Experimental setup

Datasets: ContextualIntegritySyntheticDataset (synthetic, GPT-4 generated) PrivacyLens ConfAIde

Benchmarks: ContextualIntegritySyntheticDataset test split PrivacyLens ConfAIde

Metrics: Integrity Utility Complete leakage rate adjusted leakage rate helpfulness score

Baselines: Qwen2.5-1.5B-Instruct Qwen2.5-3B-Instruct Qwen2.5-7B-Instruct Qwen2.5-14B-Instruct Llama-3.1-8B-Instruct Mistral-7B-Instruct-v0.3 DeepSeek-R1-Distill-Llama-8B DeepSeek-R1-Distill-Qwen-14B Claude 3.7 Sonnet Claude 3.7 Sonnet Thinking Gemini 2.5 Flash Gemini 2.5 Pro

Builds on: GRPO PPO DeepSeek-R1 VERL PrivacyLens

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy