Abstract
Generative models are capable of producing human-expert level content across a variety of topics and domains. As the impact of generative models grows, it is necessary to develop statistical methods to understand collections of available models. These methods are particularly important in settings where the user may not have access to information related to a model’s pre-training data, weights, or other relevant model-level covariates. In this paper we extend recent results on representations of black-box generative models to model-level statistical inference tasks. We demonstrate that the model-level representations are effective for multiple inference tasks.
Introduction
As large language models (LLMs) become integrated into critical infrastructure, we face a significant transparency crisis. Many state-of-the-art models are essentially "black boxes": their internal weights are proprietary, and their training data is undisclosed. This lack of transparency makes it difficult to assess whether a model is biased, whether it has ingested sensitive or copyrighted material, or if it is safe for specific production environments.
Directly evaluating these properties is often prohibitively expensive or technically impossible without internal access. This paper introduces a framework for performing statistical inference on black-box generative models by treating entire models as data points in a high-dimensional vector space, termed the Data Kernel Perspective Space (DKPS).
The Data Kernel Perspective Space (DKPS)
The DKPS framework transforms a collection of models into a set of Euclidean vectors, enabling the use of standard statistical tools for model-level inference. The process involves five key steps:
- Querying: A population of $n$ models is asked the same set of $m$ queries.
- Embedding: Text responses are converted into high-dimensional vectors using a standard embedding model (e.g.,
nomic-embed-v1.5). - Representing: Each model is represented by a matrix of its average responses to the queries.
- Distancing: Distances between models are calculated based on how differently they responded to the same set of prompts.
- Scaling: Multidimensional Scaling (MDS) projects these distances into a lower-dimensional Euclidean space.
Theoretical results demonstrate that as the number of queries ($m$) or models ($n$) increases, inferences made within this space become statistically consistent, meaning they converge toward the true underlying values.
Experimental Results
Toy Example: Context Augmentation
Using a population of 550 LLaMA-2-7B-Chat models modified with specific context regarding the statistician R.A. Fisher, the authors show that DKPS effectively clusters models based on their internal "knowledge" or bias. As shown in Figure 1, the mean squared error of predictions decreases significantly as more models in the population are labeled, particularly for larger query sets ($m$).
Sensitive Information Detection and Query Relevance
The framework was tested on 50 LoRA adapters trained on varying proportions of "sensitive" data from the Yahoo! Answers dataset. A key insight is that the choice of queries—the "perspective"—acts as a lens. When queries are relevant to the sensitive topic, the DKPS clearly separates models that have seen the data from those that haven't.
Safety and Bias Prediction
In a population of 58 diverse open-source models (including Mistral and Zephyr), a simple 1-Nearest Neighbor regressor in the DKPS outperformed baseline predictions for toxicity and bias. This suggests that the DKPS captures fundamental behavioral traits that correlate with established safety benchmarks like Real Toxicity Prompts (RTP) and BOLD.
Efficiency and Scalability
One of the most significant advantages of the DKPS approach is its computational efficiency. Once a perspective space is established with a small subset of labeled models, predicting properties for a new, unlabeled model is roughly $1/m$ times faster than running a full evaluation suite. The authors report a relative time improvement of up to 2000x compared to standard API-based safety scoring.
Conclusion
The DKPS framework shifts the paradigm from evaluating individual model outputs to performing statistical inference on model populations. While challenges remain in optimizing query selection and handling out-of-sample extensions for very large populations, this approach provides a powerful, efficient, and theoretically grounded method for peering into the "black box" of modern generative AI.
Summary updated