RECAP: Reproducing Copyrighted Data from LLMs Training with an Agentic Pipeline

André V. Duarte, Xuying li, Bin Zeng, Arlindo L. Oliveira, Lei Li +1 more
10/29/2025
cs.CL

No official code found. Best implementation: avduarte333/RECAP (1 star, Apache-2.0, last commit 2026-03-20).

Abstract

If we cannot inspect the training data of a large language model (LLM), how can we ever know what it has seen? We believe the most compelling evidence arises when the model itself freely reproduces the target content. As such, we propose RECAP, an agentic pipeline designed to elicit and verify memorized training data from LLM outputs. At the heart of RECAP is a feedback-driven loop, where an initial extraction attempt is evaluated by a secondary language model, which compares the output against a reference passage and identifies discrepancies. These are then translated into minimal correction hints, which are fed back into the target model to guide subsequent generations. In addition, to address alignment-induced refusals, RECAP includes a jailbreaking module that detects and overcomes such barriers. We evaluate RECAP on EchoTrace, a new benchmark spanning over 30 full books, and the results show that RECAP leads to substantial gains over single-iteration approaches. For instance, with GPT-4.1, the average ROUGE-L score for the copyrighted text extraction improved from 0.38 to 0.47 - a nearly 24% increase.

View on arXivView PDF

Code Implementations(1)

avduarte333/RECAPCommunity62%
Apache-2.0

This repository presents the original implementation of RECAP: Reproducing Copyrighted Data from LLMs Training with an Agentic Pipeline.

11PythonAug 5, 20257 months agoApache-2.0

Similar Papers

Cite this paper

@article{duarte2025recap,
  title  = {RECAP: Reproducing Copyrighted Data from LLMs Training with an Agentic Pipeline},
  author = {André V. Duarte and Xuying li and Bin Zeng and Arlindo L. Oliveira and Lei Li and Zhuo Li},
  year   = {2025},
  eprint = {2510.25941},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.25941v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.25941.svg)](https://codeofpaper.com/paper/2510.25941)

Discussion