Forking Paths in Neural Text Generation

Eric Bigelow, Ari Holtzman, Hidenori Tanaka, Tomer Ullman
12/10/2024
cs.CLcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Estimating uncertainty in Large Language Models (LLMs) is important for properly evaluating LLMs, and ensuring safety for users. However, prior approaches to uncertainty estimation focus on the final answer in generated text, ignoring intermediate steps that might dramatically impact the outcome. We hypothesize that there exist key forking tokens, such that re-sampling the system at those specific tokens, but not others, leads to very different outcomes. To test this empirically, we develop a novel approach to representing uncertainty dynamics across individual tokens of text generation, and applying statistical models to test our hypothesis. Our approach is highly flexible: it can be applied to any dataset and any LLM, without fine tuning or accessing model weights. We use our method to analyze LLM responses on 7 different tasks across 4 domains, spanning a wide range of typical use cases. We find many examples of forking tokens, including surprising ones such as punctuation marks, suggesting that LLMs are often just a single token away from saying something very different.

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{bigelow2024forking,
  title  = {Forking Paths in Neural Text Generation},
  author = {Eric Bigelow and Ari Holtzman and Hidenori Tanaka and Tomer Ullman},
  year   = {2024},
  eprint = {2412.07961},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.07961v1}
}

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

Discussion