arXiv:2506.19399cs.CLcs.AI2025-06IJCAI被引 7

无需人工干预,自动检测大模型训练文本的黑盒方法

Automated Detection of Pre-training Text in Black-box LLMs

  • 用序列到序列模型提取输入输出间的隐含映射特征
  • 通过关键词扰动增强成员身份特征区分度
  • 原型分类器缓解真实场景下训练样本少导致的过拟合

检测某段文本是否属于大语言模型(LLMs)的预训练数据,对保障数据隐私和版权至关重要。现有方法多依赖模型内部信息(如参数或词元概率),在仅能访问输入输出的黑盒环境下失效。尽管已有黑盒检测方法,但需大量人工设计复杂问题或指令。为此,我们提出VeilProbe,首个无需人工干预的黑盒预训练文本检测框架。该方法利用序列到序列映射模型推断输入文本与模型生成输出后缀之间的潜在映射特征,并通过关键词扰动获取更可区分的成员特征。针对实际中真实训练样本有限的问题,引入原型基成员分类器以缓解过拟合。在三个广泛使用的数据集上的大量实验表明,本框架在黑盒设置下有效且性能优越。

原文摘要 · Abstract (English)

Detecting whether a given text is a member of the pre-training data of Large Language Models (LLMs) is crucial for ensuring data privacy and copyright protection. Most existing methods rely on the LLM's hidden information (e.g., model parameters or token probabilities), making them ineffective in the black-box setting, where only input and output texts are accessible. Although some methods have been proposed for the black-box setting, they rely on massive manual efforts such as designing complicated questions or instructions. To address these issues, we propose VeilProbe, the first framework for automatically detecting LLMs' pre-training texts in a black-box setting without human intervention. VeilProbe utilizes a sequence-to-sequence mapping model to infer the latent mapping feature between the input text and the corresponding output suffix generated by the LLM. Then it performs the key token perturbations to obtain more distinguishable membership features. Additionally, considering real-world scenarios where the ground-truth training text samples are limited, a prototype-based membership classifier is introduced to alleviate the overfitting issue. Extensive evaluations on three widely used datasets demonstrate that our framework is effective and superior in the black-box setting.

黑盒检测数据隐私成员推理LLM安全

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。