Hybrid Privacy Policy-Code Consistency Check using Knowledge Graphs and LLMs
Authors:
- 16 July 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 771-772
Abstract
The increasing concern in user privacy misuse has accelerated research into checking consistencies between smartphone apps’ declared privacy policies and their actual behaviors. Recent advances in Large Language Models (LLMs) have introduced promising techniques for semantic comparison, but these methods often suffer from low accuracies and expensive computational costs. To address this problem, this paper proposes a novel hybrid approach that integrates 1) knowledge graph-based deterministic checking to ensure higher accuracy, and 2) LLMs exclusively used for preliminary semantic analysis to save computational costs. Preliminary evaluation indicates this hybrid approach not only achieves 37.63% increase in precision and 23.13% increase F1-score but also consumes 93.5% less tokens and 87.3% shorter time.Keywords
All Related Versions
This publication has 5 references indexed in Scilit:
- A Systematic Review of Privacy Policy LiteratureACM Computing Surveys, 2024
- A Large Language Model Approach to Code and Privacy Policy Alignment2024
- PTPDroid: Detecting Violated User Privacy Disclosures to Third-Parties of Android Apps2023
- Demystifying Privacy Policy of Third-Party Libraries in Mobile Apps2023
- FlowDroidACM SIGPLAN Notices, 2014