TL;DR
This paper investigates the internal mechanisms of Transformer models in compositional generalization, revealing reliance on syntactic features and the early emergence of non-compositional solutions, with implications for understanding model generalization.
Contribution
It identifies a subnetwork within Transformers that contributes to generalization and analyzes how syntactic features and non-compositional algorithms influence performance.
Findings
Transformer relies on syntactic features for correct outputs.
A subnetwork with better generalization uses non-compositional algorithms.
Non-compositional solutions emerge early in training.
Abstract
The compositional generalization abilities of neural models have been sought after for human-like linguistic competence. The popular method to evaluate such abilities is to assess the models' input-output behavior. However, that does not reveal the internal mechanisms, and the underlying competence of such models in compositional generalization remains unclear. To address this problem, we explore the inner workings of a Transformer model by finding an existing subnetwork that contributes to the generalization performance and by performing causal analyses on how the model utilizes syntactic features. We find that the model depends on syntactic features to output the correct answer, but that the subnetwork with much better generalization performance than the whole model relies on a non-compositional algorithm in addition to the syntactic features. We also show that the subnetwork improves…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
