ContextLens: Modeling Imperfect Privacy and Safety Context for Legal Compliance

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Haoran, Chen, Yulin, Jing, Huihao, Hu, Wenbin, Li, Tsz Ho, Lou, Chanhou, Tsang, Hong Ting, Han, Sirui, Song, Yangqiu
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910128077275136
author Li, Haoran
Chen, Yulin
Jing, Huihao
Hu, Wenbin
Li, Tsz Ho
Lou, Chanhou
Tsang, Hong Ting
Han, Sirui
Song, Yangqiu
author_facet Li, Haoran
Chen, Yulin
Jing, Huihao
Hu, Wenbin
Li, Tsz Ho
Lou, Chanhou
Tsang, Hong Ting
Han, Sirui
Song, Yangqiu
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2604_12308
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle ContextLens: Modeling Imperfect Privacy and Safety Context for Legal Compliance
Li, Haoran
Chen, Yulin
Jing, Huihao
Hu, Wenbin
Li, Tsz Ho
Lou, Chanhou
Tsang, Hong Ting
Han, Sirui
Song, Yangqiu
Computation and Language
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.
title ContextLens: Modeling Imperfect Privacy and Safety Context for Legal Compliance
topic Computation and Language
url https://arxiv.org/abs/2604.12308