Hide and Seek: Fingerprinting Large Language Models with Evolutionary Learning
Dmitri Iourovitski, Sanat Sharma, Rakshak Talwar
TL;DR
This work reframes LLM fingerprinting as a black-box attribution problem under the Semantic Manifold Hypothesis (SMH), proposing an evolutionary in-context learning loop with an Auditor and a Detective to uncover discriminative prompts that reveal family-specific output patterns. Formally, SMH describes next-token generation as lying on a low-dimensional manifold $\mathcal{M}_s$, and the authors define objective prompts $\hat{P}$ and response subsets $\hat{S}$ to maximize $P(M_i = X|S_x)$ while minimizing overlap with alternatives. The methodology demonstrates a 72% accuracy in identifying LLM families and provides insights into prompt structure, cross-family differences, and the influence of model size on detectability, with detailed experimental scenarios and a roadmap for future extensions. The work advances model attribution, AI security, and transparency by showing how in-context optimization can surface salient model traits in a black-box setting, guiding future fingerprinting and verification tools.
Abstract
As content generated by Large Language Model (LLM) has grown exponentially, the ability to accurately identify and fingerprint such text has become increasingly crucial. In this work, we introduce a novel black-box approach for fingerprinting LLMs, achieving an impressive 72% accuracy in identifying the correct family of models (Such as Llama, Mistral, Gemma, etc) among a lineup of LLMs. We present an evolutionary strategy that leverages the capabilities of one LLM to discover the most salient features for identifying other LLMs. Our method employs a unique "Hide and Seek" algorithm, where an Auditor LLM generates discriminative prompts, and a Detective LLM analyzes the responses to fingerprint the target models. This approach not only demonstrates the feasibility of LLM-driven model identification but also reveals insights into the semantic manifolds of different LLM families. By iteratively refining prompts through in-context learning, our system uncovers subtle distinctions between model outputs, providing a powerful tool for LLM analysis and verification. This research opens new avenues for understanding LLM behavior and has significant implications for model attribution, security, and the broader field of AI transparency.
