Towards an Explainable Comparison and Alignment of Feature Embeddings
Mohammad Jalali, Bahar Dibaei Nia, Farzan Farnia
Abstract
While several feature embedding models have been developed in the literature, comparisons of these embeddings have largely focused on their numerical performance in classification-related downstream applications. However, an interpretable comparison of different embeddings requires identifying and analyzing mismatches between sample groups clustered within the embedding spaces. In this work, we propose the Spectral Pairwise Embedding Comparison (SPEC) framework to compare embeddings and identify their differences in clustering a reference dataset. Our approach examines the kernel matrices derived from two embeddings and leverages the eigendecomposition of the kernel difference matrix to detect sample clusters that are captured differently by the two embeddings. We present a scalable implementation of this kernel-based approach, with computational complexity that grows linearly with the sample size. Furthermore, we introduce an optimization problem using this framework to align two embeddings, ensuring that clusters identified in one embedding are also captured in the other model. We provide numerical results demonstrating the SPEC's application to compare and align embeddings on large-scale datasets such as ImageNet and MS-COCO. The project page is available at https://mjalali.github.io/SPEC/ .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Scendi Score: Prompt-Aware Diversity Evaluation Via Schur Complement of Clip Embeddings cites SPARKE: Scalable Prompt-Aware Diversity and Novelty Guidance in Diffusion Models via RKE Score
- SPARKE: Scalable Prompt-Aware Diversity and Novelty Guidance in Diffusion Models via RKE Score cites Scendi Score: Prompt-Aware Diversity Evaluation Via Schur Complement of Clip Embeddings
- Scendi Score: Prompt-Aware Diversity Evaluation Via Schur Complement of Clip Embeddings cites Learning Transferable Visual Models From Natural Language Supervision
- DAK-UCB: Diversity-Aware Prompt Routing for LLMs and Generative Models cites Scendi Score: Prompt-Aware Diversity Evaluation Via Schur Complement of Clip Embeddings
- DAK-UCB: Diversity-Aware Prompt Routing for LLMs and Generative Models cites BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
- DAK-UCB: Diversity-Aware Prompt Routing for LLMs and Generative Models cites Learning Transferable Visual Models From Natural Language Supervision
- SPARKE: Scalable Prompt-Aware Diversity and Novelty Guidance in Diffusion Models via RKE Score cites When Kernels Multiply, Clusters Unify: Fusing Embeddings with the Kronecker Product
- When Kernels Multiply, Clusters Unify: Fusing Embeddings with the Kronecker Product cites SPARKE: Scalable Prompt-Aware Diversity and Novelty Guidance in Diffusion Models via RKE Score
- SPARKE: Scalable Prompt-Aware Diversity and Novelty Guidance in Diffusion Models via RKE Score cites Learning Transferable Visual Models From Natural Language Supervision
- SPARKE: Scalable Prompt-Aware Diversity and Novelty Guidance in Diffusion Models via RKE Score cites MMD Guidance: Training-Free Distribution Adaptation for Diffusion Models via Maximum Mean Discrepancy Guidance
- Visual Instruction Tuning cites BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
- Visual Instruction Tuning cites Learning Transferable Visual Models From Natural Language Supervision
- Visual Instruction Tuning cites Flamingo: a Visual Language Model for Few-Shot Learning
- When Kernels Multiply, Clusters Unify: Fusing Embeddings with the Kronecker Product cites Scendi Score: Prompt-Aware Diversity Evaluation Via Schur Complement of Clip Embeddings
- When Kernels Multiply, Clusters Unify: Fusing Embeddings with the Kronecker Product cites BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
- When Kernels Multiply, Clusters Unify: Fusing Embeddings with the Kronecker Product cites Learning Transferable Visual Models From Natural Language Supervision
- BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models cites Flamingo: a Visual Language Model for Few-Shot Learning
- Flamingo: a Visual Language Model for Few-Shot Learning cites Learning Transferable Visual Models From Natural Language Supervision
- MMD Guidance: Training-Free Distribution Adaptation for Diffusion Models via Maximum Mean Discrepancy Guidance cites Scendi Score: Prompt-Aware Diversity Evaluation Via Schur Complement of Clip Embeddings
- MMD Guidance: Training-Free Distribution Adaptation for Diffusion Models via Maximum Mean Discrepancy Guidance cites DAK-UCB: Diversity-Aware Prompt Routing for LLMs and Generative Models
Cited by top-tier papers7
- Scendi Score: Prompt-Aware Diversity Evaluation Via Schur Complement of Clip EmbeddingsAzim Ospanov, Mohammad Jalali, Farzan FarniaICCV 2025 · 17 citations
- SPARKE: Scalable Prompt-Aware Diversity and Novelty Guidance in Diffusion Models via RKE ScoreMohammad Jalali, Haoyu Lei, Amin Gohari, Farzan FarniaNeurIPS 2025 · 15 citations
- When Kernels Multiply, Clusters Unify: Fusing Embeddings with the Kronecker ProductYouqi Wu, Jingwei Zhang, Farzan FarniaNeurIPS 2025 · 7 citations
- DAK-UCB: Diversity-Aware Prompt Routing for LLMs and Generative ModelsDonya Jafari, Farzan FarniaICLR 2026 · 5 citations
- MMD Guidance: Training-Free Distribution Adaptation for Diffusion Models via Maximum Mean Discrepancy GuidanceMatina Mahdizadeh Sani, Nima Jamali, Mohammad Jalali, Farzan FarniaICML 2026 · 4 citations
Builds on28
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Visual Instruction TuningHaotian Liu, Chunyuan Li, Qingyang Wu, Yong Jae LeeNeurIPS 2023 · 11,349 citations
- BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language ModelsJunnan Li, Dongxu Li, Silvio Savarese, Steven C. H. HoiICML 2023 · 7,873 citations
- Flamingo: a Visual Language Model for Few-Shot LearningJean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech et al.NeurIPS 2022 · 6,707 citations
- Unsupervised Learning of Visual Features by Contrasting Cluster AssignmentsMathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal et al.NeurIPS 2020 · 5,249 citations
Related papers
- Unveiling Differences in Generative Models: A Scalable Differential Clustering ApproachJingwei Zhang, Mohammad Jalali, Cheuk Ting Li, Farzan FarniaCVPR 2025
- KODA: Contrastive Representation Comparison and Alignment for Vision-Language Foundation ModelsYouqi WU, Mohammad Jalali, Farzan FarniaICML 2026 · 2 citations
- A General Framework for Comparing Embedding Visualizations Across Class-Label HierarchiesTrevor Manz, Fritz Lekschas, Evan Greene, Greg Finak et al.IEEE VIS 2024 · 3 citations
- Graph Minimum Factorization Distance and Its Application to Large-Scale Graph Data ClusteringJicong FanICML 2025
- A Benchmarking Study of Embedding-based Entity Alignment for Knowledge GraphsZequn Sun, Qingheng Zhang, Wei Hu, Chengming Wang et al.VLDB 2020 · 297 citations
