Measuring the similarity of the internal representations of deep neural networks is an important and challenging problem. Model stitching has been proposed as a possible approach, where two half-networks are connected by mapping the output of the first half-network to the input of the second one. The representations are considered functionally similar if the resulting stitched network achieves good task-specific performance. The mapping is normally created by training an affine stitching layer on the task at hand while freezing the two half-networks, a method called task loss matching. Here, we argue that task loss matching may be very misleading as a similarity index. For example, it can indicate very high similarity between very distant layers, whose representations are known to have different functional properties. Moreover, it can indicate very distant layers to be more similar than architecturally corresponding layers. Even more surprisingly, when comparing layers within the same network, task loss matching often indicates that some layers are more similar to a layer than itself. We argue that the main reason behind these problems is that task loss matching tends to create out-of-distribution representations to improve task-specific performance. We demonstrate that direct matching (when the mapping minimizes the distance between the stitched representations) does not suffer from these problems. We compare task loss matching, direct matching, and well-known similarity indices such as CCA and CKA. We conclude that direct matching strikes a good balance between the structural and functional requirements for a good similarity index.
Barycentric alignment for instance-level comparison of neural representations
Department of XXX, University of YYY, Location, Country(YYY大学XXX系);School of ZZZ, Institute of WWW, Location, Country(WWW研究所ZZZ学院);Department of Electrical and Computer Engineering, UCSD(UCSD电子与计算机工程系);Cognitive Science Department, UCSD(UCSD认知科学系);Department of Computer Science(计算机科学系)
Out-of-Sample Embedding with Proximity Data: Projection versus Restricted Reconstruction
Department of Statistics, Indiana University(统计学系,印第安纳大学);Department of Statistics, North Carolina State University(统计学系,北卡罗来纳州立大学);Department of Applied Mathematics & Statistics, Johns Hopkins University(应用数学与统计学系,约翰霍普金斯大学)
Do Neural Networks Trained with Topological Features Learn Different Internal Representations?
Colorado State University(科罗拉多州立大学);University of Texas, El Paso(德克萨斯大学埃尔帕索分校);University of Washington(华盛顿大学);Michigan State University(密歇根州立大学);Pacific Northwest National Laboratory(太平洋西北国家实验室)
Characterizing universal object representations across vision models
Vision and Computational Cognition Group(视觉与计算认知组);Max Planck Institute(马克斯·普朗克研究所);Justus-Liebig-University Giessen(吉森约瑟夫·李贝大学);Machine Learning Core(机器学习核心);Department of Cognitive Science(认知科学系);National Institute of Mental Health(国家心理健康研究所);Johns Hopkins University(约翰霍普金斯大学)