mlsanityData to 14 Oct 2026

ContextLens: Modeling Imperfect Privacy and Safety Context for Legal Compliance

arXiv 2604.12308 ↗First posted 14 Apr 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Individuals' concerns about data privacy and AI safety are highly contextualized and extend beyond sensitive patterns. Addressing these issues requires reasoning about the context to identify and mitigate potential risks. Though researchers have widely explored using large language models (LLMs) as evaluators for contextualized safety and privacy assessments, these efforts typically assume the availability of complete and clear context, whereas real-world contexts tend to be ambiguous and incomplete. In this paper, we propose ContextLens, a semi-rule-based framework that leverages LLMs to ground the input context in the legal domain and explicitly identify both known and unknown factors for legal compliance. Instead of directly assessing safety outcomes, our ContextLens instructs LLMs to answer a set of crafted questions that span over applicability, general principles and detailed provisions to assess compliance with pre-defined priorities and rules. We conduct extensive experiments on existing compliance benchmarks that cover the General Data Protection Regulation (GDPR) and the EU AI Act. The results suggest that our ContextLens can significantly improve LLMs' compliance assessment and surpass existing baselines without any training. Additionally, our ContextLens can further identify the ambiguous and missing factors.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 19 of its 41 references that are in the map. First posted on arXiv 14 Apr 2026.

Builds on

19 of 41 references.

References · 19

  1. 2017Proximal Policy Optimization Algorithmscited by 15,215
  2. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  3. 2017Deep reinforcement learning from human preferencescited by 3,912
  4. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  5. 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 356
  6. 2023Multi-step Jailbreaking Privacy Attacks on ChatGPTcited by 333
  7. 2024ShieldGemma: Generative AI Content Moderation Based on Gemmacited by 243
  8. 2023Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theorycited by 230
  9. 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Actioncited by 171
  10. 2025GuardReasoner: Towards Reasoning-based LLM Safeguardscited by 100
  11. 2025Can Indirect Prompt Injection Attacks Be Detected and Removed?cited by 52
  12. 2024Defense Against Prompt Injection Attack by Leveraging Attack Techniquescited by 40
7 more
  1. 2024GoldCoin: Grounding Large Language Models in Privacy Laws via Contextual Integrity Theorycited by 37
  2. 2024Operationalizing Contextual Integrity in Privacy-Conscious Assistantscited by 37
  3. 2024CI-Bench: Benchmarking Contextual Integrity of AI Assistants on Synthetic Datacited by 37
  4. 2025PrivaCI-Bench: Evaluating Privacy with Contextual Integrity and Legal Compliancecited by 37
  5. 2024Privacy Checklist: Privacy Violation Detection Grounding on Contextual Integrity Theorycited by 18
  6. 2025Poly-Guard: Massive Multi-Domain Safety Policy-Grounded Guardrail Datasetcited by 14
  7. 2025Privacy Reasoning in Ambiguous Contextscited by 11

Built on by

Not cited yet.