Capability and Interpretability of Transformers on Multi-task Recurrence
Abstract
Transformers are widely used in various language tasks, with limited understanding of their internal mechanisms. Motivated by the recurrent structure of many linguistic rules, we study the capability and interpretability of Transformers through a controlled family of linear recurrence tasks over finite cyclic groups. These tasks range from executing a single fixed rule to identifying a latent rule from context and switching between explicitly specified rules, with and without input masking. Through extensive experiments across different configurations, we find that switching specified rules is simpler than identifying latent rules for Transformers in general. We also identify how several key factors affect the generalization capability of Transformers, including the depth, width, and the algebraic structure of the linear recurrence. Curriculum training is extremely useful when the number of rules is large. With standard tools in mechanistic interpretability like linear probing and input patching, our study reveals how Transformers represent, identify, and execute multiple rules.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
Related papers
Preference-Aware Pareto Steering for Multi-Task Speech LLMs
Shared title terminologycs.CLLiuyuan Jiang, Vishal Sunder, Samuel Thomas et al.
SZED at ArGuard Shared Tasks: Multi-Task Label-Attention and Cross-Modal Fusion for Arabic Hateful Meme Detection
Shared title terminologycs.CLSelma Khelili, Zohra Abdeli
Multi-level Encoder with Global Topic for Task-oriented Dialogue Summarization
Shared title terminologycs.CLZhuoqi He, Peijie Huang, Yuhong Xu et al.
Exploring Multi-Player Social Games as Verifiable Training Grounds for Large Language Models
Shared title terminologycs.CLKeyu He, Michael Li, Jiarui Liu et al.
SPARQL-Planned Single-Hop Traversal over a Live Knowledge Graph for Multi-Hop Question Answering
Shared title terminologycs.CLPriyesh Vakharia, Masud Moshtaghi, Pratyay Banerjee et al.
Task-Dependent Linguistic Measures in Aphasia Discourse: A Comparative Analysis of Narrative, Descriptive, and Procedural Speech
Shared title terminologycs.CLEmma Al Kubaisi