Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilities

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Jobanputra, Mayank, Veitsman, Yana, Sarrof, Yash, Bakalova, Aleksandra, Demberg, Vera, Pavlick, Ellie, Hahn, Michael
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917034900586496
author Jobanputra, Mayank
Veitsman, Yana
Sarrof, Yash
Bakalova, Aleksandra
Demberg, Vera
Pavlick, Ellie
Hahn, Michael
author_facet Jobanputra, Mayank
Veitsman, Yana
Sarrof, Yash
Bakalova, Aleksandra
Demberg, Vera
Pavlick, Ellie
Hahn, Michael
contents Transformers have theoretical limitations in modeling certain sequence-to-sequence tasks, yet it remains largely unclear if these limitations play a role in large-scale pretrained LLMs, or whether LLMs might effectively overcome these constraints in practice due to the scale of both the models themselves and their pretraining data. We explore how these architectural constraints manifest after pretraining, by studying a family of $\textit{retrieval}$ and $\textit{copying}$ tasks inspired by Liu et al. [2024a]. We use a recently proposed framework for studying length generalization [Huang et al., 2025] to provide guarantees for each of our settings. Empirically, we observe an $\textit{induction-versus-anti-induction}$ asymmetry, where pretrained models are better at retrieving tokens to the right (induction) rather than the left (anti-induction) of a query token. This asymmetry disappears upon targeted fine-tuning if length-generalization is guaranteed by theory. Mechanistic analysis reveals that this asymmetry is connected to the differences in the strength of induction versus anti-induction circuits within pretrained transformers. We validate our findings through practical experiments on real-world tasks demonstrating reliability risks. Our results highlight that pretraining selectively enhances certain transformer capabilities, but does not overcome fundamental length-generalization limits.
format Preprint
id arxiv_https___arxiv_org_abs_2505_21785
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilities
Jobanputra, Mayank
Veitsman, Yana
Sarrof, Yash
Bakalova, Aleksandra
Demberg, Vera
Pavlick, Ellie
Hahn, Michael
Machine Learning
Computation and Language
Transformers have theoretical limitations in modeling certain sequence-to-sequence tasks, yet it remains largely unclear if these limitations play a role in large-scale pretrained LLMs, or whether LLMs might effectively overcome these constraints in practice due to the scale of both the models themselves and their pretraining data. We explore how these architectural constraints manifest after pretraining, by studying a family of $\textit{retrieval}$ and $\textit{copying}$ tasks inspired by Liu et al. [2024a]. We use a recently proposed framework for studying length generalization [Huang et al., 2025] to provide guarantees for each of our settings. Empirically, we observe an $\textit{induction-versus-anti-induction}$ asymmetry, where pretrained models are better at retrieving tokens to the right (induction) rather than the left (anti-induction) of a query token. This asymmetry disappears upon targeted fine-tuning if length-generalization is guaranteed by theory. Mechanistic analysis reveals that this asymmetry is connected to the differences in the strength of induction versus anti-induction circuits within pretrained transformers. We validate our findings through practical experiments on real-world tasks demonstrating reliability risks. Our results highlight that pretraining selectively enhances certain transformer capabilities, but does not overcome fundamental length-generalization limits.
title Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilities
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2505.21785