Skip to content
#data science Open access

Peering inside the 'Black Box': understanding and refining deep neural networks with representational similarity analysis

Oct 2026 · Research Portal (Queen's University Belfast)

Abstract

Deep neural networks, and Transformer models in particular, have achieved unprecedented success in natural language processing tasks. Despite this success, they are infamous for their status as black boxes. Specific details on how they encode and process high-level linguistic task-relevant information remain difficult to characterise by humans. This hinders trust and reliability, particularly in critical applications like clinical text processing. This thesis seeks to tackle the interpretability problem by applying analytic methods inspired by cognitive science, with the overall goal to build a deeper understanding of how these models represent and process language, and suggest model interventions based on these findings. Two primary research questions guide this investigation: how do Transformer models represent and process linguistic features, and how do variations in model architecture, training data, or fine-tuning influence these representations? The thesis comprises varied technical chapters with a motivational thread of linguistic interpretability. The work begins with an exploration into interpretability within the clinical domain, developing a perturbative technique to identify diagnostically influential sentences in clinical letters. I then transition to more advanced interpretability techniques, introducing Representational Similarity Analysis and linear probing. A particular focus is placed on layer-wise analysis to observe how salient linguistic signals are encoded throughout the network. Expanding on this, I use these techniques to measure the fine-grained representation of noun-noun compound thematic relations. This toolkit is then applied to Irish morphosyntax, comparing monolingual and multilingual models to demonstrate the monolingual model's stronger encoding of specific linguistic phenomena. Finally, I introduce Representational Similarity Regularisation, a novel approach to inducing alignment between representations and a target signal. This method aligns models with cognitive signals elicited by natural language, improving performance on semantic textual similarity tasks. This thesis provides novel insights into Transformer models and explores using cognitive signals to build more robust human-aligned neural networks.

View source

Similar papers

#computer vision Review Sep 2017

Agile Software Development Methods: Review and Analysis

This publication proposes a definition and a classification of agile software development approaches and analyses ten software development methods that can be characterized as being "agile" against the defined criterion.

P. Abrahamsson, O. Salo, Jussi Ronkainen et al. · 727 citations · ⚡54
#computer vision Jun 2008

The impact of agile practices on communication in software development

The study shows that agile practices improve both informal and formal communication, but indicates that, in larger development situations involving multiple external stakeholders, a mismatch of adequate communication mechanisms can sometimes even hinder the communication.

M. Pikkarainen, Jukka Haikara, O. Salo et al. · 401 citations · ⚡48
#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54

Trajectory Balance: Improved Credit Assignment in GFlowNets

It is proved that any global minimizer of the trajectory balance objective can define a policy that samples exactly from the target distribution, and empirically demonstrate the benefits of the trajectories balance objective for GFlowNet convergence, diversity of generated samples, and robustness to long action sequenc...

Esmeralda S. Whitammer, Moksh Jain, Emmanuel Bengio et al. · 302 citations · ⚡60

Related blog posts

Microsoft Research Blog Oct 6, 2026

What AI gets wrong and what failure teaches us

Jennifer Neville did not want to go into computer science—but that’s exactly where she landed. Neville discusses the starts and stops that led to her professional sweet spot and her work identifying “surprising failures” making it hard for AI to handle complexity.  The post What AI gets wrong and what failure teaches us appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.