Introduction
The rise of multi-modal models, particularly text-to-image generators, has necessitated robust evaluation metrics such as CLIPScore and Human Preference Score (HPS). While these metrics provide a global view of model performance, they often fail to capture instance-level nuances when aggregated as simple averages. Traditional dimensionality reduction (DR) techniques like t-SNE and UMAP are frequently employed to visualize these embedding spaces. However, these methods suffer from two primary flaws in this context: local occlusion, where points with disparate metric values are clustered together based solely on feature similarity, and inaccurate contours, where the resulting 2D maps smooth over critical performance "valleys" or "peaks."
Methodology: Adaptive Kernel Regression
AKRMap introduces a supervised approach to dimensionality reduction that treats the evaluation metric as a primary signal rather than an afterthought. The architecture consists of a neural network-based projection guided by Kernel Regression Supervision.
Supervised Projection and Adaptive Kernels
Unlike unsupervised methods, AKRMap utilizes a 4-layer MLP to project high-dimensional embeddings into a 2D space while minimizing a post-projection kernel regression loss. This ensures the spatial layout directly reflects the metric values. A key innovation is the Adaptive Generalized Kernel, a learnable t-distribution-like kernel defined as:
$$K(x, \alpha, \beta) = (1 + \alpha \|x\|^{2\beta})^{-1}$$
By optimizing the parameters $\alpha$ and $\beta$, the model dynamically adapts the shape of the metric landscape to the data, effectively addressing the "crowding problem" inherent in high-to-low dimensional projections.
Neighborhood Preservation
To maintain the semantic integrity of the original embedding space, AKRMap incorporates a KL-divergence constraint. This ensures that while the layout is metric-aware, semantically similar points remain proximal, preserving the "look and feel" of traditional embedding visualizations.
Experimental Evaluation
The authors validated AKRMap across several large-scale datasets, including the Human Preference Dataset (HPD) and MS-COCO. The method was tested against metrics like HPSv2, PickScore, and CLIPScore.
Quantitative Results
AKRMap demonstrated significant improvements in mapping accuracy. On the HPD dataset, it achieved nearly a 50% reduction in Mean Absolute Error (MAE) compared to t-SNE when visualizing HPSv2 scores. The model also showed robust generalization to out-of-sample data, confirming that it learns a meaningful mapping of the metric landscape rather than merely memorizing training points.
Qualitative Insights
Qualitatively, AKRMap produces smoother and more interpretable contour maps. By separating high-performing regions from low-performing ones, it allows researchers to perform fine-grained diagnostics. For example, the tool identified specific failures in Stable Diffusion v2.1 regarding human figures in sports contexts—a detail obscured by global averages.
Discussion and Limitations
While AKRMap prioritizes "trustworthy" metric mapping, this focus can lead to a slight trade-off in pure neighborhood preservation compared to unsupervised t-SNE. Additionally, the current implementation requires single-vector representations, posing a challenge for metrics involving sequences of embeddings. Future work aims to scale the system to handle billions of points, such as those in the LAION-5b dataset, to facilitate large-scale data curation.
Conclusion
AKRMap represents a significant step forward in diagnostic visualization for machine learning. By integrating metric supervision directly into the dimensionality reduction process via adaptive kernels, it provides a more accurate and actionable view of model performance than traditional unsupervised methods.
Summary updated