Rule Extrapolation in Language Models: A Study of Compositional Generalization on OOD Prompts

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Mészáros, Anna, Ujváry, Szilvia, Brendel, Wieland, Reizinger, Patrik, Huszár, Ferenc
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929556958478336
author Mészáros, Anna
Ujváry, Szilvia
Brendel, Wieland
Reizinger, Patrik
Huszár, Ferenc
author_facet Mészáros, Anna
Ujváry, Szilvia
Brendel, Wieland
Reizinger, Patrik
Huszár, Ferenc
contents LLMs show remarkable emergent abilities, such as inferring concepts from presumably out-of-distribution prompts, known as in-context learning. Though this success is often attributed to the Transformer architecture, our systematic understanding is limited. In complex real-world data sets, even defining what is out-of-distribution is not obvious. To better understand the OOD behaviour of autoregressive LLMs, we focus on formal languages, which are defined by the intersection of rules. We define a new scenario of OOD compositional generalization, termed rule extrapolation. Rule extrapolation describes OOD scenarios, where the prompt violates at least one rule. We evaluate rule extrapolation in formal languages with varying complexity in linear and recurrent architectures, the Transformer, and state space models to understand the architectures' influence on rule extrapolation. We also lay the first stones of a normative theory of rule extrapolation, inspired by the Solomonoff prior in algorithmic information theory.
format Preprint
id arxiv_https___arxiv_org_abs_2409_13728
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Rule Extrapolation in Language Models: A Study of Compositional Generalization on OOD Prompts
Mészáros, Anna
Ujváry, Szilvia
Brendel, Wieland
Reizinger, Patrik
Huszár, Ferenc
Computation and Language
Machine Learning
LLMs show remarkable emergent abilities, such as inferring concepts from presumably out-of-distribution prompts, known as in-context learning. Though this success is often attributed to the Transformer architecture, our systematic understanding is limited. In complex real-world data sets, even defining what is out-of-distribution is not obvious. To better understand the OOD behaviour of autoregressive LLMs, we focus on formal languages, which are defined by the intersection of rules. We define a new scenario of OOD compositional generalization, termed rule extrapolation. Rule extrapolation describes OOD scenarios, where the prompt violates at least one rule. We evaluate rule extrapolation in formal languages with varying complexity in linear and recurrent architectures, the Transformer, and state space models to understand the architectures' influence on rule extrapolation. We also lay the first stones of a normative theory of rule extrapolation, inspired by the Solomonoff prior in algorithmic information theory.
title Rule Extrapolation in Language Models: A Study of Compositional Generalization on OOD Prompts
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2409.13728