Phase Transitions in the Output Distribution of Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Arnold, Julian, Holtorf, Flemming, Schäfer, Frank, Lörch, Niels
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911889029595136
author Arnold, Julian
Holtorf, Flemming
Schäfer, Frank
Lörch, Niels
author_facet Arnold, Julian
Holtorf, Flemming
Schäfer, Frank
Lörch, Niels
contents In a physical system, changing parameters such as temperature can induce a phase transition: an abrupt change from one state of matter to another. Analogous phenomena have recently been observed in large language models. Typically, the task of identifying phase transitions requires human analysis and some prior understanding of the system to narrow down which low-dimensional properties to monitor and analyze. Statistical methods for the automated detection of phase transitions from data have recently been proposed within the physics community. These methods are largely system agnostic and, as shown here, can be adapted to study the behavior of large language models. In particular, we quantify distributional changes in the generated output via statistical distances, which can be efficiently estimated with access to the probability distribution over next-tokens. This versatile approach is capable of discovering new phases of behavior and unexplored transitions -- an ability that is particularly exciting in light of the rapid development of language models and their emergent capabilities.
format Preprint
id arxiv_https___arxiv_org_abs_2405_17088
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Phase Transitions in the Output Distribution of Large Language Models
Arnold, Julian
Holtorf, Flemming
Schäfer, Frank
Lörch, Niels
Machine Learning
Statistical Mechanics
Artificial Intelligence
Computation and Language
In a physical system, changing parameters such as temperature can induce a phase transition: an abrupt change from one state of matter to another. Analogous phenomena have recently been observed in large language models. Typically, the task of identifying phase transitions requires human analysis and some prior understanding of the system to narrow down which low-dimensional properties to monitor and analyze. Statistical methods for the automated detection of phase transitions from data have recently been proposed within the physics community. These methods are largely system agnostic and, as shown here, can be adapted to study the behavior of large language models. In particular, we quantify distributional changes in the generated output via statistical distances, which can be efficiently estimated with access to the probability distribution over next-tokens. This versatile approach is capable of discovering new phases of behavior and unexplored transitions -- an ability that is particularly exciting in light of the rapid development of language models and their emergent capabilities.
title Phase Transitions in the Output Distribution of Large Language Models
topic Machine Learning
Statistical Mechanics
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2405.17088