Introduction
Generative models, particularly Large Language Models (LLMs), are increasingly treated as "black boxes" where internal parameters are inaccessible. To analyze and compare these models, researchers often rely on response-based vector embeddings. By prompting a collection of models with identical queries, their stochastic outputs can be transformed into high-dimensional vectors, creating a "model fingerprint." However, because these models are probabilistic, a single response is merely one draw from a complex distribution. This paper addresses a fundamental gap in the field: providing rigorous mathematical guarantees—concentration bounds—to determine how many samples are required to ensure these embeddings reflect true model behavior rather than statistical noise.
The DKPS Embedding Framework
The study focuses on the Data Kernel Perspective Space (DKPS) method. The embedding pipeline consists of four primary stages:
- Sampling: Generating $r$ independent responses from $n$ models across $m$ specific queries.
- Vectorization: Converting text responses into high-dimensional vectors using a standard embedder and averaging them to find a "mean response" for each model-query pair.
- Dissimilarity Mapping: Computing a matrix of pairwise distances between models based on these mean responses.
- Dimensionality Reduction: Applying Classical Multidimensional Scaling (CMDS) to project these distances into a lower-dimensional Euclidean space ($R^d$).
Theoretical Guarantees and the $n^3$ Scaling Law
The core contribution of this work is the derivation of high-probability bounds on the error between sample-based embeddings and their theoretical population-level counterparts. A critical finding is the $n^3$ Scaling Law: for the estimation error to vanish as the number of models ($n$) increases, the number of samples per model ($r$) must grow faster than the cube of the number of models ($r = \omega(n^3)$).
Theorem 2 establishes a high-probability upper bound on the estimation error, expressed as a cubic polynomial of the term $(n^3/r)^{1/2-\delta}$. These bounds depend heavily on the stability of the eigenvalues of the dissimilarity matrix; if the "gap" between model behaviors is narrow relative to the noise, the resulting embeddings become inherently less reliable.
Empirical Validation
The authors validated these theoretical bounds using both simulated Bernoulli responses and real-world data from the Google-gemma-2-2b-it model. In the LLM experiments, responses were vectorized using the nomic-embed-text-v2-moe model.
As shown in the visual analysis above, as $n$ and $r$ increase according to the derived ratios, the estimation error consistently concentrates toward zero. The violin plots illustrate the narrowing variance and decreasing mean of the error, while the histograms show the distribution shifting leftward toward higher precision.
Performance and Coverage
Experimental results confirmed that the theoretical bounds are conservative but safe. In every test case, the empirical coverage was 100%, meaning the actual error never exceeded the calculated theoretical upper bound.
As seen in the table, the average estimation error is often orders of magnitude smaller than the theoretical bound. For instance, at $n=16$, the average error was $0.0006$ while the safety bound was $1.78$. This suggests that while the current bounds provide a robust safety net, there is significant room for refining them to be "sharper," which would allow for more sample-efficient model evaluations.
Conclusion and Future Work
This research provides the first formal framework for understanding the reliability of black-box model embeddings. While the $r = \omega(n^3)$ requirement highlights a significant computational cost for scaling model comparisons, it offers a necessary safeguard against statistical artifacts. Future work will focus on improving sample efficiency and exploring scenarios where the embedding dimension $d$ scales with the number of models.
Summary updated