What Makes Two Language Models Think Alike?

Jeanne Salle, Louis Jalouzot, Nur Lan, Emmanuel Chemla, Yair Lakretz
6/18/2024
cs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Do architectural differences significantly affect the way models represent and process language? We propose a new approach, based on metric-learning encoding models (MLEMs), as a first step to answer this question. The approach provides a feature-based comparison of how any two layers of any two models represent linguistic information. We apply the method to BERT, GPT-2 and Mamba. Unlike previous methods, MLEMs offer a transparent comparison, by identifying the specific linguistic features responsible for similarities and differences. More generally, the method uses formal, symbolic descriptions of a domain, and use these to compare neural representations. As such, the approach can straightforwardly be extended to other domains, such as speech and vision, and to other neural systems, including human brains.

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. 2 weaker matches are hidden by default — 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{salle2024what,
  title  = {What Makes Two Language Models Think Alike?},
  author = {Jeanne Salle and Louis Jalouzot and Nur Lan and Emmanuel Chemla and Yair Lakretz},
  year   = {2024},
  eprint = {2406.12620},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.12620v2}
}

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/2406.12620.svg)](https://codeofpaper.com/paper/2406.12620)

Discussion