Automated Detection of Pre-training Text in Black-box LLMs
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 385-393.
https://doi.org/10.24963/ijcai.2025/44
Keywords
- Natural Language Processing: NLP: Language generation
- Machine Learning: ML: Trustworthy machine learning
- AI Ethics, Trust, Fairness: ETF: Trustworthy AI
- Natural Language Processing: NLP: Language models
Abstract
Detecting whether a given text is a member in 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.
@inproceedings{ijcai2025p44,
title = {Automated Detection of Pre-training Text in Black-box LLMs},
author = {Hu, Ruihan and Shang, Yu-Ming and Peng, Jiankun and Luo, Wei and Wang, Yazhe and Zhang, Xi},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {385--393},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/44},
url = {https://doi.org/10.24963/ijcai.2025/44},
}
TY - CPAPER TI - Automated Detection of Pre-training Text in Black-box LLMs AU - Hu, Ruihan AU - Shang, Yu-Ming AU - Peng, Jiankun AU - Luo, Wei AU - Wang, Yazhe AU - Zhang, Xi T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 385 EP - 393 DO - 10.24963/ijcai.2025/44 UR - https://doi.org/10.24963/ijcai.2025/44 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: