mlsanityData to 7 Oct 2026

Tracing Representation Progression: Analyzing and Enhancing Layer-Wise Similarity

arXiv 2406.14479 ↗First posted 20 Jun 2024cs.AI cs.CL cs.CVcited by 36

Not on the map. Why?

Abstract (arXiv)

Analyzing the similarity of internal representations has been an important technique for understanding the behavior of deep neural networks. Most existing methods for analyzing the similarity between representations of high dimensions, such as those based on Centered Kernel Alignment (CKA), rely on statistical properties of the representations for a set of data points. In this paper, we focus on transformer models and study the similarity of representations between the hidden layers of individual transformers. In this context, we show that a simple sample-wise cosine similarity metric is capable of capturing the similarity and aligns with the complicated CKA. Our experimental results on common transformers reveal that representations across layers are positively correlated, with similarity increasing when layers get closer. We provide a theoretical justification for this phenomenon under the geodesic curve assumption for the learned transformer. We then show that an increase in representation similarity implies an increase in predicted probability when directly applying the last-layer classifier to any hidden layer representation. We then propose an aligned training method to improve the effectiveness of shallow layer by enhancing the similarity between internal representations, with trained models that enjoy the following properties: (1) more early saturation events, (2) layer-wise accuracies monotonically increase and reveal the minimal depth needed for the given task, (3) when served as multi-exit models, they achieve on-par performance with standard multi-exit architectures which consist of additional classifiers designed for early exiting in shallow layers. To our knowledge, our work is the first to show that one common classifier is sufficient for multi-exit models. We conduct experiments on both vision and NLP tasks to demonstrate the performance of the proposed aligned training.

Key facts. Cited by 36 papers in the map (data through 7 Oct 2026). Builds on 53 of its 67 references that are in the map. First posted on arXiv 20 Jun 2024.

Builds on

53 of 67 references.

References · 53

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  7. 2020End-to-End Object Detection with Transformerscited by 7,384
  8. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  9. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  10. 2021Zero-Shot Text-to-Image Generationcited by 4,276
  11. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  12. 2016Pointer Sentinel Mixture Modelscited by 2,992
38 more
  1. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  2. 2023A Survey of Large Language Modelscited by 2,537
  3. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  4. 2019Similarity of Neural Network Representations Revisitedcited by 1,695
  5. 2022Scaling Autoregressive Models for Content-Rich Text-to-Image Generationcited by 1,287
  6. 2020Prevalence of Neural Collapse during the terminal phase of deep learning trainingcited by 713
  7. 2021Vector-quantized Image Modeling with Improved VQGANcited by 656
  8. 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
  9. 2022Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learningcited by 553
  10. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
  11. 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
  12. 2017Stable Architectures for Deep Neural Networkscited by 340
  13. 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 322
  14. 2018Insights on representational similarity in neural networks with canonical correlationcited by 318
  15. 2022Confident Adaptive Language Modelingcited by 297
  16. 2020Do Wide and Deep Networks Learn the Same Things? Uncovering How Neural Network Representations Vary with Width and Depthcited by 241
  17. 2021A Geometric Analysis of Neural Collapse with Unconstrained Featurescited by 226
  18. 2022A Contrastive Framework for Neural Text Generationcited by 224
  19. 2016Diachronic Word Embeddings Reveal Statistical Laws of Semantic Changecited by 219
  20. 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 219
  21. 2021Does Knowledge Distillation Really Work?cited by 187
  22. 2021Exploring Deep Neural Networks via Layer-Peeled Model: Minority Collapse in Imbalanced Trainingcited by 166
  23. 2023Future Lens: Anticipating Subsequent Tokens from a Single Hidden Statecited by 116
  24. 2019BERTs of a feather do not generalize together: Large variability in generalization across models with similar test set performancecited by 89
  25. 2022Reliability of CKA as a Similarity Measure in Deep Learningcited by 82
  26. 2022Imbalance Trouble: Revisiting Neural-Collapse Geometrycited by 80
  27. 2023MatFormer: Nested Transformer for Elastic Inferencecited by 79
  28. 2022Revisiting Over-smoothing in BERT from the Perspective of Graphcited by 71
  29. 2022Agree to Disagree: Diversity through Disagreement for Better Transferabilitycited by 69
  30. 2019Investigating Multilingual NMT Representations at Scalecited by 68
  31. 2022Contrastive Search Is What You Need For Neural Text Generationcited by 58
  32. 2022A Law of Data Separation in Deep Learningcited by 36
  33. 2022Perturbation Analysis of Neural Collapsecited by 34
  34. 2023Understanding Deep Representation Learning via Layerwise Feature Compression and Discriminationcited by 31
  35. 2024FFN-SkipLLM: A Hidden Gem for Autoregressive Decoding with Adaptive Feed Forward Skippingcited by 23
  36. 2022Beyond Supervised vs. Unsupervised: Representative Benchmarking and Analysis of Image Representation Learningcited by 20
  37. 2021RomeBERT: Robust Training of Multi-Exit BERTcited by 19
  38. 2022On the Implicit Bias Towards Minimal Depth of Deep Neural Networkscited by 12

50 most cited of 53 All 53 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 12; 2026: 23.

36 papers.

Sort:

By area:

  1. 2026Not All Directions Matter: Towards Structured and Task-Aware Low-Rank Model Adaptationcited by 11
  2. 2025Representation Potentials of Foundation Models for Multimodal Alignment: A Surveycited by 10
  3. 2025Understanding the Modality Gap: An Empirical Study on the Speech-Text Alignment Mechanism of Large Speech Language Modelscited by 10
  4. 2026Back into Plato's Cave: Examining Cross-modal Representational Convergence at Scalecited by 10
  5. 2024Collective Model Intelligence Requires Compatible Specializationcited by 7
  6. 2025CR-Net: Scaling Parameter-Efficient Training with Cross-Layer Low-Rank Structurecited by 7
  7. 2025From Compression to Expression: A Layerwise Analysis of In-Context Learningcited by 5
  8. 2025Emergent Extreme-View Geometry in 3D Foundation Modelscited by 5
  9. 2025MorphServe: Efficient and Workload-Aware LLM Serving via Runtime Quantized Layer Swapping and KV Cache Resizingcited by 4
  10. 2025Auto-Compressing Networkscited by 4
  11. 2026Suppressing Final Layer Hidden State Jumps in Transformer Pretrainingcited by 3
  12. 2026Layer-wise LoRA fine-tuning: a similarity metric approachcited by 3
24 more
  1. 2026What Survives When You Compress a Recursive Reasoner for the Edge?cited by 3
  2. 2025Self-Aware Safety Augmentation: Leveraging Internal Semantic Understanding to Enhance Safety in Vision-Language Modelscited by 2
  3. 2025Cross-Model Semantics in Representation Learningcited by 2
  4. 2026A Comparative analysis of Layer-wise Representational Capacity in AR and Diffusion LLMscited by 2
  5. 2026Rethinking Cross-Layer Information Routing in Diffusion Transformerscited by 2
  6. 2026LLM Layers Immediately Correct Each Othercited by 2
  7. 2025AdaPerceiver: Transformers with Adaptive Width, Depth, and Tokenscited by 1
  8. 2026Layer-Order Inversion: Rethinking Latent Multi-Hop Reasoning in Large Language Modelscited by 1
  9. 2026Layerwise Convergence Fingerprints for Runtime Misbehavior Detection in Large Language Modelscited by 1
  10. 2026Shaping Schema via Language Representation as the Next Frontier for LLM Intelligence Expandingcited by 1
  11. 2026Layer-wise Representation Dynamics: An Empirical Investigation Across Embedders and Base LLMscited by 1
  12. 2025Addressing the Collaboration Dilemma in Low-Data Federated Learning via Transient Sparsitycited by 0
  13. 2025CorGi: Contribution-Guided Block-Wise Interval Caching for Training-Free Acceleration of Diffusion Transformerscited by 0
  14. 2026The Illusion of Latent Generalization: Bi-directionality and the Reversal Cursecited by 0
  15. 2026SR2-LoRA: Self-Rectifying Inter-layer Relations in Low-Rank Adaptation for Class-Incremental Learningcited by 0
  16. 2026MADS: Model-Aware Diverse Core Set Selection for Instruction Tuningcited by 0
  17. 2026Fast Speech Foundation Model Distillation Using Interleaved Stackingcited by 0
  18. 2026Scaling Adaptive Depth with Norm-Agnostic Residual Networkscited by 0
  19. 2026CascadeFormer: Depth-Tapered Transformers Motivated by Gradient Fan-in Asymmetrycited by 0
  20. 2026Gradient Smoothing: Coupling Layer-wise Updates for Improved Optimizationcited by 0
  21. 2026Not All Tokens Are Equal: Region-Aware Consistency Repair of Backdoors in MLLMscited by 0
  22. 2026ProgResViT: Progressive Resolution and Width for Adaptive Vision Transformerscited by 0
  23. 2026ACE: Adapter Consolidation across Experts for Parameter-Efficient Fine-Tuning of MoE LLMscited by 0
  24. 2026SOLO: Pretraining Billion-Parameter Language Models with Shared-Output Local Learningcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026The Triangle of Similarity: A Multi-Faceted Framework for Comparing Neural Network Representations
  2. 2026What Visual Generators Need from Teachers: Rethinking Representation Alignment
  3. 2026From Layers to Networks: Comparing Neural Representations via Diffusion Geometry
  4. 2026Geometry-aware similarity metrics for neural representations on Riemannian and statistical manifolds
  5. 2025Representational Alignment Across Model Layers and Brain Regions with Multi-Level Optimal Transport
  6. 2024Representation Alignment for Generation: Training Diffusion Transformers Is Easier Than You Think
  7. 2026Representation Alignment for Just Image Transformers is not Easier than You Think
  8. 2026Geometric Similarity in VLM Low-Level Vision Representations