Geometric Signatures of Compositionality Across a Language Model's Lifetime

Jin Hwa Lee, Thomas Jiralerspong, Lei Yu, Yoshua Bengio, Emily Cheng
10/2/2024
22 citations
cs.CLcs.AIcs.IT

No official code found. Best implementation: jinhl9/llm-compositionality-lifetime (2 stars, Python, MIT, last commit 2025-05-27).

Abstract

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 few degrees of freedom.

Show full abstract

An open question is whether contemporary language models (LMs) reflect the intrinsic simplicity of language that is enabled by compositionality. We take a geometric view of this problem by relating the degree of compositionality in a dataset to the intrinsic dimension (ID) of its representations under an LM, a measure of feature complexity. We find not only that the degree of dataset compositionality is reflected in representations' ID, but that the relationship between compositionality and geometric complexity arises due to learned linguistic features over training. Finally, our analyses reveal a striking contrast between nonlinear and linear dimensionality, showing they respectively encode semantic and superficial aspects of linguistic composition.

View on arXivView PDF

Code Implementations(1)

MIT

A codebase for "Geometric Signatures of Compositionality Across a Language Model's Lifetime", ACL 2025

20PythonMay 20, 20251 years agoMIT

Similar Papers

Cite this paper

@article{lee2024geometric,
  title  = {Geometric Signatures of Compositionality Across a Language Model's Lifetime},
  author = {Jin Hwa Lee and Thomas Jiralerspong and Lei Yu and Yoshua Bengio and Emily Cheng},
  year   = {2024},
  eprint = {2410.01444},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.01444v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.01444.svg)](https://codeofpaper.com/paper/2410.01444)

Discussion