arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.00624cs.SE
收藏

大型语言模型能否检测现实世界中的Android软件合规违规?

Can Large Language Models Detect Real-World Android Software Compliance Violations?

Xi'an Jiaotong-Liverpool University(西交利物浦大学);University of Luxembourg(卢森堡大学)

Haoyi Zhang, Huaijin Ran, Xunzhu Tang

AI总结:

本文提出CompliBench评估框架,通过检索定位和多标签判断任务及稳定性感知指标,评估LLMs在Android应用中检测LGPD等法规合规违规的能力,实验表明其有效提升了合规检测性能。

摘要:

大型语言模型(LLMs)的快速发展已经改变了软件工程,在代码生成、错误检测和合规性检查等任务中展现出潜力。然而,当前的模型难以检测跨不同法律框架的Android应用中的合规违规行为。我们提出了CompliBench,一个用于评估LLMs在LGPD、PDPA和PIPEDA等法规下检测合规违规能力的新颖评估框架。该框架定义了两个任务:任务1评估在文件、模块和行粒度上的检索与定位,任务2评估代码片段的多标签判断。这些任务反映了审计过程,审计员在其中定位有问题的代码并确定相关条款。传统指标无法捕捉跨粒度稳定性和司法管辖区一致性等重要方面。因此,我们引入了稳定性感知复合指标(SGS、RCS、CRGS和OCS)以进行更全面的评估。对包括GPT-4O和Claude-3.5在内的六个模型的实验表明,CompliBench改进了合规检测,其中Claude-3.5-sonnet-20241022获得了最高的OCS分数(0.3295),而Gemini-2.5-pro最低(0.0538)。这项工作展示了CompliBench在改进合规任务中LLM性能方面的潜力,并为未来与数据保护标准对齐的工具提供了基础。我们的项目可在https://github.com/Haoyi-Zhang/CompliBench获取。

英文摘要:

The rapid development of Large Language Models (LLMs) has transformed software engineering, showing promise in tasks like code generation, bug detection, and compliance checking. However, current models struggle to detect compliance violations in Android applications across diverse legal frameworks. We propose \emph{CompliBench}, a novel evaluation framework for assessing LLMs' ability to detect compliance violations under regulations like LGPD, PDPA, and PIPEDA. The framework defines two tasks: Task 1 evaluates \emph{retrieval and localization} at file, module, and line granularities, and Task 2 assesses \emph{multi-label judgment} for code snippets. These tasks mirror the audit process, where auditors locate problematic code and determine implicated provisions. Traditional metrics fail to capture important aspects like cross-granularity stability and jurisdictional consistency. Thus, we introduce stability-aware composites (SGS, RCS, CRGS, and OCS) for a more comprehensive assessment. Experiments with six models, including GPT-4O and Claude-3.5, show \emph{CompliBench} improves compliance detection, with Claude-3.5-sonnet-20241022 achieving the highest OCS score (0.3295), and Gemini-2.5-pro the lowest (0.0538). This work demonstrates \emph{CompliBench}'s potential for improving LLM performance in compliance tasks and provides a foundation for future tools aligned with data protection standards. Our project is available at https://github.com/Haoyi-Zhang/CompliBench.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑