atlas

Research map / Architectures and efficiency / RNNs and normalization

How Not to Stitch Representations to Measure Similarity: Task Loss Matching Versus Direct Matching

AAAI 2025 · Architectures and efficiency › RNNs and normalization · approach: Representation geometry and collapse · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that task loss matching (affine stitching trained on task loss) yields misleading layer similarities because it creates out-of-distribution representations, and proposes direct matching (a least-squares affine map to the target representation) as a better similarity index.

Problem

Model stitching with task loss matching is used to measure functional similarity of neural network representations, but it can declare distant or non-corresponding layers highly similar, even a layer more similar to other layers than to itself.

Approach

Attributes TLM's failures to OOD stitched representations that fool the receiver, using energy-based OOD detectors per layer; proposes direct matching (closed-form affine mapping minimizing Frobenius distance to target representation) as a hybrid structural-functional similarity index that stays in-distribution and passes sanity checks.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use direct matching instead of task loss matching for stitchingResNet-18 and ViT-Ti layer identification · CIFAR-10 intra-networkaccuracy: 63.75% -> 100%; 24.17% -> 100%Helped
Use direct matching instead of task loss matching for stitchingResNet-18 and ViT-Ti layer identification · CIFAR-10 inter-networkaccuracy: 35.28% -> 66.39%; 10.00% -> 11.85%Mixed
Use functional direct matching rather than PWCCAResNet-18 similarity index · CIFAR-10 sensitivity testKendall's τ: 0.6276 -> 0.7896Helped
Use functional direct matching rather than PWCCAViT-Ti similarity index · CIFAR-10 sensitivity testKendall's τ: 0.8260 -> 0.7448Hurt
Use functional direct matching rather than LCKAResNet-18 similarity index · SVHN specificity testKendall's τ: 0.9288 -> 0.8895Hurt
Use functional direct matching rather than LCKAViT-Ti similarity index · ImageNet specificity testKendall's τ: 0.7141 -> 0.7912Helped
Train the stitcher with task loss matching rather than direct matchingResNet-18 stitching · CIFAR-10 intra-network layer identificationaccuracy: 100% -> 63.75%Hurt
Train the stitcher with task loss matching rather than direct matchingViT-Ti stitching · CIFAR-10 intra-network layer identificationaccuracy: 100% -> 24.17%Hurt
Optimize the stitching transformation for task loss rather than representation distanceModel stitching similarity · CIFAR-10OOD AUROCHurt

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-10 SVHN ImageNet-1k CIFAR-5M 300K Random Images

Benchmarks: CIFAR-10 SVHN ImageNet-1k

Metrics: relative accuracy AUROC accuracy of identifying corresponding layers Kendall's tau Spearman's rho

Baselines: task loss matching LCKA PWCCA OPD DM (struct.)

Builds on: model stitching energy-based OOD detection centered kernel alignment projection-weighted CCA Ding et al. statistical tests for functional similarity

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy