Saved in:
Bibliographic Details
Main Authors: Hahn, Michael, Rofin, Mark
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2402.09963
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910459551023104
author Hahn, Michael
Rofin, Mark
author_facet Hahn, Michael
Rofin, Mark
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_09963
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Why are Sensitive Functions Hard for Transformers?
Hahn, Michael
Rofin, Mark
Machine Learning
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.
title Why are Sensitive Functions Hard for Transformers?
topic Machine Learning
url https://arxiv.org/abs/2402.09963