NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Model Correlation Detection via Random Selection Probing

Ruibo Chen, Sheng Zhang, Yihan Wu, Tong Zheng, Peihua Mai, Heng Huang · DOI

Abstract

Random Selection Probing (RSP) is a novel statistical framework designed to detect if one AI model is a derivative of another (e.g., via fine-tuning) without requiring access to internal model weights. By optimizing "nonsense" prefixes that trigger specific "random" outputs in a reference model and testing their transferability to a target model, RSP generates rigorous $p$-values to prove model correlation with high statistical confidence.

Introduction

In the rapidly evolving landscape of Large Language Models (LLMs) and Vision-Language Models (VLMs), tracking model lineage is a significant challenge. Proving that a proprietary model has been fine-tuned from another without permission is difficult when internal weights are inaccessible. Existing methods typically rely on representational measures (requiring weight access) or functional measures (providing heuristic scores without principled thresholds). RSP addresses this by reframing model correlation detection as a hypothesis test, distinguishing between coincidental similarity and actual architectural lineage.

Methodology

The RSP framework operates in two distinct stages: Prefix Optimization and Correlation Detection.

The two-stage RSP framework: Stage 1 involves optimizing prefixes to trigger specific outputs in a reference model, while Stage 2 uses these prefixes to calculate a p-value for correlation detection in a test model.

1. Prefix Optimization

The goal is to find a "trigger" (textual or visual prefix) that forces a model to perform a "random" task in a specific way. For instance, given the prompt "Randomly choose a character from a to z," a prefix is optimized to make the model pick 'w' with high probability. To ensure the prefix captures model-specific quirks rather than general features, an unrelated baseline model ($M_u$) is used during optimization to minimize transfer to non-derivative models.

2. Correlation Detection

Optimized prefixes are fed into the test model. If the test model is a derivative, these triggers should transfer, causing identical "random" outputs. Using a Binomial distribution, RSP calculates a $p$-value. A $p$-value below a threshold (e.g., 0.05) rejects the null hypothesis of independence.

Experimental Evaluation

RSP was evaluated across several model families (Llama-3, Qwen-2.5, Phi-4) and fine-tuning datasets (GSM8k, Dolly-15k, Alpaca). It was also tested against publicly released derivatives like Llama-3-Instruct-8B-SimPO to detect lineage in real-world scenarios.

Results and Discussion

RSP demonstrates high sensitivity for related models, consistently producing extremely small $p$-values. Conversely, unrelated models maintain high $p$-values, indicating no correlation.

Statistical confidence (-log10 p-value) as a function of the number of samples across various LLM and VLM datasets. Higher values indicate stronger evidence of correlation.

Key insights include:

  • Model-Specific Features: Penalizing transfer to unrelated models during optimization creates "secret handshakes" unique to a model family.
  • Statistical Interpretability: The use of $p$-values provides a mathematically grounded measure of similarity.
  • Efficiency: Textual prefix optimization is fast (~65s on an H100), though visual prefixes can be more computationally intensive under black-box constraints.

Conclusion

RSP represents a significant advancement in transparent model auditing and intellectual property protection. While limitations exist regarding optimization costs for VLMs and potential adaptive adversaries, the framework provides a robust, interpretable method for detecting model lineage in black-box settings.

Summary updated

BibTeX
@misc{chen2025model,
  author = {Ruibo Chen and Sheng Zhang and Yihan Wu and Tong Zheng and Peihua Mai and Heng Huang},
  title = {{Model Correlation Detection via Random Selection Probing}},
  year = {2025},
  eprint = {2509.24171},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.24171},
}
Figure