Racing Thoughts: Explaining Contextualization Errors in Large Language Models

Michael A. Lepori, Michael C. Mozer, Asma Ghandeharioun
10/2/2024
cs.CL

No confident code implementation found for this paper.

Abstract

The profound success of transformer-based language models can largely be attributed to their ability to integrate relevant contextual information from an input sequence in order to generate a response or complete a task. However, we know very little about the algorithms that a model employs to implement this capability, nor do we understand their failure modes. For example, given the prompt "John is going fishing, so he walks over to the bank. Can he make an ATM transaction?", a model may incorrectly respond "Yes" if it has not properly contextualized "bank" as a geographical feature, rather than a financial institution. We propose the LLM Race Conditions Hypothesis as an explanation of contextualization errors of this form. This hypothesis identifies dependencies between tokens (e.g., "bank" must be properly contextualized before the final token, "?", integrates information from "bank"), and claims that contextualization errors are a result of violating these dependencies. Using a variety of techniques from mechanistic intepretability, we provide correlational and causal evidence in support of the hypothesis, and suggest inference-time interventions to address it.

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{lepori2024racing,
  title  = {Racing Thoughts: Explaining Contextualization Errors in Large Language Models},
  author = {Michael A. Lepori and Michael C. Mozer and Asma Ghandeharioun},
  year   = {2024},
  eprint = {2410.02102},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.02102v2}
}

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

Discussion