Reproduce “Con-ReCall: Detecting Pre-training Data in LLMs via Contrastive Decoding” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Cheng Wang, Yiwei Wang, Bryan Hooi, Yujun Cai, Nanyun Peng, Kai-Wei Chang

CON-RECALL introduces a novel method for identifying pre-training data memorized by large language models, leveraging contrastive decoding to amplify contextual signals. This approach achieves state-of-the-art detection accuracy on the WikiMIA benchmark, demonstrating robustness against text manipulations and practical utility with gray-box access and approximated member data.

Key insights

  • Empirical analysis revealed that member and non-member contexts induce asymmetric distributional shifts in LLM probability distributions, specifically for member versus non-member data.
  • Member data demonstrates stability with other member contexts but a significant negative shift with non-member contexts, while non-member data exhibits heightened sensitivity and larger magnitude shifts regardless of prefix type.
  • These asymmetric shifts, particularly when contrasted through a specific decoding mechanism, provide a strong and previously underutilized signal for reliably inferring data membership.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.