Uncovering Uncertainty in Transformer Inference

Greyson Brothers, Willa Mannering, Amber Tien, John Winder
12/8/2024
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

We explore the Iterative Inference Hypothesis (IIH) within the context of transformer-based language models, aiming to understand how a model's latent representations are progressively refined and whether observable differences are present between correct and incorrect generations. Our findings provide empirical support for the IIH, showing that the nth token embedding in the residual stream follows a trajectory of decreasing loss. Additionally, we observe that the rate at which residual embeddings converge to a stable output representation reflects uncertainty in the token generation process. Finally, we introduce a method utilizing cross-entropy to detect this uncertainty and demonstrate its potential to distinguish between correct and incorrect token generations on a dataset of idioms.

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{brothers2024uncovering,
  title  = {Uncovering Uncertainty in Transformer Inference},
  author = {Greyson Brothers and Willa Mannering and Amber Tien and John Winder},
  year   = {2024},
  eprint = {2412.05768},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.05768v1}
}

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

Discussion