Retrieval Enhanced Data Augmentation for Question Answering on Privacy Policies

Md. Rizwan Parvez, Jianfeng Chi, Wasi Uddin Ahmad, Yuan Tian, Kai-Wei Chang

Abstract

Privacy policy question answering (QA) is a critical task for helping users navigate complex legal documents. However, the field is hampered by extreme data imbalance and the risks associated with synthetic data generation in sensitive legal contexts. We propose Retrieval Enhanced Data Augmentation (REDA), a framework that mines "silver-standard" training data from a large unlabeled corpus using an ensemble of diverse retrieval and filtering models. Our approach achieves a new state-of-the-art F1 score of 49.8% on the PrivacyQA benchmark, representing a 10% absolute improvement over previous methods.

Introduction

Privacy policies are notoriously difficult for average users to understand due to their length and technical "legalese." Automated QA systems, framed as sentence selection tasks, offer a potential solution. However, building these systems is challenging because relevant answers are rare within a policy (data imbalance), and standard data augmentation techniques (e.g., back-translation) can inadvertently alter the legal meaning of a sentence, making synthetic data unreliable.

Methodology: The REDA Framework

The proposed Retrieval Enhanced Data Augmentation (REDA) framework avoids synthetic generation by finding relevant, existing text in the wild. The architecture consists of two main stages: ensemble retrieval and noise-reduction filtering.

The REDA framework architecture, illustrating the parallel retrieval and filtering pipelines using multiple pre-trained language models.

Ensemble Retrieval

REDA employs an ensemble of "bi-encoder" retrieval models based on different pre-trained Language Models (LMs):

  • BERT: A general-purpose model.
  • PBERT: A domain-adapted model pre-trained on a corpus of 130k privacy policies.
  • SimCSE: A model trained via contrastive learning for better sentence embeddings.

A key finding of this work is the diversity of these retrievers; the overlap between sentences retrieved by the three models was found to be less than 1%, allowing the ensemble to capture a significantly broader range of relevant policy language.

Noise-Reduction Filtering

Because retrieval can be "noisy," returning sentences that are semantically similar but not actual answers, REDA uses "cross-encoder" filter models. While more computationally expensive, these filters are highly accurate at binary classification, ensuring that only high-confidence "silver-standard" pairs are added to the training set.

Experimental Results

The framework was evaluated on the PrivacyQA benchmark using an unlabeled retrieval corpus of 0.6 million sentences crawled from 6,500 mobile app privacy policies.

Comprehensive performance results on the PrivacyQA benchmark, comparing REDA (ERA/ERA-D) against baselines and human performance.

As shown in the results table, the ensemble approach (ERA-D) achieved a new state-of-the-art F1 score of 49.8%. This is a substantial improvement over the previous best of 39.8%. The data also highlights the necessity of the filtering stage: without it (Baseline-E), precision dropped to 22.2%, whereas the full REDA framework maintained a balance of ~51% precision and ~49% recall.

Discussion and Conclusion

The success of REDA underscores two main points: the importance of model diversity in retrieval and the necessity of high-fidelity filtering for data augmentation in sensitive domains. While domain-adapted models like PBERT performed well on general privacy queries, the generic BERT model remained superior for queries requiring factual or numerical reasoning (e.g., data retention periods). Future work will explore the generalizability of this framework to other specialized domains such as medical or general legal QA.

Summary updated

BibTeX
@inproceedings{parvez2023retrieval,
  author = {Md. Rizwan Parvez and Jianfeng Chi and Wasi Uddin Ahmad and Yuan Tian and Kai-Wei Chang},
  title = {{Retrieval Enhanced Data Augmentation for Question Answering on Privacy Policies}},
  booktitle = {EACL},
  year = {2023},
  doi = {10.18653/v1/2023.eacl-main.16},
}
Figure