Interpretability of Language Models via Task Spaces
Lucas Weber, Jaap Jumelet, Elia Bruni, Dieuwke Hupkes
TL;DR
This work tackles interpretability of language models by introducing linguistic task spaces, which map how models generalize across interconnected linguistic phenomena. It combines similarity probing with fine-tuning via gradient differentials (FTGD) to disentangle entangled linguistic tasks and quantify task relationships, applying the methods to decoder-based transformers of ~27M, ~70M, and ~203M parameters across different pre-training stages. Key contributions include FTGD for targeted, low-impact task fine-tuning, similarity/probing frameworks to build linguistic task spaces, and empirical findings that larger models generalize better to overarching linguistic concepts while distributing processing across shared structure; task spaces remain remarkably stable during training. This framework enables linguistic hypothesis testing and provides a principled path toward interpretable LM behavior, with potential extensions to other domains and larger LLMs.
Abstract
The usual way to interpret language models (LMs) is to test their performance on different benchmarks and subsequently infer their internal processes. In this paper, we present an alternative approach, concentrating on the quality of LM processing, with a focus on their language abilities. To this end, we construct 'linguistic task spaces' -- representations of an LM's language conceptualisation -- that shed light on the connections LMs draw between language phenomena. Task spaces are based on the interactions of the learning signals from different linguistic phenomena, which we assess via a method we call 'similarity probing'. To disentangle the learning signals of linguistic phenomena, we further introduce a method called 'fine-tuning via gradient differentials' (FTGD). We apply our methods to language models of three different scales and find that larger models generalise better to overarching general concepts for linguistic tasks, making better use of their shared structure. Further, the distributedness of linguistic processing increases with pre-training through increased parameter sharing between related linguistic tasks. The overall generalisation patterns are mostly stable throughout training and not marked by incisive stages, potentially explaining the lack of successful curriculum strategies for LMs.
