LGFeb 15, 2024

Why are Sensitive Functions Hard for Transformers?

arXiv:2402.09963v463 citationsh-index: 4ACL
Originality Highly original
AI Analysis

This provides a theoretical explanation for transformers' inductive biases, addressing a foundational problem in understanding their learning limitations for researchers in machine learning and AI.

The paper tackles the problem of transformers' difficulty in learning sensitive functions like PARITY by proving that the loss landscape constrains models sensitive to many input parts to isolated parameter points, leading to a low-sensitivity bias. The result unifies empirical observations such as biases towards low sensitivity and low degree, and difficulty in length generalization.

Empirical studies have identified a range of learnability biases and limitations of transformers, such as a persistent difficulty in learning to compute simple formal languages such as PARITY, and a bias towards low-degree functions. However, theoretical understanding remains limited, with existing expressiveness theory either overpredicting or underpredicting realistic learning abilities. We prove that, under the transformer architecture, the loss landscape is constrained by the input-space sensitivity: Transformers whose output is sensitive to many parts of the input string inhabit isolated points in parameter space, leading to a low-sensitivity bias in generalization. We show theoretically and empirically that this theory unifies a broad array of empirical observations about the learning abilities and biases of transformers, such as their generalization bias towards low sensitivity and low degree, and difficulty in length generalization for PARITY. This shows that understanding transformers' inductive biases requires studying not just their in-principle expressivity, but also their loss landscape.

Code Implementations1 repo
Foundations

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

Your Notes