Back to search

Durham University

On Hierarchical Encoding and Reasoning in Deep Transformer-based Generative Models

Abstract

dc:description.abstract

Recent advances in generative Transformer-based foundation models have driven remarkable progress in artificial intelligence, yet their internal mechanisms for representing complex hierarchical structures remain largely unknown, posing significant challenges for interpretability, safety, and robust generalisation. This thesis aims to progress on these issues by systematically investigating how such models internalise hierarchical structures, the relationship between this learning and behaviours like generalisation versus memorisation, and how hierarchical principles can inform the development of safer, more accurate, generative models. To this end, we first introduce novel probing techniques to map the layer-wise emergence of linguistic hierarchies in language models and extend this analysis to the visual domain by developing PSViT: a pixel-space Transformer with hierarchical decompositions of video image patches, shown to learn and generalise hierarchical physical dynamics from raw video data. We investigate memorisation during fine-tuning, establishing an n-gram based early warning signal for verbatim leakage and proposing scalable defences that promote structural generalisation over verbatim memorisation. Building on these insights, we further demonstrate that a unified next-frame prediction framework enables a single model to process text, images, audio, and video without modality-specific encoders, thereby learning shared hierarchical patterns across these diverse inputs. Collectively, our findings underscore that the capacity to learn and represent hierarchical structure is a fundamental characteristic of Transformer models, and that a focused analysis of these underpinnings is crucial for advancing more capable, interpretable, and safer artificial intelligence.

Degree

thesis:*
Name dc:type.qualificationname
PhD
Level dc:type.qualificationlevel
doctoral
Grantor dc:publisher.institution
Durham University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Slack, Dean Lewis

Rights

Language dc:language.dcterms_iso639_2
eng

Identifiers

dc:identifier.*
Repository record dc:identifier.uri
https://etheses.durham.ac.uk/id/eprint/16318/

Chain of custody

source
Harvested from
Durham University
Base URL
etheses.dur.ac.uk/cgi/oai2
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
related terms
citation

Slack, Dean Lewis. On Hierarchical Encoding and Reasoning in Deep Transformer-based Generative Models. doctoral thesis, Durham University, 2025. https://etheses.durham.ac.uk/id/eprint/16318/