paper-with-me

홈 › Papers

Characterizing Intrinsic Compositionality in Transformers with Tree Projections

2022-11-02 · Shikhar Murty, Pratyusha Sharma, Jacob Andreas, Christopher D. Manning

When trained on language data, do transformers learn some arbitrary computation that utilizes the full capacity of the architecture or do they learn a simpler, tree-like computation, hypothesized to underlie compositional meaning systems like human languages? There is an apparent tension between compositional accounts of human language understanding, which are based on a restricted bottom-up computational process, and the enormous success of neural models like transformers, which can route information arbitrarily between different parts of their input. One possibility is that these models, while extremely flexible in principle, in practice learn to interpret language hierarchically, ultimately building sentence representations close to those predictable by a bottom-up, tree-structured model. To evaluate this possibility, we describe an unsupervised and parameter-free method to \emph{functionally project} the behavior of any transformer into the space of tree-structured networks. Given an input sentence, we produce a binary tree that approximates the transformer's representation-building process and a score that captures how "tree-like" the transformer's behavior is on the input. While calculation of this score does not require training any additional models, it provably upper-bounds the fit between a transformer and any tree-structured approximation. Using this method, we show that transformers for three different tasks become more tree-like over the course of training, in some cases unsupervisedly recovering the same trees as supervised parsers. These trees, in turn, are predictive of model behavior, with more tree-like models generalizing better on tests of compositional generalization.

📄 PDF Abstract BibTeX arXiv:2211.01288

Code (0)

등록된 구현이 없습니다.

Tasks

Sentence

Similar Papers 제목 키워드 기반

Learning the structure of manifolds using random projections

2007-12-01 · NeurIPS 2007 12 · Yoav Freund, Sanjoy Dasgupta, Mayank Kabra, Nakul Verma

We present a simple variant of the k-d tree which automatically adapts to intrinsic low dimensional structure in data.

General models for rational cameras and the case of two-slit projections

2016-12-04 · CVPR 2017 7 · Matthew Trager, Bernd Sturmfels, John Canny, Martial Hebert 외

The rational camera model recently introduced in [19] provides a general methodology for studying abstract nonlinear imaging systems and their multi-view geometry. This paper builds on this framework to study "physical r…

Modeling and Learning Semantic Co-Compositionality through Prototype Projections and Neural Networks

2013-10-01 · EMNLP 2013 10 · Masashi Tsubaki, Kevin Duh, Masashi Shimbo, Yuji Matsumoto
ChunkingNamed Entity Recognition (NER)Part-Of-Speech TaggingSemantic Role Labeling+1

Estimating the Effective Rank of Vision Transformers via Low-Rank Factorization

2025-11-30 · Liyu Zerihun arxiv

Deep networks are heavily over-parameterized, yet their learned representations often admit low-rank structure. We introduce a framework for estimating a model's intrinsic dimensionality by treating learned representatio…

Geometric Signatures of Compositionality Across a Language Model's Lifetime

2024-10-02 · Jin Hwa Lee, Thomas Jiralerspong, Lei Yu, Yoshua Bengio 외

By virtue of linguistic compositionality, few syntactic rules and a finite lexicon can generate an unbounded number of sentences. That is, language, though seemingly high-dimensional, can be explained using relatively fe…