Concentration bounds on response-based vector embeddings of black-box generative models

Aranyak Acharyya, Joshua Agterberg, Youngser Park, Carey E. PriebearXiv 2025 · DOI · arXiv

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:

  1. Sampling: Generating $r$ independent responses from $n$ models across $m$ specific queries.
  2. 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.
  3. Dissimilarity Mapping: Computing a matrix of pairwise distances between models based on these mean responses.
  4. 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.

Visual convergence of estimation error as the number of models (n) increases, showing both violin plots and histograms of the error distribution.

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.

Table showing average estimation error versus theoretical upper bounds for m=2 queries, demonstrating 100% empirical coverage.

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

Abstract

Generative models, such as large language models or text-to-image diffusion models, can generate relevant responses to user-given queries. Response-based vector embeddings of generative models facilitate statistical analysis and inference on a given collection of black-box generative models. The Data Kernel Perspective Space embedding is one particular method of obtaining response-based vector embeddings for a given set of generative models, already discussed in the literature. In this paper, under appropriate regularity conditions, we establish high probability concentration bounds on the sample vector embeddings for a given set of generative models, obtained through the method of Data Kernel Perspective Space embedding. Our results tell us the required number of sample responses needed in order to approximate the population-level vector embeddings with a desired level of accuracy. The algebraic tools used to establish our results can be used further for establishing concentration bounds on Classical Multidimensional Scaling embeddings in general, when the dissimilarities are observed with noise.
BibTeX
@misc{acharyya2025concentration,
  author = {Aranyak Acharyya and Joshua Agterberg and Youngser Park and Carey E. Priebe},
  title = {{Concentration bounds on response-based vector embeddings of black-box generative models}},
  year = {2025},
  eprint = {2511.08307},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.08307},
}
Figure