Understanding the Inner Workings of Language Models Through Representation Dissimilarity

Davis Brown, Charles Godfrey, Nicholas Konz, Jonathan Tu, Henry Kvinge
10/23/2023
cs.LGcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

As language models are applied to an increasing number of real-world applications, understanding their inner workings has become an important issue in model trust, interpretability, and transparency. In this work we show that representation dissimilarity measures, which are functions that measure the extent to which two model's internal representations differ, can be a valuable tool for gaining insight into the mechanics of language models. Among our insights are: (i) an apparent asymmetry in the internal representations of model using SoLU and GeLU activation functions, (ii) evidence that dissimilarity measures can identify and locate generalization properties of models that are invisible via in-distribution test set performance, and (iii) new evaluations of how language model features vary as width and depth are increased. Our results suggest that dissimilarity measures are a promising set of tools for shedding light on the inner workings of language models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{brown2023understanding,
  title  = {Understanding the Inner Workings of Language Models Through Representation Dissimilarity},
  author = {Davis Brown and Charles Godfrey and Nicholas Konz and Jonathan Tu and Henry Kvinge},
  year   = {2023},
  eprint = {2310.14993},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.14993v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.14993.svg)](https://codeofpaper.com/paper/2310.14993)

Discussion