Skip to main content
QUICK REVIEW

[Paper Review] Exploring the Interchangeability of CNN Embedding Spaces

David G. McNeely-White, Benjamin Sattelberg|arXiv (Cornell University)|Oct 5, 2020
Face recognition and analysisComputer Science46 references5 citations
TL;DR

This paper demonstrates that feature embeddings from different CNNs trained for the same task—image classification and face recognition—can be made nearly interchangeable via empirically estimated linear mappings. The key finding is that performance in downstream tasks like face verification is preserved within 1.0% accuracy loss after mapping, revealing a deep linear equivalence between embedding spaces across diverse architectures and training data.

ABSTRACT

CNN feature spaces can be linearly mapped and consequently are often interchangeable. This equivalence holds across variations in architectures, training datasets, and network tasks. Specifically, we mapped between 10 image-classification CNNs and between 4 facial-recognition CNNs. When image embeddings generated by one CNN are transformed into embeddings corresponding to the feature space of a second CNN trained on the same task, their respective image classification or face verification performance is largely preserved. For CNNs trained to the same classes and sharing a common backend-logit (soft-max) architecture, a linear-mapping may always be calculated directly from the backend layer weights. However, the case of a closed-set analysis with perfect knowledge of classifiers is limiting. Therefore, empirical methods of estimating mappings are presented for both the closed-set image classification task and the open-set task of face recognition. The results presented expose the essentially interchangeable nature of CNNs embeddings for two important and common recognition tasks. The implications are far-reaching, suggesting an underlying commonality between representations learned by networks designed and trained for a common task. One practical implication is that face embeddings from some commonly used CNNs can be compared using these mappings.

Motivation & Objective

  • To investigate whether feature embeddings from different CNNs trained on the same task are linearly interchangeable.
  • To develop empirical methods for estimating linear mappings between embedding spaces when analytical solutions are unavailable.
  • To evaluate the performance of mapped embeddings in both closed-set (image classification) and open-set (face recognition) scenarios.
  • To demonstrate practical implications, such as cross-database identity linkage using face embeddings from different models.

Proposed method

  • For closed-set image classification, linear mappings were estimated between 10 ImageNet-trained CNNs using ridge regression on paired embeddings from the same images.
  • In the open-set face recognition setting, mappings were estimated using 2,700 matched image pairs from 9 LFW training folds to align embeddings from different face recognition models.
  • The linear mapping matrix was computed by minimizing the L2 distance between transformed embeddings and target embeddings using ridge regression: $\min_{\tilde{\mathbf{M}}_{A\to B}} \sum_{i=1}^{m} ||\tilde{\mathbf{M}}_{A\to B}f_A(x_i) - f_B(y_i)||_2 + ||\tilde{\mathbf{M}}_{A\to B}||_F$.
  • Mapped embeddings were evaluated on the remaining LFW validation fold using face verification accuracy, averaged over 10 cross-validation folds.
  • Identity mappings were used as a baseline to confirm that direct comparison between embeddings from different models yields near-random performance, validating the necessity of learned mappings.
  • The approach was applied to real-world data in a federal research program to link identities across separate databases using cross-model embeddings.

Experimental results

Research questions

  • RQ1Can feature embeddings from different CNNs trained on the same task be linearly mapped to one another with minimal performance degradation?
  • RQ2How well do empirically estimated linear mappings preserve performance in both closed-set image classification and open-set face recognition tasks?
  • RQ3To what extent do different CNN architectures, even with varying training data and structures, produce embedding spaces that are linearly equivalent?
  • RQ4What are the practical implications of such linear interchangeability, particularly in cross-database identity linkage?
  • RQ5Why do direct comparisons between embeddings from different models fail, and how does learning a linear mapping resolve this?

Key findings

  • Linear mappings between CNN embedding spaces can be reliably estimated using ridge regression on matched image pairs, even when networks differ in architecture and training data.
  • In the closed-set image classification task, performance after mapping was largely preserved across 10 ImageNet-trained models, with minimal accuracy degradation.
  • In the open-set face recognition task on LFW, the maximum accuracy loss due to linear mapping was 1.0%, demonstrating strong linear equivalence between embedding spaces.
  • The model MM performed poorly in mapping, suggesting that some networks may have less transferable representations, but the majority of embeddings remain highly interchangeable.
  • Direct comparison of embeddings using identity mappings resulted in near-random performance, confirming that learned linear mappings are essential for effective interchangeability.
  • The method enabled successful cross-database identity linkage in a real-world federal research program, proving practical utility in linking concealed identities across separate databases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.