Back to search

Universität Heidelberg

Understanding, Quantifying and Controlling Learned Representations of Deep Neural Networks

Abstract

dc:description.abstract

Deep learning models are typically judged by their predictions, but understanding how they internally represent data is key to explaining how they work. This thesis studies the internal workings of neural networks through their learned representations and shows how representational similarity can help analyze models, expose limitations of existing metrics, and inspire new approaches to regularization and architecture design. It addresses three interconnected questions: how representations relate to model behavior, how representational similarity should be measured, and how representations can be deliberately shaped. The work contributes five studies spanning analysis, benchmarking, regularization, and architecture design, connected by the common thread of representational similarity analysis. A central finding is that the measured representational similarity and the functional similarity of two models are only loosely connected. Model stitching experiments - substituting one model's intermediate representations into another - show that representations from independently trained networks can be functionally interchangeable, incurring only minor accuracy losses, even when their measured representational similarity is moderate. Dissimilarity regularization experiments reinforce this from the opposite direction by showing that driving ensemble members toward near-maximal representational dissimilarity produces only moderate differences in predictive behavior, confirming that very different internal representations can support similar input-output mappings. This indicates that the error consistency between two independently trained models exceeds what current similarity measures can explain, limiting the diversity gains achievable through representational interventions alone. To improve how representational similarity is quantified, we identify failure modes of widely used similarity measures. We show that the standard construction of Representational Similarity Matrices (RSMs), as used in the popular Centered Kernel Alignment (CKA), can couple spatial alignment and semantic content, becoming blind to a simple input translation. We propose a permutation-invariant construction that decouples these aspects, recovering sensitivity to similarities that standard approaches miss. Complementing this, the ReSi benchmark provides a systematic evaluation framework for representational similarity measures across diverse domains, architectures, datasets, and grounding types. Its central result is that no single similarity measure is universally reliable, with one measure that produces consistent rankings in one setting yielding contradictory results in another, limiting the extent to which representational similarity can serve as a quantitative proxy for functional model behavior. Beyond measurement, we show that representational similarity measures have practical utility as optimization objectives. Dissimilarity regularization encourages ensemble members to learn diverse intermediate representations, offering a principled mechanism for promoting complementary feature learning. While the resulting representational diversity does not translate proportionally into functional diversity it nonetheless provides a controllable lever for influencing representation structure during training. On the architectural side, Representational Similarity Analysis (RSA) reveals that existing hybrid CNN-transformer architectures for 3D medical image segmentation underutilize their attention mechanisms, often behaving similarly to convolutional networks at intermediate layers. This finding motivates the design of Primus, a pure transformer encoder architecture that enforces meaningful attention usage throughout the network. Primus and its successor PrimusV2 are compatible with large-scale self-supervised pretraining and yield competitive downstream segmentation performance, matching state-of-the-art CNN-based methods in volumetric medical imaging for the first time with a transformer-based architecture. Together, the contributions connect representational structure to functional behavior, provide diagnostic tools and benchmarks for representational similarity analysis, and demonstrate how representation-level insights can inform both training objectives and architecture design. They also reveal important limitations of current similarity measures and show that spatial correspondence does not need to be coupled for measuring semantic similarity. Overall, this thesis advocates treating representational similarity as a complementary analytical signal, valuable for mechanistic understanding and model development, but not yet a standalone substitute for direct functional evaluation.

Degree

thesis:*
Level thesis:degree_level
thesis.doctoral
Department thesis:degree_department
The Faculty of Mathematics and Computer Science
Grantor dc:publisher
Universität Heidelberg
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Wald, Tassilo Julius
Advisor dc:contributor.advisor
  • Maier-Hein, Klaus

Rights

dc:rights.accessrights
Statement dc:rights.accessrights
  • free
Language dc:language.dcterms_iso639_2
eng

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Universität Heidelberg
Base URL
archiv.ub.uni-heidelberg.de/volltextserver/cgi/oai2
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Wald, Tassilo Julius. Understanding, Quantifying and Controlling Learned Representations of Deep Neural Networks. thesis.doctoral thesis, Universität Heidelberg, 2026. https://doi.org/10.11588/heidok.00039081