LGCCOct 6, 2022

A Logic for Expressing Log-Precision Transformers

arXiv:2210.02671v780 citationsh-index: 56
AI Analysis

This provides a foundational logical characterization for understanding transformer-based language models, addressing a core capability in AI interpretability.

The paper tackles the problem of characterizing the reasoning power of transformers that can attend universally by analyzing log-precision transformers, proving they can be equivalently expressed as first-order logic sentences with majority-vote quantifiers, establishing the tightest known upper bound.

One way to interpret the reasoning power of transformer-based language models is to describe the types of logical rules they can resolve over some input text. Recently, Chiang et al. (2023) showed that finite-precision transformers can be equivalently expressed in a generalization of first-order logic. However, finite-precision transformers are a weak transformer variant because, as we show, a single head can only attend to a constant number of tokens and, in particular, cannot represent uniform attention. Since attending broadly is a core capability for transformers, we ask whether a minimally more expressive model that can attend universally can also be characterized in logic. To this end, we analyze transformers whose forward pass is computed in $\log n$ precision on contexts of length $n$. We prove that any log-precision transformer can be equivalently expressed as a first-order logic sentence that, in addition to standard universal and existential quantifiers, may also contain majority-vote quantifiers. This is the tightest known upper bound and first logical characterization of log-precision transformers.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes