Introduction
As the landscape of generative AI expands, the lack of principled methods for comparing models has become a significant bottleneck. While two Large Language Models (LLMs) might share the same parameter count, their behaviors can diverge drastically based on training data and fine-tuning. Previous empirical research suggested that a model's "personality" or "perspective" could be mapped by prompting it with specific queries and embedding the responses into a shared Euclidean space. However, it remained mathematically uncertain whether these visualizations represented a stable, underlying geometry or were merely artifacts of specific sampling runs. This paper provides the theoretical foundation for these comparisons, establishing the conditions under which model embeddings in the Data Kernel Perspective Space (DKPS) are statistically consistent.
The Data Kernel Perspective Space (DKPS)
The authors utilize the DKPS framework to map disparate generative models into a shared, low-dimensional space. The process involves four key steps:
- Prompting: A set of $n$ models is presented with $m$ queries. To account for stochasticity, $r$ replicates are generated for each query.
- Embedding: Domain-specific models (e.g.,
nomic-embed-text) transform these responses into high-dimensional vectors. - Dissimilarity Matrix: A "model mean discrepancy matrix" is calculated based on the average distance between model responses across the query set.
- Multi-Dimensional Scaling (MDS): Using the raw stress criterion, MDS finds a low-dimensional Euclidean representation for each model.
Theoretical Foundations of Consistency
The core contribution of this work is the rigorous analysis of three scaling regimes, proving that estimated representations converge to a true "population-level" representation as sampling increases:
- Growing Replicates ($r \to \infty$): The estimate converges as more samples are drawn from each model, provided the model's internal variance is bounded.
- Growing Queries ($m \to \infty$): The perspective space stabilizes as the diversity of prompts increases, ensuring the "map" isn't biased by a narrow query set.
- Growing Models and Queries ($n, m \to \infty$): Under the assumption that models exist on a compact Riemannian manifold, the entire manifold of possible models can be consistently estimated.
Empirical Validation
The authors validated their theoretical proofs using two distinct experimental setups: language models (LLaMA-3-8B-Instruct) and text-to-image models (StableDiffusion-3.5-medium).
In the language model experiments, models were modified with different system prompts to simulate various "perspectives." In the text-to-image experiments, models were prompted to generate images in the styles of different famous artists. In both cases, as the number of replicates ($r$) and queries ($m$) increased, the $L_2$ error between the estimated positions and the high-sample "ground truth" consistently dropped toward zero.
Key Insights and Trade-offs
- Noise and Stability: Consistency is maintained as long as the average trace of the covariance of the embeddings grows slower than the number of replicates ($o(r)$). This ensures that even "noisy" models eventually yield stable representations.
- Query Efficiency: Interestingly, the experiments suggest that increasing the number of unique queries ($m$) often improves estimation quality more effectively than simply increasing replicates ($r$) for a smaller set of queries.
- Visual Clustering: Beyond theoretical convergence, the DKPS successfully clustered models by semantic similarity. For instance, Stable Diffusion models modified for similar artistic styles (e.g., Impressionists) were positioned closer together than those representing disparate styles.
Conclusion and Future Directions
By proving the statistical consistency of DKPS, this paper provides a robust mathematical framework for the comparative study of generative AI. While the current work assumes finite-dimensional Euclidean space, future research may extend these proofs to Reproducing Kernel Hilbert Spaces (RKHS) to capture even more complex model behaviors. Additionally, further investigation is needed to determine how specific query sets approximate a model's inherent, query-independent features.
Summary updated