DMRL: Data- and Model-aware Reward Learning for Data Extraction
Zhiqiang Wang, Ruoxi Cheng
TL;DR
DMRL tackles privacy leakage in LLMs by framing data extraction as an inverse reinforcement learning problem, learning shadow reward models from a curated privacy-leakage Q&A dataset. It integrates data- and model-hardness signals through DMHM to adapt policy updates, using GRPO-S to stabilize and scale learning. Empirical results demonstrate that DMRL outperforms baselines in PII extraction, reconstruction, and inference across multiple models and datasets, highlighting the method's robustness and potential for red-teaming and defense design. The work advances privacy-safety research for LLMs by offering a scalable, hardness-aware framework that couples IRL-based reward modeling with distribution-aware optimization, though it emphasizes responsible usage and risk mitigation in deployment.
Abstract
Large language models (LLMs) are inherently vulnerable to unintended privacy breaches. Consequently, systematic red-teaming research is essential for developing robust defense mechanisms. However, current data extraction methods suffer from several limitations: (1) rely on dataset duplicates (addressable via deduplication), (2) depend on prompt engineering (now countered by detection and defense), and (3) rely on random-search adversarial generation. To address these challenges, we propose DMRL, a Data- and Model-aware Reward Learning approach for data extraction. This technique leverages inverse reinforcement learning to extract sensitive data from LLMs. Our method consists of two main components: (1) constructing an introspective reasoning dataset that captures leakage mindsets to guide model behavior, and (2) training reward models with Group Relative Policy Optimization (GRPO), dynamically tuning optimization based on task difficulty at both the data and model levels. Comprehensive experiments across various LLMs demonstrate that DMRL outperforms all baseline methods in data extraction performance.
